@verdocs/web-sdk 6.10.0 → 6.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. package/dist/cjs/{Environment-3vWt0C1Q.js → Environment-CP-XG6Lt.js} +2 -3
  2. package/dist/cjs/{Environment-3vWt0C1Q.js.map → Environment-CP-XG6Lt.js.map} +1 -1
  3. package/dist/cjs/_commonjsHelpers-CFO10eej.js +10 -0
  4. package/dist/cjs/_commonjsHelpers-CFO10eej.js.map +1 -0
  5. package/dist/cjs/{en-DyXpAt1T.js → en-B5Y8bwF8.js} +3 -3
  6. package/dist/cjs/{en-DyXpAt1T.js.map → en-B5Y8bwF8.js.map} +1 -1
  7. package/dist/cjs/index-DLmnUl1_.js +4 -4
  8. package/dist/cjs/{interact.min-BAnZvLwr.js → interact.min-CGi6ndGs.js} +3 -3
  9. package/dist/cjs/{interact.min-BAnZvLwr.js.map → interact.min-CGi6ndGs.js.map} +1 -1
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/cjs/verdocs-adopt-signature-dialog_7.cjs.entry.js +1 -1
  12. package/dist/cjs/verdocs-contact-picker.cjs.entry.js +16 -5206
  13. package/dist/cjs/verdocs-contact-picker.cjs.entry.js.map +1 -1
  14. package/dist/cjs/verdocs-date-input.cjs.entry.js +2 -2
  15. package/dist/cjs/verdocs-field-attachment_11.cjs.entry.js +3 -3
  16. package/dist/cjs/verdocs-field-payment.cjs.entry.js +2 -2
  17. package/dist/cjs/verdocs-preview_6.cjs.entry.js +3 -3
  18. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  19. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js +16 -32
  20. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js.map +1 -1
  21. package/dist/components/p-161tgqin.js +2 -0
  22. package/dist/components/p-161tgqin.js.map +1 -0
  23. package/dist/components/{p-C_Xku1v2.js → p-29evahil.js} +2 -2
  24. package/dist/components/p-B85MJLTf.js +2 -0
  25. package/dist/components/{p-B_dAoCMu.js → p-BXCSHTRK.js} +2 -2
  26. package/dist/components/{p-pyA5cdVX.js → p-C-VgmSdO.js} +2 -2
  27. package/dist/{verdocs-web-sdk/p-CGNX5HqF.js → components/p-C4ygd3v_.js} +2 -2
  28. package/dist/components/{p-BxOEoXie.js → p-CD_W_8Te.js} +2 -2
  29. package/dist/components/{p-BT8wzCXz.js → p-CNS_xfUy.js} +2 -2
  30. package/dist/components/{p-DhO1wfh-.js → p-CabZXA4q.js} +2 -2
  31. package/dist/components/{p-DVGumEtx.js → p-Ct2pWzCQ.js} +2 -2
  32. package/dist/components/{p-BwEGkh_6.js → p-CwFFcX13.js} +2 -2
  33. package/dist/components/{p-Yxa93LOl.js → p-D7XKYAmn.js} +2 -2
  34. package/dist/components/{p-DwPH0TQ4.js → p-DBDp9BWW.js} +2 -2
  35. package/dist/components/{p-Dmw-lE3L.js → p-DFxdTSl_.js} +2 -2
  36. package/dist/components/{p-5E7bNT3k.js → p-DOj-ooY6.js} +2 -2
  37. package/dist/components/{p-DjOTs59Z.js → p-DYbHyMbx.js} +2 -2
  38. package/dist/components/{p-DXLcCG08.js → p-D_uebJGM.js} +2 -2
  39. package/dist/{verdocs-web-sdk/p-CjPsvAbb.js → components/p-DcAXub3q.js} +2 -2
  40. package/dist/components/{p-CnoHN1S8.js → p-DpyO-OJK.js} +2 -2
  41. package/dist/components/{p-B845hxhl.js → p-DuEnrEJr.js} +2 -2
  42. package/dist/components/{p-Cfiprngx.js → p-NAf9Gqm4.js} +2 -2
  43. package/dist/components/{p-BasWFMeN.js → p-PIdGCYte.js} +2 -2
  44. package/dist/components/verdocs-build.js +1 -1
  45. package/dist/components/verdocs-contact-picker.js +1 -1
  46. package/dist/components/verdocs-date-input.js +1 -1
  47. package/dist/components/verdocs-delegate-dialog.js +1 -1
  48. package/dist/components/verdocs-field-attachment.js +1 -1
  49. package/dist/components/verdocs-field-checkbox.js +1 -1
  50. package/dist/components/verdocs-field-date.js +1 -1
  51. package/dist/components/verdocs-field-dropdown.js +1 -1
  52. package/dist/components/verdocs-field-initial.js +1 -1
  53. package/dist/components/verdocs-field-payment.js +1 -1
  54. package/dist/components/verdocs-field-radio.js +1 -1
  55. package/dist/components/verdocs-field-signature.js +1 -1
  56. package/dist/components/verdocs-field-textarea.js +1 -1
  57. package/dist/components/verdocs-field-textbox.js +1 -1
  58. package/dist/components/verdocs-field-timestamp.js +1 -1
  59. package/dist/components/verdocs-otp-dialog.js +1 -1
  60. package/dist/components/verdocs-passcode-dialog.js +1 -1
  61. package/dist/components/verdocs-preview.js +1 -1
  62. package/dist/components/verdocs-send.js +1 -1
  63. package/dist/components/verdocs-sign.js +1 -1
  64. package/dist/components/verdocs-template-document-page.js +1 -1
  65. package/dist/components/verdocs-template-fields.js +1 -1
  66. package/dist/esm/{Environment-C_Xku1v2.js → Environment-29evahil.js} +3 -3
  67. package/dist/esm/{Environment-C_Xku1v2.js.map → Environment-29evahil.js.map} +1 -1
  68. package/dist/esm/_commonjsHelpers-B85MJLTf.js +8 -0
  69. package/dist/esm/_commonjsHelpers-B85MJLTf.js.map +1 -0
  70. package/dist/esm/{en-bsV5YfOZ.js → en-DZgdXBKq.js} +3 -3
  71. package/dist/{esm-es5/en-bsV5YfOZ.js.map → esm/en-DZgdXBKq.js.map} +1 -1
  72. package/dist/esm/index-CjTHbolG.js +4 -4
  73. package/dist/esm/{interact.min-BepJAdBZ.js → interact.min-BO_a_7pQ.js} +3 -3
  74. package/dist/{esm-es5/interact.min-BepJAdBZ.js.map → esm/interact.min-BO_a_7pQ.js.map} +1 -1
  75. package/dist/esm/loader.js +1 -1
  76. package/dist/esm/{utils-D9l-GFdv.js → utils-Bh3zb1Xs.js} +3 -3
  77. package/dist/{esm-es5/utils-D9l-GFdv.js.map → esm/utils-Bh3zb1Xs.js.map} +1 -1
  78. package/dist/esm/verdocs-adopt-signature-dialog_7.entry.js +1 -1
  79. package/dist/esm/verdocs-contact-picker.entry.js +17 -5207
  80. package/dist/esm/verdocs-contact-picker.entry.js.map +1 -1
  81. package/dist/esm/verdocs-date-input.entry.js +2 -2
  82. package/dist/esm/verdocs-download-dialog_4.entry.js +1 -1
  83. package/dist/esm/verdocs-envelopes-list.entry.js +1 -1
  84. package/dist/esm/verdocs-field-attachment_11.entry.js +3 -3
  85. package/dist/esm/verdocs-field-payment.entry.js +2 -2
  86. package/dist/esm/verdocs-pagination_2.entry.js +1 -1
  87. package/dist/esm/verdocs-preview_6.entry.js +4 -4
  88. package/dist/esm/verdocs-sign.entry.js +1 -1
  89. package/dist/esm/verdocs-signing-progress.entry.js +1 -1
  90. package/dist/esm/verdocs-template-document-page_2.entry.js +1 -1
  91. package/dist/esm/verdocs-web-sdk.js +1 -1
  92. package/dist/esm-es5/{Environment-C_Xku1v2.js → Environment-29evahil.js} +2 -2
  93. package/dist/esm-es5/{Environment-C_Xku1v2.js.map → Environment-29evahil.js.map} +1 -1
  94. package/dist/esm-es5/_commonjsHelpers-B85MJLTf.js +2 -0
  95. package/dist/esm-es5/_commonjsHelpers-B85MJLTf.js.map +1 -0
  96. package/dist/esm-es5/{en-bsV5YfOZ.js → en-DZgdXBKq.js} +2 -2
  97. package/dist/{esm/en-bsV5YfOZ.js.map → esm-es5/en-DZgdXBKq.js.map} +1 -1
  98. package/dist/esm-es5/index-CjTHbolG.js +1 -1
  99. package/dist/esm-es5/{interact.min-BepJAdBZ.js → interact.min-BO_a_7pQ.js} +2 -2
  100. package/dist/{esm/interact.min-BepJAdBZ.js.map → esm-es5/interact.min-BO_a_7pQ.js.map} +1 -1
  101. package/dist/esm-es5/loader.js +1 -1
  102. package/dist/esm-es5/{utils-D9l-GFdv.js → utils-Bh3zb1Xs.js} +2 -2
  103. package/dist/{esm/utils-D9l-GFdv.js.map → esm-es5/utils-Bh3zb1Xs.js.map} +1 -1
  104. package/dist/esm-es5/verdocs-adopt-signature-dialog_7.entry.js +1 -1
  105. package/dist/esm-es5/verdocs-contact-picker.entry.js +1 -2
  106. package/dist/esm-es5/verdocs-contact-picker.entry.js.map +1 -1
  107. package/dist/esm-es5/verdocs-date-input.entry.js +1 -1
  108. package/dist/esm-es5/verdocs-download-dialog_4.entry.js +1 -1
  109. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  110. package/dist/esm-es5/verdocs-field-attachment_11.entry.js +1 -1
  111. package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
  112. package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
  113. package/dist/esm-es5/verdocs-preview_6.entry.js +1 -1
  114. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  115. package/dist/esm-es5/verdocs-signing-progress.entry.js +1 -1
  116. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  117. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  118. package/dist/types/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.d.ts +0 -2
  119. package/dist/verdocs-web-sdk/{p-7e6d153f.system.entry.js → p-0d19368a.system.entry.js} +2 -2
  120. package/dist/verdocs-web-sdk/{p-e95723ac.entry.js → p-186984ee.entry.js} +2 -2
  121. package/dist/verdocs-web-sdk/{p-d60cfa3e.system.entry.js → p-234d351c.system.entry.js} +2 -2
  122. package/dist/verdocs-web-sdk/{p-ad40c4aa.system.entry.js → p-24e2db66.system.entry.js} +2 -2
  123. package/dist/verdocs-web-sdk/{p-C_Xku1v2.js → p-29evahil.js} +2 -2
  124. package/dist/verdocs-web-sdk/{p-C_Xku1v2.js.map → p-29evahil.js.map} +1 -1
  125. package/dist/verdocs-web-sdk/p-363d6565.system.entry.js +2 -0
  126. package/dist/verdocs-web-sdk/p-363d6565.system.entry.js.map +1 -0
  127. package/dist/verdocs-web-sdk/{p-e608d2bc.system.entry.js → p-4a2d69b9.system.entry.js} +2 -2
  128. package/dist/verdocs-web-sdk/{p-50d51d96.entry.js → p-5c2025ca.entry.js} +2 -2
  129. package/dist/verdocs-web-sdk/{p-f97ca49e.entry.js → p-5e934a5e.entry.js} +2 -2
  130. package/dist/verdocs-web-sdk/{p-33cfc977.system.entry.js → p-62e4605d.system.entry.js} +2 -2
  131. package/dist/verdocs-web-sdk/{p-edab1fed.system.entry.js → p-6af0110a.system.entry.js} +3 -3
  132. package/dist/verdocs-web-sdk/{p-b0aafc0a.entry.js → p-733acaa6.entry.js} +2 -2
  133. package/dist/verdocs-web-sdk/{p-04d2fa80.system.entry.js → p-74838066.system.entry.js} +2 -2
  134. package/dist/verdocs-web-sdk/{p-f2876180.entry.js → p-8eb09dd6.entry.js} +2 -2
  135. package/dist/verdocs-web-sdk/{p-d7284af0.entry.js → p-8f50f83f.entry.js} +2 -2
  136. package/dist/verdocs-web-sdk/p-97bdb772.entry.js +2 -0
  137. package/dist/verdocs-web-sdk/p-97bdb772.entry.js.map +1 -0
  138. package/dist/verdocs-web-sdk/p-B85MJLTf.js +2 -0
  139. package/dist/verdocs-web-sdk/p-B85MJLTf.js.map +1 -0
  140. package/dist/verdocs-web-sdk/p-BdZ5Ghsa.system.js +1 -1
  141. package/dist/{components/p-CGNX5HqF.js → verdocs-web-sdk/p-C4ygd3v_.js} +2 -2
  142. package/dist/verdocs-web-sdk/{p-CGNX5HqF.js.map → p-C4ygd3v_.js.map} +1 -1
  143. package/dist/verdocs-web-sdk/{p-T412l3FU.js → p-CGsVCy75.js} +2 -2
  144. package/dist/verdocs-web-sdk/{p-T412l3FU.js.map → p-CGsVCy75.js.map} +1 -1
  145. package/dist/verdocs-web-sdk/p-CHg64SCg.system.js +2 -0
  146. package/dist/verdocs-web-sdk/{p-C9y1KCYV.system.js.map → p-CHg64SCg.system.js.map} +1 -1
  147. package/dist/verdocs-web-sdk/p-D6-Ny6z1.system.js +2 -0
  148. package/dist/verdocs-web-sdk/p-D6-Ny6z1.system.js.map +1 -0
  149. package/dist/verdocs-web-sdk/{p-DE0Cygqz.system.js → p-DQMNv-mt.system.js} +2 -2
  150. package/dist/verdocs-web-sdk/{p-DE0Cygqz.system.js.map → p-DQMNv-mt.system.js.map} +1 -1
  151. package/dist/{components/p-CjPsvAbb.js → verdocs-web-sdk/p-DcAXub3q.js} +2 -2
  152. package/dist/verdocs-web-sdk/{p-CjPsvAbb.js.map → p-DcAXub3q.js.map} +1 -1
  153. package/dist/verdocs-web-sdk/{p-C06jLDFm.system.js → p-RE5sZHi0.system.js} +2 -2
  154. package/dist/verdocs-web-sdk/{p-C06jLDFm.system.js.map → p-RE5sZHi0.system.js.map} +1 -1
  155. package/dist/verdocs-web-sdk/{p-297d1631.system.entry.js → p-b3ac740e.system.entry.js} +2 -2
  156. package/dist/verdocs-web-sdk/{p-1258cb3f.system.entry.js → p-c09ed2af.system.entry.js} +2 -2
  157. package/dist/verdocs-web-sdk/{p-40f5ecf3.system.entry.js → p-c4c09247.system.entry.js} +2 -2
  158. package/dist/verdocs-web-sdk/{p-2e76c944.entry.js → p-c60bf9c2.entry.js} +2 -2
  159. package/dist/verdocs-web-sdk/{p-eb8091da.system.entry.js → p-d000b2aa.system.entry.js} +2 -2
  160. package/dist/verdocs-web-sdk/{p-d0e8419b.entry.js → p-d06d9cfd.entry.js} +3 -3
  161. package/dist/verdocs-web-sdk/{p-e632e92c.entry.js → p-e624dc88.entry.js} +2 -2
  162. package/dist/verdocs-web-sdk/{p-2d72560a.entry.js → p-e910098d.entry.js} +2 -2
  163. package/dist/verdocs-web-sdk/{p-11c3e5bb.entry.js → p-f9ef8d34.entry.js} +2 -2
  164. package/dist/verdocs-web-sdk/{p-EtGQEmqo.system.js → p-nfw6V5pF.system.js} +2 -2
  165. package/dist/verdocs-web-sdk/{p-EtGQEmqo.system.js.map → p-nfw6V5pF.system.js.map} +1 -1
  166. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  167. package/package.json +1 -1
  168. package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +0 -13
  169. package/dist/cjs/_commonjsHelpers-BJu3ubxk.js.map +0 -1
  170. package/dist/collection/utils/Unleash.js +0 -18
  171. package/dist/collection/utils/Unleash.js.map +0 -1
  172. package/dist/components/p-BFTU3MAI.js +0 -2
  173. package/dist/components/p-CPYFXW2q.js +0 -3
  174. package/dist/components/p-CPYFXW2q.js.map +0 -1
  175. package/dist/custom-elements.json +0 -2501
  176. package/dist/esm/_commonjsHelpers-BFTU3MAI.js +0 -10
  177. package/dist/esm/_commonjsHelpers-BFTU3MAI.js.map +0 -1
  178. package/dist/esm-es5/_commonjsHelpers-BFTU3MAI.js +0 -2
  179. package/dist/esm-es5/_commonjsHelpers-BFTU3MAI.js.map +0 -1
  180. package/dist/types/utils/Unleash.d.ts +0 -14
  181. package/dist/verdocs-web-sdk/p-1ce27c81.system.entry.js +0 -4
  182. package/dist/verdocs-web-sdk/p-1ce27c81.system.entry.js.map +0 -1
  183. package/dist/verdocs-web-sdk/p-4e84a5b6.entry.js +0 -3
  184. package/dist/verdocs-web-sdk/p-4e84a5b6.entry.js.map +0 -1
  185. package/dist/verdocs-web-sdk/p-BFTU3MAI.js +0 -2
  186. package/dist/verdocs-web-sdk/p-BFTU3MAI.js.map +0 -1
  187. package/dist/verdocs-web-sdk/p-Bzy18UgU.system.js +0 -2
  188. package/dist/verdocs-web-sdk/p-Bzy18UgU.system.js.map +0 -1
  189. package/dist/verdocs-web-sdk/p-C9y1KCYV.system.js +0 -2
  190. /package/dist/components/{p-C_Xku1v2.js.map → p-29evahil.js.map} +0 -0
  191. /package/dist/components/{p-BFTU3MAI.js.map → p-B85MJLTf.js.map} +0 -0
  192. /package/dist/components/{p-B_dAoCMu.js.map → p-BXCSHTRK.js.map} +0 -0
  193. /package/dist/components/{p-pyA5cdVX.js.map → p-C-VgmSdO.js.map} +0 -0
  194. /package/dist/components/{p-CGNX5HqF.js.map → p-C4ygd3v_.js.map} +0 -0
  195. /package/dist/components/{p-BxOEoXie.js.map → p-CD_W_8Te.js.map} +0 -0
  196. /package/dist/components/{p-BT8wzCXz.js.map → p-CNS_xfUy.js.map} +0 -0
  197. /package/dist/components/{p-DhO1wfh-.js.map → p-CabZXA4q.js.map} +0 -0
  198. /package/dist/components/{p-DVGumEtx.js.map → p-Ct2pWzCQ.js.map} +0 -0
  199. /package/dist/components/{p-BwEGkh_6.js.map → p-CwFFcX13.js.map} +0 -0
  200. /package/dist/components/{p-Yxa93LOl.js.map → p-D7XKYAmn.js.map} +0 -0
  201. /package/dist/components/{p-DwPH0TQ4.js.map → p-DBDp9BWW.js.map} +0 -0
  202. /package/dist/components/{p-Dmw-lE3L.js.map → p-DFxdTSl_.js.map} +0 -0
  203. /package/dist/components/{p-5E7bNT3k.js.map → p-DOj-ooY6.js.map} +0 -0
  204. /package/dist/components/{p-DjOTs59Z.js.map → p-DYbHyMbx.js.map} +0 -0
  205. /package/dist/components/{p-DXLcCG08.js.map → p-D_uebJGM.js.map} +0 -0
  206. /package/dist/components/{p-CjPsvAbb.js.map → p-DcAXub3q.js.map} +0 -0
  207. /package/dist/components/{p-CnoHN1S8.js.map → p-DpyO-OJK.js.map} +0 -0
  208. /package/dist/components/{p-B845hxhl.js.map → p-DuEnrEJr.js.map} +0 -0
  209. /package/dist/components/{p-Cfiprngx.js.map → p-NAf9Gqm4.js.map} +0 -0
  210. /package/dist/components/{p-BasWFMeN.js.map → p-PIdGCYte.js.map} +0 -0
  211. /package/dist/verdocs-web-sdk/{p-7e6d153f.system.entry.js.map → p-0d19368a.system.entry.js.map} +0 -0
  212. /package/dist/verdocs-web-sdk/{p-e95723ac.entry.js.map → p-186984ee.entry.js.map} +0 -0
  213. /package/dist/verdocs-web-sdk/{p-d60cfa3e.system.entry.js.map → p-234d351c.system.entry.js.map} +0 -0
  214. /package/dist/verdocs-web-sdk/{p-ad40c4aa.system.entry.js.map → p-24e2db66.system.entry.js.map} +0 -0
  215. /package/dist/verdocs-web-sdk/{p-e608d2bc.system.entry.js.map → p-4a2d69b9.system.entry.js.map} +0 -0
  216. /package/dist/verdocs-web-sdk/{p-50d51d96.entry.js.map → p-5c2025ca.entry.js.map} +0 -0
  217. /package/dist/verdocs-web-sdk/{p-f97ca49e.entry.js.map → p-5e934a5e.entry.js.map} +0 -0
  218. /package/dist/verdocs-web-sdk/{p-33cfc977.system.entry.js.map → p-62e4605d.system.entry.js.map} +0 -0
  219. /package/dist/verdocs-web-sdk/{p-edab1fed.system.entry.js.map → p-6af0110a.system.entry.js.map} +0 -0
  220. /package/dist/verdocs-web-sdk/{p-b0aafc0a.entry.js.map → p-733acaa6.entry.js.map} +0 -0
  221. /package/dist/verdocs-web-sdk/{p-04d2fa80.system.entry.js.map → p-74838066.system.entry.js.map} +0 -0
  222. /package/dist/verdocs-web-sdk/{p-f2876180.entry.js.map → p-8eb09dd6.entry.js.map} +0 -0
  223. /package/dist/verdocs-web-sdk/{p-d7284af0.entry.js.map → p-8f50f83f.entry.js.map} +0 -0
  224. /package/dist/verdocs-web-sdk/{p-297d1631.system.entry.js.map → p-b3ac740e.system.entry.js.map} +0 -0
  225. /package/dist/verdocs-web-sdk/{p-1258cb3f.system.entry.js.map → p-c09ed2af.system.entry.js.map} +0 -0
  226. /package/dist/verdocs-web-sdk/{p-40f5ecf3.system.entry.js.map → p-c4c09247.system.entry.js.map} +0 -0
  227. /package/dist/verdocs-web-sdk/{p-2e76c944.entry.js.map → p-c60bf9c2.entry.js.map} +0 -0
  228. /package/dist/verdocs-web-sdk/{p-eb8091da.system.entry.js.map → p-d000b2aa.system.entry.js.map} +0 -0
  229. /package/dist/verdocs-web-sdk/{p-d0e8419b.entry.js.map → p-d06d9cfd.entry.js.map} +0 -0
  230. /package/dist/verdocs-web-sdk/{p-e632e92c.entry.js.map → p-e624dc88.entry.js.map} +0 -0
  231. /package/dist/verdocs-web-sdk/{p-2d72560a.entry.js.map → p-e910098d.entry.js.map} +0 -0
  232. /package/dist/verdocs-web-sdk/{p-11c3e5bb.entry.js.map → p-f9ef8d34.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var i,t=1,r=arguments.length;t<r;t++){i=arguments[t];for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s))e[s]=i[s]}return e};return __assign.apply(this,arguments)};var __spreadArray=this&&this.__spreadArray||function(e,i,t){if(t||arguments.length===2)for(var r=0,s=i.length,n;r<s;r++){if(n||!(r in i)){if(!n)n=Array.prototype.slice.call(i,0,r);n[r]=i[r]}}return e.concat(n||Array.prototype.slice.call(i))};System.register(["./p-De3fNE_u.system.js","@verdocs/js-sdk","./p-EtGQEmqo.system.js","./p-DzZgjFK8.system.js","./p-C7pDryJb.system.js","./p-CwIkMPyJ.system.js"],(function(e){"use strict";var i,t,r,s,n,o,a,c;return{setters:[function(e){i=e.r;t=e.c;r=e.h;s=e.H;n=e.g},function(e){o=e.integerSequence},function(e){a=e.c},function(e){c=e.c},null,null],execute:function(){var l=function(){return'verdocs-pagination{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-family:"Inter", "Barlow", sans-serif}verdocs-pagination .page-button{height:38px;display:-ms-flexbox;display:flex;-ms-flex:0 0 38px;flex:0 0 38px;cursor:pointer;font-size:16px;font-weight:600;border-radius:4px;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:#33364b;border:1px solid #654dcb}verdocs-pagination .page-button svg{width:18px;height:18px}verdocs-pagination .page-button.selected{cursor:default;color:#ffffff;background:#654dcb}verdocs-pagination .ellipsis{width:38px;height:38px;display:-ms-flexbox;display:flex;-ms-flex:0 0 38px;flex:0 0 38px;line-height:32px;-ms-flex-pack:center;justify-content:center;color:#33364b}'};var f='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M18.75 19.5l-7.5-7.5 7.5-7.5m-6 15L5.25 12l7.5-7.5" /></svg>';var d='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M11.25 4.5l7.5 7.5-7.5 7.5m-6-15l7.5 7.5-7.5 7.5" /></svg>';var u=5;var p=function(e){var i=e.page,t=e.selected,s=e.onClick;var n;if(i==="first"){n=f}else if(i==="last"){n=d}else{n=String(i+1)}return r("div",{class:"page-button ".concat(i===t?"selected":""),onClick:function(){return s(i)},innerHTML:n})};var b=e("verdocs_pagination",function(){function e(e){i(this,e);this.selectPage=t(this,"selectPage");this.selectedPage=0;this.itemCount=1;this.perPage=10}e.prototype.handleSelectPage=function(e){var i;this.selectedPage=e;(i=this.selectPage)===null||i===void 0?void 0:i.emit({selectedPage:e})};e.prototype.render=function(){var e=this;var i=Math.max(0,this.selectedPage-2);var t=this.itemCount>0?Math.ceil(this.itemCount/this.perPage):0;var n=o(0,Math.ceil(this.itemCount/this.perPage)).slice(i,i+u);return r(s,{key:"2ce45159b092a0283f247e7098931fcd34eebb99"},this.selectedPage>0&&r(p,{key:"0bec38eb497b2feef1c98fd73b682f997d68ac5b",page:"first",selected:this.selectedPage,onClick:function(){return e.handleSelectPage(0)}}),i>0&&r("div",{key:"706e4de3571b6b3883df226d300cfb9ae358c8b3",class:"ellipsis"},"..."),n.map((function(i){return r(p,{page:i,selected:e.selectedPage,onClick:function(i){return e.handleSelectPage(+i)}})})),this.selectedPage<t-1&&r("div",{key:"9249824a3700ec561f6707e2a8fc4ebbf2362633",class:"ellipsis"},"..."),this.selectedPage<t-1&&r(p,{key:"d1051af6279d1e864ea39cfd087c7295739e2619",page:"last",selected:this.selectedPage,onClick:function(){return e.handleSelectPage(t-1)}}))};Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());b.style=l();var h=function(){return'verdocs-quick-filter{position:relative;font-family:"Inter", "Barlow", sans-serif}verdocs-quick-filter .control{outline:0;height:34px;display:-ms-flexbox;display:flex;cursor:pointer;border-radius:4px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;background:#ffffff;-webkit-transition:all 100ms ease 0s;transition:all 100ms ease 0s;border:1px solid #cccccc}verdocs-quick-filter .title{padding:0 8px;font-size:14px;max-width:100%;overflow:hidden;color:#33364b;white-space:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;text-overflow:ellipsis}verdocs-quick-filter .title .prefix{display:inline;font-weight:700;margin:0 7px 0 0;color:#4c56cb}verdocs-quick-filter .arrow{width:32px;height:32px;border:none;outline:none;cursor:pointer;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;background:#ffffff;-webkit-transition:color 150ms ease 0s;transition:color 150ms ease 0s}verdocs-quick-filter .arrow svg{-webkit-transition:0.3s;transition:0.3s;fill:#cccccc}verdocs-quick-filter .separator{width:1px;display:block;margin-top:8px;margin-bottom:8px;-ms-flex-item-align:stretch;align-self:stretch;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#cccccc}verdocs-quick-filter .items{display:none;z-index:10000;position:absolute;border-radius:4px;background:#ffffff;-webkit-box-shadow:rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(0, 0, 0, 0.1) 0 4px 11px;box-shadow:rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(0, 0, 0, 0.1) 0 4px 11px}verdocs-quick-filter .items[data-show]{display:block}verdocs-quick-filter .option{width:100%;border:none;display:block;font-size:14px;text-align:left;background:none;padding:10px 20px;color:#1e2031}verdocs-quick-filter .option:hover{cursor:pointer;background:rgba(76, 86, 203, 0.2470588235)}verdocs-quick-filter .option[disabled]{color:#aaaaaa}verdocs-quick-filter .option[disabled]:hover{cursor:inherit;background:transparent;color:#aaaaaa}verdocs-quick-filter.open .items{display:block}verdocs-quick-filter.open .arrow svg{-webkit-transform:scaleY(-1);transform:scaleY(-1)}'};var v='<svg height="20" width="20" viewBox="0 0 20 20" aria-hidden="true" focusable="false" class="css-8mmkcg"><path d="M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"></path></svg>';var x=e("verdocs_quick_filter",function(){function e(e){i(this,e);this.optionSelected=t(this,"optionSelected");this.options=[];this.label="Filter";this.value="";this.placeholder="Select...";this.clickListenerSymbol=new AbortController}e.prototype.componentDidLoad=function(){this.popper=c(this.dropdownButton,this.dropdownMenu,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[-1,14]}}]});window.addEventListener("click",this.clickListener.bind(this),{signal:this.clickListenerSymbol.signal})};e.prototype.disconnectedCallback=function(){this.clickListenerSymbol.abort()};e.prototype.clickListener=function(e){var i=!(e.target==this.el||this.el.contains(e.target));if(i){this.hide()}};e.prototype.handleSelectOption=function(e,i){e.stopPropagation();this.optionSelected.emit(i);this.value=i.value;this.hide()};e.prototype.showDropdown=function(){var e,i;this.open=true;this.dropdownMenu.setAttribute("data-show","");this.dropdownMenu.removeAttribute("aria-hidden");(e=this.popper)===null||e===void 0?void 0:e.setOptions((function(e){return __assign(__assign({},e),{modifiers:__spreadArray(__spreadArray([],e.modifiers,true),[{name:"eventListeners",enabled:true}],false)})})).catch((function(){}));(i=this.popper)===null||i===void 0?void 0:i.update().catch((function(){}))};e.prototype.handleHideDropdown=function(e){var i,t;if(((i=e===null||e===void 0?void 0:e.target)===null||i===void 0?void 0:i.localName)==="button"&&((t=e===null||e===void 0?void 0:e.target)===null||t===void 0?void 0:t.className)==="arrow"){return}this.hide()};e.prototype.toggleDropdown=function(e){e.stopPropagation();if(this.open){this.hide()}else{this.showDropdown()}};e.prototype.hide=function(){var e;this.open=false;this.dropdownMenu.removeAttribute("data-show");this.dropdownMenu.setAttribute("aria-hidden","true");(e=this.popper)===null||e===void 0?void 0:e.setOptions((function(e){return __assign(__assign({},e),{modifiers:__spreadArray(__spreadArray([],e.modifiers,true),[{name:"eventListeners",enabled:false}],false)})})).catch((function(){}))};e.prototype.render=function(){var e=this;var i,t,n;var o=(i=this.options)===null||i===void 0?void 0:i.find((function(i){return i.value===e.value}));var c=(t=this.options)===null||t===void 0?void 0:t.reduce((function(e,i){return e.label.length>i.label.length?e:i}));var l=a((c===null||c===void 0?void 0:c.label)||"FILLER","14px Inter, Barlow, sans-serif");var f=a(this.label,"14px Inter, Barlow, sans-serif");var d="".concat(l+f+40,"px");return r(s,{key:"1c36fa8fc641b1ea151674355b821055a3b4cc30",class:{open:!!this.open},style:{minWidth:d,display:"inline-block"}},r("div",{key:"ed2bf8915fdd7edb695d52e53db76797a12bc33f",class:"control",onClick:function(i){return e.toggleDropdown(i)},onBlur:function(i){return e.handleHideDropdown(i)}},r("div",{key:"0dd12d9a579fe290bd4e4becd3c0ed64c4484283",class:"title",ref:function(i){return e.dropdownButton=i}},r("span",{key:"cf826e7133f800846d17e50200777f3d5fb1e61e",class:"prefix"},this.label,":"),o?o.label:this.placeholder),r("div",{key:"333f6a9b3d788f280e03b53a87256b37c5428642",style:{flex:"1"}}),r("div",{key:"901cf0e9924f257d8e2499e9233f209a3665206c",class:"separator"}),r("div",{key:"0bab9931c19151fd63452e18c0f4ddb9ec76863a",class:"arrow",innerHTML:v,"aria-label":"Open Menu"})),r("div",{key:"ee83f08945fa61bf413ab231f55c0e34a0ae75c8",class:"items","aria-hidden":!this.open,ref:function(i){return e.dropdownMenu=i},style:{minWidth:d}},(n=this.options)===null||n===void 0?void 0:n.map((function(i){return i.label?r("button",{onClick:function(t){return e.handleSelectOption(t,i)},class:"option ".concat(i.value===e.value?"selected":""),disabled:i.disabled},i.label):r("div",{class:"separator"})}))))};Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());x.style=h()}}}));
