@verdocs/web-sdk 1.4.0 → 1.4.7

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 (361) hide show
  1. package/dist/cjs/Auth-4ec35ac7.js +97 -0
  2. package/dist/cjs/{Token-b86e5335.js → Token-ac80819a.js} +3 -135
  3. package/dist/{verdocs-web-sdk/buffer-es6-5cef4368.js → cjs/buffer-es6-bc8199b1.js} +47 -14
  4. package/dist/cjs/index-589f3be8.js +1356 -0
  5. package/dist/cjs/loader.cjs.js +3 -19
  6. package/dist/cjs/{index-9c6e5f50.js → popper-71bf3058.js} +0 -186
  7. package/dist/cjs/verdocs-auth.cjs.entry.js +10 -206
  8. package/dist/cjs/verdocs-button_2.cjs.entry.js +104 -0
  9. package/dist/cjs/{verdocs-view.cjs.entry.js → verdocs-dropdown_12.cjs.entry.js} +3314 -51
  10. package/dist/cjs/verdocs-initial-dialog.cjs.entry.js +1 -1
  11. package/dist/cjs/verdocs-kba-dialog.cjs.entry.js +2 -2
  12. package/dist/cjs/verdocs-loader.cjs.entry.js +1 -1
  13. package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +2 -2
  14. package/dist/cjs/verdocs-organization-card.cjs.entry.js +1 -1
  15. package/dist/cjs/verdocs-quick-functions.cjs.entry.js +2 -2
  16. package/dist/cjs/verdocs-search-activity_2.cjs.entry.js +228 -0
  17. package/dist/cjs/verdocs-search-tabs.cjs.entry.js +2 -2
  18. package/dist/cjs/verdocs-search.cjs.entry.js +2 -2
  19. package/dist/cjs/verdocs-sign.cjs.entry.js +4 -1512
  20. package/dist/cjs/verdocs-signature-dialog.cjs.entry.js +2 -2
  21. package/dist/cjs/verdocs-status-indicator.cjs.entry.js +4 -90
  22. package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
  23. package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
  24. package/dist/cjs/verdocs-toggle.cjs.entry.js +1 -1
  25. package/dist/cjs/verdocs-upload-dialog.cjs.entry.js +2 -2
  26. package/dist/cjs/verdocs-web-sdk.cjs.js +5 -117
  27. package/dist/collection/collection-manifest.json +1 -1
  28. package/dist/collection/components/controls/verdocs-button/verdocs-button.css +2 -2
  29. package/dist/collection/components/controls/verdocs-button/verdocs-button.js +0 -1
  30. package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.css +1 -1
  31. package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.css +2 -2
  32. package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.css +4 -4
  33. package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.css +2 -2
  34. package/dist/collection/components/elements/verdocs-field-attachment/verdocs-field-attachment.css +2 -4
  35. package/dist/collection/components/elements/verdocs-field-checkbox-group/verdocs-field-checkbox.css +1 -3
  36. package/dist/collection/components/elements/verdocs-field-date/verdocs-field-date.css +1 -3
  37. package/dist/collection/components/elements/verdocs-field-dropdown/verdocs-field-dropdown.css +1 -3
  38. package/dist/collection/components/elements/verdocs-field-initial/verdocs-field-initial.css +1 -3
  39. package/dist/collection/components/elements/verdocs-field-payment/verdocs-field-payment.css +1 -3
  40. package/dist/collection/components/elements/verdocs-field-radio-button-group/verdocs-field-radio-button.css +1 -3
  41. package/dist/collection/components/elements/verdocs-field-signature/verdocs-field-signature.css +1 -3
  42. package/dist/collection/components/elements/verdocs-field-textarea/verdocs-field-textarea.css +1 -3
  43. package/dist/collection/components/elements/verdocs-field-textbox/verdocs-field-textbox.css +1 -3
  44. package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.css +1 -3
  45. package/dist/collection/components/elements/verdocs-search-activity/verdocs-search-activity.css +1 -3
  46. package/dist/collection/components/elements/verdocs-search-box/verdocs-search-box.css +1 -3
  47. package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.css +1 -0
  48. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.css +1 -1
  49. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +7 -9
  50. package/dist/collection/components/embeds/verdocs-search/verdocs-search.css +1 -1
  51. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.css +1 -1
  52. package/dist/collection/components/embeds/verdocs-view/verdocs-view.css +1 -1
  53. package/dist/components/Auth.js +23 -88
  54. package/dist/components/Token.js +2 -135
  55. package/dist/components/buffer-es6.js +39 -14
  56. package/dist/components/index.js +0 -4
  57. package/dist/components/{index3.js → popper.js} +0 -186
  58. package/dist/components/verdocs-auth.js +6 -201
  59. package/dist/components/verdocs-button2.js +2 -3
  60. package/dist/components/verdocs-dropdown2.js +2 -2
  61. package/dist/components/verdocs-field-attachment2.js +2 -2
  62. package/dist/components/verdocs-field-checkbox2.js +2 -2
  63. package/dist/components/verdocs-field-date2.js +2 -214
  64. package/dist/components/verdocs-field-dropdown2.js +2 -2
  65. package/dist/components/verdocs-field-initial2.js +2 -2
  66. package/dist/components/verdocs-field-payment2.js +2 -2
  67. package/dist/components/verdocs-field-radio-button2.js +2 -2
  68. package/dist/components/verdocs-field-signature2.js +2 -2
  69. package/dist/components/verdocs-field-textarea2.js +2 -2
  70. package/dist/components/verdocs-field-textbox2.js +2 -2
  71. package/dist/components/verdocs-initial-dialog2.js +1 -1
  72. package/dist/components/verdocs-kba-dialog.js +2 -2
  73. package/dist/components/verdocs-loader2.js +1 -1
  74. package/dist/components/verdocs-ok-dialog2.js +2 -2
  75. package/dist/components/verdocs-organization-card.js +1 -1
  76. package/dist/components/verdocs-quick-functions.js +2 -2
  77. package/dist/components/verdocs-search-activity2.js +16 -104
  78. package/dist/components/verdocs-search-box2.js +2 -2
  79. package/dist/components/verdocs-search-tabs.js +2 -2
  80. package/dist/components/verdocs-search.js +2 -2
  81. package/dist/components/verdocs-sign.js +2 -1509
  82. package/dist/components/verdocs-signature-dialog2.js +2 -2
  83. package/dist/components/verdocs-status-indicator.js +3 -88
  84. package/dist/components/verdocs-template-card.js +1 -1
  85. package/dist/components/verdocs-template-tags.js +1 -1
  86. package/dist/components/verdocs-text-input2.js +1 -1
  87. package/dist/components/verdocs-toggle.js +1 -1
  88. package/dist/components/verdocs-upload-dialog2.js +2 -2
  89. package/dist/components/verdocs-view2.js +7 -34
  90. package/dist/docs.json +3 -3
  91. package/dist/esm/Auth-15cd42a8.js +92 -0
  92. package/dist/{verdocs-web-sdk/Token-29eea56d.js → esm/Token-ce37bd9d.js} +2 -135
  93. package/dist/{cjs/buffer-es6-b2c1c885.js → esm/buffer-es6-136673c8.js} +38 -15
  94. package/dist/esm/index-859bc689.js +1327 -0
  95. package/dist/esm/loader.js +3 -19
  96. package/dist/esm/{index-432c65a6.js → popper-93ecb064.js} +0 -186
  97. package/dist/esm/verdocs-auth.entry.js +7 -203
  98. package/dist/esm/verdocs-button_2.entry.js +99 -0
  99. package/dist/esm/{verdocs-view.entry.js → verdocs-dropdown_12.entry.js} +3287 -35
  100. package/dist/esm/verdocs-initial-dialog.entry.js +1 -1
  101. package/dist/esm/verdocs-kba-dialog.entry.js +2 -2
  102. package/dist/esm/verdocs-loader.entry.js +1 -1
  103. package/dist/esm/verdocs-ok-dialog.entry.js +2 -2
  104. package/dist/esm/verdocs-organization-card.entry.js +1 -1
  105. package/dist/esm/verdocs-quick-functions.entry.js +2 -2
  106. package/dist/esm/verdocs-search-activity_2.entry.js +223 -0
  107. package/dist/esm/verdocs-search-tabs.entry.js +2 -2
  108. package/dist/esm/verdocs-search.entry.js +2 -2
  109. package/dist/esm/verdocs-sign.entry.js +4 -1512
  110. package/dist/esm/verdocs-signature-dialog.entry.js +2 -2
  111. package/dist/esm/verdocs-status-indicator.entry.js +3 -89
  112. package/dist/esm/verdocs-template-card.entry.js +1 -1
  113. package/dist/esm/verdocs-template-tags.entry.js +1 -1
  114. package/dist/esm/verdocs-toggle.entry.js +1 -1
  115. package/dist/esm/verdocs-upload-dialog.entry.js +2 -2
  116. package/dist/esm/verdocs-web-sdk.js +5 -117
  117. package/dist/esm-es5/Auth-15cd42a8.js +1 -0
  118. package/dist/esm-es5/Token-ce37bd9d.js +1 -0
  119. package/dist/esm-es5/buffer-es6-136673c8.js +7 -0
  120. package/dist/esm-es5/index-859bc689.js +2 -0
  121. package/dist/esm-es5/loader.js +1 -1
  122. package/dist/esm-es5/popper-93ecb064.js +1 -0
  123. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  124. package/dist/esm-es5/verdocs-button_2.entry.js +1 -0
  125. package/dist/esm-es5/verdocs-dropdown_12.entry.js +23 -0
  126. package/dist/esm-es5/verdocs-initial-dialog.entry.js +1 -1
  127. package/dist/esm-es5/verdocs-kba-dialog.entry.js +1 -1
  128. package/dist/esm-es5/verdocs-loader.entry.js +1 -1
  129. package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
  130. package/dist/esm-es5/verdocs-organization-card.entry.js +1 -1
  131. package/dist/esm-es5/verdocs-quick-functions.entry.js +1 -1
  132. package/dist/esm-es5/verdocs-search-activity_2.entry.js +1 -0
  133. package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
  134. package/dist/esm-es5/verdocs-search.entry.js +1 -1
  135. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  136. package/dist/esm-es5/verdocs-signature-dialog.entry.js +1 -1
  137. package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -11
  138. package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
  139. package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
  140. package/dist/esm-es5/verdocs-toggle.entry.js +1 -1
  141. package/dist/esm-es5/verdocs-upload-dialog.entry.js +1 -1
  142. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  143. package/dist/types/components/embeds/verdocs-auth/verdocs-auth.d.ts +4 -2
  144. package/dist/verdocs-web-sdk/index.esm.js +0 -1
  145. package/dist/verdocs-web-sdk/p-0353c423.entry.js +1 -0
  146. package/dist/verdocs-web-sdk/p-0c0b4a10.system.entry.js +1 -0
  147. package/dist/verdocs-web-sdk/p-144e0842.system.entry.js +1 -0
  148. package/dist/verdocs-web-sdk/p-15b7ed4d.entry.js +1 -0
  149. package/dist/verdocs-web-sdk/p-1f55d8ac.system.entry.js +1 -0
  150. package/dist/verdocs-web-sdk/p-2b57857d.system.entry.js +1 -0
  151. package/dist/verdocs-web-sdk/p-2bc58746.js +2 -0
  152. package/dist/verdocs-web-sdk/p-2c161242.system.entry.js +1 -0
  153. package/dist/verdocs-web-sdk/p-39633a02.entry.js +1 -0
  154. package/dist/verdocs-web-sdk/p-432c3151.system.entry.js +1 -0
  155. package/dist/verdocs-web-sdk/p-4368df79.system.entry.js +23 -0
  156. package/dist/verdocs-web-sdk/p-4c66f794.js +1 -0
  157. package/dist/verdocs-web-sdk/{index.system.js → p-50ea2036.system.js} +0 -0
  158. package/dist/verdocs-web-sdk/p-5dfd73f9.system.js +7 -0
  159. package/dist/verdocs-web-sdk/p-6393b2b4.entry.js +1 -0
  160. package/dist/verdocs-web-sdk/p-66b19637.entry.js +1 -0
  161. package/dist/verdocs-web-sdk/p-6802ef91.system.entry.js +1 -0
  162. package/dist/verdocs-web-sdk/p-69ef22bd.entry.js +1 -0
  163. package/dist/verdocs-web-sdk/p-6fa6fb3c.entry.js +1 -0
  164. package/dist/verdocs-web-sdk/p-737b2e99.js +1 -0
  165. package/dist/verdocs-web-sdk/p-829b235c.entry.js +1 -0
  166. package/dist/verdocs-web-sdk/p-8730dc92.system.js +1 -0
  167. package/dist/verdocs-web-sdk/p-88a300c5.system.js +1 -0
  168. package/dist/verdocs-web-sdk/p-96c0bf40.system.js +1 -0
  169. package/dist/verdocs-web-sdk/p-9b34c794.entry.js +1 -0
  170. package/dist/verdocs-web-sdk/p-9d8d8c78.entry.js +1 -0
  171. package/dist/verdocs-web-sdk/p-a1143ddb.entry.js +23 -0
  172. package/dist/verdocs-web-sdk/p-a7cfe6fc.entry.js +1 -0
  173. package/dist/verdocs-web-sdk/p-b9164c4b.system.entry.js +1 -0
  174. package/dist/verdocs-web-sdk/p-bf2620cb.entry.js +1 -0
  175. package/dist/verdocs-web-sdk/p-c2f97ef9.system.entry.js +1 -0
  176. package/dist/verdocs-web-sdk/p-caed7818.system.js +2 -0
  177. package/dist/verdocs-web-sdk/p-cc127684.system.entry.js +1 -0
  178. package/dist/verdocs-web-sdk/p-cd6a2c40.system.entry.js +1 -0
  179. package/dist/verdocs-web-sdk/p-cec13589.system.js +1 -0
  180. package/dist/verdocs-web-sdk/p-d14a6057.system.entry.js +1 -0
  181. package/dist/verdocs-web-sdk/p-d6206c17.system.entry.js +1 -0
  182. package/dist/verdocs-web-sdk/p-da667373.entry.js +1 -0
  183. package/dist/verdocs-web-sdk/p-e2e643c5.system.entry.js +1 -0
  184. package/dist/verdocs-web-sdk/p-e6e2894e.js +1 -0
  185. package/dist/verdocs-web-sdk/p-e719f9ca.system.entry.js +1 -0
  186. package/dist/verdocs-web-sdk/p-ea6d6dc7.entry.js +1 -0
  187. package/dist/verdocs-web-sdk/p-ed5baeb4.entry.js +1 -0
  188. package/dist/verdocs-web-sdk/p-ef932a87.js +1 -0
  189. package/dist/verdocs-web-sdk/p-f0d0f959.system.entry.js +1 -0
  190. package/dist/verdocs-web-sdk/p-f0e6fde0.entry.js +1 -0
  191. package/dist/verdocs-web-sdk/p-f4219236.entry.js +1 -0
  192. package/dist/verdocs-web-sdk/p-f7e26fbd.entry.js +1 -0
  193. package/dist/verdocs-web-sdk/p-f814d5cc.system.entry.js +1 -0
  194. package/dist/verdocs-web-sdk/p-fd853e54.system.entry.js +1 -0
  195. package/dist/verdocs-web-sdk/verdocs-web-sdk.css +1 -57
  196. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -129
  197. package/dist/verdocs-web-sdk/verdocs-web-sdk.js +2 -1
  198. package/package.json +4 -4
  199. package/dist/cjs/Auth-0146ddd8.js +0 -161
  200. package/dist/cjs/app-globals-3a1e7e63.js +0 -5
  201. package/dist/cjs/css-shim-e9231523.js +0 -6
  202. package/dist/cjs/dom-7fb93981.js +0 -75
  203. package/dist/cjs/index-a24f3b6a.js +0 -3096
  204. package/dist/cjs/index-b5a86b04.js +0 -4
  205. package/dist/cjs/index-c4be37e1.js +0 -54
  206. package/dist/cjs/shadow-css-abc19485.js +0 -389
  207. package/dist/cjs/verdocs-button.cjs.entry.js +0 -49
  208. package/dist/cjs/verdocs-dropdown.cjs.entry.js +0 -80
  209. package/dist/cjs/verdocs-field-attachment.cjs.entry.js +0 -59
  210. package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +0 -39
  211. package/dist/cjs/verdocs-field-date.cjs.entry.js +0 -2968
  212. package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +0 -59
  213. package/dist/cjs/verdocs-field-initial.cjs.entry.js +0 -52
  214. package/dist/cjs/verdocs-field-payment.cjs.entry.js +0 -86
  215. package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +0 -48
  216. package/dist/cjs/verdocs-field-signature.cjs.entry.js +0 -52
  217. package/dist/cjs/verdocs-field-textarea.cjs.entry.js +0 -63
  218. package/dist/cjs/verdocs-field-textbox.cjs.entry.js +0 -63
  219. package/dist/cjs/verdocs-search-activity.cjs.entry.js +0 -263
  220. package/dist/cjs/verdocs-search-box.cjs.entry.js +0 -60
  221. package/dist/cjs/verdocs-text-input.cjs.entry.js +0 -62
  222. package/dist/components/index2.js +0 -1
  223. package/dist/components/index4.js +0 -47
  224. package/dist/custom-elements.json +0 -830
  225. package/dist/esm/Auth-4b21fced.js +0 -157
  226. package/dist/esm/Token-29eea56d.js +0 -2458
  227. package/dist/esm/app-globals-0f993ce5.js +0 -3
  228. package/dist/esm/buffer-es6-5cef4368.js +0 -1985
  229. package/dist/esm/css-shim-60f618b9.js +0 -4
  230. package/dist/esm/dom-4eeb3fee.js +0 -73
  231. package/dist/esm/index-97ec070b.js +0 -47
  232. package/dist/esm/index-ddbd60b5.js +0 -3059
  233. package/dist/esm/index-ef172650.js +0 -1
  234. package/dist/esm/shadow-css-02866686.js +0 -387
  235. package/dist/esm/verdocs-button.entry.js +0 -45
  236. package/dist/esm/verdocs-dropdown.entry.js +0 -76
  237. package/dist/esm/verdocs-field-attachment.entry.js +0 -55
  238. package/dist/esm/verdocs-field-checkbox.entry.js +0 -35
  239. package/dist/esm/verdocs-field-date.entry.js +0 -2964
  240. package/dist/esm/verdocs-field-dropdown.entry.js +0 -55
  241. package/dist/esm/verdocs-field-initial.entry.js +0 -48
  242. package/dist/esm/verdocs-field-payment.entry.js +0 -82
  243. package/dist/esm/verdocs-field-radio-button.entry.js +0 -44
  244. package/dist/esm/verdocs-field-signature.entry.js +0 -48
  245. package/dist/esm/verdocs-field-textarea.entry.js +0 -59
  246. package/dist/esm/verdocs-field-textbox.entry.js +0 -59
  247. package/dist/esm/verdocs-search-activity.entry.js +0 -259
  248. package/dist/esm/verdocs-search-box.entry.js +0 -56
  249. package/dist/esm/verdocs-text-input.entry.js +0 -58
  250. package/dist/esm-es5/Auth-4b21fced.js +0 -1
  251. package/dist/esm-es5/Token-29eea56d.js +0 -1
  252. package/dist/esm-es5/app-globals-0f993ce5.js +0 -1
  253. package/dist/esm-es5/buffer-es6-5cef4368.js +0 -7
  254. package/dist/esm-es5/css-shim-60f618b9.js +0 -1
  255. package/dist/esm-es5/dom-4eeb3fee.js +0 -21
  256. package/dist/esm-es5/index-432c65a6.js +0 -1
  257. package/dist/esm-es5/index-97ec070b.js +0 -1
  258. package/dist/esm-es5/index-ddbd60b5.js +0 -2
  259. package/dist/esm-es5/index-ef172650.js +0 -1
  260. package/dist/esm-es5/shadow-css-02866686.js +0 -12
  261. package/dist/esm-es5/verdocs-button.entry.js +0 -1
  262. package/dist/esm-es5/verdocs-dropdown.entry.js +0 -1
  263. package/dist/esm-es5/verdocs-field-attachment.entry.js +0 -1
  264. package/dist/esm-es5/verdocs-field-checkbox.entry.js +0 -1
  265. package/dist/esm-es5/verdocs-field-date.entry.js +0 -1
  266. package/dist/esm-es5/verdocs-field-dropdown.entry.js +0 -1
  267. package/dist/esm-es5/verdocs-field-initial.entry.js +0 -1
  268. package/dist/esm-es5/verdocs-field-payment.entry.js +0 -1
  269. package/dist/esm-es5/verdocs-field-radio-button.entry.js +0 -1
  270. package/dist/esm-es5/verdocs-field-signature.entry.js +0 -1
  271. package/dist/esm-es5/verdocs-field-textarea.entry.js +0 -1
  272. package/dist/esm-es5/verdocs-field-textbox.entry.js +0 -1
  273. package/dist/esm-es5/verdocs-search-activity.entry.js +0 -1
  274. package/dist/esm-es5/verdocs-search-box.entry.js +0 -1
  275. package/dist/esm-es5/verdocs-text-input.entry.js +0 -1
  276. package/dist/esm-es5/verdocs-view.entry.js +0 -23
  277. package/dist/verdocs-web-sdk/Auth-4b21fced.js +0 -157
  278. package/dist/verdocs-web-sdk/Auth-82e38539.system.js +0 -1
  279. package/dist/verdocs-web-sdk/Token-c1cf309e.system.js +0 -1
  280. package/dist/verdocs-web-sdk/app-globals-0f993ce5.js +0 -3
  281. package/dist/verdocs-web-sdk/app-globals-497eb362.system.js +0 -1
  282. package/dist/verdocs-web-sdk/buffer-es6-aa11181b.system.js +0 -7
  283. package/dist/verdocs-web-sdk/css-shim-60f618b9.js +0 -4
  284. package/dist/verdocs-web-sdk/css-shim-e41ceccc.system.js +0 -1
  285. package/dist/verdocs-web-sdk/dom-4eeb3fee.js +0 -73
  286. package/dist/verdocs-web-sdk/dom-89b5deb7.system.js +0 -21
  287. package/dist/verdocs-web-sdk/index-027b383e.system.js +0 -1
  288. package/dist/verdocs-web-sdk/index-06e036a1.system.js +0 -1
  289. package/dist/verdocs-web-sdk/index-432c65a6.js +0 -1974
  290. package/dist/verdocs-web-sdk/index-5d49316f.system.js +0 -1
  291. package/dist/verdocs-web-sdk/index-6465280a.system.js +0 -2
  292. package/dist/verdocs-web-sdk/index-97ec070b.js +0 -47
  293. package/dist/verdocs-web-sdk/index-ddbd60b5.js +0 -3059
  294. package/dist/verdocs-web-sdk/index-ef172650.js +0 -1
  295. package/dist/verdocs-web-sdk/shadow-css-02866686.js +0 -387
  296. package/dist/verdocs-web-sdk/shadow-css-6207e159.system.js +0 -13
  297. package/dist/verdocs-web-sdk/verdocs-auth.entry.js +0 -302
  298. package/dist/verdocs-web-sdk/verdocs-auth.system.entry.js +0 -1
  299. package/dist/verdocs-web-sdk/verdocs-button.entry.js +0 -45
  300. package/dist/verdocs-web-sdk/verdocs-button.system.entry.js +0 -1
  301. package/dist/verdocs-web-sdk/verdocs-dropdown.entry.js +0 -76
  302. package/dist/verdocs-web-sdk/verdocs-dropdown.system.entry.js +0 -1
  303. package/dist/verdocs-web-sdk/verdocs-field-attachment.entry.js +0 -55
  304. package/dist/verdocs-web-sdk/verdocs-field-attachment.system.entry.js +0 -1
  305. package/dist/verdocs-web-sdk/verdocs-field-checkbox.entry.js +0 -35
  306. package/dist/verdocs-web-sdk/verdocs-field-checkbox.system.entry.js +0 -1
  307. package/dist/verdocs-web-sdk/verdocs-field-date.entry.js +0 -2964
  308. package/dist/verdocs-web-sdk/verdocs-field-date.system.entry.js +0 -1
  309. package/dist/verdocs-web-sdk/verdocs-field-dropdown.entry.js +0 -55
  310. package/dist/verdocs-web-sdk/verdocs-field-dropdown.system.entry.js +0 -1
  311. package/dist/verdocs-web-sdk/verdocs-field-initial.entry.js +0 -48
  312. package/dist/verdocs-web-sdk/verdocs-field-initial.system.entry.js +0 -1
  313. package/dist/verdocs-web-sdk/verdocs-field-payment.entry.js +0 -82
  314. package/dist/verdocs-web-sdk/verdocs-field-payment.system.entry.js +0 -1
  315. package/dist/verdocs-web-sdk/verdocs-field-radio-button.entry.js +0 -44
  316. package/dist/verdocs-web-sdk/verdocs-field-radio-button.system.entry.js +0 -1
  317. package/dist/verdocs-web-sdk/verdocs-field-signature.entry.js +0 -48
  318. package/dist/verdocs-web-sdk/verdocs-field-signature.system.entry.js +0 -1
  319. package/dist/verdocs-web-sdk/verdocs-field-textarea.entry.js +0 -59
  320. package/dist/verdocs-web-sdk/verdocs-field-textarea.system.entry.js +0 -1
  321. package/dist/verdocs-web-sdk/verdocs-field-textbox.entry.js +0 -59
  322. package/dist/verdocs-web-sdk/verdocs-field-textbox.system.entry.js +0 -1
  323. package/dist/verdocs-web-sdk/verdocs-initial-dialog.entry.js +0 -239
  324. package/dist/verdocs-web-sdk/verdocs-initial-dialog.system.entry.js +0 -1
  325. package/dist/verdocs-web-sdk/verdocs-kba-dialog.entry.js +0 -77
  326. package/dist/verdocs-web-sdk/verdocs-kba-dialog.system.entry.js +0 -1
  327. package/dist/verdocs-web-sdk/verdocs-loader.entry.js +0 -15
  328. package/dist/verdocs-web-sdk/verdocs-loader.system.entry.js +0 -1
  329. package/dist/verdocs-web-sdk/verdocs-ok-dialog.entry.js +0 -44
  330. package/dist/verdocs-web-sdk/verdocs-ok-dialog.system.entry.js +0 -1
  331. package/dist/verdocs-web-sdk/verdocs-organization-card.entry.js +0 -18
  332. package/dist/verdocs-web-sdk/verdocs-organization-card.system.entry.js +0 -1
  333. package/dist/verdocs-web-sdk/verdocs-quick-functions.entry.js +0 -27
  334. package/dist/verdocs-web-sdk/verdocs-quick-functions.system.entry.js +0 -1
  335. package/dist/verdocs-web-sdk/verdocs-search-activity.entry.js +0 -259
  336. package/dist/verdocs-web-sdk/verdocs-search-activity.system.entry.js +0 -1
  337. package/dist/verdocs-web-sdk/verdocs-search-box.entry.js +0 -56
  338. package/dist/verdocs-web-sdk/verdocs-search-box.system.entry.js +0 -1
  339. package/dist/verdocs-web-sdk/verdocs-search-tabs.entry.js +0 -16
  340. package/dist/verdocs-web-sdk/verdocs-search-tabs.system.entry.js +0 -1
  341. package/dist/verdocs-web-sdk/verdocs-search.entry.js +0 -15
  342. package/dist/verdocs-web-sdk/verdocs-search.system.entry.js +0 -1
  343. package/dist/verdocs-web-sdk/verdocs-sign.entry.js +0 -1995
  344. package/dist/verdocs-web-sdk/verdocs-sign.system.entry.js +0 -1
  345. package/dist/verdocs-web-sdk/verdocs-signature-dialog.entry.js +0 -235
  346. package/dist/verdocs-web-sdk/verdocs-signature-dialog.system.entry.js +0 -1
  347. package/dist/verdocs-web-sdk/verdocs-status-indicator.entry.js +0 -7611
  348. package/dist/verdocs-web-sdk/verdocs-status-indicator.system.entry.js +0 -1
  349. package/dist/verdocs-web-sdk/verdocs-template-card.entry.js +0 -34
  350. package/dist/verdocs-web-sdk/verdocs-template-card.system.entry.js +0 -1
  351. package/dist/verdocs-web-sdk/verdocs-template-tags.entry.js +0 -16
  352. package/dist/verdocs-web-sdk/verdocs-template-tags.system.entry.js +0 -1
  353. package/dist/verdocs-web-sdk/verdocs-text-input.entry.js +0 -58
  354. package/dist/verdocs-web-sdk/verdocs-text-input.system.entry.js +0 -1
  355. package/dist/verdocs-web-sdk/verdocs-toggle.entry.js +0 -32
  356. package/dist/verdocs-web-sdk/verdocs-toggle.system.entry.js +0 -1
  357. package/dist/verdocs-web-sdk/verdocs-upload-dialog.entry.js +0 -119
  358. package/dist/verdocs-web-sdk/verdocs-upload-dialog.system.entry.js +0 -1
  359. package/dist/verdocs-web-sdk/verdocs-view.entry.js +0 -16118
  360. package/dist/verdocs-web-sdk/verdocs-view.system.entry.js +0 -23
  361. package/dist/verdocs-web-sdk/verdocs-web-sdk.system.js +0 -1
