@verdocs/web-sdk 5.3.1 → 5.3.3

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 (599) hide show
  1. package/dist/cjs/index-Be9PlTB7.js +6 -6
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/verdocs-button-panel_2.cjs.entry.js +3 -3
  4. package/dist/cjs/verdocs-button_3.cjs.entry.js +6 -6
  5. package/dist/cjs/verdocs-checkbox_5.cjs.entry.js +4 -4
  6. package/dist/cjs/verdocs-contact-picker.cjs.entry.js +5 -3
  7. package/dist/cjs/verdocs-contact-picker.cjs.entry.js.map +1 -1
  8. package/dist/cjs/verdocs-contact-picker.entry.cjs.js.map +1 -1
  9. package/dist/cjs/verdocs-date-input.cjs.entry.js +2 -2
  10. package/dist/cjs/verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.cjs.js.map +1 -0
  11. package/dist/cjs/{verdocs-kba-dialog_3.cjs.entry.js → verdocs-delegate-dialog_5.cjs.entry.js} +73 -4
  12. package/dist/{verdocs-web-sdk/p-a224a4cc.system.entry.js.map → cjs/verdocs-delegate-dialog_5.cjs.entry.js.map} +1 -1
  13. package/dist/cjs/verdocs-dialog.cjs.entry.js +4 -3
  14. package/dist/cjs/verdocs-dialog.cjs.entry.js.map +1 -1
  15. package/dist/cjs/verdocs-dialog.entry.cjs.js.map +1 -1
  16. package/dist/cjs/verdocs-dropdown.cjs.entry.js +1 -1
  17. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +1 -1
  18. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +1 -1
  19. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js.map +1 -1
  20. package/dist/cjs/verdocs-envelope-sidebar.entry.cjs.js.map +1 -1
  21. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +6 -6
  22. package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +3 -3
  23. package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +2 -2
  24. package/dist/cjs/verdocs-menu-panel_2.cjs.entry.js +8 -8
  25. package/dist/cjs/verdocs-multiselect.cjs.entry.js +1 -1
  26. package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
  27. package/dist/cjs/verdocs-organization-card_2.cjs.entry.js +2 -2
  28. package/dist/cjs/verdocs-pagination_2.cjs.entry.js +2 -2
  29. package/dist/cjs/verdocs-quick-functions.cjs.entry.js +1 -1
  30. package/dist/cjs/verdocs-radio-button.cjs.entry.js +1 -1
  31. package/dist/cjs/verdocs-search-box.cjs.entry.js +1 -1
  32. package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
  33. package/dist/cjs/verdocs-sign.cjs.entry.js +40 -8
  34. package/dist/cjs/verdocs-sign.cjs.entry.js.map +1 -1
  35. package/dist/cjs/verdocs-sign.entry.cjs.js.map +1 -1
  36. package/dist/cjs/verdocs-spinner.cjs.entry.js +1 -1
  37. package/dist/cjs/verdocs-status-indicator.cjs.entry.js +2 -2
  38. package/dist/cjs/verdocs-switch.cjs.entry.js +2 -2
  39. package/dist/cjs/verdocs-table.cjs.entry.js +2 -2
  40. package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
  41. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +1 -1
  42. package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
  43. package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
  44. package/dist/cjs/verdocs-templates-list.cjs.entry.js +7 -7
  45. package/dist/cjs/verdocs-toggle-button.cjs.entry.js +1 -1
  46. package/dist/cjs/verdocs-toggle.cjs.entry.js +1 -1
  47. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  48. package/dist/collection/collection-manifest.json +2 -0
  49. package/dist/collection/components/controls/verdocs-button/verdocs-button.js +1 -1
  50. package/dist/collection/components/controls/verdocs-button-panel/verdocs-button-panel.js +2 -2
  51. package/dist/collection/components/controls/verdocs-checkbox/verdocs-checkbox.js +1 -1
  52. package/dist/collection/components/controls/verdocs-component-error/verdocs-component-error.js +1 -1
  53. package/dist/collection/components/controls/verdocs-date-input/verdocs-date-input.js +2 -2
  54. package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.js +1 -1
  55. package/dist/collection/components/controls/verdocs-file-chooser/verdocs-file-chooser.js +1 -1
  56. package/dist/collection/components/controls/verdocs-help-icon/verdocs-help-icon.js +1 -1
  57. package/dist/collection/components/controls/verdocs-loader/verdocs-loader.js +1 -1
  58. package/dist/collection/components/controls/verdocs-menu-panel/verdocs-menu-panel.js +1 -1
  59. package/dist/collection/components/controls/verdocs-multiselect/verdocs-multiselect.js +1 -1
  60. package/dist/collection/components/controls/verdocs-organization-card/verdocs-organization-card.js +1 -1
  61. package/dist/collection/components/controls/verdocs-pagination/verdocs-pagination.js +1 -1
  62. package/dist/collection/components/controls/verdocs-portal/verdocs-portal.js +1 -1
  63. package/dist/collection/components/controls/verdocs-progress-bar/verdocs-progress-bar.js +1 -1
  64. package/dist/collection/components/controls/verdocs-quick-filter/verdocs-quick-filter.js +1 -1
  65. package/dist/collection/components/controls/verdocs-radio-button/verdocs-radio-button.js +1 -1
  66. package/dist/collection/components/controls/verdocs-select-input/verdocs-select-input.js +1 -1
  67. package/dist/collection/components/controls/verdocs-spinner/verdocs-spinner.js +1 -1
  68. package/dist/collection/components/controls/verdocs-switch/verdocs-switch.js +2 -2
  69. package/dist/collection/components/controls/verdocs-table/verdocs-table.js +2 -2
  70. package/dist/collection/components/controls/verdocs-tabs/verdocs-tabs.js +1 -1
  71. package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.js +4 -4
  72. package/dist/collection/components/controls/verdocs-toggle/verdocs-toggle.js +1 -1
  73. package/dist/collection/components/controls/verdocs-toggle-button/verdocs-toggle-button.js +1 -1
  74. package/dist/collection/components/controls/verdocs-toolbar-icon/verdocs-toolbar-icon.js +1 -1
  75. package/dist/collection/components/dialogs/verdocs-delegate-dialog/verdocs-delegate-dialog.css +177 -0
  76. package/dist/collection/components/dialogs/verdocs-delegate-dialog/verdocs-delegate-dialog.js +154 -0
  77. package/dist/collection/components/dialogs/verdocs-delegate-dialog/verdocs-delegate-dialog.js.map +1 -0
  78. package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.css +60 -12
  79. package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.js +3 -2
  80. package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.js.map +1 -1
  81. package/dist/collection/components/dialogs/verdocs-disclosure-dialog/verdocs-disclosure-dialog.css +59 -0
  82. package/dist/collection/components/dialogs/verdocs-disclosure-dialog/verdocs-disclosure-dialog.js +90 -0
  83. package/dist/collection/components/dialogs/verdocs-disclosure-dialog/verdocs-disclosure-dialog.js.map +1 -0
  84. package/dist/collection/components/dialogs/verdocs-initial-dialog/verdocs-initial-dialog.js +1 -1
  85. package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +1 -1
  86. package/dist/collection/components/dialogs/verdocs-otp-dialog/verdocs-otp-dialog.js +1 -1
  87. package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +1 -1
  88. package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.js +1 -1
  89. package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +1 -1
  90. package/dist/collection/components/elements/verdocs-search-box/verdocs-search-box.js +1 -1
  91. package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js +1 -1
  92. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.css +0 -15
  93. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +44 -9
  94. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
  95. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.css +1 -1
  96. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js +4 -2
  97. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js.map +1 -1
  98. package/dist/collection/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.js +1 -1
  99. package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js +1 -1
  100. package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js.map +1 -1
  101. package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +6 -6
  102. package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js +2 -2
  103. package/dist/collection/components/templates/verdocs-template-card/verdocs-template-card.js +1 -1
  104. package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +7 -7
  105. package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +1 -1
  106. package/dist/collection/components/templates/verdocs-template-tags/verdocs-template-tags.js +1 -1
  107. package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.js +7 -7
  108. package/dist/components/index.js +4 -0
  109. package/dist/components/index.js.map +1 -1
  110. package/dist/components/{p-Bb2F00K4.js → p--hL4T8Ae.js} +11 -11
  111. package/dist/components/{p-Bb2F00K4.js.map → p--hL4T8Ae.js.map} +1 -1
  112. package/dist/components/{p-im6p8eaY.js → p-9HvXJwEq.js} +3 -3
  113. package/dist/components/{p-im6p8eaY.js.map → p-9HvXJwEq.js.map} +1 -1
  114. package/dist/components/p-B-sC03p7.js +54 -0
  115. package/dist/components/p-B-sC03p7.js.map +1 -0
  116. package/dist/components/{p-C2Fb8G6A.js → p-B1oNdOdb.js} +12 -12
  117. package/dist/components/{p-C2Fb8G6A.js.map → p-B1oNdOdb.js.map} +1 -1
  118. package/dist/components/{p-IIsukGEV.js → p-B7buybCz.js} +3 -3
  119. package/dist/components/{p-IIsukGEV.js.map → p-B7buybCz.js.map} +1 -1
  120. package/dist/components/{p-C0nK1qtH.js → p-BCfTxJfb.js} +3 -3
  121. package/dist/components/{p-C0nK1qtH.js.map → p-BCfTxJfb.js.map} +1 -1
  122. package/dist/components/{p-CgbZe6eM.js → p-BDmKp20X.js} +7 -7
  123. package/dist/components/{p-CgbZe6eM.js.map → p-BDmKp20X.js.map} +1 -1
  124. package/dist/components/{p-DzDX8A_h.js → p-BHu8qhRh.js} +3 -3
  125. package/dist/components/{p-DzDX8A_h.js.map → p-BHu8qhRh.js.map} +1 -1
  126. package/dist/components/{p-BHKb3X7a.js → p-BRC3PsLk.js} +9 -9
  127. package/dist/components/{p-BHKb3X7a.js.map → p-BRC3PsLk.js.map} +1 -1
  128. package/dist/components/{p-CDFzZQgR.js → p-BUkor2Zh.js} +4 -4
  129. package/dist/components/{p-CDFzZQgR.js.map → p-BUkor2Zh.js.map} +1 -1
  130. package/dist/components/{p-kaKbklxN.js → p-B_qZwg8S.js} +27 -27
  131. package/dist/components/{p-kaKbklxN.js.map → p-B_qZwg8S.js.map} +1 -1
  132. package/dist/components/{p-BPaxQrtW.js → p-BakshEO1.js} +3 -3
  133. package/dist/components/{p-BPaxQrtW.js.map → p-BakshEO1.js.map} +1 -1
  134. package/dist/components/{p-CunjhIft.js → p-BdW7a50T.js} +8 -8
  135. package/dist/components/{p-CunjhIft.js.map → p-BdW7a50T.js.map} +1 -1
  136. package/dist/components/{p-DGRiUZlM.js → p-BjJWKf-L.js} +26 -26
  137. package/dist/components/{p-DGRiUZlM.js.map → p-BjJWKf-L.js.map} +1 -1
  138. package/dist/components/p-BpUKXYCJ.js +83 -0
  139. package/dist/components/p-BpUKXYCJ.js.map +1 -0
  140. package/dist/components/{p-B8nK0hJl.js → p-Bswg8Fe8.js} +11 -11
  141. package/dist/components/{p-B8nK0hJl.js.map → p-Bswg8Fe8.js.map} +1 -1
  142. package/dist/components/{p-BGMd4wA7.js → p-BzoreaCJ.js} +13 -13
  143. package/dist/components/{p-BGMd4wA7.js.map → p-BzoreaCJ.js.map} +1 -1
  144. package/dist/components/{p-dIi8HYZ5.js → p-CEXKKH9Z.js} +9 -9
  145. package/dist/components/{p-dIi8HYZ5.js.map → p-CEXKKH9Z.js.map} +1 -1
  146. package/dist/components/{p-WhDWrMQm.js → p-CFBQG_2F.js} +11 -11
  147. package/dist/components/{p-WhDWrMQm.js.map → p-CFBQG_2F.js.map} +1 -1
  148. package/dist/components/{p-ke4RFlpQ.js → p-CFK7G7AR.js} +25 -25
  149. package/dist/components/{p-ke4RFlpQ.js.map → p-CFK7G7AR.js.map} +1 -1
  150. package/dist/components/{p-Bs52WSYR.js → p-CFYTe0HU.js} +6 -6
  151. package/dist/components/{p-Bs52WSYR.js.map → p-CFYTe0HU.js.map} +1 -1
  152. package/dist/components/{p-CPRS8f3I.js → p-CGQDpB88.js} +13 -13
  153. package/dist/components/{p-CPRS8f3I.js.map → p-CGQDpB88.js.map} +1 -1
  154. package/dist/components/{p-D_x2HuZp.js → p-CJIN0YXw.js} +11 -11
  155. package/dist/components/{p-D_x2HuZp.js.map → p-CJIN0YXw.js.map} +1 -1
  156. package/dist/components/{p-Cn6fa00B.js → p-CVkbflKM.js} +3 -3
  157. package/dist/components/{p-Cn6fa00B.js.map → p-CVkbflKM.js.map} +1 -1
  158. package/dist/components/{p-B79DYGjE.js → p-CYuh1ogw.js} +3 -3
  159. package/dist/components/{p-B79DYGjE.js.map → p-CYuh1ogw.js.map} +1 -1
  160. package/dist/components/{p-CLHwiJsu.js → p-CZ5JrIih.js} +3 -3
  161. package/dist/components/{p-CLHwiJsu.js.map → p-CZ5JrIih.js.map} +1 -1
  162. package/dist/components/{p-BV_wbVq4.js → p-Cexe1-Oo.js} +3 -3
  163. package/dist/components/{p-BV_wbVq4.js.map → p-Cexe1-Oo.js.map} +1 -1
  164. package/dist/components/{p-D38Lnu3J.js → p-CfqdAcYb.js} +3 -3
  165. package/dist/components/{p-D38Lnu3J.js.map → p-CfqdAcYb.js.map} +1 -1
  166. package/dist/components/{p-DDAZR40U.js → p-Cry7waUN.js} +6 -6
  167. package/dist/components/{p-DDAZR40U.js.map → p-Cry7waUN.js.map} +1 -1
  168. package/dist/components/{p-DBr1-dfD.js → p-D0rJh5my.js} +3 -3
  169. package/dist/components/{p-DBr1-dfD.js.map → p-D0rJh5my.js.map} +1 -1
  170. package/dist/components/{p-GUGCYQ6F.js → p-DAGrOW1D.js} +5 -5
  171. package/dist/components/{p-GUGCYQ6F.js.map → p-DAGrOW1D.js.map} +1 -1
  172. package/dist/components/{p-DD5pf8Tj.js → p-DAelmHnU.js} +5 -5
  173. package/dist/components/{p-DD5pf8Tj.js.map → p-DAelmHnU.js.map} +1 -1
  174. package/dist/components/{p-D3n1gA61.js → p-DGdQtEJc.js} +11 -11
  175. package/dist/components/{p-D3n1gA61.js.map → p-DGdQtEJc.js.map} +1 -1
  176. package/dist/components/{p-XHSVTLB0.js → p-DMYs4VZa.js} +3 -3
  177. package/dist/components/{p-XHSVTLB0.js.map → p-DMYs4VZa.js.map} +1 -1
  178. package/dist/components/{p-DQh221R1.js → p-DQDtYaYV.js} +12 -12
  179. package/dist/components/{p-DQh221R1.js.map → p-DQDtYaYV.js.map} +1 -1
  180. package/dist/components/{p-BcXBFK4l.js → p-DjgJTYmV.js} +5 -5
  181. package/dist/components/{p-BcXBFK4l.js.map → p-DjgJTYmV.js.map} +1 -1
  182. package/dist/components/{p-X6ujIO0j.js → p-DmVSUzvg.js} +8 -8
  183. package/dist/components/{p-X6ujIO0j.js.map → p-DmVSUzvg.js.map} +1 -1
  184. package/dist/components/{p-B3jMBr0M.js → p-Dq3ca8_9.js} +10 -8
  185. package/dist/components/p-Dq3ca8_9.js.map +1 -0
  186. package/dist/components/{p-CUMKIsSw.js → p-Dt-0j6pv.js} +3 -3
  187. package/dist/components/{p-CUMKIsSw.js.map → p-Dt-0j6pv.js.map} +1 -1
  188. package/dist/components/{p-DkRVY3iu.js → p-Dt1l1CiO.js} +6 -6
  189. package/dist/components/{p-DkRVY3iu.js.map → p-Dt1l1CiO.js.map} +1 -1
  190. package/dist/components/{p-B86IoqG1.js → p-IhdX5vVL.js} +3 -3
  191. package/dist/components/{p-B86IoqG1.js.map → p-IhdX5vVL.js.map} +1 -1
  192. package/dist/components/{p-C8toWnqC.js → p-K9Q7whri.js} +4 -4
  193. package/dist/components/{p-C8toWnqC.js.map → p-K9Q7whri.js.map} +1 -1
  194. package/dist/components/p-NepfaUbg.js +42 -0
  195. package/dist/components/p-NepfaUbg.js.map +1 -0
  196. package/dist/components/{p-D5OLYsa3.js → p-NtCZcfeU.js} +4 -4
  197. package/dist/components/{p-D5OLYsa3.js.map → p-NtCZcfeU.js.map} +1 -1
  198. package/dist/components/{p-Crehnwtj.js → p-OzwT6cW-.js} +10 -10
  199. package/dist/components/{p-Crehnwtj.js.map → p-OzwT6cW-.js.map} +1 -1
  200. package/dist/components/{p-DxZzj3bW.js → p-_nUQ5iEk.js} +3 -3
  201. package/dist/components/{p-DxZzj3bW.js.map → p-_nUQ5iEk.js.map} +1 -1
  202. package/dist/components/{p-BodfySqq.js → p-b88NoejR.js} +4 -4
  203. package/dist/components/{p-BodfySqq.js.map → p-b88NoejR.js.map} +1 -1
  204. package/dist/components/{p-DmSZqyDY.js → p-dDTMckyL.js} +3 -3
  205. package/dist/components/{p-DmSZqyDY.js.map → p-dDTMckyL.js.map} +1 -1
  206. package/dist/components/{p-DGiDigbo.js → p-gJ8vsaSU.js} +9 -9
  207. package/dist/components/{p-DGiDigbo.js.map → p-gJ8vsaSU.js.map} +1 -1
  208. package/dist/components/{p-TyROYR6-.js → p-pXqgg9BU.js} +4 -4
  209. package/dist/components/{p-TyROYR6-.js.map → p-pXqgg9BU.js.map} +1 -1
  210. package/dist/components/{p-BgLJVBaB.js → p-q-sbO54X.js} +4 -4
  211. package/dist/components/{p-BgLJVBaB.js.map → p-q-sbO54X.js.map} +1 -1
  212. package/dist/components/{p-BwIyL1sF.js → p-r7qm8EsM.js} +11 -11
  213. package/dist/components/{p-BwIyL1sF.js.map → p-r7qm8EsM.js.map} +1 -1
  214. package/dist/components/{p-DB-CFkUZ.js → p-vZUBjvdn.js} +11 -11
  215. package/dist/components/{p-DB-CFkUZ.js.map → p-vZUBjvdn.js.map} +1 -1
  216. package/dist/components/{p-Blv4Px1q.js → p-xbfIS4ny.js} +4 -4
  217. package/dist/components/{p-Blv4Px1q.js.map → p-xbfIS4ny.js.map} +1 -1
  218. package/dist/components/{p-BQjKN6Ez.js → p-zOGAwuLP.js} +3 -3
  219. package/dist/components/{p-BQjKN6Ez.js.map → p-zOGAwuLP.js.map} +1 -1
  220. package/dist/components/verdocs-auth.js +3 -3
  221. package/dist/components/verdocs-build.js +41 -41
  222. package/dist/components/verdocs-button-panel.js +1 -1
  223. package/dist/components/verdocs-button.js +1 -1
  224. package/dist/components/verdocs-checkbox.js +1 -1
  225. package/dist/components/verdocs-component-error.js +1 -1
  226. package/dist/components/verdocs-contact-picker.js +1 -1
  227. package/dist/components/verdocs-date-input.js +3 -3
  228. package/dist/components/verdocs-delegate-dialog.d.ts +11 -0
  229. package/dist/components/verdocs-delegate-dialog.js +9 -0
  230. package/dist/components/verdocs-delegate-dialog.js.map +1 -0
  231. package/dist/components/verdocs-dialog.js +1 -36
  232. package/dist/components/verdocs-dialog.js.map +1 -1
  233. package/dist/components/verdocs-disclosure-dialog.d.ts +11 -0
  234. package/dist/components/verdocs-disclosure-dialog.js +9 -0
  235. package/dist/components/verdocs-disclosure-dialog.js.map +1 -0
  236. package/dist/components/verdocs-dropdown.js +1 -1
  237. package/dist/components/verdocs-envelope-document-page.js +1 -1
  238. package/dist/components/verdocs-envelope-recipient-link.js +1 -1
  239. package/dist/components/verdocs-envelope-recipient-summary.js +1 -1
  240. package/dist/components/verdocs-envelope-sidebar.js +10 -10
  241. package/dist/components/verdocs-envelope-sidebar.js.map +1 -1
  242. package/dist/components/verdocs-envelope-update-recipient.js +1 -1
  243. package/dist/components/verdocs-envelopes-list.js +16 -16
  244. package/dist/components/verdocs-field-attachment.js +1 -1
  245. package/dist/components/verdocs-field-checkbox.js +1 -1
  246. package/dist/components/verdocs-field-date.js +1 -1
  247. package/dist/components/verdocs-field-dropdown.js +1 -1
  248. package/dist/components/verdocs-field-initial.js +1 -1
  249. package/dist/components/verdocs-field-payment.js +9 -9
  250. package/dist/components/verdocs-field-radio.js +1 -1
  251. package/dist/components/verdocs-field-signature.js +1 -1
  252. package/dist/components/verdocs-field-textarea.js +1 -1
  253. package/dist/components/verdocs-field-textbox.js +1 -1
  254. package/dist/components/verdocs-field-timestamp.js +1 -1
  255. package/dist/components/verdocs-file-chooser.js +1 -1
  256. package/dist/components/verdocs-help-icon.js +1 -1
  257. package/dist/components/verdocs-initial-dialog.js +1 -1
  258. package/dist/components/verdocs-kba-dialog.js +1 -1
  259. package/dist/components/verdocs-loader.js +1 -1
  260. package/dist/components/verdocs-menu-panel.js +1 -1
  261. package/dist/components/verdocs-multiselect.js +2 -2
  262. package/dist/components/verdocs-ok-dialog.js +1 -1
  263. package/dist/components/verdocs-organization-card.js +2 -2
  264. package/dist/components/verdocs-otp-dialog.js +1 -1
  265. package/dist/components/verdocs-pagination.js +1 -1
  266. package/dist/components/verdocs-portal.js +1 -1
  267. package/dist/components/verdocs-preview.js +1 -1
  268. package/dist/components/verdocs-progress-bar.js +1 -1
  269. package/dist/components/verdocs-quick-filter.js +1 -1
  270. package/dist/components/verdocs-quick-functions.js +1 -1
  271. package/dist/components/verdocs-radio-button.js +1 -1
  272. package/dist/components/verdocs-search-box.js +1 -1
  273. package/dist/components/verdocs-search-tabs.js +1 -1
  274. package/dist/components/verdocs-select-input.js +1 -1
  275. package/dist/components/verdocs-send.js +1 -1
  276. package/dist/components/verdocs-sign.js +77 -24
  277. package/dist/components/verdocs-sign.js.map +1 -1
  278. package/dist/components/verdocs-signature-dialog.js +1 -1
  279. package/dist/components/verdocs-spinner.js +1 -1
  280. package/dist/components/verdocs-status-indicator.js +1 -1
  281. package/dist/components/verdocs-switch.js +1 -1
  282. package/dist/components/verdocs-table.js +2 -2
  283. package/dist/components/verdocs-tabs.js +1 -1
  284. package/dist/components/verdocs-template-attachments.js +1 -1
  285. package/dist/components/verdocs-template-build-tabs.js +1 -1
  286. package/dist/components/verdocs-template-card.js +1 -1
  287. package/dist/components/verdocs-template-create.js +4 -4
  288. package/dist/components/verdocs-template-document-page.js +1 -1
  289. package/dist/components/verdocs-template-field-properties.js +1 -1
  290. package/dist/components/verdocs-template-fields.js +1 -1
  291. package/dist/components/verdocs-template-role-properties.js +1 -1
  292. package/dist/components/verdocs-template-roles.js +1 -1
  293. package/dist/components/verdocs-template-settings.js +1 -1
  294. package/dist/components/verdocs-template-star.js +1 -1
  295. package/dist/components/verdocs-template-tags.js +1 -1
  296. package/dist/components/verdocs-templates-list.js +17 -17
  297. package/dist/components/verdocs-text-input.js +1 -1
  298. package/dist/components/verdocs-toggle-button.js +1 -1
  299. package/dist/components/verdocs-toggle.js +1 -1
  300. package/dist/components/verdocs-toolbar-icon.js +1 -1
  301. package/dist/components/verdocs-upload-dialog.js +1 -1
  302. package/dist/components/verdocs-view.js +1 -1
  303. package/dist/custom-elements.json +30 -0
  304. package/dist/esm/index-CF7i8guW.js +6 -6
  305. package/dist/esm/loader.js +1 -1
  306. package/dist/esm/verdocs-button-panel_2.entry.js +3 -3
  307. package/dist/esm/verdocs-button_3.entry.js +6 -6
  308. package/dist/esm/verdocs-checkbox_5.entry.js +4 -4
  309. package/dist/esm/verdocs-contact-picker.entry.js +5 -3
  310. package/dist/esm/verdocs-contact-picker.entry.js.map +1 -1
  311. package/dist/esm/verdocs-date-input.entry.js +2 -2
  312. package/dist/esm/verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +1 -0
  313. package/dist/esm/{verdocs-kba-dialog_3.entry.js → verdocs-delegate-dialog_5.entry.js} +73 -6
  314. package/dist/esm/verdocs-delegate-dialog_5.entry.js.map +1 -0
  315. package/dist/esm/verdocs-dialog.entry.js +4 -3
  316. package/dist/esm/verdocs-dialog.entry.js.map +1 -1
  317. package/dist/esm/verdocs-dropdown.entry.js +1 -1
  318. package/dist/esm/verdocs-envelope-document-page.entry.js +1 -1
  319. package/dist/esm/verdocs-envelope-sidebar.entry.js +1 -1
  320. package/dist/esm/verdocs-envelope-sidebar.entry.js.map +1 -1
  321. package/dist/esm/verdocs-envelopes-list.entry.js +6 -6
  322. package/dist/esm/verdocs-field-attachment_13.entry.js +3 -3
  323. package/dist/esm/verdocs-file-chooser_2.entry.js +2 -2
  324. package/dist/esm/verdocs-menu-panel_2.entry.js +8 -8
  325. package/dist/esm/verdocs-multiselect.entry.js +1 -1
  326. package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
  327. package/dist/esm/verdocs-organization-card_2.entry.js +2 -2
  328. package/dist/esm/verdocs-pagination_2.entry.js +2 -2
  329. package/dist/esm/verdocs-quick-functions.entry.js +1 -1
  330. package/dist/esm/verdocs-radio-button.entry.js +1 -1
  331. package/dist/esm/verdocs-search-box.entry.js +1 -1
  332. package/dist/esm/verdocs-search-tabs.entry.js +1 -1
  333. package/dist/esm/verdocs-sign.entry.js +41 -9
  334. package/dist/esm/verdocs-sign.entry.js.map +1 -1
  335. package/dist/esm/verdocs-spinner.entry.js +1 -1
  336. package/dist/esm/verdocs-status-indicator.entry.js +2 -2
  337. package/dist/esm/verdocs-switch.entry.js +2 -2
  338. package/dist/esm/verdocs-table.entry.js +2 -2
  339. package/dist/esm/verdocs-template-card.entry.js +1 -1
  340. package/dist/esm/verdocs-template-document-page_2.entry.js +1 -1
  341. package/dist/esm/verdocs-template-star.entry.js +1 -1
  342. package/dist/esm/verdocs-template-tags.entry.js +1 -1
  343. package/dist/esm/verdocs-templates-list.entry.js +7 -7
  344. package/dist/esm/verdocs-toggle-button.entry.js +1 -1
  345. package/dist/esm/verdocs-toggle.entry.js +1 -1
  346. package/dist/esm/verdocs-web-sdk.js +1 -1
  347. package/dist/esm-es5/index-CF7i8guW.js +1 -1
  348. package/dist/esm-es5/loader.js +1 -1
  349. package/dist/esm-es5/verdocs-button-panel_2.entry.js +1 -1
  350. package/dist/esm-es5/verdocs-button_3.entry.js +1 -1
  351. package/dist/esm-es5/verdocs-checkbox_5.entry.js +1 -1
  352. package/dist/esm-es5/verdocs-contact-picker.entry.js +1 -1
  353. package/dist/esm-es5/verdocs-contact-picker.entry.js.map +1 -1
  354. package/dist/esm-es5/verdocs-date-input.entry.js +1 -1
  355. package/dist/esm-es5/verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +1 -0
  356. package/dist/esm-es5/verdocs-delegate-dialog_5.entry.js +2 -0
  357. package/dist/esm-es5/verdocs-delegate-dialog_5.entry.js.map +1 -0
  358. package/dist/esm-es5/verdocs-dialog.entry.js +1 -1
  359. package/dist/esm-es5/verdocs-dialog.entry.js.map +1 -1
  360. package/dist/esm-es5/verdocs-dropdown.entry.js +1 -1
  361. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
  362. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  363. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js.map +1 -1
  364. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  365. package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
  366. package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
  367. package/dist/esm-es5/verdocs-menu-panel_2.entry.js +1 -1
  368. package/dist/esm-es5/verdocs-multiselect.entry.js +1 -1
  369. package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
  370. package/dist/esm-es5/verdocs-organization-card_2.entry.js +1 -1
  371. package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
  372. package/dist/esm-es5/verdocs-quick-functions.entry.js +1 -1
  373. package/dist/esm-es5/verdocs-radio-button.entry.js +1 -1
  374. package/dist/esm-es5/verdocs-search-box.entry.js +1 -1
  375. package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
  376. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  377. package/dist/esm-es5/verdocs-sign.entry.js.map +1 -1
  378. package/dist/esm-es5/verdocs-spinner.entry.js +1 -1
  379. package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
  380. package/dist/esm-es5/verdocs-switch.entry.js +1 -1
  381. package/dist/esm-es5/verdocs-table.entry.js +1 -1
  382. package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
  383. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  384. package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
  385. package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
  386. package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
  387. package/dist/esm-es5/verdocs-toggle-button.entry.js +1 -1
  388. package/dist/esm-es5/verdocs-toggle.entry.js +1 -1
  389. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  390. package/dist/types/components/dialogs/verdocs-delegate-dialog/verdocs-delegate-dialog.d.ts +38 -0
  391. package/dist/types/components/dialogs/verdocs-disclosure-dialog/verdocs-disclosure-dialog.d.ts +32 -0
  392. package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +4 -1
  393. package/dist/types/components.d.ts +122 -0
  394. package/dist/verdocs-web-sdk/{p-ac60c75d.entry.js → p-034eb84e.entry.js} +2 -2
  395. package/dist/verdocs-web-sdk/{p-b720bffc.entry.js → p-0359f32e.entry.js} +2 -2
  396. package/dist/verdocs-web-sdk/{p-0613e287.entry.js → p-0a1dc128.entry.js} +2 -2
  397. package/dist/verdocs-web-sdk/p-14467744.entry.js +2 -0
  398. package/dist/verdocs-web-sdk/p-14467744.entry.js.map +1 -0
  399. package/dist/verdocs-web-sdk/{p-f28a1014.entry.js → p-1c4b4425.entry.js} +2 -2
  400. package/dist/verdocs-web-sdk/{p-795cb651.system.entry.js → p-204afc1e.system.entry.js} +2 -2
  401. package/dist/verdocs-web-sdk/{p-db4f8a0d.entry.js → p-2dab79c8.entry.js} +2 -2
  402. package/dist/verdocs-web-sdk/{p-48299322.entry.js → p-327e38bf.entry.js} +2 -2
  403. package/dist/verdocs-web-sdk/{p-32d77c26.entry.js → p-356af98a.entry.js} +2 -2
  404. package/dist/verdocs-web-sdk/{p-8e4e1679.system.entry.js → p-3ab1625e.system.entry.js} +2 -2
  405. package/dist/verdocs-web-sdk/{p-44de70af.system.entry.js → p-427eaf21.system.entry.js} +2 -2
  406. package/dist/verdocs-web-sdk/{p-484341d0.entry.js → p-43971b64.entry.js} +2 -2
  407. package/dist/verdocs-web-sdk/p-4704cf14.entry.js +2 -0
  408. package/dist/verdocs-web-sdk/p-4704cf14.entry.js.map +1 -0
  409. package/dist/verdocs-web-sdk/{p-191dacad.system.entry.js → p-48366bb6.system.entry.js} +2 -2
  410. package/dist/verdocs-web-sdk/{p-d10eb5d0.entry.js → p-4a0dc414.entry.js} +2 -2
  411. package/dist/verdocs-web-sdk/{p-6fbe86fa.system.entry.js → p-4c5bb9d1.system.entry.js} +2 -2
  412. package/dist/verdocs-web-sdk/p-53fd51ca.system.entry.js +2 -0
  413. package/dist/verdocs-web-sdk/p-53fd51ca.system.entry.js.map +1 -0
  414. package/dist/verdocs-web-sdk/{p-c639c1aa.system.entry.js → p-596326ba.system.entry.js} +2 -2
  415. package/dist/verdocs-web-sdk/p-59723c89.entry.js +2 -0
  416. package/dist/verdocs-web-sdk/{p-1718b823.entry.js.map → p-59723c89.entry.js.map} +1 -1
  417. package/dist/verdocs-web-sdk/p-5cb6d4e0.system.entry.js +2 -0
  418. package/dist/verdocs-web-sdk/p-5cb6d4e0.system.entry.js.map +1 -0
  419. package/dist/verdocs-web-sdk/{p-aa6faf0b.entry.js → p-5f8f5f48.entry.js} +2 -2
  420. package/dist/verdocs-web-sdk/{p-9b1b273c.entry.js → p-6013eb3f.entry.js} +2 -2
  421. package/dist/verdocs-web-sdk/{p-aa18533b.entry.js → p-672b6b7b.entry.js} +2 -2
  422. package/dist/verdocs-web-sdk/{p-fb00149a.entry.js → p-68b11f68.entry.js} +2 -2
  423. package/dist/verdocs-web-sdk/{p-9f2bde83.system.entry.js → p-6a5c1de9.system.entry.js} +2 -2
  424. package/dist/verdocs-web-sdk/p-6f6a0c7a.system.entry.js +2 -0
  425. package/dist/verdocs-web-sdk/{p-9766843a.system.entry.js → p-72c996d0.system.entry.js} +2 -2
  426. package/dist/verdocs-web-sdk/{p-69c97fa9.system.entry.js → p-72e9198d.system.entry.js} +2 -2
  427. package/dist/verdocs-web-sdk/{p-69c97fa9.system.entry.js.map → p-72e9198d.system.entry.js.map} +1 -1
  428. package/dist/verdocs-web-sdk/{p-e579e74c.system.entry.js → p-767c93e8.system.entry.js} +2 -2
  429. package/dist/verdocs-web-sdk/{p-9f4c393c.system.entry.js → p-76aed8e2.system.entry.js} +2 -2
  430. package/dist/verdocs-web-sdk/p-76aed8e2.system.entry.js.map +1 -0
  431. package/dist/verdocs-web-sdk/{p-49522ebb.entry.js → p-784daaf3.entry.js} +2 -2
  432. package/dist/verdocs-web-sdk/{p-ebf5f173.system.entry.js → p-7966d40d.system.entry.js} +2 -2
  433. package/dist/verdocs-web-sdk/{p-76215a73.entry.js → p-79f5ee74.entry.js} +2 -2
  434. package/dist/verdocs-web-sdk/{p-4054c5cc.entry.js → p-7acbd898.entry.js} +2 -2
  435. package/dist/verdocs-web-sdk/{p-ecefb50c.system.entry.js → p-7f085b76.system.entry.js} +2 -2
  436. package/dist/verdocs-web-sdk/{p-832e4346.entry.js → p-80f0dfbc.entry.js} +2 -2
  437. package/dist/verdocs-web-sdk/p-80f0dfbc.entry.js.map +1 -0
  438. package/dist/verdocs-web-sdk/{p-0cbb6332.system.entry.js → p-863df983.system.entry.js} +2 -2
  439. package/dist/verdocs-web-sdk/{p-e8713631.entry.js → p-86e18c44.entry.js} +3 -3
  440. package/dist/verdocs-web-sdk/{p-e8713631.entry.js.map → p-86e18c44.entry.js.map} +1 -1
  441. package/dist/verdocs-web-sdk/{p-71793bb2.entry.js → p-92d45701.entry.js} +2 -2
  442. package/dist/verdocs-web-sdk/{p-ff1f32b2.entry.js → p-99f4f945.entry.js} +2 -2
  443. package/dist/verdocs-web-sdk/p-B0YnqF33.system.js.map +1 -0
  444. package/dist/verdocs-web-sdk/{p-BQeD2Uzl.system.js.map → p-B8hJTIPP.system.js.map} +1 -1
  445. package/dist/verdocs-web-sdk/{p-DnhrroGp.system.js.map → p-BAthDv8w.system.js.map} +1 -1
  446. package/dist/verdocs-web-sdk/{p-BH-YVoIR.system.js.map → p-BMQPYgf_.system.js.map} +1 -1
  447. package/dist/verdocs-web-sdk/{p-CzcrfRov.system.js.map → p-BOuTTVR2.system.js.map} +1 -1
  448. package/dist/verdocs-web-sdk/{p-Bf4B0vsS.system.js.map → p-BPt7ZeYN.system.js.map} +1 -1
  449. package/dist/verdocs-web-sdk/{p-Bv035E2W.system.js.map → p-Bbn-DzjB.system.js.map} +1 -1
  450. package/dist/verdocs-web-sdk/p-Bo8r8IOt.system.js.map +1 -0
  451. package/dist/verdocs-web-sdk/{p-Dt0S5N8D.system.js.map → p-C3pXyYu2.system.js.map} +1 -1
  452. package/dist/verdocs-web-sdk/{p-BqV2sLyM.system.js.map → p-C4wFtWGl.system.js.map} +1 -1
  453. package/dist/verdocs-web-sdk/{p-C99h0Uet.system.js.map → p-CAPHli3W.system.js.map} +1 -1
  454. package/dist/verdocs-web-sdk/{p-fih-g25U.system.js.map → p-CHZu9FwY.system.js.map} +1 -1
  455. package/dist/verdocs-web-sdk/p-CZ0N9seS.system.js.map +1 -0
  456. package/dist/verdocs-web-sdk/{p-DAWcoDTu.system.js.map → p-CflLDny-.system.js.map} +1 -1
  457. package/dist/verdocs-web-sdk/p-CtasYnde.system.js.map +1 -0
  458. package/dist/verdocs-web-sdk/{p-DwPw01KR.system.js.map → p-Ctlx9aRK.system.js.map} +1 -1
  459. package/dist/verdocs-web-sdk/p-CwXSduhy.system.js +1 -1
  460. package/dist/verdocs-web-sdk/{p-DtqpEcJn.system.js.map → p-CxebBOfo.system.js.map} +1 -1
  461. package/dist/verdocs-web-sdk/{p-BXdHDPn2.system.js.map → p-D2By4ZeB.system.js.map} +1 -1
  462. package/dist/verdocs-web-sdk/{p-DHGQrIAb.system.js.map → p-D6pYq1ZB.system.js.map} +1 -1
  463. package/dist/verdocs-web-sdk/{p-DFOpAjqC.system.js.map → p-DAZ_KnJG.system.js.map} +1 -1
  464. package/dist/verdocs-web-sdk/{p-CgaVlmPG.system.js.map → p-DPRVGzF_.system.js.map} +1 -1
  465. package/dist/verdocs-web-sdk/{p-DqMEkp6a.system.js.map → p-DXKG6_cs.system.js.map} +1 -1
  466. package/dist/verdocs-web-sdk/{p--x2D_CxE.system.js.map → p-Dmi3C21y.system.js.map} +1 -1
  467. package/dist/verdocs-web-sdk/{p-CJHhU-q9.system.js.map → p-DpJ6fOKq.system.js.map} +1 -1
  468. package/dist/verdocs-web-sdk/{p-CqlWk1GQ.system.js.map → p-Ds5wL-Co.system.js.map} +1 -1
  469. package/dist/verdocs-web-sdk/{p-DR2NwM3E.system.js.map → p-Dx9QGjeG.system.js.map} +1 -1
  470. package/dist/verdocs-web-sdk/{p-BEa6VFpF.system.js.map → p-F6cjv9kE.system.js.map} +1 -1
  471. package/dist/verdocs-web-sdk/{p-D3kzqvo2.system.js.map → p-L5sYoH8b.system.js.map} +1 -1
  472. package/dist/verdocs-web-sdk/{p-CNuYIT4Z.system.js.map → p-LIkyGpz6.system.js.map} +1 -1
  473. package/dist/verdocs-web-sdk/{p-C6DpDki6.system.js.map → p-U0rW0Gqv.system.js.map} +1 -1
  474. package/dist/verdocs-web-sdk/{p-5a4af164.system.entry.js → p-a279bb92.system.entry.js} +2 -2
  475. package/dist/verdocs-web-sdk/p-a734eed0.entry.js +2 -0
  476. package/dist/verdocs-web-sdk/{p-7c6f814c.system.entry.js → p-a95c074c.system.entry.js} +2 -2
  477. package/dist/verdocs-web-sdk/{p-68b0e020.system.entry.js → p-b7da67bb.system.entry.js} +2 -2
  478. package/dist/verdocs-web-sdk/{p-b8de1cb7.entry.js → p-b9d72eab.entry.js} +2 -2
  479. package/dist/verdocs-web-sdk/{p-cb428e80.entry.js → p-ba3df500.entry.js} +2 -2
  480. package/dist/verdocs-web-sdk/{p-a37e8f84.system.entry.js → p-be6db7c0.system.entry.js} +2 -2
  481. package/dist/verdocs-web-sdk/{p-56c75804.system.entry.js → p-bf90e30b.system.entry.js} +2 -2
  482. package/dist/verdocs-web-sdk/{p-ae16382f.system.entry.js → p-c0ec2636.system.entry.js} +2 -2
  483. package/dist/verdocs-web-sdk/{p-65a5d2d4.system.entry.js → p-c1c4603e.system.entry.js} +2 -2
  484. package/dist/verdocs-web-sdk/{p-805c4396.system.entry.js → p-c48624a8.system.entry.js} +2 -2
  485. package/dist/verdocs-web-sdk/{p-BsWaGIkx.system.js.map → p-cI4bagwT.system.js.map} +1 -1
  486. package/dist/verdocs-web-sdk/{p-720ceced.entry.js → p-cc823255.entry.js} +2 -2
  487. package/dist/verdocs-web-sdk/{p-0134d663.system.entry.js → p-cc9e6049.system.entry.js} +2 -2
  488. package/dist/verdocs-web-sdk/{p-e50ba55a.entry.js → p-cd56307c.entry.js} +2 -2
  489. package/dist/verdocs-web-sdk/{p-193b964f.system.entry.js → p-cd60348a.system.entry.js} +2 -2
  490. package/dist/verdocs-web-sdk/{p-50c4a3da.system.entry.js → p-ce2336aa.system.entry.js} +2 -2
  491. package/dist/verdocs-web-sdk/{p-a3354a48.entry.js → p-d1e99a40.entry.js} +2 -2
  492. package/dist/verdocs-web-sdk/p-d5c66bc3.entry.js +2 -0
  493. package/dist/verdocs-web-sdk/p-d5c66bc3.entry.js.map +1 -0
  494. package/dist/verdocs-web-sdk/p-d907fa45.system.entry.js +2 -0
  495. package/dist/verdocs-web-sdk/p-d907fa45.system.entry.js.map +1 -0
  496. package/dist/verdocs-web-sdk/{p-a4320fdc.system.entry.js → p-dbb8413d.system.entry.js} +2 -2
  497. package/dist/verdocs-web-sdk/{p-43326217.entry.js → p-e6fd14d5.entry.js} +2 -2
  498. package/dist/verdocs-web-sdk/{p-3e005d7f.entry.js → p-e801f4ac.entry.js} +2 -2
  499. package/dist/verdocs-web-sdk/{p-1c66bd2c.system.entry.js → p-e8c146fc.system.entry.js} +2 -2
  500. package/dist/verdocs-web-sdk/{p-f4a3d054.system.entry.js → p-ed194be6.system.entry.js} +2 -2
  501. package/dist/verdocs-web-sdk/{p-289ad8d2.system.entry.js → p-efc459f7.system.entry.js} +2 -2
  502. package/dist/verdocs-web-sdk/{p-c0591548.system.entry.js → p-f46b9924.system.entry.js} +2 -2
  503. package/dist/verdocs-web-sdk/{p-07a175f6.entry.js → p-f5677a98.entry.js} +2 -2
  504. package/dist/verdocs-web-sdk/{p-d3d531e3.entry.js → p-f66b18e0.entry.js} +2 -2
  505. package/dist/verdocs-web-sdk/{p-CtQG0G-c.system.js.map → p-luuB7PWr.system.js.map} +1 -1
  506. package/dist/verdocs-web-sdk/{p-CMjFvlqO.system.js.map → p-rPgqdDgT.system.js.map} +1 -1
  507. package/dist/verdocs-web-sdk/{p-B9makh4c.system.js.map → p-ynZKIneZ.system.js.map} +1 -1
  508. package/dist/verdocs-web-sdk/verdocs-contact-picker.entry.esm.js.map +1 -1
  509. package/dist/{esm/verdocs-kba-dialog_3.entry.js.map → verdocs-web-sdk/verdocs-delegate-dialog.verdocs-disclosure-dialog.verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.esm.js.map} +1 -1
  510. package/dist/verdocs-web-sdk/verdocs-dialog.entry.esm.js.map +1 -1
  511. package/dist/verdocs-web-sdk/verdocs-envelope-sidebar.entry.esm.js.map +1 -1
  512. package/dist/verdocs-web-sdk/verdocs-sign.entry.esm.js.map +1 -1
  513. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  514. package/package.json +3 -3
  515. package/dist/cjs/verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.cjs.js.map +0 -1
  516. package/dist/cjs/verdocs-kba-dialog_3.cjs.entry.js.map +0 -1
  517. package/dist/components/p-B3jMBr0M.js.map +0 -1
  518. package/dist/esm/verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +0 -1
  519. package/dist/esm-es5/verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.js.map +0 -1
  520. package/dist/esm-es5/verdocs-kba-dialog_3.entry.js +0 -2
  521. package/dist/esm-es5/verdocs-kba-dialog_3.entry.js.map +0 -1
  522. package/dist/verdocs-web-sdk/p-1718b823.entry.js +0 -2
  523. package/dist/verdocs-web-sdk/p-1ad8c20c.entry.js +0 -2
  524. package/dist/verdocs-web-sdk/p-33edf6a4.system.entry.js +0 -2
  525. package/dist/verdocs-web-sdk/p-3aabadbe.entry.js +0 -2
  526. package/dist/verdocs-web-sdk/p-3aabadbe.entry.js.map +0 -1
  527. package/dist/verdocs-web-sdk/p-832e4346.entry.js.map +0 -1
  528. package/dist/verdocs-web-sdk/p-9f4c393c.system.entry.js.map +0 -1
  529. package/dist/verdocs-web-sdk/p-C2JOLTNG.system.js.map +0 -1
  530. package/dist/verdocs-web-sdk/p-CC3tLap5.system.js.map +0 -1
  531. package/dist/verdocs-web-sdk/p-DM4F2Fmu.system.js.map +0 -1
  532. package/dist/verdocs-web-sdk/p-Dt57R1T4.system.js.map +0 -1
  533. package/dist/verdocs-web-sdk/p-a224a4cc.system.entry.js +0 -2
  534. package/dist/verdocs-web-sdk/p-bec52dd1.system.entry.js +0 -2
  535. package/dist/verdocs-web-sdk/p-bec52dd1.system.entry.js.map +0 -1
  536. package/dist/verdocs-web-sdk/p-d5790af4.system.entry.js +0 -2
  537. package/dist/verdocs-web-sdk/p-d5790af4.system.entry.js.map +0 -1
  538. package/dist/verdocs-web-sdk/p-d8b36d95.entry.js +0 -2
  539. package/dist/verdocs-web-sdk/p-d8b36d95.entry.js.map +0 -1
  540. package/dist/verdocs-web-sdk/p-df954c57.entry.js +0 -2
  541. package/dist/verdocs-web-sdk/p-df954c57.entry.js.map +0 -1
  542. package/dist/verdocs-web-sdk/verdocs-kba-dialog.verdocs-otp-dialog.verdocs-view.entry.esm.js.map +0 -1
  543. /package/dist/verdocs-web-sdk/{p-ac60c75d.entry.js.map → p-034eb84e.entry.js.map} +0 -0
  544. /package/dist/verdocs-web-sdk/{p-b720bffc.entry.js.map → p-0359f32e.entry.js.map} +0 -0
  545. /package/dist/verdocs-web-sdk/{p-0613e287.entry.js.map → p-0a1dc128.entry.js.map} +0 -0
  546. /package/dist/verdocs-web-sdk/{p-f28a1014.entry.js.map → p-1c4b4425.entry.js.map} +0 -0
  547. /package/dist/verdocs-web-sdk/{p-795cb651.system.entry.js.map → p-204afc1e.system.entry.js.map} +0 -0
  548. /package/dist/verdocs-web-sdk/{p-db4f8a0d.entry.js.map → p-2dab79c8.entry.js.map} +0 -0
  549. /package/dist/verdocs-web-sdk/{p-48299322.entry.js.map → p-327e38bf.entry.js.map} +0 -0
  550. /package/dist/verdocs-web-sdk/{p-32d77c26.entry.js.map → p-356af98a.entry.js.map} +0 -0
  551. /package/dist/verdocs-web-sdk/{p-8e4e1679.system.entry.js.map → p-3ab1625e.system.entry.js.map} +0 -0
  552. /package/dist/verdocs-web-sdk/{p-44de70af.system.entry.js.map → p-427eaf21.system.entry.js.map} +0 -0
  553. /package/dist/verdocs-web-sdk/{p-484341d0.entry.js.map → p-43971b64.entry.js.map} +0 -0
  554. /package/dist/verdocs-web-sdk/{p-191dacad.system.entry.js.map → p-48366bb6.system.entry.js.map} +0 -0
  555. /package/dist/verdocs-web-sdk/{p-d10eb5d0.entry.js.map → p-4a0dc414.entry.js.map} +0 -0
  556. /package/dist/verdocs-web-sdk/{p-6fbe86fa.system.entry.js.map → p-4c5bb9d1.system.entry.js.map} +0 -0
  557. /package/dist/verdocs-web-sdk/{p-c639c1aa.system.entry.js.map → p-596326ba.system.entry.js.map} +0 -0
  558. /package/dist/verdocs-web-sdk/{p-aa6faf0b.entry.js.map → p-5f8f5f48.entry.js.map} +0 -0
  559. /package/dist/verdocs-web-sdk/{p-9b1b273c.entry.js.map → p-6013eb3f.entry.js.map} +0 -0
  560. /package/dist/verdocs-web-sdk/{p-aa18533b.entry.js.map → p-672b6b7b.entry.js.map} +0 -0
  561. /package/dist/verdocs-web-sdk/{p-fb00149a.entry.js.map → p-68b11f68.entry.js.map} +0 -0
  562. /package/dist/verdocs-web-sdk/{p-9f2bde83.system.entry.js.map → p-6a5c1de9.system.entry.js.map} +0 -0
  563. /package/dist/verdocs-web-sdk/{p-33edf6a4.system.entry.js.map → p-6f6a0c7a.system.entry.js.map} +0 -0
  564. /package/dist/verdocs-web-sdk/{p-9766843a.system.entry.js.map → p-72c996d0.system.entry.js.map} +0 -0
  565. /package/dist/verdocs-web-sdk/{p-e579e74c.system.entry.js.map → p-767c93e8.system.entry.js.map} +0 -0
  566. /package/dist/verdocs-web-sdk/{p-49522ebb.entry.js.map → p-784daaf3.entry.js.map} +0 -0
  567. /package/dist/verdocs-web-sdk/{p-ebf5f173.system.entry.js.map → p-7966d40d.system.entry.js.map} +0 -0
  568. /package/dist/verdocs-web-sdk/{p-76215a73.entry.js.map → p-79f5ee74.entry.js.map} +0 -0
  569. /package/dist/verdocs-web-sdk/{p-4054c5cc.entry.js.map → p-7acbd898.entry.js.map} +0 -0
  570. /package/dist/verdocs-web-sdk/{p-ecefb50c.system.entry.js.map → p-7f085b76.system.entry.js.map} +0 -0
  571. /package/dist/verdocs-web-sdk/{p-0cbb6332.system.entry.js.map → p-863df983.system.entry.js.map} +0 -0
  572. /package/dist/verdocs-web-sdk/{p-71793bb2.entry.js.map → p-92d45701.entry.js.map} +0 -0
  573. /package/dist/verdocs-web-sdk/{p-ff1f32b2.entry.js.map → p-99f4f945.entry.js.map} +0 -0
  574. /package/dist/verdocs-web-sdk/{p-5a4af164.system.entry.js.map → p-a279bb92.system.entry.js.map} +0 -0
  575. /package/dist/verdocs-web-sdk/{p-1ad8c20c.entry.js.map → p-a734eed0.entry.js.map} +0 -0
  576. /package/dist/verdocs-web-sdk/{p-7c6f814c.system.entry.js.map → p-a95c074c.system.entry.js.map} +0 -0
  577. /package/dist/verdocs-web-sdk/{p-68b0e020.system.entry.js.map → p-b7da67bb.system.entry.js.map} +0 -0
  578. /package/dist/verdocs-web-sdk/{p-b8de1cb7.entry.js.map → p-b9d72eab.entry.js.map} +0 -0
  579. /package/dist/verdocs-web-sdk/{p-cb428e80.entry.js.map → p-ba3df500.entry.js.map} +0 -0
  580. /package/dist/verdocs-web-sdk/{p-a37e8f84.system.entry.js.map → p-be6db7c0.system.entry.js.map} +0 -0
  581. /package/dist/verdocs-web-sdk/{p-56c75804.system.entry.js.map → p-bf90e30b.system.entry.js.map} +0 -0
  582. /package/dist/verdocs-web-sdk/{p-ae16382f.system.entry.js.map → p-c0ec2636.system.entry.js.map} +0 -0
  583. /package/dist/verdocs-web-sdk/{p-65a5d2d4.system.entry.js.map → p-c1c4603e.system.entry.js.map} +0 -0
  584. /package/dist/verdocs-web-sdk/{p-805c4396.system.entry.js.map → p-c48624a8.system.entry.js.map} +0 -0
  585. /package/dist/verdocs-web-sdk/{p-720ceced.entry.js.map → p-cc823255.entry.js.map} +0 -0
  586. /package/dist/verdocs-web-sdk/{p-0134d663.system.entry.js.map → p-cc9e6049.system.entry.js.map} +0 -0
  587. /package/dist/verdocs-web-sdk/{p-e50ba55a.entry.js.map → p-cd56307c.entry.js.map} +0 -0
  588. /package/dist/verdocs-web-sdk/{p-193b964f.system.entry.js.map → p-cd60348a.system.entry.js.map} +0 -0
  589. /package/dist/verdocs-web-sdk/{p-50c4a3da.system.entry.js.map → p-ce2336aa.system.entry.js.map} +0 -0
  590. /package/dist/verdocs-web-sdk/{p-a3354a48.entry.js.map → p-d1e99a40.entry.js.map} +0 -0
  591. /package/dist/verdocs-web-sdk/{p-a4320fdc.system.entry.js.map → p-dbb8413d.system.entry.js.map} +0 -0
  592. /package/dist/verdocs-web-sdk/{p-43326217.entry.js.map → p-e6fd14d5.entry.js.map} +0 -0
  593. /package/dist/verdocs-web-sdk/{p-3e005d7f.entry.js.map → p-e801f4ac.entry.js.map} +0 -0
  594. /package/dist/verdocs-web-sdk/{p-1c66bd2c.system.entry.js.map → p-e8c146fc.system.entry.js.map} +0 -0
  595. /package/dist/verdocs-web-sdk/{p-f4a3d054.system.entry.js.map → p-ed194be6.system.entry.js.map} +0 -0
  596. /package/dist/verdocs-web-sdk/{p-289ad8d2.system.entry.js.map → p-efc459f7.system.entry.js.map} +0 -0
  597. /package/dist/verdocs-web-sdk/{p-c0591548.system.entry.js.map → p-f46b9924.system.entry.js.map} +0 -0
  598. /package/dist/verdocs-web-sdk/{p-07a175f6.entry.js.map → p-f5677a98.entry.js.map} +0 -0
  599. /package/dist/verdocs-web-sdk/{p-d3d531e3.entry.js.map → p-f66b18e0.entry.js.map} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"p-Dt57R1T4.system.js","sources":["src/components/dialogs/verdocs-dialog/verdocs-dialog.scss?tag=verdocs-dialog","src/components/dialogs/verdocs-dialog/verdocs-dialog.tsx"],"sourcesContent":["@import '../../../theme.scss';\n\nverdocs-dialog {\n font-family: $primary-font;\n box-sizing: border-box;\n\n div {\n box-sizing: border-box;\n }\n\n .background-overlay {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n z-index: 10000;\n position: absolute;\n align-items: center;\n background: #0000007f;\n justify-content: center;\n }\n\n .dialog {\n width: 420px;\n display: flex;\n max-width: 100%;\n overflow: hidden;\n border-radius: 4px;\n flex-direction: column;\n background: $verdocs-grey-4;\n box-shadow: 3px 3px 5px 1px rgba(40, 40, 40, 0.4);\n }\n\n .heading {\n display: flex;\n font-size: 16px;\n font-weight: 500;\n padding: 8px 16px;\n flex-direction: row;\n color: $verdocs-grey-4;\n background: $verdocs-grey-blue;\n }\n\n .content {\n padding: 16px;\n\n p {\n margin: 0 0 1em 0;\n }\n }\n\n .buttons {\n gap: 14px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: flex-end;\n }\n}\n","import {Component, h, Event, EventEmitter, Host} from '@stencil/core';\n\n/**\n * Display a simple dialog where the contents are provided via slots.\n */\n@Component({\n tag: 'verdocs-dialog',\n styleUrl: 'verdocs-dialog.scss',\n})\nexport class VerdocsDialog {\n /**\n * Event fired when the dialog is dismissed by clicking the background overlay.\n */\n @Event({composed: true}) exit: EventEmitter;\n\n // We need a separate event handler for clicking the background because it can receive events \"through\" other child components\n handleDismiss(e: any) {\n if (e.target.className === 'background-overlay') {\n e.preventDefault();\n this.exit?.emit();\n }\n }\n\n render() {\n return (\n <Host>\n <div class=\"background-overlay\" onClick={e => this.handleDismiss(e)}>\n <div class=\"dialog\">\n <slot name=\"title\">\n <div class=\"heading\">Please Confirm</div>\n </slot>\n\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;MAAA,MAAM,gBAAgB,GAAG,s9CAAs9C;;YCSl+C,aAAa,6BAAA,MAAA;;;;;;MAOxB,IAAA,aAAa,CAAC,CAAM,EAAA;;cAClB,IAAI,CAAC,CAAC,MAAM,CAAC,SAAS,KAAK,oBAAoB,EAAE;kBAC/C,CAAC,CAAC,cAAc,EAAE;kBAClB,CAAA,EAAA,GAAA,IAAI,CAAC,IAAI,MAAE,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAA,IAAI,EAAE;;;UAIrB,MAAM,GAAA;cACJ,QACE,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,EACH,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAC,oBAAoB,EAAC,OAAO,EAAE,CAAC,IAAI,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,EAAA,EACjE,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,QAAQ,EAAA,EACjB,CAAM,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,OAAO,EAAA,EAChB,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAC,SAAS,EAAA,EAAA,gBAAA,CAAqB,CACpC,EAEP,CAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,SAAS,EAAA,EAClB,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAa,CACT,CACF,CACF,CACD;;;;;;;;;;;"}