2
- //# sourceMappingURL=p-ad40c4aa.system.entry.js.map
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var i,t=1,r=arguments.length;t<r;t++){i=arguments[t];for(var s in i)if(Object.prototype.hasOwnProperty.call(i,s))e[s]=i[s]}return e};return __assign.apply(this,arguments)};var __spreadArray=this&&this.__spreadArray||function(e,i,t){if(t||arguments.length===2)for(var r=0,s=i.length,n;r<s;r++){if(n||!(r in i)){if(!n)n=Array.prototype.slice.call(i,0,r);n[r]=i[r]}}return e.concat(n||Array.prototype.slice.call(i))};System.register(["./p-De3fNE_u.system.js","@verdocs/js-sdk","./p-nfw6V5pF.system.js","./p-DzZgjFK8.system.js","./p-C7pDryJb.system.js","./p-CwIkMPyJ.system.js"],(function(e){"use strict";var i,t,r,s,n,o,a,c;return{setters:[function(e){i=e.r;t=e.c;r=e.h;s=e.H;n=e.g},function(e){o=e.integerSequence},function(e){a=e.e},function(e){c=e.c},null,null],execute:function(){var l=function(){return'verdocs-pagination{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-family:"Inter", "Barlow", sans-serif}verdocs-pagination .page-button{height:38px;display:-ms-flexbox;display:flex;-ms-flex:0 0 38px;flex:0 0 38px;cursor:pointer;font-size:16px;font-weight:600;border-radius:4px;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:#33364b;border:1px solid #654dcb}verdocs-pagination .page-button svg{width:18px;height:18px}verdocs-pagination .page-button.selected{cursor:default;color:#ffffff;background:#654dcb}verdocs-pagination .ellipsis{width:38px;height:38px;display:-ms-flexbox;display:flex;-ms-flex:0 0 38px;flex:0 0 38px;line-height:32px;-ms-flex-pack:center;justify-content:center;color:#33364b}'};var f='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M18.75 19.5l-7.5-7.5 7.5-7.5m-6 15L5.25 12l7.5-7.5" /></svg>';var d='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M11.25 4.5l7.5 7.5-7.5 7.5m-6-15l7.5 7.5-7.5 7.5" /></svg>';var u=5;var p=function(e){var i=e.page,t=e.selected,s=e.onClick;var n;if(i==="first"){n=f}else if(i==="last"){n=d}else{n=String(i+1)}return r("div",{class:"page-button ".concat(i===t?"selected":""),onClick:function(){return s(i)},innerHTML:n})};var b=e("verdocs_pagination",function(){function e(e){i(this,e);this.selectPage=t(this,"selectPage");this.selectedPage=0;this.itemCount=1;this.perPage=10}e.prototype.handleSelectPage=function(e){var i;this.selectedPage=e;(i=this.selectPage)===null||i===void 0?void 0:i.emit({selectedPage:e})};e.prototype.render=function(){var e=this;var i=Math.max(0,this.selectedPage-2);var t=this.itemCount>0?Math.ceil(this.itemCount/this.perPage):0;var n=o(0,Math.ceil(this.itemCount/this.perPage)).slice(i,i+u);return r(s,{key:"2ce45159b092a0283f247e7098931fcd34eebb99"},this.selectedPage>0&&r(p,{key:"0bec38eb497b2feef1c98fd73b682f997d68ac5b",page:"first",selected:this.selectedPage,onClick:function(){return e.handleSelectPage(0)}}),i>0&&r("div",{key:"706e4de3571b6b3883df226d300cfb9ae358c8b3",class:"ellipsis"},"..."),n.map((function(i){return r(p,{page:i,selected:e.selectedPage,onClick:function(i){return e.handleSelectPage(+i)}})})),this.selectedPage<t-1&&r("div",{key:"9249824a3700ec561f6707e2a8fc4ebbf2362633",class:"ellipsis"},"..."),this.selectedPage<t-1&&r(p,{key:"d1051af6279d1e864ea39cfd087c7295739e2619",page:"last",selected:this.selectedPage,onClick:function(){return e.handleSelectPage(t-1)}}))};Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());b.style=l();var h=function(){return'verdocs-quick-filter{position:relative;font-family:"Inter", "Barlow", sans-serif}verdocs-quick-filter .control{outline:0;height:34px;display:-ms-flexbox;display:flex;cursor:pointer;border-radius:4px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;background:#ffffff;-webkit-transition:all 100ms ease 0s;transition:all 100ms ease 0s;border:1px solid #cccccc}verdocs-quick-filter .title{padding:0 8px;font-size:14px;max-width:100%;overflow:hidden;color:#33364b;white-space:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;text-overflow:ellipsis}verdocs-quick-filter .title .prefix{display:inline;font-weight:700;margin:0 7px 0 0;color:#4c56cb}verdocs-quick-filter .arrow{width:32px;height:32px;border:none;outline:none;cursor:pointer;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;background:#ffffff;-webkit-transition:color 150ms ease 0s;transition:color 150ms ease 0s}verdocs-quick-filter .arrow svg{-webkit-transition:0.3s;transition:0.3s;fill:#cccccc}verdocs-quick-filter .separator{width:1px;display:block;margin-top:8px;margin-bottom:8px;-ms-flex-item-align:stretch;align-self:stretch;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#cccccc}verdocs-quick-filter .items{display:none;z-index:10000;position:absolute;border-radius:4px;background:#ffffff;-webkit-box-shadow:rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(0, 0, 0, 0.1) 0 4px 11px;box-shadow:rgba(0, 0, 0, 0.1) 0 0 0 1px, rgba(0, 0, 0, 0.1) 0 4px 11px}verdocs-quick-filter .items[data-show]{display:block}verdocs-quick-filter .option{width:100%;border:none;display:block;font-size:14px;text-align:left;background:none;padding:10px 20px;color:#1e2031}verdocs-quick-filter .option:hover{cursor:pointer;background:rgba(76, 86, 203, 0.2470588235)}verdocs-quick-filter .option[disabled]{color:#aaaaaa}verdocs-quick-filter .option[disabled]:hover{cursor:inherit;background:transparent;color:#aaaaaa}verdocs-quick-filter.open .items{display:block}verdocs-quick-filter.open .arrow svg{-webkit-transform:scaleY(-1);transform:scaleY(-1)}'};var v='<svg height="20" width="20" viewBox="0 0 20 20" aria-hidden="true" focusable="false" class="css-8mmkcg"><path d="M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"></path></svg>';var x=e("verdocs_quick_filter",function(){function e(e){i(this,e);this.optionSelected=t(this,"optionSelected");this.options=[];this.label="Filter";this.value="";this.placeholder="Select...";this.clickListenerSymbol=new AbortController}e.prototype.componentDidLoad=function(){this.popper=c(this.dropdownButton,this.dropdownMenu,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[-1,14]}}]});window.addEventListener("click",this.clickListener.bind(this),{signal:this.clickListenerSymbol.signal})};e.prototype.disconnectedCallback=function(){this.clickListenerSymbol.abort()};e.prototype.clickListener=function(e){var i=!(e.target==this.el||this.el.contains(e.target));if(i){this.hide()}};e.prototype.handleSelectOption=function(e,i){e.stopPropagation();this.optionSelected.emit(i);this.value=i.value;this.hide()};e.prototype.showDropdown=function(){var e,i;this.open=true;this.dropdownMenu.setAttribute("data-show","");this.dropdownMenu.removeAttribute("aria-hidden");(e=this.popper)===null||e===void 0?void 0:e.setOptions((function(e){return __assign(__assign({},e),{modifiers:__spreadArray(__spreadArray([],e.modifiers,true),[{name:"eventListeners",enabled:true}],false)})})).catch((function(){}));(i=this.popper)===null||i===void 0?void 0:i.update().catch((function(){}))};e.prototype.handleHideDropdown=function(e){var i,t;if(((i=e===null||e===void 0?void 0:e.target)===null||i===void 0?void 0:i.localName)==="button"&&((t=e===null||e===void 0?void 0:e.target)===null||t===void 0?void 0:t.className)==="arrow"){return}this.hide()};e.prototype.toggleDropdown=function(e){e.stopPropagation();if(this.open){this.hide()}else{this.showDropdown()}};e.prototype.hide=function(){var e;this.open=false;this.dropdownMenu.removeAttribute("data-show");this.dropdownMenu.setAttribute("aria-hidden","true");(e=this.popper)===null||e===void 0?void 0:e.setOptions((function(e){return __assign(__assign({},e),{modifiers:__spreadArray(__spreadArray([],e.modifiers,true),[{name:"eventListeners",enabled:false}],false)})})).catch((function(){}))};e.prototype.render=function(){var e=this;var i,t,n;var o=(i=this.options)===null||i===void 0?void 0:i.find((function(i){return i.value===e.value}));var c=(t=this.options)===null||t===void 0?void 0:t.reduce((function(e,i){return e.label.length>i.label.length?e:i}));var l=a((c===null||c===void 0?void 0:c.label)||"FILLER","14px Inter, Barlow, sans-serif");var f=a(this.label,"14px Inter, Barlow, sans-serif");var d="".concat(l+f+40,"px");return r(s,{key:"1c36fa8fc641b1ea151674355b821055a3b4cc30",class:{open:!!this.open},style:{minWidth:d,display:"inline-block"}},r("div",{key:"ed2bf8915fdd7edb695d52e53db76797a12bc33f",class:"control",onClick:function(i){return e.toggleDropdown(i)},onBlur:function(i){return e.handleHideDropdown(i)}},r("div",{key:"0dd12d9a579fe290bd4e4becd3c0ed64c4484283",class:"title",ref:function(i){return e.dropdownButton=i}},r("span",{key:"cf826e7133f800846d17e50200777f3d5fb1e61e",class:"prefix"},this.label,":"),o?o.label:this.placeholder),r("div",{key:"333f6a9b3d788f280e03b53a87256b37c5428642",style:{flex:"1"}}),r("div",{key:"901cf0e9924f257d8e2499e9233f209a3665206c",class:"separator"}),r("div",{key:"0bab9931c19151fd63452e18c0f4ddb9ec76863a",class:"arrow",innerHTML:v,"aria-label":"Open Menu"})),r("div",{key:"ee83f08945fa61bf413ab231f55c0e34a0ae75c8",class:"items","aria-hidden":!this.open,ref:function(i){return e.dropdownMenu=i},style:{minWidth:d}},(n=this.options)===null||n===void 0?void 0:n.map((function(i){return i.label?r("button",{onClick:function(t){return e.handleSelectOption(t,i)},class:"option ".concat(i.value===e.value?"selected":""),disabled:i.disabled},i.label):r("div",{class:"separator"})}))))};Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());x.style=h()}}}));
2
+ //# sourceMappingURL=p-24e2db66.system.entry.js.map
@@ -1,2 +1,2 @@
1
- import{VerdocsEndpoint as t}from"@verdocs/js-sdk";const o=["https://beta.verdocs.com","https://stage.verdocs.com","http://localhost:6006","http://localhost:5173"];const s=o.includes(window.location.origin);const c=s?"https://stage-api.verdocs.com":"https://api.verdocs.com";const p=t.getDefault().setBaseURL(c);export{o as B,p as D};
2
- //# sourceMappingURL=p-C_Xku1v2.js.map
1
+ import{VerdocsEndpoint as t}from"@verdocs/js-sdk";const o=["https://beta.verdocs.com","https://stage.verdocs.com","http://localhost:6006","http://localhost:5173"];const s=o.includes(window.location.origin);const c=s?"https://stage-api.verdocs.com":"https://api.verdocs.com";const p=t.getDefault().setBaseURL(c);export{p as D};
2
+ //# sourceMappingURL=p-29evahil.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"p-C_Xku1v2.js","sources":["src/utils/Environment.ts"],"sourcesContent":["import {VerdocsEndpoint} from '@verdocs/js-sdk';\n\nexport const BETA_ORIGINS = ['https://beta.verdocs.com', 'https://stage.verdocs.com', 'http://localhost:6006', 'http://localhost:5173'];\n\nexport const IS_BETA = BETA_ORIGINS.includes(window.location.origin);\n\nexport const API_URL = IS_BETA ? 'https://stage-api.verdocs.com' : 'https://api.verdocs.com';\n\nexport const DefaultEndpoint = VerdocsEndpoint.getDefault().setBaseURL(API_URL);\n"],"names":[],"mappings":";;AAEO,MAAM,YAAY,GAAG,CAAC,0BAA0B,EAAE,2BAA2B,EAAE,uBAAuB,EAAE,uBAAuB;AAE/H,MAAM,OAAO,GAAG,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;AAE7D,MAAM,OAAO,GAAG,OAAO,GAAG,+BAA+B,GAAG,yBAAyB;AAErF,MAAM,eAAe,GAAG,eAAe,CAAC,UAAU,EAAE,CAAC,UAAU,CAAC,OAAO;;;;"}
1
+ {"version":3,"file":"p-29evahil.js","sources":["src/utils/Environment.ts"],"sourcesContent":["import {VerdocsEndpoint} from '@verdocs/js-sdk';\n\nexport const BETA_ORIGINS = ['https://beta.verdocs.com', 'https://stage.verdocs.com', 'http://localhost:6006', 'http://localhost:5173'];\n\nexport const IS_BETA = BETA_ORIGINS.includes(window.location.origin);\n\nexport const API_URL = IS_BETA ? 'https://stage-api.verdocs.com' : 'https://api.verdocs.com';\n\nexport const DefaultEndpoint = VerdocsEndpoint.getDefault().setBaseURL(API_URL);\n"],"names":[],"mappings":";;AAEO,MAAM,YAAY,GAAG,CAAC,0BAA0B,EAAE,2BAA2B,EAAE,uBAAuB,EAAE,uBAAuB,CAAC;AAEhI,MAAM,OAAO,GAAG,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;AAE7D,MAAM,OAAO,GAAG,OAAO,GAAG,+BAA+B,GAAG,yBAAyB;AAErF,MAAM,eAAe,GAAG,eAAe,CAAC,UAAU,EAAE,CAAC,UAAU,CAAC,OAAO;;;;"}
@@ -0,0 +1,2 @@
1
+ var __spreadArray=this&&this.__spreadArray||function(e,t,a){if(a||arguments.length===2)for(var o=0,i=t.length,s;o<i;o++){if(s||!(o in t)){if(!s)s=Array.prototype.slice.call(t,0,o);s[o]=t[o]}}return e.concat(s||Array.prototype.slice.call(t))};System.register(["./p-De3fNE_u.system.js","@verdocs/js-sdk","./p-nfw6V5pF.system.js","./p-C7pDryJb.system.js","./p-CwIkMPyJ.system.js"],(function(e){"use strict";var t,a,o,i,s,c,n,r,d;return{setters:[function(e){t=e.r;a=e.c;o=e.h;i=e.F},function(e){s=e.VerdocsEndpoint;c=e.formatFullName;n=e.getActiveEntitlements;r=e.isValidEmail},function(e){d=e.c},null,null],execute:function(){var l=function(){return'verdocs-contact-picker{display:block;border:1px solid #ebebeb;background-color:#ffffff;font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif);-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}verdocs-contact-picker form{gap:12px;width:300px;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#f5f5fa}verdocs-contact-picker form .row{gap:8px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:start;align-items:flex-start}verdocs-contact-picker form .row .option{gap:4px;display:-ms-flexbox;display:flex;padding:5px 8px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;text-wrap:nowrap}verdocs-contact-picker form .names-row{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .names-row>input{font-size:14px;width:88px}verdocs-contact-picker form .pin-code{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .pin-code>input{-ms-flex:0 0 197px;flex:0 0 197px;font-size:14px}verdocs-contact-picker form .address{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .address>input{-ms-flex:1;flex:1;font-size:14px}verdocs-contact-picker form .zip-code{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .zip-code>input{-ms-flex:1;flex:1;font-size:14px}verdocs-contact-picker form label{display:-ms-flexbox;display:flex;-ms-flex:0 0 80px;flex:0 0 80px;font-size:13px;font-weight:500;color:#5c6575}verdocs-contact-picker form .row.message textarea{width:100%;padding:5px 7px;border-radius:4px;font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif)}verdocs-contact-picker form input{-ms-flex:1;flex:1;padding:6px;font-size:14px;border-radius:3px;border:1px solid rgba(112, 122, 229, 0.3725490196)}verdocs-contact-picker form input:focus{outline:none}verdocs-contact-picker .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:6px;-moz-column-gap:6px;column-gap:6px;margin-top:16px;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-contact-picker ::-webkit-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-moz-placeholder{color:#aaaaaa}verdocs-contact-picker :-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::placeholder{color:#aaaaaa}verdocs-contact-picker [data-lastpass-icon-root]{display:none !important}#verdocs-contact-picker-suggestions .dropdown{max-height:225px;overflow-y:scroll;background:#ffffff;font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif);-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}#verdocs-contact-picker-suggestions .dropdown .suggestion{display:-ms-flexbox;display:flex;padding:6px 12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-contact-picker-suggestions .dropdown .suggestion svg{width:32px;height:32px}#verdocs-contact-picker-suggestions .dropdown .suggestion .avatar{width:32px;height:32px;-ms-flex:0 0 32px;flex:0 0 32px;margin-right:8px;border-radius:100%}#verdocs-contact-picker-suggestions .dropdown .suggestion .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}#verdocs-contact-picker-suggestions .dropdown .suggestion .name{font-size:16px;font-weight:500;margin-bottom:3px;color:#092c4c}#verdocs-contact-picker-suggestions .dropdown .suggestion .destination{font-size:14px;margin-bottom:3px;color:#33364b}#verdocs-contact-picker-suggestions .dropdown .suggestion:hover{background:#eee;cursor:pointer}'};var f='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-user"><path d="M15 13a3 3 0 1 0-6 0"/><path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"/><circle cx="12" cy="8" r="2"/></svg>';var p=e("verdocs_contact_picker",function(){function e(e){t(this,e);this.searchContacts=a(this,"searchContacts");this.exit=a(this,"exit");this.next=a(this,"next");this.endpoint=s.getDefault();this.templateRole=null;this.contactSuggestions=[];this.showSuggestions=false;this.showMessage=false;this.delegator=false;this.name_locked=false;this.auth_methods=[];this.passcode="";this.firstNameFieldId="verdocs-contact-picker-firstname-".concat(Math.random().toString(36).substring(2,11));this.lastNameFieldId="verdocs-contact-picker-lastname-".concat(Math.random().toString(36).substring(2,11));this.emailFieldId="verdocs-contact-picker-email-".concat(Math.random().toString(36).substring(2,11));this.phoneFieldId="verdocs-contact-picker-phone-".concat(Math.random().toString(36).substring(2,11));this.activeEntitlements={}}e.prototype.componentWillLoad=function(){var e=this;this.endpoint.loadSession();if(this.templateRole){var t=c(this.templateRole);var a=t.split(" ");var o=this.templateRole.first_name||a.shift()||"";var i=this.templateRole.last_name||a.join(" ")||"";this.first_name=o;this.last_name=i;this.email=this.templateRole.email||"";this.phone=this.templateRole.phone||"";this.delegator=this.templateRole.delegator||false;this.name_locked=this.delegator?false:this.templateRole.name_locked||false;this.message=this.templateRole.message||"";this.showMessage=this.message!=="";this.auth_methods=this.templateRole.auth_methods||[];this.passcode=this.templateRole.passcode||""}n(this.endpoint).then((function(t){e.activeEntitlements=t;console.log("[CONTACT PICKER] Loaded entitlements",t)})).catch((function(e){return console.log("[CONTACT PICKER] Error loading entitlements, some features may be disabled.",e)}))};e.prototype.handleFirstNameChange=function(e){var t;this.first_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.first_name})};e.prototype.handleLastNameChange=function(e){var t;this.last_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.last_name})};e.prototype.handleCancel=function(e){var t;e.stopPropagation();this.showSuggestions=false;(t=this.exit)===null||t===void 0?void 0:t.emit()};e.prototype.handleSubmit=function(e){var t;e.stopPropagation();this.showSuggestions=false;(t=this.next)===null||t===void 0?void 0:t.emit({first_name:this.first_name,last_name:this.last_name,email:this.email,phone:this.phone,message:this.message,delegator:this.delegator,name_locked:this.name_locked,auth_methods:this.auth_methods,passcode:this.passcode,address:this.address,zip:this.zip})};e.prototype.handleSelectSuggestion=function(e,t){e.stopPropagation();this.first_name=t.first_name;this.last_name=t.last_name;this.email=t.email;this.phone=t.phone;this.showSuggestions=false};e.prototype.render=function(){var e=this;var t=this.first_name&&this.last_name&&r(this.email);var a=!this.auth_methods.length||this.auth_methods.includes("passcode")&&!!this.passcode||this.auth_methods.includes("kba")&&!!this.first_name&&!!this.last_name||this.auth_methods.includes("email")&&!!this.email||this.auth_methods.includes("sms")&&!!this.phone;var s=t&&a;var n=!!this.activeEntitlements.sms_auth;var l=[];l.push({label:"Passcode",value:"passcode"});l.push({label:"Email",value:"email"});if(n){l.push({label:"SMS (One-Time Code)",value:"sms"})}if(!!this.activeEntitlements.kba_auth){l.push({label:"Knowledge-Based (KBA)",value:"kba"})}if(!!this.activeEntitlements.id_auth){l.push({label:"ID Check",value:"id"})}return o("form",{key:"7b6a8e4c38cd85a566dec73cb9e7fde2e35bca59",onSubmit:function(e){return e.preventDefault()},autocomplete:"off"},o("div",{key:"a81ce66510dbeb54f9d2e09f3e5fcd1ae6ee8b08",class:"row"},o("label",{key:"0d2ea330639a7b88ab5d57efff86116ec5625cbc",htmlFor:this.firstNameFieldId},"Name:"),o("div",{key:"62e696a817dfc2a18aaa127a5960fbd77e4ee83f",class:"names-row"},o("input",{key:"03dc8c02899f28e671cab0e7cba9b740d5e006a0",id:this.firstNameFieldId,name:this.firstNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.first_name,placeholder:"First...",onFocus:function(){setTimeout((function(){var t;e.showSuggestions=((t=e.contactSuggestions)===null||t===void 0?void 0:t.length)>0}),100)},onInput:function(t){return e.handleFirstNameChange(t)}}),o("input",{key:"5165f175b55f071af49c9112298590af34b5aee6",id:this.lastNameFieldId,name:this.lastNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.last_name,placeholder:"Last...",onFocus:function(){setTimeout((function(){var t;e.showSuggestions=((t=e.contactSuggestions)===null||t===void 0?void 0:t.length)>0}),100)},onInput:function(t){return e.handleLastNameChange(t)}})),this.showSuggestions&&o("verdocs-portal",{key:"6afbac290bbd41235e15632133f081d316f5836c",anchor:this.firstNameFieldId,onClickAway:function(){e.showSuggestions=false;document.querySelectorAll(".verdocs-portal-wrapper").forEach((function(e){return e.remove()}))},id:"verdocs-contact-picker-suggestions"},o("div",{key:"dd303cd612a95d5714ba1fc1701cb0b22423e59a",class:"dropdown"},this.contactSuggestions.filter((function(t){return!e.first_name||t.first_name.toLowerCase().includes(e.first_name.toLowerCase())})).map((function(t){var a;return o("div",{key:(a=t.id)!==null&&a!==void 0?a:t.email,class:"suggestion",onClick:function(a){return e.handleSelectSuggestion(a,t)}},t.picture?o("img",{alt:"Avatar",class:"avatar",src:t.picture}):o("div",{class:"avatar",innerHTML:f}),o("div",{class:"details"},o("div",{class:"name"},c(t)),t.email&&o("div",{class:"destination"},t.email),t.phone&&o("div",{class:"destination"},t.phone)))}))))),o("div",{key:"5ce2695ad406bf236642f076f7d6fb4c5f026b87",class:"row"},o("label",{key:"d15acde8f60126dc8088728bfaf3e7d3a20c53e1",htmlFor:this.emailFieldId},"Email:"),o("input",{key:"7f33fe3ddadb2c0c6bfe302d1ac41b29b632178c",id:this.emailFieldId,name:this.emailFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.email,placeholder:"Invite/verify via email...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){return e.email=t.target.value}})),n&&o("div",{key:"b29a10e35aa609c1b71a7487c1dc4f9438e0774a",class:"row"},o("label",{key:"a2ea518eb44b0bb67f9aa3dc103ed3ba2696e725",htmlFor:this.phoneFieldId},"Phone:"),o("input",{key:"45cdf3f7f0a51adf702c553e6e58dfcf3a4cddae",id:this.phoneFieldId,name:this.phoneFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.phone,placeholder:"Invite/verify via SMS...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){e.phone=d(t.target.value)}})),o(i,{key:"87cf28af6a1891e64d812b2248195ccea52c7e5a"},l.length>0&&o("div",{key:"540a52ba78eddbcb4bb1db1ca1d73133868533a0",class:"row pin-code"},o("label",{key:"e5a8d3071a7e51431ea42ea596f1c54aef75068a"},"Verification Methods:"),o("div",{key:"5b4aed33d0a3abe52fd958187f8b4e715c446b71"},l.map((function(t,a){return o("div",{class:"option"},o("verdocs-checkbox",{size:"small",id:"verdocs-multi-select-opt-".concat(a),value:t.value,checked:e.auth_methods.includes(t.value),onInput:function(a){if(a.target.checked){e.auth_methods=__spreadArray(__spreadArray([],e.auth_methods,true),[t.value],false)}else{e.auth_methods=e.auth_methods.filter((function(e){return e!==t.value}))}}}),o("label",{htmlFor:"verdocs-multi-select-option-".concat(a)},t.label))})))),this.auth_methods.includes("passcode")&&o("div",{key:"4de405a354562f615aa4c1bf704b533f40d56f98",class:"row pin-code"},o("label",{key:"4757eed1cbf298d2bbb2ac5fba1b5950251910ce",htmlFor:this.phoneFieldId},"Passcode:"),o("input",{key:"773f06af393fab52d7772390d68d359055d50ca3",id:"verdocs-passcode",name:"verdocs-passcode",type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.passcode,placeholder:"4-8 digits recommended...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){return e.passcode=t.target.value}}))),o("div",{key:"554b747d910d444b0e3144c55dcb9d6b3423f612",class:"row pin-code"},o("label",{key:"e341bed52bc03d1340807072f80a9fb886039bd9",style:{marginTop:"6px"}},"Options:"),o("div",{key:"c95b9b6be459cbc2fa8c968d58771286422c8972"},o("div",{key:"497d9680a3079dc35464b2173f6c75cf6128ad41",class:"option"},o("verdocs-checkbox",{key:"3bd4ef77c3964180063330db4403b2cfe6cf436e",size:"small",id:"verdocs-delegator",checked:this.delegator,disabled:this.name_locked,onInput:function(t){e.delegator=t.target.checked;if(e.delegator)e.name_locked=false}}),o("label",{key:"a3cf2901f3acf26557adfcbb1cd17f3055d54cc3",htmlFor:"verdocs-delegator"},"May delegate signing")),o("div",{key:"0a0f2e713a54ed8871889fe718f14c37c3ea9a15",class:"option"},o("verdocs-checkbox",{key:"07e6452c1abc2f5608c5e16501f3cc724f07be25",size:"small",id:"verdocs-name-locked",checked:this.name_locked,disabled:this.delegator,onInput:function(t){e.name_locked=t.target.checked;if(e.name_locked)e.delegator=false}}),o("label",{key:"2207a23c6e4951b0d94a39582ce7de08cc43abbd",htmlFor:"verdocs-name-locked"},"Name locked")))),o("div",{key:"879bbb128f4102635593aec9fa5f1c84691219bc",class:"row message"},o("label",{key:"9077afcb20f75ee7cd5a5270224db886179210a4",htmlFor:"verdocs-contact-picker-message"},"Message:"),o("textarea",{key:"575171f5ed31a30333a7296ffdf09dfadf879436",id:"verdocs-contact-picker-message",name:"verdocs-contact-picker-message","data-lpignore":"true",autocomplete:"blocked",placeholder:"Optional message to include in invitation...",onFocus:function(){return e.showSuggestions=false},onInput:function(t){return e.message=t.target.value}},this.message)),o("div",{key:"30ea29546d4733d231495b13e342f7353c843eff",class:"buttons"},o("div",{key:"27be0ab0b2ff7aaf6a8800d49709f543d001e734",class:"flex-fill"}),o("verdocs-button",{key:"31274fdd2db6302968081b6b53ab728a1097b106",variant:"outline",label:"Cancel",size:"small",onClick:function(t){return e.handleCancel(t)}}),o("verdocs-button",{key:"854187325fd2f0dcb87a5682ce6a99f7e8f6d180",label:"OK",size:"small",disabled:!s,onClick:!s?function(){}:function(t){return e.handleSubmit(t)}})))};return e}());p.style=l()}}}));
2
+ //# sourceMappingURL=p-363d6565.system.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["verdocsContactPickerCss","addrBookIcon","VerdocsContactPicker","exports","class_1","hostRef","this","endpoint","VerdocsEndpoint","getDefault","templateRole","contactSuggestions","showSuggestions","showMessage","delegator","name_locked","auth_methods","passcode","firstNameFieldId","concat","Math","random","toString","substring","lastNameFieldId","emailFieldId","phoneFieldId","activeEntitlements","prototype","componentWillLoad","_this","loadSession","fullName","formatFullName","nameComponents","split","firstName","first_name","shift","lastName","last_name","join","email","phone","message","getActiveEntitlements","then","r","console","log","catch","e","handleFirstNameChange","target","value","_a","searchContacts","emit","query","handleLastNameChange","handleCancel","stopPropagation","exit","handleSubmit","next","address","zip","handleSelectSuggestion","suggestion","render","hasBasics","isValidEmail","hasAuthRequirements","length","includes","canSubmit","hasSMSAuth","sms_auth","verificationOptions","push","label","kba_auth","id_auth","h","key","onSubmit","preventDefault","autocomplete","class","htmlFor","id","name","type","placeholder","onFocus","setTimeout","onInput","anchor","onClickAway","document","querySelectorAll","forEach","el","remove","filter","toLowerCase","map","onClick","picture","alt","src","innerHTML","autoComplete","convertToE164","Fragment","option","i","size","checked","__spreadArray","selected","style","marginTop","disabled","variant"],"sources":["src/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.scss?tag=verdocs-contact-picker","src/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.tsx"],"sourcesContent":["@import '../../../theme.scss';\n\nverdocs-contact-picker {\n display: block;\n border: 1px solid #ebebeb;\n background-color: $verdocs-grey-4;\n font-family: $verdocs-primary-font;\n box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1);\n\n form {\n gap: 12px;\n width: 300px;\n padding: 12px;\n display: flex;\n flex-direction: column;\n background-color: $verdocs-grey-3;\n\n .row {\n gap: 8px;\n display: flex;\n position: relative;\n flex-direction: row;\n align-items: flex-start;\n\n .option {\n gap: 4px;\n display: flex;\n padding: 5px 8px;\n align-items: center;\n flex-direction: row;\n text-wrap: nowrap;\n }\n }\n\n .names-row {\n gap: 8px;\n display: flex;\n flex-direction: row;\n\n > input {\n font-size: 14px;\n width: 88px;\n }\n }\n\n .pin-code {\n gap: 8px;\n display: flex;\n align-items: flex-start;\n flex-direction: row;\n\n > input {\n flex: 0 0 197px;\n font-size: 14px;\n //margin-left: 88px;\n }\n }\n\n .address {\n gap: 8px;\n display: flex;\n align-items: center;\n flex-direction: row;\n\n > input {\n flex: 1;\n font-size: 14px;\n //margin-left: 88px;\n }\n }\n\n .zip-code {\n gap: 8px;\n display: flex;\n align-items: center;\n flex-direction: row;\n\n > input {\n flex: 1;\n font-size: 14px;\n //margin-left: 88px;\n }\n }\n\n label {\n display: flex;\n flex: 0 0 80px;\n font-size: 13px;\n font-weight: 500;\n color: $verdocs-bg-4;\n }\n\n .row.message textarea {\n width: 100%;\n padding: 5px 7px;\n border-radius: 4px;\n font-family: $verdocs-primary-font;\n }\n\n input {\n flex: 1;\n padding: 6px;\n font-size: 14px;\n border-radius: 3px;\n //background: #00000005;\n border: 1px solid $border-color-extralight;\n\n &:focus {\n outline: none;\n }\n }\n }\n\n .buttons {\n display: flex;\n column-gap: 6px;\n margin-top: 16px;\n flex-direction: row;\n\n .flex-fill {\n flex: 1;\n }\n }\n\n ::placeholder {\n color: $verdocs-bg-2;\n }\n\n // @see https://community.logmein.com/t5/LastPass-Support-Discussions/placeholder-text-overrides-data-lpignore-quot-true-quot/td-p/295135\n // LastPass is ignoring the data-lpignore attribute in some cases\n [data-lastpass-icon-root] {\n display: none !important;\n }\n}\n\n#verdocs-contact-picker-suggestions {\n .dropdown {\n max-height: 225px;\n overflow-y: scroll;\n background: #ffffff;\n font-family: $verdocs-primary-font;\n box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1);\n\n .suggestion {\n display: flex;\n padding: 6px 12px;\n align-items: center;\n flex-direction: row;\n\n svg {\n width: 32px;\n height: 32px;\n }\n\n .avatar {\n width: 32px;\n height: 32px;\n flex: 0 0 32px;\n margin-right: 8px;\n border-radius: 100%;\n }\n\n .details {\n display: flex;\n flex-direction: column;\n }\n\n .name {\n font-size: 16px;\n font-weight: 500;\n margin-bottom: 3px;\n color: $verdocs-grey-0;\n }\n\n .destination {\n font-size: 14px;\n margin-bottom: 3px;\n color: $verdocs-grey-1;\n }\n\n &:hover {\n background: #eee;\n cursor: pointer;\n }\n }\n }\n}\n","import {Component, h, Event, EventEmitter, Fragment, Prop, State} from '@stencil/core';\nimport {formatFullName, getActiveEntitlements, IEntitlement, IProfile, IRecipient, isValidEmail, TEntitlement, TRecipientAuthMethod, VerdocsEndpoint} from '@verdocs/js-sdk';\nimport {convertToE164} from '../../../utils/utils';\n\nconst addrBookIcon = `<svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-book-user\"><path d=\"M15 13a3 3 0 1 0-6 0\"/><path d=\"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20\"/><circle cx=\"12\" cy=\"8\" r=\"2\"/></svg>`;\n\nexport interface IContactSearchEvent {\n query: string;\n}\n\nexport interface IContactSelectEvent {\n first_name: string;\n last_name: string;\n email: string;\n phone: string;\n message: string;\n delegator: boolean;\n name_locked: boolean;\n auth_methods: TRecipientAuthMethod[];\n passcode: string;\n address: string;\n zip: string;\n}\n\nexport type TPickerContact = Partial<IProfile>;\n\n/**\n * Display a contact picker suitable for filling out Recipient objects when sending Envelopes.\n *\n * This picker can also be integrated with a backend to provide contact list / suggestion / address-book style behavior. As the\n * user interacts with the component, the text entered in the name fields is sent back to the parent via the `searchContacts` event.\n * The parent can use that text as a query string to call a backend to obtain appropriate contacts to show. This list may also be\n * hard-coded ahead of time to provide the user with smart suggestions on initial display, such as \"Recently Used\" contacts, or\n * to always display the user's own contact record.\n *\n * ```ts\n * <verdocs-contact-picker\n * templateRole={role}\n * contactSuggestions={[]}\n * onNext={e => console.log('Contact completed', e.detail)}\n * />\n * ```\n */\n@Component({\n tag: 'verdocs-contact-picker',\n styleUrl: 'verdocs-contact-picker.scss',\n shadow: false,\n})\nexport class VerdocsContactPicker {\n /**\n * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.\n */\n @Prop() endpoint: VerdocsEndpoint = VerdocsEndpoint.getDefault();\n\n /**\n * The role that this contact will be assigned to.\n */\n @Prop() templateRole: Partial<IRecipient> | null = null;\n\n /**\n * If set, suggestions will be displayed in a drop-down list to the user. It is recommended that the number\n * of suggestions be limited to the 5 best matching records.\n */\n @Prop() contactSuggestions: TPickerContact[] = [];\n\n /**\n * Event fired when the user enters text in the search field. The calling application may use this to update\n * the `contactSuggestions` property.\n */\n @Event({composed: true}) searchContacts: EventEmitter<IContactSearchEvent>;\n\n /**\n * Event fired when the step is cancelled. This is called exit to avoid conflicts with the JS-reserved \"cancel\" event name.\n */\n @Event({composed: true}) exit: EventEmitter;\n\n /**\n * Event fired when the user changes the type.\n */\n @Event({composed: true}) next: EventEmitter<IContactSelectEvent>;\n\n @State() first_name: string;\n @State() last_name: string;\n @State() email: string;\n @State() phone: string;\n @State() zip: string;\n @State() address: string;\n @State() message: string;\n @State() showSuggestions: boolean = false;\n @State() showMessage: boolean = false;\n @State() delegator: boolean = false;\n @State() name_locked: boolean = false;\n @State() auth_methods: TRecipientAuthMethod[] = [];\n @State() passcode: string = '';\n\n @State() firstNameFieldId = `verdocs-contact-picker-firstname-${Math.random().toString(36).substring(2, 11)}`;\n @State() lastNameFieldId = `verdocs-contact-picker-lastname-${Math.random().toString(36).substring(2, 11)}`;\n @State() emailFieldId = `verdocs-contact-picker-email-${Math.random().toString(36).substring(2, 11)}`;\n @State() phoneFieldId = `verdocs-contact-picker-phone-${Math.random().toString(36).substring(2, 11)}`;\n\n @State() activeEntitlements: Partial<Record<TEntitlement, IEntitlement>> = {};\n\n componentWillLoad() {\n this.endpoint.loadSession();\n\n if (this.templateRole) {\n const fullName = formatFullName(this.templateRole);\n const nameComponents = fullName.split(' ');\n const firstName = this.templateRole.first_name || nameComponents.shift() || '';\n const lastName = this.templateRole.last_name || nameComponents.join(' ') || '';\n this.first_name = firstName;\n this.last_name = lastName;\n\n this.email = this.templateRole.email || '';\n this.phone = this.templateRole.phone || '';\n // delegator and name_locked are mutually exclusive; delegator takes precedence if both are somehow set\n this.delegator = this.templateRole.delegator || false;\n this.name_locked = this.delegator ? false : (this.templateRole.name_locked || false);\n this.message = this.templateRole.message || '';\n this.showMessage = this.message !== '';\n this.auth_methods = this.templateRole.auth_methods || [];\n this.passcode = this.templateRole.passcode || '';\n }\n\n getActiveEntitlements(this.endpoint)\n .then(r => {\n this.activeEntitlements = r;\n console.log('[CONTACT PICKER] Loaded entitlements', r);\n })\n .catch(e => console.log('[CONTACT PICKER] Error loading entitlements, some features may be disabled.', e));\n }\n\n handleFirstNameChange(e: any) {\n this.first_name = e.target.value;\n this.searchContacts?.emit({query: this.first_name});\n }\n\n handleLastNameChange(e: any) {\n this.last_name = e.target.value;\n this.searchContacts?.emit({query: this.last_name});\n }\n\n handleCancel(e: any) {\n e.stopPropagation();\n this.showSuggestions = false;\n this.exit?.emit();\n }\n\n handleSubmit(e: any) {\n e.stopPropagation();\n\n this.showSuggestions = false;\n this.next?.emit({\n first_name: this.first_name,\n last_name: this.last_name,\n email: this.email,\n phone: this.phone,\n message: this.message,\n delegator: this.delegator,\n name_locked: this.name_locked,\n auth_methods: this.auth_methods,\n passcode: this.passcode,\n address: this.address,\n zip: this.zip,\n });\n }\n\n handleSelectSuggestion(e: any, suggestion: TPickerContact) {\n e.stopPropagation();\n\n this.first_name = suggestion.first_name;\n this.last_name = suggestion.last_name;\n this.email = suggestion.email;\n this.phone = suggestion.phone;\n this.showSuggestions = false;\n }\n\n // The reason for the random names/IDs is to disable browser autocomplete. We set the autocomplete tags but many browsers ignore them\n // and show a duplicate autocomplete picker on top of our own.\n render() {\n // const hasBasics = this.first_name && this.last_name && (isValidEmail(this.email) || isValidPhone(this.phone));\n const hasBasics = this.first_name && this.last_name && isValidEmail(this.email);\n const hasAuthRequirements =\n !this.auth_methods.length ||\n (this.auth_methods.includes('passcode') && !!this.passcode) ||\n (this.auth_methods.includes('kba') && !!this.first_name && !!this.last_name) ||\n (this.auth_methods.includes('email') && !!this.email) ||\n (this.auth_methods.includes('sms') && !!this.phone);\n const canSubmit = hasBasics && hasAuthRequirements;\n const hasSMSAuth = !!this.activeEntitlements.sms_auth\n\n const verificationOptions = [];\n\n verificationOptions.push({label: 'Passcode', value: 'passcode'});\n verificationOptions.push({label: 'Email', value: 'email'});\n\n if (hasSMSAuth) {\n verificationOptions.push({label: 'SMS (One-Time Code)', value: 'sms'});\n }\n\n if (!!this.activeEntitlements.kba_auth) {\n verificationOptions.push({label: 'Knowledge-Based (KBA)', value: 'kba'});\n }\n\n if (!!this.activeEntitlements.id_auth) {\n verificationOptions.push({label: 'ID Check', value: 'id'});\n }\n\n return (\n <form\n onSubmit={e => e.preventDefault()}\n // onClick={e => e.stopPropagation()}\n autocomplete=\"off\"\n >\n <div class=\"row\">\n <label htmlFor={this.firstNameFieldId}>Name:</label>\n <div class=\"names-row\">\n <input\n id={this.firstNameFieldId}\n name={this.firstNameFieldId}\n type=\"text\"\n data-lpignore=\"true\"\n autocomplete=\"blocked\"\n aria-autocomplete=\"none\"\n value={this.first_name}\n placeholder=\"First...\"\n onFocus={() => {\n // Give the blur event a chance to hide it first if going between first/last\n setTimeout(() => {\n this.showSuggestions = this.contactSuggestions?.length > 0;\n }, 100);\n }}\n onInput={e => this.handleFirstNameChange(e)}\n />\n <input\n id={this.lastNameFieldId}\n name={this.lastNameFieldId}\n type=\"text\"\n data-lpignore=\"true\"\n autocomplete=\"blocked\"\n aria-autocomplete=\"none\"\n value={this.last_name}\n placeholder=\"Last...\"\n onFocus={() => {\n // Give the blur event a chance to hide it first if going between first/last\n setTimeout(() => {\n this.showSuggestions = this.contactSuggestions?.length > 0;\n }, 100);\n }}\n onInput={e => this.handleLastNameChange(e)}\n />\n </div>\n\n {this.showSuggestions && (\n <verdocs-portal\n anchor={this.firstNameFieldId}\n onClickAway={() => {\n this.showSuggestions = false;\n document.querySelectorAll(`.verdocs-portal-wrapper`).forEach(el => el.remove());\n }}\n id=\"verdocs-contact-picker-suggestions\"\n >\n <div class=\"dropdown\">\n {this.contactSuggestions\n .filter(suggestion => !this.first_name || suggestion.first_name.toLowerCase().includes(this.first_name.toLowerCase()))\n .map(suggestion => (\n <div key={suggestion.id ?? suggestion.email} class=\"suggestion\" onClick={e => this.handleSelectSuggestion(e, suggestion)}>\n {suggestion.picture ? <img alt=\"Avatar\" class=\"avatar\" src={suggestion.picture} /> : <div class=\"avatar\" innerHTML={addrBookIcon} />}\n <div class=\"details\">\n <div class=\"name\">{formatFullName(suggestion)}</div>\n {suggestion.email && <div class=\"destination\">{suggestion.email}</div>}\n {suggestion.phone && <div class=\"destination\">{suggestion.phone}</div>}\n </div>\n </div>\n ))}\n </div>\n </verdocs-portal>\n )}\n </div>\n\n <div class=\"row\">\n <label htmlFor={this.emailFieldId}>Email:</label>\n <input\n id={this.emailFieldId}\n name={this.emailFieldId}\n type=\"text\"\n data-lpignore=\"true\"\n autoComplete=\"blocked\"\n aria-autocomplete=\"none\"\n value={this.email}\n placeholder=\"Invite/verify via email...\"\n onFocus={() => (this.showSuggestions = false)}\n onInput={(e: any) => (this.email = e.target.value)}\n />\n </div>\n\n {hasSMSAuth && (\n <div class=\"row\">\n <label htmlFor={this.phoneFieldId}>Phone:</label>\n <input\n id={this.phoneFieldId}\n name={this.phoneFieldId}\n type=\"text\"\n data-lpignore=\"true\"\n autoComplete=\"blocked\"\n aria-autocomplete=\"none\"\n value={this.phone}\n placeholder=\"Invite/verify via SMS...\"\n onFocus={() => (this.showSuggestions = false)}\n onInput={(e: any) => {\n this.phone = convertToE164(e.target.value);\n }}\n />\n </div>\n )}\n\n <Fragment>\n {verificationOptions.length > 0 && (\n <div class=\"row pin-code\">\n <label>Verification Methods:</label>\n <div>\n {verificationOptions.map((option, i) => (\n <div class=\"option\">\n <verdocs-checkbox\n size=\"small\"\n id={`verdocs-multi-select-opt-${i}`}\n value={option.value}\n checked={this.auth_methods.includes(option.value)}\n onInput={(e: any) => {\n if (e.target.checked) {\n this.auth_methods = [...this.auth_methods, option.value];\n } else {\n this.auth_methods = this.auth_methods.filter(selected => selected !== option.value);\n }\n }}\n />\n <label htmlFor={`verdocs-multi-select-option-${i}`}>{option.label}</label>\n </div>\n ))}\n </div>\n </div>\n )}\n\n {this.auth_methods.includes('passcode') && (\n <div class=\"row pin-code\">\n <label htmlFor={this.phoneFieldId}>Passcode:</label>\n <input\n id=\"verdocs-passcode\"\n name=\"verdocs-passcode\"\n type=\"text\"\n data-lpignore=\"true\"\n autocomplete=\"blocked\"\n aria-autocomplete=\"none\"\n value={this.passcode}\n placeholder=\"4-8 digits recommended...\"\n onFocus={() => (this.showSuggestions = false)}\n onInput={(e: any) => (this.passcode = e.target.value)}\n />\n </div>\n )}\n </Fragment>\n\n <div class=\"row pin-code\">\n <label style={{marginTop: '6px'}}>Options:</label>\n <div>\n <div class=\"option\">\n <verdocs-checkbox\n size=\"small\"\n id=\"verdocs-delegator\"\n checked={this.delegator}\n disabled={this.name_locked}\n onInput={(e: any) => {\n this.delegator = e.target.checked;\n if (this.delegator) this.name_locked = false;\n }}\n />\n <label htmlFor=\"verdocs-delegator\">May delegate signing</label>\n </div>\n <div class=\"option\">\n <verdocs-checkbox\n size=\"small\"\n id=\"verdocs-name-locked\"\n checked={this.name_locked}\n disabled={this.delegator}\n onInput={(e: any) => {\n this.name_locked = e.target.checked;\n if (this.name_locked) this.delegator = false;\n }}\n />\n <label htmlFor=\"verdocs-name-locked\">Name locked</label>\n </div>\n </div>\n </div>\n\n <div class=\"row message\">\n <label htmlFor=\"verdocs-contact-picker-message\">Message:</label>\n <textarea\n id=\"verdocs-contact-picker-message\"\n name=\"verdocs-contact-picker-message\"\n data-lpignore=\"true\"\n autocomplete=\"blocked\"\n placeholder=\"Optional message to include in invitation...\"\n onFocus={() => (this.showSuggestions = false)}\n onInput={(e: any) => (this.message = e.target.value)}\n >\n {this.message}\n </textarea>\n </div>\n\n <div class=\"buttons\">\n <div class=\"flex-fill\" />\n\n <verdocs-button variant=\"outline\" label=\"Cancel\" size=\"small\" onClick={e => this.handleCancel(e)} />\n <verdocs-button label=\"OK\" size=\"small\" disabled={!canSubmit} onClick={!canSubmit ? () => {} : e => this.handleSubmit(e)} />\n </div>\n </form>\n );\n }\n}\n"],"mappings":"+mBAAA,IAAMA,EAA0B,WAAM,87HCItC,IAAMC,EAAe,oU,IA4CRC,EAAoBC,EAAA,oCALjC,SAAAC,EAAAC,G,yGASUC,KAAAC,SAA4BC,EAAgBC,aAK5CH,KAAAI,aAA2C,KAM3CJ,KAAAK,mBAAuC,GAyBtCL,KAAAM,gBAA2B,MAC3BN,KAAAO,YAAuB,MACvBP,KAAAQ,UAAqB,MACrBR,KAAAS,YAAuB,MACvBT,KAAAU,aAAuC,GACvCV,KAAAW,SAAmB,GAEnBX,KAAAY,iBAAmB,oCAAAC,OAAoCC,KAAKC,SAASC,SAAS,IAAIC,UAAU,EAAG,KAC/FjB,KAAAkB,gBAAkB,mCAAAL,OAAmCC,KAAKC,SAASC,SAAS,IAAIC,UAAU,EAAG,KAC7FjB,KAAAmB,aAAe,gCAAAN,OAAgCC,KAAKC,SAASC,SAAS,IAAIC,UAAU,EAAG,KACvFjB,KAAAoB,aAAe,gCAAAP,OAAgCC,KAAKC,SAASC,SAAS,IAAIC,UAAU,EAAG,KAEvFjB,KAAAqB,mBAAkE,EA8T5E,CA5TCvB,EAAAwB,UAAAC,kBAAA,eAAAC,EAAAxB,KACEA,KAAKC,SAASwB,cAEd,GAAIzB,KAAKI,aAAc,CACrB,IAAMsB,EAAWC,EAAe3B,KAAKI,cACrC,IAAMwB,EAAiBF,EAASG,MAAM,KACtC,IAAMC,EAAY9B,KAAKI,aAAa2B,YAAcH,EAAeI,SAAW,GAC5E,IAAMC,EAAWjC,KAAKI,aAAa8B,WAAaN,EAAeO,KAAK,MAAQ,GAC5EnC,KAAK+B,WAAaD,EAClB9B,KAAKkC,UAAYD,EAEjBjC,KAAKoC,MAAQpC,KAAKI,aAAagC,OAAS,GACxCpC,KAAKqC,MAAQrC,KAAKI,aAAaiC,OAAS,GAExCrC,KAAKQ,UAAYR,KAAKI,aAAaI,WAAa,MAChDR,KAAKS,YAAcT,KAAKQ,UAAY,MAASR,KAAKI,aAAaK,aAAe,MAC9ET,KAAKsC,QAAUtC,KAAKI,aAAakC,SAAW,GAC5CtC,KAAKO,YAAcP,KAAKsC,UAAY,GACpCtC,KAAKU,aAAeV,KAAKI,aAAaM,cAAgB,GACtDV,KAAKW,SAAWX,KAAKI,aAAaO,UAAY,E,CAGhD4B,EAAsBvC,KAAKC,UACxBuC,MAAK,SAAAC,GACJjB,EAAKH,mBAAqBoB,EAC1BC,QAAQC,IAAI,uCAAwCF,EACtD,IACCG,OAAM,SAAAC,GAAK,OAAAH,QAAQC,IAAI,8EAA+EE,EAA3F,G,EAGhB/C,EAAAwB,UAAAwB,sBAAA,SAAsBD,G,MACpB7C,KAAK+B,WAAac,EAAEE,OAAOC,OAC3BC,EAAAjD,KAAKkD,kBAAc,MAAAD,SAAA,SAAAA,EAAEE,KAAK,CAACC,MAAOpD,KAAK+B,Y,EAGzCjC,EAAAwB,UAAA+B,qBAAA,SAAqBR,G,MACnB7C,KAAKkC,UAAYW,EAAEE,OAAOC,OAC1BC,EAAAjD,KAAKkD,kBAAc,MAAAD,SAAA,SAAAA,EAAEE,KAAK,CAACC,MAAOpD,KAAKkC,W,EAGzCpC,EAAAwB,UAAAgC,aAAA,SAAaT,G,MACXA,EAAEU,kBACFvD,KAAKM,gBAAkB,OACvB2C,EAAAjD,KAAKwD,QAAI,MAAAP,SAAA,SAAAA,EAAEE,M,EAGbrD,EAAAwB,UAAAmC,aAAA,SAAaZ,G,MACXA,EAAEU,kBAEFvD,KAAKM,gBAAkB,OACvB2C,EAAAjD,KAAK0D,QAAI,MAAAT,SAAA,SAAAA,EAAEE,KAAK,CACdpB,WAAY/B,KAAK+B,WACjBG,UAAWlC,KAAKkC,UAChBE,MAAOpC,KAAKoC,MACZC,MAAOrC,KAAKqC,MACZC,QAAStC,KAAKsC,QACd9B,UAAWR,KAAKQ,UAChBC,YAAaT,KAAKS,YAClBC,aAAcV,KAAKU,aACnBC,SAAUX,KAAKW,SACfgD,QAAS3D,KAAK2D,QACdC,IAAK5D,KAAK4D,K,EAId9D,EAAAwB,UAAAuC,uBAAA,SAAuBhB,EAAQiB,GAC7BjB,EAAEU,kBAEFvD,KAAK+B,WAAa+B,EAAW/B,WAC7B/B,KAAKkC,UAAY4B,EAAW5B,UAC5BlC,KAAKoC,MAAQ0B,EAAW1B,MACxBpC,KAAKqC,MAAQyB,EAAWzB,MACxBrC,KAAKM,gBAAkB,K,EAKzBR,EAAAwB,UAAAyC,OAAA,eAAAvC,EAAAxB,KAEE,IAAMgE,EAAYhE,KAAK+B,YAAc/B,KAAKkC,WAAa+B,EAAajE,KAAKoC,OACzE,IAAM8B,GACHlE,KAAKU,aAAayD,QAClBnE,KAAKU,aAAa0D,SAAS,eAAiBpE,KAAKW,UACjDX,KAAKU,aAAa0D,SAAS,UAAYpE,KAAK+B,cAAgB/B,KAAKkC,WACjElC,KAAKU,aAAa0D,SAAS,YAAcpE,KAAKoC,OAC9CpC,KAAKU,aAAa0D,SAAS,UAAYpE,KAAKqC,MAC/C,IAAMgC,EAAYL,GAAaE,EAC/B,IAAMI,IAAetE,KAAKqB,mBAAmBkD,SAE7C,IAAMC,EAAsB,GAE5BA,EAAoBC,KAAK,CAACC,MAAO,WAAY1B,MAAO,aACpDwB,EAAoBC,KAAK,CAACC,MAAO,QAAS1B,MAAO,UAEjD,GAAIsB,EAAY,CACdE,EAAoBC,KAAK,CAACC,MAAO,sBAAuB1B,MAAO,O,CAGjE,KAAMhD,KAAKqB,mBAAmBsD,SAAU,CACtCH,EAAoBC,KAAK,CAACC,MAAO,wBAAyB1B,MAAO,O,CAGnE,KAAMhD,KAAKqB,mBAAmBuD,QAAS,CACrCJ,EAAoBC,KAAK,CAACC,MAAO,WAAY1B,MAAO,M,CAGtD,OACE6B,EAAA,QAAAC,IAAA,2CACEC,SAAU,SAAAlC,GAAK,OAAAA,EAAEmC,gBAAF,EAEfC,aAAa,OAEbJ,EAAA,OAAAC,IAAA,2CAAKI,MAAM,OACTL,EAAA,SAAAC,IAAA,2CAAOK,QAASnF,KAAKY,kBAAgB,SACrCiE,EAAA,OAAAC,IAAA,2CAAKI,MAAM,aACTL,EAAA,SAAAC,IAAA,2CACEM,GAAIpF,KAAKY,iBACTyE,KAAMrF,KAAKY,iBACX0E,KAAK,OAAM,gBACG,OACdL,aAAa,UAAS,oBACJ,OAClBjC,MAAOhD,KAAK+B,WACZwD,YAAY,WACZC,QAAS,WAEPC,YAAW,W,MACTjE,EAAKlB,kBAAkB2C,EAAAzB,EAAKnB,sBAAkB,MAAA4C,SAAA,SAAAA,EAAEkB,QAAS,C,GACxD,IACL,EACAuB,QAAS,SAAA7C,GAAK,OAAArB,EAAKsB,sBAAsBD,EAA3B,IAEhBgC,EAAA,SAAAC,IAAA,2CACEM,GAAIpF,KAAKkB,gBACTmE,KAAMrF,KAAKkB,gBACXoE,KAAK,OAAM,gBACG,OACdL,aAAa,UAAS,oBACJ,OAClBjC,MAAOhD,KAAKkC,UACZqD,YAAY,UACZC,QAAS,WAEPC,YAAW,W,MACTjE,EAAKlB,kBAAkB2C,EAAAzB,EAAKnB,sBAAkB,MAAA4C,SAAA,SAAAA,EAAEkB,QAAS,C,GACxD,IACL,EACAuB,QAAS,SAAA7C,GAAK,OAAArB,EAAK6B,qBAAqBR,EAA1B,KAIjB7C,KAAKM,iBACJuE,EAAA,kBAAAC,IAAA,2CACEa,OAAQ3F,KAAKY,iBACbgF,YAAa,WACXpE,EAAKlB,gBAAkB,MACvBuF,SAASC,iBAAiB,2BAA2BC,SAAQ,SAAAC,GAAM,OAAAA,EAAGC,QAAH,G,EAErEb,GAAG,sCAEHP,EAAA,OAAAC,IAAA,2CAAKI,MAAM,YACRlF,KAAKK,mBACH6F,QAAO,SAAApC,GAAc,OAACtC,EAAKO,YAAc+B,EAAW/B,WAAWoE,cAAc/B,SAAS5C,EAAKO,WAAWoE,cAAjF,IACrBC,KAAI,SAAAtC,G,MAAc,OACjBe,EAAA,OAAKC,KAAK7B,EAAAa,EAAWsB,MAAE,MAAAnC,SAAA,EAAAA,EAAIa,EAAW1B,MAAO8C,MAAM,aAAamB,QAAS,SAAAxD,GAAK,OAAArB,EAAKqC,uBAAuBhB,EAAGiB,EAA/B,GAC3EA,EAAWwC,QAAUzB,EAAA,OAAK0B,IAAI,SAASrB,MAAM,SAASsB,IAAK1C,EAAWwC,UAAczB,EAAA,OAAKK,MAAM,SAASuB,UAAW9G,IACpHkF,EAAA,OAAKK,MAAM,WACTL,EAAA,OAAKK,MAAM,QAAQvD,EAAemC,IACjCA,EAAW1B,OAASyC,EAAA,OAAKK,MAAM,eAAepB,EAAW1B,OACzD0B,EAAWzB,OAASwC,EAAA,OAAKK,MAAM,eAAepB,EAAWzB,Q,OAS1EwC,EAAA,OAAAC,IAAA,2CAAKI,MAAM,OACTL,EAAA,SAAAC,IAAA,2CAAOK,QAASnF,KAAKmB,cAAY,UACjC0D,EAAA,SAAAC,IAAA,2CACEM,GAAIpF,KAAKmB,aACTkE,KAAMrF,KAAKmB,aACXmE,KAAK,OAAM,gBACG,OACdoB,aAAa,UAAS,oBACJ,OAClB1D,MAAOhD,KAAKoC,MACZmD,YAAY,6BACZC,QAAS,kBAAOhE,EAAKlB,gBAAkB,KAA9B,EACToF,QAAS,SAAC7C,GAAM,OAAMrB,EAAKY,MAAQS,EAAEE,OAAOC,KAA5B,KAInBsB,GACCO,EAAA,OAAAC,IAAA,2CAAKI,MAAM,OACTL,EAAA,SAAAC,IAAA,2CAAOK,QAASnF,KAAKoB,cAAY,UACjCyD,EAAA,SAAAC,IAAA,2CACEM,GAAIpF,KAAKoB,aACTiE,KAAMrF,KAAKoB,aACXkE,KAAK,OAAM,gBACG,OACdoB,aAAa,UAAS,oBACJ,OAClB1D,MAAOhD,KAAKqC,MACZkD,YAAY,2BACZC,QAAS,kBAAOhE,EAAKlB,gBAAkB,KAA9B,EACToF,QAAS,SAAC7C,GACRrB,EAAKa,MAAQsE,EAAc9D,EAAEE,OAAOC,M,KAM5C6B,EAAC+B,EAAQ,CAAA9B,IAAA,4CACNN,EAAoBL,OAAS,GAC5BU,EAAA,OAAAC,IAAA,2CAAKI,MAAM,gBACTL,EAAA,SAAAC,IAAA,qEACAD,EAAA,OAAAC,IAAA,4CACGN,EAAoB4B,KAAI,SAACS,EAAQC,GAAC,OACjCjC,EAAA,OAAKK,MAAM,UACTL,EAAA,oBACEkC,KAAK,QACL3B,GAAI,4BAAAvE,OAA4BiG,GAChC9D,MAAO6D,EAAO7D,MACdgE,QAASxF,EAAKd,aAAa0D,SAASyC,EAAO7D,OAC3C0C,QAAS,SAAC7C,GACR,GAAIA,EAAEE,OAAOiE,QAAS,CACpBxF,EAAKd,aAAYuG,4BAAA,GAAOzF,EAAKd,aAAY,OAAEmG,EAAO7D,OAAK,M,KAClD,CACLxB,EAAKd,aAAec,EAAKd,aAAawF,QAAO,SAAAgB,GAAY,OAAAA,IAAaL,EAAO7D,KAApB,G,KAI/D6B,EAAA,SAAOM,QAAS,+BAAAtE,OAA+BiG,IAAMD,EAAOnC,OAf7B,MAsBxC1E,KAAKU,aAAa0D,SAAS,aAC1BS,EAAA,OAAAC,IAAA,2CAAKI,MAAM,gBACTL,EAAA,SAAAC,IAAA,2CAAOK,QAASnF,KAAKoB,cAAY,aACjCyD,EAAA,SAAAC,IAAA,2CACEM,GAAG,mBACHC,KAAK,mBACLC,KAAK,OAAM,gBACG,OACdL,aAAa,UAAS,oBACJ,OAClBjC,MAAOhD,KAAKW,SACZ4E,YAAY,4BACZC,QAAS,kBAAOhE,EAAKlB,gBAAkB,KAA9B,EACToF,QAAS,SAAC7C,GAAM,OAAMrB,EAAKb,SAAWkC,EAAEE,OAAOC,KAA/B,MAMxB6B,EAAA,OAAAC,IAAA,2CAAKI,MAAM,gBACTL,EAAA,SAAAC,IAAA,2CAAOqC,MAAO,CAACC,UAAW,QAAM,YAChCvC,EAAA,OAAAC,IAAA,4CACED,EAAA,OAAAC,IAAA,2CAAKI,MAAM,UACTL,EAAA,oBAAAC,IAAA,2CACEiC,KAAK,QACL3B,GAAG,oBACH4B,QAAShH,KAAKQ,UACd6G,SAAUrH,KAAKS,YACfiF,QAAS,SAAC7C,GACRrB,EAAKhB,UAAYqC,EAAEE,OAAOiE,QAC1B,GAAIxF,EAAKhB,UAAWgB,EAAKf,YAAc,KACzC,IAEFoE,EAAA,SAAAC,IAAA,2CAAOK,QAAQ,qBAAmB,yBAEpCN,EAAA,OAAAC,IAAA,2CAAKI,MAAM,UACTL,EAAA,oBAAAC,IAAA,2CACEiC,KAAK,QACL3B,GAAG,sBACH4B,QAAShH,KAAKS,YACd4G,SAAUrH,KAAKQ,UACfkF,QAAS,SAAC7C,GACRrB,EAAKf,YAAcoC,EAAEE,OAAOiE,QAC5B,GAAIxF,EAAKf,YAAae,EAAKhB,UAAY,K,IAG3CqE,EAAA,SAAAC,IAAA,2CAAOK,QAAQ,uBAAqB,kBAK1CN,EAAA,OAAAC,IAAA,2CAAKI,MAAM,eACTL,EAAA,SAAAC,IAAA,2CAAOK,QAAQ,kCAAgC,YAC/CN,EAAA,YAAAC,IAAA,2CACEM,GAAG,iCACHC,KAAK,iCAAgC,gBACvB,OACdJ,aAAa,UACbM,YAAY,+CACZC,QAAS,kBAAOhE,EAAKlB,gBAAkB,KAA9B,EACToF,QAAS,SAAC7C,GAAM,OAAMrB,EAAKc,QAAUO,EAAEE,OAAOC,KAA9B,GAEfhD,KAAKsC,UAIVuC,EAAA,OAAAC,IAAA,2CAAKI,MAAM,WACTL,EAAA,OAAAC,IAAA,2CAAKI,MAAM,cAEXL,EAAA,kBAAAC,IAAA,2CAAgBwC,QAAQ,UAAU5C,MAAM,SAASqC,KAAK,QAAQV,QAAS,SAAAxD,GAAK,OAAArB,EAAK8B,aAAaT,EAAlB,IAC5EgC,EAAA,kBAAAC,IAAA,2CAAgBJ,MAAM,KAAKqC,KAAK,QAAQM,UAAWhD,EAAWgC,SAAUhC,EAAY,WAAK,EAAM,SAAAxB,GAAK,OAAArB,EAAKiC,aAAaZ,EAAlB,K,WA7W7E,I","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,n){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n["throw"](e))}catch(e){s(e)}}function l(e){e.done?i(e.value):r(e.value).then(o,a)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,r,s,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=a(0),o["throw"]=a(1),o["return"]=a(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return l([e,t])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,a[0]&&(i=0)),i)try{if(n=1,r&&(s=a[0]&2?r["return"]:a[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,a[1])).done)return s;if(r=0,s)a=[a[0]&2,s.value];switch(a[0]){case 0:case 1:s=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;r=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){i.label=a[1];break}if(a[0]===6&&i.label<s[1]){i.label=s[1];s=a;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(a);break}if(s[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];r=0}finally{n=s=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,t,i){if(i||arguments.length===2)for(var n=0,r=t.length,s;n<r;n++){if(s||!(n in t)){if(!s)s=Array.prototype.slice.call(t,0,n);s[n]=t[n]}}return e.concat(s||Array.prototype.slice.call(t))};System.register(["./p-De3fNE_u.system.js","@verdocs/js-sdk","./p-EtGQEmqo.system.js","./p-CwIkMPyJ.system.js","./p-GqS1qR-V.system.js","./p-Dj475wLP.system.js","./p-7Iu0_GGa.system.js","./p-fEbwslLK.system.js","./p-C7pDryJb.system.js"],(function(e){"use strict";var t,i,n,r,s,o,a,l,c,d,u,h,f,v,g,p,m,x,b,w,y,k,C,_,S,I,N,z,G,L,H,T,E,q,D,M,V,j,A,P,U;return{setters:[function(e){t=e.r;i=e.c;n=e.h;r=e.H;s=e.F;o=e.g},function(e){a=e.VerdocsEndpoint;l=e.DEFAULT_DISCLOSURES;c=e.startSigningSession;d=e.getEnvelope;u=e.envelopeRecipientAgree;h=e.updateEnvelopeField;f=e.createSignature;v=e.createInitials;g=e.sortFields;p=e.envelopeRecipientSubmit;m=e.isFieldValid;x=e.isFieldFilled;b=e.uploadEnvelopeFieldAttachment;w=e.deleteEnvelopeFieldAttachment;y=e.formatFullName;k=e.fullNameToInitials;C=e.verifySigner;_=e.getEnvelopesZip;S=e.getEnvelopeDocumentDownloadLink;I=e.getCombinedEnvelopeDocumentDownloadLink;N=e.delegateRecipient;z=e.envelopeRecipientDecline;G=e.integerSequence;L=e.askQuestion},function(e){H=e.u;T=e.g;E=e.r;q=e.a;D=e.d},function(e){M=e.D},function(e){V=e.D;j=e.C},function(e){A=e.V},function(e){P=e.S},function(e){U=e.S},null],execute:function(){var R=function(){return'verdocs-sign{display:-ms-flexbox;display:flex;overflow:hidden;min-height:700px;position:relative;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#f5f5f5;font-family:var(--verdocs-primary-font, "Inter", "Barlow", 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;padding-right:140px;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>.document .document-separator{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:10px;padding:12px 20px;width:100%;max-width:1028px;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#33364b;color:white;border-radius:6px;font-size:16px;font-weight:500;margin-top:20px;-webkit-box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);box-shadow:0 2px 4px rgba(0, 0, 0, 0.1)}verdocs-sign>.document .document-separator svg{-ms-flex-negative:0;flex-shrink:0}verdocs-sign>.document .document-separator:first-child{margin-top:0}verdocs-sign .signed-document-container{width:64%;margin-left:260px;-webkit-transition:all 0.3s ease;transition:all 0.3s ease}verdocs-sign .signed-document-container.zoom-normal{width:64%;margin-left:260px}verdocs-sign .signed-document-container.zoom-zoom1{width:80%;margin-left:200px}verdocs-sign .signed-document-container.zoom-zoom2{width:100%;margin-left:150px}verdocs-sign .signed-document-container.zoom-zoom2 .verdocs-flag-instance{opacity:0;pointer-events:none}@media (max-width: 768px){verdocs-sign verdocs-sign-footer{padding:0 10px}verdocs-sign verdocs-sign-footer .buttons{gap:8px}verdocs-sign verdocs-sign-footer .buttons button{font-size:10px}verdocs-sign .signed-document-container{width:100%;margin-left:0}verdocs-sign .signed-document-container.zoom-normal,verdocs-sign .signed-document-container.zoom-zoom1,verdocs-sign .signed-document-container.zoom-zoom2{width:100%;margin-left:0}verdocs-sign>.document{padding-right:15px}verdocs-sign .verdocs-flag-instance{display:none !important}verdocs-sign .controls-toolbar .center-controls{display:none}verdocs-sign .controls-toolbar .right-controls .mobile-next-button{display:block;margin-right:10px}verdocs-sign .controls-toolbar .right-controls .minus,verdocs-sign .controls-toolbar .right-controls .plus{display:none}}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 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,.controls-toolbar,.verdocs-flag-instance,verdocs-signing-progress{display:none !important}verdocs-sign{min-height:auto;background-color:white}verdocs-sign>.document{overflow:visible;height:auto;display:block;padding:0;margin:0}verdocs-sign>.document .document-separator{display:none}verdocs-sign .signed-document-container{width:100%;margin:0}}#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;-webkit-column-gap:10px;-moz-column-gap:10px;column-gap:10px}#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}@media (max-width: 670px){#verdocs-sign-header .title{font-size:14px}}#verdocs-sign-header .remaining-count{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;gap:8px;color:#ffffff;font-size:13px;font-weight:400;white-space:nowrap}#verdocs-sign-header .remaining-count .check-icon{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}#verdocs-sign-header .remaining-count .check-icon svg{width:16px;height:16px;fill:#55bc81}#verdocs-sign-header .remaining-count .separator{opacity:0.5;margin:0 2px}#verdocs-sign-header .remaining-count .review-optional{cursor:pointer;text-decoration:underline}#verdocs-sign-header .remaining-count .review-optional:hover{color:#54d68c}@media (max-width: 670px){#verdocs-sign-header .remaining-count .review-optional{display:none}}@media (max-width: 670px){#verdocs-sign-header .remaining-count{font-size:12px}}#verdocs-sign-header .icon-button{width:20px;height:32px;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:4px;-webkit-transition:background-color 0.2s;transition:background-color 0.2s}#verdocs-sign-header .icon-button svg path{fill:#ffffff}#verdocs-sign-header .icon-button:hover{background-color:rgba(255, 255, 255, 0.1)}#verdocs-sign-header .icon-button.disabled{opacity:0.35;pointer-events:none}#verdocs-sign-header .icon-button+.icon-button{margin-left:-6px}@media (max-width: 670px){#verdocs-sign-header .icon-button.magnify{display:none}}.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}.controls-toolbar{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;height:54px;padding:0 12px 0 24px;background-color:#ffffff;border-bottom:1px solid #e0e0e0;-webkit-box-shadow:none;box-shadow:none;font-family:"Inter", sans-serif;color:#424242;z-index:1000}.controls-toolbar .left-controls{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.controls-toolbar .left-controls .title{font-weight:500;font-size:16px;color:#242424;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.controls-toolbar .center-controls{-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;gap:10px;font-size:14px;display:none}.controls-toolbar .center-controls .label{color:#000000;font-weight:300}.controls-toolbar .center-controls .select-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.controls-toolbar .center-controls .select-wrapper verdocs-select-input{margin:0}.controls-toolbar .center-controls .select-wrapper verdocs-select-input .input-label{display:none}.controls-toolbar .center-controls .select-wrapper verdocs-select-input .input-element{background:transparent;border:1px solid #e0e0e0;height:32px;padding:2px 8px;min-width:60px;text-align:center;font-family:inherit;color:#424242}.controls-toolbar .center-controls .select-wrapper verdocs-select-input .input-element:focus{border-color:var(--verdocs-primary-color, #55bc81)}.controls-toolbar .center-controls .count{color:#000000;font-weight:300}.controls-toolbar .right-controls{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}.controls-toolbar .right-controls .mobile-next-button{display:none}.controls-toolbar .right-controls .icon-button{width:32px;height:32px;display:-ms-flexbox;display:flex;color:#424242;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-transition:background-color 0.2s;transition:background-color 0.2s}.controls-toolbar .right-controls .icon-button:hover{background-color:#f5f5f5}.controls-toolbar .right-controls .icon-button.disabled{opacity:0.3;pointer-events:none}.controls-toolbar .right-controls .icon-button svg{display:block;width:20px;height:20px}'};var O='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11ZM14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z" fill="#424242" /></svg>';var Y='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5ZM8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z" fill="#424242" /></svg>';var Z='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.5 16.9988C15.7761 16.9988 16 17.2226 16 17.4988C16 17.7442 15.8231 17.9484 15.5899 17.9907L15.5 17.9988H4.5C4.22386 17.9988 4 17.7749 4 17.4988C4 17.2533 4.17688 17.0492 4.41012 17.0068L4.5 16.9988H15.5ZM10.0001 2.00098C10.2456 2.00098 10.4497 2.17798 10.492 2.41124L10.5 2.50112L10.496 14.295L14.1414 10.6466C14.3148 10.4729 14.5842 10.4534 14.7792 10.5882L14.8485 10.646C15.0222 10.8194 15.0418 11.0888 14.907 11.2838L14.8492 11.3531L10.3574 15.8531C10.285 15.9257 10.1957 15.9714 10.1021 15.9901L9.99608 15.9999C9.83511 15.9999 9.69192 15.9237 9.60051 15.8056L5.14386 11.3537C4.94846 11.1586 4.94823 10.842 5.14336 10.6466C5.3168 10.4729 5.58621 10.4534 5.78117 10.5883L5.85046 10.6461L9.496 14.287L9.5 2.50083C9.50008 2.22469 9.724 2.00098 10.0001 2.00098Z" fill="#424242"/></svg>';var F='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5 4.5C5 3.67157 5.67157 3 6.5 3H13.5C14.3284 3 15 3.67157 15 4.5V5H15.5C16.8807 5 18 6.11929 18 7.5V12.5C18 13.3284 17.3284 14 16.5 14H15V15.5C15 16.3284 14.3284 17 13.5 17H6.5C5.67157 17 5 16.3284 5 15.5V14H3.5C2.67157 14 2 13.3284 2 12.5V7.5C2 6.11929 3.11929 5 4.5 5H5V4.5ZM6 5H14V4.5C14 4.22386 13.7761 4 13.5 4H6.5C6.22386 4 6 4.22386 6 4.5V5ZM5 13V11.5C5 10.6716 5.67157 10 6.5 10H13.5C14.3284 10 15 10.6716 15 11.5V13H16.5C16.7761 13 17 12.7761 17 12.5V7.5C17 6.67157 16.3284 6 15.5 6H4.5C3.67157 6 3 6.67157 3 7.5V12.5C3 12.7761 3.22386 13 3.5 13H5ZM6.5 11C6.22386 11 6 11.2239 6 11.5V15.5C6 15.7761 6.22386 16 6.5 16H13.5C13.7761 16 14 15.7761 14 15.5V11.5C14 11.2239 13.7761 11 13.5 11H6.5Z" fill="#424242"/></svg>';var B=e("verdocs_sign",function(){function e(e){var n=this;t(this,e);this.sdkError=i(this,"sdkError");this.envelopeLoaded=i(this,"envelopeLoaded");this.envelopeUpdated=i(this,"envelopeUpdated");this.endpoint=new a({sessionType:"signing"});this.envelopeId=null;this.roleId=null;this.inviteCode=null;this.headerTargetId=null;this.toolbarStyle="menu";this.recipient=null;this.hasSignature=false;this.nextButtonLabel="Start";this.nextSubmits=false;this.fatalErrorHeader="";this.fatalErrorMessage="";this.focusedField="";this.disclosures=l;this.fieldUpdateCounter=0;this.submitting=false;this.submitted=false;this.isDone=false;this.showDone=false;this.adoptingSignature=false;this.showLoadError=false;this.finishLater=false;this.showFinishLater=false;this.agreed=false;this.signatureId=null;this.initialId=null;this.documentsSingularPlural="document";this.authStep=null;this.authMethodStates={};this.pageNumber=1;this.kbaQuestions=null;this.showSpinner=false;this.declining=false;this.delegating=false;this.delegated=false;this.kbaChoices=[];this.showDownloadDialog=false;this.loading=true;this.envelope=null;this.zoomLevel="normal";this.signingProgressMode="start";this.polling=true;this.renderedPages={};this.pollingInterval=null;this.handleDoneDialogDismiss=function(){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.showDone=false;if(!!this.isDone)return[3,2];this.prepareForViewTransition();return[4,new Promise((function(e){return requestAnimationFrame((function(){return e()}))}))];case 1:e.sent();this.isDone=true;e.label=2;case 2:return[2]}}))}))}}e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n,r,s,o;var a=this;return __generator(this,(function(l){switch(l.label){case 0:this.updateZoomFromWindow();window.addEventListener("resize",(function(){return a.updateZoomFromWindow()}));if(!this.envelopeId){(e=this.sdkError)===null||e===void 0?void 0:e.emit(new P("[SIGN] Missing required envelopId",500,""));return[2]}if(!this.roleId){(t=this.sdkError)===null||t===void 0?void 0:t.emit(new P("[SIGN] Missing required roleId",500,""));return[2]}if(!this.inviteCode){(i=this.sdkError)===null||i===void 0?void 0:i.emit(new P("[SIGN] Missing required inviteCode",500,""));return[2]}l.label=1;case 1:l.trys.push([1,3,,4]);return[4,this.initSigningSession()];case 2:l.sent();return[3,4];case 3:o=l.sent();console.log("[SIGN] Error with signing session",o);(n=this.sdkError)===null||n===void 0?void 0:n.emit(new P(o.message,(r=o.response)===null||r===void 0?void 0:r.status,(s=o.response)===null||s===void 0?void 0:s.data));this.showLoadError=true;return[3,4];case 4:return[2]}}))}))};e.prototype.initSigningSession=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:console.log("[SIGN] Processing invite code for ".concat(this.envelopeId," / ").concat(this.roleId));return[4,c(this.endpoint,this.envelopeId,this.roleId,this.inviteCode)];case 1:e=t.sent();this.processAuthResponse(e);return[2]}}))}))};e.prototype.retrySigningSession=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n;return __generator(this,(function(r){switch(r.label){case 0:this.showLoadError=false;this.loading=true;r.label=1;case 1:r.trys.push([1,3,,4]);return[4,this.initSigningSession()];case 2:r.sent();return[3,4];case 3:n=r.sent();console.log("[SIGN] Error with signing session",n);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new P(n.message,(t=n.response)===null||t===void 0?void 0:t.status,(i=n.response)===null||i===void 0?void 0:i.data));this.showLoadError=true;this.loading=false;return[3,4];case 4:return[2]}}))}))};e.prototype.prepareForViewTransition=function(){var e,t,i;this.stopPolling();(e=this.observer)===null||e===void 0?void 0:e.disconnect();this.observer=null;(t=document.getElementById("air-datepicker-global-container"))===null||t===void 0?void 0:t.remove();(i=document.getElementById("verdocs-sign-header"))===null||i===void 0?void 0:i.remove()};e.prototype.handleSubmitSuccess=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n,r;var s=this;return __generator(this,(function(o){switch(o.label){case 0:this.submitting=false;this.submitted=true;this.nextSubmits=false;this.signingProgressMode="completed";o.label=1;case 1:o.trys.push([1,3,,4]);return[4,d(this.endpoint,this.envelopeId)];case 2:i=o.sent();this.envelope=i;U.updateEnvelope(this.envelopeId,i);n=(e=i.recipients)===null||e===void 0?void 0:e.find((function(e){var t;return e.role_name===((t=s.recipient)===null||t===void 0?void 0:t.role_name)}));if(n){this.recipient=n}(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:i,event:"submitted"});return[3,4];case 3:r=o.sent();console.warn("[SIGN] Error refreshing envelope after submit",r);return[3,4];case 4:this.showDone=true;return[2]}}))}))};e.prototype.componentDidRender=function(){var e=this.headerTargetId?document.getElementById(this.headerTargetId):null;var t=document.getElementById("verdocs-sign-header");if(e&&t){console.log("[SIGN] Moving header");t.remove();e.append(t)}this.setupIntersectionObserver()};e.prototype.disconnectedCallback=function(){var e=this;var t,i,n;this.stopPolling();(t=this.observer)===null||t===void 0?void 0:t.disconnect();window.removeEventListener("resize",(function(){return e.updateZoomFromWindow()}));(i=document.getElementById(this.getOrgStyleOverridesId()))===null||i===void 0?void 0:i.remove();(n=document.getElementById(this.getBrandStyleOverridesId()))===null||n===void 0?void 0:n.remove()};e.prototype.updateZoomFromWindow=function(){var e=window.innerWidth;if(e<768){if(this.zoomLevel!=="zoom2")this.zoomLevel="zoom2"}else if(e<1024){if(this.zoomLevel!=="zoom1")this.zoomLevel="zoom1"}else{if(this.zoomLevel!=="normal")this.zoomLevel="normal"}};e.prototype.setupIntersectionObserver=function(){var e=this;var t=this.el.querySelectorAll("verdocs-envelope-document-page");if(t.length===0)return;if(this.observer){this.observer.disconnect()}var i=this.el.querySelector(".signed-document-container");var n={root:i,rootMargin:"-40% 0px -40% 0px",threshold:0};this.observer=new IntersectionObserver((function(t){t.forEach((function(t){if(t.isIntersecting){var i=t.target.id;var n=parseInt(i.replace("page-",""),10);if(!isNaN(n)&&e.pageNumber!==n){e.pageNumber=n}}}))}),n);t.forEach((function(t){return e.observer.observe(t)}))};e.prototype.getOrgStyleOverridesId=function(){return"verdocs-org-style-overrides-".concat(this.envelopeId)};e.prototype.getBrandStyleOverridesId=function(){return"verdocs-brand-style-overrides-".concat(this.envelopeId)};e.prototype.applyOrgStyleOverrides=function(){var e,t;var i=this.getOrgStyleOverridesId();var n=document.getElementById(i);var r=(t=(e=this.envelope)===null||e===void 0?void 0:e.organization)===null||t===void 0?void 0:t.style_overrides;if(typeof r==="string"){var s=n||document.createElement("style");s.id=i;s.textContent=r;if(!n){document.head.appendChild(s)}}else if(n){n.remove()}};e.prototype.applyBrandStyleOverrides=function(e){var t=this.getBrandStyleOverridesId();var i=document.getElementById(t);var n=e===null||e===void 0?void 0:e.style_overrides;if(typeof n==="string"&&n.length>0){var r=i||document.createElement("style");r.id=t;r.textContent=n;if(!i){document.head.appendChild(r)}}else if(i){i.remove()}};e.prototype.processAuthResponse=function(e){var t,i,n,r;var s=e.envelope,o=e.recipient,a=e.brand;(t=s.documents)===null||t===void 0?void 0:t.sort((function(e,t){return e.order!==t.order?e.order-t.order:e.created_at.localeCompare(t.created_at)}));var c=o.auth_step;this.recipient=o;this.envelope=s;this.disclosures=((n=(i=this.envelope)===null||i===void 0?void 0:i.organization)===null||n===void 0?void 0:n.disclaimer)||l;this.applyOrgStyleOverrides();this.applyBrandStyleOverrides(a);this.authStep=c;this.delegated=!!o.delegated_to;this.agreed=o.agreed;this.signatureId=null;this.initialId=null;this.submitted=o.status==="submitted";this.loading=false;this.isDone=this.submitted;this.showDone=this.submitted;U.updateEnvelope(this.envelopeId,s);if(this.envelope.documents.length>0){this.documentsSingularPlural="document(s)"}this.authMethodStates=o.auth_method_states||{};this.kbaQuestions=o.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(o.status==="declined"){this.fatalErrorHeader="Declined";this.fatalErrorMessage="You have declined to sign this request. The sender has been notified."}else if(this.agreed){this.nextButtonLabel="Next"}this.checkRecipientFields();(r=this.envelopeLoaded)===null||r===void 0?void 0:r.emit({endpoint:this.endpoint,envelope:this.envelope})};e.prototype.handleClickAgree=function(){var e=this;this.submitting=true;console.log("[SIGN] Accepting disclosures",this.disclosures);var t=Intl.DateTimeFormat().resolvedOptions();u(this.endpoint,this.envelopeId,this.roleId,this.disclosures,{locale:t.locale,timezone:t.timeZone}).then((function(){var t;e.nextButtonLabel="Next";e.recipient.agreed=true;e.submitting=false;e.agreed=true;(t=e.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:e.endpoint,envelope:e.envelope,event:"agreed"})})).catch((function(t){var i,n,r;console.log("[SIGN] Unable to accept disclosures",t);A("Unable to accept disclosures, please try again later",{style:"error"});(i=e.sdkError)===null||i===void 0?void 0:i.emit(new P(t.message,(n=t.response)===null||n===void 0?void 0:n.status,(r=t.response)===null||r===void 0?void 0:r.data));e.submitting=false}))};e.prototype.handlePageSelect=function(e){var t=parseInt(e.target.value);if(!isNaN(t)){this.pageNumber=t;var i=this.el.querySelector(".signed-document-container");var n=this.el.querySelector("#page-".concat(t));if(i&&n){var r=n.offsetTop-20;i.scrollTo({top:r,behavior:"smooth"})}}};e.prototype.handleOptionSelected=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(n){switch(e.detail.id){case"later":this.finishLater=true;this.showFinishLater=true;(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:this.envelope,event:"later"});break;case"delegate":this.delegating=true;break;case"decline":this.declining=true;break;case"print":window.print();(i=this.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:this.envelope,event:"printed"});break;case"download":this.showDownloadDialog=true;this.startPolling();break}return[2]}))}))};e.prototype.startPolling=function(){var e=this;this.stopPolling();var t=function(){var t,i,n,r,s,o;var a=((t=e.envelope)===null||t===void 0?void 0:t.status)==="complete"||!!((i=e.envelope)===null||i===void 0?void 0:i.signed);var l=(r=(n=e.envelope)===null||n===void 0?void 0:n.documents)===null||r===void 0?void 0:r.some((function(e){return e.type==="certificate"}));var c=(o=(s=e.envelope)===null||s===void 0?void 0:s.recipients)===null||o===void 0?void 0:o.every((function(e){return e.status==="submitted"}));if(a&&l)return false;if(!c)return false;return true};if(!t()){return}this.polling=true;this.pollingInterval=setInterval((function(){return __awaiter(e,void 0,void 0,(function(){var e,i;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,d(this.endpoint,this.envelopeId)];case 1:e=n.sent();this.envelope=e;U.updateEnvelope(this.envelopeId,e);this.checkRecipientFields();if(!t()){this.stopPolling()}return[3,3];case 2:i=n.sent();console.error("[SIGN] Polling error",i);this.stopPolling();return[3,3];case 3:return[2]}}))}))}),5e3)};e.prototype.stopPolling=function(){if(this.pollingInterval){clearInterval(this.pollingInterval);this.pollingInterval=null}this.polling=false};e.prototype.handleZoomIn=function(){if(this.zoomLevel==="normal"){this.zoomLevel="zoom1"}else if(this.zoomLevel==="zoom1"){this.zoomLevel="zoom2"}};e.prototype.handleZoomOut=function(){if(this.zoomLevel==="zoom1"){this.zoomLevel="normal"}else if(this.zoomLevel==="zoom2"){this.zoomLevel="zoom1"}};e.prototype.updateRecipientFieldValue=function(e,t){var i=this;console.log("[SIGN] updateRecipientFieldValue",e,t);this.getRecipientFields().forEach((function(n){if(n.name===e){n.value=t.value;n.settings=t.settings;H(n);i.fieldUpdateCounter++;i.markEnvelopeStarted();i.checkRecipientFields()}}))};e.prototype.getStartedKey=function(){var e;return"".concat(this.envelopeId,":").concat(((e=this.recipient)===null||e===void 0?void 0:e.role_name)||"")};e.prototype.markEnvelopeStarted=function(){var e=JSON.parse(localStorage.getItem("startedEnvelopes")||"[]");var t=this.getStartedKey();if(!e.includes(t)){e.push(t);while(e.length>10){e.shift()}localStorage.setItem("startedEnvelopes",JSON.stringify(e))}};e.prototype.saveFieldChange=function(e,t,i){var n=this;var r=this.getRecipientFields().find((function(t){return t.name===e}));if(r===null||r===void 0?void 0:r.readonly){return}console.log("[SIGN] saveFieldChange",e,{value:t,prepared:i});h(this.endpoint,this.envelopeId,this.roleId,e,t,i).then((function(t){return n.updateRecipientFieldValue(e,t)})).catch((function(e){var t,i,r,s,o,a;if(((t=e.response)===null||t===void 0?void 0:t.status)===401&&((r=(i=e.response)===null||i===void 0?void 0:i.data)===null||r===void 0?void 0:r.error)==="jwt expired"){console.log("[SIGN] Signing session expired");n.fatalErrorHeader="Signing Session Expired";n.fatalErrorMessage="Please reload your browser to continue."}else{console.log("[SIGN] Server error",e);A("Unable to save change, please try again later",{style:"error"})}(s=n.sdkError)===null||s===void 0?void 0:s.emit(new P(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,t){return __awaiter(this,void 0,void 0,(function(){var i,n,r,s,o,o,o,a,o,o,o,l,c;var d=this;return __generator(this,(function(u){switch(u.label){case 0:if(!t.target){return[2]}i=t.target,n=i.value,r=i.checked;s=e.type;switch(s){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,14];case"date":return[3,23];case"timestamp":return[3,24]}return[3,25];case 1:return[2,this.saveFieldChange(e.name,n,false)];case 2:{return[2,this.saveFieldChange(e.name,String(t.target.checked),false)]}u.label=3;case 3:{return[2,this.saveFieldChange(e.name,String(t.target.checked),false)]}u.label=4;case 4:console.log("Saving dropdown",e.name,t.detail);return[2,this.saveFieldChange(e.name,t.detail,false)];case 5:if(t.detail===undefined){return[2]}if(!(t.detail===null))return[3,7];console.log("[SIGN] Clearing initial");return[4,h(this.endpoint,this.envelopeId,this.roleId,e.name,null,false)];case 6:o=u.sent();return[2,this.updateRecipientFieldValue(e.name,o)];case 7:if(!this.initialId)return[3,9];console.log("[SIGN] Reusing initial",this.initialId);return[4,h(this.endpoint,this.envelopeId,this.roleId,e.name,this.initialId,false)];case 8:o=u.sent();return[2,this.updateRecipientFieldValue(e.name,o)];case 9:if(!(typeof t.detail==="string"&&/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t.detail)))return[3,11];console.log("[SIGN] Reusing initial",t.detail);return[4,h(this.endpoint,this.envelopeId,this.roleId,e.name,t.detail,false)];case 10:o=u.sent();this.initialId=t.detail;return[2,this.updateRecipientFieldValue(e.name,o)];case 11:this.showSpinner=true;return[4,fetch(t.detail)];case 12:return[4,u.sent().blob()];case 13:a=u.sent();return[2,v(this.endpoint,"initial",a).then((function(t){return __awaiter(d,void 0,void 0,(function(){var i;return __generator(this,(function(n){switch(n.label){case 0:return[4,h(this.endpoint,this.envelopeId,this.roleId,e.name,t.id,false)];case 1:i=n.sent();this.updateRecipientFieldValue(e.name,i);this.initialId=t.id;this.showSpinner=false;return[2]}}))}))})).catch((function(e){console.log("Error updating initials",e);A("Unable to save initials, please try again later",{style:"error"});d.showSpinner=false}))];case 14:if(t.detail===undefined){return[2]}if(!(t.detail===null))return[3,16];console.log("[SIGN] Clearing signature");return[4,h(this.endpoint,this.envelopeId,this.roleId,e.name,null,false)];case 15:o=u.sent();return[2,this.updateRecipientFieldValue(e.name,o)];case 16:if(!this.signatureId)return[3,18];console.log("[SIGN] Reusing signature",this.signatureId);return[4,h(this.endpoint,this.envelopeId,this.roleId,e.name,this.signatureId,false)];case 17:o=u.sent();return[2,this.updateRecipientFieldValue(e.name,o)];case 18:if(!(typeof t.detail==="string"&&/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t.detail)))return[3,20];console.log("[SIGN] Reusing signature",t.detail);return[4,h(this.endpoint,this.envelopeId,this.roleId,e.name,t.detail,false)];case 19:o=u.sent();this.signatureId=t.detail;return[2,this.updateRecipientFieldValue(e.name,o)];case 20:this.showSpinner=true;return[4,fetch(t.detail)];case 21:return[4,u.sent().blob()];case 22:l=u.sent();console.log("[SIGN] Creating new signature");return[2,f(this.endpoint,"signature",l).then((function(t){return __awaiter(d,void 0,void 0,(function(){var i;return __generator(this,(function(n){switch(n.label){case 0:console.log("Signature update result",t);return[4,h(this.endpoint,this.envelopeId,this.roleId,e.name,t.id,false)];case 1:i=n.sent();this.updateRecipientFieldValue(e.name,i);this.signatureId=t.id;this.showSpinner=false;return[2]}}))}))})).catch((function(e){console.warn("[SIGN] Error updating signature",e);A("Unable to save signature, please try again later",{style:"error"});d.showSpinner=false}))];case 23:c=t.detail.formattedDate;if(c){return[2,this.saveFieldChange(e.name,c,false)]}return[3,26];case 24:console.log("[SIGN] Updating timestamp",{value:n,ts:t.target.getAttribute("timestamp")});return[3,26];case 25:console.log("[SIGN] Unhandled field update",{value:n,checked:r},e);return[3,26];case 26:return[2]}}))}))};e.prototype.getSortedFillableFields=function(){var e=this.getRecipientFields().filter((function(e){return e.type!=="timestamp"&&!e.readonly}));g(e);return e};e.prototype.getSortedDisplayableFields=function(){var e=this.getRecipientFields().filter((function(e){return e.type!=="timestamp"}));g(e);return e};e.prototype.handleNext=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n,r,s,o,a;var l=this;return __generator(this,(function(c){switch(c.label){case 0:if(!this.nextSubmits)return[3,6];if(this.submitted){return[2]}c.label=1;case 1:c.trys.push([1,4,,5]);(e=document.getElementById("air-datepicker-global-container"))===null||e===void 0?void 0:e.remove();this.submitting=true;t=Intl.DateTimeFormat().resolvedOptions();return[4,p(this.endpoint,this.envelopeId,this.roleId,{locale:t.locale,timezone:t.timeZone})];case 2:i=c.sent();console.log("[SIGN] Submitted successfully",i);return[4,this.handleSubmitSuccess()];case 3:c.sent();return[3,5];case 4:n=c.sent();console.log("[SIGN] Error submitting",n);this.submitting=false;A("Unable to submit document, please try again.",{style:"error"});return[3,5];case 5:return[2];case 6:r=this.getSortedFillableFields().filter((function(e){return!l.isFieldActuallyFilled(e)}));s=this.getNextFieldFromList(r);if(s){o=T(s);a=document.getElementById(o);a===null||a===void 0?void 0:a.scrollIntoView({behavior:"smooth",block:"center",inline:"center"});a===null||a===void 0?void 0:a.focusField();this.focusedField=s.name}return[2]}}))}))};e.prototype.handleNextOptional=function(){var e=this;var t=this.getSortedFillableFields().filter((function(t){return!t.required&&!e.isFieldActuallyFilled(t)}));var i=this.getNextFieldFromList(t);if(i){var n=T(i);var r=document.getElementById(n);r===null||r===void 0?void 0:r.scrollIntoView({behavior:"smooth",block:"center",inline:"center"});r===null||r===void 0?void 0:r.focusField();this.focusedField=i.name}};e.prototype.getRecipientFields=function(){var e=this;var t;return((t=this.envelope)===null||t===void 0?void 0:t.fields.filter((function(t){return t.role_name===e.recipient.role_name})))||[]};e.prototype.getRequiredTotalCount=function(){return this.getSortedFillableFields().filter((function(e){return e.required})).length};e.prototype.getRequiredFilledCount=function(){var e=this;return this.getSortedFillableFields().filter((function(t){return t.required&&e.isFieldActuallyFilled(t)})).length};e.prototype.getOptionalUnfilledCount=function(){var e=this;return this.getSortedFillableFields().filter((function(t){return!t.required&&!e.isFieldActuallyFilled(t)})).length};e.prototype.checkRecipientFields=function(){var e=this;if(this.submitted||this.isDone){return}var t=this.getRecipientFields().filter((function(t){return!m(t,e.getRecipientFields())}));if(t.length<1){this.nextButtonLabel="Finish";if(!this.nextSubmits){this.nextSubmits=true}}else{this.nextButtonLabel="Next";this.nextSubmits=false}this.updateAllFlags();var i=JSON.parse(localStorage.getItem("startedEnvelopes")||"[]");var n=i.includes(this.getStartedKey());if(this.nextSubmits){this.signingProgressMode="completed"}else if(n){this.signingProgressMode="signing"}else{this.signingProgressMode="start"}};e.prototype.isFieldActuallyFilled=function(e){if(e.type==="radio"&&e.group){var t=this.getRecipientFields().some((function(t){return t.group===e.group&&t.value==="true"}));if(t){return true}}return x(e,this.getRecipientFields())&&(e.type!=="dropdown"||!!e.value)&&(e.type!=="radio"||e.value==="true")&&(e.type!=="checkbox"||e.value==="true")};e.prototype.getNextRequiredField=function(){var e=this;var t=this.getSortedFillableFields().filter((function(t){return t.required&&!e.isFieldActuallyFilled(t)}));g(t);if(t.length===0){var i=this.getSortedFillableFields().filter((function(t){return!e.isFieldActuallyFilled(t)}));g(i);if(i.length>0){return this.getNextFieldFromList(i)}return null}return this.getNextFieldFromList(t)};e.prototype.getNextFieldFromList=function(e){var t=this;var i=e.findIndex((function(e){return e.name===t.focusedField}));var n=i+1;if(n>=e.length){n=0}return e[n]};e.prototype.handlePrev=function(){var e=this;var t;var i=this.getSortedFillableFields();var n=i.findIndex((function(t){return t.name===e.focusedField}));if(n>0){var r=i[n-1];var s=T(r);var o=document.getElementById(s);o===null||o===void 0?void 0:o.scrollIntoView({behavior:"smooth",block:"center"});(t=o===null||o===void 0?void 0:o.focusField)===null||t===void 0?void 0:t.call(o);this.focusedField=r.name}};e.prototype.updateAllFlags=function(){var e=this;Object.values(this.renderedPages).forEach((function(t){e.updateFlagsForPage(t)}))};e.prototype.updateFlagsForPage=function(e){var t=this;if(!e)return;var i=document.getElementById(e.containerId+"-controls");if(!i)return;var n=i.querySelectorAll(".verdocs-flag-instance");n.forEach((function(e){return e.remove()}));var r=this.getNextRequiredField();var s=this.getRecipientFields().find((function(e){return e.name===t.focusedField}));if(s&&!x(s,this.getRecipientFields())){r=s}if(r&&r.page===e.pageNumber&&r.document_id===e.documentId){var o="fill";var a="FILL";var l=false;switch(r.type){case"signature":a="SIGN";break;case"initial":a="INITIAL";break;case"checkbox":a="CHECK";break;case"radio":a="SELECT";break;case"date":case"dropdown":a="SELECT";break;case"attachment":a="ATTACH";break;case"payment":a="PAY";break}if(!r.required){l=true}E(e,r.y,r.height||D(r.type),{variant:o,label:a,showSkip:l,onSkip:function(){t.handleNext()},onClick:function(){var e;var t=T(r);var i=document.getElementById(t);i===null||i===void 0?void 0:i.scrollIntoView({behavior:"smooth",block:"center"});(e=i===null||i===void 0?void 0:i.focusField)===null||e===void 0?void 0:e.call(i)}})}};e.prototype.attachFieldAttributes=function(e,t,i){var n=this;if(i.getAttribute("attached")==="1"){return}i.setAttribute("attached","1");i.addEventListener("input",(function(e){if(e.target.type==="radio"||e.target.type==="checkbox"){n.handleFieldChange(t,e).finally((function(){return n.checkRecipientFields()}))}else{n.checkRecipientFields()}}));i.addEventListener("attached",(function(i){return __awaiter(n,void 0,void 0,(function(){var n,r,s;return __generator(this,(function(o){switch(o.label){case 0:console.log("[SIGN] onAttached",i.detail,i.target.value);this.showSpinner=true;o.label=1;case 1:o.trys.push([1,3,,4]);return[4,b(this.endpoint,this.envelopeId,this.roleId,t.name,i.detail)];case 2:n=o.sent();this.updateRecipientFieldValue(t.name,n);this.checkRecipientFields();r=q("envelope",t,e,{disabled:false,editable:false,draggable:false,done:this.isDone});this.attachFieldAttributes(e,t,r);this.showSpinner=false;return[3,4];case 3:s=o.sent();console.log("Error uploading attachment",s);A("Unable to upload attachment, please try again later",{style:"error"});this.showSpinner=false;return[3,4];case 4:return[2]}}))}))}));i.addEventListener("deleted",(function(i){return __awaiter(n,void 0,void 0,(function(){var n,r,s;return __generator(this,(function(o){switch(o.label){case 0:console.log("[SIGN] onDeleted",i.detail,i.target.value);this.showSpinner=true;o.label=1;case 1:o.trys.push([1,3,,4]);return[4,w(this.endpoint,this.envelopeId,this.roleId,t.name)];case 2:n=o.sent();console.log("[SIGN] Deleted attachment",n);this.updateRecipientFieldValue(t.name,n);this.checkRecipientFields();r=q("envelope",t,e,{disabled:false,editable:false,draggable:false,done:this.isDone});this.attachFieldAttributes(e,t,r);this.showSpinner=false;return[3,4];case 3:s=o.sent();console.log("Error uploading attachment",s);A("Unable to upload attachment, please try again later",{style:"error"});this.showSpinner=false;return[3,4];case 4:return[2]}}))}))}));i.addEventListener("focusout",(function(e){if(t.type!=="dropdown"&&t.type!=="attachment"&&t.type!=="signature"&&t.type!=="initial"&&t.type!=="checkbox"&&t.type!=="radio"){n.handleFieldChange(t,e).finally((function(){return n.checkRecipientFields()}))}}));i.addEventListener("fieldChange",(function(e){n.handleFieldChange(t,e).finally((function(){return n.checkRecipientFields()}))}));i.addEventListener("adopt",(function(){n.focusedField=t.name;n.adoptingSignature=true}));i.setAttribute("templateid",this.envelope.template_id);i.setAttribute("fieldname",t.name);i.setAttribute("page",e.pageNumber);i.setAttribute("xScale",e.xScale);i.setAttribute("yScale",e.yScale);var r=y(this.recipient);i.setAttribute("initials",k(r));i.setAttribute("name",r);if(this.signatureId){i.setAttribute("signatureid",this.signatureId)}if(this.initialId){i.setAttribute("initialid",this.initialId)}};e.prototype.handlePageRendered=function(e){var t=this;var i=e.detail;this.renderedPages["".concat(i.documentId,":").concat(i.pageNumber)]=i;var n=this.getSortedDisplayableFields();n.filter((function(e){return e&&e.document_id===i.documentId&&e.page===i.pageNumber})).forEach((function(e,n){var r=q("envelope",e,i,{disabled:false,editable:false,draggable:false,done:t.isDone},n);if(!r){return}if(Array.isArray(r)){r.map((function(n){return t.attachFieldAttributes(i,e,n)}))}else{t.attachFieldAttributes(i,e,r)}}));this.envelope.recipients.filter((function(e){return e.role_name!==t.recipient.role_name&&(e.status==="invited"||e.status==="opened"||e.status==="pending")})).forEach((function(){t.getRecipientFields().filter((function(e){return e.document_id===i.documentId&&e.page===i.pageNumber})).forEach((function(e){var n=q("envelope",e,i,{disabled:true,editable:false,draggable:false,done:t.isDone});if(!n){return}if(Array.isArray(n)){n.map((function(n){return t.attachFieldAttributes(i,e,n)}))}else{t.attachFieldAttributes(i,e,n)}}))}));this.checkRecipientFields();this.updateFlagsForPage(i)};e.prototype.handleAuthenticateSigner=function(e){var t=this;console.log("[SIGN] Submitting authentication step",e);C(this.endpoint,e).then((function(e){console.log("[SIGN] Verification successful",e);t.processAuthResponse(e)})).catch((function(e){var i,n,r,s,o,a;console.log("[SIGN] Error submitting authentication step",e);console.log((i=e.response)===null||i===void 0?void 0:i.data);if((s=(r=(n=e.response)===null||n===void 0?void 0:n.data)===null||r===void 0?void 0:r.error)===null||s===void 0?void 0:s.includes("failed")){t.fatalErrorHeader="Recipient Verification Failed";t.fatalErrorMessage="We were unable to verify your identity. The sender has been notified.";t.isDone=true}else{A(((a=(o=e.response)===null||o===void 0?void 0:o.data)===null||a===void 0?void 0:a.error)||"Unable to verify your identity. Please try again.",{style:"error"})}}))};e.prototype.handleOnDownload=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,n,r,s,o,a,l,c,d,u,h,f,v,g,p;return __generator(this,(function(m){switch(m.label){case 0:n=e.detail,r=n.action,s=n.documentId;console.log("[SIGN] Download action selected:",r,s);m.label=1;case 1:m.trys.push([1,14,,15]);o=r;switch(o){case M.certificate:return[3,2];case M.combined:return[3,6];case M.document:return[3,8];case M.zip:return[3,11]}return[3,13];case 2:a=this.envelope.documents.find((function(e){return e.type==="certificate"}));if(!a)return[3,4];return[4,S(this.endpoint,a.id)];case 3:l=m.sent();window.open(l,"_blank");return[3,5];case 4:A("Certificate not yet available.",{style:"info"});m.label=5;case 5:return[3,13];case 6:c=s||((t=this.envelope.documents.find((function(e){return e.type==="certificate"})))===null||t===void 0?void 0:t.id);return[4,I(this.endpoint,c)];case 7:d=m.sent();window.open(d,"_blank");return[3,13];case 8:u=s||((i=this.envelope.documents.find((function(e){return e.type==="attachment"})))===null||i===void 0?void 0:i.id);if(!u)return[3,10];return[4,S(this.endpoint,u)];case 9:h=m.sent();window.open(h,"_blank");m.label=10;case 10:return[3,13];case 11:return[4,_(this.endpoint,[this.envelopeId])];case 12:f=m.sent();v=window.URL.createObjectURL(f.data);g=document.createElement("a");g.href=v;g.download="".concat(this.envelope.name,".zip");document.body.appendChild(g);g.click();g.remove();window.URL.revokeObjectURL(v);return[3,13];case 13:return[3,15];case 14:p=m.sent();console.error("Download error",p);A("Unable to complete download request.",{style:"error"});return[3,15];case 15:return[2]}}))}))};e.prototype.render=function(){var e=this;var t;if(this.showLoadError){return n(r,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(){e.retrySigningSession()}}))}if(!this.envelope){return n(r,null,n("verdocs-loader",null))}if(this.fatalErrorMessage){return n(r,{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.delegated){return n(r,{class:{agreed:false}},n("div",{class:"fatal-error"},n("div",{class:"message"},n("div",{class:"header"},"Delegated Signing Request"),n("p",null,"You have delegated signing to another recipient. You will not be able to sign this request again."))))}if(this.isDone){return n(r,{class:{agreed:this.agreed}},n("verdocs-view",{endpoint:this.endpoint,envelopeId:this.envelopeId,onSdkError:function(t){var i;return(i=e.sdkError)===null||i===void 0?void 0:i.emit(t.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(t){t.preventDefault();t.stopPropagation();e.handleDoneDialogDismiss()}}),this.submitting&&n("div",{class:"loading-indicator"},n("verdocs-loader",null)))}if(this.delegating){return n(r,{class:"agreed"},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("verdocs-delegate-dialog",{endpoint:this.endpoint,envelope:this.envelope,onExit:function(){return e.delegating=false},onNext:function(t){N(e.endpoint,e.envelopeId,e.roleId,t.detail).then((function(t){A("Delegation request submitted.",{style:"success"});console.log("[SIGN] Delegated successfully",t);e.delegated=true;e.delegating=false})).catch((function(e){console.log("[SIGN] Error delegating request",e);A("Unable to process delegation request. Please try again later.",{style:"error"})}))}}))}if(this.declining){return n(r,{class:"agreed"},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("verdocs-ok-dialog",{heading:"Decline Signing Request",message:"If you decline to sign this request, you will not be able to sign again in the future. The envelope sender will be notified.",buttonLabel:"OK",showCancel:true,onExit:function(){return e.declining=false},onNext:function(){z(e.endpoint,e.envelopeId,e.roleId).then((function(t){console.log("[SIGN] Decline result",t);e.declining=false;e.fatalErrorHeader="Declined";e.fatalErrorMessage="You have declined to sign this request. The sender has been notified."})).catch((function(e){console.warn("[SIGN] Error declining signing session",e);A("Unable to decline, please try again later",{style:"error"})}))}}))}if(!this.agreed){return n(r,{class:"agreed"},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("verdocs-disclosure-dialog",{disclosures:this.disclosures,delegator:this.recipient.delegator,onDelegate:function(){return e.delegating=true},onDecline:function(){return e.declining=true},onAccept:function(){return e.handleClickAgree()}}))}if(this.authStep==="passcode"){return n("verdocs-passcode-dialog",{endpoint:this.endpoint,onNext:function(t){return e.processAuthResponse(t.detail.response)}})}if(this.authStep==="email"){return n("verdocs-otp-dialog",{endpoint:this.endpoint,method:"email",onNext:function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){this.processAuthResponse(t.detail.response);return[2]}))}))}})}if(this.authStep==="kba"&&!this.authMethodStates.kba){return n(r,{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(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(i){e=t.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 o=this.kbaQuestions[i];return n(r,{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:(o===null||o===void 0?void 0:o.prompt)||"Please select one of the options below.",choices:(o===null||o===void 0?void 0:o.answer)||["Skip Question"],step:i+1,steps:this.kbaQuestions.length,onNext:function(t){return __awaiter(e,void 0,void 0,(function(){var e,i;var n=this;return __generator(this,(function(r){e=t.detail;this.kbaChoices=__spreadArray(__spreadArray([],this.kbaChoices,true),[e],false);if(this.kbaChoices.length>=this.kbaQuestions.length){i=this.kbaQuestions.map((function(e,t){return{type:e.type,answer:n.kbaChoices[t]}}));console.log("Submitting KBA responses",this.kbaChoices,i);this.handleAuthenticateSigner({auth_method:"kba",responses:i})}return[2]}))}))}}))))}var a=[{id:"later",label:"Finish Later"},{id:"decline",label:"Decline to Sign"},{id:"print",label:"Print Without Signing"},{id:"download",label:"Download"}];var l=[{id:"print",label:"Print"},{id:"download",label:"Download"}];if(this.recipient.delegator){a.unshift({id:"delegate",label:"Delegate"})}var c=this.getRecipientFields().filter((function(t){return!m(t,e.getRecipientFields())}));c.length>0?console.log("[SIGN] Invalid fields remaining",c.map((function(e){return e.name}))):console.log("[SIGN] All field valid");var d=this.envelope.documents.reduce((function(e,t){return e+t.pages}),0);var u=G(1,d).map((function(e){return{label:e.toString(),value:e.toString()}}));var g=0;return n(r,null,this.toolbarStyle==="menu"&&n("div",{id:"verdocs-sign-header"},n("div",{class:"inner"},n("div",{class:"title"},this.envelope.name),n("div",{style:{flex:"1"}}),!this.finishLater&&!this.submitted&&function(){var t=e.getRequiredTotalCount()-e.getRequiredFilledCount();var i=e.getOptionalUnfilledCount();if(t>0){return n("span",{class:"remaining-count"},t," required field",t===1?"":"s"," left")}return n("span",{class:"remaining-count"},n("span",{class:"check-icon",innerHTML:j}),"All required fields complete",i>0&&n("div",{class:"review-optional"},n("span",{class:"separator"},"| "),n("span",{onClick:function(){return e.handleNextOptional()}},"Review ",i," optional")))}(),!this.finishLater&&!this.submitted&&n("verdocs-button",{size:"xsmall",label:this.nextButtonLabel==="Next"?"Next Required":this.nextButtonLabel,disabled:!this.agreed||this.submitting||this.submitted,onClick:function(){return e.handleNext()}}),n("div",{class:{"icon-button":true,minus:true,disabled:this.zoomLevel==="normal",magnify:true},innerHTML:O,onClick:function(){return e.handleZoomOut()}}),n("div",{class:{"icon-button":true,plus:true,disabled:this.zoomLevel==="zoom2",magnify:true},innerHTML:Y,onClick:function(){return e.handleZoomIn()}}),n("verdocs-dropdown",{options:!this.isDone&&!this.finishLater&&!this.submitted?a:l,onOptionSelected:function(t){return e.handleOptionSelected(t)}}))),this.toolbarStyle==="controls"&&n("div",{class:"controls-toolbar"},n("div",{class:"left-controls"},n("div",{class:"title"},this.envelope.name)),n("div",{class:"center-controls"},n("span",{class:"label"},"Page"),n("div",{class:"select-wrapper"},n("verdocs-select-input",{options:u,value:this.pageNumber.toString(),onInput:function(t){return e.handlePageSelect(t)}})),n("span",{class:"count"},"of ",d)),n("div",{class:"right-controls"},!this.submitted&&n("verdocs-button",{class:"mobile-next-button",label:this.nextButtonLabel,size:"xsmall",disabled:!this.agreed||this.submitting,onClick:function(){return e.handleNext()}}),n("div",{class:{"icon-button":true,minus:true,disabled:this.zoomLevel==="normal"},innerHTML:O,onClick:function(){return e.handleZoomOut()}}),n("div",{class:{"icon-button":true,plus:true,disabled:this.zoomLevel==="zoom2"},innerHTML:Y,onClick:function(){return e.handleZoomIn()}}),n("div",{class:"icon-button download",innerHTML:Z,onClick:function(){return e.handleOptionSelected({detail:{id:"download"}})}}),n("div",{class:"icon-button print",innerHTML:F,onClick:function(){return e.handleOptionSelected({detail:{id:"print"}})}}))),n("div",{class:"document signed-document-container zoom-".concat(this.zoomLevel)},(this.envelope.documents||[]).map((function(t){var i=G(1,t.pages);return n(s,null,e.envelope.documents.length>1&&n("div",{class:"document-separator"},n("div",{innerHTML:V}),n("span",null,t.name)),i.map((function(i){var r;var s=((r=t.page_sizes)===null||r===void 0?void 0:r[i])||{width:612,height:792};g++;return n("verdocs-envelope-document-page",{id:"page-".concat(g),envelopeId:e.envelopeId,documentId:t.id,endpoint:e.endpoint,virtualWidth:s.width,virtualHeight:s.height,pageNumber:i,onPageRendered:function(t){return e.handlePageRendered(t)},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(){e.isDone=true;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.handleDoneDialogDismiss()}}),this.adoptingSignature&&n("verdocs-adopt-signature-dialog",{name:y(this.recipient),nameLocked:!!((t=this.recipient)===null||t===void 0?void 0:t.name_locked),onNext:function(t){return __awaiter(e,void 0,void 0,(function(){var e,i,n,r,s,o,a,l,c;var d=this;return __generator(this,(function(u){switch(u.label){case 0:console.log("[SIGN] Adopting signature/initials block",t.detail);this.showSpinner=true;return[4,fetch(t.detail.signature)];case 1:return[4,u.sent().blob()];case 2:e=u.sent();return[4,fetch(t.detail.initials)];case 3:return[4,u.sent().blob()];case 4:i=u.sent();return[4,f(this.endpoint,"signature",e)];case 5:n=u.sent();console.log("[SIGN] Created signature",n);this.signatureId=n.id;return[4,v(this.endpoint,"initial",i)];case 6:r=u.sent();console.log("[SIGN] Created initials",r);this.initialId=r.id;this.showSpinner=false;this.adoptingSignature=false;this.markEnvelopeStarted();if(!this.focusedField)return[3,9];s=this.getRecipientFields().find((function(e){return e.name===d.focusedField}));if(!s)return[3,8];o=s.type==="signature"?this.signatureId:s.type==="initial"?this.initialId:null;if(!o)return[3,8];return[4,h(this.endpoint,this.envelopeId,this.roleId,s.name,o,false)];case 7:a=u.sent();this.updateRecipientFieldValue(s.name,a);u.label=8;case 8:this.focusedField="";u.label=9;case 9:l=this.el.querySelectorAll("verdocs-field-signature");l.forEach((function(e){return e.setAttribute("signatureid",d.signatureId)}));c=this.el.querySelectorAll("verdocs-field-initial");c.forEach((function(e){return e.setAttribute("initialid",d.initialId)}));this.checkRecipientFields();return[2]}}))}))},onExit:function(){return e.adoptingSignature=false}}),(this.submitting||this.showSpinner)&&n("verdocs-portal",null,n("div",{class:"spinner-overlay"},n("verdocs-spinner",null))),this.showDownloadDialog&&n("verdocs-download-dialog",{signed:this.envelope.signed,polling:this.polling,documents:this.envelope.documents,onExit:function(){e.showDownloadDialog=false;e.stopPolling()},onDownload:function(t){return e.handleOnDownload(t)}}),!this.loading&&!this.isDone&&!this.submitted&&n("verdocs-sign-footer",{endpoint:this.endpoint,envelopeId:this.envelopeId,isDone:this.isDone,onAskQuestion:function(t){L(e.endpoint,e.envelopeId,e.roleId,{question:t.detail.question}).then((function(){return A("Your question has been sent.",{style:"success"})})).catch((function(e){console.log("Error asking question",e);A("Unable to send question, please try again later.",{style:"error"})}))},onDecline:function(){return e.declining=true},onFinishLater:function(){return e.showFinishLater=true}}))};Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());B.style=R()}}}));
2
- //# sourceMappingURL=p-e608d2bc.system.entry.js.map
1
+ var __awaiter=this&&this.__awaiter||function(e,t,i,n){function r(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,s){function o(e){try{l(n.next(e))}catch(e){s(e)}}function a(e){try{l(n["throw"](e))}catch(e){s(e)}}function l(e){e.done?i(e.value):r(e.value).then(o,a)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,r,s,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=a(0),o["throw"]=a(1),o["return"]=a(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return l([e,t])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,a[0]&&(i=0)),i)try{if(n=1,r&&(s=a[0]&2?r["return"]:a[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,a[1])).done)return s;if(r=0,s)a=[a[0]&2,s.value];switch(a[0]){case 0:case 1:s=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;r=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){i.label=a[1];break}if(a[0]===6&&i.label<s[1]){i.label=s[1];s=a;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(a);break}if(s[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];r=0}finally{n=s=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,t,i){if(i||arguments.length===2)for(var n=0,r=t.length,s;n<r;n++){if(s||!(n in t)){if(!s)s=Array.prototype.slice.call(t,0,n);s[n]=t[n]}}return e.concat(s||Array.prototype.slice.call(t))};System.register(["./p-De3fNE_u.system.js","@verdocs/js-sdk","./p-nfw6V5pF.system.js","./p-CwIkMPyJ.system.js","./p-GqS1qR-V.system.js","./p-Dj475wLP.system.js","./p-7Iu0_GGa.system.js","./p-fEbwslLK.system.js","./p-C7pDryJb.system.js"],(function(e){"use strict";var t,i,n,r,s,o,a,l,c,d,u,h,f,v,p,g,m,x,b,w,y,k,C,_,S,I,N,z,G,L,H,T,E,q,D,M,V,j,A,P,U;return{setters:[function(e){t=e.r;i=e.c;n=e.h;r=e.H;s=e.F;o=e.g},function(e){a=e.VerdocsEndpoint;l=e.DEFAULT_DISCLOSURES;c=e.startSigningSession;d=e.getEnvelope;u=e.envelopeRecipientAgree;h=e.updateEnvelopeField;f=e.createSignature;v=e.createInitials;p=e.sortFields;g=e.envelopeRecipientSubmit;m=e.isFieldValid;x=e.isFieldFilled;b=e.uploadEnvelopeFieldAttachment;w=e.deleteEnvelopeFieldAttachment;y=e.formatFullName;k=e.fullNameToInitials;C=e.verifySigner;_=e.getEnvelopesZip;S=e.getEnvelopeDocumentDownloadLink;I=e.getCombinedEnvelopeDocumentDownloadLink;N=e.delegateRecipient;z=e.envelopeRecipientDecline;G=e.integerSequence;L=e.askQuestion},function(e){H=e.u;T=e.g;E=e.r;q=e.a;D=e.d},function(e){M=e.D},function(e){V=e.D;j=e.C},function(e){A=e.V},function(e){P=e.S},function(e){U=e.S},null],execute:function(){var R=function(){return'verdocs-sign{display:-ms-flexbox;display:flex;overflow:hidden;min-height:700px;position:relative;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#f5f5f5;font-family:var(--verdocs-primary-font, "Inter", "Barlow", 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;padding-right:140px;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>.document .document-separator{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:10px;padding:12px 20px;width:100%;max-width:1028px;-webkit-box-sizing:border-box;box-sizing:border-box;background-color:#33364b;color:white;border-radius:6px;font-size:16px;font-weight:500;margin-top:20px;-webkit-box-shadow:0 2px 4px rgba(0, 0, 0, 0.1);box-shadow:0 2px 4px rgba(0, 0, 0, 0.1)}verdocs-sign>.document .document-separator svg{-ms-flex-negative:0;flex-shrink:0}verdocs-sign>.document .document-separator:first-child{margin-top:0}verdocs-sign .signed-document-container{width:64%;margin-left:260px;-webkit-transition:all 0.3s ease;transition:all 0.3s ease}verdocs-sign .signed-document-container.zoom-normal{width:64%;margin-left:260px}verdocs-sign .signed-document-container.zoom-zoom1{width:80%;margin-left:200px}verdocs-sign .signed-document-container.zoom-zoom2{width:100%;margin-left:150px}verdocs-sign .signed-document-container.zoom-zoom2 .verdocs-flag-instance{opacity:0;pointer-events:none}@media (max-width: 768px){verdocs-sign verdocs-sign-footer{padding:0 10px}verdocs-sign verdocs-sign-footer .buttons{gap:8px}verdocs-sign verdocs-sign-footer .buttons button{font-size:10px}verdocs-sign .signed-document-container{width:100%;margin-left:0}verdocs-sign .signed-document-container.zoom-normal,verdocs-sign .signed-document-container.zoom-zoom1,verdocs-sign .signed-document-container.zoom-zoom2{width:100%;margin-left:0}verdocs-sign>.document{padding-right:15px}verdocs-sign .verdocs-flag-instance{display:none !important}verdocs-sign .controls-toolbar .center-controls{display:none}verdocs-sign .controls-toolbar .right-controls .mobile-next-button{display:block;margin-right:10px}verdocs-sign .controls-toolbar .right-controls .minus,verdocs-sign .controls-toolbar .right-controls .plus{display:none}}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 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,.controls-toolbar,.verdocs-flag-instance,verdocs-signing-progress{display:none !important}verdocs-sign{min-height:auto;background-color:white}verdocs-sign>.document{overflow:visible;height:auto;display:block;padding:0;margin:0}verdocs-sign>.document .document-separator{display:none}verdocs-sign .signed-document-container{width:100%;margin:0}}#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;-webkit-column-gap:10px;-moz-column-gap:10px;column-gap:10px}#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}@media (max-width: 670px){#verdocs-sign-header .title{font-size:14px}}#verdocs-sign-header .remaining-count{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;gap:8px;color:#ffffff;font-size:13px;font-weight:400;white-space:nowrap}#verdocs-sign-header .remaining-count .check-icon{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center}#verdocs-sign-header .remaining-count .check-icon svg{width:16px;height:16px;fill:#55bc81}#verdocs-sign-header .remaining-count .separator{opacity:0.5;margin:0 2px}#verdocs-sign-header .remaining-count .review-optional{cursor:pointer;text-decoration:underline}#verdocs-sign-header .remaining-count .review-optional:hover{color:#54d68c}@media (max-width: 670px){#verdocs-sign-header .remaining-count .review-optional{display:none}}@media (max-width: 670px){#verdocs-sign-header .remaining-count{font-size:12px}}#verdocs-sign-header .icon-button{width:20px;height:32px;display:-ms-flexbox;display:flex;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border-radius:4px;-webkit-transition:background-color 0.2s;transition:background-color 0.2s}#verdocs-sign-header .icon-button svg path{fill:#ffffff}#verdocs-sign-header .icon-button:hover{background-color:rgba(255, 255, 255, 0.1)}#verdocs-sign-header .icon-button.disabled{opacity:0.35;pointer-events:none}#verdocs-sign-header .icon-button+.icon-button{margin-left:-6px}@media (max-width: 670px){#verdocs-sign-header .icon-button.magnify{display:none}}.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}.controls-toolbar{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;height:54px;padding:0 12px 0 24px;background-color:#ffffff;border-bottom:1px solid #e0e0e0;-webkit-box-shadow:none;box-shadow:none;font-family:"Inter", sans-serif;color:#424242;z-index:1000}.controls-toolbar .left-controls{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.controls-toolbar .left-controls .title{font-weight:500;font-size:16px;color:#242424;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.controls-toolbar .center-controls{-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;gap:10px;font-size:14px;display:none}.controls-toolbar .center-controls .label{color:#000000;font-weight:300}.controls-toolbar .center-controls .select-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.controls-toolbar .center-controls .select-wrapper verdocs-select-input{margin:0}.controls-toolbar .center-controls .select-wrapper verdocs-select-input .input-label{display:none}.controls-toolbar .center-controls .select-wrapper verdocs-select-input .input-element{background:transparent;border:1px solid #e0e0e0;height:32px;padding:2px 8px;min-width:60px;text-align:center;font-family:inherit;color:#424242}.controls-toolbar .center-controls .select-wrapper verdocs-select-input .input-element:focus{border-color:var(--verdocs-primary-color, #55bc81)}.controls-toolbar .center-controls .count{color:#000000;font-weight:300}.controls-toolbar .right-controls{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}.controls-toolbar .right-controls .mobile-next-button{display:none}.controls-toolbar .right-controls .icon-button{width:32px;height:32px;display:-ms-flexbox;display:flex;color:#424242;cursor:pointer;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-transition:background-color 0.2s;transition:background-color 0.2s}.controls-toolbar .right-controls .icon-button:hover{background-color:#f5f5f5}.controls-toolbar .right-controls .icon-button.disabled{opacity:0.3;pointer-events:none}.controls-toolbar .right-controls .icon-button svg{display:block;width:20px;height:20px}'};var O='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11ZM14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z" fill="#424242" /></svg>';var Y='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5ZM8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z" fill="#424242" /></svg>';var Z='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M15.5 16.9988C15.7761 16.9988 16 17.2226 16 17.4988C16 17.7442 15.8231 17.9484 15.5899 17.9907L15.5 17.9988H4.5C4.22386 17.9988 4 17.7749 4 17.4988C4 17.2533 4.17688 17.0492 4.41012 17.0068L4.5 16.9988H15.5ZM10.0001 2.00098C10.2456 2.00098 10.4497 2.17798 10.492 2.41124L10.5 2.50112L10.496 14.295L14.1414 10.6466C14.3148 10.4729 14.5842 10.4534 14.7792 10.5882L14.8485 10.646C15.0222 10.8194 15.0418 11.0888 14.907 11.2838L14.8492 11.3531L10.3574 15.8531C10.285 15.9257 10.1957 15.9714 10.1021 15.9901L9.99608 15.9999C9.83511 15.9999 9.69192 15.9237 9.60051 15.8056L5.14386 11.3537C4.94846 11.1586 4.94823 10.842 5.14336 10.6466C5.3168 10.4729 5.58621 10.4534 5.78117 10.5883L5.85046 10.6461L9.496 14.287L9.5 2.50083C9.50008 2.22469 9.724 2.00098 10.0001 2.00098Z" fill="#424242"/></svg>';var F='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5 4.5C5 3.67157 5.67157 3 6.5 3H13.5C14.3284 3 15 3.67157 15 4.5V5H15.5C16.8807 5 18 6.11929 18 7.5V12.5C18 13.3284 17.3284 14 16.5 14H15V15.5C15 16.3284 14.3284 17 13.5 17H6.5C5.67157 17 5 16.3284 5 15.5V14H3.5C2.67157 14 2 13.3284 2 12.5V7.5C2 6.11929 3.11929 5 4.5 5H5V4.5ZM6 5H14V4.5C14 4.22386 13.7761 4 13.5 4H6.5C6.22386 4 6 4.22386 6 4.5V5ZM5 13V11.5C5 10.6716 5.67157 10 6.5 10H13.5C14.3284 10 15 10.6716 15 11.5V13H16.5C16.7761 13 17 12.7761 17 12.5V7.5C17 6.67157 16.3284 6 15.5 6H4.5C3.67157 6 3 6.67157 3 7.5V12.5C3 12.7761 3.22386 13 3.5 13H5ZM6.5 11C6.22386 11 6 11.2239 6 11.5V15.5C6 15.7761 6.22386 16 6.5 16H13.5C13.7761 16 14 15.7761 14 15.5V11.5C14 11.2239 13.7761 11 13.5 11H6.5Z" fill="#424242"/></svg>';var B=e("verdocs_sign",function(){function e(e){var n=this;t(this,e);this.sdkError=i(this,"sdkError");this.envelopeLoaded=i(this,"envelopeLoaded");this.envelopeUpdated=i(this,"envelopeUpdated");this.endpoint=new a({sessionType:"signing"});this.envelopeId=null;this.roleId=null;this.inviteCode=null;this.headerTargetId=null;this.toolbarStyle="menu";this.recipient=null;this.hasSignature=false;this.nextButtonLabel="Start";this.nextSubmits=false;this.fatalErrorHeader="";this.fatalErrorMessage="";this.focusedField="";this.disclosures=l;this.fieldUpdateCounter=0;this.submitting=false;this.submitted=false;this.isDone=false;this.showDone=false;this.adoptingSignature=false;this.showLoadError=false;this.finishLater=false;this.showFinishLater=false;this.agreed=false;this.signatureId=null;this.initialId=null;this.documentsSingularPlural="document";this.authStep=null;this.authMethodStates={};this.pageNumber=1;this.kbaQuestions=null;this.showSpinner=false;this.declining=false;this.delegating=false;this.delegated=false;this.kbaChoices=[];this.showDownloadDialog=false;this.loading=true;this.envelope=null;this.zoomLevel="normal";this.signingProgressMode="start";this.polling=true;this.renderedPages={};this.pollingInterval=null;this.handleDoneDialogDismiss=function(){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.showDone=false;if(!!this.isDone)return[3,2];this.prepareForViewTransition();return[4,new Promise((function(e){return requestAnimationFrame((function(){return e()}))}))];case 1:e.sent();this.isDone=true;e.label=2;case 2:return[2]}}))}))}}e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n,r,s,o;var a=this;return __generator(this,(function(l){switch(l.label){case 0:this.updateZoomFromWindow();window.addEventListener("resize",(function(){return a.updateZoomFromWindow()}));if(!this.envelopeId){(e=this.sdkError)===null||e===void 0?void 0:e.emit(new P("[SIGN] Missing required envelopId",500,""));return[2]}if(!this.roleId){(t=this.sdkError)===null||t===void 0?void 0:t.emit(new P("[SIGN] Missing required roleId",500,""));return[2]}if(!this.inviteCode){(i=this.sdkError)===null||i===void 0?void 0:i.emit(new P("[SIGN] Missing required inviteCode",500,""));return[2]}l.label=1;case 1:l.trys.push([1,3,,4]);return[4,this.initSigningSession()];case 2:l.sent();return[3,4];case 3:o=l.sent();console.log("[SIGN] Error with signing session",o);(n=this.sdkError)===null||n===void 0?void 0:n.emit(new P(o.message,(r=o.response)===null||r===void 0?void 0:r.status,(s=o.response)===null||s===void 0?void 0:s.data));this.showLoadError=true;return[3,4];case 4:return[2]}}))}))};e.prototype.initSigningSession=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:console.log("[SIGN] Processing invite code for ".concat(this.envelopeId," / ").concat(this.roleId));return[4,c(this.endpoint,this.envelopeId,this.roleId,this.inviteCode)];case 1:e=t.sent();this.processAuthResponse(e);return[2]}}))}))};e.prototype.retrySigningSession=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n;return __generator(this,(function(r){switch(r.label){case 0:this.showLoadError=false;this.loading=true;r.label=1;case 1:r.trys.push([1,3,,4]);return[4,this.initSigningSession()];case 2:r.sent();return[3,4];case 3:n=r.sent();console.log("[SIGN] Error with signing session",n);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new P(n.message,(t=n.response)===null||t===void 0?void 0:t.status,(i=n.response)===null||i===void 0?void 0:i.data));this.showLoadError=true;this.loading=false;return[3,4];case 4:return[2]}}))}))};e.prototype.prepareForViewTransition=function(){var e,t,i;this.stopPolling();(e=this.observer)===null||e===void 0?void 0:e.disconnect();this.observer=null;(t=document.getElementById("air-datepicker-global-container"))===null||t===void 0?void 0:t.remove();(i=document.getElementById("verdocs-sign-header"))===null||i===void 0?void 0:i.remove()};e.prototype.handleSubmitSuccess=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n,r;var s=this;return __generator(this,(function(o){switch(o.label){case 0:this.submitting=false;this.submitted=true;this.nextSubmits=false;this.signingProgressMode="completed";o.label=1;case 1:o.trys.push([1,3,,4]);return[4,d(this.endpoint,this.envelopeId)];case 2:i=o.sent();this.envelope=i;U.updateEnvelope(this.envelopeId,i);n=(e=i.recipients)===null||e===void 0?void 0:e.find((function(e){var t;return e.role_name===((t=s.recipient)===null||t===void 0?void 0:t.role_name)}));if(n){this.recipient=n}(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:i,event:"submitted"});return[3,4];case 3:r=o.sent();console.warn("[SIGN] Error refreshing envelope after submit",r);return[3,4];case 4:this.showDone=true;return[2]}}))}))};e.prototype.componentDidRender=function(){var e=this.headerTargetId?document.getElementById(this.headerTargetId):null;var t=document.getElementById("verdocs-sign-header");if(e&&t){console.log("[SIGN] Moving header");t.remove();e.append(t)}this.setupIntersectionObserver()};e.prototype.disconnectedCallback=function(){var e=this;var t,i,n;this.stopPolling();(t=this.observer)===null||t===void 0?void 0:t.disconnect();window.removeEventListener("resize",(function(){return e.updateZoomFromWindow()}));(i=document.getElementById(this.getOrgStyleOverridesId()))===null||i===void 0?void 0:i.remove();(n=document.getElementById(this.getBrandStyleOverridesId()))===null||n===void 0?void 0:n.remove()};e.prototype.updateZoomFromWindow=function(){var e=window.innerWidth;if(e<768){if(this.zoomLevel!=="zoom2")this.zoomLevel="zoom2"}else if(e<1024){if(this.zoomLevel!=="zoom1")this.zoomLevel="zoom1"}else{if(this.zoomLevel!=="normal")this.zoomLevel="normal"}};e.prototype.setupIntersectionObserver=function(){var e=this;var t=this.el.querySelectorAll("verdocs-envelope-document-page");if(t.length===0)return;if(this.observer){this.observer.disconnect()}var i=this.el.querySelector(".signed-document-container");var n={root:i,rootMargin:"-40% 0px -40% 0px",threshold:0};this.observer=new IntersectionObserver((function(t){t.forEach((function(t){if(t.isIntersecting){var i=t.target.id;var n=parseInt(i.replace("page-",""),10);if(!isNaN(n)&&e.pageNumber!==n){e.pageNumber=n}}}))}),n);t.forEach((function(t){return e.observer.observe(t)}))};e.prototype.getOrgStyleOverridesId=function(){return"verdocs-org-style-overrides-".concat(this.envelopeId)};e.prototype.getBrandStyleOverridesId=function(){return"verdocs-brand-style-overrides-".concat(this.envelopeId)};e.prototype.applyOrgStyleOverrides=function(){var e,t;var i=this.getOrgStyleOverridesId();var n=document.getElementById(i);var r=(t=(e=this.envelope)===null||e===void 0?void 0:e.organization)===null||t===void 0?void 0:t.style_overrides;if(typeof r==="string"){var s=n||document.createElement("style");s.id=i;s.textContent=r;if(!n){document.head.appendChild(s)}}else if(n){n.remove()}};e.prototype.applyBrandStyleOverrides=function(e){var t=this.getBrandStyleOverridesId();var i=document.getElementById(t);var n=e===null||e===void 0?void 0:e.style_overrides;if(typeof n==="string"&&n.length>0){var r=i||document.createElement("style");r.id=t;r.textContent=n;if(!i){document.head.appendChild(r)}}else if(i){i.remove()}};e.prototype.processAuthResponse=function(e){var t,i,n,r;var s=e.envelope,o=e.recipient,a=e.brand;(t=s.documents)===null||t===void 0?void 0:t.sort((function(e,t){return e.order!==t.order?e.order-t.order:e.created_at.localeCompare(t.created_at)}));var c=o.auth_step;this.recipient=o;this.envelope=s;this.disclosures=((n=(i=this.envelope)===null||i===void 0?void 0:i.organization)===null||n===void 0?void 0:n.disclaimer)||l;this.applyOrgStyleOverrides();this.applyBrandStyleOverrides(a);this.authStep=c;this.delegated=!!o.delegated_to;this.agreed=o.agreed;this.signatureId=null;this.initialId=null;this.submitted=o.status==="submitted";this.loading=false;this.isDone=this.submitted;this.showDone=this.submitted;U.updateEnvelope(this.envelopeId,s);if(this.envelope.documents.length>0){this.documentsSingularPlural="document(s)"}this.authMethodStates=o.auth_method_states||{};this.kbaQuestions=o.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(o.status==="declined"){this.fatalErrorHeader="Declined";this.fatalErrorMessage="You have declined to sign this request. The sender has been notified."}else if(this.agreed){this.nextButtonLabel="Next"}this.checkRecipientFields();(r=this.envelopeLoaded)===null||r===void 0?void 0:r.emit({endpoint:this.endpoint,envelope:this.envelope})};e.prototype.handleClickAgree=function(){var e=this;this.submitting=true;console.log("[SIGN] Accepting disclosures",this.disclosures);var t=Intl.DateTimeFormat().resolvedOptions();u(this.endpoint,this.envelopeId,this.roleId,this.disclosures,{locale:t.locale,timezone:t.timeZone}).then((function(){var t;e.nextButtonLabel="Next";e.recipient.agreed=true;e.submitting=false;e.agreed=true;(t=e.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:e.endpoint,envelope:e.envelope,event:"agreed"})})).catch((function(t){var i,n,r;console.log("[SIGN] Unable to accept disclosures",t);A("Unable to accept disclosures, please try again later",{style:"error"});(i=e.sdkError)===null||i===void 0?void 0:i.emit(new P(t.message,(n=t.response)===null||n===void 0?void 0:n.status,(r=t.response)===null||r===void 0?void 0:r.data));e.submitting=false}))};e.prototype.handlePageSelect=function(e){var t=parseInt(e.target.value);if(!isNaN(t)){this.pageNumber=t;var i=this.el.querySelector(".signed-document-container");var n=this.el.querySelector("#page-".concat(t));if(i&&n){var r=n.offsetTop-20;i.scrollTo({top:r,behavior:"smooth"})}}};e.prototype.handleOptionSelected=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(n){switch(e.detail.id){case"later":this.finishLater=true;this.showFinishLater=true;(t=this.envelopeUpdated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,envelope:this.envelope,event:"later"});break;case"delegate":this.delegating=true;break;case"decline":this.declining=true;break;case"print":window.print();(i=this.envelopeUpdated)===null||i===void 0?void 0:i.emit({endpoint:this.endpoint,envelope:this.envelope,event:"printed"});break;case"download":this.showDownloadDialog=true;this.startPolling();break}return[2]}))}))};e.prototype.startPolling=function(){var e=this;this.stopPolling();var t=function(){var t,i,n,r,s,o;var a=((t=e.envelope)===null||t===void 0?void 0:t.status)==="complete"||!!((i=e.envelope)===null||i===void 0?void 0:i.signed);var l=(r=(n=e.envelope)===null||n===void 0?void 0:n.documents)===null||r===void 0?void 0:r.some((function(e){return e.type==="certificate"}));var c=(o=(s=e.envelope)===null||s===void 0?void 0:s.recipients)===null||o===void 0?void 0:o.every((function(e){return e.status==="submitted"}));if(a&&l)return false;if(!c)return false;return true};if(!t()){return}this.polling=true;this.pollingInterval=setInterval((function(){return __awaiter(e,void 0,void 0,(function(){var e,i;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,d(this.endpoint,this.envelopeId)];case 1:e=n.sent();this.envelope=e;U.updateEnvelope(this.envelopeId,e);this.checkRecipientFields();if(!t()){this.stopPolling()}return[3,3];case 2:i=n.sent();console.error("[SIGN] Polling error",i);this.stopPolling();return[3,3];case 3:return[2]}}))}))}),5e3)};e.prototype.stopPolling=function(){if(this.pollingInterval){clearInterval(this.pollingInterval);this.pollingInterval=null}this.polling=false};e.prototype.handleZoomIn=function(){if(this.zoomLevel==="normal"){this.zoomLevel="zoom1"}else if(this.zoomLevel==="zoom1"){this.zoomLevel="zoom2"}};e.prototype.handleZoomOut=function(){if(this.zoomLevel==="zoom1"){this.zoomLevel="normal"}else if(this.zoomLevel==="zoom2"){this.zoomLevel="zoom1"}};e.prototype.updateRecipientFieldValue=function(e,t){var i=this;console.log("[SIGN] updateRecipientFieldValue",e,t);this.getRecipientFields().forEach((function(n){if(n.name===e){n.value=t.value;n.settings=t.settings;H(n);i.fieldUpdateCounter++;i.markEnvelopeStarted();i.checkRecipientFields()}}))};e.prototype.getStartedKey=function(){var e;return"".concat(this.envelopeId,":").concat(((e=this.recipient)===null||e===void 0?void 0:e.role_name)||"")};e.prototype.markEnvelopeStarted=function(){var e=JSON.parse(localStorage.getItem("startedEnvelopes")||"[]");var t=this.getStartedKey();if(!e.includes(t)){e.push(t);while(e.length>10){e.shift()}localStorage.setItem("startedEnvelopes",JSON.stringify(e))}};e.prototype.saveFieldChange=function(e,t,i){var n=this;var r=this.getRecipientFields().find((function(t){return t.name===e}));if(r===null||r===void 0?void 0:r.readonly){return}console.log("[SIGN] saveFieldChange",e,{value:t,prepared:i});h(this.endpoint,this.envelopeId,this.roleId,e,t,i).then((function(t){return n.updateRecipientFieldValue(e,t)})).catch((function(e){var t,i,r,s,o,a;if(((t=e.response)===null||t===void 0?void 0:t.status)===401&&((r=(i=e.response)===null||i===void 0?void 0:i.data)===null||r===void 0?void 0:r.error)==="jwt expired"){console.log("[SIGN] Signing session expired");n.fatalErrorHeader="Signing Session Expired";n.fatalErrorMessage="Please reload your browser to continue."}else{console.log("[SIGN] Server error",e);A("Unable to save change, please try again later",{style:"error"})}(s=n.sdkError)===null||s===void 0?void 0:s.emit(new P(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,t){return __awaiter(this,void 0,void 0,(function(){var i,n,r,s,o,o,o,a,o,o,o,l,c;var d=this;return __generator(this,(function(u){switch(u.label){case 0:if(!t.target){return[2]}i=t.target,n=i.value,r=i.checked;s=e.type;switch(s){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,14];case"date":return[3,23];case"timestamp":return[3,24]}return[3,25];case 1:return[2,this.saveFieldChange(e.name,n,false)];case 2:{return[2,this.saveFieldChange(e.name,String(t.target.checked),false)]}u.label=3;case 3:{return[2,this.saveFieldChange(e.name,String(t.target.checked),false)]}u.label=4;case 4:console.log("Saving dropdown",e.name,t.detail);return[2,this.saveFieldChange(e.name,t.detail,false)];case 5:if(t.detail===undefined){return[2]}if(!(t.detail===null))return[3,7];console.log("[SIGN] Clearing initial");return[4,h(this.endpoint,this.envelopeId,this.roleId,e.name,null,false)];case 6:o=u.sent();return[2,this.updateRecipientFieldValue(e.name,o)];case 7:if(!this.initialId)return[3,9];console.log("[SIGN] Reusing initial",this.initialId);return[4,h(this.endpoint,this.envelopeId,this.roleId,e.name,this.initialId,false)];case 8:o=u.sent();return[2,this.updateRecipientFieldValue(e.name,o)];case 9:if(!(typeof t.detail==="string"&&/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t.detail)))return[3,11];console.log("[SIGN] Reusing initial",t.detail);return[4,h(this.endpoint,this.envelopeId,this.roleId,e.name,t.detail,false)];case 10:o=u.sent();this.initialId=t.detail;return[2,this.updateRecipientFieldValue(e.name,o)];case 11:this.showSpinner=true;return[4,fetch(t.detail)];case 12:return[4,u.sent().blob()];case 13:a=u.sent();return[2,v(this.endpoint,"initial",a).then((function(t){return __awaiter(d,void 0,void 0,(function(){var i;return __generator(this,(function(n){switch(n.label){case 0:return[4,h(this.endpoint,this.envelopeId,this.roleId,e.name,t.id,false)];case 1:i=n.sent();this.updateRecipientFieldValue(e.name,i);this.initialId=t.id;this.showSpinner=false;return[2]}}))}))})).catch((function(e){console.log("Error updating initials",e);A("Unable to save initials, please try again later",{style:"error"});d.showSpinner=false}))];case 14:if(t.detail===undefined){return[2]}if(!(t.detail===null))return[3,16];console.log("[SIGN] Clearing signature");return[4,h(this.endpoint,this.envelopeId,this.roleId,e.name,null,false)];case 15:o=u.sent();return[2,this.updateRecipientFieldValue(e.name,o)];case 16:if(!this.signatureId)return[3,18];console.log("[SIGN] Reusing signature",this.signatureId);return[4,h(this.endpoint,this.envelopeId,this.roleId,e.name,this.signatureId,false)];case 17:o=u.sent();return[2,this.updateRecipientFieldValue(e.name,o)];case 18:if(!(typeof t.detail==="string"&&/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(t.detail)))return[3,20];console.log("[SIGN] Reusing signature",t.detail);return[4,h(this.endpoint,this.envelopeId,this.roleId,e.name,t.detail,false)];case 19:o=u.sent();this.signatureId=t.detail;return[2,this.updateRecipientFieldValue(e.name,o)];case 20:this.showSpinner=true;return[4,fetch(t.detail)];case 21:return[4,u.sent().blob()];case 22:l=u.sent();console.log("[SIGN] Creating new signature");return[2,f(this.endpoint,"signature",l).then((function(t){return __awaiter(d,void 0,void 0,(function(){var i;return __generator(this,(function(n){switch(n.label){case 0:console.log("Signature update result",t);return[4,h(this.endpoint,this.envelopeId,this.roleId,e.name,t.id,false)];case 1:i=n.sent();this.updateRecipientFieldValue(e.name,i);this.signatureId=t.id;this.showSpinner=false;return[2]}}))}))})).catch((function(e){console.warn("[SIGN] Error updating signature",e);A("Unable to save signature, please try again later",{style:"error"});d.showSpinner=false}))];case 23:c=t.detail.formattedDate;if(c){return[2,this.saveFieldChange(e.name,c,false)]}return[3,26];case 24:console.log("[SIGN] Updating timestamp",{value:n,ts:t.target.getAttribute("timestamp")});return[3,26];case 25:console.log("[SIGN] Unhandled field update",{value:n,checked:r},e);return[3,26];case 26:return[2]}}))}))};e.prototype.getSortedFillableFields=function(){var e=this.getRecipientFields().filter((function(e){return e.type!=="timestamp"&&!e.readonly}));p(e);return e};e.prototype.getSortedDisplayableFields=function(){var e=this.getRecipientFields().filter((function(e){return e.type!=="timestamp"}));p(e);return e};e.prototype.handleNext=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n,r,s,o,a;var l=this;return __generator(this,(function(c){switch(c.label){case 0:if(!this.nextSubmits)return[3,6];if(this.submitted){return[2]}c.label=1;case 1:c.trys.push([1,4,,5]);(e=document.getElementById("air-datepicker-global-container"))===null||e===void 0?void 0:e.remove();this.submitting=true;t=Intl.DateTimeFormat().resolvedOptions();return[4,g(this.endpoint,this.envelopeId,this.roleId,{locale:t.locale,timezone:t.timeZone})];case 2:i=c.sent();console.log("[SIGN] Submitted successfully",i);return[4,this.handleSubmitSuccess()];case 3:c.sent();return[3,5];case 4:n=c.sent();console.log("[SIGN] Error submitting",n);this.submitting=false;A("Unable to submit document, please try again.",{style:"error"});return[3,5];case 5:return[2];case 6:r=this.getSortedFillableFields().filter((function(e){return!l.isFieldActuallyFilled(e)}));s=this.getNextFieldFromList(r);if(s){o=T(s);a=document.getElementById(o);a===null||a===void 0?void 0:a.scrollIntoView({behavior:"smooth",block:"center",inline:"center"});a===null||a===void 0?void 0:a.focusField();this.focusedField=s.name}return[2]}}))}))};e.prototype.handleNextOptional=function(){var e=this;var t=this.getSortedFillableFields().filter((function(t){return!t.required&&!e.isFieldActuallyFilled(t)}));var i=this.getNextFieldFromList(t);if(i){var n=T(i);var r=document.getElementById(n);r===null||r===void 0?void 0:r.scrollIntoView({behavior:"smooth",block:"center",inline:"center"});r===null||r===void 0?void 0:r.focusField();this.focusedField=i.name}};e.prototype.getRecipientFields=function(){var e=this;var t;return((t=this.envelope)===null||t===void 0?void 0:t.fields.filter((function(t){return t.role_name===e.recipient.role_name})))||[]};e.prototype.getRequiredTotalCount=function(){return this.getSortedFillableFields().filter((function(e){return e.required})).length};e.prototype.getRequiredFilledCount=function(){var e=this;return this.getSortedFillableFields().filter((function(t){return t.required&&e.isFieldActuallyFilled(t)})).length};e.prototype.getOptionalUnfilledCount=function(){var e=this;return this.getSortedFillableFields().filter((function(t){return!t.required&&!e.isFieldActuallyFilled(t)})).length};e.prototype.checkRecipientFields=function(){var e=this;if(this.submitted||this.isDone){return}var t=this.getRecipientFields().filter((function(t){return!m(t,e.getRecipientFields())}));if(t.length<1){this.nextButtonLabel="Finish";if(!this.nextSubmits){this.nextSubmits=true}}else{this.nextButtonLabel="Next";this.nextSubmits=false}this.updateAllFlags();var i=JSON.parse(localStorage.getItem("startedEnvelopes")||"[]");var n=i.includes(this.getStartedKey());if(this.nextSubmits){this.signingProgressMode="completed"}else if(n){this.signingProgressMode="signing"}else{this.signingProgressMode="start"}};e.prototype.isFieldActuallyFilled=function(e){if(e.type==="radio"&&e.group){var t=this.getRecipientFields().some((function(t){return t.group===e.group&&t.value==="true"}));if(t){return true}}return x(e,this.getRecipientFields())&&(e.type!=="dropdown"||!!e.value)&&(e.type!=="radio"||e.value==="true")&&(e.type!=="checkbox"||e.value==="true")};e.prototype.getNextRequiredField=function(){var e=this;var t=this.getSortedFillableFields().filter((function(t){return t.required&&!e.isFieldActuallyFilled(t)}));p(t);if(t.length===0){var i=this.getSortedFillableFields().filter((function(t){return!e.isFieldActuallyFilled(t)}));p(i);if(i.length>0){return this.getNextFieldFromList(i)}return null}return this.getNextFieldFromList(t)};e.prototype.getNextFieldFromList=function(e){var t=this;var i=e.findIndex((function(e){return e.name===t.focusedField}));var n=i+1;if(n>=e.length){n=0}return e[n]};e.prototype.handlePrev=function(){var e=this;var t;var i=this.getSortedFillableFields();var n=i.findIndex((function(t){return t.name===e.focusedField}));if(n>0){var r=i[n-1];var s=T(r);var o=document.getElementById(s);o===null||o===void 0?void 0:o.scrollIntoView({behavior:"smooth",block:"center"});(t=o===null||o===void 0?void 0:o.focusField)===null||t===void 0?void 0:t.call(o);this.focusedField=r.name}};e.prototype.updateAllFlags=function(){var e=this;Object.values(this.renderedPages).forEach((function(t){e.updateFlagsForPage(t)}))};e.prototype.updateFlagsForPage=function(e){var t=this;if(!e)return;var i=document.getElementById(e.containerId+"-controls");if(!i)return;var n=i.querySelectorAll(".verdocs-flag-instance");n.forEach((function(e){return e.remove()}));var r=this.getNextRequiredField();var s=this.getRecipientFields().find((function(e){return e.name===t.focusedField}));if(s&&!x(s,this.getRecipientFields())){r=s}if(r&&r.page===e.pageNumber&&r.document_id===e.documentId){var o="fill";var a="FILL";var l=false;switch(r.type){case"signature":a="SIGN";break;case"initial":a="INITIAL";break;case"checkbox":a="CHECK";break;case"radio":a="SELECT";break;case"date":case"dropdown":a="SELECT";break;case"attachment":a="ATTACH";break;case"payment":a="PAY";break}if(!r.required){l=true}E(e,r.y,r.height||D(r.type),{variant:o,label:a,showSkip:l,onSkip:function(){t.handleNext()},onClick:function(){var e;var t=T(r);var i=document.getElementById(t);i===null||i===void 0?void 0:i.scrollIntoView({behavior:"smooth",block:"center"});(e=i===null||i===void 0?void 0:i.focusField)===null||e===void 0?void 0:e.call(i)}})}};e.prototype.attachFieldAttributes=function(e,t,i){var n=this;if(i.getAttribute("attached")==="1"){return}i.setAttribute("attached","1");i.addEventListener("input",(function(e){if(e.target.type==="radio"||e.target.type==="checkbox"){n.handleFieldChange(t,e).finally((function(){return n.checkRecipientFields()}))}else{n.checkRecipientFields()}}));i.addEventListener("attached",(function(i){return __awaiter(n,void 0,void 0,(function(){var n,r,s;return __generator(this,(function(o){switch(o.label){case 0:console.log("[SIGN] onAttached",i.detail,i.target.value);this.showSpinner=true;o.label=1;case 1:o.trys.push([1,3,,4]);return[4,b(this.endpoint,this.envelopeId,this.roleId,t.name,i.detail)];case 2:n=o.sent();this.updateRecipientFieldValue(t.name,n);this.checkRecipientFields();r=q("envelope",t,e,{disabled:false,editable:false,draggable:false,done:this.isDone});this.attachFieldAttributes(e,t,r);this.showSpinner=false;return[3,4];case 3:s=o.sent();console.log("Error uploading attachment",s);A("Unable to upload attachment, please try again later",{style:"error"});this.showSpinner=false;return[3,4];case 4:return[2]}}))}))}));i.addEventListener("deleted",(function(i){return __awaiter(n,void 0,void 0,(function(){var n,r,s;return __generator(this,(function(o){switch(o.label){case 0:console.log("[SIGN] onDeleted",i.detail,i.target.value);this.showSpinner=true;o.label=1;case 1:o.trys.push([1,3,,4]);return[4,w(this.endpoint,this.envelopeId,this.roleId,t.name)];case 2:n=o.sent();console.log("[SIGN] Deleted attachment",n);this.updateRecipientFieldValue(t.name,n);this.checkRecipientFields();r=q("envelope",t,e,{disabled:false,editable:false,draggable:false,done:this.isDone});this.attachFieldAttributes(e,t,r);this.showSpinner=false;return[3,4];case 3:s=o.sent();console.log("Error uploading attachment",s);A("Unable to upload attachment, please try again later",{style:"error"});this.showSpinner=false;return[3,4];case 4:return[2]}}))}))}));i.addEventListener("focusout",(function(e){if(t.type!=="dropdown"&&t.type!=="attachment"&&t.type!=="signature"&&t.type!=="initial"&&t.type!=="checkbox"&&t.type!=="radio"){n.handleFieldChange(t,e).finally((function(){return n.checkRecipientFields()}))}}));i.addEventListener("fieldChange",(function(e){n.handleFieldChange(t,e).finally((function(){return n.checkRecipientFields()}))}));i.addEventListener("adopt",(function(){n.focusedField=t.name;n.adoptingSignature=true}));i.setAttribute("templateid",this.envelope.template_id);i.setAttribute("fieldname",t.name);i.setAttribute("page",e.pageNumber);i.setAttribute("xScale",e.xScale);i.setAttribute("yScale",e.yScale);var r=y(this.recipient);i.setAttribute("initials",k(r));i.setAttribute("name",r);if(this.signatureId){i.setAttribute("signatureid",this.signatureId)}if(this.initialId){i.setAttribute("initialid",this.initialId)}};e.prototype.handlePageRendered=function(e){var t=this;var i=e.detail;this.renderedPages["".concat(i.documentId,":").concat(i.pageNumber)]=i;var n=this.getSortedDisplayableFields();n.filter((function(e){return e&&e.document_id===i.documentId&&e.page===i.pageNumber})).forEach((function(e,n){var r=q("envelope",e,i,{disabled:false,editable:false,draggable:false,done:t.isDone},n);if(!r){return}if(Array.isArray(r)){r.map((function(n){return t.attachFieldAttributes(i,e,n)}))}else{t.attachFieldAttributes(i,e,r)}}));this.envelope.recipients.filter((function(e){return e.role_name!==t.recipient.role_name&&(e.status==="invited"||e.status==="opened"||e.status==="pending")})).forEach((function(){t.getRecipientFields().filter((function(e){return e.document_id===i.documentId&&e.page===i.pageNumber})).forEach((function(e){var n=q("envelope",e,i,{disabled:true,editable:false,draggable:false,done:t.isDone});if(!n){return}if(Array.isArray(n)){n.map((function(n){return t.attachFieldAttributes(i,e,n)}))}else{t.attachFieldAttributes(i,e,n)}}))}));this.checkRecipientFields();this.updateFlagsForPage(i)};e.prototype.handleAuthenticateSigner=function(e){var t=this;console.log("[SIGN] Submitting authentication step",e);C(this.endpoint,e).then((function(e){console.log("[SIGN] Verification successful",e);t.processAuthResponse(e)})).catch((function(e){var i,n,r,s,o,a;console.log("[SIGN] Error submitting authentication step",e);console.log((i=e.response)===null||i===void 0?void 0:i.data);if((s=(r=(n=e.response)===null||n===void 0?void 0:n.data)===null||r===void 0?void 0:r.error)===null||s===void 0?void 0:s.includes("failed")){t.fatalErrorHeader="Recipient Verification Failed";t.fatalErrorMessage="We were unable to verify your identity. The sender has been notified.";t.isDone=true}else{A(((a=(o=e.response)===null||o===void 0?void 0:o.data)===null||a===void 0?void 0:a.error)||"Unable to verify your identity. Please try again.",{style:"error"})}}))};e.prototype.handleOnDownload=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i,n,r,s,o,a,l,c,d,u,h,f,v,p,g;return __generator(this,(function(m){switch(m.label){case 0:n=e.detail,r=n.action,s=n.documentId;console.log("[SIGN] Download action selected:",r,s);m.label=1;case 1:m.trys.push([1,14,,15]);o=r;switch(o){case M.certificate:return[3,2];case M.combined:return[3,6];case M.document:return[3,8];case M.zip:return[3,11]}return[3,13];case 2:a=this.envelope.documents.find((function(e){return e.type==="certificate"}));if(!a)return[3,4];return[4,S(this.endpoint,a.id)];case 3:l=m.sent();window.open(l,"_blank");return[3,5];case 4:A("Certificate not yet available.",{style:"info"});m.label=5;case 5:return[3,13];case 6:c=s||((t=this.envelope.documents.find((function(e){return e.type==="certificate"})))===null||t===void 0?void 0:t.id);return[4,I(this.endpoint,c)];case 7:d=m.sent();window.open(d,"_blank");return[3,13];case 8:u=s||((i=this.envelope.documents.find((function(e){return e.type==="attachment"})))===null||i===void 0?void 0:i.id);if(!u)return[3,10];return[4,S(this.endpoint,u)];case 9:h=m.sent();window.open(h,"_blank");m.label=10;case 10:return[3,13];case 11:return[4,_(this.endpoint,[this.envelopeId])];case 12:f=m.sent();v=window.URL.createObjectURL(f.data);p=document.createElement("a");p.href=v;p.download="".concat(this.envelope.name,".zip");document.body.appendChild(p);p.click();p.remove();window.URL.revokeObjectURL(v);return[3,13];case 13:return[3,15];case 14:g=m.sent();console.error("Download error",g);A("Unable to complete download request.",{style:"error"});return[3,15];case 15:return[2]}}))}))};e.prototype.render=function(){var e=this;var t;if(this.showLoadError){return n(r,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(){e.retrySigningSession()}}))}if(!this.envelope){return n(r,null,n("verdocs-loader",null))}if(this.fatalErrorMessage){return n(r,{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.delegated){return n(r,{class:{agreed:false}},n("div",{class:"fatal-error"},n("div",{class:"message"},n("div",{class:"header"},"Delegated Signing Request"),n("p",null,"You have delegated signing to another recipient. You will not be able to sign this request again."))))}if(this.isDone){return n(r,{class:{agreed:this.agreed}},n("verdocs-view",{endpoint:this.endpoint,envelopeId:this.envelopeId,onSdkError:function(t){var i;return(i=e.sdkError)===null||i===void 0?void 0:i.emit(t.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(t){t.preventDefault();t.stopPropagation();e.handleDoneDialogDismiss()}}),this.submitting&&n("div",{class:"loading-indicator"},n("verdocs-loader",null)))}if(this.delegating){return n(r,{class:"agreed"},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("verdocs-delegate-dialog",{endpoint:this.endpoint,envelope:this.envelope,onExit:function(){return e.delegating=false},onNext:function(t){N(e.endpoint,e.envelopeId,e.roleId,t.detail).then((function(t){A("Delegation request submitted.",{style:"success"});console.log("[SIGN] Delegated successfully",t);e.delegated=true;e.delegating=false})).catch((function(e){console.log("[SIGN] Error delegating request",e);A("Unable to process delegation request. Please try again later.",{style:"error"})}))}}))}if(this.declining){return n(r,{class:"agreed"},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("verdocs-ok-dialog",{heading:"Decline Signing Request",message:"If you decline to sign this request, you will not be able to sign again in the future. The envelope sender will be notified.",buttonLabel:"OK",showCancel:true,onExit:function(){return e.declining=false},onNext:function(){z(e.endpoint,e.envelopeId,e.roleId).then((function(t){console.log("[SIGN] Decline result",t);e.declining=false;e.fatalErrorHeader="Declined";e.fatalErrorMessage="You have declined to sign this request. The sender has been notified."})).catch((function(e){console.warn("[SIGN] Error declining signing session",e);A("Unable to decline, please try again later",{style:"error"})}))}}))}if(!this.agreed){return n(r,{class:"agreed"},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("verdocs-disclosure-dialog",{disclosures:this.disclosures,delegator:this.recipient.delegator,onDelegate:function(){return e.delegating=true},onDecline:function(){return e.declining=true},onAccept:function(){return e.handleClickAgree()}}))}if(this.authStep==="passcode"){return n("verdocs-passcode-dialog",{endpoint:this.endpoint,onNext:function(t){return e.processAuthResponse(t.detail.response)}})}if(this.authStep==="email"){return n("verdocs-otp-dialog",{endpoint:this.endpoint,method:"email",onNext:function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){this.processAuthResponse(t.detail.response);return[2]}))}))}})}if(this.authStep==="kba"&&!this.authMethodStates.kba){return n(r,{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(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(i){e=t.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 o=this.kbaQuestions[i];return n(r,{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:(o===null||o===void 0?void 0:o.prompt)||"Please select one of the options below.",choices:(o===null||o===void 0?void 0:o.answer)||["Skip Question"],step:i+1,steps:this.kbaQuestions.length,onNext:function(t){return __awaiter(e,void 0,void 0,(function(){var e,i;var n=this;return __generator(this,(function(r){e=t.detail;this.kbaChoices=__spreadArray(__spreadArray([],this.kbaChoices,true),[e],false);if(this.kbaChoices.length>=this.kbaQuestions.length){i=this.kbaQuestions.map((function(e,t){return{type:e.type,answer:n.kbaChoices[t]}}));console.log("Submitting KBA responses",this.kbaChoices,i);this.handleAuthenticateSigner({auth_method:"kba",responses:i})}return[2]}))}))}}))))}var a=[{id:"later",label:"Finish Later"},{id:"decline",label:"Decline to Sign"},{id:"print",label:"Print Without Signing"},{id:"download",label:"Download"}];var l=[{id:"print",label:"Print"},{id:"download",label:"Download"}];if(this.recipient.delegator){a.unshift({id:"delegate",label:"Delegate"})}var c=this.getRecipientFields().filter((function(t){return!m(t,e.getRecipientFields())}));c.length>0?console.log("[SIGN] Invalid fields remaining",c.map((function(e){return e.name}))):console.log("[SIGN] All field valid");var d=this.envelope.documents.reduce((function(e,t){return e+t.pages}),0);var u=G(1,d).map((function(e){return{label:e.toString(),value:e.toString()}}));var p=0;return n(r,null,this.toolbarStyle==="menu"&&n("div",{id:"verdocs-sign-header"},n("div",{class:"inner"},n("div",{class:"title"},this.envelope.name),n("div",{style:{flex:"1"}}),!this.finishLater&&!this.submitted&&function(){var t=e.getRequiredTotalCount()-e.getRequiredFilledCount();var i=e.getOptionalUnfilledCount();if(t>0){return n("span",{class:"remaining-count"},t," required field",t===1?"":"s"," left")}return n("span",{class:"remaining-count"},n("span",{class:"check-icon",innerHTML:j}),"All required fields complete",i>0&&n("div",{class:"review-optional"},n("span",{class:"separator"},"| "),n("span",{onClick:function(){return e.handleNextOptional()}},"Review ",i," optional")))}(),!this.finishLater&&!this.submitted&&n("verdocs-button",{size:"xsmall",label:this.nextButtonLabel==="Next"?"Next Required":this.nextButtonLabel,disabled:!this.agreed||this.submitting||this.submitted,onClick:function(){return e.handleNext()}}),n("div",{class:{"icon-button":true,minus:true,disabled:this.zoomLevel==="normal",magnify:true},innerHTML:O,onClick:function(){return e.handleZoomOut()}}),n("div",{class:{"icon-button":true,plus:true,disabled:this.zoomLevel==="zoom2",magnify:true},innerHTML:Y,onClick:function(){return e.handleZoomIn()}}),n("verdocs-dropdown",{options:!this.isDone&&!this.finishLater&&!this.submitted?a:l,onOptionSelected:function(t){return e.handleOptionSelected(t)}}))),this.toolbarStyle==="controls"&&n("div",{class:"controls-toolbar"},n("div",{class:"left-controls"},n("div",{class:"title"},this.envelope.name)),n("div",{class:"center-controls"},n("span",{class:"label"},"Page"),n("div",{class:"select-wrapper"},n("verdocs-select-input",{options:u,value:this.pageNumber.toString(),onInput:function(t){return e.handlePageSelect(t)}})),n("span",{class:"count"},"of ",d)),n("div",{class:"right-controls"},!this.submitted&&n("verdocs-button",{class:"mobile-next-button",label:this.nextButtonLabel,size:"xsmall",disabled:!this.agreed||this.submitting,onClick:function(){return e.handleNext()}}),n("div",{class:{"icon-button":true,minus:true,disabled:this.zoomLevel==="normal"},innerHTML:O,onClick:function(){return e.handleZoomOut()}}),n("div",{class:{"icon-button":true,plus:true,disabled:this.zoomLevel==="zoom2"},innerHTML:Y,onClick:function(){return e.handleZoomIn()}}),n("div",{class:"icon-button download",innerHTML:Z,onClick:function(){return e.handleOptionSelected({detail:{id:"download"}})}}),n("div",{class:"icon-button print",innerHTML:F,onClick:function(){return e.handleOptionSelected({detail:{id:"print"}})}}))),n("div",{class:"document signed-document-container zoom-".concat(this.zoomLevel)},(this.envelope.documents||[]).map((function(t){var i=G(1,t.pages);return n(s,null,e.envelope.documents.length>1&&n("div",{class:"document-separator"},n("div",{innerHTML:V}),n("span",null,t.name)),i.map((function(i){var r;var s=((r=t.page_sizes)===null||r===void 0?void 0:r[i])||{width:612,height:792};p++;return n("verdocs-envelope-document-page",{id:"page-".concat(p),envelopeId:e.envelopeId,documentId:t.id,endpoint:e.endpoint,virtualWidth:s.width,virtualHeight:s.height,pageNumber:i,onPageRendered:function(t){return e.handlePageRendered(t)},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(){e.isDone=true;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.handleDoneDialogDismiss()}}),this.adoptingSignature&&n("verdocs-adopt-signature-dialog",{name:y(this.recipient),nameLocked:!!((t=this.recipient)===null||t===void 0?void 0:t.name_locked),onNext:function(t){return __awaiter(e,void 0,void 0,(function(){var e,i,n,r,s,o,a,l,c;var d=this;return __generator(this,(function(u){switch(u.label){case 0:console.log("[SIGN] Adopting signature/initials block",t.detail);this.showSpinner=true;return[4,fetch(t.detail.signature)];case 1:return[4,u.sent().blob()];case 2:e=u.sent();return[4,fetch(t.detail.initials)];case 3:return[4,u.sent().blob()];case 4:i=u.sent();return[4,f(this.endpoint,"signature",e)];case 5:n=u.sent();console.log("[SIGN] Created signature",n);this.signatureId=n.id;return[4,v(this.endpoint,"initial",i)];case 6:r=u.sent();console.log("[SIGN] Created initials",r);this.initialId=r.id;this.showSpinner=false;this.adoptingSignature=false;this.markEnvelopeStarted();if(!this.focusedField)return[3,9];s=this.getRecipientFields().find((function(e){return e.name===d.focusedField}));if(!s)return[3,8];o=s.type==="signature"?this.signatureId:s.type==="initial"?this.initialId:null;if(!o)return[3,8];return[4,h(this.endpoint,this.envelopeId,this.roleId,s.name,o,false)];case 7:a=u.sent();this.updateRecipientFieldValue(s.name,a);u.label=8;case 8:this.focusedField="";u.label=9;case 9:l=this.el.querySelectorAll("verdocs-field-signature");l.forEach((function(e){return e.setAttribute("signatureid",d.signatureId)}));c=this.el.querySelectorAll("verdocs-field-initial");c.forEach((function(e){return e.setAttribute("initialid",d.initialId)}));this.checkRecipientFields();return[2]}}))}))},onExit:function(){return e.adoptingSignature=false}}),(this.submitting||this.showSpinner)&&n("verdocs-portal",null,n("div",{class:"spinner-overlay"},n("verdocs-spinner",null))),this.showDownloadDialog&&n("verdocs-download-dialog",{signed:this.envelope.signed,polling:this.polling,documents:this.envelope.documents,onExit:function(){e.showDownloadDialog=false;e.stopPolling()},onDownload:function(t){return e.handleOnDownload(t)}}),!this.loading&&!this.isDone&&!this.submitted&&n("verdocs-sign-footer",{endpoint:this.endpoint,envelopeId:this.envelopeId,isDone:this.isDone,onAskQuestion:function(t){L(e.endpoint,e.envelopeId,e.roleId,{question:t.detail.question}).then((function(){return A("Your question has been sent.",{style:"success"})})).catch((function(e){console.log("Error asking question",e);A("Unable to send question, please try again later.",{style:"error"})}))},onDecline:function(){return e.declining=true},onFinishLater:function(){return e.showFinishLater=true}}))};Object.defineProperty(e.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());B.style=R()}}}));
2
+ //# sourceMappingURL=p-4a2d69b9.system.entry.js.map
@@ -1,2 +1,2 @@
1
- import{r as e,c as t,h as s,F as i,H as n,g as o}from"./p-CjTHbolG.js";import{i as a}from"./p-CGNX5HqF.js";import{S as r}from"./p-BU5rnXp2.js";import{S as l}from"./p-C7hFgM52.js";import"./p-BFTU3MAI.js";import"@verdocs/js-sdk";const d=()=>`verdocs-field-payment{font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif);width:24px;height:24px;display:block;font-size:11px;position:relative;scroll-margin:20px 0;border:1px solid #cfa;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left}verdocs-field-payment.disabled{opacity:0.5}verdocs-field-payment button,verdocs-field-payment div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-field-payment button{color:rgba(0, 0, 0, 0.87);font-weight:500;-webkit-transform-origin:0 0;transform-origin:0 0;height:100%;width:100%;background:none;font-size:11px}verdocs-field-payment button.hide{display:none}verdocs-field-payment input{float:left;font-family:Arial, sans-serif}verdocs-field-payment select{position:absolute;font-family:Arial, sans-serif;background:linear-gradient(55deg, transparent 50%, #333 50%), linear-gradient(125deg, #333 50%, transparent 50%), linear-gradient(to right, transparent, transparent);background-position:calc(100% - 7px) 4px, calc(100% - 3px) 4px, 100% 0;background-size:5px 5px, 5px 5px, 2.5em 2.5em;background-repeat:no-repeat;-webkit-appearance:none;-moz-appearance:none;appearance:none}verdocs-field-payment .frame{width:100%;height:100%;background-size:contain;text-align:left}verdocs-field-payment .frame img{position:absolute;height:auto;width:100%}verdocs-field-payment .settings-icon{position:absolute;top:-3px;left:-20px;display:inline-block;cursor:pointer;opacity:0.3}verdocs-field-payment .settings-icon svg{fill:#707ae5}verdocs-field-payment .settings-icon:hover{opacity:1}`;const c=class{constructor(s){e(this,s);this.settingsChanged=t(this,"settingsChanged");this.deleted=t(this,"deleted");this.source="template";this.sourceid="";this.fieldname="";this.field=null;this.disabled=false;this.done=false;this.editable=false;this.moveable=false;this.xscale=1;this.yscale=1;this.pagenumber=1;this.showingProperties=false;this.focused=false;this.signed=false;this.signatureUrl="";this.roleindex=0}handleBlur(){this.focused=false}componentWillLoad(){if(this.recipients&&this.recipients.length>0){const e=this.recipients.find((e=>e.type==="preparer"));console.log("Found preparer",e);if(e){this.preparedMessage=`Prepared by ${e["full_name"]}`}}}async focusField(){this.el.focus();this.focused=true}async showSettingsPanel(){const e=document.getElementById(`verdocs-settings-panel-${this.fieldname}`);if(e&&e.showPanel){e.showPanel()}}async hideSettingsPanel(){const e=document.getElementById(`verdocs-settings-panel-${this.fieldname}`);if(e&&e.hidePanel){e.hidePanel()}}onEditableChanged(e,t){if(t&&!e){a(this.el).unset()}}disconnectedCallback(){a(this.el).unset()}render(){const{source:e,sourceid:t,fieldname:o,editable:a=false,done:d=false,disabled:c=false,focused:p,xscale:h=1,yscale:f=1}=this;const{index:g,field:m}=l.getField(e,t,o,this.field);const u=`signer-${g%10+1}`;if(!m){return s(i,null)}if(d){return s(n,{class:{"verdocs-field":true,done:d}},"$✓")}return s(n,{class:{"verdocs-field":true,focused:p,disabled:c,[u]:true}},s("button",{class:{hide:this.signed}},"$"),this.signed?s("div",{class:"frame"}):s("div",{style:{display:"none"}}),s("img",{width:"100%",height:"100%",src:this.signatureUrl,alt:"Payment Icon"}),a&&s(i,null,s("div",{id:`verdocs-settings-panel-trigger-${o}`,style:{transform:`scale(${Math.floor(1/h*1e3)/1e3}, ${Math.floor(1/f*1e3)/1e3})`},class:"settings-icon",innerHTML:r,onClick:e=>{e.stopPropagation();this.showingProperties=!this.showingProperties}}),this.showingProperties&&s("verdocs-portal",{anchor:`verdocs-settings-panel-trigger-${m.name}`,onClickAway:()=>this.showingProperties=false},s("verdocs-template-field-properties",{templateId:t,fieldName:m.name,onClose:()=>this.showingProperties=false,onDelete:()=>{var e;(e=this.deleted)===null||e===void 0?void 0:e.emit({fieldName:o});return this.hideSettingsPanel()},onSettingsChanged:e=>{var t;(t=this.settingsChanged)===null||t===void 0?void 0:t.emit(e.detail);return this.hideSettingsPanel()},helpText:"Check boxes allow the user to select one or more (non-exclusive) options."}))))}get el(){return o(this)}static get watchers(){return{editable:[{onEditableChanged:0}]}}};c.style=d();export{c as verdocs_field_payment};
2
- //# sourceMappingURL=p-50d51d96.entry.js.map
1
+ import{r as e,c as t,h as s,F as i,H as n,g as o}from"./p-CjTHbolG.js";import{i as a}from"./p-C4ygd3v_.js";import{S as r}from"./p-BU5rnXp2.js";import{S as l}from"./p-C7hFgM52.js";import"./p-B85MJLTf.js";import"@verdocs/js-sdk";const d=()=>`verdocs-field-payment{font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif);width:24px;height:24px;display:block;font-size:11px;position:relative;scroll-margin:20px 0;border:1px solid #cfa;background-color:transparent;-webkit-transform-origin:bottom left;transform-origin:bottom left}verdocs-field-payment.disabled{opacity:0.5}verdocs-field-payment button,verdocs-field-payment div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-field-payment button{color:rgba(0, 0, 0, 0.87);font-weight:500;-webkit-transform-origin:0 0;transform-origin:0 0;height:100%;width:100%;background:none;font-size:11px}verdocs-field-payment button.hide{display:none}verdocs-field-payment input{float:left;font-family:Arial, sans-serif}verdocs-field-payment select{position:absolute;font-family:Arial, sans-serif;background:linear-gradient(55deg, transparent 50%, #333 50%), linear-gradient(125deg, #333 50%, transparent 50%), linear-gradient(to right, transparent, transparent);background-position:calc(100% - 7px) 4px, calc(100% - 3px) 4px, 100% 0;background-size:5px 5px, 5px 5px, 2.5em 2.5em;background-repeat:no-repeat;-webkit-appearance:none;-moz-appearance:none;appearance:none}verdocs-field-payment .frame{width:100%;height:100%;background-size:contain;text-align:left}verdocs-field-payment .frame img{position:absolute;height:auto;width:100%}verdocs-field-payment .settings-icon{position:absolute;top:-3px;left:-20px;display:inline-block;cursor:pointer;opacity:0.3}verdocs-field-payment .settings-icon svg{fill:#707ae5}verdocs-field-payment .settings-icon:hover{opacity:1}`;const c=class{constructor(s){e(this,s);this.settingsChanged=t(this,"settingsChanged");this.deleted=t(this,"deleted");this.source="template";this.sourceid="";this.fieldname="";this.field=null;this.disabled=false;this.done=false;this.editable=false;this.moveable=false;this.xscale=1;this.yscale=1;this.pagenumber=1;this.showingProperties=false;this.focused=false;this.signed=false;this.signatureUrl="";this.roleindex=0}handleBlur(){this.focused=false}componentWillLoad(){if(this.recipients&&this.recipients.length>0){const e=this.recipients.find((e=>e.type==="preparer"));console.log("Found preparer",e);if(e){this.preparedMessage=`Prepared by ${e["full_name"]}`}}}async focusField(){this.el.focus();this.focused=true}async showSettingsPanel(){const e=document.getElementById(`verdocs-settings-panel-${this.fieldname}`);if(e&&e.showPanel){e.showPanel()}}async hideSettingsPanel(){const e=document.getElementById(`verdocs-settings-panel-${this.fieldname}`);if(e&&e.hidePanel){e.hidePanel()}}onEditableChanged(e,t){if(t&&!e){a(this.el).unset()}}disconnectedCallback(){a(this.el).unset()}render(){const{source:e,sourceid:t,fieldname:o,editable:a=false,done:d=false,disabled:c=false,focused:p,xscale:h=1,yscale:f=1}=this;const{index:g,field:m}=l.getField(e,t,o,this.field);const u=`signer-${g%10+1}`;if(!m){return s(i,null)}if(d){return s(n,{class:{"verdocs-field":true,done:d}},"$✓")}return s(n,{class:{"verdocs-field":true,focused:p,disabled:c,[u]:true}},s("button",{class:{hide:this.signed}},"$"),this.signed?s("div",{class:"frame"}):s("div",{style:{display:"none"}}),s("img",{width:"100%",height:"100%",src:this.signatureUrl,alt:"Payment Icon"}),a&&s(i,null,s("div",{id:`verdocs-settings-panel-trigger-${o}`,style:{transform:`scale(${Math.floor(1/h*1e3)/1e3}, ${Math.floor(1/f*1e3)/1e3})`},class:"settings-icon",innerHTML:r,onClick:e=>{e.stopPropagation();this.showingProperties=!this.showingProperties}}),this.showingProperties&&s("verdocs-portal",{anchor:`verdocs-settings-panel-trigger-${m.name}`,onClickAway:()=>this.showingProperties=false},s("verdocs-template-field-properties",{templateId:t,fieldName:m.name,onClose:()=>this.showingProperties=false,onDelete:()=>{var e;(e=this.deleted)===null||e===void 0?void 0:e.emit({fieldName:o});return this.hideSettingsPanel()},onSettingsChanged:e=>{var t;(t=this.settingsChanged)===null||t===void 0?void 0:t.emit(e.detail);return this.hideSettingsPanel()},helpText:"Check boxes allow the user to select one or more (non-exclusive) options."}))))}get el(){return o(this)}static get watchers(){return{editable:[{onEditableChanged:0}]}}};c.style=d();export{c as verdocs_field_payment};
2
+ //# sourceMappingURL=p-5c2025ca.entry.js.map