@@ -1 +1 @@
1
- import{r as registerInstance,e as createEvent,h,f as Host}from"./index-ddbd60b5.js";var verdocsInitialDialogCss='verdocs-initial-dialog{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;display:none}verdocs-initial-dialog.open{display:block}verdocs-initial-dialog .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-initial-dialog .dialog{width:100%;max-width:340px;border-radius:4px;overflow:hidden;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);background:#f9f9f9}verdocs-initial-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:20px 20px 0 20px;line-height:28px;font-size:20px;font-weight:500}verdocs-initial-dialog .content{font-size:14px;padding:20px}verdocs-initial-dialog .buttons{display:-ms-flexbox;display:flex;margin:20px 0 0 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center}verdocs-initial-dialog .buttons verdocs-button{margin-left:16px}verdocs-initial-dialog canvas{background:#fff;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 auto;width:300px;height:79px;max-width:100%;-webkit-box-shadow:0 0 6px 0 #0000001f;box-shadow:0 0 6px 0 #0000001f}verdocs-initial-dialog .disclaimer{text-align:justify;padding:8px 0;font-size:11px;line-height:14px;color:rgba(0, 0, 0, 0.54)}verdocs-initial-dialog .as-shown{font-size:11px;margin:4px 0 20px 4px;color:rgba(0, 0, 0, 0.54)}verdocs-initial-dialog .tabs{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-initial-dialog .tabs .tab{padding:8px 15px;cursor:pointer}verdocs-initial-dialog .tabs .tab.active{border-bottom:2px solid #cccccc}verdocs-initial-dialog .tabs .tab:hover{color:#55bc81}';var VerdocsInitialDialog=function(){function t(t){registerInstance(this,t);this.adopt=createEvent(this,"adopt",7);this.cancel=createEvent(this,"cancel",7);this.fullname="";this.open=false;this.fontLoaded=false;this.enteredInitials="";this.mode="type"}t.prototype.componentWillLoad=function(){var t=this;this.enteredInitials=this.fullname.split(" ").map((function(t){return t.substring(0,1)})).join("").toUpperCase();var i=new FontFace("Dancing Script","url(https://fonts.gstatic.com/s/dancingscript/v19/If2cXTr6YS-zF4S-kcSWSVi_sxjsohD9F50Ruu7BMSo3Sup6hNX6plRP.woff)");i.load().then((function(i){document.fonts.add(i);t.fontLoaded=true}))};t.prototype.componentDidLoad=function(){this.redrawSignature()};t.prototype.componentDidUpdate=function(){this.redrawSignature()};t.prototype.redrawSignature=function(){if(!this.canvasElement){return}var t=this.canvasElement.width;var i=this.canvasElement.getContext("2d");i.clearRect(0,0,this.canvasElement.width,this.canvasElement.height);var e=100;do{e-=2;i.font="".concat(e,"px Dancing Script")}while(i.measureText(this.enteredInitials).width>t-32);i.textAlign="center";i.textBaseline="middle";i.font="".concat(e,"px Dancing Script");i.fillText(this.enteredInitials,this.canvasElement.width/2,this.canvasElement.height/2)};t.prototype.handleDismiss=function(t){if(t.target.className==="background-overlay"){t.preventDefault();this.handleCancel()}};t.prototype.handleNameChange=function(t){this.enteredInitials=t.detail};t.prototype.handleAdopt=function(){var t=this.canvasElement.toDataURL("image/png");this.adopt.emit(t);this.open=false};t.prototype.handleCancel=function(){this.cancel.emit();this.open=false};t.prototype.render=function(){var t=this;return h(Host,{class:{open:this.open}},h("div",{class:"background-overlay",onClick:function(i){return t.handleDismiss(i)}},h("div",{class:"dialog"},h("div",{class:"heading"},"Create Your Initial"),h("div",{class:"content"},h("verdocs-text-input",{placeholder:"Initials...",label:"Initials",value:this.enteredInitials,onFieldInput:function(i){return t.handleNameChange(i)}}),h("div",{class:"as-shown"},"As shown on driver's license or govt. ID card."),h("div",{class:"tabs"},h("div",{class:{tab:true,active:this.mode==="type"},onClick:function(){return t.mode="type"}},"Type"),h("div",{class:{tab:true,active:this.mode==="draw"},onClick:function(){return t.mode="draw"}},"Draw")),this.fontLoaded?h("canvas",{ref:function(i){return t.canvasElement=i}}):h("div",{style:{display:"none"}}),h("div",{class:"disclaimer"},"By clicking Adopt, I agree that the signature will be the electronic representation of my signature for all purposes when I (or my agent) use them on documents, including legally binding contracts — just the same as a pen-and-paper signature or initial."),h("div",{class:"buttons"},h("verdocs-button",{label:"CANCEL",variant:"outline",onPress:function(){return t.handleCancel()}}),h("verdocs-button",{label:"Adopt & Sign",onPress:function(){return t.handleAdopt()}}))))))};return t}();VerdocsInitialDialog.style=verdocsInitialDialogCss;export{VerdocsInitialDialog as verdocs_initial_dialog};
1
+ import{r as registerInstance,c as createEvent,h,H as Host}from"./index-859bc689.js";var verdocsInitialDialogCss='verdocs-initial-dialog{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;display:none}verdocs-initial-dialog.open{display:block}verdocs-initial-dialog .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-initial-dialog .dialog{width:100%;max-width:340px;border-radius:4px;overflow:hidden;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);background:#f9f9f9}verdocs-initial-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:20px 20px 0 20px;line-height:28px;font-size:20px;font-weight:500}verdocs-initial-dialog .content{font-size:14px;padding:20px}verdocs-initial-dialog .buttons{display:-ms-flexbox;display:flex;margin:20px 0 0 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center}verdocs-initial-dialog .buttons verdocs-button{margin-left:16px}verdocs-initial-dialog canvas{background:#fff;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 auto;width:300px;height:79px;max-width:100%;-webkit-box-shadow:0 0 6px 0 #0000001f;box-shadow:0 0 6px 0 #0000001f}verdocs-initial-dialog .disclaimer{text-align:justify;padding:8px 0;font-size:11px;line-height:14px;color:rgba(0, 0, 0, 0.54)}verdocs-initial-dialog .as-shown{font-size:11px;margin:4px 0 20px 4px;color:rgba(0, 0, 0, 0.54)}verdocs-initial-dialog .tabs{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-initial-dialog .tabs .tab{padding:8px 15px;cursor:pointer}verdocs-initial-dialog .tabs .tab.active{border-bottom:2px solid #cccccc}verdocs-initial-dialog .tabs .tab:hover{color:#55bc81}';var VerdocsInitialDialog=function(){function t(t){registerInstance(this,t);this.adopt=createEvent(this,"adopt",7);this.cancel=createEvent(this,"cancel",7);this.fullname="";this.open=false;this.fontLoaded=false;this.enteredInitials="";this.mode="type"}t.prototype.componentWillLoad=function(){var t=this;this.enteredInitials=this.fullname.split(" ").map((function(t){return t.substring(0,1)})).join("").toUpperCase();var i=new FontFace("Dancing Script","url(https://fonts.gstatic.com/s/dancingscript/v19/If2cXTr6YS-zF4S-kcSWSVi_sxjsohD9F50Ruu7BMSo3Sup6hNX6plRP.woff)");i.load().then((function(i){document.fonts.add(i);t.fontLoaded=true}))};t.prototype.componentDidLoad=function(){this.redrawSignature()};t.prototype.componentDidUpdate=function(){this.redrawSignature()};t.prototype.redrawSignature=function(){if(!this.canvasElement){return}var t=this.canvasElement.width;var i=this.canvasElement.getContext("2d");i.clearRect(0,0,this.canvasElement.width,this.canvasElement.height);var e=100;do{e-=2;i.font="".concat(e,"px Dancing Script")}while(i.measureText(this.enteredInitials).width>t-32);i.textAlign="center";i.textBaseline="middle";i.font="".concat(e,"px Dancing Script");i.fillText(this.enteredInitials,this.canvasElement.width/2,this.canvasElement.height/2)};t.prototype.handleDismiss=function(t){if(t.target.className==="background-overlay"){t.preventDefault();this.handleCancel()}};t.prototype.handleNameChange=function(t){this.enteredInitials=t.detail};t.prototype.handleAdopt=function(){var t=this.canvasElement.toDataURL("image/png");this.adopt.emit(t);this.open=false};t.prototype.handleCancel=function(){this.cancel.emit();this.open=false};t.prototype.render=function(){var t=this;return h(Host,{class:{open:this.open}},h("div",{class:"background-overlay",onClick:function(i){return t.handleDismiss(i)}},h("div",{class:"dialog"},h("div",{class:"heading"},"Create Your Initial"),h("div",{class:"content"},h("verdocs-text-input",{placeholder:"Initials...",label:"Initials",value:this.enteredInitials,onFieldInput:function(i){return t.handleNameChange(i)}}),h("div",{class:"as-shown"},"As shown on driver's license or govt. ID card."),h("div",{class:"tabs"},h("div",{class:{tab:true,active:this.mode==="type"},onClick:function(){return t.mode="type"}},"Type"),h("div",{class:{tab:true,active:this.mode==="draw"},onClick:function(){return t.mode="draw"}},"Draw")),this.fontLoaded?h("canvas",{ref:function(i){return t.canvasElement=i}}):h("div",{style:{display:"none"}}),h("div",{class:"disclaimer"},"By clicking Adopt, I agree that the signature will be the electronic representation of my signature for all purposes when I (or my agent) use them on documents, including legally binding contracts — just the same as a pen-and-paper signature or initial."),h("div",{class:"buttons"},h("verdocs-button",{label:"CANCEL",variant:"outline",onPress:function(){return t.handleCancel()}}),h("verdocs-button",{label:"Adopt & Sign",onPress:function(){return t.handleAdopt()}}))))))};return t}();VerdocsInitialDialog.style=verdocsInitialDialogCss;export{VerdocsInitialDialog as verdocs_initial_dialog};
@@ -1 +1 @@
1
- import{r as registerInstance,e as createEvent,h,f as Host,F as Fragment}from"./index-ddbd60b5.js";var Question='<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M20 0C8.95313 0 0 8.95313 0 20C0 31.0469 8.95313 40 20 40C31.0469 40 40 31.0469 40 20C40 8.95313 31.0469 0 20 0ZM20 36.25C11.0391 36.25 3.75 28.9602 3.75 20C3.75 11.0398 11.0391 3.75 20 3.75C28.9609 3.75 36.25 11.0398 36.25 20C36.25 28.9602 28.9609 36.25 20 36.25Z" fill="white"/>\n<path d="M20 26.25C18.5938 26.25 17.5 27.3438 17.5 28.75C17.5 30.1562 18.5234 31.25 20 31.25C21.3359 31.25 22.5 30.1562 22.5 28.75C22.5 27.3438 21.3359 26.25 20 26.25ZM22.5859 10H18.5938C15.5469 10 13.125 12.4219 13.125 15.4688C13.125 16.4844 13.9844 17.3438 15 17.3438C16.0156 17.3438 16.875 16.4844 16.875 15.4688C16.875 14.5312 17.5859 13.75 18.5234 13.75H22.5156C23.5234 13.75 24.375 14.5312 24.375 15.4688C24.375 16.0938 24.0625 16.5703 23.5156 16.8828L19.0625 19.6094C18.4375 20 18.125 20.625 18.125 21.25V22.5C18.125 23.5156 18.9844 24.375 20 24.375C21.0156 24.375 21.875 23.5156 21.875 22.5V22.3438L25.3984 20.1562C27.0391 19.1406 28.0547 17.3438 28.0547 15.4688C28.125 12.4219 25.7031 10 22.5859 10Z" fill="#E7E7E7"/>\n</svg>\n';var verdocsKbaDialogCss='verdocs-kba-dialog{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-kba-dialog .dialog{width:440px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#fff;padding:16px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-kba-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-kba-dialog .step{margin-left:6px;color:#666}verdocs-kba-dialog .help-box{background-color:#707ae5;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;margin:14px 0;padding:14px;-ms-flex-align:center;align-items:center;color:white}verdocs-kba-dialog .help-details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:15px;font-size:14px}verdocs-kba-dialog .help-icon{width:40px;height:40px}verdocs-kba-dialog .help-title{font-weight:600;margin-bottom:4px}verdocs-kba-dialog .help-text{font-weight:400}verdocs-kba-dialog .choices{display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));margin:0 0 15px 0}verdocs-kba-dialog .choice{border:#707ae5;border-radius:5px;display:-ms-flexbox;display:flex;height:60px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;color:#5c6575;cursor:pointer}verdocs-kba-dialog .choice.selected{background-color:#707ae5;color:white}verdocs-kba-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-kba-dialog .buttons verdocs-button{margin-left:16px}';var VerdocsKbaDialog=function(){function e(e){registerInstance(this,e);this.cancel=createEvent(this,"cancel",7);this.done=createEvent(this,"done",7);this.step=1;this.steps=3;this.helptitle="One Time Code";this.helptext="Please check your text messages for a security code, and enter the code below.";this.mode="choice";this.label="PIN";this.placeholder="Enter your PIN...";this.choices=["553 Arbor Dr","18 Lacey Ln","23A Ball Ct","2375 Cavallo Blvd","23-1 RR-7","151 Boulder Rd"];this.open=false;this.response=""}e.prototype.handleCancel=function(){this.cancel.emit();this.open=false};e.prototype.handleDismiss=function(e){if(e.target.className==="background-overlay"){e.preventDefault();this.handleCancel()}};e.prototype.handleDone=function(){this.done.emit(this.response);this.open=false};e.prototype.render=function(){var e=this;return h(Host,{style:{display:this.open?"block":"none"}},h("div",{class:"background-overlay",onClick:function(o){return e.handleDismiss(o)}},h("div",{class:"dialog"},h("div",{class:"heading"},"Confirm Your Identity",this.steps>1?h("span",{class:"step"},"(",this.step,"/",this.steps,")"):h(Fragment,null)),h("div",{class:"help-box"},h("div",{class:"help-icon",innerHTML:Question}),h("div",{class:"help-details"},h("div",{class:"help-title"},this.helptitle),h("div",{class:"help-text"},this.helptext))),this.mode==="choice"?h("div",{class:"choices"},this.choices.map((function(o){return h("div",{class:"choice ".concat(o===e.response?"selected":""),onClick:function(){e.response=o}},o)}))):h("div",{class:"input"},h("label",{htmlFor:"verdocs-kba-input"},this.label),h("input",{type:"text",id:"verdocs-kba-input",name:"verdocs-kba-input",placeholder:this.placeholder})),h("div",{class:"buttons"},h("verdocs-button",{label:"Cancel",variant:"outline",onPress:function(){return e.handleCancel()}}),h("verdocs-button",{label:"Done",onPress:function(){return e.handleDone()},disabled:!this.response})))))};return e}();VerdocsKbaDialog.style=verdocsKbaDialogCss;export{VerdocsKbaDialog as verdocs_kba_dialog};
1
+ import{r as registerInstance,c as createEvent,h,F as Fragment,H as Host}from"./index-859bc689.js";var Question='<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M20 0C8.95313 0 0 8.95313 0 20C0 31.0469 8.95313 40 20 40C31.0469 40 40 31.0469 40 20C40 8.95313 31.0469 0 20 0ZM20 36.25C11.0391 36.25 3.75 28.9602 3.75 20C3.75 11.0398 11.0391 3.75 20 3.75C28.9609 3.75 36.25 11.0398 36.25 20C36.25 28.9602 28.9609 36.25 20 36.25Z" fill="white"/>\n<path d="M20 26.25C18.5938 26.25 17.5 27.3438 17.5 28.75C17.5 30.1562 18.5234 31.25 20 31.25C21.3359 31.25 22.5 30.1562 22.5 28.75C22.5 27.3438 21.3359 26.25 20 26.25ZM22.5859 10H18.5938C15.5469 10 13.125 12.4219 13.125 15.4688C13.125 16.4844 13.9844 17.3438 15 17.3438C16.0156 17.3438 16.875 16.4844 16.875 15.4688C16.875 14.5312 17.5859 13.75 18.5234 13.75H22.5156C23.5234 13.75 24.375 14.5312 24.375 15.4688C24.375 16.0938 24.0625 16.5703 23.5156 16.8828L19.0625 19.6094C18.4375 20 18.125 20.625 18.125 21.25V22.5C18.125 23.5156 18.9844 24.375 20 24.375C21.0156 24.375 21.875 23.5156 21.875 22.5V22.3438L25.3984 20.1562C27.0391 19.1406 28.0547 17.3438 28.0547 15.4688C28.125 12.4219 25.7031 10 22.5859 10Z" fill="#E7E7E7"/>\n</svg>\n';var verdocsKbaDialogCss='verdocs-kba-dialog{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-kba-dialog .dialog{width:440px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#fff;padding:16px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-kba-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-kba-dialog .step{margin-left:6px;color:#666}verdocs-kba-dialog .help-box{background-color:#707ae5;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;margin:14px 0;padding:14px;-ms-flex-align:center;align-items:center;color:white}verdocs-kba-dialog .help-details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:15px;font-size:14px}verdocs-kba-dialog .help-icon{width:40px;height:40px}verdocs-kba-dialog .help-title{font-weight:600;margin-bottom:4px}verdocs-kba-dialog .help-text{font-weight:400}verdocs-kba-dialog .choices{display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));margin:0 0 15px 0}verdocs-kba-dialog .choice{border:#707ae5;border-radius:5px;display:-ms-flexbox;display:flex;height:60px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;color:#5c6575;cursor:pointer}verdocs-kba-dialog .choice.selected{background-color:#707ae5;color:#ffffff}verdocs-kba-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-kba-dialog .buttons verdocs-button{margin-left:16px}';var VerdocsKbaDialog=function(){function e(e){registerInstance(this,e);this.cancel=createEvent(this,"cancel",7);this.done=createEvent(this,"done",7);this.step=1;this.steps=3;this.helptitle="One Time Code";this.helptext="Please check your text messages for a security code, and enter the code below.";this.mode="choice";this.label="PIN";this.placeholder="Enter your PIN...";this.choices=["553 Arbor Dr","18 Lacey Ln","23A Ball Ct","2375 Cavallo Blvd","23-1 RR-7","151 Boulder Rd"];this.open=false;this.response=""}e.prototype.handleCancel=function(){this.cancel.emit();this.open=false};e.prototype.handleDismiss=function(e){if(e.target.className==="background-overlay"){e.preventDefault();this.handleCancel()}};e.prototype.handleDone=function(){this.done.emit(this.response);this.open=false};e.prototype.render=function(){var e=this;return h(Host,{style:{display:this.open?"block":"none"}},h("div",{class:"background-overlay",onClick:function(o){return e.handleDismiss(o)}},h("div",{class:"dialog"},h("div",{class:"heading"},"Confirm Your Identity",this.steps>1?h("span",{class:"step"},"(",this.step,"/",this.steps,")"):h(Fragment,null)),h("div",{class:"help-box"},h("div",{class:"help-icon",innerHTML:Question}),h("div",{class:"help-details"},h("div",{class:"help-title"},this.helptitle),h("div",{class:"help-text"},this.helptext))),this.mode==="choice"?h("div",{class:"choices"},this.choices.map((function(o){return h("div",{class:"choice ".concat(o===e.response?"selected":""),onClick:function(){e.response=o}},o)}))):h("div",{class:"input"},h("label",{htmlFor:"verdocs-kba-input"},this.label),h("input",{type:"text",id:"verdocs-kba-input",name:"verdocs-kba-input",placeholder:this.placeholder})),h("div",{class:"buttons"},h("verdocs-button",{label:"Cancel",variant:"outline",onPress:function(){return e.handleCancel()}}),h("verdocs-button",{label:"Done",onPress:function(){return e.handleDone()},disabled:!this.response})))))};return e}();VerdocsKbaDialog.style=verdocsKbaDialogCss;export{VerdocsKbaDialog as verdocs_kba_dialog};
@@ -1 +1 @@
1
- import{r as registerInstance,h,f as Host}from"./index-ddbd60b5.js";var verdocsLoaderCss="verdocs-loader{display:block;position:absolute;top:50%;left:50%;margin-left:-20px;margin-top:-20px;font-size:24px;width:24px;height:24px;border-radius:50%;text-indent:-9999em;-webkit-animation:load5 1.1s infinite ease;animation:verdocs-loader-kf 1.1s infinite ease;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0)}@-webkit-keyframes verdocs-loader-kf{0%,100%{-webkit-box-shadow:0em -2.6em 0em 0em #aaaaaa, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.3), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4);box-shadow:0em -2.6em 0em 0em #aaaaaa, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.3), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4)}12.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.4), 1.8em -1.8em 0 0em #aaaaaa, 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.4), 1.8em -1.8em 0 0em #aaaaaa, 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3)}25%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.3), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4), 2.5em 0em 0 0em #aaaaaa, 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.3), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4), 2.5em 0em 0 0em #aaaaaa, 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}37.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3), 2.5em 0em 0 0em rgba(0, 0, 0, 0.4), 1.75em 1.75em 0 0em #aaaaaa, 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3), 2.5em 0em 0 0em rgba(0, 0, 0, 0.4), 1.75em 1.75em 0 0em #aaaaaa, 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}50%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.3), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.4), 0em 2.5em 0 0em #aaaaaa, -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.3), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.4), 0em 2.5em 0 0em #aaaaaa, -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}62.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.3), 0em 2.5em 0 0em rgba(0, 0, 0, 0.4), -1.8em 1.8em 0 0em #aaaaaa, -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.3), 0em 2.5em 0 0em rgba(0, 0, 0, 0.4), -1.8em 1.8em 0 0em #aaaaaa, -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}75%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.3), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.4), -2.6em 0em 0 0em #aaaaaa, -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.3), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.4), -2.6em 0em 0 0em #aaaaaa, -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}87.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.3), -2.6em 0em 0 0em rgba(0, 0, 0, 0.4), -1.8em -1.8em 0 0em #aaaaaa;box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.3), -2.6em 0em 0 0em rgba(0, 0, 0, 0.4), -1.8em -1.8em 0 0em #aaaaaa}}@keyframes verdocs-loader-kf{0%,100%{-webkit-box-shadow:0em -2.6em 0em 0em #aaaaaa, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.3), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4);box-shadow:0em -2.6em 0em 0em #aaaaaa, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.3), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4)}12.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.4), 1.8em -1.8em 0 0em #aaaaaa, 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.4), 1.8em -1.8em 0 0em #aaaaaa, 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3)}25%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.3), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4), 2.5em 0em 0 0em #aaaaaa, 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.3), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4), 2.5em 0em 0 0em #aaaaaa, 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}37.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3), 2.5em 0em 0 0em rgba(0, 0, 0, 0.4), 1.75em 1.75em 0 0em #aaaaaa, 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3), 2.5em 0em 0 0em rgba(0, 0, 0, 0.4), 1.75em 1.75em 0 0em #aaaaaa, 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}50%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.3), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.4), 0em 2.5em 0 0em #aaaaaa, -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.3), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.4), 0em 2.5em 0 0em #aaaaaa, -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}62.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.3), 0em 2.5em 0 0em rgba(0, 0, 0, 0.4), -1.8em 1.8em 0 0em #aaaaaa, -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.3), 0em 2.5em 0 0em rgba(0, 0, 0, 0.4), -1.8em 1.8em 0 0em #aaaaaa, -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}75%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.3), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.4), -2.6em 0em 0 0em #aaaaaa, -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.3), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.4), -2.6em 0em 0 0em #aaaaaa, -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}87.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.3), -2.6em 0em 0 0em rgba(0, 0, 0, 0.4), -1.8em -1.8em 0 0em #aaaaaa;box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.3), -2.6em 0em 0 0em rgba(0, 0, 0, 0.4), -1.8em -1.8em 0 0em #aaaaaa}}";var VerdocsLoader=function(){function e(e){registerInstance(this,e)}e.prototype.render=function(){return h(Host,null)};return e}();VerdocsLoader.style=verdocsLoaderCss;export{VerdocsLoader as verdocs_loader};
1
+ import{r as registerInstance,h,H as Host}from"./index-859bc689.js";var verdocsLoaderCss="verdocs-loader{display:block;position:absolute;top:50%;left:50%;margin-left:-20px;margin-top:-20px;font-size:24px;width:24px;height:24px;border-radius:50%;text-indent:-9999em;-webkit-animation:load5 1.1s infinite ease;animation:verdocs-loader-kf 1.1s infinite ease;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0)}@-webkit-keyframes verdocs-loader-kf{0%,100%{-webkit-box-shadow:0em -2.6em 0em 0em #aaaaaa, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.3), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4);box-shadow:0em -2.6em 0em 0em #aaaaaa, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.3), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4)}12.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.4), 1.8em -1.8em 0 0em #aaaaaa, 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.4), 1.8em -1.8em 0 0em #aaaaaa, 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3)}25%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.3), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4), 2.5em 0em 0 0em #aaaaaa, 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.3), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4), 2.5em 0em 0 0em #aaaaaa, 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}37.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3), 2.5em 0em 0 0em rgba(0, 0, 0, 0.4), 1.75em 1.75em 0 0em #aaaaaa, 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3), 2.5em 0em 0 0em rgba(0, 0, 0, 0.4), 1.75em 1.75em 0 0em #aaaaaa, 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}50%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.3), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.4), 0em 2.5em 0 0em #aaaaaa, -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.3), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.4), 0em 2.5em 0 0em #aaaaaa, -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}62.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.3), 0em 2.5em 0 0em rgba(0, 0, 0, 0.4), -1.8em 1.8em 0 0em #aaaaaa, -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.3), 0em 2.5em 0 0em rgba(0, 0, 0, 0.4), -1.8em 1.8em 0 0em #aaaaaa, -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}75%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.3), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.4), -2.6em 0em 0 0em #aaaaaa, -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.3), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.4), -2.6em 0em 0 0em #aaaaaa, -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}87.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.3), -2.6em 0em 0 0em rgba(0, 0, 0, 0.4), -1.8em -1.8em 0 0em #aaaaaa;box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.3), -2.6em 0em 0 0em rgba(0, 0, 0, 0.4), -1.8em -1.8em 0 0em #aaaaaa}}@keyframes verdocs-loader-kf{0%,100%{-webkit-box-shadow:0em -2.6em 0em 0em #aaaaaa, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.3), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4);box-shadow:0em -2.6em 0em 0em #aaaaaa, 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.3), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4)}12.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.4), 1.8em -1.8em 0 0em #aaaaaa, 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.4), 1.8em -1.8em 0 0em #aaaaaa, 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3)}25%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.3), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4), 2.5em 0em 0 0em #aaaaaa, 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.3), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.4), 2.5em 0em 0 0em #aaaaaa, 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}37.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3), 2.5em 0em 0 0em rgba(0, 0, 0, 0.4), 1.75em 1.75em 0 0em #aaaaaa, 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.3), 2.5em 0em 0 0em rgba(0, 0, 0, 0.4), 1.75em 1.75em 0 0em #aaaaaa, 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}50%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.3), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.4), 0em 2.5em 0 0em #aaaaaa, -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.3), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.4), 0em 2.5em 0 0em #aaaaaa, -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.2), -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}62.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.3), 0em 2.5em 0 0em rgba(0, 0, 0, 0.4), -1.8em 1.8em 0 0em #aaaaaa, -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.3), 0em 2.5em 0 0em rgba(0, 0, 0, 0.4), -1.8em 1.8em 0 0em #aaaaaa, -2.6em 0em 0 0em rgba(0, 0, 0, 0.2), -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}75%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.3), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.4), -2.6em 0em 0 0em #aaaaaa, -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2);box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.3), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.4), -2.6em 0em 0 0em #aaaaaa, -1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2)}87.5%{-webkit-box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.3), -2.6em 0em 0 0em rgba(0, 0, 0, 0.4), -1.8em -1.8em 0 0em #aaaaaa;box-shadow:0em -2.6em 0em 0em rgba(0, 0, 0, 0.2), 1.8em -1.8em 0 0em rgba(0, 0, 0, 0.2), 2.5em 0em 0 0em rgba(0, 0, 0, 0.2), 1.75em 1.75em 0 0em rgba(0, 0, 0, 0.2), 0em 2.5em 0 0em rgba(0, 0, 0, 0.2), -1.8em 1.8em 0 0em rgba(0, 0, 0, 0.3), -2.6em 0em 0 0em rgba(0, 0, 0, 0.4), -1.8em -1.8em 0 0em #aaaaaa}}";var VerdocsLoader=function(){function e(e){registerInstance(this,e)}e.prototype.render=function(){return h(Host,null)};return e}();VerdocsLoader.style=verdocsLoaderCss;export{VerdocsLoader as verdocs_loader};
@@ -1 +1 @@
1
- import{r as registerInstance,e as createEvent,h,f as Host}from"./index-ddbd60b5.js";var verdocsOkDialogCss='verdocs-ok-dialog{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-ok-dialog .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-ok-dialog .dialog{max-width:50%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-ok-dialog .heading{display:-ms-flexbox;display:flex;font-size:16px;-ms-flex-direction:row;flex-direction:row;background:#444444;padding:8px 16px;color:white}verdocs-ok-dialog .content{font-size:14px;background:#fff;padding:20px}verdocs-ok-dialog .buttons{display:-ms-flexbox;display:flex;margin:20px 0 0 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}verdocs-ok-dialog .buttons verdocs-button{margin-left:16px}';var VerdocsOkDialog=function(){function e(e){registerInstance(this,e);this.closed=createEvent(this,"closed",7);this.heading="";this.message="";this.open=false;this.cancel=false}e.prototype.handleClose=function(e){this.closed.emit(e);this.open=false};e.prototype.handleDismiss=function(e){if(e.target.className==="background-overlay"){e.preventDefault();this.handleClose("cancel")}};e.prototype.render=function(){var e=this;return h(Host,{style:{display:this.open?"block":"none"}},h("div",{class:"background-overlay",onClick:function(o){return e.handleDismiss(o)}},h("div",{class:"dialog"},h("div",{class:"heading"},this.heading),h("div",{class:"content"},this.message,h("div",{class:"buttons"},this.cancel?h("verdocs-button",{label:"CANCEL",variant:"outline",onPress:function(){return e.handleClose("cancel")}}):h("div",{style:{display:"none"}}),h("verdocs-button",{label:"OK",onPress:function(){return e.handleClose("ok")}}))))))};return e}();VerdocsOkDialog.style=verdocsOkDialogCss;export{VerdocsOkDialog as verdocs_ok_dialog};
1
+ import{r as registerInstance,c as createEvent,h,H as Host}from"./index-859bc689.js";var verdocsOkDialogCss='verdocs-ok-dialog{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-ok-dialog .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-ok-dialog .dialog{max-width:50%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-ok-dialog .heading{display:-ms-flexbox;display:flex;font-size:16px;-ms-flex-direction:row;flex-direction:row;background:#444444;padding:8px 16px;color:#ffffff}verdocs-ok-dialog .content{font-size:14px;background:#ffffff;padding:20px}verdocs-ok-dialog .buttons{display:-ms-flexbox;display:flex;margin:20px 0 0 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}verdocs-ok-dialog .buttons verdocs-button{margin-left:16px}';var VerdocsOkDialog=function(){function e(e){registerInstance(this,e);this.closed=createEvent(this,"closed",7);this.heading="";this.message="";this.open=false;this.cancel=false}e.prototype.handleClose=function(e){this.closed.emit(e);this.open=false};e.prototype.handleDismiss=function(e){if(e.target.className==="background-overlay"){e.preventDefault();this.handleClose("cancel")}};e.prototype.render=function(){var e=this;return h(Host,{style:{display:this.open?"block":"none"}},h("div",{class:"background-overlay",onClick:function(o){return e.handleDismiss(o)}},h("div",{class:"dialog"},h("div",{class:"heading"},this.heading),h("div",{class:"content"},this.message,h("div",{class:"buttons"},this.cancel?h("verdocs-button",{label:"CANCEL",variant:"outline",onPress:function(){return e.handleClose("cancel")}}):h("div",{style:{display:"none"}}),h("verdocs-button",{label:"OK",onPress:function(){return e.handleClose("ok")}}))))))};return e}();VerdocsOkDialog.style=verdocsOkDialogCss;export{VerdocsOkDialog as verdocs_ok_dialog};
@@ -1 +1 @@
1
- import{r as registerInstance,h,f as Host}from"./index-ddbd60b5.js";var UserGroup='<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#ffffff"><rect fill="none" height="24" width="24"/><g><path d="M4,13c1.1,0,2-0.9,2-2c0-1.1-0.9-2-2-2s-2,0.9-2,2C2,12.1,2.9,13,4,13z M5.13,14.1C4.76,14.04,4.39,14,4,14 c-0.99,0-1.93,0.21-2.78,0.58C0.48,14.9,0,15.62,0,16.43V18l4.5,0v-1.61C4.5,15.56,4.73,14.78,5.13,14.1z M20,13c1.1,0,2-0.9,2-2 c0-1.1-0.9-2-2-2s-2,0.9-2,2C18,12.1,18.9,13,20,13z M24,16.43c0-0.81-0.48-1.53-1.22-1.85C21.93,14.21,20.99,14,20,14 c-0.39,0-0.76,0.04-1.13,0.1c0.4,0.68,0.63,1.46,0.63,2.29V18l4.5,0V16.43z M16.24,13.65c-1.17-0.52-2.61-0.9-4.24-0.9 c-1.63,0-3.07,0.39-4.24,0.9C6.68,14.13,6,15.21,6,16.39V18h12v-1.61C18,15.21,17.32,14.13,16.24,13.65z M8.07,16 c0.09-0.23,0.13-0.39,0.91-0.69c0.97-0.38,1.99-0.56,3.02-0.56s2.05,0.18,3.02,0.56c0.77,0.3,0.81,0.46,0.91,0.69H8.07z M12,8 c0.55,0,1,0.45,1,1s-0.45,1-1,1s-1-0.45-1-1S11.45,8,12,8 M12,6c-1.66,0-3,1.34-3,3c0,1.66,1.34,3,3,3s3-1.34,3-3 C15,7.34,13.66,6,12,6L12,6z"/></g></svg>';var verdocsOrganizationCardCss='verdocs-organization-card{font-family:"Barlow", sans-serif;width:242px;position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-organization-card:hover>.popup{display:-ms-flexbox;display:flex;background:#ffffff;color:#33354c}verdocs-organization-card .icon{-ms-flex:0;flex:0;margin:0 7px 0 0}verdocs-organization-card .icon svg{fill:#aeb4bf;width:24px;margin-bottom:-5px}verdocs-organization-card .popup{position:absolute;top:-1px;left:-4px;display:none;border:1px solid #1e2031;border-radius:10px;width:326px;height:220px;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:space-evenly;justify-content:space-evenly;font-family:sans-serif}verdocs-organization-card .popup-header{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;width:242px;height:69px;-ms-flex-pack:justify;justify-content:space-between;font-size:21px;color:#4c56cb}verdocs-organization-card .popup-body{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;width:256.2px;height:95px;-ms-flex-pack:space-evenly;justify-content:space-evenly;font-size:13px;text-transform:uppercase}verdocs-organization-card .popup-body span{display:block;-ms-flex:2 80px;flex:2 80px;margin-left:7px}verdocs-organization-card .popup-body span:last-child{margin-top:5px}verdocs-organization-card .status{width:29px;height:29px;background-color:#aeb4bf;border-radius:50%}';var VerdocsOrganizationCard=function(){function e(e){registerInstance(this,e)}e.prototype.render=function(){console.log("org",JSON.stringify(this.organization,null,2));return h(Host,null,h("span",{class:"icon",innerHTML:UserGroup}),h("span",{class:"content"},this.organization.name),h("div",{class:"popup"},h("div",{class:"popup-header"},h("span",{class:"status"}),h("span",{class:"title"},this.organization.name)),h("div",{class:"popup-body"},h("span",{class:"joined"},h("b",null,"Joined")," ","Jan 1 2022"),h("span",{class:"followers"},h("b",null,"Followers")," 57"),h("span",{class:"website"},h("b",null,"Website")),h("span",{class:"templates"},h("b",null,"Templates")," 7"),h("span",null,"https://www.google.com"))))};return e}();VerdocsOrganizationCard.style=verdocsOrganizationCardCss;export{VerdocsOrganizationCard as verdocs_organization_card};
1
+ import{r as registerInstance,h,H as Host}from"./index-859bc689.js";var UserGroup='<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#ffffff"><rect fill="none" height="24" width="24"/><g><path d="M4,13c1.1,0,2-0.9,2-2c0-1.1-0.9-2-2-2s-2,0.9-2,2C2,12.1,2.9,13,4,13z M5.13,14.1C4.76,14.04,4.39,14,4,14 c-0.99,0-1.93,0.21-2.78,0.58C0.48,14.9,0,15.62,0,16.43V18l4.5,0v-1.61C4.5,15.56,4.73,14.78,5.13,14.1z M20,13c1.1,0,2-0.9,2-2 c0-1.1-0.9-2-2-2s-2,0.9-2,2C18,12.1,18.9,13,20,13z M24,16.43c0-0.81-0.48-1.53-1.22-1.85C21.93,14.21,20.99,14,20,14 c-0.39,0-0.76,0.04-1.13,0.1c0.4,0.68,0.63,1.46,0.63,2.29V18l4.5,0V16.43z M16.24,13.65c-1.17-0.52-2.61-0.9-4.24-0.9 c-1.63,0-3.07,0.39-4.24,0.9C6.68,14.13,6,15.21,6,16.39V18h12v-1.61C18,15.21,17.32,14.13,16.24,13.65z M8.07,16 c0.09-0.23,0.13-0.39,0.91-0.69c0.97-0.38,1.99-0.56,3.02-0.56s2.05,0.18,3.02,0.56c0.77,0.3,0.81,0.46,0.91,0.69H8.07z M12,8 c0.55,0,1,0.45,1,1s-0.45,1-1,1s-1-0.45-1-1S11.45,8,12,8 M12,6c-1.66,0-3,1.34-3,3c0,1.66,1.34,3,3,3s3-1.34,3-3 C15,7.34,13.66,6,12,6L12,6z"/></g></svg>';var verdocsOrganizationCardCss='verdocs-organization-card{font-family:"Barlow", sans-serif;width:242px;position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-organization-card:hover>.popup{display:-ms-flexbox;display:flex;background:#ffffff;color:#33354c}verdocs-organization-card .icon{-ms-flex:0;flex:0;margin:0 7px 0 0}verdocs-organization-card .icon svg{fill:#aeb4bf;width:24px;margin-bottom:-5px}verdocs-organization-card .popup{position:absolute;top:-1px;left:-4px;display:none;border:1px solid #1e2031;border-radius:10px;width:326px;height:220px;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:space-evenly;justify-content:space-evenly;font-family:sans-serif}verdocs-organization-card .popup-header{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;width:242px;height:69px;-ms-flex-pack:justify;justify-content:space-between;font-size:21px;color:#4c56cb}verdocs-organization-card .popup-body{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;width:256.2px;height:95px;-ms-flex-pack:space-evenly;justify-content:space-evenly;font-size:13px;text-transform:uppercase}verdocs-organization-card .popup-body span{display:block;-ms-flex:2 80px;flex:2 80px;margin-left:7px}verdocs-organization-card .popup-body span:last-child{margin-top:5px}verdocs-organization-card .status{width:29px;height:29px;background-color:#aeb4bf;border-radius:50%}';var VerdocsOrganizationCard=function(){function e(e){registerInstance(this,e)}e.prototype.render=function(){console.log("org",JSON.stringify(this.organization,null,2));return h(Host,null,h("span",{class:"icon",innerHTML:UserGroup}),h("span",{class:"content"},this.organization.name),h("div",{class:"popup"},h("div",{class:"popup-header"},h("span",{class:"status"}),h("span",{class:"title"},this.organization.name)),h("div",{class:"popup-body"},h("span",{class:"joined"},h("b",null,"Joined")," ","Jan 1 2022"),h("span",{class:"followers"},h("b",null,"Followers")," 57"),h("span",{class:"website"},h("b",null,"Website")),h("span",{class:"templates"},h("b",null,"Templates")," 7"),h("span",null,"https://www.google.com"))))};return e}();VerdocsOrganizationCard.style=verdocsOrganizationCardCss;export{VerdocsOrganizationCard as verdocs_organization_card};
@@ -1 +1 @@
1
- import{r as registerInstance,e as createEvent,h}from"./index-ddbd60b5.js";var TemplateIcon='<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><g><rect fill="none" height="24" width="24"/><g><path d="M19,5v14H5V5H19 M19,3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2V5C21,3.9,20.1,3,19,3L19,3z"/></g><path d="M14,17H7v-2h7V17z M17,13H7v-2h10V13z M17,9H7V7h10V9z"/></g></svg>';var DocumentIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"/></svg>';var verdocsQuickFunctionsCss="verdocs-quick-functions{font-family:sans-serif;font-family:var(--verdocs-font)}verdocs-quick-functions .container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:240px;background-color:var(--verdocs-background-dark);text-transform:uppercase;padding:10px 10px 20px 10px;font-family:sans-serif;color:#ffffff}verdocs-quick-functions .title{font-size:22px;font-weight:700;line-height:30px;margin:1em 0 40px 0}verdocs-quick-functions button{width:140px;height:40px;border:none;display:-ms-flexbox;display:flex;color:#ffffff;cursor:pointer;font-size:14px;font-weight:700;line-height:25px;-ms-flex-align:center;align-items:center;margin-bottom:20px;border-radius:5px;text-transform:uppercase;-ms-flex-pack:space-evenly;justify-content:space-evenly;background-color:#50be50}verdocs-quick-functions button svg{fill:#ffffff}";var VerdocsQuickFunctions=function(){function e(e){registerInstance(this,e);this.createTemplate=createEvent(this,"createTemplate",7);this.createDocument=createEvent(this,"createDocument",7)}e.prototype.handleCreateTemplate=function(){this.createTemplate.emit()};e.prototype.handleCreateDocument=function(){this.createDocument.emit()};e.prototype.render=function(){var e=this;return h("div",{class:"container"},h("p",{class:"title"},"Quick Create"),h("button",{onClick:function(){return e.handleCreateTemplate()},innerHTML:TemplateIcon},"Template"),h("button",{onClick:function(){return e.handleCreateDocument()},innerHTML:DocumentIcon},"Document"))};return e}();VerdocsQuickFunctions.style=verdocsQuickFunctionsCss;export{VerdocsQuickFunctions as verdocs_quick_functions};
1
+ import{r as registerInstance,c as createEvent,h}from"./index-859bc689.js";var TemplateIcon='<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><g><rect fill="none" height="24" width="24"/><g><path d="M19,5v14H5V5H19 M19,3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2V5C21,3.9,20.1,3,19,3L19,3z"/></g><path d="M14,17H7v-2h7V17z M17,13H7v-2h10V13z M17,9H7V7h10V9z"/></g></svg>';var DocumentIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"/></svg>';var verdocsQuickFunctionsCss='verdocs-quick-functions{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-quick-functions .container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:240px;background-color:var(--verdocs-background-dark);text-transform:uppercase;padding:10px 10px 20px 10px;font-family:sans-serif;color:#ffffff}verdocs-quick-functions .title{font-size:22px;font-weight:700;line-height:30px;margin:1em 0 40px 0}verdocs-quick-functions button{width:140px;height:40px;border:none;display:-ms-flexbox;display:flex;color:#ffffff;cursor:pointer;font-size:14px;font-weight:700;line-height:25px;-ms-flex-align:center;align-items:center;margin-bottom:20px;border-radius:5px;text-transform:uppercase;-ms-flex-pack:space-evenly;justify-content:space-evenly;background-color:#50be50}verdocs-quick-functions button svg{fill:#ffffff}';var VerdocsQuickFunctions=function(){function e(e){registerInstance(this,e);this.createTemplate=createEvent(this,"createTemplate",7);this.createDocument=createEvent(this,"createDocument",7)}e.prototype.handleCreateTemplate=function(){this.createTemplate.emit()};e.prototype.handleCreateDocument=function(){this.createDocument.emit()};e.prototype.render=function(){var e=this;return h("div",{class:"container"},h("p",{class:"title"},"Quick Create"),h("button",{onClick:function(){return e.handleCreateTemplate()},innerHTML:TemplateIcon},"Template"),h("button",{onClick:function(){return e.handleCreateDocument()},innerHTML:DocumentIcon},"Document"))};return e}();VerdocsQuickFunctions.style=verdocsQuickFunctionsCss;export{VerdocsQuickFunctions as verdocs_quick_functions};
@@ -0,0 +1 @@
1
+ import{r as registerInstance,c as createEvent,h}from"./index-859bc689.js";import{l as loadSession}from"./Auth-15cd42a8.js";import{a as getEndpoint}from"./Token-ce37bd9d.js";import"./buffer-es6-136673c8.js";var __awaiter=undefined&&undefined.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n["throw"](e))}catch(e){o(e)}}function c(e){e.done?r(e.value):i(e.value).then(s,a)}c((n=n.apply(e,t||[])).next())}))};var __generator=undefined&&undefined.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return c([e,t])}}function c(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(s[0]===6&&r.label<o[1]){r.label=o[1];o=s;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(s);break}if(o[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];i=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var getSearchHistory=function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(e){return[2,getEndpoint().api.get("/search/history").then((function(e){return e.data}))]}))}))};var getTemplates=function(e){return getEndpoint().api.get("/templates/",{params:e}).then((function(e){return e.data}))};var DocumentIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"/></svg>';var verdocsSearchActivityCss='verdocs-search-activity{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-search-activity .container{display:-ms-flexbox;display:flex;width:240px;color:#ffffff;-ms-flex-direction:column;flex-direction:column;text-transform:uppercase;padding:10px 10px 20px 10px;background-color:var(--verdocs-background-dark)}verdocs-search-activity .title{font-size:22px;font-weight:700;line-height:30px}verdocs-search-activity .items{display:-ms-flexbox;display:flex;margin-top:20px;-ms-flex-direction:column;flex-direction:column}verdocs-search-activity .item{border:none;display:-ms-flexbox;display:flex;text-align:left;margin-bottom:20px;-ms-flex-direction:row;flex-direction:row;background:transparent}verdocs-search-activity .item:hover{cursor:pointer}verdocs-search-activity .icon{-ms-flex:0 0 22px;flex:0 0 22px;margin-right:14px}verdocs-search-activity .icon svg{fill:#707ae5;width:22px;height:22px}verdocs-search-activity .details{display:-ms-flexbox;display:flex;overflow:hidden;-ms-flex-direction:column;flex-direction:column}verdocs-search-activity .item-title{font-size:16px;font-weight:400;color:#ffffff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}verdocs-search-activity .info{font-size:14px;font-weight:500;line-height:23px;color:#aeb4bf}verdocs-search-activity .empty{text-transform:none;line-height:22px;color:#ccc}';var SOURCE="verdocs-stage";var VerdocsSearchActivity=function(){function e(e){registerInstance(this,e);this.entrySelected=createEvent(this,"entrySelected",7);this.type="recent";this.emptyMessage="You do not have any starred searches.";this.authFailure=false;this.title="Recent Searches";this.recent=[];this.saved=[];this.starred=[]}e.prototype.componentWillLoad=function(){var e=this;loadSession(SOURCE);var t=function(t){var r;console.warn("[Verdocs/search-activity] Error getting search data",t);if(((r=t===null||t===void 0?void 0:t.response)===null||r===void 0?void 0:r.status)===401){e.authFailure=true}};switch(this.type){case"recent":this.title="Recent Searches";this.emptyMessage="You do not have any recent searches.";getSearchHistory().then((function(t){return e.recent=t.recent})).catch(t);break;case"saved":this.title="Saved Searches";this.emptyMessage="You do not have any saved searches.";getSearchHistory().then((function(t){return e.saved=t.saved})).catch(t);break;case"starred":this.title="My Starred items";this.emptyMessage="You do not have any starred templates.";getTemplates({is_starred:true}).then((function(t){return e.starred=t})).catch(t);break}};e.prototype.handleSelectEntry=function(e){this.entrySelected.emit(e)};e.prototype.computePagesText=function(e){if(e<2){return"".concat(e," Page")}else{return"".concat(e," Pages")}};e.prototype.computeRecipientsText=function(e){if(typeof e==="object"){return e.join(", ")}else if(e>1){return"".concat(e," Recipients")}else{return"".concat(e," Recipient")}};e.prototype.render=function(){var e=this;var t=this.recent.length<1&&this.saved.length<1&&this.starred.length<1;return h("div",{class:"container"},h("p",{class:"title"},this.title),h("div",{class:"items"},this.recent.map((function(t){return h("button",{class:"item",onClick:function(){return e.handleSelectEntry(t)}},h("div",{class:"icon",innerHTML:DocumentIcon}),h("div",{class:"details"},h("div",{class:"item-title"},t.params.q),h("div",{class:"info"},"Test")))})),this.saved.map((function(t){return h("button",{class:"item",onClick:function(){return e.handleSelectEntry(t)}},h("div",{class:"icon",innerHTML:DocumentIcon}),h("div",{class:"details"},h("div",{class:"item-title"},t.params.q),h("div",{class:"info"})))})),t&&h("div",{class:"empty"},this.authFailure?"Authentication required":this.emptyMessage)))};return e}();VerdocsSearchActivity.style=verdocsSearchActivityCss;var SearchIcon='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M23.4809 20.7176L17.9111 15.2536C19.0961 13.6368 19.727 11.6926 19.7128 9.70131C19.7201 7.53345 18.9846 5.42606 17.6244 3.71753C16.2642 2.009 14.3581 0.798456 12.2123 0.280282C10.0665 -0.237892 7.80552 -0.0336342 5.79227 0.86026C3.77902 1.75415 2.13038 3.28582 1.1111 5.20931C0.0918114 7.1328 -0.238985 9.33652 0.171813 11.4666C0.582612 13.5967 1.71117 15.5296 3.37628 16.9548C5.0414 18.3801 7.14646 19.2151 9.35344 19.3257C11.5604 19.4364 13.7413 18.8162 15.5458 17.5649L21.1372 23.05L21.1563 23.0663C21.4841 23.3487 21.9039 23.507 22.3401 23.5128C22.7823 23.5125 23.2063 23.3402 23.5191 23.0337V23.0337C23.6749 22.8812 23.7979 22.6995 23.8804 22.4993C23.963 22.2991 24.0036 22.0847 23.9997 21.8688C23.9959 21.6529 23.9477 21.44 23.858 21.2428C23.7683 21.0456 23.639 20.8682 23.4778 20.7212L23.4809 20.7176ZM14.5167 14.1975C13.4564 15.2349 12.0623 15.8797 10.5719 16.022C9.08145 16.1644 7.58681 15.7955 6.34249 14.9781C5.09816 14.1608 4.18109 12.9456 3.74751 11.5395C3.31393 10.1334 3.39064 8.6233 3.96455 7.26643C4.53846 5.90955 5.57409 4.7898 6.89507 4.09787C8.21606 3.40594 9.74071 3.18461 11.2093 3.4716C12.678 3.75858 13.9998 4.53612 14.9497 5.6718C15.8996 6.80748 16.4188 8.23105 16.4189 9.7001C16.4196 10.5357 16.2519 11.3632 15.9254 12.135C15.599 12.9069 15.1202 13.6078 14.5167 14.1975V14.1975Z" fill="white"/>\n</svg>\n';var CloseIcon='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M14.0739 11.7565L19.7127 6.23228C20.0875 5.85692 20.0875 5.25309 19.7127 4.87773L19.0213 4.20046C18.6382 3.82511 18.0219 3.82511 17.6387 4.20046L12 9.72472L6.36127 4.20046C5.97814 3.82511 5.36179 3.82511 4.97866 4.20046L4.28735 4.87773C3.90422 5.25309 3.90422 5.85692 4.28735 6.23228L9.92608 11.7565L4.28735 17.2808C3.90422 17.6561 3.90422 18.26 4.28735 18.6353L4.97866 19.3126C5.36179 19.688 5.97814 19.688 6.36127 19.3126L12 13.7883L17.6387 19.3126C18.0219 19.688 18.6382 19.688 19.0213 19.3126L19.7127 18.6353C20.0958 18.26 20.0958 17.6561 19.7127 17.2808L14.0739 11.7565Z" fill="white"/>\n</svg>\n';var verdocsSearchBoxCss='verdocs-search-box{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-search-box form{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:45px;-webkit-box-sizing:border-box;box-sizing:border-box;margin:5px 0 0;border-radius:5px;-ms-flex-align:center;align-items:center;background-color:#fff;padding:0 8px;border-width:1px;border-style:solid;border-color:var(--verdocs-container-border-color)}verdocs-search-box form input{-webkit-box-sizing:border-box;box-sizing:border-box;height:43px;width:100%;font-size:18px;border:none}verdocs-search-box form input:focus{outline:none}verdocs-search-box form button.search{cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:4px;border:none;width:100px;height:28px;font-weight:700;font-size:10px;letter-spacing:1px;background-color:#50be80;text-transform:uppercase;color:#fff}verdocs-search-box form .type{background-color:#707ae5;height:30px;display:-ms-inline-flexbox;display:inline-flex;padding:1px 0 2px 10px;font-size:13px;line-height:16px;border-radius:4px;-ms-flex-pack:center;justify-content:center;text-transform:uppercase;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;color:#fff;margin-right:10px}verdocs-search-box form .type button{border:none;color:#fff;margin:5px 0 0 8px;background:transparent}verdocs-search-box form svg{width:12px;height:12px;margin-right:6px}verdocs-search-box ::-webkit-input-placeholder{color:#aeb4bf}verdocs-search-box ::-moz-placeholder{color:#aeb4bf}verdocs-search-box :-ms-input-placeholder{color:#aeb4bf}verdocs-search-box ::-ms-input-placeholder{color:#aeb4bf}verdocs-search-box ::placeholder{color:#aeb4bf}';var VerdocsSearchBox=function(){function e(e){registerInstance(this,e);this.searchClicked=createEvent(this,"searchClicked",7);this.typeChanged=createEvent(this,"typeChanged",7);this.queryChanged=createEvent(this,"queryChanged",7);this.placeholder="search documents, templates, people...";this.type="all";this.query=""}e.prototype.handleSearch=function(e){this.searchClicked.emit({type:this.type,query:this.query});e.preventDefault();return false};e.prototype.handleChange=function(e){this.queryChanged.emit(e.target.value)};e.prototype.handleClearFilter=function(){this.typeChanged.emit("all")};e.prototype.handleKeyUp=function(e){if(e.key==="Enter"){this.searchClicked.emit({type:this.type,query:this.query})}};e.prototype.render=function(){var e=this;return h("form",{onSubmit:function(t){return e.handleSearch(t)}},this.type!==undefined&&this.type!=="all"&&h("span",{class:"type"},this.type,"s ",h("button",{class:"remove",innerHTML:CloseIcon,onClick:function(){return e.handleClearFilter()}})),h("input",{type:"text",placeholder:this.placeholder,value:this.query,onInput:function(t){return e.handleChange(t)},onKeyUp:function(t){return e.handleKeyUp(t)}}),h("button",{onClick:function(t){return e.handleSearch(t)},class:"search"},h("span",{innerHTML:SearchIcon}),"Search"))};return e}();VerdocsSearchBox.style=verdocsSearchBoxCss;export{VerdocsSearchActivity as verdocs_search_activity,VerdocsSearchBox as verdocs_search_box};
@@ -1 +1 @@
1
- import{r as registerInstance,h}from"./index-ddbd60b5.js";var verdocsSearchTabsCss="verdocs-search-tabs{display:block}";var VerdocsSearchTabs=function(){function s(s){registerInstance(this,s);this.selected="all"}s.prototype.render=function(){return h("div",null," ")};return s}();VerdocsSearchTabs.style=verdocsSearchTabsCss;export{VerdocsSearchTabs as verdocs_search_tabs};
1
+ import{r as registerInstance,h}from"./index-859bc689.js";var verdocsSearchTabsCss='verdocs-search-tabs{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:block}';var VerdocsSearchTabs=function(){function e(e){registerInstance(this,e);this.selected="all"}e.prototype.render=function(){return h("div",null," ")};return e}();VerdocsSearchTabs.style=verdocsSearchTabsCss;export{VerdocsSearchTabs as verdocs_search_tabs};
@@ -1 +1 @@
1
- import{r as registerInstance,h}from"./index-ddbd60b5.js";var verdocsSearchCss='verdocs-search{font-family:"Barlow", sans-serif;display:-ms-flexbox;display:flex;background-color:#1e2031}verdocs-search search-box{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:20px 10px}verdocs-search .boxes{-ms-flex-wrap:wrap;flex-wrap:wrap;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;margin:20px 0}verdocs-search search-recent,verdocs-search search-saved,verdocs-search search-quick-functions,verdocs-search search-starred{display:-ms-flexbox;display:flex;margin:0 20px 20px 0}';var VerdocsSearch=function(){function e(e){registerInstance(this,e)}e.prototype.render=function(){return h("div",{class:"container"},h("verdocs-search-box",null),h("div",{class:"boxes"},h("verdocs-search-activity",{type:"recent"}),h("verdocs-search-activity",{type:"saved"}),h("verdocs-search-activity",{type:"starred"}),h("search-quick-functions",null)))};return e}();VerdocsSearch.style=verdocsSearchCss;export{VerdocsSearch as verdocs_search};
1
+ import{r as registerInstance,h}from"./index-859bc689.js";var verdocsSearchCss='verdocs-search{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:-ms-flexbox;display:flex;background-color:#1e2031}verdocs-search search-box{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:20px 10px}verdocs-search .boxes{-ms-flex-wrap:wrap;flex-wrap:wrap;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;margin:20px 0}verdocs-search search-recent,verdocs-search search-saved,verdocs-search search-quick-functions,verdocs-search search-starred{display:-ms-flexbox;display:flex;margin:0 20px 20px 0}';var VerdocsSearch=function(){function e(e){registerInstance(this,e)}e.prototype.render=function(){return h("div",{class:"container"},h("verdocs-search-box",null),h("div",{class:"boxes"},h("verdocs-search-activity",{type:"recent"}),h("verdocs-search-activity",{type:"saved"}),h("verdocs-search-activity",{type:"starred"}),h("search-quick-functions",null)))};return e}();VerdocsSearch.style=verdocsSearchCss;export{VerdocsSearch as verdocs_search};
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,n,a,t){function o(e){return e instanceof a?e:new a((function(n){n(e)}))}return new(a||(a=Promise))((function(a,i){function r(e){try{u(t.next(e))}catch(e){i(e)}}function c(e){try{u(t["throw"](e))}catch(e){i(e)}}function u(e){e.done?a(e.value):o(e.value).then(r,c)}u((t=t.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var a={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},t,o,i,r;return r={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function c(e){return function(n){return u([e,n])}}function u(r){if(t)throw new TypeError("Generator is already executing.");while(a)try{if(t=1,o&&(i=r[0]&2?o["return"]:r[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;if(o=0,i)r=[r[0]&2,i.value];switch(r[0]){case 0:case 1:i=r;break;case 4:a.label++;return{value:r[1],done:false};case 5:a.label++;o=r[1];r=[0];continue;case 7:r=a.ops.pop();a.trys.pop();continue;default:if(!(i=a.trys,i=i.length>0&&i[i.length-1])&&(r[0]===6||r[0]===2)){a=0;continue}if(r[0]===3&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(r[0]===6&&a.label<i[1]){a.label=i[1];i=r;break}if(i&&a.label<i[2]){a.label=i[2];a.ops.push(r);break}if(i[2])a.ops.pop();a.trys.pop();continue}r=n.call(e,a)}catch(e){r=[6,e];o=0}finally{t=i=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};import{r as registerInstance,h,f as Host}from"./index-ddbd60b5.js";import"./index-ef172650.js";import{g as getEndpoint,d as decodeAccessTokenBody,V as VerdocsEndpoint,s as setActiveEndpoint}from"./Token-29eea56d.js";import{B as Buffer}from"./buffer-es6-5cef4368.js";import"./index-97ec070b.js";function getRGB(e){var n=e.replace("rgba(","").replace(")","").split(",");var a={red:+n[0],green:+n[1],blue:+n[2],alpha:+n[3]};var t=1-a.alpha;var o=Math.round((a.alpha*(a.red/255)+t)*255);var i=Math.round((a.alpha*(a.green/255)+t)*255);var r=Math.round((a.alpha*(a.blue/255)+t)*255);return"#"+rgbToHex(o)+rgbToHex(i)+rgbToHex(r)}function rgbToHex(e){var n=e.toString(16);if(n.length<2){return"0"+n}return n}function getRGBA(e){switch(e%10){case 0:return e===0?"rgba(255, 193, 7, 0.4)":"rgba(134, 134, 134, 0.3)";case 1:return"rgba(156, 39, 176, .4)";case 2:return"rgba(33, 150, 243, .4)";case 3:return"rgba(220, 231, 117, 0.3)";case 4:return"rgba(121, 134, 203, 0.3)";case 5:return"rgba(77, 182, 172, 0.3)";case 6:return"rgba(255, 202, 165, 0.3)";case 7:return"rgba(2, 247, 190, 0.3)";case 8:return"rgba(255, 138, 101, 0.3)";case 9:return"rgba(82, 255, 79, 0.3)";default:return"rgba(229, 115, 155, 0.3)"}}function nameToRGBA(e){if(!!e){var n=parseInt(e.slice(-1),10);if(!isNaN(n)){e+=(n*99).toString()}var a=0;for(var t=0;t<e.length;t++){a=e.charCodeAt(t)+((a<<5)-a)}a=Math.round(a/1.3);var o=(a&16776968).toString(16).toUpperCase();var i="#"+"00000".substring(0,6-o.length)+o;var r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(i);var c={r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)};return"rgba(".concat(c.r,", ").concat(c.g,", ").concat(c.b,", 0.2)")}}function getRoleColor(e,n,a){if(a){return getRGBA(a)}else if(n&&n.length>0){var t=n.findIndex((function(n){return n.name===e}));if(t>-1){return n[t].rgba||getRGBA(t)}else{return nameToRGBA(e)}}else{return nameToRGBA(e)}}function getRTop(e,n,a,t){return a-(e+n)*t}function getRLeft(e,n){return e*n}function getRValue(e,n){return e*n}function blobToBase64(e){var n=new FileReader;return new Promise((function(a,t){n.onerror=function(){t(new DOMException("Problem reading blob."))};n.onload=function(){a(n.result)};n.readAsDataURL(e)}))}function rescale(e,n){return e*n}var __assign=undefined&&undefined.__assign||function(){__assign=Object.assign||function(e){for(var n,a=1,t=arguments.length;a<t;a++){n=arguments[a];for(var o in n)if(Object.prototype.hasOwnProperty.call(n,o))e[o]=n[o]}return e};return __assign.apply(this,arguments)};var __awaiter$1=undefined&&undefined.__awaiter||function(e,n,a,t){function o(e){return e instanceof a?e:new a((function(n){n(e)}))}return new(a||(a=Promise))((function(a,i){function r(e){try{u(t.next(e))}catch(e){i(e)}}function c(e){try{u(t["throw"](e))}catch(e){i(e)}}function u(e){e.done?a(e.value):o(e.value).then(r,c)}u((t=t.apply(e,n||[])).next())}))};var __generator$1=undefined&&undefined.__generator||function(e,n){var a={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},t,o,i,r;return r={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function c(e){return function(n){return u([e,n])}}function u(r){if(t)throw new TypeError("Generator is already executing.");while(a)try{if(t=1,o&&(i=r[0]&2?o["return"]:r[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;if(o=0,i)r=[r[0]&2,i.value];switch(r[0]){case 0:case 1:i=r;break;case 4:a.label++;return{value:r[1],done:false};case 5:a.label++;o=r[1];r=[0];continue;case 7:r=a.ops.pop();a.trys.pop();continue;default:if(!(i=a.trys,i=i.length>0&&i[i.length-1])&&(r[0]===6||r[0]===2)){a=0;continue}if(r[0]===3&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(r[0]===6&&a.label<i[1]){a.label=i[1];i=r;break}if(i&&a.label<i[2]){a.label=i[2];a.ops.push(r);break}if(i[2])a.ops.pop();a.trys.pop();continue}r=n.call(e,a)}catch(e){r=[6,e];o=0}finally{t=i=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};var updateRecipientStatus=function(e,n,a,t){return __awaiter$1(void 0,void 0,void 0,(function(){return __generator$1(this,(function(o){return[2,getEndpoint().api.put("/documents/".concat(e,"/recipients/").concat(n),__assign({role_name:n,action:a},t||{})).then((function(e){return e.data}))]}))}))};var Countries=[{code:"+7 840",name:"Abkhazia",value:"+7"},{code:"+93",name:"Afghanistan",value:"+93"},{code:"+355",name:"Albania",value:"+355"},{code:"+213",name:"Algeria",value:"+213"},{code:"+1",name:"American Samoa",value:"+1"},{code:"+376",name:"Andorra",value:"+376"},{code:"+244",name:"Angola",value:"+244"},{code:"+1",name:"Anguilla",value:"+1"},{code:"+1",name:"Antigua and Barbuda",value:"+1"},{code:"+54",name:"Argentina",value:"+54"},{code:"+374",name:"Armenia",value:"+374"},{code:"+297",name:"Aruba",value:"+297"},{code:"+247",name:"Ascension",value:"+247"},{code:"+61",name:"Australia",value:"+61"},{code:"+672",name:"Australian External Territories",value:"+672"},{code:"+43",name:"Austria",value:"+43"},{code:"+994",name:"Azerbaijan",value:"+994"},{code:"+1",name:"Bahamas",value:"+1"},{code:"+973",name:"Bahrain",value:"+973"},{code:"+880",name:"Bangladesh",value:"+880"},{code:"+1",name:"Barbados",value:"+1"},{code:"+1",name:"Barbuda",value:"+1"},{code:"+375",name:"Belarus",value:"+375"},{code:"+32",name:"Belgium",value:"+32"},{code:"+501",name:"Belize",value:"+501"},{code:"+229",name:"Benin",value:"+229"},{code:"+1",name:"Bermuda",value:"+1"},{code:"+975",name:"Bhutan",value:"+975"},{code:"+591",name:"Bolivia",value:"+591"},{code:"+387",name:"Bosnia and Herzegovina",value:"+387"},{code:"+267",name:"Botswana",value:"+267"},{code:"+55",name:"Brazil",value:"+55"},{code:"+246",name:"British Indian Ocean Territory",value:"+246"},{code:"+1",name:"British Virgin Islands",value:"+1"},{code:"+673",name:"Brunei",value:"+673"},{code:"+359",name:"Bulgaria",value:"+359"},{code:"+226",name:"Burkina Faso",value:"+226"},{code:"+257",name:"Burundi",value:"+257"},{code:"+855",name:"Cambodia",value:"+855"},{code:"+237",name:"Cameroon",value:"+237"},{code:"+1",name:"Canada",value:"+1"},{code:"+238",name:"Cape Verde",value:"+238"},{code:"+1",name:"Cayman Islands",value:"+1"},{code:"+236",name:"Central African Republic",value:"+236"},{code:"+235",name:"Chad",value:"+235"},{code:"+56",name:"Chile",value:"+56"},{code:"+86",name:"China",value:"+86"},{code:"+61",name:"Christmas Island",value:"+61"},{code:"+61",name:"Cocos-Keeling Islands",value:"+61"},{code:"+57",name:"Colombia",value:"+57"},{code:"+269",name:"Comoros",value:"+269"},{code:"+242",name:"Congo",value:"+242"},{code:"+243",name:"Congo, Dem. Rep. of (Zaire)",value:"+243"},{code:"+682",name:"Cook Islands",value:"+682"},{code:"+506",name:"Costa Rica",value:"+506"},{code:"+385",name:"Croatia",value:"+385"},{code:"+53",name:"Cuba",value:"+53"},{code:"+599",name:"Curacao",value:"+599"},{code:"+537",name:"Cyprus",value:"+537"},{code:"+420",name:"Czech Republic",value:"+420"},{code:"+45",name:"Denmark",value:"+45"},{code:"+246",name:"Diego Garcia",value:"+246"},{code:"+253",name:"Djibouti",value:"+253"},{code:"+1",name:"Dominica",value:"+1"},{code:"+1",name:"Dominican Republic",value:"+1"},{code:"+670",name:"East Timor",value:"+670"},{code:"+56",name:"Easter Island",value:"+56"},{code:"+593",name:"Ecuador",value:"+593"},{code:"+20",name:"Egypt",value:"+20"},{code:"+503",name:"El Salvador",value:"+503"},{code:"+240",name:"Equatorial Guinea",value:"+240"},{code:"+291",name:"Eritrea",value:"+291"},{code:"+372",name:"Estonia",value:"+372"},{code:"+251",name:"Ethiopia",value:"+251"},{code:"+500",name:"Falkland Islands",value:"+500"},{code:"+298",name:"Faroe Islands",value:"+298"},{code:"+679",name:"Fiji",value:"+679"},{code:"+358",name:"Finland",value:"+358"},{code:"+33",name:"France",value:"+33"},{code:"+596",name:"Martinique",value:"+596"},{code:"+594",name:"French Guiana",value:"+594"},{code:"+689",name:"French Polynesia",value:"+689"},{code:"+241",name:"Gabon",value:"+241"},{code:"+220",name:"Gambia",value:"+220"},{code:"+995",name:"Georgia",value:"+995"},{code:"+49",name:"Germany",value:"+49"},{code:"+233",name:"Ghana",value:"+233"},{code:"+350",name:"Gibraltar",value:"+350"},{code:"+30",name:"Greece",value:"+30"},{code:"+299",name:"Greenland",value:"+299"},{code:"+1",name:"Grenada",value:"+1"},{code:"+590",name:"Guadeloupe",value:"+590"},{code:"+1",name:"Guam",value:"+1"},{code:"+502",name:"Guatemala",value:"+502"},{code:"+224",name:"Guinea",value:"+224"},{code:"+245",name:"Guinea-Bissau",value:"+245"},{code:"+595",name:"Guyana",value:"+595"},{code:"+509",name:"Haiti",value:"+509"},{code:"+504",name:"Honduras",value:"+504"},{code:"+852",name:"Hong Kong SAR China",value:"+852"},{code:"+36",name:"Hungary",value:"+36"},{code:"+354",name:"Iceland",value:"+354"},{code:"+91",name:"India",value:"+91"},{code:"+62",name:"Indonesia",value:"+62"},{code:"+98",name:"Iran",value:"+98"},{code:"+964",name:"Iraq",value:"+964"},{code:"+353",name:"Ireland",value:"+353"},{code:"+972",name:"Israel",value:"+972"},{code:"+39",name:"Italy",value:"+39"},{code:"+225",name:"Ivory Coast",value:"+225"},{code:"+1",name:"Jamaica",value:"+1"},{code:"+81",name:"Japan",value:"+81"},{code:"+962",name:"Jordan",value:"+962"},{code:"+77",name:"Kazakhstan",value:"+7"},{code:"+254",name:"Kenya",value:"+254"},{code:"+686",name:"Kiribati",value:"+686"},{code:"+965",name:"Kuwait",value:"+965"},{code:"+996",name:"Kyrgyzstan",value:"+996"},{code:"+856",name:"Laos",value:"+856"},{code:"+371",name:"Latvia",value:"+371"},{code:"+961",name:"Lebanon",value:"+961"},{code:"+266",name:"Lesotho",value:"+266"},{code:"+231",name:"Liberia",value:"+231"},{code:"+218",name:"Libya",value:"+218"},{code:"+423",name:"Liechtenstein",value:"+423"},{code:"+370",name:"Lithuania",value:"+370"},{code:"+352",name:"Luxembourg",value:"+352"},{code:"+853",name:"Macau SAR China",value:"+853"},{code:"+389",name:"Macedonia",value:"+389"},{code:"+261",name:"Madagascar",value:"+261"},{code:"+265",name:"Malawi",value:"+265"},{code:"+60",name:"Malaysia",value:"+60"},{code:"+960",name:"Maldives",value:"+960"},{code:"+223",name:"Mali",value:"+223"},{code:"+356",name:"Malta",value:"+356"},{code:"+692",name:"Marshall Islands",value:"+692"},{code:"+596",name:"Martinique",value:"+596"},{code:"+222",name:"Mauritania",value:"+222"},{code:"+230",name:"Mauritius",value:"+230"},{code:"+262",name:"Mayotte or Réunion",value:"+262"},{code:"+52",name:"Mexico",value:"+52"},{code:"+691",name:"Micronesia",value:"+691"},{code:"+1",name:"Midway Island",value:"+1"},{code:"+373",name:"Moldova",value:"+373"},{code:"+377",name:"Monaco",value:"+377"},{code:"+976",name:"Mongolia",value:"+976"},{code:"+382",name:"Montenegro",value:"+382"},{code:"+1",name:"Montserrat",value:"+1"},{code:"+212",name:"Morocco",value:"+212"},{code:"+95",name:"Myanmar",value:"+95"},{code:"+264",name:"Namibia",value:"+264"},{code:"+674",name:"Nauru",value:"+674"},{code:"+977",name:"Nepal",value:"+977"},{code:"+31",name:"Netherlands",value:"+31"},{code:"+599",name:"Netherlands Antilles",value:"+599"},{code:"+1",name:"Nevis",value:"+1"},{code:"+687",name:"New Caledonia",value:"+687"},{code:"+64",name:"New Zealand",value:"+64"},{code:"+505",name:"Nicaragua",value:"+505"},{code:"+227",name:"Niger",value:"+227"},{code:"+234",name:"Nigeria",value:"+234"},{code:"+683",name:"Niue",value:"+683"},{code:"+672",name:"Norfolk Island",value:"+672"},{code:"+850",name:"North Korea",value:"+850"},{code:"+1",name:"Northern Mariana Islands",value:"+1"},{code:"+47",name:"Norway",value:"+47"},{code:"+968",name:"Oman",value:"+968"},{code:"+92",name:"Pakistan",value:"+92"},{code:"+680",name:"Palau",value:"+680"},{code:"+970",name:"Palestinian Territory",value:"+970"},{code:"+507",name:"Panama",value:"+507"},{code:"+675",name:"Papua New Guinea",value:"+675"},{code:"+595",name:"Paraguay",value:"+595"},{code:"+51",name:"Peru",value:"+51"},{code:"+63",name:"Philippines",value:"+63"},{code:"+48",name:"Poland",value:"+48"},{code:"+351",name:"Portugal",value:"+351"},{code:"+1",name:"Puerto Rico",value:"+1"},{code:"+974",name:"Qatar",value:"+974"},{code:"+40",name:"Romania",value:"+40"},{code:"+7",name:"Russia",value:"+7"},{code:"+250",name:"Rwanda",value:"+250"},{code:"508",name:"Saint Pierre and Miquelon",value:"508"},{code:"+685",name:"Samoa",value:"+685"},{code:"+378",name:"San Marino",value:"+378"},{code:"+966",name:"Saudi Arabia",value:"+966"},{code:"+221",name:"Senegal",value:"+221"},{code:"+381",name:"Serbia",value:"+381"},{code:"+248",name:"Seychelles",value:"+248"},{code:"+232",name:"Sierra Leone",value:"+232"},{code:"+65",name:"Singapore",value:"+65"},{code:"+421",name:"Slovakia",value:"+421"},{code:"+386",name:"Slovenia",value:"+386"},{code:"+677",name:"Solomon Islands",value:"+677"},{code:"+27",name:"South Africa",value:"+27"},{code:"+500",name:"South Georgia and the South Sandwich Islands",value:"+500"},{code:"+82",name:"South Korea",value:"+82"},{code:"+34",name:"Spain",value:"+34"},{code:"+94",name:"Sri Lanka",value:"+94"},{code:"+249",name:"Sudan",value:"+249"},{code:"+597",name:"Suriname",value:"+597"},{code:"+268",name:"Swaziland",value:"+268"},{code:"+46",name:"Sweden",value:"+46"},{code:"+41",name:"Switzerland",value:"+41"},{code:"+963",name:"Syria",value:"+963"},{code:"+886",name:"Taiwan",value:"+886"},{code:"+992",name:"Tajikistan",value:"+992"},{code:"+255",name:"Tanzania",value:"+255"},{code:"+66",name:"Thailand",value:"+66"},{code:"+670",name:"Timor Leste",value:"+670"},{code:"+228",name:"Togo",value:"+228"},{code:"+690",name:"Tokelau",value:"+690"},{code:"+676",name:"Tonga",value:"+676"},{code:"+1",name:"Trinidad and Tobago",value:"+1"},{code:"+216",name:"Tunisia",value:"+216"},{code:"+90",name:"Turkey",value:"+90"},{code:"+993",name:"Turkmenistan",value:"+993"},{code:"+1",name:"Turks and Caicos Islands",value:"+1"},{code:"+688",name:"Tuvalu",value:"+688"},{code:"+1",name:"U.S. Virgin Islands",value:"+1"},{code:"+256",name:"Uganda",value:"+256"},{code:"+380",name:"Ukraine",value:"+380"},{code:"+971",name:"United Arab Emirates",value:"+971"},{code:"+44",name:"United Kingdom",value:"+44"},{code:"+1",name:"United States",value:"+1"},{code:"+598",name:"Uruguay",value:"+598"},{code:"+998",name:"Uzbekistan",value:"+998"},{code:"+678",name:"Vanuatu",value:"+678"},{code:"+58",name:"Venezuela",value:"+58"},{code:"+84",name:"Vietnam",value:"+84"},{code:"+1",name:"Wake Island",value:"+1"},{code:"+681",name:"Wallis and Futuna",value:"+681"},{code:"+967",name:"Yemen",value:"+967"},{code:"+260",name:"Zambia",value:"+260"},{code:"+255",name:"Zanzibar",value:"+255"},{code:"+263",name:"Zimbabwe",value:"+263"}];function getCountryByCode(e){var n=Countries.find((function(n){return n.code===e}));if(n)return n;if(isFrenchGuiana(e)){return{code:"+594",name:"French Guiana",value:"+594"}}else if(isGuadeloupe(e)){return{code:"+590",name:"Guadeloupe",value:"+590"}}else if(isMartinique(e)){return{code:"+596",name:"Martinique",value:"+596"}}else if(isMayotte(e)){return{code:"+262",name:"Mayotte or Réunion",value:"+262"}}return null}function isFrenchGuiana(e){return"+594"===e.substring(0,4)}function isGuadeloupe(e){return"+590"===e.substring(0,4)}function isMartinique(e){return"+596"===e.substring(0,4)}function isMayotte(e){return"+262"===e.substring(0,4)}function getPlusOneCountry(e){var n=null;switch(e.substring(0,5)){case"+1684":n={code:"+1",name:"American Samoa",value:"+1"};break;case"+1264":n={code:"+1",name:"Anguilla",value:"+1"};case"+1268":n={code:"+1",name:"Antigua and Barbuda",value:"+1"};case"+1242":n={code:"+1",name:"Bahamas",value:"+1"};break;case"+1246":n={code:"+1",name:"Barbados",value:"+1"};break;case"+1441":n={code:"+1",name:"Bermuda",value:"+1"};break;case"+1284":n={code:"+1",name:"British Virgin Islands",value:"+1"};break;case"+1":n={code:"+1",name:"",value:"+1"};break;default:break}return n}function isCanada(e){var n=["403","587","780","825","604","250","778","236","204","431","506","709","867","782","902","867","548","705","365","613","807","226","289","437","519","647","905","249","343","416","902","782","450","418","579","873","367","514","581","819","438","639","306","867"];var a=e.substring(0,5);return n.findIndex((function(e){return"+1"+e===a}))>-1}function isAmericanSamoa(e){return e.substring(0,5)==="+1684"}function isDominicanRepublic(e){return"+1809"===e.substring(0,5)||"+1829"===e.substring(0,5)||"+1849"===e.substring(0,5)}function isPuertoRico(e){return e.substring(0,5)==="+"||e.substring(0,5)==="+"}function getMatchingCountry(e,n){var a=e.substring(0,n);return Countries.filter((function(e){return e.code===a})).length}var e164Regex=new RegExp(/\+[1-9]\d{6,14}/g);function simpleE164Validator(e){return e!==null&&e.length<16&&e.length>6&&e164Regex.test(e)||e===""||e===null}var getValidators=function(){return getEndpoint().api.get("/validators").then((function(e){return e.data}))};var getValidator=function(e){return getEndpoint().api.get("/validators/".concat(e)).then((function(e){return e.data}))};var EmailRegEx=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;var isValidEmail=function(e){return EmailRegEx.test(e)};var isValidPhone=function(e){return simpleE164Validator(e)};var isValidRoleName=function(e,n){return n.findIndex((function(n){return n.name===e}))!==-1};var TagRegEx=/^[a-zA-Z0-9-]{0,32}$/;var isValidTag=function(e,n){return TagRegEx.test(e)||n.findIndex((function(n){return n.tag_name===e}))!==-1};var __awaiter=undefined&&undefined.__awaiter||function(e,n,a,t){function o(e){return e instanceof a?e:new a((function(n){n(e)}))}return new(a||(a=Promise))((function(a,i){function r(e){try{u(t.next(e))}catch(e){i(e)}}function c(e){try{u(t["throw"](e))}catch(e){i(e)}}function u(e){e.done?a(e.value):o(e.value).then(r,c)}u((t=t.apply(e,n||[])).next())}))};var __generator=undefined&&undefined.__generator||function(e,n){var a={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},t,o,i,r;return r={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function c(e){return function(n){return u([e,n])}}function u(r){if(t)throw new TypeError("Generator is already executing.");while(a)try{if(t=1,o&&(i=r[0]&2?o["return"]:r[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;if(o=0,i)r=[r[0]&2,i.value];switch(r[0]){case 0:case 1:i=r;break;case 4:a.label++;return{value:r[1],done:false};case 5:a.label++;o=r[1];r=[0];continue;case 7:r=a.ops.pop();a.trys.pop();continue;default:if(!(i=a.trys,i=i.length>0&&i[i.length-1])&&(r[0]===6||r[0]===2)){a=0;continue}if(r[0]===3&&(!i||r[1]>i[0]&&r[1]<i[3])){a.label=r[1];break}if(r[0]===6&&a.label<i[1]){a.label=i[1];i=r;break}if(i&&a.label<i[2]){a.label=i[2];a.ops.push(r);break}if(i[2])a.ops.pop();a.trys.pop();continue}r=n.call(e,a)}catch(e){r=[6,e];o=0}finally{t=i=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};var getSummary=function(e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(n){return[2,getEndpoint().api.post("/documents/summary",{page:e}).then((function(e){return e.data}))]}))}))};var searchDocuments=function(e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(n){return[2,getEndpoint().api.post("/documents/search",e).then((function(e){return e.data}))]}))}))};var getSigningSession=function(e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(n){return[2,getEndpoint().api.get("/documents/".concat(e.documentId,"/recipients/").concat(encodeURIComponent(e.roleId),"/invitation/").concat(e.inviteCode)).then((function(e){var n,a;var t=((n=e.headers)===null||n===void 0?void 0:n.signer_token)||"";var o=decodeAccessTokenBody(t);getEndpoint().setAuthorization((a=e.headers)===null||a===void 0?void 0:a.signer_token);return{recipient:e.data,session:o,signerToken:t}}))]}))}))};var getDocumentRecipients=function(e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(n){return[2,getEndpoint().api.get("/documents/".concat(e,"/recipients")).then((function(e){return e.data}))]}))}))};var getDocument=function(e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(n){return[2,getEndpoint().api.get("/documents/".concat(e)).then((function(e){return e.data}))]}))}))};var getDocumentFile=function(e,n){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(a){return[2,getEndpoint().api.get("/documents/".concat(e,"/envelope_documents/").concat(n,"?file=true"),{responseType:"arraybuffer"}).then((function(e){return Buffer.from(e.data,"binary").toString("base64")}))]}))}))};var updateDocumentField=function(e,n,a){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(t){return[2,getEndpoint().api.put("/documents/".concat(e,"/fields/").concat(n),a).then((function(e){return e.data}))]}))}))};var updateDocumentFieldSignature=function(e,n,a){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(t){return[2,getEndpoint().api.put("/documents/".concat(e,"/fields/").concat(n,"/signature/").concat(a)).then((function(e){return e.data}))]}))}))};var verdocsSignCss='verdocs-sign{font-family:"Barlow", sans-serif;position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:600px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}verdocs-sign.storybook{max-height:600px}verdocs-sign div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign .header{-ms-flex:0 0 115px;flex:0 0 115px;z-index:1000;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);-webkit-transition:all 0.25s;transition:all 0.25s}verdocs-sign .intro{background-color:#ffffff;width:100%;margin:0 auto;padding:20px;max-width:1028px;color:rgba(0, 0, 0, 0.87)}verdocs-sign .toolbar{width:100%;margin:0 auto;padding:0 20px;max-width:1028px;position:relative}verdocs-sign .tools{width:100%;color:#fff;height:56px;padding:4px;display:-ms-flexbox;display:flex;font-size:12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;background-color:#33354c}verdocs-sign .cover{top:0;left:0;right:0;bottom:0;z-index:999;position:absolute;background:rgba(0, 0, 0, 0.5)}verdocs-sign .document{-ms-flex:1;flex:1;height:100%;position:relative;overflow-y:scroll}verdocs-sign .agree-checkbox{-ms-flex:0 0 20px;flex:0 0 20px;display:-ms-flexbox;display:flex;width:20px;height:20px;border-radius:3px;background:#ffffff;position:relative;margin:0 10px 0 30px}verdocs-sign .agree-checkbox label{left:2px;top:2px;width:16px;height:16px;cursor:pointer;position:absolute;background:#33354c;-webkit-box-shadow:inset 0 -1px 1px rgba(255, 255, 255, 0.8);box-shadow:inset 0 -1px 1px rgba(255, 255, 255, 0.8)}verdocs-sign .agree-checkbox label:after{top:2px;left:3px;width:8px;opacity:0;height:5px;content:"";position:absolute;background:transparent;filter:alpha(opacity=0);-webkit-transform:rotate(-45deg);transform:rotate(-45deg);border:2px solid #fcfff4;border-top:none;border-right:none}verdocs-sign .agree-checkbox label:hover::after{filter:alpha(opacity=30);opacity:0.3}verdocs-sign .agree-checkbox input[type=checkbox]:checked+label:after{filter:alpha(opacity=100);opacity:1}verdocs-sign.agreed .intro{display:none}verdocs-sign.agreed .header{-ms-flex:0 0 56px;flex:0 0 56px}verdocs-sign.agreed .agree-checkbox{background:#ccc}verdocs-sign.agreed .agree-checkbox label{cursor:default}verdocs-sign .page-controls{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:500}';var BASE_URL="https://stage-api.verdocs.com";var VerdocsSign=function(){function e(e){registerInstance(this,e);this.documentid=null;this.roleid=null;this.invitecode=null;this.endpoint=null;this.recipient=null;this.signerToken=null;this.pdfUrl=null;this.recipientIndex=-1;this.document=null;this.fields=[];this.hasSignature=false;this.nextButtonLabel="Start";this.focusedField=""}e.prototype.componentWillLoad=function(){var e=(new VerdocsEndpoint).setBaseURL(BASE_URL);setActiveEndpoint(e)};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,n,a,t,o,i;var r=this;return __generator(this,(function(c){switch(c.label){case 0:c.trys.push([0,3,,4]);console.log("[SIGN] Processing invite code",this.documentid,this.roleid,this.invitecode);return[4,getSigningSession({documentId:this.documentid,roleId:this.roleid,inviteCode:this.invitecode})];case 1:e=c.sent(),n=e.session,a=e.recipient,t=e.signerToken;console.log("[SIGN] Got signing session",n);console.log("[SIGN] Recipient",a);this.recipient=a;this.signerToken=t;getEndpoint().setSigningAuthorization(t);if(this.recipient.agreed){this.nextButtonLabel="Next"}return[4,getDocument(this.documentid)];case 2:o=c.sent();this.document=o;console.log("[SIGN] Document",o);this.pdfUrl="".concat(BASE_URL,"/documents/").concat(this.documentid,"/envelope_documents/").concat(o.envelope_document_id,"?file=true");this.recipientIndex=this.document.recipients.findIndex((function(e){return e.role_name==r.roleid}));if(this.recipientIndex>-1){console.log("Found recipient",this.document.recipients[this.recipientIndex])}this.fields=this.document.fields.filter((function(e){return e.recipient_role===r.roleid}));console.log("Loaded fields",this.fields);return[3,4];case 3:i=c.sent();console.log("Error with signing session",i);return[3,4];case 4:return[2]}}))}))};e.prototype.handleClickAgree=function(){var e=this;console.log("agree clicked");updateRecipientStatus(this.documentid,this.roleid,"update",{agreed:true}).then((function(n){console.log("update result",n);e.nextButtonLabel="Next";e.recipient=n})).catch((function(e){console.log("update failure",e)}))};e.prototype.savePDF=function(){return __awaiter(this,void 0,void 0,(function(){var e,n,a,t;return __generator(this,(function(o){switch(o.label){case 0:e="".concat(this.document.name," - ").concat(this.document.updated_at.split("T")[0],".pdf");return[4,getDocumentFile(this.documentid,this.document.envelope_document_id)];case 1:n=o.sent();a=new XMLHttpRequest;a.responseType="blob";a.onload=function(){var n=document.createElement("a");n.href=window.URL.createObjectURL(a.response);n.download=e;n.style.display="none";document.body.appendChild(n);n.click();n.remove()};t="data:application/pdf;base64,".concat(n);console.log("url",t.length,t);a.open("GET","data:application/pdf;base64,".concat(n));a.send();return[2]}}))}))};e.prototype.handleOptionSelected=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){switch(e.detail.id){case"later":if(!(window===null||window===void 0?void 0:window["STORYBOOK_ENV"])){window.alert("User intends to sign later.")}break;case"claim":break;case"decline":break;case"print":break;case"download":this.savePDF().catch((function(){}));break}return[2]}))}))};e.prototype.handleFieldChange=function(e,n,a){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(o){console.log("fieldChange",e,n.detail);switch(e.type){case"textbox":updateDocumentField(this.documentid,e.name,{prepared:false,value:n.detail}).then((function(e){return console.log("Update result",e)})).catch((function(e){return console.log("Error updating",e)}));break;case"checkbox_group":updateDocumentField(this.documentid,e.name,{prepared:false,value:{options:[{id:a,checked:n.detail}]}}).then((function(e){return console.log("Update result",e)})).catch((function(e){return console.log("Error updating",e)}));break;case"radio_button_group":t=e.settings.options.map((function(e){return{id:e.id,selected:a===e.id}}));updateDocumentField(this.documentid,e.name,{prepared:false,value:{options:t}}).then((function(e){return console.log("Update result",e)})).catch((function(e){return console.log("Error updating",e)}));break;case"dropdown":updateDocumentField(this.documentid,e.name,{prepared:false,value:n.detail}).then((function(e){return console.log("Update result",e)})).catch((function(e){return console.log("Error updating",e)}));break;case"initial":console.log("Got initial",n.detail);break;case"signature":console.log("Got signature",n.detail);break}return[2]}))}))};e.prototype.renderCheckboxGroupOption=function(e,n,a,t){var o=this;var i=rescale(e.xRatio,a.x);var r=rescale(e.yRatio,a.y);var c={left:"".concat(i,"px"),bottom:"".concat(r,"px"),position:"absolute",transform:"scale(".concat(e.xRatio,", ").concat(e.yRatio,")"),backgroundColor:getRGBA(this.recipientIndex)};return h("verdocs-field-checkbox",{style:c,order:t,value:a.checked,onFieldChange:function(e){return o.handleFieldChange(n,e,a.id)}})};e.prototype.renderRadioGroupOption=function(e,n,a,t){var o=this;var i=rescale(e.xRatio,a.x);var r=rescale(e.yRatio,a.y);var c={left:"".concat(i,"px"),bottom:"".concat(r,"px"),position:"absolute",transform:"scale(".concat(e.xRatio,", ").concat(e.yRatio,")"),backgroundColor:getRGBA(this.recipientIndex)};return h("verdocs-field-radio-button",{style:c,order:t,value:a.id,name:n.name,checked:a.selected,onFieldChange:function(e){return o.handleFieldChange(n,e,a.id)}})};e.prototype.renderField=function(e,n){var a=this;var t=e.required,o=t===void 0?false:t,i=e.settings,r=i===void 0?{}:i;var c=r.x,u=c===void 0?0:c,d=r.y,l=d===void 0?0:d,s=r.base64,v=s===void 0?"":s,m=r.placeholder,f=m===void 0?"":m,p=r.options,g=p===void 0?[]:p,b=r.value,x=b===void 0?"":b,y=r.result,w=y===void 0?"":y;var _=this.pdfPageInfo.pages.find((function(n){return n.pageNumber===e.page}));if(!_){console.log("Unable to render invalid field",e);return h("div",{class:"invalid-field"},"Invalid field.")}var k=rescale(_.xRatio,u);var S=rescale(_.yRatio,l);var R={left:"".concat(k,"px"),bottom:"".concat(S,"px"),position:"absolute",transform:"scale(".concat(_.xRatio,", ").concat(_.yRatio,")"),backgroundColor:e.settings.rgba||getRGBA(this.recipientIndex)};if(e.settings.height){R.height="".concat(e.settings.height,"px")}if(e.settings.width){R.width="".concat(e.settings.width,"px")}console.log("rendering field",e.type,e);var I="field-".concat(e.name);switch(e.type){case"signature":return h("verdocs-field-signature",{style:R,value:v,required:o,id:I});case"initial":return h("verdocs-field-initial",{style:R,required:o,id:I});case"textbox":return h("verdocs-field-textbox",{style:R,order:n,value:w||"",placeholder:f,id:I,onFieldChange:function(n){return a.handleFieldChange(e,n)}});case"textarea":return h("verdocs-field-textarea",{style:R,placeholder:f||"",id:I});case"date":return h("verdocs-field-date",{style:R,order:n,value:w||"",placeholder:f,required:o,id:I});case"dropdown":return h("verdocs-field-dropdown",{style:R,options:g,value:x,required:o,id:I,onFieldChange:function(n){return a.handleFieldChange(e,n)}});case"checkbox":return h("verdocs-field-checkbox",{style:R,value:w||"",id:I});case"checkbox_group":return e.settings.options.map((function(n,t){return a.renderCheckboxGroupOption(_,e,n,t)}));case"radio_button_group":return e.settings.options.map((function(n,t){return a.renderRadioGroupOption(_,e,n,t)}));case"attachment":return h("verdocs-field-attachment",{style:R,value:w||"",id:I});case"payment":return h("verdocs-field-payment",{style:R,field:e,id:I});default:console.log("[SIGN] Skipping unsupported field type",e)}return h("div",{style:{display:"none"}},'Unsupported field type "',e.type,'"')};e.prototype.isFieldValid=function(e){var n,a,t,o,i,r,c,u,d,l,s,v;switch(e.type){case"textbox":switch(((n=e.settings)===null||n===void 0?void 0:n.validator)||""){case"email":return isValidEmail(((a=e.settings)===null||a===void 0?void 0:a.result)||"");case"phone":return isValidPhone(((t=e.settings)===null||t===void 0?void 0:t.result)||"");default:return!!((o=e.settings)===null||o===void 0?void 0:o.result)}case"signature":case"initial":case"textarea":case"date":case"attachment":return!!((i=e.settings)===null||i===void 0?void 0:i.result);case"dropdown":return!!((r=e.settings)===null||r===void 0?void 0:r.value);case"checkbox_group":var m=(((u=(c=e.settings)===null||c===void 0?void 0:c.options)===null||u===void 0?void 0:u.filter((function(e){return e.checked})))||[]).length;return m>=(((d=e.settings)===null||d===void 0?void 0:d.minimum_checked)||0)&&m<=(((l=e.settings)===null||l===void 0?void 0:l.maximum_checked)||999);case"radio_button_group":return(((v=(s=e.settings)===null||s===void 0?void 0:s.options)===null||v===void 0?void 0:v.filter((function(e){return e.selected})))||[]).length>0;default:return false}};e.prototype.handleDocumentRendered=function(e){console.log("[SIGN] Document rendered",e.detail);this.pdfPageInfo=e.detail};e.prototype.handleNext=function(){var e=this;var n=this.fields.filter((function(e){return e.required}));console.log("required Fields",n);var a=n.findIndex((function(n){return n.name===e.focusedField}));console.log("focused Index",a);var t=a+1;if(t>=n.length){t=0}var o=n[t];console.log("next required fielod",o);if(o){var i=document.getElementById("field-".concat(o.name));i===null||i===void 0?void 0:i.focusField();this.focusedField=o.name}};e.prototype.render=function(){var e=this;var n,a,t,o,i;var r=[{id:"later",label:"Finish Later"},{id:"claim",label:"Claim the Document",disabled:true},{id:"decline",label:"Decline to Sign"},{id:"print",label:"Print Without Signing"},{id:"download",label:"Download"}];return h(Host,{class:{storybook:!!(window===null||window===void 0?void 0:window["STORYBOOK_ENV"]),agreed:(n=this.recipient)===null||n===void 0?void 0:n.agreed}},h("div",{class:"header"},h("div",{class:"intro"},"Please review and act on these documents."),h("div",{class:"toolbar"},h("div",{class:"tools"},h("verdocs-dropdown",{options:r,onOptionSelected:function(n){return e.handleOptionSelected(n)}}),!((a=this.recipient)===null||a===void 0?void 0:a.agreed)?h("div",{style:{flex:"1",flexDirection:"row",display:"flex",alignItems:"center"}},h("div",{class:"agree-checkbox"},h("input",{type:"checkbox",value:"None",id:"agree-checkbox-element",name:"agree",onChange:function(){return e.handleClickAgree()}}),h("label",{htmlFor:"agree-checkbox-element"})),"I agree to use electronic records and signatures."):h("div",{style:{flex:"1"}}),h("verdocs-button",{label:this.nextButtonLabel,disabled:!((t=this.recipient)===null||t===void 0?void 0:t.agreed),onClick:function(){return e.handleNext()}})))),!((o=this.recipient)===null||o===void 0?void 0:o.agreed)?h("div",{class:"cover"}):h("div",{style:{display:"none"}}),h("div",{class:"document"},this.pdfUrl?h("verdocs-view",{source:this.pdfUrl,token:this.signerToken,onDocumentRendered:function(n){return e.handleDocumentRendered(n)}}):h("verdocs-loader",null),(((i=this.pdfPageInfo)===null||i===void 0?void 0:i.pages)||[]).map((function(n){var a;return h("div",{class:"page-controls",style:{height:"".concat(n.height,"px"),width:"".concat(n.width,"px"),top:"".concat(n.canvasTop,"px"),margin:"0 auto"}},((a=e.pdfPageInfo)===null||a===void 0?void 0:a.numRendered)>0?e.fields.filter((function(e){return e.page===n.pageNumber})).map((function(n,a){return e.renderField(n,a)})):h("div",{style:{display:"none"}},"Waiting for PDF to render..."))}))))};return e}();VerdocsSign.style=verdocsSignCss;export{VerdocsSign as verdocs_sign};
1
+ var __awaiter=this&&this.__awaiter||function(e,t,n,o){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function a(e){try{s(o.next(e))}catch(e){r(e)}}function c(e){try{s(o["throw"](e))}catch(e){r(e)}}function s(e){e.done?n(e.value):i(e.value).then(a,c)}s((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,i,r,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(e){return function(t){return s([e,t])}}function s(a){if(o)throw new TypeError("Generator is already executing.");while(n)try{if(o=1,i&&(r=a[0]&2?i["return"]:a[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;if(i=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){n.label=a[1];break}if(a[0]===6&&n.label<r[1]){n.label=r[1];r=a;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(a);break}if(r[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];i=0}finally{o=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host}from"./index-859bc689.js";import{a as getEndpoint,d as decodeAccessTokenBody,V as VerdocsEndpoint,s as setActiveEndpoint}from"./Token-ce37bd9d.js";import{B as Buffer}from"./buffer-es6-136673c8.js";function getRGBA(e){switch(e%10){case 0:return e===0?"rgba(255, 193, 7, 0.4)":"rgba(134, 134, 134, 0.3)";case 1:return"rgba(156, 39, 176, .4)";case 2:return"rgba(33, 150, 243, .4)";case 3:return"rgba(220, 231, 117, 0.3)";case 4:return"rgba(121, 134, 203, 0.3)";case 5:return"rgba(77, 182, 172, 0.3)";case 6:return"rgba(255, 202, 165, 0.3)";case 7:return"rgba(2, 247, 190, 0.3)";case 8:return"rgba(255, 138, 101, 0.3)";case 9:return"rgba(82, 255, 79, 0.3)";default:return"rgba(229, 115, 155, 0.3)"}}function rescale(e,t){return e*t}var __assign=undefined&&undefined.__assign||function(){__assign=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return __assign.apply(this,arguments)};var __awaiter$1=undefined&&undefined.__awaiter||function(e,t,n,o){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function a(e){try{s(o.next(e))}catch(e){r(e)}}function c(e){try{s(o["throw"](e))}catch(e){r(e)}}function s(e){e.done?n(e.value):i(e.value).then(a,c)}s((o=o.apply(e,t||[])).next())}))};var __generator$1=undefined&&undefined.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,i,r,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(e){return function(t){return s([e,t])}}function s(a){if(o)throw new TypeError("Generator is already executing.");while(n)try{if(o=1,i&&(r=a[0]&2?i["return"]:a[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;if(i=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){n.label=a[1];break}if(a[0]===6&&n.label<r[1]){n.label=r[1];r=a;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(a);break}if(r[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];i=0}finally{o=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var updateRecipientStatus=function(e,t,n,o){return __awaiter$1(void 0,void 0,void 0,(function(){return __generator$1(this,(function(i){return[2,getEndpoint().api.put("/documents/".concat(e,"/recipients/").concat(t),__assign({role_name:t,action:n},o||{})).then((function(e){return e.data}))]}))}))};var e164Regex=new RegExp(/\+[1-9]\d{6,14}/g);function simpleE164Validator(e){return e!==null&&e.length<16&&e.length>6&&e164Regex.test(e)||e===""||e===null}var EmailRegEx=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;var isValidEmail=function(e){return EmailRegEx.test(e)};var isValidPhone=function(e){return simpleE164Validator(e)};var __awaiter=undefined&&undefined.__awaiter||function(e,t,n,o){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function a(e){try{s(o.next(e))}catch(e){r(e)}}function c(e){try{s(o["throw"](e))}catch(e){r(e)}}function s(e){e.done?n(e.value):i(e.value).then(a,c)}s((o=o.apply(e,t||[])).next())}))};var __generator=undefined&&undefined.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,i,r,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(e){return function(t){return s([e,t])}}function s(a){if(o)throw new TypeError("Generator is already executing.");while(n)try{if(o=1,i&&(r=a[0]&2?i["return"]:a[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;if(i=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){n.label=a[1];break}if(a[0]===6&&n.label<r[1]){n.label=r[1];r=a;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(a);break}if(r[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];i=0}finally{o=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var getSigningSession=function(e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(t){return[2,getEndpoint().api.get("/documents/".concat(e.documentId,"/recipients/").concat(encodeURIComponent(e.roleId),"/invitation/").concat(e.inviteCode)).then((function(e){var t,n;var o=((t=e.headers)===null||t===void 0?void 0:t.signer_token)||"";var i=decodeAccessTokenBody(o);getEndpoint().setAuthorization((n=e.headers)===null||n===void 0?void 0:n.signer_token);return{recipient:e.data,session:i,signerToken:o}}))]}))}))};var getDocument=function(e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(t){return[2,getEndpoint().api.get("/documents/".concat(e)).then((function(e){return e.data}))]}))}))};var getDocumentFile=function(e,t){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(n){return[2,getEndpoint().api.get("/documents/".concat(e,"/envelope_documents/").concat(t,"?file=true"),{responseType:"arraybuffer"}).then((function(e){return Buffer.from(e.data,"binary").toString("base64")}))]}))}))};var updateDocumentField=function(e,t,n){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(o){return[2,getEndpoint().api.put("/documents/".concat(e,"/fields/").concat(t),n).then((function(e){return e.data}))]}))}))};var verdocsSignCss='verdocs-sign{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:600px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}verdocs-sign.storybook{max-height:600px}verdocs-sign div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign .header{-ms-flex:0 0 115px;flex:0 0 115px;z-index:1000;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);-webkit-transition:all 0.25s;transition:all 0.25s}verdocs-sign .intro{background-color:#ffffff;width:100%;margin:0 auto;padding:20px;max-width:1028px;color:rgba(0, 0, 0, 0.87)}verdocs-sign .toolbar{width:100%;margin:0 auto;padding:0 20px;max-width:1028px;position:relative}verdocs-sign .tools{width:100%;color:#fff;height:56px;padding:4px;display:-ms-flexbox;display:flex;font-size:12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;background-color:#33354c}verdocs-sign .cover{top:0;left:0;right:0;bottom:0;z-index:999;position:absolute;background:rgba(0, 0, 0, 0.5)}verdocs-sign .document{-ms-flex:1;flex:1;height:100%;position:relative;overflow-y:scroll}verdocs-sign .agree-checkbox{-ms-flex:0 0 20px;flex:0 0 20px;display:-ms-flexbox;display:flex;width:20px;height:20px;border-radius:3px;background:#ffffff;position:relative;margin:0 10px 0 30px}verdocs-sign .agree-checkbox label{left:2px;top:2px;width:16px;height:16px;cursor:pointer;position:absolute;background:#33354c;-webkit-box-shadow:inset 0 -1px 1px rgba(255, 255, 255, 0.8);box-shadow:inset 0 -1px 1px rgba(255, 255, 255, 0.8)}verdocs-sign .agree-checkbox label:after{top:2px;left:3px;width:8px;opacity:0;height:5px;content:"";position:absolute;background:transparent;filter:alpha(opacity=0);-webkit-transform:rotate(-45deg);transform:rotate(-45deg);border:2px solid #fcfff4;border-top:none;border-right:none}verdocs-sign .agree-checkbox label:hover::after{filter:alpha(opacity=30);opacity:0.3}verdocs-sign .agree-checkbox input[type=checkbox]:checked+label:after{filter:alpha(opacity=100);opacity:1}verdocs-sign.agreed .intro{display:none}verdocs-sign.agreed .header{-ms-flex:0 0 56px;flex:0 0 56px}verdocs-sign.agreed .agree-checkbox{background:#ccc}verdocs-sign.agreed .agree-checkbox label{cursor:default}verdocs-sign .page-controls{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:500}';var BASE_URL="https://stage-api.verdocs.com";var VerdocsSign=function(){function e(e){registerInstance(this,e);this.documentid=null;this.roleid=null;this.invitecode=null;this.endpoint=null;this.recipient=null;this.signerToken=null;this.pdfUrl=null;this.recipientIndex=-1;this.document=null;this.fields=[];this.hasSignature=false;this.nextButtonLabel="Start";this.focusedField=""}e.prototype.componentWillLoad=function(){var e=(new VerdocsEndpoint).setBaseURL(BASE_URL);setActiveEndpoint(e)};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,o,i,r;var a=this;return __generator(this,(function(c){switch(c.label){case 0:c.trys.push([0,3,,4]);console.log("[SIGN] Processing invite code",this.documentid,this.roleid,this.invitecode);return[4,getSigningSession({documentId:this.documentid,roleId:this.roleid,inviteCode:this.invitecode})];case 1:e=c.sent(),t=e.session,n=e.recipient,o=e.signerToken;console.log("[SIGN] Got signing session",t);console.log("[SIGN] Recipient",n);this.recipient=n;this.signerToken=o;getEndpoint().setSigningAuthorization(o);if(this.recipient.agreed){this.nextButtonLabel="Next"}return[4,getDocument(this.documentid)];case 2:i=c.sent();this.document=i;console.log("[SIGN] Document",i);this.pdfUrl="".concat(BASE_URL,"/documents/").concat(this.documentid,"/envelope_documents/").concat(i.envelope_document_id,"?file=true");this.recipientIndex=this.document.recipients.findIndex((function(e){return e.role_name==a.roleid}));if(this.recipientIndex>-1){console.log("Found recipient",this.document.recipients[this.recipientIndex])}this.fields=this.document.fields.filter((function(e){return e.recipient_role===a.roleid}));console.log("Loaded fields",this.fields);return[3,4];case 3:r=c.sent();console.log("Error with signing session",r);return[3,4];case 4:return[2]}}))}))};e.prototype.handleClickAgree=function(){var e=this;console.log("agree clicked");updateRecipientStatus(this.documentid,this.roleid,"update",{agreed:true}).then((function(t){console.log("update result",t);e.nextButtonLabel="Next";e.recipient=t})).catch((function(e){console.log("update failure",e)}))};e.prototype.savePDF=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,o;return __generator(this,(function(i){switch(i.label){case 0:e="".concat(this.document.name," - ").concat(this.document.updated_at.split("T")[0],".pdf");return[4,getDocumentFile(this.documentid,this.document.envelope_document_id)];case 1:t=i.sent();n=new XMLHttpRequest;n.responseType="blob";n.onload=function(){var t=document.createElement("a");t.href=window.URL.createObjectURL(n.response);t.download=e;t.style.display="none";document.body.appendChild(t);t.click();t.remove()};o="data:application/pdf;base64,".concat(t);console.log("url",o.length,o);n.open("GET","data:application/pdf;base64,".concat(t));n.send();return[2]}}))}))};e.prototype.handleOptionSelected=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(e.detail.id){case"later":if(!(window===null||window===void 0?void 0:window["STORYBOOK_ENV"])){window.alert("User intends to sign later.")}break;case"claim":break;case"decline":break;case"print":break;case"download":this.savePDF().catch((function(){}));break}return[2]}))}))};e.prototype.handleFieldChange=function(e,t,n){return __awaiter(this,void 0,void 0,(function(){var o;return __generator(this,(function(i){console.log("fieldChange",e,t.detail);switch(e.type){case"textbox":updateDocumentField(this.documentid,e.name,{prepared:false,value:t.detail}).then((function(e){return console.log("Update result",e)})).catch((function(e){return console.log("Error updating",e)}));break;case"checkbox_group":updateDocumentField(this.documentid,e.name,{prepared:false,value:{options:[{id:n,checked:t.detail}]}}).then((function(e){return console.log("Update result",e)})).catch((function(e){return console.log("Error updating",e)}));break;case"radio_button_group":o=e.settings.options.map((function(e){return{id:e.id,selected:n===e.id}}));updateDocumentField(this.documentid,e.name,{prepared:false,value:{options:o}}).then((function(e){return console.log("Update result",e)})).catch((function(e){return console.log("Error updating",e)}));break;case"dropdown":updateDocumentField(this.documentid,e.name,{prepared:false,value:t.detail}).then((function(e){return console.log("Update result",e)})).catch((function(e){return console.log("Error updating",e)}));break;case"initial":console.log("Got initial",t.detail);break;case"signature":console.log("Got signature",t.detail);break}return[2]}))}))};e.prototype.renderCheckboxGroupOption=function(e,t,n,o){var i=this;var r=rescale(e.xRatio,n.x);var a=rescale(e.yRatio,n.y);var c={left:"".concat(r,"px"),bottom:"".concat(a,"px"),position:"absolute",transform:"scale(".concat(e.xRatio,", ").concat(e.yRatio,")"),backgroundColor:getRGBA(this.recipientIndex)};return h("verdocs-field-checkbox",{style:c,order:o,value:n.checked,onFieldChange:function(e){return i.handleFieldChange(t,e,n.id)}})};e.prototype.renderRadioGroupOption=function(e,t,n,o){var i=this;var r=rescale(e.xRatio,n.x);var a=rescale(e.yRatio,n.y);var c={left:"".concat(r,"px"),bottom:"".concat(a,"px"),position:"absolute",transform:"scale(".concat(e.xRatio,", ").concat(e.yRatio,")"),backgroundColor:getRGBA(this.recipientIndex)};return h("verdocs-field-radio-button",{style:c,order:o,value:n.id,name:t.name,checked:n.selected,onFieldChange:function(e){return i.handleFieldChange(t,e,n.id)}})};e.prototype.renderField=function(e,t){var n=this;var o=e.required,i=o===void 0?false:o,r=e.settings,a=r===void 0?{}:r;var c=a.x,s=c===void 0?0:c,d=a.y,l=d===void 0?0:d,u=a.base64,p=u===void 0?"":u,f=a.placeholder,g=f===void 0?"":f,v=a.options,b=v===void 0?[]:v,x=a.value,m=x===void 0?"":x,y=a.result,w=y===void 0?"":y;var _=this.pdfPageInfo.pages.find((function(t){return t.pageNumber===e.page}));if(!_){console.log("Unable to render invalid field",e);return h("div",{class:"invalid-field"},"Invalid field.")}var k=rescale(_.xRatio,s);var R=rescale(_.yRatio,l);var S={left:"".concat(k,"px"),bottom:"".concat(R,"px"),position:"absolute",transform:"scale(".concat(_.xRatio,", ").concat(_.yRatio,")"),backgroundColor:e.settings.rgba||getRGBA(this.recipientIndex)};if(e.settings.height){S.height="".concat(e.settings.height,"px")}if(e.settings.width){S.width="".concat(e.settings.width,"px")}console.log("rendering field",e.type,e);var E="field-".concat(e.name);switch(e.type){case"signature":return h("verdocs-field-signature",{style:S,value:p,required:i,id:E});case"initial":return h("verdocs-field-initial",{style:S,required:i,id:E});case"textbox":return h("verdocs-field-textbox",{style:S,order:t,value:w||"",placeholder:g,id:E,onFieldChange:function(t){return n.handleFieldChange(e,t)}});case"textarea":return h("verdocs-field-textarea",{style:S,placeholder:g||"",id:E});case"date":return h("verdocs-field-date",{style:S,order:t,value:w||"",placeholder:g,required:i,id:E});case"dropdown":return h("verdocs-field-dropdown",{style:S,options:b,value:m,required:i,id:E,onFieldChange:function(t){return n.handleFieldChange(e,t)}});case"checkbox":return h("verdocs-field-checkbox",{style:S,value:w||"",id:E});case"checkbox_group":return e.settings.options.map((function(t,o){return n.renderCheckboxGroupOption(_,e,t,o)}));case"radio_button_group":return e.settings.options.map((function(t,o){return n.renderRadioGroupOption(_,e,t,o)}));case"attachment":return h("verdocs-field-attachment",{style:S,value:w||"",id:E});case"payment":return h("verdocs-field-payment",{style:S,field:e,id:E});default:console.log("[SIGN] Skipping unsupported field type",e)}return h("div",{style:{display:"none"}},'Unsupported field type "',e.type,'"')};e.prototype.isFieldValid=function(e){var t,n,o,i,r,a,c,s,d,l,u,p;switch(e.type){case"textbox":switch(((t=e.settings)===null||t===void 0?void 0:t.validator)||""){case"email":return isValidEmail(((n=e.settings)===null||n===void 0?void 0:n.result)||"");case"phone":return isValidPhone(((o=e.settings)===null||o===void 0?void 0:o.result)||"");default:return!!((i=e.settings)===null||i===void 0?void 0:i.result)}case"signature":case"initial":case"textarea":case"date":case"attachment":return!!((r=e.settings)===null||r===void 0?void 0:r.result);case"dropdown":return!!((a=e.settings)===null||a===void 0?void 0:a.value);case"checkbox_group":var f=(((s=(c=e.settings)===null||c===void 0?void 0:c.options)===null||s===void 0?void 0:s.filter((function(e){return e.checked})))||[]).length;return f>=(((d=e.settings)===null||d===void 0?void 0:d.minimum_checked)||0)&&f<=(((l=e.settings)===null||l===void 0?void 0:l.maximum_checked)||999);case"radio_button_group":return(((p=(u=e.settings)===null||u===void 0?void 0:u.options)===null||p===void 0?void 0:p.filter((function(e){return e.selected})))||[]).length>0;default:return false}};e.prototype.handleDocumentRendered=function(e){console.log("[SIGN] Document rendered",e.detail);this.pdfPageInfo=e.detail};e.prototype.handleNext=function(){var e=this;var t=this.fields.filter((function(e){return e.required}));console.log("required Fields",t);var n=t.findIndex((function(t){return t.name===e.focusedField}));console.log("focused Index",n);var o=n+1;if(o>=t.length){o=0}var i=t[o];console.log("next required fielod",i);if(i){var r=document.getElementById("field-".concat(i.name));r===null||r===void 0?void 0:r.focusField();this.focusedField=i.name}};e.prototype.render=function(){var e=this;var t,n,o,i,r;var a=[{id:"later",label:"Finish Later"},{id:"claim",label:"Claim the Document",disabled:true},{id:"decline",label:"Decline to Sign"},{id:"print",label:"Print Without Signing"},{id:"download",label:"Download"}];return h(Host,{class:{storybook:!!(window===null||window===void 0?void 0:window["STORYBOOK_ENV"]),agreed:(t=this.recipient)===null||t===void 0?void 0:t.agreed}},h("div",{class:"header"},h("div",{class:"intro"},"Please review and act on these documents."),h("div",{class:"toolbar"},h("div",{class:"tools"},h("verdocs-dropdown",{options:a,onOptionSelected:function(t){return e.handleOptionSelected(t)}}),!((n=this.recipient)===null||n===void 0?void 0:n.agreed)?h("div",{style:{flex:"1",flexDirection:"row",display:"flex",alignItems:"center"}},h("div",{class:"agree-checkbox"},h("input",{type:"checkbox",value:"None",id:"agree-checkbox-element",name:"agree",onChange:function(){return e.handleClickAgree()}}),h("label",{htmlFor:"agree-checkbox-element"})),"I agree to use electronic records and signatures."):h("div",{style:{flex:"1"}}),h("verdocs-button",{label:this.nextButtonLabel,disabled:!((o=this.recipient)===null||o===void 0?void 0:o.agreed),onClick:function(){return e.handleNext()}})))),!((i=this.recipient)===null||i===void 0?void 0:i.agreed)?h("div",{class:"cover"}):h("div",{style:{display:"none"}}),h("div",{class:"document"},this.pdfUrl?h("verdocs-view",{source:this.pdfUrl,token:this.signerToken,onDocumentRendered:function(t){return e.handleDocumentRendered(t)}}):h("verdocs-loader",null),(((r=this.pdfPageInfo)===null||r===void 0?void 0:r.pages)||[]).map((function(t){var n;return h("div",{class:"page-controls",style:{height:"".concat(t.height,"px"),width:"".concat(t.width,"px"),top:"".concat(t.canvasTop,"px"),margin:"0 auto"}},((n=e.pdfPageInfo)===null||n===void 0?void 0:n.numRendered)>0?e.fields.filter((function(e){return e.page===t.pageNumber})).map((function(t,n){return e.renderField(t,n)})):h("div",{style:{display:"none"}},"Waiting for PDF to render..."))}))))};return e}();VerdocsSign.style=verdocsSignCss;export{VerdocsSign as verdocs_sign};
@@ -1 +1 @@
1
- import{r as registerInstance,e as createEvent,h,f as Host}from"./index-ddbd60b5.js";var verdocsSignatureDialogCss='verdocs-signature-dialog{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;display:none}verdocs-signature-dialog.open{display:block}verdocs-signature-dialog .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-signature-dialog .dialog{width:100%;max-width:340px;border-radius:4px;overflow:hidden;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);background:#f9f9f9}verdocs-signature-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:20px 20px 0 20px;line-height:28px;font-size:20px;font-weight:500}verdocs-signature-dialog .content{font-size:14px;padding:20px}verdocs-signature-dialog .buttons{display:-ms-flexbox;display:flex;margin:20px 0 0 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center}verdocs-signature-dialog .buttons verdocs-button{margin-left:16px}verdocs-signature-dialog canvas{background:#fff;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 auto;width:300px;height:79px;max-width:100%;-webkit-box-shadow:0 0 6px 0 #0000001f;box-shadow:0 0 6px 0 #0000001f}verdocs-signature-dialog .disclaimer{text-align:justify;padding:8px 0;font-size:11px;line-height:14px;color:rgba(0, 0, 0, 0.54)}verdocs-signature-dialog .as-shown{font-size:11px;margin:4px 0 20px 4px;color:rgba(0, 0, 0, 0.54)}verdocs-signature-dialog .tabs{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-signature-dialog .tabs .tab{padding:8px 15px;cursor:pointer}verdocs-signature-dialog .tabs .tab.active{border-bottom:2px solid #ccc}verdocs-signature-dialog .tabs .tab:hover{color:var(--verdocs-primary-color)}';var VerdocsSignatureDialog=function(){function e(e){registerInstance(this,e);this.adopt=createEvent(this,"adopt",7);this.cancel=createEvent(this,"cancel",7);this.fullname="";this.open=false;this.fontLoaded=false;this.enteredName="";this.mode="type"}e.prototype.componentWillLoad=function(){var e=this;this.enteredName=this.fullname;var t=new FontFace("Dancing Script","url(https://fonts.gstatic.com/s/dancingscript/v19/If2cXTr6YS-zF4S-kcSWSVi_sxjsohD9F50Ruu7BMSo3Sup6hNX6plRP.woff)");t.load().then((function(t){document.fonts.add(t);e.fontLoaded=true}))};e.prototype.componentDidLoad=function(){this.redrawSignature()};e.prototype.componentDidUpdate=function(){this.redrawSignature()};e.prototype.redrawSignature=function(){if(!this.canvasElement){return}var e=this.canvasElement.width;var t=this.canvasElement.getContext("2d");t.clearRect(0,0,this.canvasElement.width,this.canvasElement.height);var n=100;do{n-=2;t.font="".concat(n,"px Dancing Script")}while(t.measureText(this.enteredName).width>e-32);t.textAlign="center";t.textBaseline="middle";t.font="".concat(n,"px Dancing Script");t.fillText(this.enteredName,this.canvasElement.width/2,this.canvasElement.height/2)};e.prototype.handleDismiss=function(e){if(e.target.className==="background-overlay"){e.preventDefault();this.handleCancel()}};e.prototype.handleNameChange=function(e){this.enteredName=e.detail};e.prototype.handleAdopt=function(){var e=this.canvasElement.toDataURL("image/png");this.adopt.emit(e);this.open=false};e.prototype.handleCancel=function(){this.cancel.emit();this.open=false};e.prototype.render=function(){var e=this;return h(Host,{class:{open:this.open}},h("div",{class:"background-overlay",onClick:function(t){return e.handleDismiss(t)}},h("div",{class:"dialog"},h("div",{class:"heading"},"Create Your Signature"),h("div",{class:"content"},h("verdocs-text-input",{placeholder:"Full Name...",label:"Full Name",value:this.enteredName,onFieldInput:function(t){return e.handleNameChange(t)}}),h("div",{class:"as-shown"},"As shown on driver's license or govt. ID card."),h("div",{class:"tabs"},h("div",{class:{tab:true,active:this.mode==="type"},onClick:function(){return e.mode="type"}},"Type"),h("div",{class:{tab:true,active:this.mode==="draw"},onClick:function(){return e.mode="draw"}},"Draw")),this.fontLoaded?h("canvas",{ref:function(t){return e.canvasElement=t}}):h("div",{style:{display:"none"}}),h("div",{class:"disclaimer"},"By clicking Adopt, I agree that the signature will be the electronic representation of my signature for all purposes when I (or my agent) use them on documents, including legally binding contracts — just the same as a pen-and-paper signature or initial."),h("div",{class:"buttons"},h("verdocs-button",{label:"CANCEL",size:"normal",variant:"outline",onPress:function(){return e.handleCancel()}}),h("verdocs-button",{label:"Adopt & Sign",size:"normal",onPress:function(){return e.handleAdopt()}}))))))};return e}();VerdocsSignatureDialog.style=verdocsSignatureDialogCss;export{VerdocsSignatureDialog as verdocs_signature_dialog};
1
+ import{r as registerInstance,c as createEvent,h,H as Host}from"./index-859bc689.js";var verdocsSignatureDialogCss='verdocs-signature-dialog{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;display:none}verdocs-signature-dialog.open{display:block}verdocs-signature-dialog .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-signature-dialog .dialog{width:100%;max-width:340px;border-radius:4px;overflow:hidden;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);background:#f5f5fa}verdocs-signature-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;padding:20px 20px 0 20px;line-height:28px;font-size:20px;font-weight:500}verdocs-signature-dialog .content{font-size:14px;padding:20px}verdocs-signature-dialog .buttons{display:-ms-flexbox;display:flex;margin:20px 0 0 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end;-ms-flex-align:center;align-items:center}verdocs-signature-dialog .buttons verdocs-button{margin-left:16px}verdocs-signature-dialog canvas{background:#ffffff;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 auto;width:300px;height:79px;max-width:100%;-webkit-box-shadow:0 0 6px 0 #0000001f;box-shadow:0 0 6px 0 #0000001f}verdocs-signature-dialog .disclaimer{text-align:justify;padding:8px 0;font-size:11px;line-height:14px;color:rgba(0, 0, 0, 0.54)}verdocs-signature-dialog .as-shown{font-size:11px;margin:4px 0 20px 4px;color:rgba(0, 0, 0, 0.54)}verdocs-signature-dialog .tabs{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-signature-dialog .tabs .tab{padding:8px 15px;cursor:pointer}verdocs-signature-dialog .tabs .tab.active{border-bottom:2px solid #cccccc}verdocs-signature-dialog .tabs .tab:hover{color:#55bc81}';var VerdocsSignatureDialog=function(){function e(e){registerInstance(this,e);this.adopt=createEvent(this,"adopt",7);this.cancel=createEvent(this,"cancel",7);this.fullname="";this.open=false;this.fontLoaded=false;this.enteredName="";this.mode="type"}e.prototype.componentWillLoad=function(){var e=this;this.enteredName=this.fullname;var t=new FontFace("Dancing Script","url(https://fonts.gstatic.com/s/dancingscript/v19/If2cXTr6YS-zF4S-kcSWSVi_sxjsohD9F50Ruu7BMSo3Sup6hNX6plRP.woff)");t.load().then((function(t){document.fonts.add(t);e.fontLoaded=true}))};e.prototype.componentDidLoad=function(){this.redrawSignature()};e.prototype.componentDidUpdate=function(){this.redrawSignature()};e.prototype.redrawSignature=function(){if(!this.canvasElement){return}var e=this.canvasElement.width;var t=this.canvasElement.getContext("2d");t.clearRect(0,0,this.canvasElement.width,this.canvasElement.height);var n=100;do{n-=2;t.font="".concat(n,"px Dancing Script")}while(t.measureText(this.enteredName).width>e-32);t.textAlign="center";t.textBaseline="middle";t.font="".concat(n,"px Dancing Script");t.fillText(this.enteredName,this.canvasElement.width/2,this.canvasElement.height/2)};e.prototype.handleDismiss=function(e){if(e.target.className==="background-overlay"){e.preventDefault();this.handleCancel()}};e.prototype.handleNameChange=function(e){this.enteredName=e.detail};e.prototype.handleAdopt=function(){var e=this.canvasElement.toDataURL("image/png");this.adopt.emit(e);this.open=false};e.prototype.handleCancel=function(){this.cancel.emit();this.open=false};e.prototype.render=function(){var e=this;return h(Host,{class:{open:this.open}},h("div",{class:"background-overlay",onClick:function(t){return e.handleDismiss(t)}},h("div",{class:"dialog"},h("div",{class:"heading"},"Create Your Signature"),h("div",{class:"content"},h("verdocs-text-input",{placeholder:"Full Name...",label:"Full Name",value:this.enteredName,onFieldInput:function(t){return e.handleNameChange(t)}}),h("div",{class:"as-shown"},"As shown on driver's license or govt. ID card."),h("div",{class:"tabs"},h("div",{class:{tab:true,active:this.mode==="type"},onClick:function(){return e.mode="type"}},"Type"),h("div",{class:{tab:true,active:this.mode==="draw"},onClick:function(){return e.mode="draw"}},"Draw")),this.fontLoaded?h("canvas",{ref:function(t){return e.canvasElement=t}}):h("div",{style:{display:"none"}}),h("div",{class:"disclaimer"},"By clicking Adopt, I agree that the signature will be the electronic representation of my signature for all purposes when I (or my agent) use them on documents, including legally binding contracts — just the same as a pen-and-paper signature or initial."),h("div",{class:"buttons"},h("verdocs-button",{label:"CANCEL",size:"normal",variant:"outline",onPress:function(){return e.handleCancel()}}),h("verdocs-button",{label:"Adopt & Sign",size:"normal",onPress:function(){return e.handleAdopt()}}))))))};return e}();VerdocsSignatureDialog.style=verdocsSignatureDialogCss;export{VerdocsSignatureDialog as verdocs_signature_dialog};