@@ -1,2 +0,0 @@
1
- var __extends=this&&this.__extends||function(){var t=function(i,e){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)if(Object.prototype.hasOwnProperty.call(i,e))t[e]=i[e]};return t(i,e)};return function(i,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");t(i,e);function n(){this.constructor=i}i.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var i,e=1,n=arguments.length;e<n;e++){i=arguments[e];for(var r in i)if(Object.prototype.hasOwnProperty.call(i,r))t[r]=i[r]}return t};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(t,i,e,n){function r(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,s){function u(t){try{a(n.next(t))}catch(t){s(t)}}function o(t){try{a(n["throw"](t))}catch(t){s(t)}}function a(t){t.done?e(t.value):r(t.value).then(u,o)}a((n=n.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,r,s,u;return u={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function o(t){return function(i){return a([t,i])}}function a(o){if(n)throw new TypeError("Generator is already executing.");while(u&&(u=0,o[0]&&(e=0)),e)try{if(n=1,r&&(s=o[0]&2?r["return"]:o[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,o[1])).done)return s;if(r=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;r=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(s=e.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){e.label=o[1];break}if(o[0]===6&&e.label<s[1]){e.label=s[1];s=o;break}if(s&&e.label<s[2]){e.label=s[2];e.ops.push(o);break}if(s[2])e.ops.pop();e.trys.pop();continue}o=i.call(t,e)}catch(t){o=[6,t];r=0}finally{n=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __rest=this&&this.__rest||function(t,i){var e={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&i.indexOf(n)<0)e[n]=t[n];if(t!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,n=Object.getOwnPropertySymbols(t);r<n.length;r++){if(i.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(t,n[r]))e[n[r]]=t[n[r]]}return e};var __spreadArray=this&&this.__spreadArray||function(t,i,e){if(e||arguments.length===2)for(var n=0,r=i.length,s;n<r;n++){if(s||!(n in i)){if(!s)s=Array.prototype.slice.call(i,0,n);s[n]=i[n]}}return t.concat(s||Array.prototype.slice.call(i))};System.register(["./p-gAi_FRvp.system.js","@verdocs/js-sdk","./p-C9y1KCYV.system.js","./p-CrzDCQEM.system.js","./p-CD5uiThi.system.js","./p-7Iu0_GGa.system.js","./p-CmnBGerV.system.js","./p-Bzy18UgU.system.js","./p-DmF0GSqu.system.js","./p-80p0Fzir.system.js"],(function(t){"use strict";var i,e,n,r,s,u,o,a,h,f,l,c,d,v,b,g,p,m;return{setters:[function(t){i=t.r;e=t.c;n=t.h;r=t.F;s=t.H;u=t.g},function(t){o=t.verifySigner;a=t.VerdocsEndpoint;h=t.getEnvelope;f=t.getDocumentDownloadLink;l=t.cancelEnvelope;c=t.userCanCancelEnvelope;d=t.integerSequence},function(t){v=t.D},function(t){b=t.V},function(t){g=t.s},function(t){p=t.S},function(t){m=t.S},null,null,null],execute:function(){function x(t){return typeof t==="string"||t instanceof String}function w(t){var i;return typeof t==="object"&&t!=null&&(t==null||(i=t.constructor)==null?void 0:i.name)==="Object"}function A(t,i){if(Array.isArray(i))return A(t,(function(t,e){return i.includes(e)}));return Object.entries(t).reduce((function(t,e){var n=e[0],r=e[1];if(i(r,n))t[n]=r;return t}),{})}var _={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function C(t){switch(t){case _.LEFT:return _.FORCE_LEFT;case _.RIGHT:return _.FORCE_RIGHT;default:return t}}function k(t){return t.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function y(t,i){if(i===t)return true;var e=Array.isArray(i),n=Array.isArray(t);var r;if(e&&n){if(i.length!=t.length)return false;for(r=0;r<i.length;r++)if(!y(i[r],t[r]))return false;return true}if(e!=n)return false;if(i&&t&&typeof i==="object"&&typeof t==="object"){var s=i instanceof Date,u=t instanceof Date;if(s&&u)return i.getTime()==t.getTime();if(s!=u)return false;var o=i instanceof RegExp,a=t instanceof RegExp;if(o&&a)return i.toString()==t.toString();if(o!=a)return false;var h=Object.keys(i);for(r=0;r<h.length;r++)if(!Object.prototype.hasOwnProperty.call(t,h[r]))return false;for(r=0;r<h.length;r++)if(!y(t[h[r]],i[h[r]]))return false;return true}else if(i&&t&&typeof i==="function"&&typeof t==="function"){return i.toString()===t.toString()}return false}var F=function(){function t(t){Object.assign(this,t);while(this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos)){--this.oldSelection.start}if(this.insertedCount){while(this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end)){if(this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end)++this.oldSelection.end;else++this.cursorPos}}}Object.defineProperty(t.prototype,"startChangePos",{get:function(){return Math.min(this.cursorPos,this.oldSelection.start)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"insertedCount",{get:function(){return this.cursorPos-this.startChangePos},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"inserted",{get:function(){return this.value.substr(this.startChangePos,this.insertedCount)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"removedCount",{get:function(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"removed",{get:function(){return this.oldValue.substr(this.startChangePos,this.removedCount)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"head",{get:function(){return this.value.substring(0,this.startChangePos)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"tail",{get:function(){return this.value.substring(this.startChangePos+this.insertedCount)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"removeDirection",{get:function(){if(!this.removedCount||this.insertedCount)return _.NONE;return(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?_.RIGHT:_.LEFT},enumerable:false,configurable:true});return t}();function D(t,i){return new D.InputMask(t,i)}function B(t){if(t==null)throw new Error("mask property should be defined");if(t instanceof RegExp)return D.MaskedRegExp;if(x(t))return D.MaskedPattern;if(t===Date)return D.MaskedDate;if(t===Number)return D.MaskedNumber;if(Array.isArray(t)||t===Array)return D.MaskedDynamic;if(D.Masked&&t.prototype instanceof D.Masked)return t;if(D.Masked&&t instanceof D.Masked)return t.constructor;if(t instanceof Function)return D.MaskedFunction;console.warn("Mask not found for mask",t);return D.Masked}function E(t){if(!t)throw new Error("Options in not defined");if(D.Masked){if(t.prototype instanceof D.Masked)return{mask:t};var i=t instanceof D.Masked?{mask:t}:w(t)&&t.mask instanceof D.Masked?t:{},e=i.mask,n=e===void 0?undefined:e,r=__rest(i,["mask"]);if(n){var s=n.mask;return __assign(__assign(__assign({},A(n,(function(t,i){return!i.startsWith("_")}))),{mask:n.constructor,_mask:s}),r)}}if(!w(t))return{mask:t};return __assign({},t)}function O(t){if(D.Masked&&t instanceof D.Masked)return t;var i=E(t);var e=B(i.mask);if(!e)throw new Error("Masked class is not found for provided mask "+i.mask+", appropriate module needs to be imported manually before creating mask.");if(i.mask===e)delete i.mask;if(i._mask){i.mask=i._mask;delete i._mask}return new e(i)}D.createMask=O;var j=function(){function t(){}Object.defineProperty(t.prototype,"selectionStart",{get:function(){var t;try{t=this._unsafeSelectionStart}catch(t){}return t!=null?t:this.value.length},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"selectionEnd",{get:function(){var t;try{t=this._unsafeSelectionEnd}catch(t){}return t!=null?t:this.value.length},enumerable:false,configurable:true});t.prototype.select=function(t,i){if(t==null||i==null||t===this.selectionStart&&i===this.selectionEnd)return;try{this._unsafeSelect(t,i)}catch(t){}};Object.defineProperty(t.prototype,"isActive",{get:function(){return false},enumerable:false,configurable:true});return t}();D.MaskElement=j;var I=90;var M=89;var S=function(t){__extends(i,t);function i(i){var e=t.call(this)||this;e.input=i;e._onKeydown=e._onKeydown.bind(e);e._onInput=e._onInput.bind(e);e._onBeforeinput=e._onBeforeinput.bind(e);e._onCompositionEnd=e._onCompositionEnd.bind(e);return e}Object.defineProperty(i.prototype,"rootElement",{get:function(){var t,i,e;return(t=(i=(e=this.input).getRootNode)==null?void 0:i.call(e))!=null?t:document},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"isActive",{get:function(){return this.input===this.rootElement.activeElement},enumerable:false,configurable:true});i.prototype.bindEvents=function(t){this.input.addEventListener("keydown",this._onKeydown);this.input.addEventListener("input",this._onInput);this.input.addEventListener("beforeinput",this._onBeforeinput);this.input.addEventListener("compositionend",this._onCompositionEnd);this.input.addEventListener("drop",t.drop);this.input.addEventListener("click",t.click);this.input.addEventListener("focus",t.focus);this.input.addEventListener("blur",t.commit);this._handlers=t};i.prototype._onKeydown=function(t){if(this._handlers.redo&&(t.keyCode===I&&t.shiftKey&&(t.metaKey||t.ctrlKey)||t.keyCode===M&&t.ctrlKey)){t.preventDefault();return this._handlers.redo(t)}if(this._handlers.undo&&t.keyCode===I&&(t.metaKey||t.ctrlKey)){t.preventDefault();return this._handlers.undo(t)}if(!t.isComposing)this._handlers.selectionChange(t)};i.prototype._onBeforeinput=function(t){if(t.inputType==="historyUndo"&&this._handlers.undo){t.preventDefault();return this._handlers.undo(t)}if(t.inputType==="historyRedo"&&this._handlers.redo){t.preventDefault();return this._handlers.redo(t)}};i.prototype._onCompositionEnd=function(t){this._handlers.input(t)};i.prototype._onInput=function(t){if(!t.isComposing)this._handlers.input(t)};i.prototype.unbindEvents=function(){this.input.removeEventListener("keydown",this._onKeydown);this.input.removeEventListener("input",this._onInput);this.input.removeEventListener("beforeinput",this._onBeforeinput);this.input.removeEventListener("compositionend",this._onCompositionEnd);this.input.removeEventListener("drop",this._handlers.drop);this.input.removeEventListener("click",this._handlers.click);this.input.removeEventListener("focus",this._handlers.focus);this.input.removeEventListener("blur",this._handlers.commit);this._handlers={}};return i}(j);D.HTMLMaskElement=S;var V=function(t){__extends(i,t);function i(i){var e=t.call(this,i)||this;e.input=i;return e}Object.defineProperty(i.prototype,"_unsafeSelectionStart",{get:function(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"_unsafeSelectionEnd",{get:function(){return this.input.selectionEnd},enumerable:false,configurable:true});i.prototype._unsafeSelect=function(t,i){this.input.setSelectionRange(t,i)};Object.defineProperty(i.prototype,"value",{get:function(){return this.input.value},set:function(t){this.input.value=t},enumerable:false,configurable:true});return i}(S);D.HTMLMaskElement=S;var z=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(i.prototype,"_unsafeSelectionStart",{get:function(){var t=this.rootElement;var i=t.getSelection&&t.getSelection();var e=i&&i.anchorOffset;var n=i&&i.focusOffset;if(n==null||e==null||e<n){return e}return n},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"_unsafeSelectionEnd",{get:function(){var t=this.rootElement;var i=t.getSelection&&t.getSelection();var e=i&&i.anchorOffset;var n=i&&i.focusOffset;if(n==null||e==null||e>n){return e}return n},enumerable:false,configurable:true});i.prototype._unsafeSelect=function(t,i){if(!this.rootElement.createRange)return;var e=this.rootElement.createRange();e.setStart(this.input.firstChild||this.input,t);e.setEnd(this.input.lastChild||this.input,i);var n=this.rootElement;var r=n.getSelection&&n.getSelection();if(r){r.removeAllRanges();r.addRange(e)}};Object.defineProperty(i.prototype,"value",{get:function(){return this.input.textContent||""},set:function(t){this.input.textContent=t},enumerable:false,configurable:true});return i}(S);D.HTMLContenteditableMaskElement=z;var N=function(){function t(){this.states=[];this.currentIndex=0}Object.defineProperty(t.prototype,"currentState",{get:function(){return this.states[this.currentIndex]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isEmpty",{get:function(){return this.states.length===0},enumerable:false,configurable:true});t.prototype.push=function(i){if(this.currentIndex<this.states.length-1)this.states.length=this.currentIndex+1;this.states.push(i);if(this.states.length>t.MAX_LENGTH)this.states.shift();this.currentIndex=this.states.length-1};t.prototype.go=function(t){this.currentIndex=Math.min(Math.max(this.currentIndex+t,0),this.states.length-1);return this.currentState};t.prototype.undo=function(){return this.go(-1)};t.prototype.redo=function(){return this.go(1)};t.prototype.clear=function(){this.states.length=0;this.currentIndex=0};return t}();N.MAX_LENGTH=100;var T=function(){function t(t,i){this.el=t instanceof j?t:t.isContentEditable&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"?new z(t):new V(t);this.masked=O(i);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()}t.prototype.maskEquals=function(t){var i;return t==null||((i=this.masked)==null?void 0:i.maskEquals(t))};Object.defineProperty(t.prototype,"mask",{get:function(){return this.masked.mask},set:function(t){if(this.maskEquals(t))return;if(!(t instanceof D.Masked)&&this.masked.constructor===B(t)){this.masked.updateOptions({mask:t});return}var i=t instanceof D.Masked?t:O({mask:t});i.unmaskedValue=this.masked.unmaskedValue;this.masked=i},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){if(this.value===t)return;this.masked.value=t;this.updateControl("auto")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"unmaskedValue",{get:function(){return this._unmaskedValue},set:function(t){if(this.unmaskedValue===t)return;this.masked.unmaskedValue=t;this.updateControl("auto")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"rawInputValue",{get:function(){return this._rawInputValue},set:function(t){if(this.rawInputValue===t)return;this.masked.rawInputValue=t;this.updateControl();this.alignCursor()},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"typedValue",{get:function(){return this.masked.typedValue},set:function(t){if(this.masked.typedValueEquals(t))return;this.masked.typedValue=t;this.updateControl("auto")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.masked.displayValue},enumerable:false,configurable:true});t.prototype._bindEvents=function(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})};t.prototype._unbindEvents=function(){if(this.el)this.el.unbindEvents()};t.prototype._fireEvent=function(t,i){var e=this._listeners[t];if(!e)return;e.forEach((function(t){return t(i)}))};Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"cursorPos",{get:function(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd},set:function(t){if(!this.el||!this.el.isActive)return;this.el.select(t,t);this._saveSelection()},enumerable:false,configurable:true});t.prototype._saveSelection=function(){if(this.displayValue!==this.el.value){console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly.")}this._selection={start:this.selectionStart,end:this.cursorPos}};t.prototype.updateValue=function(){this.masked.value=this.el.value;this._value=this.masked.value;this._unmaskedValue=this.masked.unmaskedValue;this._rawInputValue=this.masked.rawInputValue};t.prototype.updateControl=function(t){var i=this.masked.unmaskedValue;var e=this.masked.value;var n=this.masked.rawInputValue;var r=this.displayValue;var s=this.unmaskedValue!==i||this.value!==e||this._rawInputValue!==n;this._unmaskedValue=i;this._value=e;this._rawInputValue=n;if(this.el.value!==r)this.el.value=r;if(t==="auto")this.alignCursor();else if(t!=null)this.cursorPos=t;if(s)this._fireChangeEvents();if(!this._historyChanging&&(s||this.history.isEmpty))this.history.push({unmaskedValue:i,selection:{start:this.selectionStart,end:this.cursorPos}})};t.prototype.updateOptions=function(t){var i=t.mask,e=__rest(t,["mask"]);var n=!this.maskEquals(i);var r=this.masked.optionsIsChanged(e);if(n)this.mask=i;if(r)this.masked.updateOptions(e);if(n||r)this.updateControl()};t.prototype.updateCursor=function(t){if(t==null)return;this.cursorPos=t;this._delayUpdateCursor(t)};t.prototype._delayUpdateCursor=function(t){var i=this;this._abortUpdateCursor();this._changingCursorPos=t;this._cursorChanging=setTimeout((function(){if(!i.el)return;i.cursorPos=i._changingCursorPos;i._abortUpdateCursor()}),10)};t.prototype._fireChangeEvents=function(){this._fireEvent("accept",this._inputEvent);if(this.masked.isComplete)this._fireEvent("complete",this._inputEvent)};t.prototype._abortUpdateCursor=function(){if(this._cursorChanging){clearTimeout(this._cursorChanging);delete this._cursorChanging}};t.prototype.alignCursor=function(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,_.LEFT))};t.prototype.alignCursorFriendly=function(){if(this.selectionStart!==this.cursorPos)return;this.alignCursor()};t.prototype.on=function(t,i){if(!this._listeners[t])this._listeners[t]=[];this._listeners[t].push(i);return this};t.prototype.off=function(t,i){if(!this._listeners[t])return this;if(!i){delete this._listeners[t];return this}var e=this._listeners[t].indexOf(i);if(e>=0)this._listeners[t].splice(e,1);return this};t.prototype._onInput=function(t){this._inputEvent=t;this._abortUpdateCursor();var i=new F({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection});var e=this.masked.rawInputValue;var n=this.masked.splice(i.startChangePos,i.removed.length,i.inserted,i.removeDirection,{input:true,raw:true}).offset;var r=e===this.masked.rawInputValue?i.removeDirection:_.NONE;var s=this.masked.nearestInputPos(i.startChangePos+n,r);if(r!==_.NONE)s=this.masked.nearestInputPos(s,_.NONE);this.updateControl(s);delete this._inputEvent};t.prototype._onChange=function(){if(this.displayValue!==this.el.value)this.updateValue();this.masked.doCommit();this.updateControl();this._saveSelection()};t.prototype._onDrop=function(t){t.preventDefault();t.stopPropagation()};t.prototype._onFocus=function(t){this.alignCursorFriendly()};t.prototype._onClick=function(t){this.alignCursorFriendly()};t.prototype._onUndo=function(){this._applyHistoryState(this.history.undo())};t.prototype._onRedo=function(){this._applyHistoryState(this.history.redo())};t.prototype._applyHistoryState=function(t){if(!t)return;this._historyChanging=true;this.unmaskedValue=t.unmaskedValue;this.el.select(t.selection.start,t.selection.end);this._saveSelection();this._historyChanging=false};t.prototype.destroy=function(){this._unbindEvents();this._listeners.length=0;delete this.el};return t}();D.InputMask=T;var R=function(){function t(t){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:false},t)}t.normalize=function(i){return Array.isArray(i)?i:[i,new t]};t.prototype.aggregate=function(t){this.inserted+=t.inserted;this.rawInserted+=t.rawInserted;this.tailShift+=t.tailShift;this.skip=this.skip||t.skip;return this};Object.defineProperty(t.prototype,"offset",{get:function(){return this.tailShift+this.inserted.length},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"consumed",{get:function(){return Boolean(this.rawInserted)||this.skip},enumerable:false,configurable:true});t.prototype.equals=function(t){return this.inserted===t.inserted&&this.tailShift===t.tailShift&&this.rawInserted===t.rawInserted&&this.skip===t.skip};return t}();D.ChangeDetails=R;var L=function(){function t(t,i,e){if(t===void 0){t=""}if(i===void 0){i=0}this.value=t;this.from=i;this.stop=e}t.prototype.toString=function(){return this.value};t.prototype.extend=function(t){this.value+=String(t)};t.prototype.appendTo=function(t){return t.append(this.toString(),{tail:true}).aggregate(t._appendPlaceholder())};Object.defineProperty(t.prototype,"state",{get:function(){return{value:this.value,from:this.from,stop:this.stop}},set:function(t){Object.assign(this,t)},enumerable:false,configurable:true});t.prototype.unshift=function(t){if(!this.value.length||t!=null&&this.from>=t)return"";var i=this.value[0];this.value=this.value.slice(1);return i};t.prototype.shift=function(){if(!this.value.length)return"";var t=this.value[this.value.length-1];this.value=this.value.slice(0,-1);return t};return t}();var P=function(){function t(i){this._value="";this._update(__assign(__assign({},t.DEFAULTS),i));this._initialized=true}t.prototype.updateOptions=function(t){if(!this.optionsIsChanged(t))return;this.withValueRefresh(this._update.bind(this,t))};t.prototype._update=function(t){Object.assign(this,t)};Object.defineProperty(t.prototype,"state",{get:function(){return{_value:this.value,_rawInputValue:this.rawInputValue}},set:function(t){this._value=t._value},enumerable:false,configurable:true});t.prototype.reset=function(){this._value=""};Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this.resolve(t,{input:true})},enumerable:false,configurable:true});t.prototype.resolve=function(t,i){if(i===void 0){i={input:true}}this.reset();this.append(t,i,"");this.doCommit()};Object.defineProperty(t.prototype,"unmaskedValue",{get:function(){return this.value},set:function(t){this.resolve(t,{})},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"typedValue",{get:function(){return this.parse?this.parse(this.value,this):this.unmaskedValue},set:function(t){if(this.format){this.value=this.format(t,this)}else{this.unmaskedValue=String(t)}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"rawInputValue",{get:function(){return this.extractInput(0,this.displayValue.length,{raw:true})},set:function(t){this.resolve(t,{raw:true})},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.value},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isComplete",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isFilled",{get:function(){return this.isComplete},enumerable:false,configurable:true});t.prototype.nearestInputPos=function(t,i){return t};t.prototype.totalInputPositions=function(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}return Math.min(this.displayValue.length,i-t)};t.prototype.extractInput=function(t,i,e){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}return this.displayValue.slice(t,i)};t.prototype.extractTail=function(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}return new L(this.extractInput(t,i),t)};t.prototype.appendTail=function(t){if(x(t))t=new L(String(t));return t.appendTo(this)};t.prototype._appendCharRaw=function(t,i){if(!t)return new R;this._value+=t;return new R({inserted:t,rawInserted:t})};t.prototype._appendChar=function(t,i,e){var n;if(i===void 0){i={}}var r=this.state;var s;n=this.doPrepareChar(t,i),t=n[0],s=n[1];if(t){s=s.aggregate(this._appendCharRaw(t,i));if(!s.rawInserted&&this.autofix==="pad"){var u=this.state;this.state=r;var o=this.pad(i);var a=this._appendCharRaw(t,i);o=o.aggregate(a);if(a.rawInserted||o.equals(s)){s=o}else{this.state=u}}}if(s.inserted){var h=void 0;var f=this.doValidate(i)!==false;if(f&&e!=null){var l=this.state;if(this.overwrite===true){h=e.state;for(var c=0;c<s.rawInserted.length;++c){e.unshift(this.displayValue.length-s.tailShift)}}var d=this.appendTail(e);f=d.rawInserted.length===e.toString().length;if(!(f&&d.inserted)&&this.overwrite==="shift"){this.state=l;h=e.state;for(var c=0;c<s.rawInserted.length;++c){e.shift()}d=this.appendTail(e);f=d.rawInserted.length===e.toString().length}if(f&&d.inserted)this.state=l}if(!f){s=new R;this.state=r;if(e&&h)e.state=h}}return s};t.prototype._appendPlaceholder=function(){return new R};t.prototype._appendEager=function(){return new R};t.prototype.append=function(t,i,e){var n;if(!x(t))throw new Error("value should be string");var r=x(e)?new L(String(e)):e;if(i!=null&&i.tail)i._beforeTailState=this.state;var s;n=this.doPrepare(t,i),t=n[0],s=n[1];for(var u=0;u<t.length;++u){var o=this._appendChar(t[u],i,r);if(!o.rawInserted&&!this.doSkipInvalid(t[u],i,r))break;s.aggregate(o)}if((this.eager===true||this.eager==="append")&&i!=null&&i.input&&t){s.aggregate(this._appendEager())}if(r!=null){s.tailShift+=this.appendTail(r).tailShift}return s};t.prototype.remove=function(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}this._value=this.displayValue.slice(0,t)+this.displayValue.slice(i);return new R};t.prototype.withValueRefresh=function(t){if(this._refreshing||!this._initialized)return t();this._refreshing=true;var i=this.rawInputValue;var e=this.value;var n=t();this.rawInputValue=i;if(this.value&&this.value!==e&&e.indexOf(this.value)===0){this.append(e.slice(this.displayValue.length),{},"");this.doCommit()}delete this._refreshing;return n};t.prototype.runIsolated=function(t){if(this._isolated||!this._initialized)return t(this);this._isolated=true;var i=this.state;var e=t(this);this.state=i;delete this._isolated;return e};t.prototype.doSkipInvalid=function(t,i,e){return Boolean(this.skipInvalid)};t.prototype.doPrepare=function(t,i){if(i===void 0){i={}}return R.normalize(this.prepare?this.prepare(t,this,i):t)};t.prototype.doPrepareChar=function(t,i){if(i===void 0){i={}}return R.normalize(this.prepareChar?this.prepareChar(t,this,i):t)};t.prototype.doValidate=function(t){return(!this.validate||this.validate(this.value,this,t))&&(!this.parent||this.parent.doValidate(t))};t.prototype.doCommit=function(){if(this.commit)this.commit(this.value,this)};t.prototype.splice=function(t,i,e,n,r){if(e===void 0){e=""}if(n===void 0){n=_.NONE}if(r===void 0){r={input:true}}var s=t+i;var u=this.extractTail(s);var o=this.eager===true||this.eager==="remove";var a;if(o){n=C(n);a=this.extractInput(0,s,{raw:true})}var h=t;var f=new R;if(n!==_.NONE){h=this.nearestInputPos(t,i>1&&t!==0&&!o?_.NONE:n);f.tailShift=h-t}f.aggregate(this.remove(h));if(o&&n!==_.NONE&&a===this.rawInputValue){if(n===_.FORCE_LEFT){var l=void 0;while(a===this.rawInputValue&&(l=this.displayValue.length)){f.aggregate(new R({tailShift:-1})).aggregate(this.remove(l-1))}}else if(n===_.FORCE_RIGHT){u.unshift()}}return f.aggregate(this.append(e,r,u))};t.prototype.maskEquals=function(t){return this.mask===t};t.prototype.optionsIsChanged=function(t){return!y(this,t)};t.prototype.typedValueEquals=function(i){var e=this.typedValue;return i===e||t.EMPTY_VALUES.includes(i)&&t.EMPTY_VALUES.includes(e)||(this.format?this.format(i,this)===this.format(this.typedValue,this):false)};t.prototype.pad=function(t){return new R};return t}();P.DEFAULTS={skipInvalid:true};P.EMPTY_VALUES=[undefined,null,""];D.Masked=P;var H=function(){function t(t,i){if(t===void 0){t=[]}if(i===void 0){i=0}this.chunks=t;this.from=i}t.prototype.toString=function(){return this.chunks.map(String).join("")};t.prototype.extend=function(i){if(!String(i))return;i=x(i)?new L(String(i)):i;var e=this.chunks[this.chunks.length-1];var n=e&&(e.stop===i.stop||i.stop==null)&&i.from===e.from+e.toString().length;if(i instanceof L){if(n){e.extend(i.toString())}else{this.chunks.push(i)}}else if(i instanceof t){if(i.stop==null){var r=void 0;while(i.chunks.length&&i.chunks[0].stop==null){r=i.chunks.shift();r.from+=i.from;this.extend(r)}}if(i.toString()){i.stop=i.blockIndex;this.chunks.push(i)}}};t.prototype.appendTo=function(i){if(!(i instanceof D.MaskedPattern)){var e=new L(this.toString());return e.appendTo(i)}var n=new R;for(var r=0;r<this.chunks.length;++r){var s=this.chunks[r];var u=i._mapPosToBlock(i.displayValue.length);var o=s.stop;var a=void 0;if(o!=null&&(!u||u.index<=o)){if(s instanceof t||i._stops.indexOf(o)>=0){n.aggregate(i._appendPlaceholder(o))}a=s instanceof t&&i._blocks[o]}if(a){var h=a.appendTail(s);n.aggregate(h);var f=s.toString().slice(h.rawInserted.length);if(f)n.aggregate(i.append(f,{tail:true}))}else{n.aggregate(i.append(s.toString(),{tail:true}))}}return n};Object.defineProperty(t.prototype,"state",{get:function(){return{chunks:this.chunks.map((function(t){return t.state})),from:this.from,stop:this.stop,blockIndex:this.blockIndex}},set:function(i){var e=i.chunks,n=__rest(i,["chunks"]);Object.assign(this,n);this.chunks=e.map((function(i){var e="chunks"in i?new t:new L;e.state=i;return e}))},enumerable:false,configurable:true});t.prototype.unshift=function(t){if(!this.chunks.length||t!=null&&this.from>=t)return"";var i=t!=null?t-this.from:t;var e=0;while(e<this.chunks.length){var n=this.chunks[e];var r=n.unshift(i);if(n.toString()){if(!r)break;++e}else{this.chunks.splice(e,1)}if(r)return r}return""};t.prototype.shift=function(){if(!this.chunks.length)return"";var t=this.chunks.length-1;while(0<=t){var i=this.chunks[t];var e=i.shift();if(i.toString()){if(!e)break;--t}else{this.chunks.splice(t,1)}if(e)return e}return""};return t}();var W=function(){function t(t,i){this.masked=t;this._log=[];var e=t._mapPosToBlock(i)||(i<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0}),n=e.offset,r=e.index;this.offset=n;this.index=r;this.ok=false}Object.defineProperty(t.prototype,"block",{get:function(){return this.masked._blocks[this.index]},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"pos",{get:function(){return this.masked._blockStartPos(this.index)+this.offset},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"state",{get:function(){return{index:this.index,offset:this.offset,ok:this.ok}},set:function(t){Object.assign(this,t)},enumerable:false,configurable:true});t.prototype.pushState=function(){this._log.push(this.state)};t.prototype.popState=function(){var t=this._log.pop();if(t)this.state=t;return t};t.prototype.bindBlock=function(){if(this.block)return;if(this.index<0){this.index=0;this.offset=0}if(this.index>=this.masked._blocks.length){this.index=this.masked._blocks.length-1;this.offset=this.block.displayValue.length}};t.prototype._pushLeft=function(t){this.pushState();for(this.bindBlock();0<=this.index;--this.index,this.offset=((i=this.block)==null?void 0:i.displayValue.length)||0){var i;if(t())return this.ok=true}return this.ok=false};t.prototype._pushRight=function(t){this.pushState();for(this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0){if(t())return this.ok=true}return this.ok=false};t.prototype.pushLeftBeforeFilled=function(){var t=this;return this._pushLeft((function(){if(t.block.isFixed||!t.block.value)return;t.offset=t.block.nearestInputPos(t.offset,_.FORCE_LEFT);if(t.offset!==0)return true}))};t.prototype.pushLeftBeforeInput=function(){var t=this;return this._pushLeft((function(){if(t.block.isFixed)return;t.offset=t.block.nearestInputPos(t.offset,_.LEFT);return true}))};t.prototype.pushLeftBeforeRequired=function(){var t=this;return this._pushLeft((function(){if(t.block.isFixed||t.block.isOptional&&!t.block.value)return;t.offset=t.block.nearestInputPos(t.offset,_.LEFT);return true}))};t.prototype.pushRightBeforeFilled=function(){var t=this;return this._pushRight((function(){if(t.block.isFixed||!t.block.value)return;t.offset=t.block.nearestInputPos(t.offset,_.FORCE_RIGHT);if(t.offset!==t.block.value.length)return true}))};t.prototype.pushRightBeforeInput=function(){var t=this;return this._pushRight((function(){if(t.block.isFixed)return;t.offset=t.block.nearestInputPos(t.offset,_.NONE);return true}))};t.prototype.pushRightBeforeRequired=function(){var t=this;return this._pushRight((function(){if(t.block.isFixed||t.block.isOptional&&!t.block.value)return;t.offset=t.block.nearestInputPos(t.offset,_.NONE);return true}))};return t}();var q=function(){function t(t){Object.assign(this,t);this._value="";this.isFixed=true}Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"unmaskedValue",{get:function(){return this.isUnmasking?this.value:""},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"rawInputValue",{get:function(){return this._isRawInput?this.value:""},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.value},enumerable:false,configurable:true});t.prototype.reset=function(){this._isRawInput=false;this._value=""};t.prototype.remove=function(t,i){if(t===void 0){t=0}if(i===void 0){i=this._value.length}this._value=this._value.slice(0,t)+this._value.slice(i);if(!this._value)this._isRawInput=false;return new R};t.prototype.nearestInputPos=function(t,i){if(i===void 0){i=_.NONE}var e=0;var n=this._value.length;switch(i){case _.LEFT:case _.FORCE_LEFT:return e;case _.NONE:case _.RIGHT:case _.FORCE_RIGHT:default:return n}};t.prototype.totalInputPositions=function(t,i){if(t===void 0){t=0}if(i===void 0){i=this._value.length}return this._isRawInput?i-t:0};t.prototype.extractInput=function(t,i,e){if(t===void 0){t=0}if(i===void 0){i=this._value.length}if(e===void 0){e={}}return e.raw&&this._isRawInput&&this._value.slice(t,i)||""};Object.defineProperty(t.prototype,"isComplete",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isFilled",{get:function(){return Boolean(this._value)},enumerable:false,configurable:true});t.prototype._appendChar=function(t,i){if(i===void 0){i={}}if(this.isFilled)return new R;var e=this.eager===true||this.eager==="append";var n=this.char===t;var r=n&&(this.isUnmasking||i.input||i.raw)&&(!i.raw||!e)&&!i.tail;var s=new R({inserted:this.char,rawInserted:r?this.char:""});this._value=this.char;this._isRawInput=r&&(i.raw||i.input);return s};t.prototype._appendEager=function(){return this._appendChar(this.char,{tail:true})};t.prototype._appendPlaceholder=function(){var t=new R;if(this.isFilled)return t;this._value=t.inserted=this.char;return t};t.prototype.extractTail=function(){return new L("")};t.prototype.appendTail=function(t){if(x(t))t=new L(String(t));return t.appendTo(this)};t.prototype.append=function(t,i,e){var n=this._appendChar(t[0],i);if(e!=null){n.tailShift+=this.appendTail(e).tailShift}return n};t.prototype.doCommit=function(){};Object.defineProperty(t.prototype,"state",{get:function(){return{_value:this._value,_rawInputValue:this.rawInputValue}},set:function(t){this._value=t._value;this._isRawInput=Boolean(t._rawInputValue)},enumerable:false,configurable:true});t.prototype.pad=function(t){return this._appendPlaceholder()};return t}();var G=function(){function t(t){var i=t.parent,e=t.isOptional,n=t.placeholderChar,r=t.displayChar,s=t.lazy,u=t.eager,o=__rest(t,["parent","isOptional","placeholderChar","displayChar","lazy","eager"]);this.masked=O(o);Object.assign(this,{parent:i,isOptional:e,placeholderChar:n,displayChar:r,lazy:s,eager:u})}t.prototype.reset=function(){this.isFilled=false;this.masked.reset()};t.prototype.remove=function(t,i){if(t===void 0){t=0}if(i===void 0){i=this.value.length}if(t===0&&i>=1){this.isFilled=false;return this.masked.remove(t,i)}return new R};Object.defineProperty(t.prototype,"value",{get:function(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"unmaskedValue",{get:function(){return this.masked.unmaskedValue},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"rawInputValue",{get:function(){return this.masked.rawInputValue},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.masked.value&&this.displayChar||this.value},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isComplete",{get:function(){return Boolean(this.masked.value)||this.isOptional},enumerable:false,configurable:true});t.prototype._appendChar=function(t,i){if(i===void 0){i={}}if(this.isFilled)return new R;var e=this.masked.state;var n=this.masked._appendChar(t,this.currentMaskFlags(i));if(n.inserted&&this.doValidate(i)===false){n=new R;this.masked.state=e}if(!n.inserted&&!this.isOptional&&!this.lazy&&!i.input){n.inserted=this.placeholderChar}n.skip=!n.inserted&&!this.isOptional;this.isFilled=Boolean(n.inserted);return n};t.prototype.append=function(t,i,e){return this.masked.append(t,this.currentMaskFlags(i),e)};t.prototype._appendPlaceholder=function(){if(this.isFilled||this.isOptional)return new R;this.isFilled=true;return new R({inserted:this.placeholderChar})};t.prototype._appendEager=function(){return new R};t.prototype.extractTail=function(t,i){return this.masked.extractTail(t,i)};t.prototype.appendTail=function(t){return this.masked.appendTail(t)};t.prototype.extractInput=function(t,i,e){if(t===void 0){t=0}if(i===void 0){i=this.value.length}return this.masked.extractInput(t,i,e)};t.prototype.nearestInputPos=function(t,i){if(i===void 0){i=_.NONE}var e=0;var n=this.value.length;var r=Math.min(Math.max(t,e),n);switch(i){case _.LEFT:case _.FORCE_LEFT:return this.isComplete?r:e;case _.RIGHT:case _.FORCE_RIGHT:return this.isComplete?r:n;case _.NONE:default:return r}};t.prototype.totalInputPositions=function(t,i){if(t===void 0){t=0}if(i===void 0){i=this.value.length}return this.value.slice(t,i).length};t.prototype.doValidate=function(t){return this.masked.doValidate(this.currentMaskFlags(t))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(t)))};t.prototype.doCommit=function(){this.masked.doCommit()};Object.defineProperty(t.prototype,"state",{get:function(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}},set:function(t){this.masked.state=t.masked;this.isFilled=t.isFilled},enumerable:false,configurable:true});t.prototype.currentMaskFlags=function(t){var i;return __assign(__assign({},t),{_beforeTailState:(t==null||(i=t._beforeTailState)==null?void 0:i.masked)||(t==null?void 0:t._beforeTailState)})};t.prototype.pad=function(t){return new R};return t}();G.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};var Y=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}i.prototype.updateOptions=function(i){t.prototype.updateOptions.call(this,i)};i.prototype._update=function(i){var e=i.mask;if(e)i.validate=function(t){return t.search(e)>=0};t.prototype._update.call(this,i)};return i}(P);D.MaskedRegExp=Y;var Z=function(t){__extends(i,t);function i(e){return t.call(this,__assign(__assign(__assign({},i.DEFAULTS),e),{definitions:Object.assign({},G.DEFAULT_DEFINITIONS,e==null?void 0:e.definitions)}))||this}i.prototype.updateOptions=function(i){t.prototype.updateOptions.call(this,i)};i.prototype._update=function(i){i.definitions=Object.assign({},this.definitions,i.definitions);t.prototype._update.call(this,i);this._rebuildMask()};i.prototype._rebuildMask=function(){var t=this.definitions;this._blocks=[];this.exposeBlock=undefined;this._stops=[];this._maskedBlocks={};var e=this.mask;if(!e||!t)return;var n=false;var r=false;var s=function(s){if(u.blocks){var a=e.slice(s);var h=Object.keys(u.blocks).filter((function(t){return a.indexOf(t)===0}));h.sort((function(t,i){return i.length-t.length}));var f=h[0];if(f){var l=E(u.blocks[f]),c=l.expose,d=l.repeat,v=__rest(l,["expose","repeat"]);var b=__assign(__assign({lazy:u.lazy,eager:u.eager,placeholderChar:u.placeholderChar,displayChar:u.displayChar,overwrite:u.overwrite,autofix:u.autofix},v),{repeat:d,parent:u});var g=d!=null?new D.RepeatBlock(b):O(b);if(g){u._blocks.push(g);if(c)u.exposeBlock=g;if(!u._maskedBlocks[f])u._maskedBlocks[f]=[];u._maskedBlocks[f].push(u._blocks.length-1)}s+=f.length-1;return o=s,"continue"}}var p=e[s];var m=p in t;if(p===i.STOP_CHAR){u._stops.push(u._blocks.length);return o=s,"continue"}if(p==="{"||p==="}"){n=!n;return o=s,"continue"}if(p==="["||p==="]"){r=!r;return o=s,"continue"}if(p===i.ESCAPE_CHAR){++s;p=e[s];if(!p)return o=s,"break";m=false}var x=m?new G(__assign(__assign({isOptional:r,lazy:u.lazy,eager:u.eager,placeholderChar:u.placeholderChar,displayChar:u.displayChar},E(t[p])),{parent:u})):new q({char:p,eager:u.eager,isUnmasking:n});u._blocks.push(x);o=s};var u=this,o;for(var a=0;a<e.length;++a){var h=s(a);a=o;if(h==="break")break}};Object.defineProperty(i.prototype,"state",{get:function(){return __assign(__assign({},t.prototype.state),{_blocks:this._blocks.map((function(t){return t.state}))})},set:function(i){if(!i){this.reset();return}var e=i._blocks,n=__rest(i,["_blocks"]);this._blocks.forEach((function(t,i){return t.state=e[i]}));t.prototype.state=n},enumerable:false,configurable:true});i.prototype.reset=function(){t.prototype.reset.call(this);this._blocks.forEach((function(t){return t.reset()}))};Object.defineProperty(i.prototype,"isComplete",{get:function(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every((function(t){return t.isComplete}))},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"isFilled",{get:function(){return this._blocks.every((function(t){return t.isFilled}))},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"isFixed",{get:function(){return this._blocks.every((function(t){return t.isFixed}))},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"isOptional",{get:function(){return this._blocks.every((function(t){return t.isOptional}))},enumerable:false,configurable:true});i.prototype.doCommit=function(){this._blocks.forEach((function(t){return t.doCommit()}));t.prototype.doCommit.call(this)};Object.defineProperty(i.prototype,"unmaskedValue",{get:function(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((function(t,i){return t+=i.unmaskedValue}),"")},set:function(i){if(this.exposeBlock){var e=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=i;this.appendTail(e);this.doCommit()}else t.prototype.unmaskedValue=i},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"value",{get:function(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((function(t,i){return t+=i.value}),"")},set:function(i){if(this.exposeBlock){var e=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=i;this.appendTail(e);this.doCommit()}else t.prototype.value=i},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"typedValue",{get:function(){return this.exposeBlock?this.exposeBlock.typedValue:t.prototype.typedValue},set:function(i){if(this.exposeBlock){var e=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=i;this.appendTail(e);this.doCommit()}else t.prototype.typedValue=i},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"displayValue",{get:function(){return this._blocks.reduce((function(t,i){return t+=i.displayValue}),"")},enumerable:false,configurable:true});i.prototype.appendTail=function(i){return t.prototype.appendTail.call(this,i).aggregate(this._appendPlaceholder())};i.prototype._appendEager=function(){var t;var i=new R;var e=(t=this._mapPosToBlock(this.displayValue.length))==null?void 0:t.index;if(e==null)return i;if(this._blocks[e].isFilled)++e;for(var n=e;n<this._blocks.length;++n){var r=this._blocks[n]._appendEager();if(!r.inserted)break;i.aggregate(r)}return i};i.prototype._appendCharRaw=function(t,i){if(i===void 0){i={}}var e=this._mapPosToBlock(this.displayValue.length);var n=new R;if(!e)return n;for(var r=e.index,s=void 0;s=this._blocks[r];++r){var u;var o=s._appendChar(t,__assign(__assign({},i),{_beforeTailState:(u=i._beforeTailState)==null||(u=u._blocks)==null?void 0:u[r]}));n.aggregate(o);if(o.consumed)break}return n};i.prototype.extractTail=function(t,i){var e=this;if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}var n=new H;if(t===i)return n;this._forEachBlocksInRange(t,i,(function(t,i,r,s){var u=t.extractTail(r,s);u.stop=e._findStopBefore(i);u.from=e._blockStartPos(i);if(u instanceof H)u.blockIndex=i;n.extend(u)}));return n};i.prototype.extractInput=function(t,i,e){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}if(e===void 0){e={}}if(t===i)return"";var n="";this._forEachBlocksInRange(t,i,(function(t,i,r,s){n+=t.extractInput(r,s,e)}));return n};i.prototype._findStopBefore=function(t){var i;for(var e=0;e<this._stops.length;++e){var n=this._stops[e];if(n<=t)i=n;else break}return i};i.prototype._appendPlaceholder=function(t){var i=new R;if(this.lazy&&t==null)return i;var e=this._mapPosToBlock(this.displayValue.length);if(!e)return i;var n=e.index;var r=t!=null?t:this._blocks.length;this._blocks.slice(n,r).forEach((function(e){if(!e.lazy||t!=null){var n;i.aggregate(e._appendPlaceholder((n=e._blocks)==null?void 0:n.length))}}));return i};i.prototype._mapPosToBlock=function(t){var i="";for(var e=0;e<this._blocks.length;++e){var n=this._blocks[e];var r=i.length;i+=n.displayValue;if(t<=i.length){return{index:e,offset:t-r}}}};i.prototype._blockStartPos=function(t){return this._blocks.slice(0,t).reduce((function(t,i){return t+=i.displayValue.length}),0)};i.prototype._forEachBlocksInRange=function(t,i,e){if(i===void 0){i=this.displayValue.length}var n=this._mapPosToBlock(t);if(n){var r=this._mapPosToBlock(i);var s=r&&n.index===r.index;var u=n.offset;var o=r&&s?r.offset:this._blocks[n.index].displayValue.length;e(this._blocks[n.index],n.index,u,o);if(r&&!s){for(var a=n.index+1;a<r.index;++a){e(this._blocks[a],a,0,this._blocks[a].displayValue.length)}e(this._blocks[r.index],r.index,0,r.offset)}}};i.prototype.remove=function(i,e){if(i===void 0){i=0}if(e===void 0){e=this.displayValue.length}var n=t.prototype.remove.call(this,i,e);this._forEachBlocksInRange(i,e,(function(t,i,e,r){n.aggregate(t.remove(e,r))}));return n};i.prototype.nearestInputPos=function(t,i){if(i===void 0){i=_.NONE}if(!this._blocks.length)return 0;var e=new W(this,t);if(i===_.NONE){if(e.pushRightBeforeInput())return e.pos;e.popState();if(e.pushLeftBeforeInput())return e.pos;return this.displayValue.length}if(i===_.LEFT||i===_.FORCE_LEFT){if(i===_.LEFT){e.pushRightBeforeFilled();if(e.ok&&e.pos===t)return t;e.popState()}e.pushLeftBeforeInput();e.pushLeftBeforeRequired();e.pushLeftBeforeFilled();if(i===_.LEFT){e.pushRightBeforeInput();e.pushRightBeforeRequired();if(e.ok&&e.pos<=t)return e.pos;e.popState();if(e.ok&&e.pos<=t)return e.pos;e.popState()}if(e.ok)return e.pos;if(i===_.FORCE_LEFT)return 0;e.popState();if(e.ok)return e.pos;e.popState();if(e.ok)return e.pos;return 0}if(i===_.RIGHT||i===_.FORCE_RIGHT){e.pushRightBeforeInput();e.pushRightBeforeRequired();if(e.pushRightBeforeFilled())return e.pos;if(i===_.FORCE_RIGHT)return this.displayValue.length;e.popState();if(e.ok)return e.pos;e.popState();if(e.ok)return e.pos;return this.nearestInputPos(t,_.LEFT)}return t};i.prototype.totalInputPositions=function(t,i){if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}var e=0;this._forEachBlocksInRange(t,i,(function(t,i,n,r){e+=t.totalInputPositions(n,r)}));return e};i.prototype.maskedBlock=function(t){return this.maskedBlocks(t)[0]};i.prototype.maskedBlocks=function(t){var i=this;var e=this._maskedBlocks[t];if(!e)return[];return e.map((function(t){return i._blocks[t]}))};i.prototype.pad=function(t){var i=new R;this._forEachBlocksInRange(0,this.displayValue.length,(function(e){return i.aggregate(e.pad(t))}));return i};return i}(P);Z.DEFAULTS=__assign(__assign({},P.DEFAULTS),{lazy:true,placeholderChar:"_"});Z.STOP_CHAR="`";Z.ESCAPE_CHAR="\\";Z.InputDefinition=G;Z.FixedDefinition=q;D.MaskedPattern=Z;var U=function(t){__extends(i,t);function i(i){return t.call(this,i)||this}Object.defineProperty(i.prototype,"_matchFrom",{get:function(){return this.maxLength-String(this.from).length},enumerable:false,configurable:true});i.prototype.updateOptions=function(i){t.prototype.updateOptions.call(this,i)};i.prototype._update=function(i){var e=i.to,n=e===void 0?this.to||0:e,r=i.from,s=r===void 0?this.from||0:r,u=i.maxLength,o=u===void 0?this.maxLength||0:u,a=i.autofix,h=a===void 0?this.autofix:a,f=__rest(i,["to","from","maxLength","autofix"]);this.to=n;this.from=s;this.maxLength=Math.max(String(n).length,o);this.autofix=h;var l=String(this.from).padStart(this.maxLength,"0");var c=String(this.to).padStart(this.maxLength,"0");var d=0;while(d<c.length&&c[d]===l[d])++d;f.mask=c.slice(0,d).replace(/0/g,"\\0")+"0".repeat(this.maxLength-d);t.prototype._update.call(this,f)};Object.defineProperty(i.prototype,"isComplete",{get:function(){return t.prototype.isComplete&&Boolean(this.value)},enumerable:false,configurable:true});i.prototype.boundaries=function(t){var i="";var e="";var n=t.match(/^(\D*)(\d*)(\D*)/)||[],r=n[1],s=n[2];if(s){i="0".repeat(r.length)+s;e="9".repeat(r.length)+s}i=i.padEnd(this.maxLength,"0");e=e.padEnd(this.maxLength,"9");return[i,e]};i.prototype.doPrepareChar=function(i,e){var n;if(e===void 0){e={}}var r;n=t.prototype.doPrepareChar.call(this,i.replace(/\D/g,""),e),i=n[0],r=n[1];if(!i)r.skip=!this.isComplete;return[i,r]};i.prototype._appendCharRaw=function(i,e){if(e===void 0){e={}}if(!this.autofix||this.value.length+1>this.maxLength)return t.prototype._appendCharRaw.call(this,i,e);var n=String(this.from).padStart(this.maxLength,"0");var r=String(this.to).padStart(this.maxLength,"0");var s=this.boundaries(this.value+i),u=s[0],o=s[1];if(Number(o)<this.from)return t.prototype._appendCharRaw.call(this,n[this.value.length],e);if(Number(u)>this.to){if(!e.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength){return t.prototype._appendCharRaw.call(this,n[this.value.length],e).aggregate(this._appendCharRaw(i,e))}return t.prototype._appendCharRaw.call(this,r[this.value.length],e)}return t.prototype._appendCharRaw.call(this,i,e)};i.prototype.doValidate=function(i){var e=this.value;var n=e.search(/[^0]/);if(n===-1&&e.length<=this._matchFrom)return true;var r=this.boundaries(e),s=r[0],u=r[1];return this.from<=Number(u)&&Number(s)<=this.to&&t.prototype.doValidate.call(this,i)};i.prototype.pad=function(i){var e=this;var n=new R;if(this.value.length===this.maxLength)return n;var r=this.value;var s=this.maxLength-this.value.length;if(s){this.reset();for(var u=0;u<s;++u){n.aggregate(t.prototype._appendCharRaw.call(this,"0",i))}r.split("").forEach((function(t){return e._appendCharRaw(t)}))}return n};return i}(Z);D.MaskedRange=U;var K="d{.}`m{.}`Y";var $=function(t){__extends(i,t);function i(e){return t.call(this,i.extractPatternOptions(__assign(__assign({},i.DEFAULTS),e)))||this}i.extractPatternOptions=function(t){var i=t.mask,e=t.pattern,n=__rest(t,["mask","pattern"]);return __assign(__assign({},n),{mask:x(i)?i:e})};i.prototype.updateOptions=function(i){t.prototype.updateOptions.call(this,i)};i.prototype._update=function(e){var n=__assign(__assign({},i.DEFAULTS),e),r=n.mask,s=n.pattern,u=n.blocks,o=__rest(n,["mask","pattern","blocks"]);var a=Object.assign({},i.GET_DEFAULT_BLOCKS());if(e.min)a.Y.from=e.min.getFullYear();if(e.max)a.Y.to=e.max.getFullYear();if(e.min&&e.max&&a.Y.from===a.Y.to){a.m.from=e.min.getMonth()+1;a.m.to=e.max.getMonth()+1;if(a.m.from===a.m.to){a.d.from=e.min.getDate();a.d.to=e.max.getDate()}}Object.assign(a,this.blocks,u);t.prototype._update.call(this,__assign(__assign({},o),{mask:x(r)?r:s,blocks:a}))};i.prototype.doValidate=function(i){var e=this.date;return t.prototype.doValidate.call(this,i)&&(!this.isComplete||this.isDateExist(this.value)&&e!=null&&(this.min==null||this.min<=e)&&(this.max==null||e<=this.max))};i.prototype.isDateExist=function(t){return this.format(this.parse(t,this),this).indexOf(t)>=0};Object.defineProperty(i.prototype,"date",{get:function(){return this.typedValue},set:function(t){this.typedValue=t},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"typedValue",{get:function(){return this.isComplete?t.prototype.typedValue:null},set:function(i){t.prototype.typedValue=i},enumerable:false,configurable:true});i.prototype.maskEquals=function(i){return i===Date||t.prototype.maskEquals.call(this,i)};i.prototype.optionsIsChanged=function(e){return t.prototype.optionsIsChanged.call(this,i.extractPatternOptions(e))};return i}(Z);$.GET_DEFAULT_BLOCKS=function(){return{d:{mask:U,from:1,to:31,maxLength:2},m:{mask:U,from:1,to:12,maxLength:2},Y:{mask:U,from:1900,to:9999}}};$.DEFAULTS=__assign(__assign({},Z.DEFAULTS),{mask:Date,pattern:K,format:function(t,i){if(!t)return"";var e=String(t.getDate()).padStart(2,"0");var n=String(t.getMonth()+1).padStart(2,"0");var r=t.getFullYear();return[e,n,r].join(".")},parse:function(t,i){var e=t.split(".").map(Number),n=e[0],r=e[1],s=e[2];return new Date(s,r-1,n)}});D.MaskedDate=$;var J=function(t){__extends(i,t);function i(e){var n=t.call(this,__assign(__assign({},i.DEFAULTS),e))||this;n.currentMask=undefined;return n}i.prototype.updateOptions=function(i){t.prototype.updateOptions.call(this,i)};i.prototype._update=function(i){var e=this;t.prototype._update.call(this,i);if("mask"in i){this.exposeMask=undefined;this.compiledMasks=Array.isArray(i.mask)?i.mask.map((function(t){var i=E(t),n=i.expose,r=__rest(i,["expose"]);var s=O(__assign({overwrite:e._overwrite,eager:e._eager,skipInvalid:e._skipInvalid},r));if(n)e.exposeMask=s;return s})):[]}};i.prototype._appendCharRaw=function(t,i){if(i===void 0){i={}}var e=this._applyDispatch(t,i);if(this.currentMask){e.aggregate(this.currentMask._appendChar(t,this.currentMaskFlags(i)))}return e};i.prototype._applyDispatch=function(t,i,e){if(t===void 0){t=""}if(i===void 0){i={}}if(e===void 0){e=""}var n=i.tail&&i._beforeTailState!=null?i._beforeTailState._value:this.value;var r=this.rawInputValue;var s=i.tail&&i._beforeTailState!=null?i._beforeTailState._rawInputValue:r;var u=r.slice(s.length);var o=this.currentMask;var a=new R;var h=o==null?void 0:o.state;this.currentMask=this.doDispatch(t,__assign({},i),e);if(this.currentMask){if(this.currentMask!==o){this.currentMask.reset();if(s){this.currentMask.append(s,{raw:true});a.tailShift=this.currentMask.value.length-n.length}if(u){a.tailShift+=this.currentMask.append(u,{raw:true,tail:true}).tailShift}}else if(h){this.currentMask.state=h}}return a};i.prototype._appendPlaceholder=function(){var t=this._applyDispatch();if(this.currentMask){t.aggregate(this.currentMask._appendPlaceholder())}return t};i.prototype._appendEager=function(){var t=this._applyDispatch();if(this.currentMask){t.aggregate(this.currentMask._appendEager())}return t};i.prototype.appendTail=function(i){var e=new R;if(i)e.aggregate(this._applyDispatch("",{},i));return e.aggregate(this.currentMask?this.currentMask.appendTail(i):t.prototype.appendTail.call(this,i))};i.prototype.currentMaskFlags=function(t){var i,e;return __assign(__assign({},t),{_beforeTailState:((i=t._beforeTailState)==null?void 0:i.currentMaskRef)===this.currentMask&&((e=t._beforeTailState)==null?void 0:e.currentMask)||t._beforeTailState})};i.prototype.doDispatch=function(t,i,e){if(i===void 0){i={}}if(e===void 0){e=""}return this.dispatch(t,this,i,e)};i.prototype.doValidate=function(i){return t.prototype.doValidate.call(this,i)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(i)))};i.prototype.doPrepare=function(i,e){var n;if(e===void 0){e={}}var r=t.prototype.doPrepare.call(this,i,e),s=r[0],u=r[1];if(this.currentMask){var o=void 0;n=t.prototype.doPrepare.call(this,s,this.currentMaskFlags(e)),s=n[0],o=n[1];u=u.aggregate(o)}return[s,u]};i.prototype.doPrepareChar=function(i,e){var n;if(e===void 0){e={}}var r=t.prototype.doPrepareChar.call(this,i,e),s=r[0],u=r[1];if(this.currentMask){var o=void 0;n=t.prototype.doPrepareChar.call(this,s,this.currentMaskFlags(e)),s=n[0],o=n[1];u=u.aggregate(o)}return[s,u]};i.prototype.reset=function(){var t;(t=this.currentMask)==null||t.reset();this.compiledMasks.forEach((function(t){return t.reset()}))};Object.defineProperty(i.prototype,"value",{get:function(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""},set:function(i){if(this.exposeMask){this.exposeMask.value=i;this.currentMask=this.exposeMask;this._applyDispatch()}else t.prototype.value=i},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"unmaskedValue",{get:function(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""},set:function(i){if(this.exposeMask){this.exposeMask.unmaskedValue=i;this.currentMask=this.exposeMask;this._applyDispatch()}else t.prototype.unmaskedValue=i},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"typedValue",{get:function(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""},set:function(t){if(this.exposeMask){this.exposeMask.typedValue=t;this.currentMask=this.exposeMask;this._applyDispatch();return}var i=String(t);if(this.currentMask){this.currentMask.typedValue=t;i=this.currentMask.unmaskedValue}this.unmaskedValue=i},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"displayValue",{get:function(){return this.currentMask?this.currentMask.displayValue:""},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"isComplete",{get:function(){var t;return Boolean((t=this.currentMask)==null?void 0:t.isComplete)},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"isFilled",{get:function(){var t;return Boolean((t=this.currentMask)==null?void 0:t.isFilled)},enumerable:false,configurable:true});i.prototype.remove=function(t,i){var e=new R;if(this.currentMask){e.aggregate(this.currentMask.remove(t,i)).aggregate(this._applyDispatch())}return e};Object.defineProperty(i.prototype,"state",{get:function(){var i;return __assign(__assign({},t.prototype.state),{_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map((function(t){return t.state})),currentMaskRef:this.currentMask,currentMask:(i=this.currentMask)==null?void 0:i.state})},set:function(i){var e=i.compiledMasks,n=i.currentMaskRef,r=i.currentMask,s=__rest(i,["compiledMasks","currentMaskRef","currentMask"]);if(e)this.compiledMasks.forEach((function(t,i){return t.state=e[i]}));if(n!=null){this.currentMask=n;this.currentMask.state=r}t.prototype.state=s},enumerable:false,configurable:true});i.prototype.extractInput=function(t,i,e){return this.currentMask?this.currentMask.extractInput(t,i,e):""};i.prototype.extractTail=function(i,e){return this.currentMask?this.currentMask.extractTail(i,e):t.prototype.extractTail.call(this,i,e)};i.prototype.doCommit=function(){if(this.currentMask)this.currentMask.doCommit();t.prototype.doCommit.call(this)};i.prototype.nearestInputPos=function(i,e){return this.currentMask?this.currentMask.nearestInputPos(i,e):t.prototype.nearestInputPos.call(this,i,e)};Object.defineProperty(i.prototype,"overwrite",{get:function(){return this.currentMask?this.currentMask.overwrite:this._overwrite},set:function(t){this._overwrite=t},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"eager",{get:function(){return this.currentMask?this.currentMask.eager:this._eager},set:function(t){this._eager=t},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"skipInvalid",{get:function(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid},set:function(t){this._skipInvalid=t},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"autofix",{get:function(){return this.currentMask?this.currentMask.autofix:this._autofix},set:function(t){this._autofix=t},enumerable:false,configurable:true});i.prototype.maskEquals=function(i){return Array.isArray(i)?this.compiledMasks.every((function(t,e){if(!i[e])return;var n=i[e],r=n.mask,s=__rest(n,["mask"]);return y(t,s)&&t.maskEquals(r)})):t.prototype.maskEquals.call(this,i)};i.prototype.typedValueEquals=function(t){var i;return Boolean((i=this.currentMask)==null?void 0:i.typedValueEquals(t))};return i}(P);J.DEFAULTS=__assign(__assign({},P.DEFAULTS),{dispatch:function(t,i,e,n){if(!i.compiledMasks.length)return;var r=i.rawInputValue;var s=i.compiledMasks.map((function(s,u){var o=i.currentMask===s;var a=o?s.displayValue.length:s.nearestInputPos(s.displayValue.length,_.FORCE_LEFT);if(s.rawInputValue!==r){s.reset();s.append(r,{raw:true})}else if(!o){s.remove(a)}s.append(t,i.currentMaskFlags(e));s.appendTail(n);return{index:u,weight:s.rawInputValue.length,totalInputPositions:s.totalInputPositions(0,Math.max(a,s.nearestInputPos(s.displayValue.length,_.FORCE_LEFT)))}}));s.sort((function(t,i){return i.weight-t.weight||i.totalInputPositions-t.totalInputPositions}));return i.compiledMasks[s[0].index]}});D.MaskedDynamic=J;var X=function(t){__extends(i,t);function i(e){return t.call(this,__assign(__assign({},i.DEFAULTS),e))||this}i.prototype.updateOptions=function(i){t.prototype.updateOptions.call(this,i)};i.prototype._update=function(i){var e=i.enum,n=__rest(i,["enum"]);if(e){var r=e.map((function(t){return t.length}));var s=Math.min.apply(Math,r);var u=Math.max.apply(Math,r)-s;n.mask="*".repeat(s);if(u)n.mask+="["+"*".repeat(u)+"]";this.enum=e}t.prototype._update.call(this,n)};i.prototype._appendCharRaw=function(i,e){var n=this;if(e===void 0){e={}}var r=Math.min(this.nearestInputPos(0,_.FORCE_RIGHT),this.value.length);var s=this.enum.filter((function(t){return n.matchValue(t,n.unmaskedValue+i,r)}));if(s.length){if(s.length===1){this._forEachBlocksInRange(0,this.value.length,(function(t,i){var r=s[0][i];if(i>=n.value.length||r===t.value)return;t.reset();t._appendChar(r,e)}))}var u=t.prototype._appendCharRaw.call(this,s[0][this.value.length],e);if(s.length===1){s[0].slice(this.unmaskedValue.length).split("").forEach((function(i){return u.aggregate(t.prototype._appendCharRaw.call(n,i))}))}return u}return new R({skip:!this.isComplete})};i.prototype.extractTail=function(t,i){if(t===void 0){t=0}return new L("",t)};i.prototype.remove=function(i,e){var n=this;if(i===void 0){i=0}if(e===void 0){e=this.displayValue.length}if(i===e)return new R;var r=Math.min(t.prototype.nearestInputPos.call(this,0,_.FORCE_RIGHT),this.value.length);var s;for(s=i;s>=0;--s){var u=this.enum.filter((function(t){return n.matchValue(t,n.value.slice(r,s),r)}));if(u.length>1)break}var o=t.prototype.remove.call(this,s,e);o.tailShift+=s-i;return o};Object.defineProperty(i.prototype,"isComplete",{get:function(){return this.enum.indexOf(this.value)>=0},enumerable:false,configurable:true});return i}(Z);X.DEFAULTS=__assign(__assign({},Z.DEFAULTS),{matchValue:function(t,i,e){return t.indexOf(i,e)===e}});D.MaskedEnum=X;var Q=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}i.prototype.updateOptions=function(i){t.prototype.updateOptions.call(this,i)};i.prototype._update=function(i){t.prototype._update.call(this,__assign(__assign({},i),{validate:i.mask}))};return i}(P);D.MaskedFunction=Q;var tt;var it=function(t){__extends(i,t);function i(e){return t.call(this,__assign(__assign({},i.DEFAULTS),e))||this}i.prototype.updateOptions=function(i){t.prototype.updateOptions.call(this,i)};i.prototype._update=function(i){t.prototype._update.call(this,i);this._updateRegExps()};i.prototype._updateRegExps=function(){var t="^"+(this.allowNegative?"[+|\\-]?":"");var i="\\d*";var e=(this.scale?"("+k(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(t+i+e);this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map(k).join("")+"]","g");this._thousandsSeparatorRegExp=new RegExp(k(this.thousandsSeparator),"g")};i.prototype._removeThousandsSeparators=function(t){return t.replace(this._thousandsSeparatorRegExp,"")};i.prototype._insertThousandsSeparators=function(t){var i=t.split(this.radix);i[0]=i[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator);return i.join(this.radix)};i.prototype.doPrepareChar=function(i,e){if(e===void 0){e={}}var n=t.prototype.doPrepareChar.call(this,this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(e.input&&e.raw||!e.input&&!e.raw)?i.replace(this._mapToRadixRegExp,this.radix):i),e),r=n[0],s=n[1];if(i&&!r)s.skip=true;if(r&&!this.allowPositive&&!this.value&&r!=="-")s.aggregate(this._appendChar("-"));return[r,s]};i.prototype._separatorsCount=function(t,i){if(i===void 0){i=false}var e=0;for(var n=0;n<t;++n){if(this._value.indexOf(this.thousandsSeparator,n)===n){++e;if(i)t+=this.thousandsSeparator.length}}return e};i.prototype._separatorsCountFromSlice=function(t){if(t===void 0){t=this._value}return this._separatorsCount(this._removeThousandsSeparators(t).length,true)};i.prototype.extractInput=function(i,e,n){var r;if(i===void 0){i=0}if(e===void 0){e=this.displayValue.length}r=this._adjustRangeWithSeparators(i,e),i=r[0],e=r[1];return this._removeThousandsSeparators(t.prototype.extractInput.call(this,i,e,n))};i.prototype._appendCharRaw=function(t,e){if(e===void 0){e={}}var n=e.tail&&e._beforeTailState?e._beforeTailState._value:this._value;var r=this._separatorsCountFromSlice(n);this._value=this._removeThousandsSeparators(this.value);var s=this._value;this._value+=t;var u=this.number;var o=!isNaN(u);var a=false;if(o){var h=void 0;if(this.min!=null&&this.min<0&&this.number<this.min)h=this.min;if(this.max!=null&&this.max>0&&this.number>this.max)h=this.max;if(h!=null){if(this.autofix){this._value=this.format(h,this).replace(i.UNMASKED_RADIX,this.radix);a||(a=s===this._value&&!e.tail)}else{o=false}}o&&(o=Boolean(this._value.match(this._numberRegExp)))}var f;if(!o){this._value=s;f=new R}else{f=new R({inserted:this._value.slice(s.length),rawInserted:a?"":t,skip:a})}this._value=this._insertThousandsSeparators(this._value);var l=e.tail&&e._beforeTailState?e._beforeTailState._value:this._value;var c=this._separatorsCountFromSlice(l);f.tailShift+=(c-r)*this.thousandsSeparator.length;return f};i.prototype._findSeparatorAround=function(t){if(this.thousandsSeparator){var i=t-this.thousandsSeparator.length+1;var e=this.value.indexOf(this.thousandsSeparator,i);if(e<=t)return e}return-1};i.prototype._adjustRangeWithSeparators=function(t,i){var e=this._findSeparatorAround(t);if(e>=0)t=e;var n=this._findSeparatorAround(i);if(n>=0)i=n+this.thousandsSeparator.length;return[t,i]};i.prototype.remove=function(t,i){var e;if(t===void 0){t=0}if(i===void 0){i=this.displayValue.length}e=this._adjustRangeWithSeparators(t,i),t=e[0],i=e[1];var n=this.value.slice(0,t);var r=this.value.slice(i);var s=this._separatorsCount(n.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(n+r));var u=this._separatorsCountFromSlice(n);return new R({tailShift:(u-s)*this.thousandsSeparator.length})};i.prototype.nearestInputPos=function(t,i){if(!this.thousandsSeparator)return t;switch(i){case _.NONE:case _.LEFT:case _.FORCE_LEFT:{var e=this._findSeparatorAround(t-1);if(e>=0){var n=e+this.thousandsSeparator.length;if(t<n||this.value.length<=n||i===_.FORCE_LEFT){return e}}break}case _.RIGHT:case _.FORCE_RIGHT:{var r=this._findSeparatorAround(t);if(r>=0){return r+this.thousandsSeparator.length}}}return t};i.prototype.doCommit=function(){if(this.value){var i=this.number;var e=i;if(this.min!=null)e=Math.max(e,this.min);if(this.max!=null)e=Math.min(e,this.max);if(e!==i)this.unmaskedValue=this.format(e,this);var n=this.value;if(this.normalizeZeros)n=this._normalizeZeros(n);if(this.padFractionalZeros&&this.scale>0)n=this._padFractionalZeros(n);this._value=n}t.prototype.doCommit.call(this)};i.prototype._normalizeZeros=function(t){var i=this._removeThousandsSeparators(t).split(this.radix);i[0]=i[0].replace(/^(\D*)(0*)(\d*)/,(function(t,i,e,n){return i+n}));if(t.length&&!/\d$/.test(i[0]))i[0]=i[0]+"0";if(i.length>1){i[1]=i[1].replace(/0*$/,"");if(!i[1].length)i.length=1}return this._insertThousandsSeparators(i.join(this.radix))};i.prototype._padFractionalZeros=function(t){if(!t)return t;var i=t.split(this.radix);if(i.length<2)i.push("");i[1]=i[1].padEnd(this.scale,"0");return i.join(this.radix)};i.prototype.doSkipInvalid=function(e,n,r){if(n===void 0){n={}}var s=this.scale===0&&e!==this.thousandsSeparator&&(e===this.radix||e===i.UNMASKED_RADIX||this.mapToRadix.includes(e));return t.prototype.doSkipInvalid.call(this,e,n,r)&&!s};Object.defineProperty(i.prototype,"unmaskedValue",{get:function(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,i.UNMASKED_RADIX)},set:function(i){t.prototype.unmaskedValue=i},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"typedValue",{get:function(){return this.parse(this.unmaskedValue,this)},set:function(t){this.rawInputValue=this.format(t,this).replace(i.UNMASKED_RADIX,this.radix)},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"number",{get:function(){return this.typedValue},set:function(t){this.typedValue=t},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"allowNegative",{get:function(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"allowPositive",{get:function(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0},enumerable:false,configurable:true});i.prototype.typedValueEquals=function(e){return(t.prototype.typedValueEquals.call(this,e)||i.EMPTY_VALUES.includes(e)&&i.EMPTY_VALUES.includes(this.typedValue))&&!(e===0&&this.value==="")};return i}(P);tt=it;it.UNMASKED_RADIX=".";it.EMPTY_VALUES=__spreadArray(__spreadArray([],P.EMPTY_VALUES,true),[0],false);it.DEFAULTS=__assign(__assign({},P.DEFAULTS),{mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[tt.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:true,padFractionalZeros:false,parse:Number,format:function(t){return t.toLocaleString("en-US",{useGrouping:false,maximumFractionDigits:20})}});D.MaskedNumber=it;var et={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function nt(t,i,e){if(i===void 0){i=et.MASKED}if(e===void 0){e=et.MASKED}var n=O(t);return function(t){return n.runIsolated((function(n){n[i]=t;return n[e]}))}}function rt(t,i,e,n){return nt(i,e,n)(t)}D.PIPE_TYPE=et;D.createPipe=nt;D.pipe=rt;var st=function(t){__extends(i,t);function i(i){return t.call(this,i)||this}Object.defineProperty(i.prototype,"repeatFrom",{get:function(){var t;return(t=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===Infinity?0:this.repeat)!=null?t:0},enumerable:false,configurable:true});Object.defineProperty(i.prototype,"repeatTo",{get:function(){var t;return(t=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)!=null?t:Infinity},enumerable:false,configurable:true});i.prototype.updateOptions=function(i){t.prototype.updateOptions.call(this,i)};i.prototype._update=function(i){var e,n,r;var s=E(i),u=s.repeat,o=__rest(s,["repeat"]);this._blockOpts=Object.assign({},this._blockOpts,o);var a=O(this._blockOpts);this.repeat=(e=(n=u!=null?u:a.repeat)!=null?n:this.repeat)!=null?e:Infinity;t.prototype._update.call(this,{mask:"m".repeat(Math.max(this.repeatTo===Infinity&&((r=this._blocks)==null?void 0:r.length)||0,this.repeatFrom)),blocks:{m:a},eager:a.eager,overwrite:a.overwrite,skipInvalid:a.skipInvalid,lazy:a.lazy,placeholderChar:a.placeholderChar,displayChar:a.displayChar})};i.prototype._allocateBlock=function(t){if(t<this._blocks.length)return this._blocks[t];if(this.repeatTo===Infinity||this._blocks.length<this.repeatTo){this._blocks.push(O(this._blockOpts));this.mask+="m";return this._blocks[this._blocks.length-1]}};i.prototype._appendCharRaw=function(t,i){if(i===void 0){i={}}var e=new R;for(var n=(u=(o=this._mapPosToBlock(this.displayValue.length))==null?void 0:o.index)!=null?u:Math.max(this._blocks.length-1,0),r=void 0,s=void 0;r=(a=this._blocks[n])!=null?a:s=!s&&this._allocateBlock(n);++n){var u,o,a,h;var f=r._appendChar(t,__assign(__assign({},i),{_beforeTailState:(h=i._beforeTailState)==null||(h=h._blocks)==null?void 0:h[n]}));if(f.skip&&s){this._blocks.pop();this.mask=this.mask.slice(1);break}e.aggregate(f);if(f.consumed)break}return e};i.prototype._trimEmptyTail=function(t,i){var e,n;if(t===void 0){t=0}var r=Math.max(((e=this._mapPosToBlock(t))==null?void 0:e.index)||0,this.repeatFrom,0);var s;if(i!=null)s=(n=this._mapPosToBlock(i))==null?void 0:n.index;if(s==null)s=this._blocks.length-1;var u=0;for(var o=s;r<=o;--o,++u){if(this._blocks[o].unmaskedValue)break}if(u){this._blocks.splice(s-u+1,u);this.mask=this.mask.slice(u)}};i.prototype.reset=function(){t.prototype.reset.call(this);this._trimEmptyTail()};i.prototype.remove=function(i,e){if(i===void 0){i=0}if(e===void 0){e=this.displayValue.length}var n=t.prototype.remove.call(this,i,e);this._trimEmptyTail(i,e);return n};i.prototype.totalInputPositions=function(i,e){if(i===void 0){i=0}if(e==null&&this.repeatTo===Infinity)return Infinity;return t.prototype.totalInputPositions.call(this,i,e)};Object.defineProperty(i.prototype,"state",{get:function(){return t.prototype.state},set:function(i){this._blocks.length=i._blocks.length;this.mask=this.mask.slice(0,this._blocks.length);t.prototype.state=i},enumerable:false,configurable:true});return i}(Z);D.RepeatBlock=st;try{globalThis.IMask=D}catch(t){}var ut='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-kba-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog .background-overlay{position:fixed;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:rgba(0, 0, 0, 0.4980392157)}verdocs-kba-dialog .dialog{width:440px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#fff;padding:16px;gap:10px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-kba-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-kba-dialog .step{margin-left:6px;color:#666}verdocs-kba-dialog .help-box{background-color:#707ae5;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:14px;-ms-flex-align:center;align-items:center;color:white}verdocs-kba-dialog .help-details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:15px;font-size:14px}verdocs-kba-dialog .help-icon{width:40px;height:40px}verdocs-kba-dialog .help-title{font-weight:600;margin-bottom:4px}verdocs-kba-dialog .help-text{font-weight:400}verdocs-kba-dialog .input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:10px;-ms-flex-align:center;align-items:center;margin:16px 0 32px}verdocs-kba-dialog .input label{-ms-flex:0;flex:0;line-height:10px;font-weight:500;white-space:nowrap}verdocs-kba-dialog .input input{-ms-flex:1;flex:1;padding:5px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-kba-dialog .field{gap:10px;margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;-ms-flex-direction:row;flex-direction:row;max-width:100%}verdocs-kba-dialog .field .required{color:red;position:relative;top:-0.5em;font-size:80%}verdocs-kba-dialog .field label{margin-top:4px;-ms-flex:0 0 120px;flex:0 0 120px;font-weight:500;line-height:10px;text-align:right;white-space:nowrap}verdocs-kba-dialog .field verdocs-date-input{width:40%;-ms-flex-positive:1;flex-grow:1}verdocs-kba-dialog .field verdocs-date-input input{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog .field input{width:40%;-ms-flex-positive:1;flex-grow:1;padding:5px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-kba-dialog .choices{display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));margin:0 0 15px 0}verdocs-kba-dialog .choice{border:1px solid #707ae5;border-radius:5px;display:-ms-flexbox;display:flex;height:60px;font-size:14px;padding:0 5px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;color:#5c6575;cursor:pointer}verdocs-kba-dialog .choice.selected{background-color:#707ae5;color:#ffffff}verdocs-kba-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-kba-dialog .buttons verdocs-button{margin-left:16px}';var ot={AL:"Alabama",AK:"Alaska",AS:"American Samoa",AZ:"Arizona",AR:"Arkansas",CA:"California",CO:"Colorado",CT:"Connecticut",DE:"Delaware",DC:"District Of Columbia",FM:"Federated States Of Micronesia",FL:"Florida",GA:"Georgia",GU:"Guam",HI:"Hawaii",ID:"Idaho",IL:"Illinois",IN:"Indiana",IA:"Iowa",KS:"Kansas",KY:"Kentucky",LA:"Louisiana",ME:"Maine",MH:"Marshall Islands",MD:"Maryland",MA:"Massachusetts",MI:"Michigan",MN:"Minnesota",MS:"Mississippi",MO:"Missouri",MT:"Montana",NE:"Nebraska",NV:"Nevada",NH:"New Hampshire",NJ:"New Jersey",NM:"New Mexico",NY:"New York",NC:"North Carolina",ND:"North Dakota",MP:"Northern Mariana Islands",OH:"Ohio",OK:"Oklahoma",OR:"Oregon",PW:"Palau",PA:"Pennsylvania",PR:"Puerto Rico",RI:"Rhode Island",SC:"South Carolina",SD:"South Dakota",TN:"Tennessee",TX:"Texas",UT:"Utah",VT:"Vermont",VI:"Virgin Islands",VA:"Virginia",WA:"Washington",WV:"West Virginia",WI:"Wisconsin",WY:"Wyoming"};var at=Object.entries(ot).map((function(t){var i=t[0],e=t[1];return{value:i,label:e}}));var ht='<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 0C8.95313 0 0 8.95313 0 20C0 31.0469 8.95313 40 20 40C31.0469 40 40 31.0469 40 20C40 8.95313 31.0469 0 20 0ZM20 36.25C11.0391 36.25 3.75 28.9602 3.75 20C3.75 11.0398 11.0391 3.75 20 3.75C28.9609 3.75 36.25 11.0398 36.25 20C36.25 28.9602 28.9609 36.25 20 36.25Z" fill="white"/><path d="M20 26.25C18.5938 26.25 17.5 27.3438 17.5 28.75C17.5 30.1562 18.5234 31.25 20 31.25C21.3359 31.25 22.5 30.1562 22.5 28.75C22.5 27.3438 21.3359 26.25 20 26.25ZM22.5859 10H18.5938C15.5469 10 13.125 12.4219 13.125 15.4688C13.125 16.4844 13.9844 17.3438 15 17.3438C16.0156 17.3438 16.875 16.4844 16.875 15.4688C16.875 14.5312 17.5859 13.75 18.5234 13.75H22.5156C23.5234 13.75 24.375 14.5312 24.375 15.4688C24.375 16.0938 24.0625 16.5703 23.5156 16.8828L19.0625 19.6094C18.4375 20 18.125 20.625 18.125 21.25V22.5C18.125 23.5156 18.9844 24.375 20 24.375C21.0156 24.375 21.875 23.5156 21.875 22.5V22.3438L25.3984 20.1562C27.0391 19.1406 28.0547 17.3438 28.0547 15.4688C28.125 12.4219 25.7031 10 22.5859 10Z" fill="#E7E7E7"/></svg>';var ft=t("verdocs_kba_dialog",function(){function t(t){i(this,t);this.exit=e(this,"exit");this.pinEntered=e(this,"pinEntered");this.next=e(this,"next");this.step=1;this.steps=3;this.helptitle="Previous Addresses";this.helptext="Please select the address below that you have most recently lived at.";this.mode="choice";this.label="PIN";this.placeholder="Enter your PIN...";this.recipient=null;this.choices=["553 Arbor Dr","18 Lacey Ln","23A Ball Ct","2375 Cavallo Blvd","23-1 RR-7","151 Boulder Rd"];this.agreed=false;this.response="";this.updatedRecipient=null;this.dobContainerId="verdocs-date-input-".concat(Math.random().toString(36).substring(2,11))}t.prototype.componentWillLoad=function(){this.updatedRecipient=__assign({},this.recipient||{})};t.prototype.componentDidRender=function(){D(document.getElementById(this.dobContainerId),{mask:Date,min:new Date(1920,0,1),max:new Date(2007,12,31),lazy:false,pattern:"m/d/Y",format:function(t){var i=t.getDate();var e=t.getMonth()+1;var n=t.getFullYear();if(i<10)i="0"+i;if(e<10)e="0"+e;return[e,i,n].join("/")},parse:function(t){var i=t.split("/");return new Date(i[2],i[0]-1,i[1])}})};t.prototype.handleCancel=function(){this.exit.emit()};t.prototype.handleDismiss=function(t){if(t.target.class==="background-overlay"){t.preventDefault();this.handleCancel()}};t.prototype.handleDone=function(){this.next.emit(this.response);this.response=""};t.prototype.handleConfirmID=function(){console.log("Confirm ID",this.updatedRecipient);this.next.emit(this.updatedRecipient)};t.prototype.render=function(){var t=this;var i,e,u,o,a,h,f,l,c,d,v,b,g,p;if(this.mode==="choice"){return n(s,null,n("div",{class:"background-overlay",onClick:function(i){return t.handleDismiss(i)}},n("div",{class:"dialog"},n("div",{class:"heading"},"Confirm Your Identity",this.steps>1?n("span",{class:"step"},"(",this.step,"/",this.steps,")"):n(r,null)),!!this.helptitle&&n("div",{class:"help-box"},n("div",{class:"help-icon",innerHTML:ht}),n("div",{class:"help-details"},n("div",{class:"help-title"},this.helptitle),n("div",{class:"help-text"},this.helptext))),n("div",{class:"choices"},this.choices.map((function(i){return n("div",{class:"choice ".concat(i===t.response?"selected":""),onClick:function(){console.log("Selected",i);t.response=i}},i)}))),n("div",{class:"buttons"},n("verdocs-button",{label:"Cancel",variant:"outline",onClick:function(){return t.handleCancel()}}),n("verdocs-button",{label:this.step<this.steps?"Next":"Submit",onClick:function(){return t.handleDone()},disabled:!this.response})))))}if(this.mode==="identity"){return n(s,null,n("div",{class:"background-overlay",onClick:function(i){return t.handleDismiss(i)}},n("div",{class:"dialog"},n("div",{class:"heading"},"Confirm Your Identity"),n("div",{class:"field"},n("label",{htmlFor:"verdocs-kba-first"},"Your Name:",n("span",{class:"required"},"*")),n("input",{required:true,type:"text",id:"verdocs-kba-first",name:"verdocs-kba-first",placeholder:"First name...",value:(i=this.updatedRecipient)===null||i===void 0?void 0:i.first_name,onInput:function(i){return t.updatedRecipient=__assign(__assign({},t.updatedRecipient),{first_name:i.target.value})}}),n("input",{type:"text",id:"verdocs-kba-last",name:"verdocs-kba-last",placeholder:"Last name...",required:true,value:(e=this.updatedRecipient)===null||e===void 0?void 0:e.last_name,onInput:function(i){return t.updatedRecipient=__assign(__assign({},t.updatedRecipient),{last_name:i.target.value})}})),n("div",{class:"field"},n("label",{htmlFor:"verdocs-kba-address"},"Address:",n("span",{class:"required"},"*")),n("input",{type:"text",id:"verdocs-kba-address",name:"verdocs-kba-address",placeholder:"Address...",value:(u=this.updatedRecipient)===null||u===void 0?void 0:u.address,onInput:function(i){return t.updatedRecipient=__assign(__assign({},t.updatedRecipient),{address:i.target.value})}})),n("div",{class:"field"},n("label",{htmlFor:"verdocs-kba-city"},"City:"),n("input",{type:"text",id:"verdocs-kba-city",name:"verdocs-kba-city",placeholder:"City...",value:(o=this.updatedRecipient)===null||o===void 0?void 0:o.city,onInput:function(i){return t.updatedRecipient=__assign(__assign({},t.updatedRecipient),{city:i.target.value})}})),n("div",{class:"field"},n("label",{htmlFor:"verdocs-kba-state"},"State:"),n("verdocs-select-input",{options:at,value:(a=this.updatedRecipient)===null||a===void 0?void 0:a.state,onInput:function(i){return t.updatedRecipient=__assign(__assign({},t.updatedRecipient),{state:i.target.value})}})),n("div",{class:"field"},n("label",{htmlFor:"verdocs-kba-zip"},"Zip Code:",n("span",{class:"required"},"*")),n("input",{type:"text",id:"verdocs-kba-zip",name:"verdocs-kba-zip",placeholder:"Zip Code...",required:true,value:(h=this.updatedRecipient)===null||h===void 0?void 0:h.zip,onInput:function(i){return t.updatedRecipient=__assign(__assign({},t.updatedRecipient),{zip:i.target.value})}})),n("div",{class:"field"},n("label",{htmlFor:"verdocs-kba-ssn"},"SSN Last 4:",n("span",{class:"required"},"*")),n("input",{type:"text",id:"verdocs-kba-ssn",name:"verdocs-kba-ssn",placeholder:"Last 4 digits of your Social Security Number...",required:true,value:(f=this.updatedRecipient)===null||f===void 0?void 0:f.ssn_last_4,onInput:function(i){return t.updatedRecipient=__assign(__assign({},t.updatedRecipient),{ssn_last_4:i.target.value})}})),n("div",{class:"field"},n("label",{htmlFor:this.dobContainerId},"Date of Birth:",n("span",{class:"required"},"*")),n("input",{type:"text",value:((l=this.updatedRecipient)===null||l===void 0?void 0:l.dob)||"",id:this.dobContainerId,placeholder:"DOB...",onInput:function(i){return t.updatedRecipient=__assign(__assign({},t.updatedRecipient),{dob:i.target.value})}})),n("div",{class:"field"},n("label",null),n("verdocs-checkbox",{id:"verdocs-kba-agree",name:"verdocs-kba-agree",checked:this.agreed,onInput:function(i){return t.agreed=i.target.checked}}),n("span",null,"I agree to provide my personal information in order to validate my identity.")),n("div",{class:"buttons"},n("verdocs-button",{label:"Submit",onClick:function(){return t.handleConfirmID()},disabled:!this.agreed||!((c=this.updatedRecipient)===null||c===void 0?void 0:c.first_name)||!((d=this.updatedRecipient)===null||d===void 0?void 0:d.last_name)||!((v=this.updatedRecipient)===null||v===void 0?void 0:v.address)||!((b=this.updatedRecipient)===null||b===void 0?void 0:b.zip)||!((g=this.updatedRecipient)===null||g===void 0?void 0:g.ssn_last_4)||!((p=this.updatedRecipient)===null||p===void 0?void 0:p.dob)})))))}return n(s,null,n("div",{class:"background-overlay",onClick:function(i){return t.handleDismiss(i)}},n("div",{class:"dialog"},n("div",{class:"heading"},"Please Confirm Your Identity",this.steps>1?n("span",{class:"step"},"(",this.step,"/",this.steps,")"):n(r,null)),!!this.helptitle&&n("div",{class:"help-box"},n("div",{class:"help-icon",innerHTML:ht}),n("div",{class:"help-details"},n("div",{class:"help-title"},this.helptitle),n("div",{class:"help-text"},this.helptext))),n("div",{class:"input"},n("label",{htmlFor:"verdocs-kba-input"},this.label),n("input",{type:"text",id:"verdocs-kba-input",name:"verdocs-kba-input",placeholder:this.placeholder,value:this.response,onInput:function(i){return t.response=i.target.value}})),n("div",{class:"buttons"},n("verdocs-button",{label:"Cancel",variant:"outline",onClick:function(){return t.handleCancel()}}),n("verdocs-button",{label:"Submit",onClick:function(){return t.handleDone()},disabled:!this.response})))))};return t}());ft.style=ut;var lt='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-otp-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-otp-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-otp-dialog .background-overlay{position:fixed;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:rgba(0, 0, 0, 0.4980392157)}verdocs-otp-dialog .dialog{width:440px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#fff;padding:16px;gap:10px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-otp-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-otp-dialog .step{margin-left:6px;color:#666}verdocs-otp-dialog .help-box{background-color:#707ae5;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:14px;-ms-flex-align:center;align-items:center;color:white}verdocs-otp-dialog .help-details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:15px;font-size:14px}verdocs-otp-dialog .help-icon{width:40px;height:40px}verdocs-otp-dialog .help-title{font-weight:600;margin-bottom:4px}verdocs-otp-dialog .help-text{font-weight:400}verdocs-otp-dialog .input{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:10px;-ms-flex-align:center;align-items:center;margin:16px 0 32px}verdocs-otp-dialog .input label{-ms-flex:0;flex:0;line-height:10px;font-weight:500;white-space:nowrap}verdocs-otp-dialog .input input{-ms-flex:1;flex:1;padding:5px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-otp-dialog .field{gap:10px;margin:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;max-width:100%}verdocs-otp-dialog .field .required{color:red;position:relative;top:-0.5em;font-size:80%}verdocs-otp-dialog .field label{-ms-flex:0 0 120px;flex:0 0 120px;font-weight:500;line-height:10px;text-align:right;white-space:nowrap}verdocs-otp-dialog .field verdocs-date-input{width:40%;-ms-flex-positive:1;flex-grow:1}verdocs-otp-dialog .field verdocs-date-input input{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-otp-dialog .field input{width:40%;-ms-flex-positive:1;flex-grow:1;padding:5px 8px;border-radius:3px;border:1px solid #cccccc}verdocs-otp-dialog .choices{display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));margin:0 0 15px 0}verdocs-otp-dialog .choice{border:1px solid #707ae5;border-radius:5px;display:-ms-flexbox;display:flex;height:60px;font-size:14px;padding:0 5px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;color:#5c6575;cursor:pointer}verdocs-otp-dialog .choice.selected{background-color:#707ae5;color:#ffffff}verdocs-otp-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-otp-dialog .buttons verdocs-button{margin-left:16px}';var ct='<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20 0C8.95313 0 0 8.95313 0 20C0 31.0469 8.95313 40 20 40C31.0469 40 40 31.0469 40 20C40 8.95313 31.0469 0 20 0ZM20 36.25C11.0391 36.25 3.75 28.9602 3.75 20C3.75 11.0398 11.0391 3.75 20 3.75C28.9609 3.75 36.25 11.0398 36.25 20C36.25 28.9602 28.9609 36.25 20 36.25Z" fill="white"/><path d="M20 26.25C18.5938 26.25 17.5 27.3438 17.5 28.75C17.5 30.1562 18.5234 31.25 20 31.25C21.3359 31.25 22.5 30.1562 22.5 28.75C22.5 27.3438 21.3359 26.25 20 26.25ZM22.5859 10H18.5938C15.5469 10 13.125 12.4219 13.125 15.4688C13.125 16.4844 13.9844 17.3438 15 17.3438C16.0156 17.3438 16.875 16.4844 16.875 15.4688C16.875 14.5312 17.5859 13.75 18.5234 13.75H22.5156C23.5234 13.75 24.375 14.5312 24.375 15.4688C24.375 16.0938 24.0625 16.5703 23.5156 16.8828L19.0625 19.6094C18.4375 20 18.125 20.625 18.125 21.25V22.5C18.125 23.5156 18.9844 24.375 20 24.375C21.0156 24.375 21.875 23.5156 21.875 22.5V22.3438L25.3984 20.1562C27.0391 19.1406 28.0547 17.3438 28.0547 15.4688C28.125 12.4219 25.7031 10 22.5859 10Z" fill="#E7E7E7"/></svg>';var dt=t("verdocs_otp_dialog",function(){function t(t){i(this,t);this.exit=e(this,"exit");this.next=e(this,"next");this.resendTimeout=null;this.endpoint=v;this.method="email";this.recipient=null;this.resendDisabled=true;this.response=""}t.prototype.componentDidLoad=function(){var t=this;this.startResendTimeout();setTimeout((function(){o(t.endpoint,{auth_method:t.method,code:"",resend:true}).then((function(i){console.log("Resend result",i);t.response=""})).catch((function(t){return console.log("Error resending code",t)}))}),1e3)};t.prototype.disconnectedCallback=function(){if(this.resendTimeout){clearTimeout(this.resendTimeout);this.resendTimeout=null}};t.prototype.handleCancel=function(){this.exit.emit()};t.prototype.handleDismiss=function(t){if(t.target.class==="background-overlay"){t.preventDefault();this.handleCancel()}};t.prototype.startResendTimeout=function(){var t=this;this.resendDisabled=true;if(this.resendTimeout){clearTimeout(this.resendTimeout)}this.resendTimeout=setTimeout((function(){t.resendDisabled=false}),3e4)};t.prototype.handleResend=function(){var t=this;this.startResendTimeout();o(this.endpoint,{auth_method:this.method,code:"",resend:true}).then((function(i){console.log("Resend result",i);t.response="";b("A new code has been sent.")})).catch((function(t){return console.log("Error resending code",t)}))};t.prototype.handleSubmit=function(){var t=this;this.startResendTimeout();o(this.endpoint,{auth_method:this.method,code:this.response}).then((function(i){console.log("Verification completed",i);t.next.emit({response:i});b("Thank you. Your verification was successful.")})).catch((function(t){b("Invalid verification code. Please try again.");console.log("Invalid code",t)}));this.response=""};t.prototype.render=function(){var t=this;return n(s,{key:"e9936d57ff961236f26620800e7f315a715b50a0"},n("div",{key:"1db7981fcf3fde1a8999fbe7bf122cc0169011bc",class:"background-overlay",onClick:function(i){return t.handleDismiss(i)}},n("div",{key:"8ef5993c5bcf1ac08abbcdda589530413c58bbdc",class:"dialog"},n("div",{key:"360f24b0eb2eb4a34d08080f36a1ee5a2aaa4774",class:"heading"},"Verification Required"),n("div",{key:"6d34ca6bf6ad50c39bb813c64b3acb7a4ee81c02",class:"help-box"},n("div",{key:"7b3afd68c4a705bc83f889ed3709ff51dd40758c",class:"help-icon",innerHTML:ct}),n("div",{key:"34a04301351ce588ebf2f4cca678152e1486941a",class:"help-details"},n("div",{key:"bc9c4bc2ca0b6db46485c2f22b329cf25ffb97af",class:"help-title"},"Please verify your email address"),n("div",{key:"a45508806c35bb2d7d44d5a83e289dadb6584c84",class:"help-text"},"Check your email for a one-time code, and enter it below."))),n("div",{key:"8ca152850009203189a9a73c18f320989c97c741",class:"input"},n("label",{key:"4f6f6dcfd0502c69bab6c2fb7f319bcbf84645b6",htmlFor:"verdocs-otp-input"},"Code:"),n("input",{key:"6b859b0e73afe9963d6934d5b7efa921daf1c547",type:"text",id:"verdocs-otp-input",name:"verdocs-otp-input",placeholder:"Enter your one-time code...",value:this.response,onInput:function(i){return t.response=i.target.value}})),n("div",{key:"0d7f1f45563bd2a1f891efa639addf2eb62d5591",class:"buttons"},n("verdocs-button",{key:"55f8bb22817142e371420e0a5c15f133779fd6c9",label:"Cancel",variant:"outline",onClick:function(){return t.handleCancel()}}),n("verdocs-button",{key:"8ebbcc0fcd384a2600f92aeb8c832d46804185a4",label:"Resend",onClick:function(){return t.handleResend()},disabled:this.resendDisabled}),n("verdocs-button",{key:"af1bf5d46d21011fd13c0ad2c4af693c11ad2fe0",label:"Submit",onClick:function(){return t.handleSubmit()},disabled:!this.response})))))};return t}());dt.style=lt;var vt='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-view{display:-ms-flexbox;display:flex;overflow:hidden;min-height:600px;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-view div,verdocs-view canvas{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-view .document{-ms-flex:1;flex:1;width:100%;height:100%;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;max-width:1200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-view .document .inner{width:100%;max-width:1028px}verdocs-view .loading-indicator{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:fixed;background-color:rgba(0, 0, 0, 0.7)}#verdocs-view-header{width:100%;color:#fff;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 56px;flex:0 0 56px;padding:0 20px;font-size:12px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-transition:all 0.25s;transition:all 0.25s;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12)}@media all and (max-width: 500px){#verdocs-view-header{padding:0 10px}}#verdocs-view-header .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 20px;max-width:1200px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}@media all and (max-width: 500px){#verdocs-view-header .inner{padding:0 10px}}#verdocs-view-header .logo{width:80px;display:none;margin:-6px 0 0 0}#verdocs-view-header .title{font-size:18px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}';var bt=t("verdocs_view",function(){function t(t){i(this,t);this.sdkError=e(this,"sdkError");this.envelopeUpdated=e(this,"envelopeUpdated");this.another=e(this,"another");this.view=e(this,"view");this.next=e(this,"next");this.envelopeListenerId=null;this.endpoint=null;this.envelopeId="";this.headerTargetId=null;this.canceling=false;this.showCancelDone=false;this.showLoadError=false;this.loading=true;this.envelope=null}t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t,i,e,n,r;return __generator(this,(function(s){switch(s.label){case 0:if(!this.endpoint){this.endpoint=a.getDefault();this.endpoint.loadSession()}if(!this.envelopeId){console.error("[VIEW] Missing required envelopeId");return[2]}this.listenToEnvelope();if(!!this.envelope)return[3,4];s.label=1;case 1:s.trys.push([1,3,,4]);console.log("[VIEW] Loading envelope...");n=this;return[4,h(this.endpoint,this.envelopeId)];case 2:n.envelope=s.sent();console.log("[VIEW] Loaded envelope",this.envelope);return[3,4];case 3:r=s.sent();this.showLoadError=true;(t=this.sdkError)===null||t===void 0?void 0:t.emit(new p(r.message,(i=r.response)===null||i===void 0?void 0:i.status,(e=r.response)===null||e===void 0?void 0:e.data));return[3,4];case 4:return[2]}}))}))};t.prototype.componentDidRender=function(){var t=this.headerTargetId?document.getElementById(this.headerTargetId):null;var i=document.getElementById("verdocs-view-header");if(t&&i){console.log("[VIEW] Moving header");i.remove();t.append(i)}};t.prototype.disconnectedCallback=function(){this.unlistenToEnvelope()};t.prototype.listenToEnvelope=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(i){console.log("[SIDEBAR] Loading envelope",this.envelopeId);this.unlistenToEnvelope();m.subscribe("envelopes",this.envelopeId,(function(){return h(t.endpoint,t.envelopeId)}),true,(function(i){t.envelope=i;t.loading=false}));return[2]}))}))};t.prototype.unlistenToEnvelope=function(){if(this.envelopeListenerId){m.store.delListener(this.envelopeListenerId);this.envelopeListenerId=null}};t.prototype.handlePageRendered=function(t){};t.prototype.handleOptionSelected=function(t){return __awaiter(this,void 0,void 0,(function(){var i,e,n,r,s,u,s;var o=this;return __generator(this,(function(a){switch(a.label){case 0:n=t.detail.id;switch(n){case"cancel":return[3,1];case"print":return[3,2];case"download-attachments":return[3,3];case"download-certificate":return[3,6];case"download-all":return[3,9]}return[3,10];case 1:if(confirm("Are you sure you wish to cancel this envelope? This action cannot be undone.")){this.canceling=true;l(this.endpoint,this.envelopeId).then((function(t){o.canceling=false;console.log("[VIEW] Envelope canceled",t);return h(o.endpoint,o.envelopeId)})).then((function(t){console.log("[VIEW] Loaded new envelope details",t);o.envelope=t})).catch((function(t){var i,e,n;o.canceling=false;console.log("[VIEW] Error canceling envelope",t);(i=o.sdkError)===null||i===void 0?void 0:i.emit(new p(t.message,(e=t.response)===null||e===void 0?void 0:e.status,(n=t.response)===null||n===void 0?void 0:n.data))}));this.showCancelDone=true;(i=this.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:this.envelope,event:"canceled"})}return[3,10];case 2:window.print();(e=this.envelopeUpdated)===null||e===void 0?void 0:e.emit({endpoint:this.endpoint,envelope:this.envelope,event:"printed"});return[3,10];case 3:r=this.envelope.documents.find((function(t){return t.type==="attachment"}));if(!r)return[3,5];return[4,f(this.endpoint,this.envelopeId,r.id)];case 4:s=a.sent();window.open(s,"_blank");a.label=5;case 5:return[3,10];case 6:u=this.envelope.documents.find((function(t){return t.type==="certificate"}));if(!u)return[3,8];return[4,f(this.endpoint,this.envelopeId,u.id)];case 7:s=a.sent();window.open(s,"_blank");a.label=8;case 8:return[3,10];case 9:g(this.endpoint,[this.envelope]).then((function(){var t;(t=o.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:o.endpoint,envelope:o.envelope,event:"downloaded"})})).catch((function(t){console.log("Error downloading Zip",t)}));return[3,10];case 10:return[2]}}))}))};t.prototype.render=function(){var t=this;var i;if(this.loading){return n(s,null,n("verdocs-loader",null))}if(this.showLoadError){return n(s,null,n("verdocs-ok-dialog",{heading:"Unable to View Envelope",message:"Sorry, that envelope is not valid.",buttonLabel:"OK",onNext:function(){t.showLoadError=false}}))}if(!this.envelope){return n(s,null,n("img",{src:"https://public-assets.verdocs.com/loading-placeholder.png",style:{width:"612px",height:"792px",boxShadow:"0 0 10px 5px #0000000f",marginTop:"15px"},alt:"Placeholder page"}))}var e=[{id:"print",label:"Print"}];if(c(this.endpoint.profile,this.envelope)){e.push({id:"cancel",label:"Cancel"})}var u=this.envelope.documents.length>0;var o=this.envelope.documents.filter((function(t){return t.type==="attachment"})).length;var a=this.envelope.documents.find((function(t){return t.type==="certificate"}))!==undefined;if(u||a){e.push({label:""});if(u){e.push({id:"download-attachments",label:o>1?"Download Documents":"Download Document"})}if(a){e.push({id:"download-certificate",label:"Download Certificate"})}if(u&&a){e.push({id:"download-all",label:"Download All Files"})}}return n(s,null,n("div",{id:"verdocs-view-header"},n("div",{class:"inner"},n("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),n("div",{class:"title"},this.envelope.name),n("div",{style:{flex:"1"}}),n("div",{style:{marginLeft:"10px"}}),n("verdocs-dropdown",{options:e,onOptionSelected:function(i){return t.handleOptionSelected(i)}}))),n("div",{class:"document",style:{paddingTop:this.headerTargetId?"70px":"15px"}},(((i=this.envelope)===null||i===void 0?void 0:i.documents)||[]).filter((function(t){return t.type!=="certificate"})).map((function(i){var e=d(1,i.pages);return n(r,null,e.map((function(e){var r;var s=((r=i.page_sizes)===null||r===void 0?void 0:r[e])||{width:612,height:792};return n("verdocs-envelope-document-page",{envelopeId:t.envelopeId,documentId:i.id,endpoint:t.endpoint,type:"filled",virtualWidth:s.width,virtualHeight:s.height,pageNumber:e,onPageRendered:function(i){return t.handlePageRendered(i)},layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})})))}))),this.showCancelDone&&n("verdocs-ok-dialog",{heading:"Cancelled",message:"This envelope has been cancelled successfully.",onNext:function(){t.showCancelDone=false}}),this.canceling&&n("div",{class:"loading-indicator"},n("verdocs-loader",null)))};Object.defineProperty(t.prototype,"component",{get:function(){return u(this)},enumerable:false,configurable:true});return t}());bt.style=vt}}}));
2
- //# sourceMappingURL=p-a224a4cc.system.entry.js.map
@@ -1,2 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,i,t,n){function s(e){return e instanceof t?e:new t((function(i){i(e)}))}return new(t||(t=Promise))((function(t,r){function o(e){try{l(n.next(e))}catch(e){r(e)}}function a(e){try{l(n["throw"](e))}catch(e){r(e)}}function l(e){e.done?t(e.value):s(e.value).then(o,a)}l((n=n.apply(e,i||[])).next())}))};var __generator=this&&this.__generator||function(e,i){var t={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,s,r,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(i){return l([e,i])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,a[0]&&(t=0)),t)try{if(n=1,s&&(r=a[0]&2?s["return"]:a[0]?s["throw"]||((r=s["return"])&&r.call(s),0):s.next)&&!(r=r.call(s,a[1])).done)return r;if(s=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:t.label++;return{value:a[1],done:false};case 5:t.label++;s=a[1];a=[0];continue;case 7:a=t.ops.pop();t.trys.pop();continue;default:if(!(r=t.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){t.label=a[1];break}if(a[0]===6&&t.label<r[1]){t.label=r[1];r=a;break}if(r&&t.label<r[2]){t.label=r[2];t.ops.push(a);break}if(r[2])t.ops.pop();t.trys.pop();continue}a=i.call(e,t)}catch(e){a=[6,e];s=0}finally{n=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,i,t){if(t||arguments.length===2)for(var n=0,s=i.length,r;n<s;n++){if(r||!(n in i)){if(!r)r=Array.prototype.slice.call(i,0,n);r[n]=i[n]}}return e.concat(r||Array.prototype.slice.call(i))};System.register(["./p-gAi_FRvp.system.js","@verdocs/js-sdk","./p-CD5uiThi.system.js","./p-C9y1KCYV.system.js","./p-CrzDCQEM.system.js","./p-7Iu0_GGa.system.js","./p-CmnBGerV.system.js","./p-Bzy18UgU.system.js","./p-DmF0GSqu.system.js","./p-80p0Fzir.system.js"],(function(e){"use strict";var i,t,n,s,r,o,a,l,c,d,u,h,f,v,p,g,x,m,b,w,y,k,S,_,N,I,G,z,P,T,D,E,A;return{setters:[function(e){i=e.r;t=e.c;n=e.h;s=e.H;r=e.F},function(e){o=e.VerdocsEndpoint;a=e.startSigningSession;l=e.envelopeRecipientAgree;c=e.envelopeRecipientDecline;d=e.updateEnvelopeField;u=e.createSignature;h=e.updateEnvelopeFieldSignature;f=e.createInitials;v=e.updateEnvelopeFieldInitials;p=e.isValidPhone;g=e.isValidEmail;x=e.sortFields;m=e.envelopeRecipientSubmit;b=e.getEnvelope;w=e.uploadEnvelopeFieldAttachment;y=e.deleteEnvelopeFieldAttachment;k=e.formatFullName;S=e.fullNameToInitials;_=e.verifySigner;N=e.integerSequence},function(e){I=e.a;G=e.u;z=e.g;P=e.r},function(e){T=e.D},function(e){D=e.V},function(e){E=e.S},function(e){A=e.S},null,null,null],execute:function(){var j='@-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-sign{display:-ms-flexbox;display:flex;overflow:hidden;position:relative;min-height:600px;-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-sign div{display:block;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign input{vertical-align:top}verdocs-sign>.document{-ms-flex:1;flex:1;width:100%;height:100%;-ms-flex-item-align:center;align-self:center;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;max-width:1200px;min-height:200px;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-sign>.document .inner{width:100%;max-width:1028px}verdocs-sign .cover{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:5000;position:absolute;padding-top:100px;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;background:rgba(0, 0, 0, 0.5)}verdocs-sign .agree{-ms-flex:0;flex:0;width:600px;display:-ms-flexbox;display:flex;max-width:90%;padding:30px 15px;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff}verdocs-sign .agree .header{-ms-flex:0 0 56px;flex:0 0 56px}verdocs-sign .agree li{margin:0.5em 0}verdocs-sign verdocs-ok-dialog .background-overlay{-ms-flex-align:start;align-items:flex-start;padding-top:100px}verdocs-sign .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-sign .fatal-error{position:absolute;z-index:100;top:0;left:0;right:0;bottom:0;background-color:#4a4a4a;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-sign .fatal-error .placeholder{position:absolute;opacity:0.1;z-index:-1;top:0;left:0;right:0;bottom:0;width:612px;height:792px;-webkit-box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294);box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294);margin-top:15px}verdocs-sign .fatal-error .message{max-width:360px;width:50%;font-size:16px;background:white;-webkit-box-shadow:3px 3px 9px -1px rgba(0, 0, 0, 0.2470588235);box-shadow:3px 3px 9px -1px rgba(0, 0, 0, 0.2470588235)}verdocs-sign .fatal-error .header{color:white;font-size:18px;font-weight:500;padding:5px 10px;margin:0 0 10px 0;background:#4c56cb}verdocs-sign .fatal-error p{margin:1rem;font-size:14px;font-weight:400;padding:0 10px}@media print{verdocs-sign .header{display:none}}#verdocs-sign-header{color:#fff;width:100%;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 46px;flex:0 0 46px;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)}#verdocs-sign-header .inner{width:100%;display:-ms-flexbox;display:flex;margin:0 auto;padding:0 12px;max-width:1200px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-sign-header .logo{width:80px;display:none;margin:-6px 0 0 0}#verdocs-sign-header .title{font-size:18px;font-weight:500;overflow:hidden;white-space:nowrap;padding:0 10px 0 0;text-overflow:ellipsis}.spinner-overlay{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1000;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background:rgba(0, 0, 0, 0.4980392157);-ms-flex-pack:center;justify-content:center}';var U='\n<ul>\n <li>\n Agree to use electronic records and signatures, and confirm you have read the\n <a href="https://verdocs.com/en/electronic-record-signature-disclosure/" target="_blank">\n Electronic Record and Signatures Disclosure</a>.</li>\n <li>\n Agree to Verdocs\'\n <a href="https://verdocs.com/en/eula" target="_blank">\n End User License Agreement</a>\n and confirm you have read Verdocs\'\n <a href="https://verdocs.com/en/privacy-policy/" target="_blank">\n Privacy Policy</a>.\n </li>\n</ul>';var V=[{id:"later",label:"Finish Later"},{id:"decline",label:"Decline to Sign"},{id:"print",label:"Print Without Signing"},{id:"download",label:"Download"}];var C=[{id:"print",label:"Print"},{id:"download",label:"Download"}];var L=e("verdocs_sign",function(){function e(e){i(this,e);this.sdkError=t(this,"sdkError");this.envelopeLoaded=t(this,"envelopeLoaded");this.envelopeUpdated=t(this,"envelopeUpdated");this.endpoint=T;this.envelopeId=null;this.roleId=null;this.inviteCode=null;this.headerTargetId=null;this.recipient=null;this.hasSignature=false;this.nextButtonLabel="Start";this.nextSubmits=false;this.fatalErrorHeader="";this.fatalErrorMessage="";this.focusedField="";this.disclosure=U;this.submitting=false;this.submitted=false;this.isDone=false;this.showDone=false;this.showLoadError=false;this.finishLater=false;this.showFinishLater=false;this.agreed=false;this.documentsSingularPlural="document";this.authStep=null;this.authMethodStates={};this.kbaQuestions=null;this.showSpinner=false;this.kbaChoices=[];this.loading=true;this.envelope=null}e.prototype.componentWillLoad=function(){if(!this.endpoint){console.log("[SIGN] Creating signing endpoint");this.endpoint=new o({sessionType:"signing"})}};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,i,t,n,s,r,o,l;return __generator(this,(function(c){switch(c.label){case 0:if(!this.envelopeId){(e=this.sdkError)===null||e===void 0?void 0:e.emit(new E("[SIGN] Missing required envelopId",500,""));return[2]}if(!this.roleId){(i=this.sdkError)===null||i===void 0?void 0:i.emit(new E("[SIGN] Missing required roleId",500,""));return[2]}if(!this.inviteCode){(t=this.sdkError)===null||t===void 0?void 0:t.emit(new E("[SIGN] Missing required inviteCode",500,""));return[2]}c.label=1;case 1:c.trys.push([1,3,,4]);console.log("[SIGN] Processing invite code for ".concat(this.envelopeId," / ").concat(this.roleId));return[4,a(this.endpoint,this.envelopeId,this.roleId,this.inviteCode)];case 2:o=c.sent();console.log("[SIGN] Authentication successful",o);this.processAuthResponse(o);return[3,4];case 3:l=c.sent();console.log("[SIGN] Error with signing session",l);(n=this.sdkError)===null||n===void 0?void 0:n.emit(new E(l.message,(s=l.response)===null||s===void 0?void 0:s.status,(r=l.response)===null||r===void 0?void 0:r.data));this.showLoadError=true;return[3,4];case 4:return[2]}}))}))};e.prototype.componentDidRender=function(){var e=this.headerTargetId?document.getElementById(this.headerTargetId):null;var i=document.getElementById("verdocs-sign-header");if(e&&i){console.log("[SIGN] Moving header");i.remove();e.append(i)}};e.prototype.processAuthResponse=function(e){var i,t,n;var s=e.envelope,r=e.recipient;var o=r.auth_step;this.recipient=r;this.envelope=s;this.disclosure=((t=(i=this.envelope)===null||i===void 0?void 0:i.organization)===null||t===void 0?void 0:t.disclaimer)||U;this.authStep=o;this.agreed=r.agreed;this.submitted=r.status==="submitted";this.isDone=this.submitted;this.showDone=this.submitted;A.updateEnvelope(this.envelopeId,s);if(this.envelope.documents.length>0){this.documentsSingularPlural="document(s)"}this.authMethodStates=r.auth_method_states||{};this.kbaQuestions=r.kba_questions;if(Object.values(this.authMethodStates).includes("failed")){this.fatalErrorHeader="Recipient Verification Failed";this.fatalErrorMessage="We were unable to verify your identity. The sender has been notified.";this.isDone=true}if(this.envelope.status==="canceled"){this.fatalErrorHeader="Unable to Start Signing Session";this.fatalErrorMessage="This envelope has been canceled. The sender has been notified."}else if(r.status==="declined"){this.fatalErrorHeader="Declined";this.fatalErrorMessage="You have declined to sign this envelope. The sender has been notified."}else if(this.agreed){this.nextButtonLabel="Next"}this.checkRecipientFields();(n=this.envelopeLoaded)===null||n===void 0?void 0:n.emit({endpoint:this.endpoint,envelope:this.envelope})};e.prototype.handleClickAgree=function(){var e=this;this.submitting=true;l(this.endpoint,this.envelopeId,this.roleId,true,this.disclosure).then((function(){var i;e.nextButtonLabel="Next";e.recipient.agreed=true;e.submitting=false;e.agreed=true;(i=e.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:e.endpoint,envelope:e.envelope,event:"agreed"})})).catch((function(i){var t,n,s;console.log("[SIGN] Update failure",i);e.submitting=false;(t=e.sdkError)===null||t===void 0?void 0:t.emit(new E(i.message,(n=i.response)===null||n===void 0?void 0:n.status,(s=i.response)===null||s===void 0?void 0:s.data))}))};e.prototype.handleOptionSelected=function(e){return __awaiter(this,void 0,void 0,(function(){var i,t,n,s,r,o,a,l;return __generator(this,(function(d){switch(d.label){case 0:o=e.detail.id;switch(o){case"later":return[3,1];case"claim":return[3,2];case"decline":return[3,3];case"print":return[3,5];case"download":return[3,6]}return[3,7];case 1:this.finishLater=true;this.showFinishLater=true;(i=this.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:this.envelope,event:"later"});return[3,7];case 2:D("This feature will be available in an upcoming release.");(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:this.envelope,event:"claimed"});return[3,7];case 3:this.submitting=true;return[4,c(this.endpoint,this.envelopeId,this.roleId)];case 4:a=d.sent();console.log("[SIGN] Decline result",a);(n=this.envelopeUpdated)===null||n===void 0?void 0:n.emit({endpoint:this.endpoint,envelope:this.envelope,event:"declined"});this.submitting=false;this.fatalErrorHeader="Declined";this.fatalErrorMessage="You have declined to sign this envelope. The sender has been notified.";return[3,7];case 5:window.print();(s=this.envelopeUpdated)===null||s===void 0?void 0:s.emit({endpoint:this.endpoint,envelope:this.envelope,event:"printed"});return[3,7];case 6:{l=this.envelope.documents.find((function(e){return e.type==="attachment"}));if(l){I(this.endpoint,this.envelope,l.id).catch((function(e){console.log("[SIGN] Error downloading PDF",e)}));(r=this.envelopeUpdated)===null||r===void 0?void 0:r.emit({endpoint:this.endpoint,envelope:this.envelope,event:"downloaded"})}}return[3,7];case 7:return[2]}}))}))};e.prototype.updateRecipientFieldValue=function(e,i){var t=this;console.log("[SIGN] updateRecipientFieldValue",e,i);this.getRecipientFields().forEach((function(n){if(n.name===e){n.value=i.value;n.settings=i.settings;G(n);t.checkRecipientFields()}}))};e.prototype.saveFieldChange=function(e,i){var t=this;console.log("[SIGN] saveFieldChange",e,i);d(this.endpoint,this.envelopeId,e,i).then((function(i){return t.updateRecipientFieldValue(e,i)})).catch((function(e){var i,n,s,r,o,a;if(((i=e.response)===null||i===void 0?void 0:i.status)===401&&((s=(n=e.response)===null||n===void 0?void 0:n.data)===null||s===void 0?void 0:s.error)==="jwt expired"){console.log("[SIGN] Signing session expired");t.fatalErrorHeader="Signing Session Expired";t.fatalErrorMessage="Please reload your browser to continue."}else{console.log("[SIGN] Server error",e)}(r=t.sdkError)===null||r===void 0?void 0:r.emit(new E(e.message,(o=e.response)===null||o===void 0?void 0:o.status,(a=e.response)===null||a===void 0?void 0:a.data))}))};e.prototype.handleFieldChange=function(e,i){return __awaiter(this,void 0,void 0,(function(){var t,n,s,r,o,a,l;var c=this;return __generator(this,(function(d){switch(d.label){case 0:t=i.target,n=t.value,s=t.checked;r=e.type;switch(r){case"textarea":return[3,1];case"textbox":return[3,1];case"checkbox":return[3,2];case"radio":return[3,3];case"dropdown":return[3,4];case"initial":return[3,5];case"signature":return[3,8];case"date":return[3,11];case"timestamp":return[3,12]}return[3,13];case 1:return[2,this.saveFieldChange(e.name,{prepared:false,value:n})];case 2:{return[2,this.saveFieldChange(e.name,{prepared:false,value:String(i.target.checked)})]}d.label=3;case 3:{return[2,this.saveFieldChange(e.name,{prepared:false,value:String(i.target.checked)})]}d.label=4;case 4:console.log("Saving dropdown",e.name,i.detail);return[2,this.saveFieldChange(e.name,{prepared:false,value:i.detail})];case 5:if(!i.detail){return[2]}this.showSpinner=true;return[4,fetch(i.detail)];case 6:return[4,d.sent().blob()];case 7:o=d.sent();return[2,f(this.endpoint,"initial",o).then((function(i){return __awaiter(c,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:return[4,v(this.endpoint,this.envelopeId,e.name,i.id)];case 1:t=n.sent();this.updateRecipientFieldValue(e.name,t);this.showSpinner=false;return[2]}}))}))})).catch((function(e){console.log("Error updating initials",e);c.showSpinner=false}))];case 8:if(!i.detail){return[2]}this.showSpinner=true;return[4,fetch(i.detail)];case 9:return[4,d.sent().blob()];case 10:a=d.sent();return[2,u(this.endpoint,"signature",a).then((function(i){return __awaiter(c,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:console.log("Signature update result",i);return[4,h(this.endpoint,this.envelopeId,e.name,i.id)];case 1:t=n.sent();this.updateRecipientFieldValue(e.name,t);this.showSpinner=false;return[2]}}))}))})).catch((function(e){console.warn("[SIGN] Error updating signature",e);c.showSpinner=false}))];case 11:l=i.detail.formattedDate;if(l){return[2,this.saveFieldChange(e.name,{prepared:false,value:l})]}return[3,14];case 12:console.log("[SIGN] Updating timestamp",{value:n,ts:i.target.getAttribute("timestamp")});return[3,14];case 13:console.log("[SIGN] Unhandled field update",{value:n,checked:s},e);return[3,14];case 14:return[2]}}))}))};e.prototype.isFieldFilled=function(e){var i=e.value,t=i===void 0?"":i;switch(e.type){case"textarea":case"textbox":switch(e.validator||""){case"email":return g(t);case"phone":return p(t);default:return(t||"").trim()!==""}case"signature":return t==="signed";case"initial":return t==="initialed";case"timestamp":return true;case"date":return!!t;case"attachment":return t==="attached";case"dropdown":return t!=="";case"checkbox":return t==="true";case"radio":if(!!e.group){return this.getRecipientFields().filter((function(i){return i.group===e.group})).some((function(e){return e.value==="true"}))}return e.value==="true";default:return false}};e.prototype.isFieldValid=function(e){return!e.required||this.isFieldFilled(e)};e.prototype.getSortedFillableFields=function(){var e=this.getRecipientFields().filter((function(e){return e.type!=="timestamp"}));x(e);return e};e.prototype.handleNext=function(){return __awaiter(this,void 0,void 0,(function(){var e,i,t,n,s,r,o,a,l,c;var d=this;return __generator(this,(function(u){switch(u.label){case 0:if(!this.nextSubmits)return[3,5];u.label=1;case 1:u.trys.push([1,3,,4]);(e=document.getElementById("air-datepicker-global-container"))===null||e===void 0?void 0:e.remove();this.submitting=true;return[4,m(this.endpoint,this.envelopeId,this.roleId)];case 2:i=u.sent();console.log("[SIGN] Submitted successfully",i);this.recipient.status="submitted";this.showDone=true;console.log("[SIGN] Reloading envelope");b(this.endpoint,this.envelopeId).then((function(e){d.envelope=e;d.submitting=false})).catch((function(e){console.log("[SIGN] Error reloading envelope",e);d.submitting=false}));return[3,4];case 3:t=u.sent();console.log("[SIGN] Error submitting",t);return[3,4];case 4:return[2];case 5:n=this.getSortedFillableFields().filter((function(e){return e.required&&!d.isFieldFilled(e)}));x(n);s=n.findIndex((function(e){return e.name===d.focusedField}));r=s+1;if(r>=n.length){r=0}o=n[r];a=0;if(a<n.length&&["signature","initial"].includes(o.type)&&["initialed","signed"].includes(o.value)){a++;r++;if(r>=n.length){r=0}o=n[r]}if(a>=n.length){o=null}if(o){l=z(o);c=document.getElementById(l);c===null||c===void 0?void 0:c.scrollIntoView({behavior:"smooth"});c===null||c===void 0?void 0:c.focusField();this.focusedField=o.name}return[2]}}))}))};e.prototype.getRecipientFields=function(){var e=this;return this.envelope.fields.filter((function(i){return i.role_name===e.recipient.role_name}))};e.prototype.checkRecipientFields=function(){var e=this;var i=this.getRecipientFields().filter((function(i){return!e.isFieldValid(i)}));if(i.length<1){this.nextButtonLabel="Finish";if(!this.nextSubmits){this.nextSubmits=true}}else{console.log("[SIGN] Invalid fields remaining",i.map((function(e){return e.name})));this.nextButtonLabel="Next";this.nextSubmits=false}};e.prototype.attachFieldAttributes=function(e,i,t){var n=this;if(t.getAttribute("attached")==="1"){return}t.setAttribute("attached","1");t.addEventListener("input",(function(e){if(e.target.type==="radio"||e.target.type==="checkbox"){n.handleFieldChange(i,e).finally((function(){return n.checkRecipientFields()}))}else{n.checkRecipientFields()}}));t.addEventListener("attached",(function(t){return __awaiter(n,void 0,void 0,(function(){var n,s,r;return __generator(this,(function(o){switch(o.label){case 0:console.log("[SIGN] onAttached",t.detail,t.target.value);this.showSpinner=true;o.label=1;case 1:o.trys.push([1,3,,4]);return[4,w(this.endpoint,this.envelopeId,i.name,t.detail)];case 2:n=o.sent();this.updateRecipientFieldValue(i.name,n);this.checkRecipientFields();s=P("envelope",i,e,{disabled:false,editable:false,draggable:false,done:this.isDone});this.attachFieldAttributes(e,i,s);this.showSpinner=false;return[3,4];case 3:r=o.sent();console.log("Error uploading attachment",r);D("Unable to upload attachment, please try again later",{style:"error"});this.showSpinner=false;return[3,4];case 4:return[2]}}))}))}));t.addEventListener("deleted",(function(t){return __awaiter(n,void 0,void 0,(function(){var n,s,r;return __generator(this,(function(o){switch(o.label){case 0:console.log("[SIGN] onDeleted",t.detail,t.target.value);this.showSpinner=true;o.label=1;case 1:o.trys.push([1,3,,4]);return[4,y(this.endpoint,this.envelopeId,i.name)];case 2:n=o.sent();console.log("[SIGN] Deleted attachment",n);this.updateRecipientFieldValue(i.name,n);this.checkRecipientFields();s=P("envelope",i,e,{disabled:false,editable:false,draggable:false,done:this.isDone});this.attachFieldAttributes(e,i,s);this.showSpinner=false;return[3,4];case 3:r=o.sent();console.log("Error uploading attachment",r);D("Unable to upload attachment, please try again later",{style:"error"});this.showSpinner=false;return[3,4];case 4:return[2]}}))}))}));t.addEventListener("focusout",(function(e){if(i.type!=="dropdown"&&i.type!=="attachment"){n.handleFieldChange(i,e).finally((function(){return n.checkRecipientFields()}))}}));t.addEventListener("fieldChange",(function(e){n.handleFieldChange(i,e).finally((function(){return n.checkRecipientFields()}))}));t.setAttribute("templateid",this.envelope.template_id);t.setAttribute("fieldname",i.name);t.setAttribute("page",e.pageNumber);t.setAttribute("xScale",e.xScale);t.setAttribute("yScale",e.yScale);var s=k(this.recipient);t.setAttribute("initials",S(s));t.setAttribute("name",s)};e.prototype.handlePageRendered=function(e){var i=this;var t=e.detail;var n=this.getSortedFillableFields();console.log("[SIGN] Rendering fields for page",t.pageNumber,n);n.forEach((function(e,n){if(e.page!==t.pageNumber){return}var s=P("envelope",e,t,{disabled:false,editable:false,draggable:false,done:i.isDone},n);if(!s){return}if(Array.isArray(s)){s.map((function(n){return i.attachFieldAttributes(t,e,n)}))}else{i.attachFieldAttributes(t,e,s)}}));this.envelope.recipients.filter((function(e){return e.role_name!==i.recipient.role_name&&(e.status==="invited"||e.status==="opened"||e.status==="pending")})).forEach((function(){i.getRecipientFields().filter((function(e){return e.page===t.pageNumber})).forEach((function(e){var n=P("envelope",e,t,{disabled:true,editable:false,draggable:false,done:i.isDone});if(!n){return}if(Array.isArray(n)){n.map((function(n){return i.attachFieldAttributes(t,e,n)}))}else{i.attachFieldAttributes(t,e,n)}}))}));this.checkRecipientFields()};e.prototype.handleAuthenticateSigner=function(e){var i=this;console.log("[SIGN] Submitting authentication step",e);_(this.endpoint,e).then((function(e){console.log("[SIGN] Verification successful",e);i.processAuthResponse(e)})).catch((function(e){var t,n,s,r,o;console.log("[SIGN] Error submitting authentication step",e);if((s=(n=(t=e.response)===null||t===void 0?void 0:t.data)===null||n===void 0?void 0:n.error)===null||s===void 0?void 0:s.includes("failed")){i.fatalErrorHeader="Recipient Verification Failed";i.fatalErrorMessage="We were unable to verify your identity. The sender has been notified.";i.isDone=true}else{D(((o=(r=e.response)===null||r===void 0?void 0:r.data)===null||o===void 0?void 0:o.error)||"Unable to verify your identity. Please try again.",{style:"error"})}}))};e.prototype.render=function(){var e=this;console.log("[SIGN] Rendering",{authStep:this.authStep});if(this.showLoadError){return n(s,null,n("verdocs-ok-dialog",{heading:"Unable to Start Signing",message:"Sorry, your invite code is invalid or has expired. Please check your email for an updated invitation, or contact the sender.",buttonLabel:"OK",onNext:function(){window.location.reload()}}))}if(!this.envelope){return n(s,null,n("verdocs-loader",null))}if(this.fatalErrorMessage){return n(s,{class:{agreed:this.agreed}},n("div",{class:"fatal-error"},n("div",{class:"message"},n("div",{class:"header"},this.fatalErrorHeader),n("p",null,this.fatalErrorMessage))))}if(this.isDone){return n(s,{class:{agreed:this.agreed}},n("verdocs-view",{endpoint:this.endpoint,envelopeId:this.envelopeId,onSdkError:function(i){var t;return(t=e.sdkError)===null||t===void 0?void 0:t.emit(i.detail)}}),this.showDone&&n("verdocs-ok-dialog",{heading:"You're Done!",message:"You can access the ".concat(this.documentsSingularPlural," at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached."),onNext:function(i){i.preventDefault();i.stopPropagation();e.showDone=false;e.isDone=true}}),this.submitting&&n("div",{class:"loading-indicator"},n("verdocs-loader",null)))}if(!this.agreed){return n(s,{class:"agreed"},n("div",{id:"verdocs-sign-header"},n("div",{class:"inner"},n("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),n("div",{class:"title"},this.envelope.name))),n("div",{class:"document",style:{paddingTop:"15px"}},n("img",{src:"https://public-assets.verdocs.com/loading-placeholder.png",style:{width:"612px",height:"792px",boxShadow:"0 0 10px 5px #0000000f",marginTop:"15px"},alt:"Placeholder page"})),n("div",{class:"cover"},n("div",{class:"agree"},n("verdocs-checkbox",{name:"agree",label:"By checking this box, you:",onInput:function(){return e.handleClickAgree()}}),n("div",{innerHTML:this.disclosure}))))}if(this.authStep==="passcode"){return n(s,{class:"kba"},n("div",{id:"verdocs-sign-header"},n("div",{class:"inner"},n("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),n("div",{class:"title"},this.envelope.name))),n("div",{class:"document",style:{paddingTop:"15px"}},n("img",{src:"https://public-assets.verdocs.com/loading-placeholder.png",style:{width:"612px",height:"792px",boxShadow:"0 0 10px 5px #0000000f",marginTop:"15px"},alt:"Placeholder page"})),n("div",{class:"cover"},n("div",{class:"kba"},n("verdocs-kba-dialog",{mode:"text",step:1,steps:1,placeholder:"Enter your passcode...",helptitle:"Document is protected by a Passcode",helptext:"Please enter your Passcode to proceed. If you do not have one, please contact the sender.",label:"Passcode",onNext:function(i){return e.handleAuthenticateSigner({auth_method:"passcode",code:i.detail})}}))))}if(this.authStep==="email"){return n("verdocs-otp-dialog",{endpoint:this.endpoint,method:"email",onNext:function(i){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){this.processAuthResponse(i.detail.response);return[2]}))}))}})}if(this.authStep==="kba"&&!this.authMethodStates.kba){return n(s,{class:"kba"},n("div",{id:"verdocs-sign-header"},n("div",{class:"inner"},n("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),n("div",{class:"title"},this.envelope.name))),n("div",{class:"document",style:{paddingTop:"15px"}},n("img",{src:"https://public-assets.verdocs.com/loading-placeholder.png",style:{width:"612px",height:"792px",boxShadow:"0 0 10px 5px #0000000f",marginTop:"15px"},alt:"Placeholder page"})),n("div",{class:"cover"},n("div",{class:"kba"},n("verdocs-kba-dialog",{mode:"identity",helptitle:"Document requires identity verification",helptext:"Please complete your contact details to proceed.",recipient:this.recipient,onNext:function(i){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(t){e=i.detail;this.handleAuthenticateSigner({auth_method:"kba",first_name:e.first_name,last_name:e.last_name,address:e.address,city:e.city,state:e.state,zip:e.zip,dob:e.dob});return[2]}))}))}}))))}if(this.authStep==="kba"&&this.authMethodStates.kba==="questions"){var i=this.kbaChoices.length;var t=this.kbaQuestions[i];return n(s,{class:"kba"},n("div",{id:"verdocs-sign-header"},n("div",{class:"inner"},n("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),n("div",{class:"title"},this.envelope.name))),n("div",{class:"document",style:{paddingTop:"15px"}},n("img",{src:"https://public-assets.verdocs.com/loading-placeholder.png",style:{width:"612px",height:"792px",boxShadow:"0 0 10px 5px #0000000f",marginTop:"15px"},alt:"Placeholder page"})),n("div",{class:"cover"},n("div",{class:"kba"},this.kbaChoices.length>=this.kbaQuestions.length?n("verdocs-spinner",null):n("verdocs-kba-dialog",{mode:"choice",helptitle:"Your identity requires additional verification",helptext:(t===null||t===void 0?void 0:t.prompt)||"Please select one of the options below.",choices:(t===null||t===void 0?void 0:t.answer)||["Skip Question"],step:i+1,steps:this.kbaQuestions.length,onNext:function(i){return __awaiter(e,void 0,void 0,(function(){var e,t;var n=this;return __generator(this,(function(s){e=i.detail;this.kbaChoices=__spreadArray(__spreadArray([],this.kbaChoices,true),[e],false);if(this.kbaChoices.length>=this.kbaQuestions.length){t=this.kbaQuestions.map((function(e,i){return{type:e.type,answer:n.kbaChoices[i]}}));console.log("Submitting KBA responses",this.kbaChoices,t);this.handleAuthenticateSigner({auth_method:"kba",responses:t})}return[2]}))}))}}))))}return n(s,null,n("div",{id:"verdocs-sign-header"},n("div",{class:"inner"},n("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),n("div",{class:"title"},this.envelope.name),n("div",{style:{flex:"1"}}),!this.finishLater&&n("verdocs-button",{size:"xsmall",label:this.nextButtonLabel,disabled:!this.agreed||this.submitting,onClick:function(){return e.handleNext()}}),n("div",{style:{marginLeft:"10px"}}),n("verdocs-dropdown",{options:!this.isDone&&!this.finishLater?V:C,onOptionSelected:function(i){return e.handleOptionSelected(i)}}))),n("div",{class:"document",style:{paddingTop:"15px"}},(this.envelope.documents||[]).map((function(i){var t=N(1,i.pages);return n(r,null,t.map((function(t){var s;var r=((s=i.page_sizes)===null||s===void 0?void 0:s[t])||{width:612,height:792};return n("verdocs-envelope-document-page",{envelopeId:e.envelopeId,documentId:i.id,endpoint:e.endpoint,virtualWidth:r.width,virtualHeight:r.height,pageNumber:t,onPageRendered:function(i){return e.handlePageRendered(i)},type:"filled",layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})})))}))),this.showFinishLater&&n("verdocs-ok-dialog",{heading:"You've saved your document to finish later.",message:"To complete the ".concat(this.documentsSingularPlural,", use the link in the original email notification inviting you to review and finish the document."),onNext:function(){return e.showFinishLater=false}}),this.showDone&&n("verdocs-ok-dialog",{heading:"You're Done!",message:"You can access the ".concat(this.documentsSingularPlural," at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached."),onNext:function(){e.showDone=false;e.isDone=true}}),this.submitting||this.showSpinner&&n("verdocs-portal",null,n("div",{class:"spinner-overlay"},n("verdocs-spinner",null))))};return e}());L.style=j}}}));
2
- //# sourceMappingURL=p-bec52dd1.system.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["verdocsSignCss","DEFAULT_DISCLOSURE","inProgressMenuOptions","id","label","doneMenuOptions","VerdocsSign","exports","class_1","hostRef","this","endpoint","DefaultEndpoint","envelopeId","roleId","inviteCode","headerTargetId","recipient","hasSignature","nextButtonLabel","nextSubmits","fatalErrorHeader","fatalErrorMessage","focusedField","disclosure","submitting","submitted","isDone","showDone","showLoadError","finishLater","showFinishLater","agreed","documentsSingularPlural","authStep","authMethodStates","kbaQuestions","showSpinner","kbaChoices","loading","envelope","prototype","componentWillLoad","console","log","VerdocsEndpoint","sessionType","componentDidLoad","_a","sdkError","emit","SDKError","_b","_c","concat","startSigningSession","response","_g","sent","processAuthResponse","e_1","_d","message","_e","status","_f","data","componentDidRender","headerTarget","document","getElementById","headerEl","remove","append","auth_step","organization","disclaimer","Store","updateEnvelope","documents","length","auth_method_states","kba_questions","Object","values","includes","checkRecipientFields","envelopeLoaded","handleClickAgree","_this","envelopeRecipientAgree","then","envelopeUpdated","event","catch","e","handleOptionSelected","detail","VerdocsToast","envelopeRecipientDecline","declineResult","_h","window","print","firstDoc","find","doc","type","saveAttachment","updateRecipientFieldValue","fieldName","updateResult","getRecipientFields","forEach","oldField","name","value","settings","updateDocumentFieldValue","saveFieldChange","fields","updateEnvelopeField","error","handleFieldChange","field","target","checked","prepared","String","fetch","_j","blob","initialsBlob","createInitials","newInitials","__awaiter","updateEnvelopeFieldInitials","signatureBlob","createSignature","newSignature","updateEnvelopeFieldSignature","warn","formattedDate","ts","getAttribute","isFieldFilled","validator","isValidEmail","isValidPhone","trim","group","filter","f","some","isFieldValid","required","getSortedFillableFields","recipientFields","sortFields","handleNext","envelopeRecipientSubmit","result","getEnvelope","e_2","emptyFields","focusedIndex","findIndex","nextFocusedIndex","nextRequiredField","skips","getFieldId","el","scrollIntoView","behavior","focusField","role_name","invalidFields","map","attachFieldAttributes","pageInfo","setAttribute","addEventListener","finally","uploadEnvelopeFieldAttachment","newEl","renderDocumentField","disabled","editable","draggable","done","e_3","style","deleteEnvelopeFieldAttachment","e_4","template_id","pageNumber","xScale","yScale","fullName","formatFullName","fullNameToInitials","handlePageRendered","tabIndex","page","Array","isArray","recipients","r","handleAuthenticateSigner","params","verifySigner","render","h","Host","heading","buttonLabel","onNext","location","reload","class","onSdkError","preventDefault","stopPropagation","src","alt","paddingTop","width","height","boxShadow","marginTop","onInput","innerHTML","mode","step","steps","placeholder","helptitle","helptext","auth_method","code","method","kba","recipDetails","first_name","last_name","address","city","state","zip","dob","questionNumber","kbaQuestion","prompt","choices","answer","__spreadArray","responses","q","i","flex","size","onClick","marginLeft","options","onOptionSelected","envelopeDocument","pageNumbers","integerSequence","pages","Fragment","pageSize","page_sizes","documentId","virtualWidth","virtualHeight","onPageRendered","layers"],"sources":["src/components/embeds/verdocs-sign/verdocs-sign.scss?tag=verdocs-sign","src/components/embeds/verdocs-sign/verdocs-sign.tsx"],"sourcesContent":["@import '../../../theme.scss';\n\nverdocs-sign {\n display: flex;\n overflow: hidden;\n position: relative;\n min-height: 600px;\n flex-direction: column;\n box-sizing: border-box;\n font-family: $verdocs-primary-font;\n\n div {\n display: block;\n box-sizing: border-box;\n }\n\n input {\n vertical-align: top;\n }\n\n //.intro {\n // width: 100%;\n // display: flex;\n // flex: 0 0 60px;\n // color: #111111;\n // font-size: 18px;\n // font-weight: 500;\n // line-height: 28px;\n // flex-direction: row;\n // background: #ffffff;\n //\n // .inner {\n // width: 100%;\n // display: flex;\n // margin: 0 auto;\n // padding: 0 20px;\n // max-width: 1200px;\n // flex-direction: row;\n // align-items: center;\n // }\n //}\n\n > .document {\n flex: 1;\n width: 100%;\n height: 100%;\n align-self: center;\n display: flex;\n padding: 15px;\n row-gap: 15px;\n max-width: 1200px;\n min-height: 200px;\n position: relative;\n overflow-y: scroll;\n align-items: center;\n box-sizing: border-box;\n flex-direction: column;\n //justify-content: center;\n\n .inner {\n width: 100%;\n max-width: 1028px;\n }\n }\n\n .cover {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n z-index: 5000;\n position: absolute;\n padding-top: 100px;\n align-items: center;\n flex-direction: column;\n background: rgba(0, 0, 0, 0.5);\n }\n\n .agree {\n flex: 0;\n width: 600px;\n display: flex;\n max-width: 90%;\n padding: 30px 15px;\n flex-direction: column;\n background-color: #ffffff;\n\n .header {\n flex: 0 0 56px;\n }\n\n li {\n margin: 0.5em 0;\n }\n }\n\n verdocs-ok-dialog .background-overlay {\n align-items: flex-start;\n padding-top: 100px;\n }\n\n .loading-indicator {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n z-index: 10000;\n position: fixed;\n background-color: rgba(0, 0, 0, 0.7);\n }\n\n .fatal-error {\n position: absolute;\n z-index: 100;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: #4a4a4a;\n display: flex;\n align-items: center;\n justify-content: center;\n\n .placeholder {\n position: absolute;\n opacity: 0.1;\n z-index: -1;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 612px;\n height: 792px;\n box-shadow: 0 0 10px 5px #0000000f;\n margin-top: 15px;\n }\n\n .message {\n max-width: 360px;\n width: 50%;\n font-size: 16px;\n background: white;\n box-shadow: 3px 3px 9px -1px #0000003f;\n }\n\n .header {\n color: white;\n font-size: 18px;\n font-weight: 500;\n padding: 5px 10px;\n margin: 0 0 10px 0;\n background: $verdocs-purple-shade;\n }\n\n p {\n margin: 1rem;\n font-size: 14px;\n font-weight: 400;\n padding: 0 10px;\n }\n }\n}\n\n@media print {\n verdocs-sign .header {\n display: none;\n }\n}\n\n#verdocs-sign-header {\n color: #fff;\n width: 100%;\n display: flex;\n z-index: 1000;\n flex: 0 0 46px;\n font-size: 12px;\n column-gap: 15px;\n align-items: center;\n flex-direction: row;\n transition: all 0.25s;\n background-color: $medium-bg;\n box-shadow:\n 0 4px 4px 0 rgb(0 0 0 / 24%),\n 0 0 4px 0 rgb(0 0 0 / 12%);\n\n .inner {\n width: 100%;\n display: flex;\n margin: 0 auto;\n padding: 0 12px;\n max-width: 1200px;\n align-items: center;\n flex-direction: row;\n }\n\n .logo {\n width: 80px;\n display: none;\n margin: -6px 0 0 0;\n }\n\n .title {\n font-size: 18px;\n font-weight: 500;\n overflow: hidden;\n white-space: nowrap;\n padding: 0 10px 0 0;\n text-overflow: ellipsis;\n }\n}\n\n.spinner-overlay {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 1000;\n display: flex;\n align-items: center;\n background: #0000007f;\n justify-content: center;\n}\n","import {updateEnvelopeField, sortFields, IKBAQuestion, ISignerTokenResponse} from '@verdocs/js-sdk';\nimport {Event, EventEmitter, Host, Fragment, Component, Prop, State, h} from '@stencil/core';\nimport {verifySigner, IEnvelope, IEnvelopeField, IRecipient, TAuthenticateRecipientRequest} from '@verdocs/js-sdk';\nimport {getEnvelope, integerSequence, isValidEmail, isValidPhone, updateEnvelopeFieldInitials} from '@verdocs/js-sdk';\nimport {fullNameToInitials, startSigningSession, deleteEnvelopeFieldAttachment, formatFullName} from '@verdocs/js-sdk';\nimport {updateEnvelopeFieldSignature, uploadEnvelopeFieldAttachment, VerdocsEndpoint, TRecipientAuthMethod} from '@verdocs/js-sdk';\nimport {createInitials, createSignature, envelopeRecipientAgree, envelopeRecipientDecline, envelopeRecipientSubmit} from '@verdocs/js-sdk';\nimport {getFieldId, renderDocumentField, saveAttachment, updateDocumentFieldValue} from '../../../utils/utils';\nimport {DefaultEndpoint} from '../../../utils/Environment';\nimport {IDocumentPageInfo} from '../../../utils/Types';\nimport {VerdocsToast} from '../../../utils/Toast';\nimport {SDKError} from '../../../utils/errors';\nimport {Store} from '../../../utils/Datastore';\n\nconst DEFAULT_DISCLOSURE = `\n<ul>\n <li>\n Agree to use electronic records and signatures, and confirm you have read the\n <a href=\"https://verdocs.com/en/electronic-record-signature-disclosure/\" target=\"_blank\">\n Electronic Record and Signatures Disclosure</a>.</li>\n <li>\n Agree to Verdocs'\n <a href=\"https://verdocs.com/en/eula\" target=\"_blank\">\n End User License Agreement</a>\n and confirm you have read Verdocs'\n <a href=\"https://verdocs.com/en/privacy-policy/\" target=\"_blank\">\n Privacy Policy</a>.\n </li>\n</ul>`;\n\nconst inProgressMenuOptions = [\n {id: 'later', label: 'Finish Later'}, //\n // {id: 'claim', label: 'Claim the Document', disabled: true},\n {id: 'decline', label: 'Decline to Sign'},\n {id: 'print', label: 'Print Without Signing'},\n {id: 'download', label: 'Download'},\n];\n\nconst doneMenuOptions = [\n {id: 'print', label: 'Print'},\n {id: 'download', label: 'Download'},\n];\n\n/**\n * Display an envelope signing experience. This will display the envelope's attached\n * documents with signing fields overlaid on each page.\n *\n * The component will attempt to initiate a signing session and load the specified\n * envelope. If successful, the recipient's fields will be enabled and the user will\n * be able to sign the envelope's attached documents. If not, an `sdkError` will be\n * thrown and the component will be blank/empty. To provide the best user experience,\n * applications should capture and handle this error to provide the user with\n * instructions/options for next steps based on the application's design and workflow.\n *\n * Unlike other components, this will always create its own endpoint to manage the\n * session session. This endpoint will be included in event callbacks for the\n * convenience of host applications that may wish to make server calls using the\n * signer's credentials once signing is complete (e.g. to obtain copies of\n * the signed attachments.)\n *\n * ```ts\n * <verdocs-sign\n * envelopeId={ENVELOPE_ID}\n * roleId={ROLE_ID}\n * inviteCode={INVITE_CODE}\n * envelopeUpdated={({ detail }) => console.log('Envelope updated state:', detail) }\n * onSdkError={({ detail }) => { console.log('SDK error', detail) }\n * />\n * ```\n */\n@Component({\n tag: 'verdocs-sign',\n styleUrl: 'verdocs-sign.scss',\n shadow: false,\n})\nexport class VerdocsSign {\n /**\n * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.\n */\n @Prop({mutable: true}) endpoint: VerdocsEndpoint = DefaultEndpoint;\n\n /**\n * The ID of the envelope to sign.\n */\n @Prop({reflect: true}) envelopeId: string | null = null;\n\n /**\n * The ID of the role that will be signing e.g. 'Recipient 1'\n */\n @Prop({reflect: true}) roleId: string | null = null;\n\n /**\n * The invite code for the signer.\n */\n @Prop({reflect: true}) inviteCode: string | null = null;\n\n /**\n * If set, (recommended), the host application should create a <DIV> element with a unique ID. When this\n * component renders, the header will be removed from its default location and placed in the target element.\n * This allows the parent application to more easily control its placement and scroll effects (e.g. \"fixed\").\n *\n * The movement of the header to the target container is not dynamic - it is performed only on the initial\n * render. Host applications should not conditionally render this container. If the header's visibility must\n * be externally controlled, use CSS display options to hide/show it instead.\n */\n @Prop() headerTargetId: string | null = null;\n\n /**\n * Event fired if an error occurs. The event details will contain information about the error. Most errors will\n * terminate the process, and the calling application should correct the condition and re-render the component.\n */\n @Event({composed: true}) sdkError: EventEmitter<SDKError>;\n\n /**\n * Event fired when the envelope is loaded for the first time.\n */\n @Event({composed: true}) envelopeLoaded: EventEmitter<{endpoint: VerdocsEndpoint; envelope: IEnvelope}>;\n\n /**\n * Event fired when the envelope is updated in any way.\n */\n @Event({composed: true}) envelopeUpdated: EventEmitter<{endpoint: VerdocsEndpoint; envelope: IEnvelope; event: string}>;\n\n // @State() roleNames: string[] = [];\n // @State() sortedRecipients: IRecipient[] = [];\n @State() recipient: IRecipient | null = null;\n @State() hasSignature = false;\n @State() nextButtonLabel = 'Start';\n @State() nextSubmits = false;\n @State() fatalErrorHeader = '';\n @State() fatalErrorMessage = '';\n @State() focusedField = '';\n @State() disclosure = DEFAULT_DISCLOSURE;\n @State() submitting = false;\n @State() submitted = false;\n @State() isDone = false;\n @State() showDone = false;\n @State() showLoadError = false;\n @State() finishLater = false;\n @State() showFinishLater = false;\n @State() agreed = false;\n @State() documentsSingularPlural = 'document';\n @State() authStep: string | null = null;\n @State() authMethodStates: Partial<Record<TRecipientAuthMethod, string>> = {};\n @State() kbaQuestions: IKBAQuestion[] | null = null;\n @State() showSpinner = false;\n @State() kbaChoices = [];\n\n @State() loading = true;\n @State() envelope: IEnvelope | null = null;\n\n // recipientIndex: number = -1;\n\n componentWillLoad() {\n if (!this.endpoint) {\n console.log('[SIGN] Creating signing endpoint');\n this.endpoint = new VerdocsEndpoint({sessionType: 'signing'});\n }\n }\n\n async componentDidLoad() {\n if (!this.envelopeId) {\n this.sdkError?.emit(new SDKError('[SIGN] Missing required envelopId', 500, ''));\n return;\n }\n\n if (!this.roleId) {\n this.sdkError?.emit(new SDKError('[SIGN] Missing required roleId', 500, ''));\n return;\n }\n\n if (!this.inviteCode) {\n this.sdkError?.emit(new SDKError('[SIGN] Missing required inviteCode', 500, ''));\n return;\n }\n\n try {\n console.log(`[SIGN] Processing invite code for ${this.envelopeId} / ${this.roleId}`);\n\n // NOTE: We don't listen to the store here because we are often an independent\n // session and might have a different \"view\" of the envelope.\n const response = await startSigningSession(this.endpoint, this.envelopeId, this.roleId, this.inviteCode);\n console.log('[SIGN] Authentication successful', response);\n this.processAuthResponse(response);\n } catch (e) {\n console.log('[SIGN] Error with signing session', e);\n this.sdkError?.emit(new SDKError(e.message, e.response?.status, e.response?.data));\n this.showLoadError = true;\n }\n }\n\n componentDidRender() {\n const headerTarget = this.headerTargetId ? document.getElementById(this.headerTargetId) : null;\n const headerEl = document.getElementById('verdocs-sign-header');\n if (headerTarget && headerEl) {\n console.log('[SIGN] Moving header');\n headerEl.remove();\n headerTarget.append(headerEl);\n }\n }\n\n processAuthResponse(response: ISignerTokenResponse) {\n const {envelope, recipient} = response;\n const {auth_step} = recipient;\n this.recipient = recipient;\n this.envelope = envelope;\n this.disclosure = this.envelope?.organization?.disclaimer || DEFAULT_DISCLOSURE;\n this.authStep = auth_step;\n this.agreed = recipient.agreed;\n this.submitted = recipient.status === 'submitted';\n this.isDone = this.submitted;\n this.showDone = this.submitted;\n Store.updateEnvelope(this.envelopeId, envelope);\n\n if (this.envelope.documents.length > 0) {\n this.documentsSingularPlural = 'document(s)';\n }\n\n this.authMethodStates = recipient.auth_method_states || ({} as Record<TRecipientAuthMethod, string>);\n this.kbaQuestions = recipient.kba_questions;\n if (Object.values(this.authMethodStates).includes('failed')) {\n this.fatalErrorHeader = 'Recipient Verification Failed';\n this.fatalErrorMessage = 'We were unable to verify your identity. The sender has been notified.';\n this.isDone = true;\n }\n\n // TODO: Envelope \"complete\" | \"declined\" | \"canceled\"\n // TODO: Recipient \"canceled\"\n\n if (this.envelope.status === 'canceled') {\n this.fatalErrorHeader = 'Unable to Start Signing Session';\n this.fatalErrorMessage = 'This envelope has been canceled. The sender has been notified.';\n } else if (recipient.status === 'declined') {\n this.fatalErrorHeader = 'Declined';\n this.fatalErrorMessage = 'You have declined to sign this envelope. The sender has been notified.';\n } else if (this.agreed) {\n this.nextButtonLabel = 'Next';\n }\n\n this.checkRecipientFields();\n this.envelopeLoaded?.emit({endpoint: this.endpoint, envelope: this.envelope});\n }\n\n handleClickAgree() {\n this.submitting = true;\n envelopeRecipientAgree(this.endpoint, this.envelopeId, this.roleId, true, this.disclosure)\n .then(() => {\n this.nextButtonLabel = 'Next';\n this.recipient.agreed = true;\n this.submitting = false;\n this.agreed = true; // The server returns a recipient object but it's not \"deep\" so we track this locally\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'agreed'});\n })\n .catch(e => {\n console.log('[SIGN] Update failure', e);\n this.submitting = false;\n this.sdkError?.emit(new SDKError(e.message, e.response?.status, e.response?.data));\n });\n }\n\n async handleOptionSelected(e: any) {\n switch (e.detail.id) {\n case 'later':\n this.finishLater = true;\n this.showFinishLater = true;\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'later'});\n break;\n\n case 'claim':\n VerdocsToast('This feature will be available in an upcoming release.');\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'claimed'});\n break;\n\n case 'decline':\n {\n this.submitting = true;\n const declineResult = await envelopeRecipientDecline(this.endpoint, this.envelopeId, this.roleId);\n console.log('[SIGN] Decline result', declineResult);\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'declined'});\n this.submitting = false;\n this.fatalErrorHeader = 'Declined';\n this.fatalErrorMessage = 'You have declined to sign this envelope. The sender has been notified.';\n }\n break;\n\n case 'print':\n window.print();\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'printed'});\n break;\n\n case 'download':\n {\n const firstDoc = this.envelope.documents.find(doc => doc.type === 'attachment');\n if (firstDoc) {\n saveAttachment(this.endpoint, this.envelope, firstDoc.id).catch(e => {\n console.log('[SIGN] Error downloading PDF', e);\n });\n this.envelopeUpdated?.emit({endpoint: this.endpoint, envelope: this.envelope, event: 'downloaded'});\n }\n }\n break;\n }\n }\n\n updateRecipientFieldValue(fieldName: string, updateResult: any) {\n console.log('[SIGN] updateRecipientFieldValue', fieldName, updateResult);\n this.getRecipientFields().forEach(oldField => {\n if (oldField.name === fieldName) {\n oldField.value = updateResult.value;\n // TODO: Keeping this while attachments still rely on it\n oldField.settings = updateResult.settings;\n updateDocumentFieldValue(oldField);\n this.checkRecipientFields();\n }\n });\n }\n\n saveFieldChange(fieldName: string, fields: Record<string, any>) {\n console.log('[SIGN] saveFieldChange', fieldName, fields);\n updateEnvelopeField(this.endpoint, this.envelopeId, fieldName, fields) //\n .then(updateResult => this.updateRecipientFieldValue(fieldName, updateResult))\n .catch(e => {\n if (e.response?.status === 401 && e.response?.data?.error === 'jwt expired') {\n console.log('[SIGN] Signing session expired');\n this.fatalErrorHeader = 'Signing Session Expired';\n this.fatalErrorMessage = 'Please reload your browser to continue.';\n } else {\n console.log('[SIGN] Server error', e);\n }\n\n this.sdkError?.emit(new SDKError(e.message, e.response?.status, e.response?.data));\n });\n }\n\n async handleFieldChange(field: IEnvelopeField, e: any) {\n const {value, checked} = e.target;\n\n switch (field.type as any) {\n // TODO: Remove legacy type when no longer needed\n case 'textarea':\n case 'textbox':\n return this.saveFieldChange(field.name, {prepared: false, value});\n\n case 'checkbox': {\n return this.saveFieldChange(field.name, {prepared: false, value: String(e.target.checked)});\n }\n\n case 'radio': {\n return this.saveFieldChange(field.name, {prepared: false, value: String(e.target.checked)});\n }\n\n case 'dropdown':\n // TODO: Set prepared to false server-side.\n console.log('Saving dropdown', field.name, e.detail);\n return this.saveFieldChange(field.name, {prepared: false, value: e.detail});\n\n case 'initial':\n // This can be caused by a focus-out event if the user clicks the field\n // after it's already filled in, then clicks something else like a textbox.\n // We don't visually indicate the focus, but it's still there.\n if (!e.detail) {\n return;\n }\n\n this.showSpinner = true;\n const initialsBlob = await (await fetch(e.detail)).blob();\n return createInitials(this.endpoint, 'initial', initialsBlob) //\n .then(async newInitials => {\n const updateResult = await updateEnvelopeFieldInitials(this.endpoint, this.envelopeId, field.name, newInitials.id);\n this.updateRecipientFieldValue(field.name, updateResult);\n this.showSpinner = false;\n })\n .catch(e => {\n console.log('Error updating initials', e);\n this.showSpinner = false;\n });\n\n case 'signature':\n // This can be caused by a focus-out event if the user clicks the field\n // after it's already filled in, then clicks something else like a textbox.\n // We don't visually indicate the focus, but it's still there.\n if (!e.detail) {\n return;\n }\n\n this.showSpinner = true;\n const signatureBlob = await (await fetch(e.detail)).blob();\n return createSignature(this.endpoint, 'signature', signatureBlob) //\n .then(async newSignature => {\n console.log('Signature update result', newSignature);\n const updateResult = await updateEnvelopeFieldSignature(this.endpoint, this.envelopeId, field.name, newSignature.id);\n this.updateRecipientFieldValue(field.name, updateResult);\n this.showSpinner = false;\n })\n .catch(e => {\n console.warn('[SIGN] Error updating signature', e);\n this.showSpinner = false;\n });\n\n case 'date':\n const {formattedDate} = e.detail;\n if (formattedDate) {\n return this.saveFieldChange(field.name, {prepared: false, value: formattedDate});\n }\n break;\n\n case 'timestamp':\n console.log('[SIGN] Updating timestamp', {value, ts: e.target.getAttribute('timestamp')});\n break;\n\n default:\n console.log('[SIGN] Unhandled field update', {value, checked}, field);\n break;\n }\n }\n\n isFieldFilled(field: IEnvelopeField) {\n const {value = ''} = field;\n switch (field.type as any) {\n case 'textarea':\n case 'textbox':\n switch (field.validator || '') {\n case 'email':\n return isValidEmail(value);\n case 'phone':\n return isValidPhone(value);\n default:\n return (value || '').trim() !== '';\n }\n\n case 'signature':\n return value === 'signed';\n\n case 'initial':\n return value === 'initialed';\n\n // Timestamp fields get automatically filled when the envelope is submitted.\n case 'timestamp':\n return true;\n\n case 'date':\n return !!value;\n\n case 'attachment':\n return value === 'attached';\n\n case 'dropdown':\n return value !== '';\n\n case 'checkbox':\n return value === 'true';\n\n case 'radio':\n if (!!field.group) {\n return this.getRecipientFields()\n .filter(f => f.group === field.group)\n .some(field => field.value === 'true');\n }\n\n return field.value === 'true';\n\n default:\n return false;\n }\n }\n\n isFieldValid(field: IEnvelopeField) {\n return !field.required || this.isFieldFilled(field);\n }\n\n getSortedFillableFields() {\n const recipientFields = this.getRecipientFields().filter(field => field.type !== 'timestamp');\n sortFields(recipientFields);\n return recipientFields;\n }\n\n async handleNext() {\n if (this.nextSubmits) {\n try {\n // Patches the date picker to be forcibly removed if still showing during submission\n document.getElementById('air-datepicker-global-container')?.remove();\n\n this.submitting = true;\n const result = await envelopeRecipientSubmit(this.endpoint, this.envelopeId, this.roleId);\n console.log('[SIGN] Submitted successfully', result);\n this.recipient.status = 'submitted';\n this.showDone = true;\n console.log('[SIGN] Reloading envelope');\n getEnvelope(this.endpoint, this.envelopeId)\n .then(envelope => {\n this.envelope = envelope;\n // The show-done dialog does this\n // this.isDone = true;\n this.submitting = false;\n })\n .catch(e => {\n // this.isDone = true;\n console.log('[SIGN] Error reloading envelope', e);\n this.submitting = false;\n });\n } catch (e) {\n console.log('[SIGN] Error submitting', e);\n }\n\n return;\n }\n\n // Find and focus the next incomplete field (that is fillable)\n const emptyFields = this.getSortedFillableFields().filter(field => field.required && !this.isFieldFilled(field));\n sortFields(emptyFields);\n\n const focusedIndex = emptyFields.findIndex(field => field.name === this.focusedField);\n let nextFocusedIndex = focusedIndex + 1;\n if (nextFocusedIndex >= emptyFields.length) {\n nextFocusedIndex = 0;\n }\n\n let nextRequiredField = emptyFields[nextFocusedIndex];\n // console.log('Next field', nextRequiredField, emptyFields);\n\n // Skip signature and initial fields that are already filled in. We have to count our \"skips\" just in case, to avoid infinite loops.\n let skips = 0;\n if (skips < emptyFields.length && ['signature', 'initial'].includes(nextRequiredField.type) && ['initialed', 'signed'].includes(nextRequiredField.value)) {\n skips++;\n nextFocusedIndex++;\n if (nextFocusedIndex >= emptyFields.length) {\n nextFocusedIndex = 0;\n }\n nextRequiredField = emptyFields[nextFocusedIndex];\n }\n\n if (skips >= emptyFields.length) {\n nextRequiredField = null;\n }\n\n if (nextRequiredField) {\n const id = getFieldId(nextRequiredField);\n const el = document.getElementById(id) as any;\n el?.scrollIntoView({behavior: 'smooth'});\n el?.focusField();\n this.focusedField = nextRequiredField.name;\n }\n }\n\n getRecipientFields() {\n return this.envelope.fields.filter(field => field.role_name === this.recipient.role_name);\n }\n\n // See if everything that \"needs to be\" filled in is, and all \"fillable fields\" are valid\n checkRecipientFields() {\n const invalidFields = this.getRecipientFields().filter(field => !this.isFieldValid(field));\n if (invalidFields.length < 1) {\n this.nextButtonLabel = 'Finish';\n if (!this.nextSubmits) {\n this.nextSubmits = true;\n }\n } else {\n console.log(\n '[SIGN] Invalid fields remaining',\n invalidFields.map(field => field.name),\n );\n this.nextButtonLabel = 'Next';\n this.nextSubmits = false;\n }\n }\n\n attachFieldAttributes(pageInfo, field, el) {\n // We can get called multiple times as rendering completes and it's hard to avoid that\n // because it's a ton of work for the callers to know it's been done already. But we\n // don't want to attach multiple event listeners or we get dupe event handling, like\n // calling the server twice on every field update. Since JS has no removeAllEventListeners()\n // option, using removeEventListener() isn't reliable the way Stencil binds local function\n // contexts, and cloneNode messes up the rest of the rendering, we just track it with a flag.\n if (el.getAttribute('attached') === '1') {\n return;\n }\n el.setAttribute('attached', '1');\n\n el.addEventListener('input', (e: any) => {\n // console.log('[SIGN] onfieldInput', e.detail, e.target.value);\n // These field types don't emit fieldChange. Should we standardize on that? We don't tap \"input\" for fields like\n // text boxes because we'd be updating the field on every keystroke. We do those on blur which fires fieldChange.\n if (e.target.type === 'radio' || e.target.type === 'checkbox') {\n // if (e.target.type === 'radio' || e.target.name.includes('date') || e.target.name.includes('checkbox')) {\n this.handleFieldChange(field, e).finally(() => this.checkRecipientFields());\n } else {\n this.checkRecipientFields();\n }\n });\n el.addEventListener('attached', async (e: any) => {\n console.log('[SIGN] onAttached', e.detail, e.target.value);\n this.showSpinner = true;\n try {\n const updateResult = await uploadEnvelopeFieldAttachment(this.endpoint, this.envelopeId, field.name, e.detail);\n this.updateRecipientFieldValue(field.name, updateResult);\n this.checkRecipientFields();\n\n const newEl = renderDocumentField('envelope', field, pageInfo, {disabled: false, editable: false, draggable: false, done: this.isDone});\n this.attachFieldAttributes(pageInfo, field, newEl);\n\n this.showSpinner = false;\n } catch (e) {\n console.log('Error uploading attachment', e);\n VerdocsToast('Unable to upload attachment, please try again later', {style: 'error'});\n this.showSpinner = false;\n }\n });\n el.addEventListener('deleted', async (e: any) => {\n console.log('[SIGN] onDeleted', e.detail, e.target.value);\n this.showSpinner = true;\n try {\n const updateResult = await deleteEnvelopeFieldAttachment(this.endpoint, this.envelopeId, field.name);\n console.log('[SIGN] Deleted attachment', updateResult);\n this.updateRecipientFieldValue(field.name, updateResult);\n this.checkRecipientFields();\n\n const newEl = renderDocumentField('envelope', field, pageInfo, {disabled: false, editable: false, draggable: false, done: this.isDone});\n this.attachFieldAttributes(pageInfo, field, newEl);\n\n this.showSpinner = false;\n } catch (e) {\n console.log('Error uploading attachment', e);\n VerdocsToast('Unable to upload attachment, please try again later', {style: 'error'});\n this.showSpinner = false;\n }\n });\n el.addEventListener('focusout', e => {\n // These field types trigger focusout as they're used, even without a value change\n if (field.type !== 'dropdown' && field.type !== 'attachment') {\n this.handleFieldChange(field, e).finally(() => this.checkRecipientFields());\n }\n });\n el.addEventListener('fieldChange', e => {\n this.handleFieldChange(field, e).finally(() => this.checkRecipientFields());\n });\n\n el.setAttribute('templateid', this.envelope.template_id);\n el.setAttribute('fieldname', field.name);\n el.setAttribute('page', pageInfo.pageNumber);\n el.setAttribute('xScale', pageInfo.xScale);\n el.setAttribute('yScale', pageInfo.yScale);\n\n const fullName = formatFullName(this.recipient);\n el.setAttribute('initials', fullNameToInitials(fullName));\n el.setAttribute('name', fullName);\n }\n\n handlePageRendered(e: any) {\n const pageInfo = e.detail as IDocumentPageInfo;\n\n // NOTE: We don't filter on pageNumber here because we need the position in the\n // entire list to set the tabIndex.\n const recipientFields = this.getSortedFillableFields();\n console.log('[SIGN] Rendering fields for page', pageInfo.pageNumber, recipientFields);\n\n // First render the fields for the signer\n recipientFields.forEach((field, tabIndex) => {\n if (field.page !== pageInfo.pageNumber) {\n return;\n }\n\n const el = renderDocumentField('envelope', field, pageInfo, {disabled: false, editable: false, draggable: false, done: this.isDone}, tabIndex);\n if (!el) {\n return;\n }\n\n if (Array.isArray(el)) {\n el.map(e => this.attachFieldAttributes(pageInfo, field, e));\n } else {\n this.attachFieldAttributes(pageInfo, field, el);\n }\n });\n\n // Now render the fields for other signers who have yet to act\n this.envelope.recipients\n .filter(r => r.role_name !== this.recipient.role_name && (r.status === 'invited' || r.status === 'opened' || r.status === 'pending'))\n .forEach(() => {\n this.getRecipientFields()\n .filter(field => field.page === pageInfo.pageNumber)\n .forEach(field => {\n const el = renderDocumentField('envelope', field, pageInfo, {disabled: true, editable: false, draggable: false, done: this.isDone});\n if (!el) {\n return;\n }\n\n if (Array.isArray(el)) {\n el.map(e => this.attachFieldAttributes(pageInfo, field, e));\n } else {\n this.attachFieldAttributes(pageInfo, field, el);\n }\n });\n });\n\n this.checkRecipientFields();\n }\n\n handleAuthenticateSigner(params: TAuthenticateRecipientRequest) {\n console.log('[SIGN] Submitting authentication step', params);\n verifySigner(this.endpoint, params)\n .then(r => {\n console.log('[SIGN] Verification successful', r);\n this.processAuthResponse(r);\n })\n .catch(e => {\n console.log('[SIGN] Error submitting authentication step', e);\n if (e.response?.data?.error?.includes('failed')) {\n this.fatalErrorHeader = 'Recipient Verification Failed';\n this.fatalErrorMessage = 'We were unable to verify your identity. The sender has been notified.';\n this.isDone = true;\n } else {\n VerdocsToast(e.response?.data?.error || 'Unable to verify your identity. Please try again.', {style: 'error'});\n }\n });\n }\n\n render() {\n console.log('[SIGN] Rendering', {authStep: this.authStep});\n if (this.showLoadError) {\n return (\n <Host>\n <verdocs-ok-dialog\n heading=\"Unable to Start Signing\"\n message={`Sorry, your invite code is invalid or has expired. Please check your email for an updated invitation, or contact the sender.`}\n buttonLabel=\"OK\"\n onNext={() => {\n window.location.reload();\n }}\n />\n </Host>\n );\n }\n\n if (!this.envelope) {\n return (\n <Host>\n <verdocs-loader />\n </Host>\n );\n }\n\n if (this.fatalErrorMessage) {\n return (\n <Host class={{agreed: this.agreed}}>\n <div class=\"fatal-error\">\n <div class=\"message\">\n <div class=\"header\">{this.fatalErrorHeader}</div>\n <p>{this.fatalErrorMessage}</p>\n </div>\n </div>\n </Host>\n );\n }\n\n if (this.isDone) {\n return (\n <Host class={{agreed: this.agreed}}>\n <verdocs-view endpoint={this.endpoint} envelopeId={this.envelopeId} onSdkError={e => this.sdkError?.emit(e.detail)} />\n\n {this.showDone && (\n <verdocs-ok-dialog\n heading=\"You're Done!\"\n message={`You can access the ${this.documentsSingularPlural} at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached.`}\n onNext={(e: any) => {\n e.preventDefault();\n e.stopPropagation();\n this.showDone = false;\n this.isDone = true;\n }}\n />\n )}\n\n {this.submitting && (\n <div class=\"loading-indicator\">\n <verdocs-loader />\n </div>\n )}\n </Host>\n );\n }\n\n if (!this.agreed) {\n return (\n <Host class=\"agreed\">\n <div id=\"verdocs-sign-header\">\n <div class=\"inner\">\n <img src=\"https://verdocs.com/assets/white-logo.svg\" alt=\"Verdocs Logo\" class=\"logo\" />\n <div class=\"title\">{this.envelope.name}</div>\n </div>\n </div>\n\n <div class=\"document\" style={{paddingTop: '15px'}}>\n <img\n src=\"https://public-assets.verdocs.com/loading-placeholder.png\"\n style={{width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px'}}\n alt=\"Placeholder page\"\n />\n </div>\n\n <div class=\"cover\">\n <div class=\"agree\">\n <verdocs-checkbox name=\"agree\" label=\"By checking this box, you:\" onInput={() => this.handleClickAgree()} />\n <div innerHTML={this.disclosure} />\n </div>\n </div>\n </Host>\n );\n }\n\n if (this.authStep === 'passcode') {\n return (\n <Host class=\"kba\">\n <div id=\"verdocs-sign-header\">\n <div class=\"inner\">\n <img src=\"https://verdocs.com/assets/white-logo.svg\" alt=\"Verdocs Logo\" class=\"logo\" />\n <div class=\"title\">{this.envelope.name}</div>\n </div>\n </div>\n\n <div class=\"document\" style={{paddingTop: '15px'}}>\n <img\n src=\"https://public-assets.verdocs.com/loading-placeholder.png\"\n style={{width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px'}}\n alt=\"Placeholder page\"\n />\n </div>\n\n <div class=\"cover\">\n <div class=\"kba\">\n <verdocs-kba-dialog\n mode=\"text\"\n step={1}\n steps={1}\n placeholder=\"Enter your passcode...\"\n helptitle=\"Document is protected by a Passcode\"\n helptext=\"Please enter your Passcode to proceed. If you do not have one, please contact the sender.\"\n label=\"Passcode\"\n onNext={e => this.handleAuthenticateSigner({auth_method: 'passcode', code: e.detail as string})}\n />\n </div>\n </div>\n </Host>\n );\n }\n\n if (this.authStep === 'email') {\n return (\n <verdocs-otp-dialog\n endpoint={this.endpoint}\n method=\"email\"\n onNext={async e => {\n this.processAuthResponse(e.detail.response);\n }}\n />\n );\n }\n\n if (this.authStep === 'kba' && !this.authMethodStates.kba) {\n return (\n <Host class=\"kba\">\n <div id=\"verdocs-sign-header\">\n <div class=\"inner\">\n <img src=\"https://verdocs.com/assets/white-logo.svg\" alt=\"Verdocs Logo\" class=\"logo\" />\n <div class=\"title\">{this.envelope.name}</div>\n </div>\n </div>\n\n <div class=\"document\" style={{paddingTop: '15px'}}>\n <img\n src=\"https://public-assets.verdocs.com/loading-placeholder.png\"\n style={{width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px'}}\n alt=\"Placeholder page\"\n />\n </div>\n\n <div class=\"cover\">\n <div class=\"kba\">\n <verdocs-kba-dialog\n mode=\"identity\"\n helptitle=\"Document requires identity verification\"\n helptext=\"Please complete your contact details to proceed.\"\n recipient={this.recipient}\n onNext={async e => {\n const recipDetails = e.detail as IRecipient;\n this.handleAuthenticateSigner({\n auth_method: 'kba',\n first_name: recipDetails.first_name,\n last_name: recipDetails.last_name,\n address: recipDetails.address,\n city: recipDetails.city,\n state: recipDetails.state,\n zip: recipDetails.zip,\n dob: recipDetails.dob,\n });\n }}\n />\n </div>\n </div>\n </Host>\n );\n }\n\n if (this.authStep === 'kba' && this.authMethodStates.kba === 'questions') {\n const questionNumber = this.kbaChoices.length;\n const kbaQuestion = this.kbaQuestions[questionNumber];\n return (\n <Host class=\"kba\">\n <div id=\"verdocs-sign-header\">\n <div class=\"inner\">\n <img src=\"https://verdocs.com/assets/white-logo.svg\" alt=\"Verdocs Logo\" class=\"logo\" />\n <div class=\"title\">{this.envelope.name}</div>\n </div>\n </div>\n\n <div class=\"document\" style={{paddingTop: '15px'}}>\n <img\n src=\"https://public-assets.verdocs.com/loading-placeholder.png\"\n style={{width: '612px', height: '792px', boxShadow: '0 0 10px 5px #0000000f', marginTop: '15px'}}\n alt=\"Placeholder page\"\n />\n </div>\n\n <div class=\"cover\">\n <div class=\"kba\">\n {this.kbaChoices.length >= this.kbaQuestions.length ? (\n <verdocs-spinner />\n ) : (\n <verdocs-kba-dialog\n mode=\"choice\"\n helptitle=\"Your identity requires additional verification\"\n helptext={kbaQuestion?.prompt || 'Please select one of the options below.'}\n choices={kbaQuestion?.answer || ['Skip Question']}\n step={questionNumber + 1}\n steps={this.kbaQuestions.length}\n onNext={async (e: any) => {\n const answer = e.detail as string;\n this.kbaChoices = [...this.kbaChoices, answer];\n if (this.kbaChoices.length >= this.kbaQuestions.length) {\n const responses = this.kbaQuestions.map((q, i) => ({type: q.type, answer: this.kbaChoices[i]}));\n console.log('Submitting KBA responses', this.kbaChoices, responses);\n this.handleAuthenticateSigner({auth_method: 'kba', responses});\n }\n }}\n />\n )}\n </div>\n </div>\n </Host>\n );\n }\n\n return (\n <Host>\n <div id=\"verdocs-sign-header\">\n <div class=\"inner\">\n <img src=\"https://verdocs.com/assets/white-logo.svg\" alt=\"Verdocs Logo\" class=\"logo\" />\n <div class=\"title\">{this.envelope.name}</div>\n <div style={{flex: '1'}} />\n\n {!this.finishLater && <verdocs-button size=\"xsmall\" label={this.nextButtonLabel} disabled={!this.agreed || this.submitting} onClick={() => this.handleNext()} />}\n\n <div style={{marginLeft: '10px'}} />\n <verdocs-dropdown options={!this.isDone && !this.finishLater ? inProgressMenuOptions : doneMenuOptions} onOptionSelected={e => this.handleOptionSelected(e)} />\n </div>\n </div>\n\n <div class=\"document\" style={{paddingTop: '15px'}}>\n {(this.envelope.documents || []).map(envelopeDocument => {\n const pageNumbers = integerSequence(1, envelopeDocument.pages);\n\n return (\n <Fragment>\n {pageNumbers.map(pageNumber => {\n const pageSize = envelopeDocument.page_sizes?.[pageNumber] || {width: 612, height: 792};\n\n // In signing mode we show the original template page with all the recipient fields so we can show source formatting and\n // where everything went. This is also a visual indicator when optional fields weren't filled in by previous actors, or\n // future signers still need to act. Once we're \"done\" we flip to showing the envelope's documents which have the final\n // field vales (so far) stamped into them.\n // TODO: Confirm that a pure page-number match is good enough to find the matching template page. We need to make sure\n // we either don't reset our page numbers for additional attachments, or add match-on identifiers to work around that.\n // console.log('tp', templatePage, page);\n return (\n <verdocs-envelope-document-page\n envelopeId={this.envelopeId}\n documentId={envelopeDocument.id}\n endpoint={this.endpoint}\n virtualWidth={pageSize.width}\n virtualHeight={pageSize.height}\n pageNumber={pageNumber}\n onPageRendered={e => this.handlePageRendered(e)}\n type=\"filled\"\n layers={[\n {name: 'page', type: 'canvas'},\n {name: 'controls', type: 'div'},\n ]}\n />\n );\n })}\n </Fragment>\n );\n })}\n </div>\n\n {this.showFinishLater && (\n <verdocs-ok-dialog\n heading=\"You've saved your document to finish later.\"\n message={`To complete the ${this.documentsSingularPlural}, use the link in the original email notification inviting you to review and finish the document.`}\n onNext={() => (this.showFinishLater = false)}\n />\n )}\n\n {this.showDone && (\n <verdocs-ok-dialog\n heading=\"You're Done!\"\n message={`You can access the ${this.documentsSingularPlural} at any time by clicking on the link from the invitation email.<br /><br />After all recipients have completed their actions, you will receive an email with the document and envelope certificate attached.`}\n onNext={() => {\n this.showDone = false;\n this.isDone = true;\n }}\n />\n )}\n\n {this.submitting ||\n (this.showSpinner && (\n <verdocs-portal>\n <div class=\"spinner-overlay\">\n <verdocs-spinner />\n </div>\n </verdocs-portal>\n ))}\n </Host>\n );\n }\n}\n"],"mappings":"qtFAAA,IAAMA,EAAiB,s/HCcvB,IAAMC,EAAqB,6hBAgB3B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,KAAI,SAAAkB,G,MACf,IAAM2E,IAAW9N,EAAAyN,EAAiBM,cAAU,MAAA/N,SAAA,SAAAA,EAAGmJ,KAAe,CAAC+B,MAAO,IAAKC,OAAQ,KASnF,OACEf,EACE,kCAAAvM,WAAY4E,EAAK5E,WACjBmQ,WAAYP,EAAiBtQ,GAC7BQ,SAAU8E,EAAK9E,SACfsQ,aAAcH,EAAS5C,MACvBgD,cAAeJ,EAAS3C,OACxBhC,WAAYA,EACZgF,eAAgB,SAAApL,GAAK,OAAAN,EAAKgH,mBAAmB1G,EAAxB,EACrBY,KAAK,SACLyK,OAAQ,CACN,CAACjK,KAAM,OAAQR,KAAM,UACrB,CAACQ,KAAM,WAAYR,KAAM,S,IAOvC,KAGDjG,KAAKqB,iBACJqL,EACE,qBAAAE,QAAQ,8CACRxJ,QAAS,mBAAAR,OAAmB5C,KAAKuB,wBAAuB,qGACxDuL,OAAQ,kBAAO/H,EAAK1D,gBAAkB,KAA9B,IAIXrB,KAAKkB,UACJwL,EAAA,qBACEE,QAAQ,eACRxJ,QAAS,sBAAAR,OAAsB5C,KAAKuB,wBAAuB,gNAC3DuL,OAAQ,WACN/H,EAAK7D,SAAW,MAChB6D,EAAK9D,OAAS,IAChB,IAIHjB,KAAKe,YACHf,KAAK2B,aACJ+K,EAAA,sBACEA,EAAK,OAAAO,MAAM,mBACTP,EAAA,0B,WAv7BQ,I","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- System.register(["./p-gAi_FRvp.system.js"],(function(e){"use strict";var o,d,i,a;return{setters:[function(e){o=e.r;d=e.c;i=e.h;a=e.H}],execute:function(){var r='@-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-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-dialog .background-overlay{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:absolute;-ms-flex-align:center;align-items:center;background:rgba(0, 0, 0, 0.4980392157);-ms-flex-pack:center;justify-content:center}verdocs-dialog .dialog{width:420px;display:-ms-flexbox;display:flex;max-width:100%;overflow:hidden;border-radius:4px;-ms-flex-direction:column;flex-direction:column;background:#ffffff;-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-dialog .heading{display:-ms-flexbox;display:flex;font-size:16px;font-weight:500;padding:8px 16px;-ms-flex-direction:row;flex-direction:row;color:#ffffff;background:#46497d}verdocs-dialog .content{padding:16px}verdocs-dialog .content p{margin:0 0 1em 0}verdocs-dialog .buttons{gap:14px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}';var n=e("verdocs_dialog",function(){function e(e){o(this,e);this.exit=d(this,"exit")}e.prototype.handleDismiss=function(e){var o;if(e.target.className==="background-overlay"){e.preventDefault();(o=this.exit)===null||o===void 0?void 0:o.emit()}};e.prototype.render=function(){var e=this;return i(a,{key:"db89d061e5d4b2aaef751621cfb32a332034ceed"},i("div",{key:"fb928bd8fda58c5c9c5bbed662c055dc00db5f6b",class:"background-overlay",onClick:function(o){return e.handleDismiss(o)}},i("div",{key:"25c82f341ea3437777b69d2ef2578eb76f2bd566",class:"dialog"},i("slot",{key:"e3a0d4c6e3612203617fe40d192f0ba6282b84a6",name:"title"},i("div",{key:"18b4ce4bd1a48cf9911756bc970c17580e3d149e",class:"heading"},"Please Confirm")),i("div",{key:"638f57aba3dd14a91072aee3a80cc9038dbf6247",class:"content"},i("slot",{key:"b75d736e0f8d89ae080a9238ef570eab5b79ff83"})))))};return e}());n.style=r}}}));
2
- //# sourceMappingURL=p-d5790af4.system.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["verdocsDialogCss","VerdocsDialog","exports","class_1","prototype","handleDismiss","e","target","className","preventDefault","_a","this","exit","emit","render","_this","h","Host","key","class","onClick","name"],"sources":["src/components/dialogs/verdocs-dialog/verdocs-dialog.scss?tag=verdocs-dialog","src/components/dialogs/verdocs-dialog/verdocs-dialog.tsx"],"sourcesContent":["@import '../../../theme.scss';\n\nverdocs-dialog {\n font-family: $primary-font;\n box-sizing: border-box;\n\n div {\n box-sizing: border-box;\n }\n\n .background-overlay {\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n z-index: 10000;\n position: absolute;\n align-items: center;\n background: #0000007f;\n justify-content: center;\n }\n\n .dialog {\n width: 420px;\n display: flex;\n max-width: 100%;\n overflow: hidden;\n border-radius: 4px;\n flex-direction: column;\n background: $verdocs-grey-4;\n box-shadow: 3px 3px 5px 1px rgba(40, 40, 40, 0.4);\n }\n\n .heading {\n display: flex;\n font-size: 16px;\n font-weight: 500;\n padding: 8px 16px;\n flex-direction: row;\n color: $verdocs-grey-4;\n background: $verdocs-grey-blue;\n }\n\n .content {\n padding: 16px;\n\n p {\n margin: 0 0 1em 0;\n }\n }\n\n .buttons {\n gap: 14px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: flex-end;\n }\n}\n","import {Component, h, Event, EventEmitter, Host} from '@stencil/core';\n\n/**\n * Display a simple dialog where the contents are provided via slots.\n */\n@Component({\n tag: 'verdocs-dialog',\n styleUrl: 'verdocs-dialog.scss',\n})\nexport class VerdocsDialog {\n /**\n * Event fired when the dialog is dismissed by clicking the background overlay.\n */\n @Event({composed: true}) exit: EventEmitter;\n\n // We need a separate event handler for clicking the background because it can receive events \"through\" other child components\n handleDismiss(e: any) {\n if (e.target.className === 'background-overlay') {\n e.preventDefault();\n this.exit?.emit();\n }\n }\n\n render() {\n return (\n <Host>\n <div class=\"background-overlay\" onClick={e => this.handleDismiss(e)}>\n <div class=\"dialog\">\n <slot name=\"title\">\n <div class=\"heading\">Please Confirm</div>\n </slot>\n\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"0JAAA,IAAMA,EAAmB,m9C,ICSZC,EAAaC,EAAA,4B,iDAOxBC,EAAAC,UAAAC,cAAA,SAAcC,G,MACZ,GAAIA,EAAEC,OAAOC,YAAc,qBAAsB,CAC/CF,EAAEG,kBACFC,EAAAC,KAAKC,QAAM,MAAAF,SAAA,SAAAA,EAAAG,M,GAIfV,EAAAC,UAAAU,OAAA,eAAAC,EAAAJ,KACE,OACEK,EAACC,EAAI,CAAAC,IAAA,4CACHF,EAAA,OAAAE,IAAA,2CAAKC,MAAM,qBAAqBC,QAAS,SAAAd,GAAK,OAAAS,EAAKV,cAAcC,EAAnB,GAC5CU,EAAK,OAAAE,IAAA,2CAAAC,MAAM,UACTH,EAAM,QAAAE,IAAA,2CAAAG,KAAK,SACTL,EAAA,OAAAE,IAAA,2CAAKC,MAAM,WAAS,mBAGtBH,EAAK,OAAAE,IAAA,2CAAAC,MAAM,WACTH,EAAA,QAAAE,IAAA,gD,WAxBY,I","ignoreList":[]}