@verdocs/web-sdk 2.3.14 → 2.3.16

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 (364) hide show
  1. package/dist/cjs/{EnvelopeStore-f8c301e1.js → EnvelopeStore-efc35530.js} +1 -1
  2. package/dist/cjs/{Envelopes-99ca79fe.js → Envelopes-0b9deb2c.js} +2 -6
  3. package/dist/cjs/{Profiles-54271244.js → Profiles-1a26e4eb.js} +0 -34
  4. package/dist/cjs/TemplateFieldStore-7449e5ff.js +24 -0
  5. package/dist/cjs/{TemplateStore-d9936a68.js → TemplateStore-0074c71d.js} +3 -1
  6. package/dist/cjs/{Types-ee5afdf8.js → Types-fb95ed6b.js} +2 -1
  7. package/dist/cjs/{VerdocsEndpoint-2d85658d.js → VerdocsEndpoint-8f298664.js} +197 -563
  8. package/dist/cjs/{_commonjsHelpers-0c557e26.js → _commonjsHelpers-1fbbf0eb.js} +0 -5
  9. package/dist/cjs/interact.min-a61b43b3.js +12 -0
  10. package/dist/cjs/ipc-test.cjs.entry.js +3 -2
  11. package/dist/cjs/loader.cjs.js +1 -1
  12. package/dist/cjs/{utils-2ddfdf9e.js → utils-0916d10f.js} +3 -3
  13. package/dist/cjs/verdocs-activity-box.cjs.entry.js +2 -2
  14. package/dist/cjs/verdocs-auth.cjs.entry.js +8 -34
  15. package/dist/cjs/verdocs-build.cjs.entry.js +3 -2
  16. package/dist/cjs/verdocs-button-panel_2.cjs.entry.js +71 -45
  17. package/dist/cjs/{verdocs-contact-picker_2.cjs.entry.js → verdocs-contact-picker_3.cjs.entry.js} +78 -6
  18. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +5 -5
  19. package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +3 -3
  20. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +5 -4
  21. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +5 -5
  22. package/dist/cjs/verdocs-field-attachment.cjs.entry.js +4 -4
  23. package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +4 -4
  24. package/dist/cjs/verdocs-field-date.cjs.entry.js +5 -5
  25. package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +4 -5
  26. package/dist/cjs/verdocs-field-initial.cjs.entry.js +4 -4
  27. package/dist/cjs/verdocs-field-payment.cjs.entry.js +4 -4
  28. package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +4 -4
  29. package/dist/cjs/verdocs-field-signature.cjs.entry.js +4 -4
  30. package/dist/cjs/verdocs-field-textarea.cjs.entry.js +10 -9
  31. package/dist/cjs/verdocs-field-textbox.cjs.entry.js +19 -10
  32. package/dist/cjs/verdocs-field-timestamp.cjs.entry.js +5 -5
  33. package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +1 -1
  34. package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +2 -1
  35. package/dist/cjs/verdocs-pagination_2.cjs.entry.js +4 -4
  36. package/dist/cjs/verdocs-preview_8.cjs.entry.js +10 -8
  37. package/dist/cjs/verdocs-quick-functions_2.cjs.entry.js +79 -0
  38. package/dist/cjs/verdocs-search.cjs.entry.js +1 -1
  39. package/dist/cjs/verdocs-settings-api-keys_4.cjs.entry.js +70 -37
  40. package/dist/cjs/verdocs-settings.cjs.entry.js +1 -1
  41. package/dist/cjs/verdocs-sign.cjs.entry.js +12 -9
  42. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +5 -5
  43. package/dist/cjs/verdocs-template-fields_4.cjs.entry.js +92 -80
  44. package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
  45. package/dist/cjs/verdocs-templates-list.cjs.entry.js +1 -1
  46. package/dist/cjs/verdocs-view.cjs.entry.js +5 -5
  47. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  48. package/dist/collection/collection-manifest.json +1 -1
  49. package/dist/collection/components/controls/verdocs-portal/verdocs-portal.css +0 -0
  50. package/dist/collection/components/controls/verdocs-portal/verdocs-portal.js +181 -0
  51. package/dist/collection/components/controls/verdocs-portal/verdocs-portal.stories.js +20 -0
  52. package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +20 -1
  53. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +6 -34
  54. package/dist/collection/components/embeds/verdocs-send/verdocs-send.js +2 -1
  55. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +8 -4
  56. package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.css +4 -1
  57. package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js +1 -0
  58. package/dist/collection/components/fields/verdocs-field-date/verdocs-field-date.css +1 -0
  59. package/dist/collection/components/fields/verdocs-field-dropdown/verdocs-field-dropdown.js +0 -1
  60. package/dist/collection/components/fields/verdocs-field-textarea/verdocs-field-textarea.js +2 -1
  61. package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.css +1 -1
  62. package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.js +27 -1
  63. package/dist/collection/components/fields/verdocs-field-timestamp/verdocs-field-timestamp.css +1 -0
  64. package/dist/collection/components/templates/verdocs-template-create/verdocs-template-create.js +2 -2
  65. package/dist/collection/components/templates/verdocs-template-field-properties/verdocs-template-field-properties.js +71 -44
  66. package/dist/collection/components/templates/verdocs-template-fields/verdocs-template-fields.js +80 -68
  67. package/dist/collection/utils/TemplateFieldStore.js +18 -0
  68. package/dist/collection/utils/TemplateStore.js +2 -0
  69. package/dist/collection/utils/Types.js +2 -1
  70. package/dist/components/Envelopes.js +2 -6
  71. package/dist/components/TemplateStore.js +21 -2
  72. package/dist/components/Types2.js +2 -1
  73. package/dist/components/VerdocsEndpoint.js +197 -562
  74. package/dist/components/_commonjsHelpers.js +1 -5
  75. package/dist/components/index.d.ts +1 -1
  76. package/dist/components/index.js +1 -1
  77. package/dist/components/index3.js +40 -29
  78. package/dist/components/interact.min.js +5 -6
  79. package/dist/components/verdocs-auth.js +12 -46
  80. package/dist/components/verdocs-build.js +22 -16
  81. package/dist/components/verdocs-contact-picker2.js +1 -1
  82. package/dist/components/verdocs-envelope-sidebar.js +1 -0
  83. package/dist/components/verdocs-field-date.js +1 -1
  84. package/dist/components/verdocs-field-dropdown.js +0 -1
  85. package/dist/components/verdocs-field-textarea.js +5 -4
  86. package/dist/components/verdocs-field-textbox.js +14 -5
  87. package/dist/components/verdocs-field-timestamp.js +1 -1
  88. package/dist/components/verdocs-ok-dialog2.js +3 -1
  89. package/dist/components/verdocs-portal.d.ts +11 -0
  90. package/dist/components/verdocs-portal.js +6 -0
  91. package/dist/components/verdocs-portal2.js +93 -0
  92. package/dist/components/verdocs-preview2.js +1 -1
  93. package/dist/components/verdocs-search.js +2 -8
  94. package/dist/components/verdocs-send2.js +12 -5
  95. package/dist/components/verdocs-settings-organization2.js +22 -1
  96. package/dist/components/verdocs-sign.js +8 -4
  97. package/dist/components/verdocs-template-create2.js +2 -2
  98. package/dist/components/verdocs-template-field-properties2.js +71 -45
  99. package/dist/components/verdocs-template-fields2.js +83 -72
  100. package/dist/components/verdocs-template-roles2.js +4 -4
  101. package/dist/docs.json +156 -108
  102. package/dist/esm/{EnvelopeStore-15cc99ef.js → EnvelopeStore-17c0bc52.js} +1 -1
  103. package/dist/esm/{Envelopes-21ffb899.js → Envelopes-627c5239.js} +2 -6
  104. package/dist/esm/{Profiles-4cc942ef.js → Profiles-d4df4d1c.js} +1 -32
  105. package/dist/esm/TemplateFieldStore-4f1b6332.js +21 -0
  106. package/dist/esm/{TemplateStore-018fc1db.js → TemplateStore-a2ebdaca.js} +3 -1
  107. package/dist/esm/Types-1628dc71.js +5 -0
  108. package/dist/esm/{VerdocsEndpoint-b011af25.js → VerdocsEndpoint-56fa3371.js} +197 -562
  109. package/dist/esm/{_commonjsHelpers-5ec8f9b7.js → _commonjsHelpers-8a9f3b18.js} +1 -5
  110. package/dist/esm/interact.min-6a7b19a1.js +10 -0
  111. package/dist/esm/ipc-test.entry.js +3 -2
  112. package/dist/esm/loader.js +1 -1
  113. package/dist/esm/{utils-d269cea3.js → utils-ca3121df.js} +3 -3
  114. package/dist/esm/verdocs-activity-box.entry.js +2 -2
  115. package/dist/esm/verdocs-auth.entry.js +8 -34
  116. package/dist/esm/verdocs-build.entry.js +3 -2
  117. package/dist/esm/verdocs-button-panel_2.entry.js +71 -45
  118. package/dist/esm/{verdocs-contact-picker_2.entry.js → verdocs-contact-picker_3.entry.js} +78 -7
  119. package/dist/esm/verdocs-envelope-document-page.entry.js +5 -5
  120. package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +3 -3
  121. package/dist/esm/verdocs-envelope-sidebar.entry.js +5 -4
  122. package/dist/esm/verdocs-envelopes-list.entry.js +5 -5
  123. package/dist/esm/verdocs-field-attachment.entry.js +4 -4
  124. package/dist/esm/verdocs-field-checkbox.entry.js +4 -4
  125. package/dist/esm/verdocs-field-date.entry.js +5 -5
  126. package/dist/esm/verdocs-field-dropdown.entry.js +4 -5
  127. package/dist/esm/verdocs-field-initial.entry.js +4 -4
  128. package/dist/esm/verdocs-field-payment.entry.js +4 -4
  129. package/dist/esm/verdocs-field-radio-button.entry.js +4 -4
  130. package/dist/esm/verdocs-field-signature.entry.js +4 -4
  131. package/dist/esm/verdocs-field-textarea.entry.js +10 -9
  132. package/dist/esm/verdocs-field-textbox.entry.js +19 -10
  133. package/dist/esm/verdocs-field-timestamp.entry.js +5 -5
  134. package/dist/esm/verdocs-file-chooser_2.entry.js +1 -1
  135. package/dist/esm/verdocs-ok-dialog.entry.js +2 -1
  136. package/dist/esm/verdocs-pagination_2.entry.js +4 -4
  137. package/dist/esm/verdocs-preview_8.entry.js +10 -8
  138. package/dist/esm/verdocs-quick-functions_2.entry.js +74 -0
  139. package/dist/esm/verdocs-search.entry.js +1 -1
  140. package/dist/esm/verdocs-settings-api-keys_4.entry.js +68 -35
  141. package/dist/esm/verdocs-settings.entry.js +1 -1
  142. package/dist/esm/verdocs-sign.entry.js +12 -9
  143. package/dist/esm/verdocs-template-document-page_2.entry.js +5 -5
  144. package/dist/esm/verdocs-template-fields_4.entry.js +92 -80
  145. package/dist/esm/verdocs-template-star.entry.js +1 -1
  146. package/dist/esm/verdocs-templates-list.entry.js +1 -1
  147. package/dist/esm/verdocs-view.entry.js +5 -5
  148. package/dist/esm/verdocs-web-sdk.js +1 -1
  149. package/dist/esm-es5/{EnvelopeStore-15cc99ef.js → EnvelopeStore-17c0bc52.js} +1 -1
  150. package/dist/esm-es5/Envelopes-627c5239.js +1 -0
  151. package/dist/esm-es5/Profiles-d4df4d1c.js +1 -0
  152. package/dist/esm-es5/TemplateFieldStore-4f1b6332.js +1 -0
  153. package/dist/esm-es5/TemplateStore-a2ebdaca.js +1 -0
  154. package/dist/esm-es5/Types-1628dc71.js +1 -0
  155. package/dist/esm-es5/VerdocsEndpoint-56fa3371.js +1 -0
  156. package/dist/esm-es5/_commonjsHelpers-8a9f3b18.js +1 -0
  157. package/dist/esm-es5/interact.min-6a7b19a1.js +1 -0
  158. package/dist/esm-es5/ipc-test.entry.js +1 -1
  159. package/dist/esm-es5/loader.js +1 -1
  160. package/dist/esm-es5/{utils-d269cea3.js → utils-ca3121df.js} +2 -2
  161. package/dist/esm-es5/verdocs-activity-box.entry.js +1 -1
  162. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  163. package/dist/esm-es5/verdocs-build.entry.js +1 -1
  164. package/dist/esm-es5/verdocs-button-panel_2.entry.js +1 -1
  165. package/dist/esm-es5/verdocs-contact-picker_3.entry.js +1 -0
  166. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
  167. package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js +1 -1
  168. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  169. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  170. package/dist/esm-es5/verdocs-field-attachment.entry.js +1 -1
  171. package/dist/esm-es5/verdocs-field-checkbox.entry.js +1 -1
  172. package/dist/esm-es5/verdocs-field-date.entry.js +1 -1
  173. package/dist/esm-es5/verdocs-field-dropdown.entry.js +1 -1
  174. package/dist/esm-es5/verdocs-field-initial.entry.js +1 -1
  175. package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
  176. package/dist/esm-es5/verdocs-field-radio-button.entry.js +1 -1
  177. package/dist/esm-es5/verdocs-field-signature.entry.js +1 -1
  178. package/dist/esm-es5/verdocs-field-textarea.entry.js +1 -1
  179. package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -1
  180. package/dist/esm-es5/verdocs-field-timestamp.entry.js +1 -1
  181. package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
  182. package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
  183. package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
  184. package/dist/esm-es5/verdocs-preview_8.entry.js +1 -1
  185. package/dist/esm-es5/verdocs-quick-functions_2.entry.js +1 -0
  186. package/dist/esm-es5/verdocs-search.entry.js +1 -1
  187. package/dist/esm-es5/verdocs-settings-api-keys_4.entry.js +1 -1
  188. package/dist/esm-es5/verdocs-settings.entry.js +1 -1
  189. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  190. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  191. package/dist/esm-es5/verdocs-template-fields_4.entry.js +1 -1
  192. package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
  193. package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
  194. package/dist/esm-es5/verdocs-view.entry.js +1 -1
  195. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  196. package/dist/types/components/controls/verdocs-portal/verdocs-portal.d.ts +37 -0
  197. package/dist/types/components/{elements/verdocs-search-activity/verdocs-search-activity.stories.d.ts → controls/verdocs-portal/verdocs-portal.stories.d.ts} +3 -6
  198. package/dist/types/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.d.ts +4 -0
  199. package/dist/types/components/embeds/verdocs-auth/verdocs-auth.d.ts +0 -2
  200. package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +1 -0
  201. package/dist/types/components/fields/verdocs-field-textbox/verdocs-field-textbox.d.ts +7 -0
  202. package/dist/types/components/templates/verdocs-template-field-properties/verdocs-template-field-properties.d.ts +8 -5
  203. package/dist/types/components/templates/verdocs-template-fields/verdocs-template-fields.d.ts +4 -2
  204. package/dist/types/components.d.ts +58 -34
  205. package/dist/types/utils/TemplateFieldStore.d.ts +6 -0
  206. package/dist/types/utils/TemplateStore.d.ts +1 -1
  207. package/dist/types/utils/Types.d.ts +1 -1
  208. package/dist/types/utils/utils.d.ts +2 -2
  209. package/dist/verdocs-web-sdk/{p-a35314fe.js → p-02a71e03.js} +1 -1
  210. package/dist/verdocs-web-sdk/{p-7805f0e0.entry.js → p-035a3ce2.entry.js} +1 -1
  211. package/dist/verdocs-web-sdk/p-035f6b38.js +1 -0
  212. package/dist/verdocs-web-sdk/{p-1406ffd2.entry.js → p-05e6bc91.entry.js} +1 -1
  213. package/dist/verdocs-web-sdk/{p-10af7aec.system.entry.js → p-0685d939.system.entry.js} +1 -1
  214. package/dist/verdocs-web-sdk/p-084c23e4.system.js +1 -0
  215. package/dist/verdocs-web-sdk/p-0abf0058.system.entry.js +1 -0
  216. package/dist/verdocs-web-sdk/p-12d00a0f.entry.js +1 -0
  217. package/dist/verdocs-web-sdk/p-17598002.system.entry.js +1 -0
  218. package/dist/verdocs-web-sdk/{p-04d7d759.system.entry.js → p-17bf98f2.system.entry.js} +1 -1
  219. package/dist/verdocs-web-sdk/p-1a7aa04b.entry.js +1 -0
  220. package/dist/verdocs-web-sdk/p-1ba9f457.system.js +1 -0
  221. package/dist/verdocs-web-sdk/{p-2f04fb38.system.entry.js → p-1cb878c8.system.entry.js} +1 -1
  222. package/dist/verdocs-web-sdk/{p-261d376e.system.entry.js → p-1e38b22f.system.entry.js} +1 -1
  223. package/dist/verdocs-web-sdk/{p-ebc4142c.js → p-1f78be32.js} +1 -1
  224. package/dist/verdocs-web-sdk/p-22e0d2bc.entry.js +1 -0
  225. package/dist/verdocs-web-sdk/{p-4f439363.entry.js → p-2ccbf54d.entry.js} +1 -1
  226. package/dist/verdocs-web-sdk/p-319c00bd.entry.js +1 -0
  227. package/dist/verdocs-web-sdk/p-32c40388.entry.js +1 -0
  228. package/dist/verdocs-web-sdk/p-358aef29.entry.js +1 -0
  229. package/dist/verdocs-web-sdk/{p-77abc3ce.entry.js → p-37dfdc84.entry.js} +1 -1
  230. package/dist/verdocs-web-sdk/p-3cd0d440.system.entry.js +1 -0
  231. package/dist/verdocs-web-sdk/p-3e607686.js +1 -0
  232. package/dist/verdocs-web-sdk/{p-a171983b.system.entry.js → p-3f3807b0.system.entry.js} +1 -1
  233. package/dist/verdocs-web-sdk/{p-8da1555a.entry.js → p-410c63e6.entry.js} +1 -1
  234. package/dist/verdocs-web-sdk/p-429cad70.js +1 -0
  235. package/dist/verdocs-web-sdk/{p-3a702f79.entry.js → p-46624bec.entry.js} +1 -1
  236. package/dist/verdocs-web-sdk/{p-a0b02d83.system.entry.js → p-4d98f194.system.entry.js} +1 -1
  237. package/dist/verdocs-web-sdk/{p-af3e9624.entry.js → p-4e47ed1c.entry.js} +1 -1
  238. package/dist/verdocs-web-sdk/p-4e74bb3c.entry.js +1 -0
  239. package/dist/verdocs-web-sdk/p-588d6cea.system.entry.js +1 -0
  240. package/dist/verdocs-web-sdk/{p-e3a9d167.system.entry.js → p-59769c39.system.entry.js} +1 -1
  241. package/dist/verdocs-web-sdk/{p-126ba5d2.system.entry.js → p-5aa77f6d.system.entry.js} +1 -1
  242. package/dist/verdocs-web-sdk/p-5bf12ef8.entry.js +1 -0
  243. package/dist/verdocs-web-sdk/{p-39cbfe15.entry.js → p-6331d113.entry.js} +1 -1
  244. package/dist/verdocs-web-sdk/{p-9b07a2a7.entry.js → p-637187de.entry.js} +1 -1
  245. package/dist/verdocs-web-sdk/{p-df6a373e.system.entry.js → p-6685ff29.system.entry.js} +1 -1
  246. package/dist/verdocs-web-sdk/p-6dd69d82.system.entry.js +1 -0
  247. package/dist/verdocs-web-sdk/p-72978ba3.system.entry.js +1 -0
  248. package/dist/verdocs-web-sdk/p-736fbb87.system.entry.js +1 -0
  249. package/dist/verdocs-web-sdk/p-76f8c30a.entry.js +1 -0
  250. package/dist/verdocs-web-sdk/p-7b30c523.system.entry.js +1 -0
  251. package/dist/verdocs-web-sdk/p-7d5dbd9a.js +1 -0
  252. package/dist/verdocs-web-sdk/{p-eef694e8.entry.js → p-82d4afbf.entry.js} +1 -1
  253. package/dist/verdocs-web-sdk/p-839f6f0d.js +1 -0
  254. package/dist/verdocs-web-sdk/{p-c694cf93.system.js → p-840827b7.system.js} +1 -1
  255. package/dist/verdocs-web-sdk/{p-62f090c7.system.entry.js → p-870707e8.system.entry.js} +1 -1
  256. package/dist/verdocs-web-sdk/p-8aae8d16.system.js +1 -0
  257. package/dist/verdocs-web-sdk/{p-14aefeb2.system.entry.js → p-8af68516.system.entry.js} +1 -1
  258. package/dist/verdocs-web-sdk/{p-ace35be6.entry.js → p-8b0a5309.entry.js} +1 -1
  259. package/dist/verdocs-web-sdk/p-8dc15d33.js +1 -0
  260. package/dist/verdocs-web-sdk/p-915883e6.js +1 -0
  261. package/dist/verdocs-web-sdk/{p-aa51514f.system.entry.js → p-9360b085.system.entry.js} +1 -1
  262. package/dist/verdocs-web-sdk/{p-a310f65b.entry.js → p-94009f45.entry.js} +1 -1
  263. package/dist/verdocs-web-sdk/{p-7e8d64fb.system.js → p-9615b087.system.js} +1 -1
  264. package/dist/verdocs-web-sdk/p-9bf2d124.system.js +1 -0
  265. package/dist/verdocs-web-sdk/{p-5c50a778.system.entry.js → p-9ceff040.system.entry.js} +1 -1
  266. package/dist/verdocs-web-sdk/p-9fc06f7b.entry.js +1 -0
  267. package/dist/verdocs-web-sdk/{p-0df58c57.entry.js → p-a40b3946.entry.js} +1 -1
  268. package/dist/verdocs-web-sdk/p-a627881e.system.js +1 -0
  269. package/dist/verdocs-web-sdk/p-aae6b4e0.entry.js +1 -0
  270. package/dist/verdocs-web-sdk/{p-35769d0c.system.entry.js → p-ac98f6f1.system.entry.js} +1 -1
  271. package/dist/verdocs-web-sdk/{p-bd0bc3dd.system.entry.js → p-acc873cf.system.entry.js} +1 -1
  272. package/dist/verdocs-web-sdk/{p-50ac71f3.system.entry.js → p-b6231fd3.system.entry.js} +1 -1
  273. package/dist/verdocs-web-sdk/{p-609c7fab.system.entry.js → p-b648ab63.system.entry.js} +1 -1
  274. package/dist/verdocs-web-sdk/{p-a52a832b.system.entry.js → p-b7a815e9.system.entry.js} +1 -1
  275. package/dist/verdocs-web-sdk/p-b91de346.entry.js +1 -0
  276. package/dist/verdocs-web-sdk/{p-0e5449d1.system.entry.js → p-ba653c39.system.entry.js} +1 -1
  277. package/dist/verdocs-web-sdk/p-bd9ba3b3.system.entry.js +1 -0
  278. package/dist/verdocs-web-sdk/{p-3abfff14.entry.js → p-c80237f9.entry.js} +1 -1
  279. package/dist/verdocs-web-sdk/p-cd20fb77.system.js +1 -0
  280. package/dist/verdocs-web-sdk/{p-6bda7dce.entry.js → p-cf703fe4.entry.js} +1 -1
  281. package/dist/verdocs-web-sdk/p-d0a09719.entry.js +1 -0
  282. package/dist/verdocs-web-sdk/{p-013d1556.system.entry.js → p-d1ea580b.system.entry.js} +1 -1
  283. package/dist/verdocs-web-sdk/{p-37187046.system.entry.js → p-d39e4a26.system.entry.js} +1 -1
  284. package/dist/verdocs-web-sdk/{p-137cedc8.entry.js → p-d59b6988.entry.js} +1 -1
  285. package/dist/verdocs-web-sdk/p-d61fda4b.entry.js +1 -0
  286. package/dist/verdocs-web-sdk/p-d8cd6b59.system.js +1 -0
  287. package/dist/verdocs-web-sdk/{p-b73415c3.system.entry.js → p-d99a05e4.system.entry.js} +1 -1
  288. package/dist/verdocs-web-sdk/p-dc2ad047.js +1 -0
  289. package/dist/verdocs-web-sdk/{p-0f94d635.entry.js → p-dd2c2edc.entry.js} +1 -1
  290. package/dist/verdocs-web-sdk/{p-79dc4f76.entry.js → p-e1bc55f8.entry.js} +1 -1
  291. package/dist/verdocs-web-sdk/p-e28878eb.system.entry.js +1 -0
  292. package/dist/verdocs-web-sdk/p-e2ae3679.entry.js +1 -0
  293. package/dist/verdocs-web-sdk/p-e2ff37fb.system.js +1 -0
  294. package/dist/verdocs-web-sdk/p-e3ffc00f.system.entry.js +1 -0
  295. package/dist/verdocs-web-sdk/p-e4dc3264.system.entry.js +1 -0
  296. package/dist/verdocs-web-sdk/{p-cf765153.entry.js → p-eeca4c30.entry.js} +1 -1
  297. package/dist/verdocs-web-sdk/p-f04bf956.system.js +1 -1
  298. package/dist/verdocs-web-sdk/{p-3f9fbf94.entry.js → p-f42c84f1.entry.js} +1 -1
  299. package/dist/verdocs-web-sdk/{p-dd8845d4.system.entry.js → p-f6b7439f.system.entry.js} +1 -1
  300. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  301. package/package.json +8 -7
  302. package/dist/cjs/interact.min-ba5cc513.js +0 -13
  303. package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +0 -220
  304. package/dist/collection/components/elements/verdocs-search-activity/verdocs-search-activity.css +0 -66
  305. package/dist/collection/components/elements/verdocs-search-activity/verdocs-search-activity.js +0 -187
  306. package/dist/collection/components/elements/verdocs-search-activity/verdocs-search-activity.stories.js +0 -14
  307. package/dist/components/Organizations.js +0 -32
  308. package/dist/components/verdocs-search-activity.d.ts +0 -11
  309. package/dist/components/verdocs-search-activity.js +0 -6
  310. package/dist/components/verdocs-search-activity2.js +0 -170
  311. package/dist/esm/Types-de18e225.js +0 -4
  312. package/dist/esm/interact.min-cf83fa88.js +0 -11
  313. package/dist/esm/verdocs-quick-functions_3.entry.js +0 -214
  314. package/dist/esm-es5/Envelopes-21ffb899.js +0 -1
  315. package/dist/esm-es5/Profiles-4cc942ef.js +0 -1
  316. package/dist/esm-es5/TemplateStore-018fc1db.js +0 -1
  317. package/dist/esm-es5/Types-de18e225.js +0 -1
  318. package/dist/esm-es5/VerdocsEndpoint-b011af25.js +0 -1
  319. package/dist/esm-es5/_commonjsHelpers-5ec8f9b7.js +0 -1
  320. package/dist/esm-es5/interact.min-cf83fa88.js +0 -1
  321. package/dist/esm-es5/verdocs-contact-picker_2.entry.js +0 -1
  322. package/dist/esm-es5/verdocs-quick-functions_3.entry.js +0 -1
  323. package/dist/types/components/elements/verdocs-search-activity/verdocs-search-activity.d.ts +0 -33
  324. package/dist/verdocs-web-sdk/p-01166179.system.entry.js +0 -1
  325. package/dist/verdocs-web-sdk/p-04580be0.entry.js +0 -1
  326. package/dist/verdocs-web-sdk/p-0ad1fd33.entry.js +0 -1
  327. package/dist/verdocs-web-sdk/p-0d28cf05.js +0 -1
  328. package/dist/verdocs-web-sdk/p-15cb963a.system.entry.js +0 -1
  329. package/dist/verdocs-web-sdk/p-17d0e5f4.entry.js +0 -1
  330. package/dist/verdocs-web-sdk/p-23be436b.entry.js +0 -1
  331. package/dist/verdocs-web-sdk/p-2ccbcfeb.system.js +0 -1
  332. package/dist/verdocs-web-sdk/p-30b4bd45.js +0 -1
  333. package/dist/verdocs-web-sdk/p-3305a941.system.js +0 -1
  334. package/dist/verdocs-web-sdk/p-343672f5.system.entry.js +0 -1
  335. package/dist/verdocs-web-sdk/p-409e992a.entry.js +0 -1
  336. package/dist/verdocs-web-sdk/p-4a94ee00.system.entry.js +0 -1
  337. package/dist/verdocs-web-sdk/p-51756c1b.system.entry.js +0 -1
  338. package/dist/verdocs-web-sdk/p-5a91bf23.js +0 -1
  339. package/dist/verdocs-web-sdk/p-5df0fa7a.system.entry.js +0 -1
  340. package/dist/verdocs-web-sdk/p-6307e6ae.entry.js +0 -1
  341. package/dist/verdocs-web-sdk/p-66d66e2b.entry.js +0 -1
  342. package/dist/verdocs-web-sdk/p-76907130.entry.js +0 -1
  343. package/dist/verdocs-web-sdk/p-7b63017c.js +0 -1
  344. package/dist/verdocs-web-sdk/p-7fd7152d.system.js +0 -1
  345. package/dist/verdocs-web-sdk/p-89aa696c.system.entry.js +0 -1
  346. package/dist/verdocs-web-sdk/p-961708ac.entry.js +0 -1
  347. package/dist/verdocs-web-sdk/p-983da2f6.js +0 -1
  348. package/dist/verdocs-web-sdk/p-9934f3ec.system.entry.js +0 -1
  349. package/dist/verdocs-web-sdk/p-a5425a9b.entry.js +0 -1
  350. package/dist/verdocs-web-sdk/p-b17a20b8.entry.js +0 -1
  351. package/dist/verdocs-web-sdk/p-b2d698f7.system.entry.js +0 -1
  352. package/dist/verdocs-web-sdk/p-bb2c866b.system.entry.js +0 -1
  353. package/dist/verdocs-web-sdk/p-bbee73c8.system.js +0 -1
  354. package/dist/verdocs-web-sdk/p-bfcf8ad2.entry.js +0 -1
  355. package/dist/verdocs-web-sdk/p-cbbf849f.system.js +0 -1
  356. package/dist/verdocs-web-sdk/p-cbd0802f.entry.js +0 -1
  357. package/dist/verdocs-web-sdk/p-de60d3a8.js +0 -1
  358. package/dist/verdocs-web-sdk/p-eab67c09.js +0 -1
  359. package/dist/verdocs-web-sdk/p-eb595245.system.js +0 -1
  360. package/dist/verdocs-web-sdk/p-ecf04564.system.entry.js +0 -1
  361. package/dist/verdocs-web-sdk/p-ee195e5e.entry.js +0 -1
  362. package/dist/verdocs-web-sdk/p-f1257cd0.system.entry.js +0 -1
  363. package/dist/verdocs-web-sdk/p-f65a1b9e.system.js +0 -1
  364. package/dist/verdocs-web-sdk/p-fde6b724.entry.js +0 -1
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as i}from"./p-14b44491.js";import{d as s}from"./p-05788c2b.js";import{c as l,i as o}from"./p-983da2f6.js";import{V as a}from"./p-30b4bd45.js";import{V as n}from"./p-ed416acf.js";import{S as r}from"./p-7a1b2643.js";const u=[{value:"",label:""},{value:"Accounting & Tax",label:"Accounting & Tax"},{value:"Business Services / Consulting",label:"Business Services / Consulting"},{value:"Construction",label:"Construction"},{value:"Education",label:"Education"},{value:"Financial Services",label:"Financial Services"},{value:"Government",label:"Government"},{value:"Healthcare - Health Plans & Payers",label:"Healthcare - Health Plans & Payers"},{value:"Healthcare - Providers",label:"Healthcare - Providers"},{value:"Insurance",label:"Insurance"},{value:"Legal",label:"Legal"},{value:"Life Sciences",label:"Life Sciences"},{value:"Manufacturing",label:"Manufacturing"},{value:"Mortgage",label:"Mortgage"},{value:"Not For Profit",label:"Not For Profit"},{value:"Real Estate - Commercial",label:"Real Estate - Commercial"},{value:"Real Estate - Residential",label:"Real Estate - Residential"},{value:"Retail",label:"Retail"},{value:"Technology",label:"Technology"},{value:"Other",label:"Other"}],h=[{value:"",label:""},{value:"I want to send a document for signature.",label:"I want to send a document for signature."},{value:"I just need to sign a document today.",label:"I just need to sign a document today."},{value:"I'm evaluating it for my business.",label:"I'm evaluating it for my business."},{value:"I'm evaluating it for my personal use.",label:"I'm evaluating it for my personal use."},{value:"I'm a developer building an integration.",label:"I'm a developer building an integration."}],d=[{value:"",label:""},{value:"Solo",label:"Solo"},{value:"2-10",label:"2-10"},{value:"11-50",label:"11-50"},{value:"51-200",label:"51-200"},{value:"201-500",label:"201-500"},{value:"501-1000",label:"501-1000"},{value:"1000+",label:"1000+"}],c=class{constructor(i){e(this,i),this.authenticated=t(this,"authenticated",7),this.sdkError=t(this,"sdkError",7),this.recheckTimer=null,this.resendDisabledTimer=null,this.accessTokenForVerification=null,this.endpoint=a.getDefault(),this.visible=!0,this.logo="https://app.verdocs.com/assets/blue-logo.svg",this.isAuthenticated=!1,this.displayMode="login",this.orgname="",this.orgAvailable="UNKNOWN",this.first="",this.last="",this.username="",this.phone="",this.password="",this.submitting=!1,this.activeSession=null,this.accountType="org",this.howHear="",this.industry="",this.companySize="",this.reason="",this.signupStep=1,this.resendDisabled=!1,this.checkingOrg=!1}componentWillLoad(){var e,t;this.endpoint.loadSession(),this.endpoint.session?(console.log("[AUTH] Authenticated"),this.isAuthenticated=!0,this.activeSession=this.endpoint.session,null===(e=this.authenticated)||void 0===e||e.emit({authenticated:!0,session:this.endpoint.session})):(console.log("[AUTH] Anonymous"),null===(t=this.authenticated)||void 0===t||t.emit({authenticated:!1,session:null}))}disconnectedCallback(){this.cancelRecheckTimer()}cancelRecheckTimer(){if(this.recheckTimer){try{clearTimeout(this.recheckTimer)}catch(e){}this.recheckTimer=null}if(this.resendDisabledTimer){try{clearTimeout(this.resendDisabledTimer)}catch(e){}this.resendDisabledTimer=null}}handleSignup(){this.submitting=!0,this.accessTokenForVerification=null,l(this.endpoint,{email:this.username,password:this.password,firstName:this.first,lastName:this.last,orgName:this.orgname,industry:this.industry,size:this.companySize,reason:this.reason,hearabout:this.howHear}).then((e=>{console.log("Result",e),console.log("[AUTH] Created profile",e.profile),console.log("[AUTH] Created organization",e.organization),this.loginAndCheckVerification()})).catch((e=>{var t,i,s,l,o;console.log("[AUTH] Signup error",e.response,JSON.stringify(e)),this.submitting=!1,this.activeSession=null,null===(t=this.authenticated)||void 0===t||t.emit({authenticated:!1,session:null}),null===(i=this.sdkError)||void 0===i||i.emit(new r(e.message,null===(s=e.response)||void 0===s?void 0:s.status,null===(l=e.response)||void 0===l?void 0:l.data)),n("Signup failed: "+(null===(o=e.response)||void 0===o?void 0:o.data),{style:"error"})}))}loginAndCheckVerification(){var e,t;this.submitting=!0,this.accessTokenForVerification=null,(e=this.endpoint,t={username:this.username,password:this.password},e.api.post("/authentication/login",t).then((function(e){return e.data}))).then((e=>{var t;this.cancelRecheckTimer(),this.submitting=!1;const i=s(e.accessToken);console.log("[AUTH] Got access token body",i),(null==i?void 0:i.email_verified)?(console.log("[AUTH] Email address is verified, completing login"),this.displayMode="login",this.accessTokenForVerification=null,this.endpoint.setToken(e.accessToken),this.activeSession=this.endpoint.session,this.isAuthenticated=!0,null===(t=this.authenticated)||void 0===t||t.emit({authenticated:!0,session:this.endpoint.session})):(console.log("[AUTH] Logged in, pending email address verification"),this.displayMode="verify",this.accessTokenForVerification=e.accessToken,this.recheckTimer=setTimeout((()=>this.loginAndCheckVerification()),5e3))})).catch((e=>{var t,i,s,l;this.cancelRecheckTimer(),console.log("[AUTH] Authentication error",e.response,JSON.stringify(e)),this.displayMode="login",this.submitting=!1,this.activeSession=null,null===(t=this.authenticated)||void 0===t||t.emit({authenticated:!1,session:null}),null===(i=this.sdkError)||void 0===i||i.emit(new r(e.message,null===(s=e.response)||void 0===s?void 0:s.status,null===(l=e.response)||void 0===l?void 0:l.data)),n("Login failed. Please check your username and password and try again.",{style:"error"})}))}handleLogout(){var e;this.endpoint.clearSession(),this.isAuthenticated=!1,this.accessTokenForVerification=null,null===(e=this.authenticated)||void 0===e||e.emit({authenticated:!1,session:null})}handleResend(){var e,t;this.resendDisabled=!0,this.resendDisabledTimer=setTimeout((()=>{this.resendDisabled=!1,this.resendDisabledTimer=null}),3e4),(e=this.endpoint,t=this.accessTokenForVerification,e.api.post("/user/email_verification",{},t?{headers:{Authorization:"Bearer ".concat(t)}}:{}).then((function(e){return e.data}))).then((e=>{console.log("[AUTH] Verification request resent",e),n("Please check your email for a message with verification instructions.",{style:"info"})})).catch((e=>{console.log("[AUTH] Unable to resend verification",e)}))}handleReset(){var e,t;this.submitting=!0,(e=this.endpoint,t={email:this.username},e.api.post("/user/reset_password",t).then((function(e){return e.data}))).then((e=>{console.log("[AUTH] Reset sent",e),this.submitting=!1,this.displayMode="login",n("If your email address is registered, you will receive instructions on resetting your password shortly.",{style:"info"})})).catch((e=>{console.log("[AUTH] Unable to reset password",e),this.submitting=!1}))}async checkAvailability(e){this.checkingOrg=!0;try{this.orgname=e;const t=await o(this.endpoint,e);this.orgAvailable=t.result,console.log("response",this.orgAvailable)}catch(e){this.orgAvailable="UNKNOWN"}this.checkingOrg=!1}render(){if(!this.visible)return i("div",{style:{display:"none"}},"Authenticated");if(this.isAuthenticated)return i("verdocs-button",{label:"Sign Out",disabled:this.submitting,onClick:()=>this.handleLogout(),style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}});if("signup"===this.displayMode){const e=this.submitting||!this.first||!this.last||!this.username||!this.password||!this.orgname||"AVAILABLE"!==this.orgAvailable;return i("div",{class:"form"},i("a",{href:"https://verdocs.com/en/"},i("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"})),i("h3",null,"Sign up for a trial account"),i("h4",null,"Already have an account?",i("verdocs-button",{label:"Log In",variant:"text",onClick:()=>this.displayMode="login",disabled:this.submitting})),1===this.signupStep&&i("form",{onSubmit:()=>this.handleSignup()},i("div",{style:{display:"flex",flexDirection:"row",columnGap:"20px"}},i("verdocs-text-input",{label:"First Name",autocomplete:"first",required:!0,value:this.first,onInput:e=>this.first=e.target.value,disabled:this.submitting}),i("verdocs-text-input",{label:"Last Name",autocomplete:"last",required:!0,value:this.last,onInput:e=>this.last=e.target.value,disabled:this.submitting})),i("verdocs-text-input",{label:"Email",autocomplete:"email",required:!0,value:this.username,onInput:e=>this.username=e.target.value,disabled:this.submitting}),i("verdocs-text-input",{label:"Phone #",autocomplete:"phone",value:this.phone,onInput:e=>this.phone=e.target.value,disabled:this.submitting}),i("verdocs-text-input",{label:"Password",type:"password",required:!0,autocomplete:"current-password",value:this.password,onInput:e=>this.password=e.target.value,disabled:this.submitting}),i("div",{style:{display:"flex",flexDirection:"row",gap:"10px",alignItems:"center"}},i("verdocs-text-input",{label:"Organization Name",autocomplete:"org",required:!0,value:this.orgname,onInput:e=>this.checkAvailability(e.target.value),disabled:this.submitting,style:{flex:"1"},onBlur:()=>{console.log("blur")}}),!this.checkingOrg&&"AVAILABLE"===this.orgAvailable&&i("verdocs-help-icon",{icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="green"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z" clip-rule="evenodd" /></svg>',text:"Organization name is available."}),!this.checkingOrg&&"TAKEN"===this.orgAvailable&&i("verdocs-help-icon",{icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="red"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z" clip-rule="evenodd" /></svg>',text:"Organization already registered."}),!this.checkingOrg&&"UNKNOWN"===this.orgAvailable&&i("verdocs-help-icon",{icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="#4a4a4a"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm11.378-3.917c-.89-.777-2.366-.777-3.255 0a.75.75 0 01-.988-1.129c1.454-1.272 3.776-1.272 5.23 0 1.513 1.324 1.513 3.518 0 4.842a3.75 3.75 0 01-.837.552c-.676.328-1.028.774-1.028 1.152v.75a.75.75 0 01-1.5 0v-.75c0-1.279 1.06-2.107 1.875-2.502.182-.088.351-.199.503-.331.83-.727.83-1.857 0-2.584zM12 18a.75.75 0 100-1.5.75.75 0 000 1.5z" clip-rule="evenodd" /></svg>',text:"Organization name must be unique."}),this.checkingOrg&&i("verdocs-spinner",{mode:"dark",size:24})),i("div",{style:{marginTop:"30px"}}),i("verdocs-button",{label:"Next",disabled:e,onClick:()=>this.signupStep=2,style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}})),2===this.signupStep&&i("form",{onSubmit:()=>this.handleSignup()},i("verdocs-text-input",{label:"How did you hear about Verdocs?",value:this.howHear,onInput:e=>this.howHear=e.target.value,disabled:this.submitting}),i("verdocs-select-input",{label:"Your Industry",options:u,value:this.industry,onInput:e=>this.industry=e.target.value,disabled:this.submitting}),i("verdocs-select-input",{label:"Company Size",options:d,value:this.companySize,onInput:e=>this.companySize=e.target.value,disabled:this.submitting}),i("verdocs-select-input",{label:"Purpose",options:h,value:this.reason,onInput:e=>this.reason=e.target.value,disabled:this.submitting}),i("div",{style:{marginTop:"30px"}}),i("verdocs-button",{label:"Create Account",disabled:this.submitting,onClick:()=>this.handleSignup(),style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}})),3===this.signupStep&&i("form",{onSubmit:()=>this.handleSignup()},i("p",null,"Please check your e-mail inbox for a verification code and follow the instructions provided."),i("p",null,i("em",null,"Verification messages may take up to 1 hour to arrive. If you do not receive the invitation, ",i("a",{href:"#"},"Click Here")," to resend it. Be sure to check your spam folder.")),i("div",{style:{display:"flex",flexDirection:"row",gap:"20px"}},i("verdocs-button",{label:"Back",disabled:this.submitting,onClick:()=>{this.signupStep=2},style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}}),i("verdocs-button",{label:"Go to Dashboard",disabled:!0,onClick:()=>this.handleSignup(),style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}}))))}return"forgot"===this.displayMode?i("div",{class:"form"},i("a",{href:"https://verdocs.com/en/"},i("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"})),i("h3",null,"Forgot your password?"),i("p",null,"Enter your e-mail address below, and reset instructions will be sent to your Inbox."),i("p",null,i("em",null,"Please allow up to 24 hours for delivery, and check your spam folder if you do not receive the message. ")),i("form",{onSubmit:()=>this.handleSignup()},i("verdocs-text-input",{label:"Email",autocomplete:"email",required:!0,value:this.username,onInput:e=>this.username=e.target.value,disabled:this.submitting}),i("div",{style:{marginTop:"30px"}}),i("div",{class:"buttons"},i("verdocs-button",{label:"Cancel",variant:"outline",disabled:this.submitting,onClick:()=>this.displayMode="login"}),i("verdocs-button",{label:"Reset",disabled:this.submitting,onClick:()=>this.handleReset()})))):"verify"===this.displayMode?i("div",{class:"form"},i("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),i("h3",null,"Please Verify your Email Address"),i("p",null,"Check your e-mail inbox for a verification email, and follow the instructions provided."),i("p",null,i("em",null,"Please allow up to 24 hours for delivery, and check your spam folder if you do not receive the message. ")),i("div",{class:"buttons"},i("verdocs-button",{label:"Sign Out",variant:"outline",disabled:this.submitting,onClick:()=>{this.username="",this.password="",this.cancelRecheckTimer(),this.displayMode="login"}}),i("verdocs-button",{label:"Resend Email",disabled:this.resendDisabled,onClick:()=>this.handleResend()}))):i("div",{class:"form"},i("a",{href:"https://verdocs.com/en/"},i("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"})),i("h3",null,"Log in to your account"),i("h4",null,"Don't have an account?",i("verdocs-button",{label:"Sign Up",variant:"text",onClick:()=>{this.displayMode="signup",this.signupStep=1},disabled:this.submitting})),i("form",{onSubmit:()=>this.loginAndCheckVerification()},i("verdocs-text-input",{label:"Email",autocomplete:"username",value:this.username,onInput:e=>this.username=e.target.value,disabled:this.submitting}),i("verdocs-text-input",{label:"Password",type:"password",autocomplete:"current-password",value:this.password,onInput:e=>this.password=e.target.value,disabled:this.submitting}),i("verdocs-button",{label:"Forgot Your Password?",variant:"text",onClick:()=>this.displayMode="forgot",disabled:this.submitting,style:{display:"flex",justifyContent:"center",margin:"10px auto 20px"}}),i("verdocs-button",{label:"Login",disabled:this.submitting,onClick:()=>this.loginAndCheckVerification(),style:{display:"flex",justifyContent:"center",margin:"10px auto 0"}})))}};c.style='verdocs-auth{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-auth .form{background:#ffffff;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;display:-ms-flexbox;display:flex;padding:20px;width:300px;max-width:100%}verdocs-auth .logo{margin:20px 0 30px;width:128px;max-width:100%}verdocs-auth h3{text-align:center;font-weight:400;font-size:16px;line-height:1.75;margin:0}verdocs-auth h4{text-align:center;font-weight:400;font-size:14px;line-height:1.43;margin:0}verdocs-auth h4 verdocs-button button.normal .button-label{padding:0}verdocs-auth .buttons{gap:20px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-auth .status-result{display:none}verdocs-auth .status-result.debug{white-space:pre-wrap;font-size:14px;background:#fff;padding:10px;display:block;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-auth form{width:100%}verdocs-auth verdocs-text-input{margin-bottom:10px}verdocs-auth .account-option{gap:8px;margin:20px 0 8px 0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-auth p+p{margin-top:0}verdocs-auth verdocs-help-icon{margin-top:18px;display:-ms-flexbox;display:flex;width:32px;height:32px;-ms-flex:0 0 32px;flex:0 0 32px}';export{c as verdocs_auth}
@@ -1 +0,0 @@
1
- import{r as e,h as t,H as i,c as o,a as s}from"./p-14b44491.js";import{c as r}from"./p-7c0dcd00.js";import{a as l}from"./p-eab67c09.js";import"./p-05788c2b.js";import{V as n}from"./p-30b4bd45.js";import{u as d,d as a}from"./p-feb442b1.js";import{g as p}from"./p-7b63017c.js";import{S as c}from"./p-7a1b2643.js";import"./p-7648c449.js";const h=class{constructor(t){e(this,t),this.showing=!1,this.icon=""}componentDidRender(){document.body.appendChild(this.panelEl),this.popperInstance&&this.popperInstance.destroy(),this.popperInstance=r(this.iconEl,this.panelEl,{})}disconnectedCallback(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null),this.panelEl&&this.panelEl.remove()}async showPanel(){var e,t;null===(e=this.panelEl)||void 0===e||e.setAttribute("data-show",""),null===(t=this.popperInstance)||void 0===t||t.update().catch((()=>{})),this.showing=!0,this.hiderEl=document.createElement("div"),this.hiderEl.id="verdocs-button-panel-hider",this.hiderEl.style.zIndex="100",this.hiderEl.style.position="absolute",this.hiderEl.style.top="0px",this.hiderEl.style.left="0px",this.hiderEl.style.right="0px",this.hiderEl.style.bottom="0px",this.hiderEl.onclick=e=>{e.stopPropagation(),this.toggle()},document.body.appendChild(this.hiderEl)}async hidePanel(){var e;Array.from(document.getElementsByClassName("verdocs-button-panel-content")).forEach((e=>{e.removeAttribute("data-show")})),null===(e=document.getElementById("verdocs-button-panel-hider"))||void 0===e||e.remove(),this.showing=!1}async toggle(){this.showing?await this.hidePanel():await this.showPanel()}render(){return t(i,null,t("div",{class:"icon",innerHTML:this.icon,onClick:e=>(e.stopPropagation(),this.toggle()),ref:e=>this.iconEl=e}),t("div",{role:"tooltip",class:"verdocs-button-panel-content","data-popper-placement":"bottom",ref:e=>this.panelEl=e},t("div",{"data-popper-arrow":"true",class:"arrow"}),t("slot",null)))}};var v;h.style='verdocs-button-panel{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:inline-block}verdocs-button-panel .icon{display:inline-block;cursor:pointer;opacity:0.6}verdocs-button-panel .icon svg{fill:#707ae5}verdocs-button-panel .icon:hover{opacity:1}.verdocs-button-panel-content{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;display:none;background:#ffffff;color:#33364b;width:320px;font-weight:bold;padding:15px;font-size:14px;position:relative;border-radius:4px;z-index:10000}.verdocs-button-panel-content .arrow,.verdocs-button-panel-content .arrow::before{position:absolute;width:8px;height:8px;background:inherit}.verdocs-button-panel-content .arrow{visibility:hidden;top:-4px}.verdocs-button-panel-content .arrow::before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}.verdocs-button-panel-content[data-show]{display:block}.verdocs-button-panel-content[data-popper-placement^=top]>.arrow{bottom:-4px}.verdocs-button-panel-content[data-popper-placement^=bottom]>.arrow{top:-4px}.verdocs-button-panel-content[data-popper-placement^=left]>.arrow{right:-4px}.verdocs-button-panel-content[data-popper-placement^=right]>.arrow{left:-4px}.verdocs-button-panel-content h6{font-size:16px;font-weight:bold;margin:0 0 16px 0;color:#092c4c;border-bottom:1px solid #cccccc}';var u=void 0!==l&&(l.crypto||l.msCrypto);if(u&&u.getRandomValues){var f=new Uint8Array(16);v=function(){return u.getRandomValues(f),f}}if(!v){var m=new Array(16);v=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),m[t]=e>>>((3&t)<<3)&255;return m}}for(var x=v,b=[],g=0;g<256;++g)b[g]=(g+256).toString(16).substr(1);var w=function(e,t){var i=t||0;return b[e[i++]]+b[e[i++]]+b[e[i++]]+b[e[i++]]+"-"+b[e[i++]]+b[e[i++]]+"-"+b[e[i++]]+b[e[i++]]+"-"+b[e[i++]]+b[e[i++]]+"-"+b[e[i++]]+b[e[i++]]+b[e[i++]]+b[e[i++]]+b[e[i++]]+b[e[i++]]},y=x(),k=[1|y[0],y[1],y[2],y[3],y[4],y[5]],I=16383&(y[6]<<8|y[7]),q=0,E=0,T=function(e,t,i){var o=t&&i||0;"string"==typeof e&&(t="binary"==e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||x)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var r=0;r<16;++r)t[o+r]=s[r];return t||w(s)},R=T;R.v1=function(e,t,i){var o=t&&i||0,s=t||[],r=void 0!==(e=e||{}).clockseq?e.clockseq:I,l=void 0!==e.msecs?e.msecs:(new Date).getTime(),n=void 0!==e.nsecs?e.nsecs:E+1,d=l-q+(n-E)/1e4;if(d<0&&void 0===e.clockseq&&(r=r+1&16383),(d<0||l>q)&&void 0===e.nsecs&&(n=0),n>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");q=l,E=n,I=r;var a=(1e4*(268435455&(l+=122192928e5))+n)%4294967296;s[o++]=a>>>24&255,s[o++]=a>>>16&255,s[o++]=a>>>8&255,s[o++]=255&a;var p=l/4294967296*1e4&268435455;s[o++]=p>>>8&255,s[o++]=255&p,s[o++]=p>>>24&15|16,s[o++]=p>>>16&255,s[o++]=r>>>8|128,s[o++]=255&r;for(var c=e.node||k,h=0;h<6;++h)s[o+h]=c[h];return t||w(s)},R.v4=T;var C=R;const L=e=>e.charAt(0).toUpperCase()+e.slice(1),P='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#a50021"><path stroke-linecap="round" stroke-linejoin="round" d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0" /></svg>',S='<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M11.925 18q.55 0 .938-.387.387-.388.387-.938 0-.55-.387-.925-.388-.375-.938-.375-.55 0-.925.375t-.375.925q0 .55.375.938.375.387.925.387Zm-.95-3.85h1.95q0-.8.2-1.287.2-.488 1.025-1.288.65-.625 1.025-1.213.375-.587.375-1.437 0-1.425-1.025-2.175Q13.5 6 12.1 6q-1.425 0-2.35.775t-1.275 1.85l1.775.7q.125-.45.55-.975.425-.525 1.275-.525.725 0 1.1.412.375.413.375.888 0 .475-.287.9-.288.425-.713.775-1.075.95-1.325 1.475-.25.525-.25 1.875ZM12 22.2q-2.125 0-3.988-.8-1.862-.8-3.237-2.175Q3.4 17.85 2.6 15.988 1.8 14.125 1.8 12t.8-3.988q.8-1.862 2.175-3.237Q6.15 3.4 8.012 2.6 9.875 1.8 12 1.8t3.988.8q1.862.8 3.237 2.175Q20.6 6.15 21.4 8.012q.8 1.863.8 3.988t-.8 3.988q-.8 1.862-2.175 3.237Q17.85 20.6 15.988 21.4q-1.863.8-3.988.8Zm0-2.275q3.325 0 5.625-2.3t2.3-5.625q0-3.325-2.3-5.625T12 4.075q-3.325 0-5.625 2.3T4.075 12q0 3.325 2.3 5.625t5.625 2.3ZM12 12Z"/></svg>',_=class{constructor(t){e(this,t),this.close=o(this,"close",7),this.delete=o(this,"delete",7),this.settingsChanged=o(this,"settingsChanged",7),this.sdkError=o(this,"sdkError",7),this.store=null,this.endpoint=n.getDefault(),this.templateId="",this.fieldName="",this.helpText="",this.dirty=!1,this.loading=!0,this.type="signature",this.setting=null,this.name="",this.roleName="",this.group="",this.fieldType="",this.required=!1,this.options=[],this.placeholder="",this.value="",this.leading=0,this.showingHelp=!1}async componentWillLoad(){var e,t,i,o,s,r,l,n,d;try{if(this.endpoint.loadSession(),!this.templateId)return void console.log(`[FIELD PROPERTIES] Missing required template ID ${this.templateId}`);if(!this.fieldName)return void console.error("[FIELD PROPERTIES] Missing required field name");if(!this.endpoint.session)return void console.log("[FIELD PROPERTIES] Unable to start builder session, must be authenticated");this.store=await p(this.endpoint,this.templateId,!1);const l=null===(t=null===(e=this.store)||void 0===e?void 0:e.state)||void 0===t?void 0:t.fields.find((e=>e.name===this.fieldName));l||console.log(`[FIELD PROPERTIES] Unable to find field "${this.fieldName}" in template`),this.type=l.type,this.name=l.name,this.group=l.name,this.roleName=l.role_name,this.required=l.required,this.fieldType=l.type,this.placeholder=(null===(i=l.setting)||void 0===i?void 0:i.placeholder)||"",this.value=(null===(o=l.setting)||void 0===o?void 0:o.result)||"",this.leading=(null===(s=l.setting)||void 0===s?void 0:s.leading)||0,this.setting=l.setting||{},this.options=(null===(r=l.setting)||void 0===r?void 0:r.options)||[],this.dirty=!1,this.loading=!1}catch(e){console.log("[FIELD PROPERTIES] Error loading template",e),this.loading=!1,null===(l=this.sdkError)||void 0===l||l.emit(new c(e.message,null===(n=e.response)||void 0===n?void 0:n.status,null===(d=e.response)||void 0===d?void 0:d.data))}}handleCancel(e){var t,i,o,s,r,l;e.stopPropagation();const n=null===(i=null===(t=this.store)||void 0===t?void 0:t.state)||void 0===i?void 0:i.fields.find((e=>e.name===this.fieldName));n&&(this.name=n.name,this.roleName=n.role_name,this.required=n.required,this.placeholder=(null===(o=n.setting)||void 0===o?void 0:o.placeholder)||"",this.value=(null===(s=n.setting)||void 0===s?void 0:s.result)||"",this.leading=(null===(r=n.setting)||void 0===r?void 0:r.leading)||0),this.dirty=!1,null===(l=this.close)||void 0===l||l.emit()}handleSave(e){e.stopPropagation();const t={name:this.name,required:this.required,role_name:this.roleName};"checkbox_group"===this.type||"radio_button_group"===this.type?(t.setting=this.setting,t.setting.options=this.options):"textarea"===this.type||"textbox"===this.type?(t.setting={...this.setting},t.setting.result=(this.value||"").trim()):"dropdown"===this.type&&(t.setting={x:this.setting.x,y:this.setting.y,options:this.options}),d(this.endpoint,this.templateId,this.fieldName,t).then((e=>{var i,o;this.dirty=!1,this.updateField(e),null===(i=this.settingsChanged)||void 0===i||i.emit({fieldName:this.fieldName,settings:t,field:e}),null===(o=this.close)||void 0===o||o.emit()})).catch((()=>{console.log("Field update failed",e)}))}handleAddOption(e){e.stopPropagation();const t={name:this.name,required:this.required,role_name:this.roleName};this.options.push("radio_button_group"===this.type?{id:C(),value:`Option ${this.options.length+1}`,selected:!1,x:this.options.length>0?this.options[this.options.length-1].x:20,y:this.options.length>0?this.options[this.options.length-1].y-25:20}:{id:C(),value:`Option ${this.options.length+1}`,checked:!1,x:this.options.length>0?this.options[this.options.length-1].x:20,y:this.options.length>0?this.options[this.options.length-1].y-25:20}),t.setting={...this.setting},delete t.setting.result,t.setting.options=[...this.options],d(this.endpoint,this.templateId,this.fieldName,t).then((e=>{var i,o;this.dirty=!1,this.updateField(e),null===(i=this.settingsChanged)||void 0===i||i.emit({fieldName:this.fieldName,settings:t,field:e}),null===(o=this.close)||void 0===o||o.emit()})).catch((()=>{console.log("Field update failed",e)}))}updateField(e){const t=[...this.store.state.fields];t.forEach((t=>{t.name===this.fieldName&&Object.assign(t,e)})),this.store.state.fields=t}async handleDelete(e){e.stopPropagation(),window.confirm("Are you sure you wish to remove this field? This action cannot be undone.")&&a(this.endpoint,this.templateId,this.fieldName).then((()=>{var e,t,i,o,s;this.store.state.fields=[...null===(t=null===(e=this.store)||void 0===e?void 0:e.state)||void 0===t?void 0:t.fields.filter((e=>e.name!==this.fieldName))],null===(o=null===(i=this.store)||void 0===i?void 0:i.state)||void 0===o||o.roles.forEach((e=>{e.fields=[...e.fields.filter((e=>e.name!==this.fieldName))]})),null===(s=this.delete)||void 0===s||s.emit({templateId:this.templateId,roleName:this.roleName})})).catch((e=>{console.log("[FIELD PROPERTIES] Deletion error",e)}))}render(){var e,o,s,r;return this.endpoint.session?this.endpoint.session&&(null===(o=null===(e=this.store)||void 0===e?void 0:e.state)||void 0===o?void 0:o.isLoaded)?this.helpText&&this.showingHelp?t(i,null,t("h6",null,L(this.fieldType)," Settings ",t("div",{style:{flex:"1"}}),t("div",{class:"help-icon",innerHTML:S,onClick:()=>this.showingHelp=!1})),t("p",{class:"instructions",innerHTML:this.helpText})):t(i,null,t("h6",null,L(this.fieldType.replace(/_/g," "))," Settings ",t("div",{style:{flex:"1"}}),this.helpText&&t("div",{class:"help-icon",innerHTML:S,onClick:()=>this.showingHelp=!0})),t("form",{onSubmit:e=>e.preventDefault(),onClick:e=>e.stopPropagation(),autocomplete:"off"},t("div",{class:"row"},t("verdocs-text-input",{id:"verdocs-field-name",label:"Field Name",value:this.name,autocomplete:"off",placeholder:"Field Name...",onInput:e=>{this.name=e.target.value,this.dirty=!0}})),t("div",{class:"row"},t("div",{class:"input-label"},"Role:"),t("verdocs-select-input",{value:this.roleName,options:null===(r=null===(s=this.store)||void 0===s?void 0:s.state)||void 0===r?void 0:r.roles.map((e=>({label:e.name,value:e.name}))),onInput:e=>{this.roleName=e.target.value,this.dirty=!0}})),["textbox","textarea"].includes(this.type)&&t("div",{class:"row",style:{marginTop:"10px",marginBottom:"10px"}},t("verdocs-text-input",{id:"verdocs-field-value",label:"Value",value:this.value,autocomplete:"off",placeholder:"Pre-defined value...",onInput:e=>{this.value=e.target.value,this.dirty=!0}})),["textbox","textarea"].includes(this.type)&&t("div",{class:"row",style:{marginTop:"10px",marginBottom:"10px"}},t("verdocs-text-input",{id:"verdocs-field-placeholder",label:"Placeholder",value:this.placeholder,autocomplete:"off",placeholder:"Placeholder...",onInput:e=>{this.placeholder=e.target.value,this.dirty=!0}})),t("div",{class:"row",style:{marginTop:"15px",marginBottom:"15px"}},t("label",{htmlFor:"verdocs-is-required",class:"input-label"},"Required"),t("verdocs-checkbox",{id:"verdocs-is-required",name:"is-required",checked:this.required,value:"on",onInput:e=>{this.required=e.target.checked,this.dirty=!0}})),["checkbox_group","radio_button_group"].includes(this.type)&&t("verdocs-button",{size:"small",onClick:e=>this.handleAddOption(e),label:"Add Option"}),["dropdown"].includes(this.type)&&t("div",{class:"options"},t("div",{class:"row",style:{marginTop:"15px",marginBottom:"15px",textAlign:"center",fontWeight:"700",fontSize:"14px",justifyContent:"center",backgroundColor:"#333333",padding:"5px 8px",color:"#ffffff"}},"Options"),t("div",{class:"row-header"},t("h6",null,"ID"),t("h6",null,"Label"),t("div",{style:{width:"34px"}})),this.options.map(((e,i)=>t("div",{class:"row option-row",key:i},t("verdocs-text-input",{id:`verdocs-option-id-${e.id}`,value:e.id,placeholder:"Unique ID",onInput:e=>{this.options[i].id=e.target.value,this.dirty=!0}}),t("verdocs-text-input",{id:`verdocs-option-value-${e.id}`,value:e.value,placeholder:"Display value",onInput:e=>{this.options[i].value=e.target.value,this.dirty=!0}}),t("button",{innerHTML:P,class:"remove-button",onClick:()=>{this.options=this.options.filter((t=>t.id!==e.id)),this.dirty=!0}})))),t("div",{class:"row-header"},t("button",{class:"add-option-button",onClick:()=>{this.options=[...this.options,{id:`option-${this.options.length+1}`,value:`Option ${this.options.length+1}`}],this.dirty=!0}},"Add Option"))),t("div",{class:"buttons"},t("button",{class:"delete-button",disabled:this.dirty,onClick:e=>this.handleDelete(e),innerHTML:P}),t("div",{style:{flex:"1"}}),t("verdocs-button",{size:"small",variant:"outline",label:"Cancel",disabled:!this.dirty,onClick:e=>this.handleCancel(e)}),t("verdocs-button",{size:"small",label:"Save",disabled:!this.dirty,onClick:e=>this.handleSave(e)})))):t(i,{class:"empty"}):t(i,null,t("verdocs-component-error",{message:"You must be authenticated to use this module."}))}get el(){return s(this)}};_.style='verdocs-template-field-properties{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-template-field-properties .buttons{display:-ms-flexbox;display:flex;margin-top:30px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-field-properties .buttons verdocs-button{margin-left:16px}verdocs-template-field-properties form .row{display:-ms-flexbox;display:flex;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-field-properties form .row .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0;-ms-flex:0 0 100px;flex:0 0 100px}verdocs-template-field-properties verdocs-select-input{-ms-flex:1;flex:1;margin:0}verdocs-template-field-properties verdocs-text-input{margin:0;-ms-flex:1;flex:1}verdocs-template-field-properties verdocs-text-input label{margin:0;display:-ms-flexbox;display:flex;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-field-properties verdocs-text-input .input-label{-ms-flex:0 0 100px;flex:0 0 100px}verdocs-template-field-properties verdocs-text-input input{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-field-properties .checkbox-wrapper{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-field-properties .delete-button{height:34px;display:-ms-flexbox;display:flex;cursor:pointer;background:none;border-radius:4px;-ms-flex-align:center;align-items:center;border:1px solid #999;-ms-flex-pack:center;justify-content:center}verdocs-template-field-properties .delete-button:active{background:#f3f3f3}verdocs-template-field-properties .delete-button svg{width:24px;height:24px}verdocs-template-field-properties h6{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;font-size:16px;font-weight:bold;margin:0 0 8px 0;-ms-flex-direction:row;flex-direction:row;color:#092c4c}verdocs-template-field-properties h6 .help-icon{opacity:0.5}verdocs-template-field-properties h6 .help-icon:hover{opacity:1;cursor:pointer}verdocs-template-field-properties .row-header{gap:15px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-template-field-properties .row-header h6{margin-bottom:0}verdocs-template-field-properties .row-header verdocs-help-icon{-webkit-transform:scale(0.85);transform:scale(0.85)}verdocs-template-field-properties .row-header verdocs-help-icon svg{margin-bottom:-5px}verdocs-template-field-properties .row-header .add-button{margin:0;padding:0;border:none;opacity:0.5;cursor:pointer;background:none}verdocs-template-field-properties .row-header .add-button:hover{opacity:1}verdocs-template-field-properties .row-header .add-button svg{width:32px;height:32px}verdocs-template-field-properties .option-row{margin:15px 0}verdocs-template-field-properties .option-row .remove-button{height:28px;display:-ms-flexbox;display:flex;cursor:pointer;background:none;border-radius:4px;-ms-flex-align:center;align-items:center;border:1px solid #999;-ms-flex-pack:center;justify-content:center}verdocs-template-field-properties .option-row .remove-button:active{background:#f3f3f3}verdocs-template-field-properties .option-row .remove-button:hover svg{stroke:#a50021}verdocs-template-field-properties .option-row .remove-button svg{width:20px;height:20px;stroke:#333333}verdocs-template-field-properties .options{background:#f3f3f3;padding:0 0 10px 0}verdocs-template-field-properties .options .row-header,verdocs-template-field-properties .options .option-row{padding:0 10px}verdocs-template-field-properties .options .add-option-button{border-radius:5px;border:1px solid #cccccc;background:#46497d;color:#ffffff;padding:3px 8px}verdocs-template-field-properties .options .option-row .input-element{font-size:14px}verdocs-template-field-properties .options verdocs-help-icon{opacity:1;-webkit-transform:scale(0.8);transform:scale(0.8)}verdocs-template-field-properties .options verdocs-help-icon svg{fill:#ffffff}';export{h as verdocs_button_panel,_ as verdocs_template_field_properties}
@@ -1 +0,0 @@
1
- import{c as e}from"./p-7648c449.js";import{g as o,T as t}from"./p-30b4bd45.js";const r={},s=async(s,a,n=!1)=>{let d=!1;r[a]||(console.debug("[TEMPLATES] No template store found for ID, creating",a),r[a]=(o=>{const r=(new Date).toISOString();return e({isLoading:!0,isLoaded:!1,isError:!1,error:null,updateCount:0,roleNames:[],id:o,name:"",description:"",sender:t.CREATOR,profile_id:"",organization_id:"",counter:0,star_counter:0,is_sendable:!1,is_personal:!0,is_public:!1,created_at:r,updated_at:r,last_used_at:r,token:"",reminder_id:"",reminder:void 0,processed:!1,organization:void 0,roles:[],pages:[],template_document:void 0,template_documents:[]})})(a),d=!0);const i=r[a];if(i.use({reset:()=>console.debug("[TEMPLATES] Store got reset"),dispose:()=>console.debug("[TEMPLATES] Store got disposed")}),d||n){console.debug("[TEMPLATES] Reloading template",{templateId:a,created:d,forceReload:n}),i.state.isLoading=!0,i.state.isLoaded=!1,i.state.isError=!1,i.state.error=void 0;try{const e=await o(s,a);console.debug("[TEMPLATES] Got template",e),Object.assign(i.state,e),i.state.isLoaded=!0,i.state.isError=!1,i.state.error=void 0}catch(e){throw console.error("[TEMPLATES] Error loading template",e),i.state.isLoaded=!1,i.state.isError=!0,i.state.error=e,e}i.state.isLoading=!1,i.state.updateCount++}return i},a=e=>{var o;return((null===(o=null==e?void 0:e.state)||void 0===o?void 0:o.roles)||[]).map((e=>e.name))};export{a,s as g}
@@ -1 +0,0 @@
1
- System.register([],(function(e){"use strict";return{execute:function(){var t=e("F","Y-MM-dd hh:mm:ss a");var r=e("a","Y-MM-dd")}}}));
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r["throw"](e))}catch(e){o(e)}}function c(e){e.done?n(e.value):i(e.value).then(s,a)}c((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,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(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=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:n.label++;return{value:s[1],done:false};case 5:n.label++;i=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1];o=s;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(s);break}if(o[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-fbb8023f.system.js","./p-54498887.system.js","./p-cbbf849f.system.js"],(function(e){"use strict";var t,n,r,i,o;return{setters:[function(e){t=e.r;n=e.c;r=e.h},function(){},function(e){i=e.V;o=e.e}],execute:function(){var s=undefined&&undefined.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r["throw"](e))}catch(e){o(e)}}function c(e){e.done?n(e.value):i(e.value).then(s,a)}c((r=r.apply(e,t||[])).next())}))};var a=undefined&&undefined.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,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(a){if(r)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(n=0)),n)try{if(r=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=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(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var c=function(e){return s(void 0,void 0,void 0,(function(){return a(this,(function(t){return[2,e.api.get("/search/history").then((function(e){return e.data}))]}))}))};var l='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:#1e2031;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:#55bc81}verdocs-quick-functions button svg{fill:#ffffff}';var h='<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 f='<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 u=e("verdocs_quick_functions",function(){function e(e){t(this,e);this.createTemplate=n(this,"createTemplate",7);this.createDocument=n(this,"createDocument",7);this.endpoint=i.getDefault()}e.prototype.handleCreateTemplate=function(){this.createTemplate.emit()};e.prototype.handleCreateDocument=function(){this.createDocument.emit()};e.prototype.render=function(){var e=this;return r("div",{class:"container"},r("p",{class:"title"},"Quick Create"),r("button",{onClick:function(){return e.handleCreateTemplate()},innerHTML:f},"Template"),r("button",{onClick:function(){return e.handleCreateDocument()},innerHTML:h},"Document"))};return e}());u.style=l;var p='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:#1e2031}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:#cccccc}';var d='<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 x=e("verdocs_search_activity",function(){function e(e){t(this,e);this.entrySelected=n(this,"entrySelected",7);this.endpoint=i.getDefault();this.type="recent";this.options=undefined;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;this.endpoint.loadSession();var t=function(t){var n;console.warn("[Verdocs/search-activity] Error getting search data",t);if(((n=t===null||t===void 0?void 0:t.response)===null||n===void 0?void 0:n.status)===401){e.authFailure=true}};switch(this.type){case"recent":this.title="Recent Searches";this.emptyMessage="You do not have any recent searches.";c(this.endpoint).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.";c(this.endpoint).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.";o(this.endpoint,{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 r("div",{class:"container"},r("p",{class:"title"},this.title),r("div",{class:"items"},this.recent.map((function(t){return r("button",{class:"item",onClick:function(){return e.handleSelectEntry(t)}},r("div",{class:"icon",innerHTML:d}),r("div",{class:"details"},r("div",{class:"item-title"},t.params.q),r("div",{class:"info"},"Test")))})),this.saved.map((function(t){return r("button",{class:"item",onClick:function(){return e.handleSelectEntry(t)}},r("div",{class:"icon",innerHTML:d}),r("div",{class:"details"},r("div",{class:"item-title"},t.params.q),r("div",{class:"info"})))})),t&&r("div",{class:"empty"},this.authFailure?"Authentication required":this.emptyMessage)))};return e}());x.style=p;var v='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:#707ae5}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:#55bc81;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 y='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><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"/></svg>';var m='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><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"/></svg>';var b=e("verdocs_search_box",function(){function e(e){t(this,e);this.searchClicked=n(this,"searchClicked",7);this.typeChanged=n(this,"typeChanged",7);this.queryChanged=n(this,"queryChanged",7);this.endpoint=i.getDefault();this.placeholder="Search envelopes, templates, organizations...";this.type="all";this.query="";this.grabsFocus=false}e.prototype.focusField=function(){return s(this,void 0,void 0,(function(){return a(this,(function(e){this.inputEl.focus();return[2]}))}))};e.prototype.componentDidRender=function(){if(this.grabsFocus){this.inputEl.focus()}};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 r("form",{onSubmit:function(t){return e.handleSearch(t)}},this.type!==undefined&&this.type!=="all"&&r("span",{class:"type"},this.type,"s ",r("button",{class:"remove",innerHTML:m,onClick:function(){return e.handleClearFilter()}})),r("input",{type:"text",value:this.query,placeholder:this.placeholder,onInput:function(t){return e.handleChange(t)},onKeyUp:function(t){return e.handleKeyUp(t)},ref:function(t){return e.inputEl=t}}),r("button",{onClick:function(t){return e.handleSearch(t)},class:"search"},r("span",{innerHTML:y}),"Search"))};return e}());b.style=v}}}));
@@ -1 +0,0 @@
1
- import{r as e,c as i,h as s,H as t}from"./p-14b44491.js";import{c as n}from"./p-5a91bf23.js";import{u as o}from"./p-29f64c27.js";import{r as l}from"./p-3cd894ff.js";import"./p-05788c2b.js";import{V as a}from"./p-30b4bd45.js";import{g as d}from"./p-ebc4142c.js";import{F as r}from"./p-de60d3a8.js";import{V as c}from"./p-ed416acf.js";import{S as v}from"./p-7a1b2643.js";import{f as p}from"./p-c220af42.js";import"./p-7648c449.js";const h={visibility:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M12 15a3 3 0 100-6 3 3 0 000 6z" /><path fill-rule="evenodd" d="M1.323 11.447C2.811 6.976 7.028 3.75 12.001 3.75c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113-1.487 4.471-5.705 7.697-10.677 7.697-4.97 0-9.186-3.223-10.675-7.69a1.762 1.762 0 010-1.113zM17.25 12a5.25 5.25 0 11-10.5 0 5.25 5.25 0 0110.5 0z" clip-rule="evenodd" /></svg>',pencil:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M21.731 2.269a2.625 2.625 0 00-3.712 0l-1.157 1.157 3.712 3.712 1.157-1.157a2.625 2.625 0 000-3.712zM19.513 8.199l-3.712-3.712-12.15 12.15a5.25 5.25 0 00-1.32 2.214l-.8 2.685a.75.75 0 00.933.933l2.685-.8a5.25 5.25 0 002.214-1.32L19.513 8.2z" /></svg>',mail:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>',done:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M19.916 4.626a.75.75 0 01.208 1.04l-9 13.5a.75.75 0 01-1.154.114l-6-6a.75.75 0 011.06-1.06l5.353 5.353 8.493-12.739a.75.75 0 011.04-.208z" clip-rule="evenodd" /></svg>',send:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/></svg>',gesture:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1H21v-2.5h-2.47c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3 5.12 3 3.97 4 3.72 4.25c-.36.36-.66.66-.88.93l1.75 1.71zm9.29 11.66c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z"/></svg>',clear:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',check_circle:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>',link:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/></svg>',cancel:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/></svg>',done_all:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"/></svg>',create:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>',perm_identity:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>',people:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>',contact_email:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M21 8V7l-3 2-3-2v1l3 2 3-2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1zm8-6h-8V6h8v6z"/></svg>',textsms:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/></svg>',verified_user:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M12.516 2.17a.75.75 0 00-1.032 0 11.209 11.209 0 01-7.877 3.08.75.75 0 00-.722.515A12.74 12.74 0 002.25 9.75c0 5.942 4.064 10.933 9.563 12.348a.749.749 0 00.374 0c5.499-1.415 9.563-6.406 9.563-12.348 0-1.39-.223-2.73-.635-3.985a.75.75 0 00-.722-.516l-.143.001c-2.996 0-5.717-1.17-7.734-3.08zm3.094 8.016a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z" clip-rule="evenodd" /></svg>',account_circle:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"/></svg>'},w=class{constructor(s){e(this,s),this.sdkError=i(this,"sdkError",7),this.envelopeUpdated=i(this,"envelopeUpdated",7),this.toggle=i(this,"toggle",7),this.another=i(this,"another",7),this.store=null,this.endpoint=a.getDefault(),this.envelopeId="",this.activeTab=1,this.panelOpen=!1,this.showManageDialog=!1,this.showRecipientDialog="",this.showCancelDialog=!1,this.loading=!0}async componentWillLoad(){var e,i,s;try{if(this.endpoint.loadSession(),!this.envelopeId)return void console.log(`[SIDEBAR] Missing required envelope ID ${this.envelopeId}`);if(!this.endpoint.session)return void console.log("[SIDEBAR] Unable to start session, must be authenticated");this.store=await d(this.endpoint,this.envelopeId,!0),this.sortEnvelopeRecipients(),this.loading=!1}catch(t){console.log("[SIDEBAR] Error loading envelope",t),null===(e=this.sdkError)||void 0===e||e.emit(new v(t.message,null===(i=t.response)||void 0===i?void 0:i.status,null===(s=t.response)||void 0===s?void 0:s.data))}}sortEnvelopeRecipients(){var e,i;null===(i=null===(e=this.store)||void 0===e?void 0:e.state)||void 0===i||i.recipients.sort(((e,i)=>e.sequence===i.sequence?e.order-i.order:e.sequence-i.sequence))}setTab(e){var i;this.panelOpen=e!==this.activeTab||!this.panelOpen,null===(i=this.toggle)||void 0===i||i.emit({open:this.panelOpen}),this.activeTab=e}canResendRecipient(e){var i,s;return!["pending","declined","submitted","canceled"].includes(e.status)&&!["complete","declined","canceled"].includes(null===(s=null===(i=this.store)||void 0===i?void 0:i.state)||void 0===s?void 0:s.status)}handleRecipientAction(e,i){var s,t;switch(console.log("[SIDEBAR] Recipient action",i,e),i){case"reminder":l(this.endpoint,this.envelopeId,e.role_name).then((()=>{c("Reminder Sent",{style:"success"})})).catch((e=>{console.log("[SIDEBAR] Error resending invitation",e),c("Error resending invitation: "+e.message,{style:"error"})}));break;case"inperson":this.showRecipientDialog=e.role_name;break;case"modify":case"details":c("This feature will be enabled in a future release. Please try again later.",{style:"info"})}null===(s=this.envelopeUpdated)||void 0===s||s.emit({endpoint:this.endpoint,envelope:null===(t=this.store)||void 0===t?void 0:t.state,event:i})}cancelEnvelope(){this.loading=!0,n(this.endpoint,this.envelopeId).then((async e=>{var i,s;console.log("[SIDEBAR] Envelope canceled",e),c("Envelope canceled",{style:"success"}),this.store=await d(this.endpoint,this.envelopeId,!0),this.sortEnvelopeRecipients(),this.loading=!1,null===(i=this.envelopeUpdated)||void 0===i||i.emit({endpoint:this.endpoint,envelope:null===(s=this.store)||void 0===s?void 0:s.state,event:"canceled"})})).catch((e=>{console.log("[SIDEBAR] Error canceling envelope",e),this.loading=!1,c("Error canceling envelope: "+e.message,{style:"error"})}))}prepareHistoryEntries(){var e,i,s,t,n,o,l,a,d,r,c,v;const p=[],h=(null===(i=null===(e=this.store)||void 0===e?void 0:e.state)||void 0===i?void 0:i.histories)||[];p.push({icon:"pencil",message:"Envelope created.",date:new Date(null===(t=null===(s=this.store)||void 0===s?void 0:s.state)||void 0===t?void 0:t.created_at)}),"complete"===(null===(o=null===(n=this.store)||void 0===n?void 0:n.state)||void 0===o?void 0:o.status)&&p.push({icon:"pencil",message:"Envelope completed.",date:new Date(null===(a=null===(l=this.store)||void 0===l?void 0:l.state)||void 0===a?void 0:a.updated_at)});const w=h.some((e=>"owner:canceled"===e.event));return"canceled"!==(null===(r=null===(d=this.store)||void 0===d?void 0:d.state)||void 0===r?void 0:r.status)||w||p.push({icon:"pencil",message:"Envelope Cancelled.",date:new Date(null===(v=null===(c=this.store)||void 0===c?void 0:c.state)||void 0===v?void 0:v.canceled_at)}),h.forEach((e=>{var i;const s=null===(i=this.store.state)||void 0===i?void 0:i.recipients.find((i=>i.role_name===e.role_name)),t=(null==s?void 0:s.full_name)||"";switch(e.event.toLowerCase()){case"recipient:signed":p.push({icon:"gesture",message:`Signed by ${t}.`,date:new Date(e.created_at)});break;case"recipient:declined":p.push({icon:"clear",message:`Declined by ${t}.`,date:new Date(e.created_at)});break;case"recipient:opened":switch(e.event_detail){case"email":case"mail":p.push({icon:"visibility",message:`Opened by ${t}, via email.`,date:new Date(e.created_at)});break;case"sms":p.push({icon:"visibility",message:`Opened by ${t}, via SMS.`,date:new Date(e.created_at)});break;case"in_person_link":p.push({icon:"visibility",message:`Opened by ${t}, via In-person link.`,date:new Date(e.created_at)});break;case"in_app":p.push({icon:"visibility",message:`Opened by ${t}, via dashboard.`,date:new Date(e.created_at)});break;default:p.push({icon:"visibility",message:`Opened by ${t}.`,date:new Date(e.created_at)})}break;case"recipient:submitted":switch(e.event_detail){case"approver":p.push({icon:"check_circle",message:`Approved by ${t}.`,date:new Date(e.created_at)});break;default:p.push({icon:"send",message:`Submitted by ${t}.`,date:new Date(e.created_at)})}break;case"recipient:prepared":p.push({icon:"send",message:`Prepared by ${t}.`,date:new Date(e.created_at)});break;case"recipient:claimed":"guest"===e.event_detail?p.push({icon:"account_circle",message:`${t} claimed the Verdoc as a guest.`,date:new Date(e.created_at)}):"profile"===e.event_detail&&p.push({icon:"verified_user",message:`${t} claimed the Verdoc as a verified user.`,date:new Date(e.created_at)});break;case"recipient:agreed":p.push({icon:"done",message:`${t} agreed to use electronic records and signatures.`,date:new Date(e.created_at)});break;case"recipient:invited":p.push("sms"===e.event_detail?{icon:"textsms",message:`${t} has been invited via SMS.`,date:new Date(e.created_at)}:{icon:"mail",message:`${t} has been invited via email.`,date:new Date(e.created_at)});break;case"invitation:resent":p.push({icon:"mail",message:`Invitation was resent to ${t} ${"reminder"===e.event_detail?" by reminder":""}.`,date:new Date(e.created_at)});break;case"envelope:cc":p.push({icon:"contact_mail",message:`A copy has been sent to ${t}.`,date:new Date(e.created_at)});break;case"recipient:delegated":p.push({icon:"people",message:e.event_detail,date:new Date(e.created_at)});break;case"recipient:updated_info":case"owner:updated_recipient_info":p.push({icon:"perm_identity",message:e.event_detail,date:new Date(e.created_at)});break;case"created":p.push({icon:"create",message:"Envelope was created.",date:new Date(e.created_at)});break;case"completed":p.push({icon:"done_all",message:"Envelope was completed.",date:new Date(e.created_at)});break;case"canceled":case"owner:canceled":p.push({icon:"cancel",message:"Envelope was canceled by the creator.",date:new Date(e.created_at)});break;case"owner:get_in_person_link":p.push({icon:"link",message:`Owner accessed the In-person link for ${s}.`,date:new Date(e.created_at)});break;default:console.log("[SIDEBAR] Unknown history type",e)}})),p.sort(((e,i)=>i.date.getTime()-e.date.getTime())),p}render(){var e,i,n,l,a,d,c,v,w,m,g,x,b,f,u,y,z,k,M,D,V,B,E,L,H;if(!this.store.state)return s(t,null);const S=this.endpoint.getSession(),_=o(S,this.store.state),$=this.prepareHistoryEntries(),I="pending"!==(null===(i=null===(e=this.store)||void 0===e?void 0:e.state)||void 0===i?void 0:i.status)&&"in progress"!==(null===(l=null===(n=this.store)||void 0===n?void 0:n.state)||void 0===l?void 0:l.status);return s(t,{class:this.panelOpen?"open":""},s("div",{class:"side-buttons"},s("button",{class:1===this.activeTab?"active":"",onClick:()=>this.setTab(1),innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z" /></svg>'}),s("button",{class:2===this.activeTab?"active":"",onClick:()=>this.setTab(2),innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z" /></svg>'}),s("button",{class:3===this.activeTab?"active":"",onClick:()=>this.setTab(3),innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z" /></svg>'})),1===this.activeTab&&s("div",{class:"content"},s("div",{class:"title"},"Details"),s("div",{class:"label"},"Envelope ID"),s("div",{class:"value"},null===(d=null===(a=this.store)||void 0===a?void 0:a.state)||void 0===d?void 0:d.id),s("div",{class:"label"},"Date Created"),s("div",{class:"value"},p(new Date(null===(v=null===(c=this.store)||void 0===c?void 0:c.state)||void 0===v?void 0:v.created_at),r)),s("div",{class:"label"},"Last Modified"),s("div",{class:"value"},p(new Date(null===(m=null===(w=this.store)||void 0===w?void 0:w.state)||void 0===m?void 0:m.updated_at),r)),s("div",{class:"label"},"Status"),s("div",{class:"value"},null===(x=null===(g=this.store)||void 0===g?void 0:g.state)||void 0===x?void 0:x.status),s("div",{class:"label"},"Verdoc Owner ID"),s("div",{class:"value"},null===(f=null===(b=this.store)||void 0===b?void 0:b.state)||void 0===f?void 0:f.profile_id),s("div",{class:"label"},"Verdoc Owner Name"),s("div",{class:"value"},null===(z=null===(y=null===(u=this.store)||void 0===u?void 0:u.state)||void 0===y?void 0:y.profile)||void 0===z?void 0:z.first_name," ",null===(D=null===(M=null===(k=this.store)||void 0===k?void 0:k.state)||void 0===M?void 0:M.profile)||void 0===D?void 0:D.last_name),s("div",{class:"label"},"Verdoc Owner Email"),s("div",{class:"value"},null===(E=null===(B=null===(V=this.store)||void 0===V?void 0:V.state)||void 0===B?void 0:B.profile)||void 0===E?void 0:E.email)),2===this.activeTab&&s("div",{class:"content"},s("div",{class:"title"},"Recipients"),null===(H=null===(L=this.store)||void 0===L?void 0:L.state)||void 0===H?void 0:H.recipients.map(((e,i)=>{const t="submitted"!==e.status&&"canceled"!==e.status&&"declined"!==e.status,n=this.canResendRecipient(e);return s("div",{class:"recipient-detail"},s("div",{class:"recipient-header"},s("div",{class:"recipient-number"},i+1),s("div",{class:"recipient-type"},e.role_name),s("div",{class:{"recipient-status":!0,[e.status]:!0}},e.status),_&&!I&&s("verdocs-dropdown",{onOptionSelected:i=>this.handleRecipientAction(e,i.detail.id),options:[{id:"reminder",label:"Send Reminder",disabled:!n},{id:"inperson",label:"Get In-Person Link",disabled:!t}]})),s("dic",{class:"recipient-content"},s("div",{class:"recipient-name"},e.full_name),s("div",{class:"recipient-name"},e.email),s("div",{class:"recipient-name"},e.phone)))})),_&&s("verdocs-button",{class:"manage-recipients-button",variant:"standard",label:"Cancel Verdoc",onClick:()=>this.showCancelDialog=!I,disabled:I})),3===this.activeTab&&s("div",{class:"content"},s("div",{class:"title"},"History"),$.map((e=>s("div",{class:"history-entry"},s("div",{class:"activity-icon",innerHTML:h[e.icon]||e.icon}),s("div",{class:"activity-details"},s("div",{class:"activity-text"},e.message),s("div",{class:"activity-date"},p(e.date,r))))))),this.showRecipientDialog&&s("verdocs-envelope-recipient-link",{envelopeId:this.envelopeId,roleName:this.showRecipientDialog,onNext:()=>this.showRecipientDialog=""}),this.showManageDialog&&s("verdocs-envelope-recipient-summary",{envelopeId:this.envelopeId,canView:!1,onAnother:()=>{var e;this.showManageDialog=!1,null===(e=this.another)||void 0===e||e.emit({envelope:this.store.state})},onNext:()=>this.showManageDialog=!1}),this.showCancelDialog&&s("verdocs-ok-dialog",{heading:"Cancel Envelope?",message:"Are you sure you want to cancel this Envelope? This action cannot be undone.",onNext:()=>{this.showCancelDialog=!1,this.cancelEnvelope()}}))}};w.style='verdocs-envelope-sidebar{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex;-ms-flex:0 0 56px;flex:0 0 56px;width:56px;min-height:400px;height:100%;background:#41435e;-webkit-transition:0.5s cubic-bezier(0.35, 0, 0.25, 1);transition:0.5s cubic-bezier(0.35, 0, 0.25, 1)}verdocs-envelope-sidebar.open{-ms-flex:0 0 400px;flex:0 0 400px;max-width:100%;width:400px}@media screen and (max-width: 500px){verdocs-envelope-sidebar.open{-ms-flex:0 0 300px;flex:0 0 300px;width:300px}}verdocs-envelope-sidebar .side-buttons{-ms-flex-direction:column;flex-direction:column;-ms-flex:0 0 56px;flex:0 0 56px;display:-ms-flexbox;display:flex}verdocs-envelope-sidebar .side-buttons button{height:50px;outline:none;border:none;border-left:2px solid transparent;background:none;width:100%}verdocs-envelope-sidebar .side-buttons button.active{border-left:2px solid #50bd80}verdocs-envelope-sidebar .side-buttons button svg{color:white;width:24px;height:24px}verdocs-envelope-sidebar .content{-ms-flex:1;flex:1;display:none;color:white;-ms-flex-direction:column;flex-direction:column;padding:12px 16px 16px}verdocs-envelope-sidebar.open .content{display:-ms-flexbox;display:flex;overflow-y:scroll}verdocs-envelope-sidebar verdocs-ok-dialog .content{color:black}verdocs-envelope-sidebar .title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:12px;font-size:16px;line-height:24px;font-weight:400}verdocs-envelope-sidebar .label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:16px;color:rgba(255, 255, 255, 0.54)}verdocs-envelope-sidebar .value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:14px;font-size:14px;font-weight:500;line-height:16px;color:#fff}verdocs-envelope-sidebar .manage-recipients-button{-ms-flex-item-align:center;align-self:center;white-space:nowrap;width:100%;margin:0 0 10px 0}verdocs-envelope-sidebar .manage-recipients-button .label{color:#ffffff;font-size:14px}verdocs-envelope-sidebar .manage-recipients-button button{width:100%}verdocs-envelope-sidebar .recipient-detail{-ms-flex:0;flex:0;padding:8px;position:relative;-ms-flex-direction:column;flex-direction:column;border:solid 1px #979797;margin-bottom:16px}verdocs-envelope-sidebar .recipient-header{-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;place-content:center space-between;-ms-flex-align:center;align-items:center;margin-bottom:4px}verdocs-envelope-sidebar .recipient-number{width:24px;height:24px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:24px;font-size:14px;font-weight:500;margin-right:10px;border:solid 1px #979797}verdocs-envelope-sidebar .recipient-type{-ms-flex:1 1 88px;flex:1 1 88px;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:88px;min-width:88px;text-transform:capitalize}verdocs-envelope-sidebar .recipient-status{-ms-flex:1 1 100px;flex:1 1 100px;border-radius:5px;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100px;min-width:100px;background-color:#616161;text-transform:capitalize;font-size:14px;padding:3px 0}verdocs-envelope-sidebar .recipient-status.invited{background-color:#ff8f00}verdocs-envelope-sidebar .recipient-status.opened{background-color:#616161}verdocs-envelope-sidebar .recipient-status.signed,verdocs-envelope-sidebar .recipient-status.submitted{background-color:#2e7d32}verdocs-envelope-sidebar .recipient-status.pending{background-color:#0277bd}verdocs-envelope-sidebar .recipient-status.canceled,verdocs-envelope-sidebar .recipient-status.declined{background-color:#c62828}@media screen and (max-width: 500px){verdocs-envelope-sidebar .recipient-status{-ms-flex:1 1 60px;flex:1 1 60px;max-width:60px;min-width:60px}}verdocs-envelope-sidebar .recipient-content{-ms-flex-direction:column;flex-direction:column}verdocs-envelope-sidebar .recipient-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}verdocs-envelope-sidebar .history-entry{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;padding:8px 0 0;margin:8px 0 0;border-top:1px solid #dddddd}verdocs-envelope-sidebar .history-entry .activity-icon{margin-right:14px}verdocs-envelope-sidebar .history-entry .activity-icon svg{width:24px;height:24px;fill:#ffffff}verdocs-envelope-sidebar .history-entry .activity-text{font-size:14px;line-height:16px;margin-bottom:4px}verdocs-envelope-sidebar .history-entry .activity-date{font-size:12px;line-height:16px;color:rgba(255, 255, 255, 0.54)}verdocs-envelope-sidebar .content .history-entry:first-of-type{border-top:none}';export{w as verdocs_envelope_sidebar}
@@ -1 +0,0 @@
1
- var n=function(n,r){return n.api.get("/organizations/".concat(r)).then((function(n){return n.data}))},r=function(n,r,t){return n.api.patch("/organizations/".concat(r),t).then((function(n){return n.data}))},t=function(n,r){return n.api.post("/organizations/check-availability",{name:r},{baseURL:n.getBaseURLv2()}).then((function(n){return n.data}))},u=function(n){return n.api.get("/profiles").then((function(n){return(n.data||[]).find((function(n){return n.current}))}))},i=function(n){return n.api.get("/roles").then((function(n){return n.data}))},o=function(n,r,t){return n.api.put("/profiles/".concat(r),t).then((function(n){return n.data}))},e=function(n,r){return n.api.post("/user/business",r).then((function(n){return n.data}))};export{n as a,u as b,e as c,o as d,i as g,t as i,r as u}
@@ -1 +0,0 @@
1
- var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;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=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function s(e){try{u(r.next(e))}catch(e){a(e)}}function o(e){try{u(r["throw"](e))}catch(e){a(e)}}function u(e){e.done?n(e.value):i(e.value).then(s,o)}u((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return u([e,t])}}function u(s){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(a=s[0]&2?i["return"]:s[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;if(i=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;i=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1];a=s;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(s);break}if(a[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++){if(a||!(r in t)){if(!a)a=Array.prototype.slice.call(t,0,r);a[r]=t[r]}}return e.concat(a||Array.prototype.slice.call(t))};System.register(["./p-fbb8023f.system.js","./p-54498887.system.js","./p-cbbf849f.system.js","./p-3bcd86ea.system.js","./p-ca13070e.system.js","./p-187b20b7.system.js","./p-f65a1b9e.system.js","./p-dc9c4361.system.js","./p-c694cf93.system.js","./p-bbee73c8.system.js","./p-2ccbcfeb.system.js","./p-327858f0.system.js","./p-7fd7152d.system.js"],(function(e){"use strict";var t,n,r,i,a,s,o,u,l,c,d,f,p,h,v,m,_;return{setters:[function(e){t=e.r;n=e.c;r=e.h;i=e.H},function(){},function(e){a=e.V},function(e){s=e.a;o=e.c;u=e.b},function(e){l=e.V},function(e){c=e.S},function(e){d=e.g;f=e.a;p=e.u;h=e.b;v=e.d},function(e){m=e.f},function(e){_=e.d},function(){},function(){},function(){},function(){}],execute:function(){var g=function(e,t){return e.api.get("/organizations/".concat(t,"/api_key")).then((function(e){return e.data}))};var y=function(e,t,n){return e.api.post("/organizations/".concat(t,"/api_key"),n).then((function(e){return e.data}))};var b=function(e,t,n){return e.api.put("/organizations/".concat(t,"/api_key/").concat(n,"/rotate")).then((function(e){return e.data}))};var T=function(e,t,n){return e.api.delete("/organizations/".concat(t,"/api_key/").concat(n)).then((function(e){return e.data}))};var x=function(e,t){return e.api.get("/organizations/".concat(t,"/invitation")).then((function(e){return e.data}))};var M=function(e,t,n){return e.api.post("/organizations/".concat(t,"/invitation"),n).then((function(e){return e.data}))};var k=function(e,t,n){return e.api.delete("/organizations/".concat(t,"/invitation/").concat(n)).then((function(e){return e.data}))};var w=function(e,t,n){return e.api.post("/organizations/".concat(t,"/invitation/").concat(n,"/resend")).then((function(e){return e.data}))};var G=function(e,t){return e.api.get("/organizations/".concat(t,"/profiles")).then((function(e){return e.data}))};var I=function(e,t,n){return e.api.delete("/organizations/".concat(t,"/profiles/").concat(n)).then((function(e){return e.data}))};var S='verdocs-settings-api-keys{display:-ms-flexbox;display:flex;padding:10px;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-direction:column;flex-direction:column;font-family:"Inter", "Barlow", sans-serif}verdocs-settings-api-keys .table{margin:12px 0}verdocs-settings-api-keys .data-col div{gap:12px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-settings-api-keys .data-col svg{width:24px;height:24px}verdocs-settings-api-keys .col-name svg,verdocs-settings-api-keys .col-client_id svg,verdocs-settings-api-keys .col-profile_id svg{fill:#a1a1aa}verdocs-settings-api-keys .col-actions svg{fill:#ffffff;stroke:#a1a1aa}verdocs-settings-api-keys .col-actions svg:hover{cursor:pointer;stroke:red}verdocs-settings-api-keys .col-actions>div{-ms-flex-pack:center;justify-content:center}verdocs-settings-api-keys .header-col.col-actions{text-align:center}verdocs-settings-api-keys verdocs-dialog p{font-size:16px;line-height:18px;margin:0 0 1em 0}@media all and (max-width: 450px){verdocs-settings-api-keys .col-client_id,verdocs-settings-api-keys .col-actions{display:none}}';var C='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M5.5 3A2.5 2.5 0 003 5.5v2.879a2.5 2.5 0 00.732 1.767l6.5 6.5a2.5 2.5 0 003.536 0l2.878-2.878a2.5 2.5 0 000-3.536l-6.5-6.5A2.5 2.5 0 008.38 3H5.5zM6 7a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd" /></svg>';var A='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-5.5-2.5a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zM10 12a5.99 5.99 0 00-4.793 2.39A6.483 6.483 0 0010 16.5a6.483 6.483 0 004.793-2.11A5.99 5.99 0 0010 12z" clip-rule="evenodd" /></svg>';var P='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0" /></svg>';var j='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99" /></svg>';var O=e("verdocs_settings_api_keys",function(){function e(e){t(this,e);this.sdkError=n(this,"sdkError",7);this.memberInvited=n(this,"memberInvited",7);this.memberUpdated=n(this,"memberUpdated",7);this.memberRemoved=n(this,"memberRemoved",7);this.endpoint=a.getDefault();this.keys=[];this.creatingKey=false;this.createdKey=null;this.deletingKey=null;this.rotatingKey=null;this.newApiKeyName="";this.newApiKeyProfileId="";this.members=[]}e.prototype.componentWillLoad=function(){this.endpoint.loadSession();if(!this.endpoint.session){console.log("[SETTINGS] Must be authenticated");return}};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){this.newApiKeyProfileId=this.endpoint.session.profile_id;G(this.endpoint,this.endpoint.session.organization_id).then((function(t){e.members=t})).catch((function(t){var n,r,i;console.log("[SETTINGS] Error loading organization members",t);(n=e.sdkError)===null||n===void 0?void 0:n.emit(new c(t.message,(r=t.response)===null||r===void 0?void 0:r.status,(i=t.response)===null||i===void 0?void 0:i.data));l("Unable to load API keys. Please try again later",{style:"error"})}));this.loadKeys();return[2]}))}))};e.prototype.loadKeys=function(){var e=this;g(this.endpoint,this.endpoint.session.organization_id).then((function(t){e.keys=t})).catch((function(t){var n,r,i;console.log("[SETTINGS] Unable to load API keys",t);(n=e.sdkError)===null||n===void 0?void 0:n.emit(new c(t.message,(r=t.response)===null||r===void 0?void 0:r.status,(i=t.response)===null||i===void 0?void 0:i.data));l("Unable to load API keys. Please try again later",{style:"error"})}))};e.prototype.handleDeleteKey=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){T(this.endpoint,this.deletingKey.organization_id,this.deletingKey.client_id).then((function(){e.deletingKey=null;l("API key deleted",{style:"success"});e.loadKeys()})).catch((function(t){var n,r,i;e.deletingKey=null;console.log("[SETTINGS] Unable to delete API key",t);(n=e.sdkError)===null||n===void 0?void 0:n.emit(new c(t.message,(r=t.response)===null||r===void 0?void 0:r.status,(i=t.response)===null||i===void 0?void 0:i.data));l("Unable to delete API key. Please try again later",{style:"error"})}));return[2]}))}))};e.prototype.handleRotateKey=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){b(this.endpoint,this.rotatingKey.organization_id,this.rotatingKey.client_id).then((function(t){e.rotatingKey=null;l("API key rotated",{style:"success"});e.loadKeys();e.createdKey=t})).catch((function(t){var n,r,i;e.rotatingKey=null;console.log("[SETTINGS] Unable to rotate API key",t);(n=e.sdkError)===null||n===void 0?void 0:n.emit(new c(t.message,(r=t.response)===null||r===void 0?void 0:r.status,(i=t.response)===null||i===void 0?void 0:i.data));l("Unable to rotate API key. Please try again later",{style:"error"})}));return[2]}))}))};e.prototype.handleCreateKey=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){y(this.endpoint,this.endpoint.session.organization_id,{name:this.newApiKeyName,profile_id:this.newApiKeyProfileId}).then((function(t){e.creatingKey=false;e.createdKey=t;l("API key created",{style:"success"});e.loadKeys()})).catch((function(t){var n,r,i;e.creatingKey=false;console.log("[SETTINGS] Unable to create API key",t);(n=e.sdkError)===null||n===void 0?void 0:n.emit(new c(t.message,(r=t.response)===null||r===void 0?void 0:r.status,(i=t.response)===null||i===void 0?void 0:i.data));l("Unable to create API key. Please try again later",{style:"error"})}));return[2]}))}))};e.prototype.render=function(){var e=this;var t,n,a,o;var u=this.members.map((function(e){return{label:s(e),value:e.id}}));if(!this.endpoint.session){console.log("[SETTINGS] Must be authenticated");return r(i,{class:"authentication-required"},"Must be authenticated")}return r(i,null,r("verdocs-table",{data:this.keys,columns:[{id:"name",header:"Name",renderCell:function(e,t){return r("div",null,r("div",null,t.name))}},{id:"client_id",header:"Client ID",renderCell:function(e,t){return r("div",null,r("div",{innerHTML:C}),r("div",null,t.client_id))}},{id:"profile_id",header:"Acts as",renderCell:function(e,t){return r("div",null,r("div",{innerHTML:A}),r("div",null,s(t.profile)))}},{id:"actions",header:"Actions",renderCell:function(t,n){return r("div",null,r("div",{innerHTML:P,onClick:function(){return e.deletingKey=n}}),r("div",{innerHTML:j,onClick:function(){return e.rotatingKey=n}}))}}]}),r("verdocs-button",{label:"Add API Key",size:"normal",onClick:function(){return e.creatingKey=true}}),this.deletingKey&&r("verdocs-dialog",{onExit:function(){return e.deletingKey=null}},r("div",{slot:"title",class:"heading"},'Delete API key "',this.deletingKey.name,'"?'),r("div",{class:"content"},r("p",null,"Are you sure you want to delete this key? This action cannot be undone."),r("div",{class:"buttons"},r("verdocs-button",{variant:"outline",size:"small",label:"Cancel",onClick:function(){return e.deletingKey=null}}),r("verdocs-button",{size:"small",label:"OK",onClick:function(){return e.handleDeleteKey()}})))),this.rotatingKey&&r("verdocs-dialog",{onExit:function(){return e.rotatingKey=null}},r("div",{slot:"title",class:"heading"},'Rotate API key "',this.rotatingKey.name,'"?'),r("div",{class:"content"},r("p",null,"Are you sure you want to rotate this key? A new client secret will be generated, and the old value will become unusable. This action cannot be undone."),r("div",{class:"buttons"},r("verdocs-button",{variant:"outline",size:"small",label:"Cancel",onClick:function(){return e.rotatingKey=null}}),r("verdocs-button",{size:"small",label:"OK",onClick:function(){return e.handleRotateKey()}})))),this.creatingKey&&r("verdocs-dialog",{onExit:function(){return e.creatingKey=false}},r("div",{slot:"title",class:"heading"},"Create API Key"),r("div",{class:"content"},r("verdocs-text-input",{label:"Name",placeholder:"API key name...",id:"verdocs-api-key-name",value:this.newApiKeyName,autocomplete:"off",required:true,onInput:function(t){return e.newApiKeyName=t.target.value},onFocusout:function(t){e.newApiKeyName=t.target.value.trim()}}),r("p",null,'API keys must be associated with a profile. Actions performed via API calls using this key will "act as" this profile.'),r("verdocs-select-input",{options:u,label:"Act as Profile",onInput:function(t){e.newApiKeyProfileId=t.target.value}}),r("div",{class:"buttons"},r("verdocs-button",{variant:"outline",size:"small",label:"Cancel",onClick:function(){return e.creatingKey=false}}),r("verdocs-button",{size:"small",label:"OK",onClick:function(){return e.handleCreateKey()}})))),this.createdKey&&r("verdocs-dialog",{onExit:function(){return e.createdKey=null}},r("div",{slot:"title",class:"heading"},"API Key Details"),r("div",{class:"content"},r("verdocs-text-input",{label:"Name",disabled:true,value:(t=this.createdKey)===null||t===void 0?void 0:t.name}),r("verdocs-text-input",{label:"Profile",disabled:true,value:s((n=this.createdKey)===null||n===void 0?void 0:n.profile)}),r("p",null,"Please save the Client ID and Secret below. Be sure to never expose your secret key in insecure (Web or mobile environments)!"),r("verdocs-text-input",{label:"Client ID",disabled:true,value:(a=this.createdKey)===null||a===void 0?void 0:a.client_id,copyable:true}),r("verdocs-text-input",{label:"Secret Key",disabled:true,value:(o=this.createdKey)===null||o===void 0?void 0:o.client_secret,copyable:true}),r("div",{class:"buttons"},r("verdocs-button",{size:"small",label:"Done",onClick:function(){return e.createdKey=null}})))))};return e}());O.style=S;var E='verdocs-settings-members{display:-ms-flexbox;display:flex;padding:10px;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-direction:column;flex-direction:column;font-family:"Inter", "Barlow", sans-serif}verdocs-settings-members .table{margin:12px 0}verdocs-settings-members .role{font-size:12px;width:32px;height:32px;border-radius:32px;background:#777777;color:#ffffff;font-weight:700;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-settings-members .table{margin:12px 0}verdocs-settings-members .data-col div{gap:12px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-settings-members .data-col svg{width:24px;height:24px}verdocs-settings-members .col-name svg,verdocs-settings-members .col-client_id svg,verdocs-settings-members .col-profile_id svg{fill:#a1a1aa}verdocs-settings-members .col-actions svg{fill:#ffffff;stroke:#a1a1aa}verdocs-settings-members .col-actions svg:hover{cursor:pointer;stroke:red}verdocs-settings-members .col-actions>div{-ms-flex-pack:center;justify-content:center}verdocs-settings-members .header-col.col-actions{text-align:center}verdocs-settings-members verdocs-dialog p{font-size:16px;line-height:18px;margin:0 0 1em 0}@media all and (max-width: 450px){verdocs-settings-members .col-email,verdocs-settings-members .col-phone,verdocs-settings-members .col-actions{display:none}}';var Z='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0" /></svg>';var N='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99" /></svg>';var z=function(e){if(e.find((function(e){return e.name==="owner"}))!==undefined)return"Owner";if(e.find((function(e){return e.name==="admin"}))!==undefined)return"Admin";if(e.find((function(e){return e.name==="member"}))!==undefined)return"Member";if(e.find((function(e){return e.name==="basic_user"}))!==undefined)return"Basic User";if(e.find((function(e){return e.name==="contact"}))!==undefined)return"Contact"};var K=function(e){if(e.find((function(e){return e.name==="owner"}))!==undefined)return"#9333ea";if(e.find((function(e){return e.name==="admin"}))!==undefined)return"#2563eb";if(e.find((function(e){return e.name==="member"}))!==undefined)return"#16a34a";if(e.find((function(e){return e.name==="basic_user"}))!==undefined)return"#ea580c";if(e.find((function(e){return e.name==="contact"}))!==undefined)return"#52525B"};var R=e("verdocs_settings_members",function(){function e(e){t(this,e);this.sdkError=n(this,"sdkError",7);this.memberInvited=n(this,"memberInvited",7);this.memberUpdated=n(this,"memberUpdated",7);this.memberRemoved=n(this,"memberRemoved",7);this.endpoint=a.getDefault();this.members=[];this.invited=[];this.roles=[];this.selectedTab=0;this.invitingMember=false;this.newEmailAddress="";this.newRoleId="";this.submitting=false;this.deletingInvitation=null;this.resendingInvitation=null;this.deletingMember=null}e.prototype.componentWillLoad=function(){this.endpoint.loadSession();if(!this.endpoint.session){console.log("[SETTINGS] Must be authenticated");return}};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.loadMembers().catch((function(e){return console.log("Unknown Error",e)}));return[2]}))}))};e.prototype.loadMembers=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,r,i,a,s,o,u;return __generator(this,(function(f){switch(f.label){case 0:f.trys.push([0,2,,3]);return[4,Promise.all([d(this.endpoint),G(this.endpoint,this.endpoint.session.organization_id),x(this.endpoint,this.endpoint.session.organization_id)])];case 1:i=f.sent(),a=i[0],s=i[1],o=i[2];this.roles=a;this.members=s;this.invited=o;this.newRoleId=((e=a.find((function(e){return e.name==="member"})))===null||e===void 0?void 0:e.id)||"";return[3,3];case 2:u=f.sent();(t=this.sdkError)===null||t===void 0?void 0:t.emit(new c(u.message,(n=u.response)===null||n===void 0?void 0:n.status,(r=u.response)===null||r===void 0?void 0:r.data));l("Unable to load members. Please try again later");return[3,3];case 3:return[2]}}))}))};e.prototype.handleInviteMember=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){this.submitting=true;M(a.getDefault(),this.endpoint.session.organization_id,{email:this.newEmailAddress,role_id:this.newRoleId,organization_id:this.endpoint.session.organization_id}).then((function(t){console.log("[SETTINGS] Invited member",t);e.invitingMember=false;e.submitting=false;e.newRoleId="";e.newEmailAddress="";l("Invitation sent!",{style:"success"});e.loadMembers()})).catch((function(t){console.log("[SETTINGS] Unable to invite member",t);e.invitingMember=false;e.submitting=false;e.newRoleId="";e.newEmailAddress="";l("Unable to invite member. Please try again later",{style:"error"})}));return[2]}))}))};e.prototype.handleDeleteMember=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){this.submitting=true;I(a.getDefault(),this.deletingMember.organization_id,this.deletingMember.email).then((function(){e.submitting=false;e.deletingMember=null;l("The member has been deleted.",{style:"success"});e.loadMembers()})).catch((function(t){e.submitting=false;e.deletingMember=null;console.log("Delete error",t);l("Unable to cancel invitation. Please try again later",{style:"error"})}));return[2]}))}))};e.prototype.handleDeleteInvitation=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){this.submitting=true;k(a.getDefault(),this.deletingInvitation.organization_id,this.deletingInvitation.email).then((function(){e.submitting=false;e.deletingInvitation=null;l("The invitation has been cancelled.",{style:"success"});e.loadMembers()})).catch((function(t){e.submitting=false;e.deletingInvitation=null;console.log("Delete error",t);l("Unable to cancel invitation. Please try again later",{style:"error"})}));return[2]}))}))};e.prototype.handleResendInvitation=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){this.submitting=true;w(a.getDefault(),this.resendingInvitation.organization_id,this.resendingInvitation.email).then((function(){e.submitting=false;e.resendingInvitation=null;l("The invitation has been resent.",{style:"success"});e.loadMembers()})).catch((function(t){e.submitting=false;e.resendingInvitation=null;console.log("REsend error",t);l("Unable to resend invitation. Please try again later",{style:"error"})}));return[2]}))}))};e.prototype.render=function(){var e=this;if(!this.endpoint.session){console.log("[SETTINGS] Must be authenticated");return r(i,{class:"authentication-required"},"Must be authenticated")}var t=this.roles.map((function(e){return{label:z([{name:e.name}]),value:e.id}}));return r(i,null,r("verdocs-tabs",{tabs:[{label:"Members (".concat(this.members.length,")")},{label:"Pending Invitations (".concat(this.invited.length,")")}],onSelectTab:function(t){return e.selectedTab=t.detail.index}}),this.selectedTab===0&&r("verdocs-table",{data:this.members,columns:[{id:"name",renderHeader:function(){return"Member"},renderCell:function(e,t){return r("div",{style:{display:"flex",flexDirection:"row",gap:"10px",alignItems:"center"}},r("div",{class:"role",style:{backgroundColor:K(t.roles)}},u(t)),r("span",null,s(t)))}},{id:"email",header:"E-mail Address"},{id:"phone",header:"Phone Number"},{id:"roles",header:"Role",renderCell:function(e,t){return"".concat(z(t.roles))}},{id:"actions",header:"Actions",renderCell:function(t,n){return r("div",null,n.id!==e.endpoint.session.profile_id&&r("div",{innerHTML:Z,onClick:function(){return e.deletingMember=n}}))}}]}),this.selectedTab===1&&r("verdocs-table",{data:this.invited,columns:[{id:"email",header:"E-mail Address"},{id:"generated_at",header:"Invited",renderCell:function(e,t){return r("div",null,m(new Date(t.generated_at),"MMM d, Y"))}},{id:"role_id",header:"Role",renderCell:function(t,n){var i;return r("div",null,z([{name:(i=e.roles.find((function(e){return e.id===n.role_id})))===null||i===void 0?void 0:i.name}]))}},{id:"status",header:"Status",renderCell:function(e,t){return r("div",null,o(t.status))}},{id:"actions",header:"Actions",renderCell:function(t,n){return r("div",null,r("div",{innerHTML:Z,onClick:function(){return e.deletingInvitation=n}}),r("div",{innerHTML:N,onClick:function(){return e.resendingInvitation=n}}))}}]}),r("verdocs-button",{label:"Invite New Member",size:"normal",disabled:this.submitting,onClick:function(){return e.invitingMember=true}}),this.invitingMember&&r("verdocs-dialog",{onExit:function(){return e.invitingMember=false}},r("div",{slot:"title",class:"heading"},"Invite New Member"),r("div",{class:"content"},r("verdocs-text-input",{label:"E-mail Address",placeholder:"Enter the user's email address...",id:"verdocs-invite-email",value:this.newEmailAddress,autocomplete:"off",required:true,onInput:function(t){return e.newEmailAddress=t.target.value},onFocusout:function(t){e.newEmailAddress=t.target.value.trim()}}),r("div",{style:{marginBottom:"20px"}}),r("verdocs-select-input",{options:t,label:"Role",onInput:function(t){e.newRoleId=t.target.value}}),r("div",{class:"buttons"},r("verdocs-button",{variant:"outline",size:"small",label:"Cancel",disabled:this.submitting,onClick:function(){return e.invitingMember=false}}),r("verdocs-button",{size:"small",label:"OK",disabled:this.submitting||!this.newEmailAddress||!this.newRoleId,onClick:function(){return e.handleInviteMember()}})))),this.deletingMember&&r("verdocs-dialog",{onExit:function(){return e.deletingMember=null}},r("div",{slot:"title",class:"heading"},"Delete Member?"),r("div",{class:"content"},r("p",null,"Are you sure you want to delete this member? This action cannot be undone."),r("div",{class:"buttons"},r("verdocs-button",{variant:"outline",size:"small",disabled:this.submitting,label:"Cancel",onClick:function(){return e.deletingMember=null}}),r("verdocs-button",{size:"small",label:"OK",disabled:this.submitting,onClick:function(){return e.handleDeleteMember()}})))),this.deletingInvitation&&r("verdocs-dialog",{onExit:function(){return e.deletingInvitation=null}},r("div",{slot:"title",class:"heading"},"Cancel Invitation?"),r("div",{class:"content"},r("p",null,"Are you sure you want to cancel this invitation? This action cannot be undone."),r("div",{class:"buttons"},r("verdocs-button",{variant:"outline",size:"small",disabled:this.submitting,label:"Cancel",onClick:function(){return e.deletingInvitation=null}}),r("verdocs-button",{size:"small",label:"OK",disabled:this.submitting,onClick:function(){return e.handleDeleteInvitation()}})))),this.resendingInvitation&&r("verdocs-dialog",{onExit:function(){return e.resendingInvitation=null}},r("div",{slot:"title",class:"heading"},"Resend Invitation?"),r("div",{class:"content"},r("p",null,"The user will receive an email reminder to join your organization."),r("div",{class:"buttons"},r("verdocs-button",{variant:"outline",size:"small",disabled:this.submitting,label:"Cancel",onClick:function(){return e.resendingInvitation=null}}),r("verdocs-button",{size:"small",label:"OK",disabled:this.submitting,onClick:function(){return e.handleResendInvitation()}})))))};return e}());R.style=E;var L;(function(e){e.assertEqual=function(e){return e};function t(e){}e.assertIs=t;function n(e){throw new Error}e.assertNever=n;e.arrayToEnum=function(e){var t={};for(var n=0,r=e;n<r.length;n++){var i=r[n];t[i]=i}return t};e.getValidEnumValues=function(t){var n=e.objectKeys(t).filter((function(e){return typeof t[t[e]]!=="number"}));var r={};for(var i=0,a=n;i<a.length;i++){var s=a[i];r[s]=t[s]}return e.objectValues(r)};e.objectValues=function(t){return e.objectKeys(t).map((function(e){return t[e]}))};e.objectKeys=typeof Object.keys==="function"?function(e){return Object.keys(e)}:function(e){var t=[];for(var n in e){if(Object.prototype.hasOwnProperty.call(e,n)){t.push(n)}}return t};e.find=function(e,t){for(var n=0,r=e;n<r.length;n++){var i=r[n];if(t(i))return i}return undefined};e.isInteger=typeof Number.isInteger==="function"?function(e){return Number.isInteger(e)}:function(e){return typeof e==="number"&&isFinite(e)&&Math.floor(e)===e};function r(e,t){if(t===void 0){t=" | "}return e.map((function(e){return typeof e==="string"?"'".concat(e,"'"):e})).join(t)}e.joinValues=r;e.jsonStringifyReplacer=function(e,t){if(typeof t==="bigint"){return t.toString()}return t}})(L||(L={}));var D;(function(e){e.mergeShapes=function(e,t){return __assign(__assign({},e),t)}})(D||(D={}));var U=L.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);var B=function(e){var t=typeof e;switch(t){case"undefined":return U.undefined;case"string":return U.string;case"number":return isNaN(e)?U.nan:U.number;case"boolean":return U.boolean;case"function":return U.function;case"bigint":return U.bigint;case"symbol":return U.symbol;case"object":if(Array.isArray(e)){return U.array}if(e===null){return U.null}if(e.then&&typeof e.then==="function"&&e.catch&&typeof e.catch==="function"){return U.promise}if(typeof Map!=="undefined"&&e instanceof Map){return U.map}if(typeof Set!=="undefined"&&e instanceof Set){return U.set}if(typeof Date!=="undefined"&&e instanceof Date){return U.date}return U.object;default:return U.unknown}};var F=L.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);var V=function(e){var t=JSON.stringify(e,null,2);return t.replace(/"([^"]+)":/g,"$1:")};var q=function(e){__extends(t,e);function t(t){var n=this.constructor;var r=e.call(this)||this;r.issues=[];r.addIssue=function(e){r.issues=__spreadArray(__spreadArray([],r.issues,true),[e],false)};r.addIssues=function(e){if(e===void 0){e=[]}r.issues=__spreadArray(__spreadArray([],r.issues,true),e,true)};var i=n.prototype;if(Object.setPrototypeOf){Object.setPrototypeOf(r,i)}else{r.__proto__=i}r.name="ZodError";r.issues=t;return r}Object.defineProperty(t.prototype,"errors",{get:function(){return this.issues},enumerable:false,configurable:true});t.prototype.format=function(e){var t=e||function(e){return e.message};var n={_errors:[]};var r=function(e){for(var i=0,a=e.issues;i<a.length;i++){var s=a[i];if(s.code==="invalid_union"){s.unionErrors.map(r)}else if(s.code==="invalid_return_type"){r(s.returnTypeError)}else if(s.code==="invalid_arguments"){r(s.argumentsError)}else if(s.path.length===0){n._errors.push(t(s))}else{var o=n;var u=0;while(u<s.path.length){var l=s.path[u];var c=u===s.path.length-1;if(!c){o[l]=o[l]||{_errors:[]}}else{o[l]=o[l]||{_errors:[]};o[l]._errors.push(t(s))}o=o[l];u++}}}};r(this);return n};t.prototype.toString=function(){return this.message};Object.defineProperty(t.prototype,"message",{get:function(){return JSON.stringify(this.issues,L.jsonStringifyReplacer,2)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isEmpty",{get:function(){return this.issues.length===0},enumerable:false,configurable:true});t.prototype.flatten=function(e){if(e===void 0){e=function(e){return e.message}}var t={};var n=[];for(var r=0,i=this.issues;r<i.length;r++){var a=i[r];if(a.path.length>0){t[a.path[0]]=t[a.path[0]]||[];t[a.path[0]].push(e(a))}else{n.push(e(a))}}return{formErrors:n,fieldErrors:t}};Object.defineProperty(t.prototype,"formErrors",{get:function(){return this.flatten()},enumerable:false,configurable:true});return t}(Error);q.create=function(e){var t=new q(e);return t};var W=function(e,t){var n;switch(e.code){case F.invalid_type:if(e.received===U.undefined){n="Required"}else{n="Expected ".concat(e.expected,", received ").concat(e.received)}break;case F.invalid_literal:n="Invalid literal value, expected ".concat(JSON.stringify(e.expected,L.jsonStringifyReplacer));break;case F.unrecognized_keys:n="Unrecognized key(s) in object: ".concat(L.joinValues(e.keys,", "));break;case F.invalid_union:n="Invalid input";break;case F.invalid_union_discriminator:n="Invalid discriminator value. Expected ".concat(L.joinValues(e.options));break;case F.invalid_enum_value:n="Invalid enum value. Expected ".concat(L.joinValues(e.options),", received '").concat(e.received,"'");break;case F.invalid_arguments:n="Invalid function arguments";break;case F.invalid_return_type:n="Invalid function return type";break;case F.invalid_date:n="Invalid date";break;case F.invalid_string:if(typeof e.validation==="object"){if("includes"in e.validation){n='Invalid input: must include "'.concat(e.validation.includes,'"');if(typeof e.validation.position==="number"){n="".concat(n," at one or more positions greater than or equal to ").concat(e.validation.position)}}else if("startsWith"in e.validation){n='Invalid input: must start with "'.concat(e.validation.startsWith,'"')}else if("endsWith"in e.validation){n='Invalid input: must end with "'.concat(e.validation.endsWith,'"')}else{L.assertNever(e.validation)}}else if(e.validation!=="regex"){n="Invalid ".concat(e.validation)}else{n="Invalid"}break;case F.too_small:if(e.type==="array")n="Array must contain ".concat(e.exact?"exactly":e.inclusive?"at least":"more than"," ").concat(e.minimum," element(s)");else if(e.type==="string")n="String must contain ".concat(e.exact?"exactly":e.inclusive?"at least":"over"," ").concat(e.minimum," character(s)");else if(e.type==="number")n="Number must be ".concat(e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than ").concat(e.minimum);else if(e.type==="date")n="Date must be ".concat(e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than ").concat(new Date(Number(e.minimum)));else n="Invalid input";break;case F.too_big:if(e.type==="array")n="Array must contain ".concat(e.exact?"exactly":e.inclusive?"at most":"less than"," ").concat(e.maximum," element(s)");else if(e.type==="string")n="String must contain ".concat(e.exact?"exactly":e.inclusive?"at most":"under"," ").concat(e.maximum," character(s)");else if(e.type==="number")n="Number must be ".concat(e.exact?"exactly":e.inclusive?"less than or equal to":"less than"," ").concat(e.maximum);else if(e.type==="bigint")n="BigInt must be ".concat(e.exact?"exactly":e.inclusive?"less than or equal to":"less than"," ").concat(e.maximum);else if(e.type==="date")n="Date must be ".concat(e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"," ").concat(new Date(Number(e.maximum)));else n="Invalid input";break;case F.custom:n="Invalid input";break;case F.invalid_intersection_types:n="Intersection results could not be merged";break;case F.not_multiple_of:n="Number must be a multiple of ".concat(e.multipleOf);break;case F.not_finite:n="Number must be finite";break;default:n=t.defaultError;L.assertNever(e)}return{message:n}};var H=W;function $(e){H=e}function J(){return H}var Y=function(e){var t=e.data,n=e.path,r=e.errorMaps,i=e.issueData;var a=__spreadArray(__spreadArray([],n,true),i.path||[],true);var s=__assign(__assign({},i),{path:a});var o="";var u=r.filter((function(e){return!!e})).slice().reverse();for(var l=0,c=u;l<c.length;l++){var d=c[l];o=d(s,{data:t,defaultError:o}).message}return __assign(__assign({},i),{path:a,message:i.message||o})};var Q=[];function X(e,t){var n=Y({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,J(),W].filter((function(e){return!!e}))});e.common.issues.push(n)}var ee=function(){function e(){this.value="valid"}e.prototype.dirty=function(){if(this.value==="valid")this.value="dirty"};e.prototype.abort=function(){if(this.value!=="aborted")this.value="aborted"};e.mergeArray=function(e,t){var n=[];for(var r=0,i=t;r<i.length;r++){var a=i[r];if(a.status==="aborted")return te;if(a.status==="dirty")e.dirty();n.push(a.value)}return{status:e.value,value:n}};e.mergeObjectAsync=function(t,n){return __awaiter(this,void 0,void 0,(function(){var r,i,a,s,o,u;var l;return __generator(this,(function(c){switch(c.label){case 0:r=[];i=0,a=n;c.label=1;case 1:if(!(i<a.length))return[3,5];s=a[i];u=(o=r).push;l={};return[4,s.key];case 2:l.key=c.sent();return[4,s.value];case 3:u.apply(o,[(l.value=c.sent(),l)]);c.label=4;case 4:i++;return[3,1];case 5:return[2,e.mergeObjectSync(t,r)]}}))}))};e.mergeObjectSync=function(e,t){var n={};for(var r=0,i=t;r<i.length;r++){var a=i[r];var s=a.key,o=a.value;if(s.status==="aborted")return te;if(o.status==="aborted")return te;if(s.status==="dirty")e.dirty();if(o.status==="dirty")e.dirty();if(s.value!=="__proto__"&&(typeof o.value!=="undefined"||a.alwaysSet)){n[s.value]=o.value}}return{status:e.value,value:n}};return e}();var te=Object.freeze({status:"aborted"});var ne=function(e){return{status:"dirty",value:e}};var re=function(e){return{status:"valid",value:e}};var ie=function(e){return e.status==="aborted"};var ae=function(e){return e.status==="dirty"};var se=function(e){return e.status==="valid"};var oe=function(e){return typeof Promise!=="undefined"&&e instanceof Promise};var ue;(function(e){e.errToObj=function(e){return typeof e==="string"?{message:e}:e||{}};e.toString=function(e){return typeof e==="string"?e:e===null||e===void 0?void 0:e.message}})(ue||(ue={}));var le=function(){function e(e,t,n,r){this._cachedPath=[];this.parent=e;this.data=t;this._path=n;this._key=r}Object.defineProperty(e.prototype,"path",{get:function(){var e,t;if(!this._cachedPath.length){if(this._key instanceof Array){(e=this._cachedPath).push.apply(e,__spreadArray(__spreadArray([],this._path,false),this._key,false))}else{(t=this._cachedPath).push.apply(t,__spreadArray(__spreadArray([],this._path,false),[this._key],false))}}return this._cachedPath},enumerable:false,configurable:true});return e}();var ce=function(e,t){if(se(t)){return{success:true,data:t.value}}else{if(!e.common.issues.length){throw new Error("Validation failed but no issues detected.")}return{success:false,get error(){if(this._error)return this._error;var t=new q(e.common.issues);this._error=t;return this._error}}}};function de(e){if(!e)return{};var t=e.errorMap,n=e.invalid_type_error,r=e.required_error,i=e.description;if(t&&(n||r)){throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.')}if(t)return{errorMap:t,description:i};var a=function(e,t){if(e.code!=="invalid_type")return{message:t.defaultError};if(typeof t.data==="undefined"){return{message:r!==null&&r!==void 0?r:t.defaultError}}return{message:n!==null&&n!==void 0?n:t.defaultError}};return{errorMap:a,description:i}}var fe=function(){function e(e){this.spa=this.safeParseAsync;this._def=e;this.parse=this.parse.bind(this);this.safeParse=this.safeParse.bind(this);this.parseAsync=this.parseAsync.bind(this);this.safeParseAsync=this.safeParseAsync.bind(this);this.spa=this.spa.bind(this);this.refine=this.refine.bind(this);this.refinement=this.refinement.bind(this);this.superRefine=this.superRefine.bind(this);this.optional=this.optional.bind(this);this.nullable=this.nullable.bind(this);this.nullish=this.nullish.bind(this);this.array=this.array.bind(this);this.promise=this.promise.bind(this);this.or=this.or.bind(this);this.and=this.and.bind(this);this.transform=this.transform.bind(this);this.brand=this.brand.bind(this);this.default=this.default.bind(this);this.catch=this.catch.bind(this);this.describe=this.describe.bind(this);this.pipe=this.pipe.bind(this);this.readonly=this.readonly.bind(this);this.isNullable=this.isNullable.bind(this);this.isOptional=this.isOptional.bind(this)}Object.defineProperty(e.prototype,"description",{get:function(){return this._def.description},enumerable:false,configurable:true});e.prototype._getType=function(e){return B(e.data)};e.prototype._getOrReturnCtx=function(e,t){return t||{common:e.parent.common,data:e.data,parsedType:B(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}};e.prototype._processInputParams=function(e){return{status:new ee,ctx:{common:e.parent.common,data:e.data,parsedType:B(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}};e.prototype._parseSync=function(e){var t=this._parse(e);if(oe(t)){throw new Error("Synchronous parse encountered promise.")}return t};e.prototype._parseAsync=function(e){var t=this._parse(e);return Promise.resolve(t)};e.prototype.parse=function(e,t){var n=this.safeParse(e,t);if(n.success)return n.data;throw n.error};e.prototype.safeParse=function(e,t){var n;var r={common:{issues:[],async:(n=t===null||t===void 0?void 0:t.async)!==null&&n!==void 0?n:false,contextualErrorMap:t===null||t===void 0?void 0:t.errorMap},path:(t===null||t===void 0?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:B(e)};var i=this._parseSync({data:e,path:r.path,parent:r});return ce(r,i)};e.prototype.parseAsync=function(e,t){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(r){switch(r.label){case 0:return[4,this.safeParseAsync(e,t)];case 1:n=r.sent();if(n.success)return[2,n.data];throw n.error}}))}))};e.prototype.safeParseAsync=function(e,t){return __awaiter(this,void 0,void 0,(function(){var n,r,i;return __generator(this,(function(a){switch(a.label){case 0:n={common:{issues:[],contextualErrorMap:t===null||t===void 0?void 0:t.errorMap,async:true},path:(t===null||t===void 0?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:B(e)};r=this._parse({data:e,path:n.path,parent:n});return[4,oe(r)?r:Promise.resolve(r)];case 1:i=a.sent();return[2,ce(n,i)]}}))}))};e.prototype.refine=function(e,t){var n=function(e){if(typeof t==="string"||typeof t==="undefined"){return{message:t}}else if(typeof t==="function"){return t(e)}else{return t}};return this._refinement((function(t,r){var i=e(t);var a=function(){return r.addIssue(__assign({code:F.custom},n(t)))};if(typeof Promise!=="undefined"&&i instanceof Promise){return i.then((function(e){if(!e){a();return false}else{return true}}))}if(!i){a();return false}else{return true}}))};e.prototype.refinement=function(e,t){return this._refinement((function(n,r){if(!e(n)){r.addIssue(typeof t==="function"?t(n,r):t);return false}else{return true}}))};e.prototype._refinement=function(e){return new tt({schema:this,typeName:pt.ZodEffects,effect:{type:"refinement",refinement:e}})};e.prototype.superRefine=function(e){return this._refinement(e)};e.prototype.optional=function(){return nt.create(this,this._def)};e.prototype.nullable=function(){return rt.create(this,this._def)};e.prototype.nullish=function(){return this.nullable().optional()};e.prototype.array=function(){return Ne.create(this,this._def)};e.prototype.promise=function(){return et.create(this,this._def)};e.prototype.or=function(e){return Re.create([this,e],this._def)};e.prototype.and=function(e){return Be.create(this,e,this._def)};e.prototype.transform=function(e){return new tt(__assign(__assign({},de(this._def)),{schema:this,typeName:pt.ZodEffects,effect:{type:"transform",transform:e}}))};e.prototype.default=function(e){var t=typeof e==="function"?e:function(){return e};return new it(__assign(__assign({},de(this._def)),{innerType:this,defaultValue:t,typeName:pt.ZodDefault}))};e.prototype.brand=function(){return new ut(__assign({typeName:pt.ZodBranded,type:this},de(this._def)))};e.prototype.catch=function(e){var t=typeof e==="function"?e:function(){return e};return new at(__assign(__assign({},de(this._def)),{innerType:this,catchValue:t,typeName:pt.ZodCatch}))};e.prototype.describe=function(e){var t=this.constructor;return new t(__assign(__assign({},this._def),{description:e}))};e.prototype.pipe=function(e){return lt.create(this,e)};e.prototype.readonly=function(){return ct.create(this)};e.prototype.isOptional=function(){return this.safeParse(undefined).success};e.prototype.isNullable=function(){return this.safeParse(null).success};return e}();var pe=/^c[^\s-]{8,}$/i;var he=/^[a-z][a-z0-9]*$/;var ve=/[0-9A-HJKMNP-TV-Z]{26}/;var me=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i;var _e=/^([A-Z0-9_+-]+\.?)*[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;var ge=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u;var ye=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/;var be=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;var Te=function(e){if(e.precision){if(e.offset){return new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{".concat(e.precision,"}(([+-]\\d{2}(:?\\d{2})?)|Z)$"))}else{return new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{".concat(e.precision,"}Z$"))}}else if(e.precision===0){if(e.offset){return new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$")}else{return new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$")}}else{if(e.offset){return new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$")}else{return new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$")}}};function xe(e,t){if((t==="v4"||!t)&&ye.test(e)){return true}if((t==="v6"||!t)&&be.test(e)){return true}return false}var Me=function(e){__extends(t,e);function t(){var n=e.apply(this,arguments)||this;n._regex=function(e,t,r){return n.refinement((function(t){return e.test(t)}),__assign({validation:t,code:F.invalid_string},ue.errToObj(r)))};n.nonempty=function(e){return n.min(1,ue.errToObj(e))};n.trim=function(){return new t(__assign(__assign({},n._def),{checks:__spreadArray(__spreadArray([],n._def.checks,true),[{kind:"trim"}],false)}))};n.toLowerCase=function(){return new t(__assign(__assign({},n._def),{checks:__spreadArray(__spreadArray([],n._def.checks,true),[{kind:"toLowerCase"}],false)}))};n.toUpperCase=function(){return new t(__assign(__assign({},n._def),{checks:__spreadArray(__spreadArray([],n._def.checks,true),[{kind:"toUpperCase"}],false)}))};return n}t.prototype._parse=function(e){if(this._def.coerce){e.data=String(e.data)}var t=this._getType(e);if(t!==U.string){var n=this._getOrReturnCtx(e);X(n,{code:F.invalid_type,expected:U.string,received:n.parsedType});return te}var r=new ee;var i=undefined;for(var a=0,s=this._def.checks;a<s.length;a++){var o=s[a];if(o.kind==="min"){if(e.data.length<o.value){i=this._getOrReturnCtx(e,i);X(i,{code:F.too_small,minimum:o.value,type:"string",inclusive:true,exact:false,message:o.message});r.dirty()}}else if(o.kind==="max"){if(e.data.length>o.value){i=this._getOrReturnCtx(e,i);X(i,{code:F.too_big,maximum:o.value,type:"string",inclusive:true,exact:false,message:o.message});r.dirty()}}else if(o.kind==="length"){var u=e.data.length>o.value;var l=e.data.length<o.value;if(u||l){i=this._getOrReturnCtx(e,i);if(u){X(i,{code:F.too_big,maximum:o.value,type:"string",inclusive:true,exact:true,message:o.message})}else if(l){X(i,{code:F.too_small,minimum:o.value,type:"string",inclusive:true,exact:true,message:o.message})}r.dirty()}}else if(o.kind==="email"){if(!_e.test(e.data)){i=this._getOrReturnCtx(e,i);X(i,{validation:"email",code:F.invalid_string,message:o.message});r.dirty()}}else if(o.kind==="emoji"){if(!ge.test(e.data)){i=this._getOrReturnCtx(e,i);X(i,{validation:"emoji",code:F.invalid_string,message:o.message});r.dirty()}}else if(o.kind==="uuid"){if(!me.test(e.data)){i=this._getOrReturnCtx(e,i);X(i,{validation:"uuid",code:F.invalid_string,message:o.message});r.dirty()}}else if(o.kind==="cuid"){if(!pe.test(e.data)){i=this._getOrReturnCtx(e,i);X(i,{validation:"cuid",code:F.invalid_string,message:o.message});r.dirty()}}else if(o.kind==="cuid2"){if(!he.test(e.data)){i=this._getOrReturnCtx(e,i);X(i,{validation:"cuid2",code:F.invalid_string,message:o.message});r.dirty()}}else if(o.kind==="ulid"){if(!ve.test(e.data)){i=this._getOrReturnCtx(e,i);X(i,{validation:"ulid",code:F.invalid_string,message:o.message});r.dirty()}}else if(o.kind==="url"){try{new URL(e.data)}catch(t){i=this._getOrReturnCtx(e,i);X(i,{validation:"url",code:F.invalid_string,message:o.message});r.dirty()}}else if(o.kind==="regex"){o.regex.lastIndex=0;var c=o.regex.test(e.data);if(!c){i=this._getOrReturnCtx(e,i);X(i,{validation:"regex",code:F.invalid_string,message:o.message});r.dirty()}}else if(o.kind==="trim"){e.data=e.data.trim()}else if(o.kind==="includes"){if(!e.data.includes(o.value,o.position)){i=this._getOrReturnCtx(e,i);X(i,{code:F.invalid_string,validation:{includes:o.value,position:o.position},message:o.message});r.dirty()}}else if(o.kind==="toLowerCase"){e.data=e.data.toLowerCase()}else if(o.kind==="toUpperCase"){e.data=e.data.toUpperCase()}else if(o.kind==="startsWith"){if(!e.data.startsWith(o.value)){i=this._getOrReturnCtx(e,i);X(i,{code:F.invalid_string,validation:{startsWith:o.value},message:o.message});r.dirty()}}else if(o.kind==="endsWith"){if(!e.data.endsWith(o.value)){i=this._getOrReturnCtx(e,i);X(i,{code:F.invalid_string,validation:{endsWith:o.value},message:o.message});r.dirty()}}else if(o.kind==="datetime"){var d=Te(o);if(!d.test(e.data)){i=this._getOrReturnCtx(e,i);X(i,{code:F.invalid_string,validation:"datetime",message:o.message});r.dirty()}}else if(o.kind==="ip"){if(!xe(e.data,o.version)){i=this._getOrReturnCtx(e,i);X(i,{validation:"ip",code:F.invalid_string,message:o.message});r.dirty()}}else{L.assertNever(o)}}return{status:r.value,value:e.data}};t.prototype._addCheck=function(e){return new t(__assign(__assign({},this._def),{checks:__spreadArray(__spreadArray([],this._def.checks,true),[e],false)}))};t.prototype.email=function(e){return this._addCheck(__assign({kind:"email"},ue.errToObj(e)))};t.prototype.url=function(e){return this._addCheck(__assign({kind:"url"},ue.errToObj(e)))};t.prototype.emoji=function(e){return this._addCheck(__assign({kind:"emoji"},ue.errToObj(e)))};t.prototype.uuid=function(e){return this._addCheck(__assign({kind:"uuid"},ue.errToObj(e)))};t.prototype.cuid=function(e){return this._addCheck(__assign({kind:"cuid"},ue.errToObj(e)))};t.prototype.cuid2=function(e){return this._addCheck(__assign({kind:"cuid2"},ue.errToObj(e)))};t.prototype.ulid=function(e){return this._addCheck(__assign({kind:"ulid"},ue.errToObj(e)))};t.prototype.ip=function(e){return this._addCheck(__assign({kind:"ip"},ue.errToObj(e)))};t.prototype.datetime=function(e){var t;if(typeof e==="string"){return this._addCheck({kind:"datetime",precision:null,offset:false,message:e})}return this._addCheck(__assign({kind:"datetime",precision:typeof(e===null||e===void 0?void 0:e.precision)==="undefined"?null:e===null||e===void 0?void 0:e.precision,offset:(t=e===null||e===void 0?void 0:e.offset)!==null&&t!==void 0?t:false},ue.errToObj(e===null||e===void 0?void 0:e.message)))};t.prototype.regex=function(e,t){return this._addCheck(__assign({kind:"regex",regex:e},ue.errToObj(t)))};t.prototype.includes=function(e,t){return this._addCheck(__assign({kind:"includes",value:e,position:t===null||t===void 0?void 0:t.position},ue.errToObj(t===null||t===void 0?void 0:t.message)))};t.prototype.startsWith=function(e,t){return this._addCheck(__assign({kind:"startsWith",value:e},ue.errToObj(t)))};t.prototype.endsWith=function(e,t){return this._addCheck(__assign({kind:"endsWith",value:e},ue.errToObj(t)))};t.prototype.min=function(e,t){return this._addCheck(__assign({kind:"min",value:e},ue.errToObj(t)))};t.prototype.max=function(e,t){return this._addCheck(__assign({kind:"max",value:e},ue.errToObj(t)))};t.prototype.length=function(e,t){return this._addCheck(__assign({kind:"length",value:e},ue.errToObj(t)))};Object.defineProperty(t.prototype,"isDatetime",{get:function(){return!!this._def.checks.find((function(e){return e.kind==="datetime"}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isEmail",{get:function(){return!!this._def.checks.find((function(e){return e.kind==="email"}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isURL",{get:function(){return!!this._def.checks.find((function(e){return e.kind==="url"}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isEmoji",{get:function(){return!!this._def.checks.find((function(e){return e.kind==="emoji"}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isUUID",{get:function(){return!!this._def.checks.find((function(e){return e.kind==="uuid"}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isCUID",{get:function(){return!!this._def.checks.find((function(e){return e.kind==="cuid"}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isCUID2",{get:function(){return!!this._def.checks.find((function(e){return e.kind==="cuid2"}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isULID",{get:function(){return!!this._def.checks.find((function(e){return e.kind==="ulid"}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isIP",{get:function(){return!!this._def.checks.find((function(e){return e.kind==="ip"}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"minLength",{get:function(){var e=null;for(var t=0,n=this._def.checks;t<n.length;t++){var r=n[t];if(r.kind==="min"){if(e===null||r.value>e)e=r.value}}return e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"maxLength",{get:function(){var e=null;for(var t=0,n=this._def.checks;t<n.length;t++){var r=n[t];if(r.kind==="max"){if(e===null||r.value<e)e=r.value}}return e},enumerable:false,configurable:true});return t}(fe);Me.create=function(e){var t;return new Me(__assign({checks:[],typeName:pt.ZodString,coerce:(t=e===null||e===void 0?void 0:e.coerce)!==null&&t!==void 0?t:false},de(e)))};function ke(e,t){var n=(e.toString().split(".")[1]||"").length;var r=(t.toString().split(".")[1]||"").length;var i=n>r?n:r;var a=parseInt(e.toFixed(i).replace(".",""));var s=parseInt(t.toFixed(i).replace(".",""));return a%s/Math.pow(10,i)}var we=function(e){__extends(t,e);function t(){var t=e.apply(this,arguments)||this;t.min=t.gte;t.max=t.lte;t.step=t.multipleOf;return t}t.prototype._parse=function(e){if(this._def.coerce){e.data=Number(e.data)}var t=this._getType(e);if(t!==U.number){var n=this._getOrReturnCtx(e);X(n,{code:F.invalid_type,expected:U.number,received:n.parsedType});return te}var r=undefined;var i=new ee;for(var a=0,s=this._def.checks;a<s.length;a++){var o=s[a];if(o.kind==="int"){if(!L.isInteger(e.data)){r=this._getOrReturnCtx(e,r);X(r,{code:F.invalid_type,expected:"integer",received:"float",message:o.message});i.dirty()}}else if(o.kind==="min"){var u=o.inclusive?e.data<o.value:e.data<=o.value;if(u){r=this._getOrReturnCtx(e,r);X(r,{code:F.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:false,message:o.message});i.dirty()}}else if(o.kind==="max"){var l=o.inclusive?e.data>o.value:e.data>=o.value;if(l){r=this._getOrReturnCtx(e,r);X(r,{code:F.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:false,message:o.message});i.dirty()}}else if(o.kind==="multipleOf"){if(ke(e.data,o.value)!==0){r=this._getOrReturnCtx(e,r);X(r,{code:F.not_multiple_of,multipleOf:o.value,message:o.message});i.dirty()}}else if(o.kind==="finite"){if(!Number.isFinite(e.data)){r=this._getOrReturnCtx(e,r);X(r,{code:F.not_finite,message:o.message});i.dirty()}}else{L.assertNever(o)}}return{status:i.value,value:e.data}};t.prototype.gte=function(e,t){return this.setLimit("min",e,true,ue.toString(t))};t.prototype.gt=function(e,t){return this.setLimit("min",e,false,ue.toString(t))};t.prototype.lte=function(e,t){return this.setLimit("max",e,true,ue.toString(t))};t.prototype.lt=function(e,t){return this.setLimit("max",e,false,ue.toString(t))};t.prototype.setLimit=function(e,n,r,i){return new t(__assign(__assign({},this._def),{checks:__spreadArray(__spreadArray([],this._def.checks,true),[{kind:e,value:n,inclusive:r,message:ue.toString(i)}],false)}))};t.prototype._addCheck=function(e){return new t(__assign(__assign({},this._def),{checks:__spreadArray(__spreadArray([],this._def.checks,true),[e],false)}))};t.prototype.int=function(e){return this._addCheck({kind:"int",message:ue.toString(e)})};t.prototype.positive=function(e){return this._addCheck({kind:"min",value:0,inclusive:false,message:ue.toString(e)})};t.prototype.negative=function(e){return this._addCheck({kind:"max",value:0,inclusive:false,message:ue.toString(e)})};t.prototype.nonpositive=function(e){return this._addCheck({kind:"max",value:0,inclusive:true,message:ue.toString(e)})};t.prototype.nonnegative=function(e){return this._addCheck({kind:"min",value:0,inclusive:true,message:ue.toString(e)})};t.prototype.multipleOf=function(e,t){return this._addCheck({kind:"multipleOf",value:e,message:ue.toString(t)})};t.prototype.finite=function(e){return this._addCheck({kind:"finite",message:ue.toString(e)})};t.prototype.safe=function(e){return this._addCheck({kind:"min",inclusive:true,value:Number.MIN_SAFE_INTEGER,message:ue.toString(e)})._addCheck({kind:"max",inclusive:true,value:Number.MAX_SAFE_INTEGER,message:ue.toString(e)})};Object.defineProperty(t.prototype,"minValue",{get:function(){var e=null;for(var t=0,n=this._def.checks;t<n.length;t++){var r=n[t];if(r.kind==="min"){if(e===null||r.value>e)e=r.value}}return e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"maxValue",{get:function(){var e=null;for(var t=0,n=this._def.checks;t<n.length;t++){var r=n[t];if(r.kind==="max"){if(e===null||r.value<e)e=r.value}}return e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isInt",{get:function(){return!!this._def.checks.find((function(e){return e.kind==="int"||e.kind==="multipleOf"&&L.isInteger(e.value)}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isFinite",{get:function(){var e=null,t=null;for(var n=0,r=this._def.checks;n<r.length;n++){var i=r[n];if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf"){return true}else if(i.kind==="min"){if(t===null||i.value>t)t=i.value}else if(i.kind==="max"){if(e===null||i.value<e)e=i.value}}return Number.isFinite(t)&&Number.isFinite(e)},enumerable:false,configurable:true});return t}(fe);we.create=function(e){return new we(__assign({checks:[],typeName:pt.ZodNumber,coerce:(e===null||e===void 0?void 0:e.coerce)||false},de(e)))};var Ge=function(e){__extends(t,e);function t(){var t=e.apply(this,arguments)||this;t.min=t.gte;t.max=t.lte;return t}t.prototype._parse=function(e){if(this._def.coerce){e.data=BigInt(e.data)}var t=this._getType(e);if(t!==U.bigint){var n=this._getOrReturnCtx(e);X(n,{code:F.invalid_type,expected:U.bigint,received:n.parsedType});return te}var r=undefined;var i=new ee;for(var a=0,s=this._def.checks;a<s.length;a++){var o=s[a];if(o.kind==="min"){var u=o.inclusive?e.data<o.value:e.data<=o.value;if(u){r=this._getOrReturnCtx(e,r);X(r,{code:F.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message});i.dirty()}}else if(o.kind==="max"){var l=o.inclusive?e.data>o.value:e.data>=o.value;if(l){r=this._getOrReturnCtx(e,r);X(r,{code:F.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message});i.dirty()}}else if(o.kind==="multipleOf"){if(e.data%o.value!==BigInt(0)){r=this._getOrReturnCtx(e,r);X(r,{code:F.not_multiple_of,multipleOf:o.value,message:o.message});i.dirty()}}else{L.assertNever(o)}}return{status:i.value,value:e.data}};t.prototype.gte=function(e,t){return this.setLimit("min",e,true,ue.toString(t))};t.prototype.gt=function(e,t){return this.setLimit("min",e,false,ue.toString(t))};t.prototype.lte=function(e,t){return this.setLimit("max",e,true,ue.toString(t))};t.prototype.lt=function(e,t){return this.setLimit("max",e,false,ue.toString(t))};t.prototype.setLimit=function(e,n,r,i){return new t(__assign(__assign({},this._def),{checks:__spreadArray(__spreadArray([],this._def.checks,true),[{kind:e,value:n,inclusive:r,message:ue.toString(i)}],false)}))};t.prototype._addCheck=function(e){return new t(__assign(__assign({},this._def),{checks:__spreadArray(__spreadArray([],this._def.checks,true),[e],false)}))};t.prototype.positive=function(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:false,message:ue.toString(e)})};t.prototype.negative=function(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:false,message:ue.toString(e)})};t.prototype.nonpositive=function(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:true,message:ue.toString(e)})};t.prototype.nonnegative=function(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:true,message:ue.toString(e)})};t.prototype.multipleOf=function(e,t){return this._addCheck({kind:"multipleOf",value:e,message:ue.toString(t)})};Object.defineProperty(t.prototype,"minValue",{get:function(){var e=null;for(var t=0,n=this._def.checks;t<n.length;t++){var r=n[t];if(r.kind==="min"){if(e===null||r.value>e)e=r.value}}return e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"maxValue",{get:function(){var e=null;for(var t=0,n=this._def.checks;t<n.length;t++){var r=n[t];if(r.kind==="max"){if(e===null||r.value<e)e=r.value}}return e},enumerable:false,configurable:true});return t}(fe);Ge.create=function(e){var t;return new Ge(__assign({checks:[],typeName:pt.ZodBigInt,coerce:(t=e===null||e===void 0?void 0:e.coerce)!==null&&t!==void 0?t:false},de(e)))};var Ie=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){if(this._def.coerce){e.data=Boolean(e.data)}var t=this._getType(e);if(t!==U.boolean){var n=this._getOrReturnCtx(e);X(n,{code:F.invalid_type,expected:U.boolean,received:n.parsedType});return te}return re(e.data)};return t}(fe);Ie.create=function(e){return new Ie(__assign({typeName:pt.ZodBoolean,coerce:(e===null||e===void 0?void 0:e.coerce)||false},de(e)))};var Se=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){if(this._def.coerce){e.data=new Date(e.data)}var t=this._getType(e);if(t!==U.date){var n=this._getOrReturnCtx(e);X(n,{code:F.invalid_type,expected:U.date,received:n.parsedType});return te}if(isNaN(e.data.getTime())){var r=this._getOrReturnCtx(e);X(r,{code:F.invalid_date});return te}var i=new ee;var a=undefined;for(var s=0,o=this._def.checks;s<o.length;s++){var u=o[s];if(u.kind==="min"){if(e.data.getTime()<u.value){a=this._getOrReturnCtx(e,a);X(a,{code:F.too_small,message:u.message,inclusive:true,exact:false,minimum:u.value,type:"date"});i.dirty()}}else if(u.kind==="max"){if(e.data.getTime()>u.value){a=this._getOrReturnCtx(e,a);X(a,{code:F.too_big,message:u.message,inclusive:true,exact:false,maximum:u.value,type:"date"});i.dirty()}}else{L.assertNever(u)}}return{status:i.value,value:new Date(e.data.getTime())}};t.prototype._addCheck=function(e){return new t(__assign(__assign({},this._def),{checks:__spreadArray(__spreadArray([],this._def.checks,true),[e],false)}))};t.prototype.min=function(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:ue.toString(t)})};t.prototype.max=function(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:ue.toString(t)})};Object.defineProperty(t.prototype,"minDate",{get:function(){var e=null;for(var t=0,n=this._def.checks;t<n.length;t++){var r=n[t];if(r.kind==="min"){if(e===null||r.value>e)e=r.value}}return e!=null?new Date(e):null},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"maxDate",{get:function(){var e=null;for(var t=0,n=this._def.checks;t<n.length;t++){var r=n[t];if(r.kind==="max"){if(e===null||r.value<e)e=r.value}}return e!=null?new Date(e):null},enumerable:false,configurable:true});return t}(fe);Se.create=function(e){return new Se(__assign({checks:[],coerce:(e===null||e===void 0?void 0:e.coerce)||false,typeName:pt.ZodDate},de(e)))};var Ce=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._getType(e);if(t!==U.symbol){var n=this._getOrReturnCtx(e);X(n,{code:F.invalid_type,expected:U.symbol,received:n.parsedType});return te}return re(e.data)};return t}(fe);Ce.create=function(e){return new Ce(__assign({typeName:pt.ZodSymbol},de(e)))};var Ae=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._getType(e);if(t!==U.undefined){var n=this._getOrReturnCtx(e);X(n,{code:F.invalid_type,expected:U.undefined,received:n.parsedType});return te}return re(e.data)};return t}(fe);Ae.create=function(e){return new Ae(__assign({typeName:pt.ZodUndefined},de(e)))};var Pe=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._getType(e);if(t!==U.null){var n=this._getOrReturnCtx(e);X(n,{code:F.invalid_type,expected:U.null,received:n.parsedType});return te}return re(e.data)};return t}(fe);Pe.create=function(e){return new Pe(__assign({typeName:pt.ZodNull},de(e)))};var je=function(e){__extends(t,e);function t(){var t=e.apply(this,arguments)||this;t._any=true;return t}t.prototype._parse=function(e){return re(e.data)};return t}(fe);je.create=function(e){return new je(__assign({typeName:pt.ZodAny},de(e)))};var Oe=function(e){__extends(t,e);function t(){var t=e.apply(this,arguments)||this;t._unknown=true;return t}t.prototype._parse=function(e){return re(e.data)};return t}(fe);Oe.create=function(e){return new Oe(__assign({typeName:pt.ZodUnknown},de(e)))};var Ee=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._getOrReturnCtx(e);X(t,{code:F.invalid_type,expected:U.never,received:t.parsedType});return te};return t}(fe);Ee.create=function(e){return new Ee(__assign({typeName:pt.ZodNever},de(e)))};var Ze=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._getType(e);if(t!==U.undefined){var n=this._getOrReturnCtx(e);X(n,{code:F.invalid_type,expected:U.void,received:n.parsedType});return te}return re(e.data)};return t}(fe);Ze.create=function(e){return new Ze(__assign({typeName:pt.ZodVoid},de(e)))};var Ne=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._processInputParams(e),n=t.ctx,r=t.status;var i=this._def;if(n.parsedType!==U.array){X(n,{code:F.invalid_type,expected:U.array,received:n.parsedType});return te}if(i.exactLength!==null){var a=n.data.length>i.exactLength.value;var s=n.data.length<i.exactLength.value;if(a||s){X(n,{code:a?F.too_big:F.too_small,minimum:s?i.exactLength.value:undefined,maximum:a?i.exactLength.value:undefined,type:"array",inclusive:true,exact:true,message:i.exactLength.message});r.dirty()}}if(i.minLength!==null){if(n.data.length<i.minLength.value){X(n,{code:F.too_small,minimum:i.minLength.value,type:"array",inclusive:true,exact:false,message:i.minLength.message});r.dirty()}}if(i.maxLength!==null){if(n.data.length>i.maxLength.value){X(n,{code:F.too_big,maximum:i.maxLength.value,type:"array",inclusive:true,exact:false,message:i.maxLength.message});r.dirty()}}if(n.common.async){return Promise.all(__spreadArray([],n.data,true).map((function(e,t){return i.type._parseAsync(new le(n,e,n.path,t))}))).then((function(e){return ee.mergeArray(r,e)}))}var o=__spreadArray([],n.data,true).map((function(e,t){return i.type._parseSync(new le(n,e,n.path,t))}));return ee.mergeArray(r,o)};Object.defineProperty(t.prototype,"element",{get:function(){return this._def.type},enumerable:false,configurable:true});t.prototype.min=function(e,n){return new t(__assign(__assign({},this._def),{minLength:{value:e,message:ue.toString(n)}}))};t.prototype.max=function(e,n){return new t(__assign(__assign({},this._def),{maxLength:{value:e,message:ue.toString(n)}}))};t.prototype.length=function(e,n){return new t(__assign(__assign({},this._def),{exactLength:{value:e,message:ue.toString(n)}}))};t.prototype.nonempty=function(e){return this.min(1,e)};return t}(fe);Ne.create=function(e,t){return new Ne(__assign({type:e,minLength:null,maxLength:null,exactLength:null,typeName:pt.ZodArray},de(t)))};function ze(e){if(e instanceof Ke){var t={};for(var n in e.shape){var r=e.shape[n];t[n]=nt.create(ze(r))}return new Ke(__assign(__assign({},e._def),{shape:function(){return t}}))}else if(e instanceof Ne){return new Ne(__assign(__assign({},e._def),{type:ze(e.element)}))}else if(e instanceof nt){return nt.create(ze(e.unwrap()))}else if(e instanceof rt){return rt.create(ze(e.unwrap()))}else if(e instanceof Fe){return Fe.create(e.items.map((function(e){return ze(e)})))}else{return e}}var Ke=function(e){__extends(t,e);function t(){var t=e.apply(this,arguments)||this;t._cached=null;t.nonstrict=t.passthrough;t.augment=t.extend;return t}t.prototype._getCached=function(){if(this._cached!==null)return this._cached;var e=this._def.shape();var t=L.objectKeys(e);return this._cached={shape:e,keys:t}};t.prototype._parse=function(e){var t=this;var n=this._getType(e);if(n!==U.object){var r=this._getOrReturnCtx(e);X(r,{code:F.invalid_type,expected:U.object,received:r.parsedType});return te}var i=this._processInputParams(e),a=i.status,s=i.ctx;var o=this._getCached(),u=o.shape,l=o.keys;var c=[];if(!(this._def.catchall instanceof Ee&&this._def.unknownKeys==="strip")){for(var d in s.data){if(!l.includes(d)){c.push(d)}}}var f=[];for(var p=0,h=l;p<h.length;p++){var d=h[p];var v=u[d];var m=s.data[d];f.push({key:{status:"valid",value:d},value:v._parse(new le(s,m,s.path,d)),alwaysSet:d in s.data})}if(this._def.catchall instanceof Ee){var _=this._def.unknownKeys;if(_==="passthrough"){for(var g=0,y=c;g<y.length;g++){var d=y[g];f.push({key:{status:"valid",value:d},value:{status:"valid",value:s.data[d]}})}}else if(_==="strict"){if(c.length>0){X(s,{code:F.unrecognized_keys,keys:c});a.dirty()}}else if(_==="strip");else{throw new Error("Internal ZodObject error: invalid unknownKeys value.")}}else{var b=this._def.catchall;for(var T=0,x=c;T<x.length;T++){var d=x[T];var m=s.data[d];f.push({key:{status:"valid",value:d},value:b._parse(new le(s,m,s.path,d)),alwaysSet:d in s.data})}}if(s.common.async){return Promise.resolve().then((function(){return __awaiter(t,void 0,void 0,(function(){var e,t,n,r,i,a,s;var o;return __generator(this,(function(u){switch(u.label){case 0:e=[];t=0,n=f;u.label=1;case 1:if(!(t<n.length))return[3,5];r=n[t];return[4,r.key];case 2:i=u.sent();s=(a=e).push;o={key:i};return[4,r.value];case 3:s.apply(a,[(o.value=u.sent(),o.alwaysSet=r.alwaysSet,o)]);u.label=4;case 4:t++;return[3,1];case 5:return[2,e]}}))}))})).then((function(e){return ee.mergeObjectSync(a,e)}))}else{return ee.mergeObjectSync(a,f)}};Object.defineProperty(t.prototype,"shape",{get:function(){return this._def.shape()},enumerable:false,configurable:true});t.prototype.strict=function(e){var n=this;return new t(__assign(__assign(__assign({},this._def),{unknownKeys:"strict"}),e!==undefined?{errorMap:function(t,r){var i,a,s,o;var u=(s=(a=(i=n._def).errorMap)===null||a===void 0?void 0:a.call(i,t,r).message)!==null&&s!==void 0?s:r.defaultError;if(t.code==="unrecognized_keys")return{message:(o=ue.errToObj(e).message)!==null&&o!==void 0?o:u};return{message:u}}}:{}))};t.prototype.strip=function(){return new t(__assign(__assign({},this._def),{unknownKeys:"strip"}))};t.prototype.passthrough=function(){return new t(__assign(__assign({},this._def),{unknownKeys:"passthrough"}))};t.prototype.extend=function(e){var n=this;return new t(__assign(__assign({},this._def),{shape:function(){return __assign(__assign({},n._def.shape()),e)}}))};t.prototype.merge=function(e){var n=this;var r=new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:function(){return __assign(__assign({},n._def.shape()),e._def.shape())},typeName:pt.ZodObject});return r};t.prototype.setKey=function(e,t){var n;return this.augment((n={},n[e]=t,n))};t.prototype.catchall=function(e){return new t(__assign(__assign({},this._def),{catchall:e}))};t.prototype.pick=function(e){var n=this;var r={};L.objectKeys(e).forEach((function(t){if(e[t]&&n.shape[t]){r[t]=n.shape[t]}}));return new t(__assign(__assign({},this._def),{shape:function(){return r}}))};t.prototype.omit=function(e){var n=this;var r={};L.objectKeys(this.shape).forEach((function(t){if(!e[t]){r[t]=n.shape[t]}}));return new t(__assign(__assign({},this._def),{shape:function(){return r}}))};t.prototype.deepPartial=function(){return ze(this)};t.prototype.partial=function(e){var n=this;var r={};L.objectKeys(this.shape).forEach((function(t){var i=n.shape[t];if(e&&!e[t]){r[t]=i}else{r[t]=i.optional()}}));return new t(__assign(__assign({},this._def),{shape:function(){return r}}))};t.prototype.required=function(e){var n=this;var r={};L.objectKeys(this.shape).forEach((function(t){if(e&&!e[t]){r[t]=n.shape[t]}else{var i=n.shape[t];var a=i;while(a instanceof nt){a=a._def.innerType}r[t]=a}}));return new t(__assign(__assign({},this._def),{shape:function(){return r}}))};t.prototype.keyof=function(){return Ye(L.objectKeys(this.shape))};return t}(fe);Ke.create=function(e,t){return new Ke(__assign({shape:function(){return e},unknownKeys:"strip",catchall:Ee.create(),typeName:pt.ZodObject},de(t)))};Ke.strictCreate=function(e,t){return new Ke(__assign({shape:function(){return e},unknownKeys:"strict",catchall:Ee.create(),typeName:pt.ZodObject},de(t)))};Ke.lazycreate=function(e,t){return new Ke(__assign({shape:e,unknownKeys:"strip",catchall:Ee.create(),typeName:pt.ZodObject},de(t)))};var Re=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t;var n=this;var r=this._processInputParams(e).ctx;var i=this._def.options;function a(e){var t;for(var n=0,i=e;n<i.length;n++){var a=i[n];if(a.result.status==="valid"){return a.result}}for(var s=0,o=e;s<o.length;s++){var a=o[s];if(a.result.status==="dirty"){(t=r.common.issues).push.apply(t,a.ctx.common.issues);return a.result}}var u=e.map((function(e){return new q(e.ctx.common.issues)}));X(r,{code:F.invalid_union,unionErrors:u});return te}if(r.common.async){return Promise.all(i.map((function(e){return __awaiter(n,void 0,void 0,(function(){var t;var n;return __generator(this,(function(i){switch(i.label){case 0:t=__assign(__assign({},r),{common:__assign(__assign({},r.common),{issues:[]}),parent:null});n={};return[4,e._parseAsync({data:r.data,path:r.path,parent:t})];case 1:return[2,(n.result=i.sent(),n.ctx=t,n)]}}))}))}))).then(a)}else{var s=undefined;var o=[];for(var u=0,l=i;u<l.length;u++){var c=l[u];var d=__assign(__assign({},r),{common:__assign(__assign({},r.common),{issues:[]}),parent:null});var f=c._parseSync({data:r.data,path:r.path,parent:d});if(f.status==="valid"){return f}else if(f.status==="dirty"&&!s){s={result:f,ctx:d}}if(d.common.issues.length){o.push(d.common.issues)}}if(s){(t=r.common.issues).push.apply(t,s.ctx.common.issues);return s.result}var p=o.map((function(e){return new q(e)}));X(r,{code:F.invalid_union,unionErrors:p});return te}};Object.defineProperty(t.prototype,"options",{get:function(){return this._def.options},enumerable:false,configurable:true});return t}(fe);Re.create=function(e,t){return new Re(__assign({options:e,typeName:pt.ZodUnion},de(t)))};var Le=function(e){if(e instanceof $e){return Le(e.schema)}else if(e instanceof tt){return Le(e.innerType())}else if(e instanceof Je){return[e.value]}else if(e instanceof Qe){return e.options}else if(e instanceof Xe){return Object.keys(e.enum)}else if(e instanceof it){return Le(e._def.innerType)}else if(e instanceof Ae){return[undefined]}else if(e instanceof Pe){return[null]}else{return null}};var De=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._processInputParams(e).ctx;if(t.parsedType!==U.object){X(t,{code:F.invalid_type,expected:U.object,received:t.parsedType});return te}var n=this.discriminator;var r=t.data[n];var i=this.optionsMap.get(r);if(!i){X(t,{code:F.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]});return te}if(t.common.async){return i._parseAsync({data:t.data,path:t.path,parent:t})}else{return i._parseSync({data:t.data,path:t.path,parent:t})}};Object.defineProperty(t.prototype,"discriminator",{get:function(){return this._def.discriminator},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"options",{get:function(){return this._def.options},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"optionsMap",{get:function(){return this._def.optionsMap},enumerable:false,configurable:true});t.create=function(e,n,r){var i=new Map;for(var a=0,s=n;a<s.length;a++){var o=s[a];var u=Le(o.shape[e]);if(!u){throw new Error("A discriminator value for key `".concat(e,"` could not be extracted from all schema options"))}for(var l=0,c=u;l<c.length;l++){var d=c[l];if(i.has(d)){throw new Error("Discriminator property ".concat(String(e)," has duplicate value ").concat(String(d)))}i.set(d,o)}}return new t(__assign({typeName:pt.ZodDiscriminatedUnion,discriminator:e,options:n,optionsMap:i},de(r)))};return t}(fe);function Ue(e,t){var n=B(e);var r=B(t);if(e===t){return{valid:true,data:e}}else if(n===U.object&&r===U.object){var i=L.objectKeys(t);var a=L.objectKeys(e).filter((function(e){return i.indexOf(e)!==-1}));var s=__assign(__assign({},e),t);for(var o=0,u=a;o<u.length;o++){var l=u[o];var c=Ue(e[l],t[l]);if(!c.valid){return{valid:false}}s[l]=c.data}return{valid:true,data:s}}else if(n===U.array&&r===U.array){if(e.length!==t.length){return{valid:false}}var d=[];for(var f=0;f<e.length;f++){var p=e[f];var h=t[f];var c=Ue(p,h);if(!c.valid){return{valid:false}}d.push(c.data)}return{valid:true,data:d}}else if(n===U.date&&r===U.date&&+e===+t){return{valid:true,data:e}}else{return{valid:false}}}var Be=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._processInputParams(e),n=t.status,r=t.ctx;var i=function(e,t){if(ie(e)||ie(t)){return te}var i=Ue(e.value,t.value);if(!i.valid){X(r,{code:F.invalid_intersection_types});return te}if(ae(e)||ae(t)){n.dirty()}return{status:n.value,value:i.data}};if(r.common.async){return Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then((function(e){var t=e[0],n=e[1];return i(t,n)}))}else{return i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}};return t}(fe);Be.create=function(e,t,n){return new Be(__assign({left:e,right:t,typeName:pt.ZodIntersection},de(n)))};var Fe=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this;var n=this._processInputParams(e),r=n.status,i=n.ctx;if(i.parsedType!==U.array){X(i,{code:F.invalid_type,expected:U.array,received:i.parsedType});return te}if(i.data.length<this._def.items.length){X(i,{code:F.too_small,minimum:this._def.items.length,inclusive:true,exact:false,type:"array"});return te}var a=this._def.rest;if(!a&&i.data.length>this._def.items.length){X(i,{code:F.too_big,maximum:this._def.items.length,inclusive:true,exact:false,type:"array"});r.dirty()}var s=__spreadArray([],i.data,true).map((function(e,n){var r=t._def.items[n]||t._def.rest;if(!r)return null;return r._parse(new le(i,e,i.path,n))})).filter((function(e){return!!e}));if(i.common.async){return Promise.all(s).then((function(e){return ee.mergeArray(r,e)}))}else{return ee.mergeArray(r,s)}};Object.defineProperty(t.prototype,"items",{get:function(){return this._def.items},enumerable:false,configurable:true});t.prototype.rest=function(e){return new t(__assign(__assign({},this._def),{rest:e}))};return t}(fe);Fe.create=function(e,t){if(!Array.isArray(e)){throw new Error("You must pass an array of schemas to z.tuple([ ... ])")}return new Fe(__assign({items:e,typeName:pt.ZodTuple,rest:null},de(t)))};var Ve=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(t.prototype,"keySchema",{get:function(){return this._def.keyType},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"valueSchema",{get:function(){return this._def.valueType},enumerable:false,configurable:true});t.prototype._parse=function(e){var t=this._processInputParams(e),n=t.status,r=t.ctx;if(r.parsedType!==U.object){X(r,{code:F.invalid_type,expected:U.object,received:r.parsedType});return te}var i=[];var a=this._def.keyType;var s=this._def.valueType;for(var o in r.data){i.push({key:a._parse(new le(r,o,r.path,o)),value:s._parse(new le(r,r.data[o],r.path,o))})}if(r.common.async){return ee.mergeObjectAsync(n,i)}else{return ee.mergeObjectSync(n,i)}};Object.defineProperty(t.prototype,"element",{get:function(){return this._def.valueType},enumerable:false,configurable:true});t.create=function(e,n,r){if(n instanceof fe){return new t(__assign({keyType:e,valueType:n,typeName:pt.ZodRecord},de(r)))}return new t(__assign({keyType:Me.create(),valueType:e,typeName:pt.ZodRecord},de(n)))};return t}(fe);var qe=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(t.prototype,"keySchema",{get:function(){return this._def.keyType},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"valueSchema",{get:function(){return this._def.valueType},enumerable:false,configurable:true});t.prototype._parse=function(e){var t=this;var n=this._processInputParams(e),r=n.status,i=n.ctx;if(i.parsedType!==U.map){X(i,{code:F.invalid_type,expected:U.map,received:i.parsedType});return te}var a=this._def.keyType;var s=this._def.valueType;var o=__spreadArray([],i.data.entries(),true).map((function(e,t){var n=e[0],r=e[1];return{key:a._parse(new le(i,n,i.path,[t,"key"])),value:s._parse(new le(i,r,i.path,[t,"value"]))}}));if(i.common.async){var u=new Map;return Promise.resolve().then((function(){return __awaiter(t,void 0,void 0,(function(){var e,t,n,i,a;return __generator(this,(function(s){switch(s.label){case 0:e=0,t=o;s.label=1;case 1:if(!(e<t.length))return[3,5];n=t[e];return[4,n.key];case 2:i=s.sent();return[4,n.value];case 3:a=s.sent();if(i.status==="aborted"||a.status==="aborted"){return[2,te]}if(i.status==="dirty"||a.status==="dirty"){r.dirty()}u.set(i.value,a.value);s.label=4;case 4:e++;return[3,1];case 5:return[2,{status:r.value,value:u}]}}))}))}))}else{var l=new Map;for(var c=0,d=o;c<d.length;c++){var f=d[c];var p=f.key;var h=f.value;if(p.status==="aborted"||h.status==="aborted"){return te}if(p.status==="dirty"||h.status==="dirty"){r.dirty()}l.set(p.value,h.value)}return{status:r.value,value:l}}};return t}(fe);qe.create=function(e,t,n){return new qe(__assign({valueType:t,keyType:e,typeName:pt.ZodMap},de(n)))};var We=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._processInputParams(e),n=t.status,r=t.ctx;if(r.parsedType!==U.set){X(r,{code:F.invalid_type,expected:U.set,received:r.parsedType});return te}var i=this._def;if(i.minSize!==null){if(r.data.size<i.minSize.value){X(r,{code:F.too_small,minimum:i.minSize.value,type:"set",inclusive:true,exact:false,message:i.minSize.message});n.dirty()}}if(i.maxSize!==null){if(r.data.size>i.maxSize.value){X(r,{code:F.too_big,maximum:i.maxSize.value,type:"set",inclusive:true,exact:false,message:i.maxSize.message});n.dirty()}}var a=this._def.valueType;function s(e){var t=new Set;for(var r=0,i=e;r<i.length;r++){var a=i[r];if(a.status==="aborted")return te;if(a.status==="dirty")n.dirty();t.add(a.value)}return{status:n.value,value:t}}var o=__spreadArray([],r.data.values(),true).map((function(e,t){return a._parse(new le(r,e,r.path,t))}));if(r.common.async){return Promise.all(o).then((function(e){return s(e)}))}else{return s(o)}};t.prototype.min=function(e,n){return new t(__assign(__assign({},this._def),{minSize:{value:e,message:ue.toString(n)}}))};t.prototype.max=function(e,n){return new t(__assign(__assign({},this._def),{maxSize:{value:e,message:ue.toString(n)}}))};t.prototype.size=function(e,t){return this.min(e,t).max(e,t)};t.prototype.nonempty=function(e){return this.min(1,e)};return t}(fe);We.create=function(e,t){return new We(__assign({valueType:e,minSize:null,maxSize:null,typeName:pt.ZodSet},de(t)))};var He=function(e){__extends(t,e);function t(){var t=e.apply(this,arguments)||this;t.validate=t.implement;return t}t.prototype._parse=function(e){var t=this._processInputParams(e).ctx;if(t.parsedType!==U.function){X(t,{code:F.invalid_type,expected:U.function,received:t.parsedType});return te}function n(e,n){return Y({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,J(),W].filter((function(e){return!!e})),issueData:{code:F.invalid_arguments,argumentsError:n}})}function r(e,n){return Y({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,J(),W].filter((function(e){return!!e})),issueData:{code:F.invalid_return_type,returnTypeError:n}})}var i={errorMap:t.common.contextualErrorMap};var a=t.data;if(this._def.returns instanceof et){var s=this;return re((function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return __awaiter(this,void 0,void 0,(function(){var t,o,u,l;return __generator(this,(function(c){switch(c.label){case 0:t=new q([]);return[4,s._def.args.parseAsync(e,i).catch((function(r){t.addIssue(n(e,r));throw t}))];case 1:o=c.sent();return[4,Reflect.apply(a,this,o)];case 2:u=c.sent();return[4,s._def.returns._def.type.parseAsync(u,i).catch((function(e){t.addIssue(r(u,e));throw t}))];case 3:l=c.sent();return[2,l]}}))}))}))}else{var o=this;return re((function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var s=o._def.args.safeParse(e,i);if(!s.success){throw new q([n(e,s.error)])}var u=Reflect.apply(a,this,s.data);var l=o._def.returns.safeParse(u,i);if(!l.success){throw new q([r(u,l.error)])}return l.data}))}};t.prototype.parameters=function(){return this._def.args};t.prototype.returnType=function(){return this._def.returns};t.prototype.args=function(){var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}return new t(__assign(__assign({},this._def),{args:Fe.create(e).rest(Oe.create())}))};t.prototype.returns=function(e){return new t(__assign(__assign({},this._def),{returns:e}))};t.prototype.implement=function(e){var t=this.parse(e);return t};t.prototype.strictImplement=function(e){var t=this.parse(e);return t};t.create=function(e,n,r){return new t(__assign({args:e?e:Fe.create([]).rest(Oe.create()),returns:n||Oe.create(),typeName:pt.ZodFunction},de(r)))};return t}(fe);var $e=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(t.prototype,"schema",{get:function(){return this._def.getter()},enumerable:false,configurable:true});t.prototype._parse=function(e){var t=this._processInputParams(e).ctx;var n=this._def.getter();return n._parse({data:t.data,path:t.path,parent:t})};return t}(fe);$e.create=function(e,t){return new $e(__assign({getter:e,typeName:pt.ZodLazy},de(t)))};var Je=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){if(e.data!==this._def.value){var t=this._getOrReturnCtx(e);X(t,{received:t.data,code:F.invalid_literal,expected:this._def.value});return te}return{status:"valid",value:e.data}};Object.defineProperty(t.prototype,"value",{get:function(){return this._def.value},enumerable:false,configurable:true});return t}(fe);Je.create=function(e,t){return new Je(__assign({value:e,typeName:pt.ZodLiteral},de(t)))};function Ye(e,t){return new Qe(__assign({values:e,typeName:pt.ZodEnum},de(t)))}var Qe=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){if(typeof e.data!=="string"){var t=this._getOrReturnCtx(e);var n=this._def.values;X(t,{expected:L.joinValues(n),received:t.parsedType,code:F.invalid_type});return te}if(this._def.values.indexOf(e.data)===-1){var t=this._getOrReturnCtx(e);var n=this._def.values;X(t,{received:t.data,code:F.invalid_enum_value,options:n});return te}return re(e.data)};Object.defineProperty(t.prototype,"options",{get:function(){return this._def.values},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"enum",{get:function(){var e={};for(var t=0,n=this._def.values;t<n.length;t++){var r=n[t];e[r]=r}return e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"Values",{get:function(){var e={};for(var t=0,n=this._def.values;t<n.length;t++){var r=n[t];e[r]=r}return e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"Enum",{get:function(){var e={};for(var t=0,n=this._def.values;t<n.length;t++){var r=n[t];e[r]=r}return e},enumerable:false,configurable:true});t.prototype.extract=function(e){return t.create(e)};t.prototype.exclude=function(e){return t.create(this.options.filter((function(t){return!e.includes(t)})))};return t}(fe);Qe.create=Ye;var Xe=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=L.getValidEnumValues(this._def.values);var n=this._getOrReturnCtx(e);if(n.parsedType!==U.string&&n.parsedType!==U.number){var r=L.objectValues(t);X(n,{expected:L.joinValues(r),received:n.parsedType,code:F.invalid_type});return te}if(t.indexOf(e.data)===-1){var r=L.objectValues(t);X(n,{received:n.data,code:F.invalid_enum_value,options:r});return te}return re(e.data)};Object.defineProperty(t.prototype,"enum",{get:function(){return this._def.values},enumerable:false,configurable:true});return t}(fe);Xe.create=function(e,t){return new Xe(__assign({values:e,typeName:pt.ZodNativeEnum},de(t)))};var et=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.unwrap=function(){return this._def.type};t.prototype._parse=function(e){var t=this;var n=this._processInputParams(e).ctx;if(n.parsedType!==U.promise&&n.common.async===false){X(n,{code:F.invalid_type,expected:U.promise,received:n.parsedType});return te}var r=n.parsedType===U.promise?n.data:Promise.resolve(n.data);return re(r.then((function(e){return t._def.type.parseAsync(e,{path:n.path,errorMap:n.common.contextualErrorMap})})))};return t}(fe);et.create=function(e,t){return new et(__assign({type:e,typeName:pt.ZodPromise},de(t)))};var tt=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.innerType=function(){return this._def.schema};t.prototype.sourceType=function(){return this._def.schema._def.typeName===pt.ZodEffects?this._def.schema.sourceType():this._def.schema};t.prototype._parse=function(e){var t=this;var n=this._processInputParams(e),r=n.status,i=n.ctx;var a=this._def.effect||null;var s={addIssue:function(e){X(i,e);if(e.fatal){r.abort()}else{r.dirty()}},get path(){return i.path}};s.addIssue=s.addIssue.bind(s);if(a.type==="preprocess"){var o=a.transform(i.data,s);if(i.common.issues.length){return{status:"dirty",value:i.data}}if(i.common.async){return Promise.resolve(o).then((function(e){return t._def.schema._parseAsync({data:e,path:i.path,parent:i})}))}else{return this._def.schema._parseSync({data:o,path:i.path,parent:i})}}if(a.type==="refinement"){var u=function(e){var t=a.refinement(e,s);if(i.common.async){return Promise.resolve(t)}if(t instanceof Promise){throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.")}return e};if(i.common.async===false){var l=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(l.status==="aborted")return te;if(l.status==="dirty")r.dirty();u(l.value);return{status:r.value,value:l.value}}else{return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then((function(e){if(e.status==="aborted")return te;if(e.status==="dirty")r.dirty();return u(e.value).then((function(){return{status:r.value,value:e.value}}))}))}}if(a.type==="transform"){if(i.common.async===false){var c=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!se(c))return c;var d=a.transform(c.value,s);if(d instanceof Promise){throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.")}return{status:r.value,value:d}}else{return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then((function(e){if(!se(e))return e;return Promise.resolve(a.transform(e.value,s)).then((function(e){return{status:r.value,value:e}}))}))}}L.assertNever(a)};return t}(fe);tt.create=function(e,t,n){return new tt(__assign({schema:e,typeName:pt.ZodEffects,effect:t},de(n)))};tt.createWithPreprocess=function(e,t,n){return new tt(__assign({schema:t,effect:{type:"preprocess",transform:e},typeName:pt.ZodEffects},de(n)))};var nt=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._getType(e);if(t===U.undefined){return re(undefined)}return this._def.innerType._parse(e)};t.prototype.unwrap=function(){return this._def.innerType};return t}(fe);nt.create=function(e,t){return new nt(__assign({innerType:e,typeName:pt.ZodOptional},de(t)))};var rt=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._getType(e);if(t===U.null){return re(null)}return this._def.innerType._parse(e)};t.prototype.unwrap=function(){return this._def.innerType};return t}(fe);rt.create=function(e,t){return new rt(__assign({innerType:e,typeName:pt.ZodNullable},de(t)))};var it=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._processInputParams(e).ctx;var n=t.data;if(t.parsedType===U.undefined){n=this._def.defaultValue()}return this._def.innerType._parse({data:n,path:t.path,parent:t})};t.prototype.removeDefault=function(){return this._def.innerType};return t}(fe);it.create=function(e,t){return new it(__assign({innerType:e,typeName:pt.ZodDefault,defaultValue:typeof t.default==="function"?t.default:function(){return t.default}},de(t)))};var at=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this;var n=this._processInputParams(e).ctx;var r=__assign(__assign({},n),{common:__assign(__assign({},n.common),{issues:[]})});var i=this._def.innerType._parse({data:r.data,path:r.path,parent:__assign({},r)});if(oe(i)){return i.then((function(e){return{status:"valid",value:e.status==="valid"?e.value:t._def.catchValue({get error(){return new q(r.common.issues)},input:r.data})}}))}else{return{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new q(r.common.issues)},input:r.data})}}};t.prototype.removeCatch=function(){return this._def.innerType};return t}(fe);at.create=function(e,t){return new at(__assign({innerType:e,typeName:pt.ZodCatch,catchValue:typeof t.catch==="function"?t.catch:function(){return t.catch}},de(t)))};var st=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._getType(e);if(t!==U.nan){var n=this._getOrReturnCtx(e);X(n,{code:F.invalid_type,expected:U.nan,received:n.parsedType});return te}return{status:"valid",value:e.data}};return t}(fe);st.create=function(e){return new st(__assign({typeName:pt.ZodNaN},de(e)))};var ot=Symbol("zod_brand");var ut=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._processInputParams(e).ctx;var n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})};t.prototype.unwrap=function(){return this._def.type};return t}(fe);var lt=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this;var n=this._processInputParams(e),r=n.status,i=n.ctx;if(i.common.async){var a=function(){return __awaiter(t,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,this._def.in._parseAsync({data:i.data,path:i.path,parent:i})];case 1:e=t.sent();if(e.status==="aborted")return[2,te];if(e.status==="dirty"){r.dirty();return[2,ne(e.value)]}else{return[2,this._def.out._parseAsync({data:e.value,path:i.path,parent:i})]}return[2]}}))}))};return a()}else{var s=this._def.in._parseSync({data:i.data,path:i.path,parent:i});if(s.status==="aborted")return te;if(s.status==="dirty"){r.dirty();return{status:"dirty",value:s.value}}else{return this._def.out._parseSync({data:s.value,path:i.path,parent:i})}}};t.create=function(e,n){return new t({in:e,out:n,typeName:pt.ZodPipeline})};return t}(fe);var ct=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._def.innerType._parse(e);if(se(t)){t.value=Object.freeze(t.value)}return t};return t}(fe);ct.create=function(e,t){return new ct(__assign({innerType:e,typeName:pt.ZodReadonly},de(t)))};var dt=function(e,t,n){if(t===void 0){t={}}if(e)return je.create().superRefine((function(r,i){var a,s;if(!e(r)){var o=typeof t==="function"?t(r):typeof t==="string"?{message:t}:t;var u=(s=(a=o.fatal)!==null&&a!==void 0?a:n)!==null&&s!==void 0?s:true;var l=typeof o==="string"?{message:o}:o;i.addIssue(__assign(__assign({code:"custom"},l),{fatal:u}))}}));return je.create()};var ft={object:Ke.lazycreate};var pt;(function(e){e["ZodString"]="ZodString";e["ZodNumber"]="ZodNumber";e["ZodNaN"]="ZodNaN";e["ZodBigInt"]="ZodBigInt";e["ZodBoolean"]="ZodBoolean";e["ZodDate"]="ZodDate";e["ZodSymbol"]="ZodSymbol";e["ZodUndefined"]="ZodUndefined";e["ZodNull"]="ZodNull";e["ZodAny"]="ZodAny";e["ZodUnknown"]="ZodUnknown";e["ZodNever"]="ZodNever";e["ZodVoid"]="ZodVoid";e["ZodArray"]="ZodArray";e["ZodObject"]="ZodObject";e["ZodUnion"]="ZodUnion";e["ZodDiscriminatedUnion"]="ZodDiscriminatedUnion";e["ZodIntersection"]="ZodIntersection";e["ZodTuple"]="ZodTuple";e["ZodRecord"]="ZodRecord";e["ZodMap"]="ZodMap";e["ZodSet"]="ZodSet";e["ZodFunction"]="ZodFunction";e["ZodLazy"]="ZodLazy";e["ZodLiteral"]="ZodLiteral";e["ZodEnum"]="ZodEnum";e["ZodEffects"]="ZodEffects";e["ZodNativeEnum"]="ZodNativeEnum";e["ZodOptional"]="ZodOptional";e["ZodNullable"]="ZodNullable";e["ZodDefault"]="ZodDefault";e["ZodCatch"]="ZodCatch";e["ZodPromise"]="ZodPromise";e["ZodBranded"]="ZodBranded";e["ZodPipeline"]="ZodPipeline";e["ZodReadonly"]="ZodReadonly"})(pt||(pt={}));var ht=function(e,t){if(t===void 0){t={message:"Input not instance of ".concat(e.name)}}return dt((function(t){return t instanceof e}),t)};var vt=Me.create;var mt=we.create;var _t=st.create;var gt=Ge.create;var yt=Ie.create;var bt=Se.create;var Tt=Ce.create;var xt=Ae.create;var Mt=Pe.create;var kt=je.create;var wt=Oe.create;var Gt=Ee.create;var It=Ze.create;var St=Ne.create;var Ct=Ke.create;var At=Ke.strictCreate;var Pt=Re.create;var jt=De.create;var Ot=Be.create;var Et=Fe.create;var Zt=Ve.create;var Nt=qe.create;var zt=We.create;var Kt=He.create;var Rt=$e.create;var Lt=Je.create;var Dt=Qe.create;var Ut=Xe.create;var Bt=et.create;var Ft=tt.create;var Vt=nt.create;var qt=rt.create;var Wt=tt.createWithPreprocess;var Ht=lt.create;var $t=function(){return vt().optional()};var Jt=function(){return mt().optional()};var Yt=function(){return yt().optional()};var Qt={string:function(e){return Me.create(__assign(__assign({},e),{coerce:true}))},number:function(e){return we.create(__assign(__assign({},e),{coerce:true}))},boolean:function(e){return Ie.create(__assign(__assign({},e),{coerce:true}))},bigint:function(e){return Ge.create(__assign(__assign({},e),{coerce:true}))},date:function(e){return Se.create(__assign(__assign({},e),{coerce:true}))}};var Xt=te;var en=Object.freeze({__proto__:null,defaultErrorMap:W,setErrorMap:$,getErrorMap:J,makeIssue:Y,EMPTY_PATH:Q,addIssueToContext:X,ParseStatus:ee,INVALID:te,DIRTY:ne,OK:re,isAborted:ie,isDirty:ae,isValid:se,isAsync:oe,get util(){return L},get objectUtil(){return D},ZodParsedType:U,getParsedType:B,ZodType:fe,ZodString:Me,ZodNumber:we,ZodBigInt:Ge,ZodBoolean:Ie,ZodDate:Se,ZodSymbol:Ce,ZodUndefined:Ae,ZodNull:Pe,ZodAny:je,ZodUnknown:Oe,ZodNever:Ee,ZodVoid:Ze,ZodArray:Ne,ZodObject:Ke,ZodUnion:Re,ZodDiscriminatedUnion:De,ZodIntersection:Be,ZodTuple:Fe,ZodRecord:Ve,ZodMap:qe,ZodSet:We,ZodFunction:He,ZodLazy:$e,ZodLiteral:Je,ZodEnum:Qe,ZodNativeEnum:Xe,ZodPromise:et,ZodEffects:tt,ZodTransformer:tt,ZodOptional:nt,ZodNullable:rt,ZodDefault:it,ZodCatch:at,ZodNaN:st,BRAND:ot,ZodBranded:ut,ZodPipeline:lt,ZodReadonly:ct,custom:dt,Schema:fe,ZodSchema:fe,late:ft,get ZodFirstPartyTypeKind(){return pt},coerce:Qt,any:kt,array:St,bigint:gt,boolean:yt,date:bt,discriminatedUnion:jt,effect:Ft,enum:Dt,function:Kt,instanceof:ht,intersection:Ot,lazy:Rt,literal:Lt,map:Nt,nan:_t,nativeEnum:Ut,never:Gt,null:Mt,nullable:qt,number:mt,object:Ct,oboolean:Yt,onumber:Jt,optional:Vt,ostring:$t,pipeline:Ht,preprocess:Wt,promise:Bt,record:Zt,set:zt,strictObject:At,string:vt,symbol:Tt,transformer:Ft,tuple:Et,undefined:xt,union:Pt,unknown:wt,void:It,NEVER:Xt,ZodIssueCode:F,quotelessJson:V,ZodError:q});var tn=[["International Date Line West","GMT-11:00","(GMT-11:00) International Date Line West"],["Midway Island","GMT-11:00","(GMT-11:00) Midway Island"],["Samoa","GMT-11:00","(GMT-11:00) Samoa"],["Hawaii","GMT-10:00","(GMT-10:00) Hawaii"],["Alaska","GMT-09:00","(GMT-09:00) Alaska"],["Pacific Time (US & Canada)","GMT-08:00","(GMT-08:00) Pacific Time (US & Canada)"],["Tijuana","GMT-08:00","(GMT-08:00) Tijuana"],["Arizona","GMT-07:00","(GMT-07:00) Arizona"],["Chihuahua","GMT-07:00","(GMT-07:00) Chihuahua"],["Mazatlan","GMT-07:00","(GMT-07:00) Mazatlan"],["Mountain Time (US & Canada)","GMT-07:00","(GMT-07:00) Mountain Time (US & Canada)"],["Central America","GMT-06:00","(GMT-06:00) Central America"],["Central Time (US & Canada)","GMT-06:00","(GMT-06:00) Central Time (US & Canada)"],["Guadalajara","GMT-06:00","(GMT-06:00) Guadalajara"],["Mexico City","GMT-06:00","(GMT-06:00) Mexico City"],["Monterrey","GMT-06:00","(GMT-06:00) Monterrey"],["Saskatchewan","GMT-06:00","(GMT-06:00) Saskatchewan"],["Bogota","GMT-05:00","(GMT-05:00) Bogota"],["Eastern Time (US & Canada)","GMT-05:00","(GMT-05:00) Eastern Time (US & Canada)"],["Indiana (East)","GMT-05:00","(GMT-05:00) Indiana (East)"],["Lima","GMT-05:00","(GMT-05:00) Lima"],["Quito","GMT-05:00","(GMT-05:00) Quito"],["Caracas","GMT-04:30","(GMT-04:30) Caracas"],["Atlantic Time (Canada)","GMT-04:00","(GMT-04:00) Atlantic Time (Canada)"],["Georgetown","GMT-04:00","(GMT-04:00) Georgetown"],["La Paz","GMT-04:00","(GMT-04:00) La Paz"],["Santiago","GMT-04:00","(GMT-04:00) Santiago"],["Newfoundland","GMT-03:30","(GMT-03:30) Newfoundland"],["Brasilia","GMT-03:00","(GMT-03:00) Brasilia"],["Buenos Aires","GMT-03:00","(GMT-03:00) Buenos Aires"],["Greenland","GMT-03:00","(GMT-03:00) Greenland"],["Mid-Atlantic","GMT-02:00","(GMT-02:00) Mid-Atlantic"],["Azores","GMT-01:00","(GMT-01:00) Azores"],["Cape Verde Is.","GMT-01:00","(GMT-01:00) Cape Verde Is."],["Casablanca","GMT+00:00","(GMT+00:00) Casablanca"],["Dublin","GMT+00:00","(GMT+00:00) Dublin"],["Edinburgh","GMT+00:00","(GMT+00:00) Edinburgh"],["Lisbon","GMT+00:00","(GMT+00:00) Lisbon"],["London","GMT+00:00","(GMT+00:00) London"],["Monrovia","GMT+00:00","(GMT+00:00) Monrovia"],["UTC","GMT+00:00","(GMT+00:00) UTC"],["Amsterdam","GMT+01:00","(GMT+01:00) Amsterdam"],["Belgrade","GMT+01:00","(GMT+01:00) Belgrade"],["Berlin","GMT+01:00","(GMT+01:00) Berlin"],["Bern","GMT+01:00","(GMT+01:00) Bern"],["Bratislava","GMT+01:00","(GMT+01:00) Bratislava"],["Brussels","GMT+01:00","(GMT+01:00) Brussels"],["Budapest","GMT+01:00","(GMT+01:00) Budapest"],["Copenhagen","GMT+01:00","(GMT+01:00) Copenhagen"],["Ljubljana","GMT+01:00","(GMT+01:00) Ljubljana"],["Madrid","GMT+01:00","(GMT+01:00) Madrid"],["Paris","GMT+01:00","(GMT+01:00) Paris"],["Prague","GMT+01:00","(GMT+01:00) Prague"],["Rome","GMT+01:00","(GMT+01:00) Rome"],["Sarajevo","GMT+01:00","(GMT+01:00) Sarajevo"],["Skopje","GMT+01:00","(GMT+01:00) Skopje"],["Stockholm","GMT+01:00","(GMT+01:00) Stockholm"],["Vienna","GMT+01:00","(GMT+01:00) Vienna"],["Warsaw","GMT+01:00","(GMT+01:00) Warsaw"],["West Central Africa","(GMT+01:00","(GMT+01:00) West Central Africa"],["Zagreb","GMT+01:00","(GMT+01:00) Zagreb"],["Athens","GMT+02:00","(GMT+02:00) Athens"],["Bucharest","GMT+02:00","(GMT+02:00) Bucharest"],["Cairo","GMT+02:00","(GMT+02:00) Cairo"],["Harare","GMT+02:00","(GMT+02:00) Harare"],["Helsinki","GMT+02:00","(GMT+02:00) Helsinki"],["Istanbul","GMT+02:00","(GMT+02:00) Istanbul"],["Jerusalem","GMT+02:00","(GMT+02:00) Jerusalem"],["Kyiv","GMT+02:00","(GMT+02:00) Kyiv"],["Minsk","GMT+02:00","(GMT+02:00) Minsk"],["Pretoria","GMT+02:00","(GMT+02:00) Pretoria"],["Riga","GMT+02:00","(GMT+02:00) Riga"],["Sofia","GMT+02:00","(GMT+02:00) Sofia"],["Tallinn","GMT+02:00","(GMT+02:00) Tallinn"],["Vilnius","GMT+02:00","(GMT+02:00) Vilnius"],["Baghdad","GMT+03:00","(GMT+03:00) Baghdad"],["Kuwait","GMT+03:00","(GMT+03:00) Kuwait"],["Moscow","GMT+03:00","(GMT+03:00) Moscow"],["Nairobi","GMT+03:00","(GMT+03:00) Nairobi"],["Riyadh","GMT+03:00","(GMT+03:00) Riyadh"],["St. Petersburg","GMT+03:00","(GMT+03:00) St. Petersburg"],["Volgograd","GMT+03:00","(GMT+03:00) Volgograd"],["Tehran","GMT+03:30","(GMT+03:30) Tehran"],["Abu Dhabi","GMT+04:00","(GMT+04:00) Abu Dhabi"],["Baku","GMT+04:00","(GMT+04:00) Baku"],["Muscat","GMT+04:00","(GMT+04:00) Muscat"],["Tbilisi","GMT+04:00","(GMT+04:00) Tbilisi"],["Yerevan","GMT+04:00","(GMT+04:00) Yerevan"],["Kabul","GMT+04:30","(GMT+04:30) Kabul"],["Ekaterinburg","GMT+05:00","(GMT+05:00) Ekaterinburg"],["Islamabad","GMT+05:00","(GMT+05:00) Islamabad"],["Karachi","GMT+05:00","(GMT+05:00) Karachi"],["Tashkent","GMT+05:00","(GMT+05:00) Tashkent"],["Chennai","GMT+05:30","(GMT+05:30) Chennai"],["Kolkata","GMT+05:30","(GMT+05:30) Kolkata"],["Mumbai","GMT+05:30","(GMT+05:30) Mumbai"],["New Delhi","GMT+05:30","(GMT+05:30) New Delhi"],["Sri Jayawardenepura","GMT+05:30","(GMT+05:30) Sri Jayawardenepura"],["Kathmandu","GMT+05:45","(GMT+05:45) Kathmandu"],["Almaty","GMT+06:00","(GMT+06:00) Almaty"],["Astana","GMT+06:00","(GMT+06:00) Astana"],["Dhaka","GMT+06:00","(GMT+06:00) Dhaka"],["Novosibirsk","GMT+06:00","(GMT+06:00) Novosibirsk"],["Rangoon","GMT+06:30","(GMT+06:30) Rangoon"],["Bangkok","GMT+07:00","(GMT+07:00) Bangkok"],["Hanoi","GMT+07:00","(GMT+07:00) Hanoi"],["Jakarta","GMT+07:00","(GMT+07:00) Jakarta"],["Krasnoyarsk","GMT+07:00","(GMT+07:00) Krasnoyarsk"],["Beijing","GMT+08:00","(GMT+08:00) Beijing"],["Chongqing","GMT+08:00","(GMT+08:00) Chongqing"],["Hong Kong","GMT+08:00","(GMT+08:00) Hong Kong"],["Irkutsk","GMT+08:00","(GMT+08:00) Irkutsk"],["Kuala Lumpur","GMT+08:00","(GMT+08:00) Kuala Lumpur"],["Perth","GMT+08:00","(GMT+08:00) Perth"],["Singapore","GMT+08:00","(GMT+08:00) Singapore"],["Taipei","GMT+08:00","(GMT+08:00) Taipei"],["Ulaan Bataar","GMT+08:00","(GMT+08:00) Ulaan Bataar"],["Urumqi","GMT+08:00","(GMT+08:00) Urumqi"],["Osaka","GMT+09:00","(GMT+09:00) Osaka"],["Sapporo","GMT+09:00","(GMT+09:00) Sapporo"],["Seoul","GMT+09:00","(GMT+09:00) Seoul"],["Tokyo","GMT+09:00","(GMT+09:00) Tokyo"],["Yakutsk","GMT+09:00","(GMT+09:00) Yakutsk"],["Adelaide","GMT+09:30","(GMT+09:30) Adelaide"],["Darwin","GMT+09:30","(GMT+09:30) Darwin"],["Brisbane","GMT+10:00","(GMT+10:00) Brisbane"],["Canberra","GMT+10:00","(GMT+10:00) Canberra"],["Guam","GMT+10:00","(GMT+10:00) Guam"],["Hobart","GMT+10:00","(GMT+10:00) Hobart"],["Melbourne","GMT+10:00","(GMT+10:00) Melbourne"],["Port Moresby","GMT+10:00","(GMT+10:00) Port Moresby"],["Sydney","GMT+10:00","(GMT+10:00) Sydney"],["Vladivostok","GMT+10:00","(GMT+10:00) Vladivostok"],["Kamchatka","GMT+11:00","(GMT+11:00) Kamchatka"],["Magadan","GMT+11:00","(GMT+11:00) Magadan"],["New Caledonia","GMT+11:00","(GMT+11:00) New Caledonia"],["Solomon Is.","GMT+11:00","(GMT+11:00) Solomon Is."],["Auckland","GMT+12:00","(GMT+12:00) Auckland"],["Fiji","GMT+12:00","(GMT+12:00) Fiji"],["Marshall Is.","GMT+12:00","(GMT+12:00) Marshall Is."],["Wellington","GMT+12:00","(GMT+12:00) Wellington"],["Nuku'alofa","GMT+13:00","(GMT+13:00) Nuku'alofa"]];var nn='verdocs-settings-organization{display:-ms-flexbox;display:flex;padding:10px;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-direction:column;flex-direction:column;font-family:"Inter", "Barlow", sans-serif}verdocs-settings-organization .columns{gap:20px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-direction:row;flex-direction:row}verdocs-settings-organization .column{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-settings-organization verdocs-text-input{margin:10px 0}verdocs-settings-organization verdocs-text-input input{height:32px}@media screen and (max-width: 600px){verdocs-settings-organization .columns{gap:0;-ms-flex-direction:column;flex-direction:column}}';var rn=tn.map((function(e){return{value:e[2],label:e[2]}}));var an=en.object({business_name:en.string().trim().max(30).optional(),contact_email:en.string().trim().email("Invalid email").optional().or(en.literal("")),phone:en.preprocess((function(e){return _(String(e).trim())}),en.string().optional()),timezone:en.string().trim().optional(),url:en.string().trim().optional()});var sn=e("verdocs_settings_organization",function(){function e(e){t(this,e);this.sdkError=n(this,"sdkError",7);this.organizationUpdated=n(this,"organizationUpdated",7);this.endpoint=a.getDefault();this.valid=false;this.dirty=false;this.submitting=false;this.name="";this.business_name="";this.contact_email="";this.phone="";this.address="";this.address2="";this.timezone="";this.url=""}e.prototype.componentWillLoad=function(){this.endpoint.loadSession();if(!this.endpoint.session){console.log("[SETTINGS] Must be authenticated");return}};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,f(this.endpoint,this.endpoint.session.organization_id)];case 1:e=t.sent();console.log("[SETTINGS] Loaded organization",e);this.resetForm(e);return[2]}}))}))};e.prototype.resetForm=function(e){this.name=e.name;this.business_name=e.business_name;this.contact_email=e.contact_email;this.phone=e.phone;this.address=e.address;this.address2=e.address2;this.timezone=e.timezone;this.url=e.url;this.dirty=false;this.valid=true};e.prototype.handleSubmit=function(e){var t=this;e.preventDefault();e.stopPropagation();p(a.getDefault(),this.endpoint.session.organization_id,{name:this.name,business_name:this.business_name,contact_email:this.contact_email,phone:this.phone,address:this.address,address2:this.address2,timezone:this.timezone,url:this.url}).then((function(e){var n;console.log("[SETTINGS] Update result",e);(n=t.organizationUpdated)===null||n===void 0?void 0:n.emit({endpoint:t.endpoint,organization:e});t.resetForm(e)})).catch((function(e){return l("Error updating organization: ".concat(e.message),{style:"error"})}))};e.prototype.processFields=function(){var e=an.safeParse({name:this.name,business_name:this.business_name,contact_email:this.contact_email,phone:this.phone,address:this.address,address2:this.address2,timezone:this.timezone,url:this.url});console.log("[SETTINGS] Validation result",e);this.valid=e.success;this.dirty=true};e.prototype.render=function(){var e=this;if(!this.endpoint.session){console.log("[SETTINGS] Must be authenticated");return r(i,{class:"authentication-required"},"Must be authenticated")}return r(i,null,r("h1",null,"Organization Profile"),r("form",{onSubmit:function(t){return e.handleSubmit(t)}},r("div",{class:"columns"},r("div",{class:"column"},r("verdocs-text-input",{id:"verdocs-organization-name",value:this.name,autocomplete:"off",label:"Name",required:false,disabled:false,placeholder:"Enter your organization's name...",onInput:function(t){return e.name=t.target.value},onFocusout:function(t){e.name=t.target.value.trim();e.processFields()}}),r("verdocs-text-input",{id:"verdocs-organization-business-name",value:this.business_name,autocomplete:"off",label:"Display Name",placeholder:"The name to display on communications...",onInput:function(t){return e.business_name=t.target.value},onFocusout:function(t){e.business_name=t.target.value.trim();e.processFields()}}),r("verdocs-text-input",{id:"verdocs-organization-url",value:this.url,autocomplete:"off",label:"Web URL",placeholder:"Enter your Web URL...",onInput:function(t){return e.url=t.target.value},onFocusout:function(t){e.url=t.target.value.trim();e.processFields()}}),r("verdocs-text-input",{id:"verdocs-organization-phone",value:this.phone,autocomplete:"off",label:"Phone Number",placeholder:"Enter your phone number...",onInput:function(t){return e.phone=t.target.value},onFocusout:function(t){e.phone=t.target.value.trim();e.processFields()}})),r("div",{class:"column"},r("verdocs-text-input",{id:"verdocs-organization-email",value:this.contact_email,clearable:true,autocomplete:"off",label:"Contact Email",placeholder:"Enter your contact email address...",onInput:function(t){return e.contact_email=t.target.value},onFocusout:function(t){e.contact_email=t.target.value.trim();e.processFields()}}),r("verdocs-select-input",{options:rn,value:this.timezone,label:"Time Zone"}))),r("verdocs-button",{type:"submit",label:"Save",size:"normal",disabled:this.submitting||!this.dirty})))};return e}());sn.style=nn;var on='verdocs-settings-profile{display:-ms-flexbox;display:flex;padding:10px;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-direction:column;flex-direction:column;font-family:"Inter", "Barlow", sans-serif}verdocs-settings-profile .columns{gap:20px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-direction:row;flex-direction:row}verdocs-settings-profile .column{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-settings-profile verdocs-text-input{margin:10px 0}verdocs-settings-profile verdocs-text-input input{height:32px}@media screen and (max-width: 600px){verdocs-settings-profile .columns{gap:0;-ms-flex-direction:column;flex-direction:column}}';var un=en.object({first_name:en.string().trim().min(1,"First name is required").max(30),last_name:en.string().trim().min(1,"Last name is required").max(30),email:en.string().trim().email("Invalid email").min(1,"Email is required"),phone:en.preprocess((function(e){return _(String(e).trim())}),en.string())});var ln=e("verdocs_settings_profile",function(){function e(e){t(this,e);this.sdkError=n(this,"sdkError",7);this.profileUpdated=n(this,"profileUpdated",7);this.endpoint=a.getDefault();this.valid=false;this.dirty=false;this.submitting=false;this.first_name="";this.last_name="";this.email="";this.phone=""}e.prototype.componentWillLoad=function(){this.endpoint.loadSession();if(!this.endpoint.session){console.log("[SETTINGS] Must be authenticated");return}};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,h(this.endpoint)];case 1:e=t.sent();console.log("[SETTINGS] Loaded profile",e);this.resetForm(e);return[2]}}))}))};e.prototype.resetForm=function(e){this.first_name=e.first_name;this.last_name=e.last_name;this.email=e.email;this.phone=e.phone;this.dirty=false;this.valid=true};e.prototype.handleSubmit=function(e){var t=this;e.preventDefault();e.stopPropagation();v(a.getDefault(),this.endpoint.session.profile_id,{first_name:this.first_name,last_name:this.last_name,phone:this.phone}).then((function(e){var n;console.log("[SETTINGS] Update result",e);(n=t.profileUpdated)===null||n===void 0?void 0:n.emit({endpoint:t.endpoint,profile:e});t.resetForm(e)})).catch((function(e){return l("Error updating profile: ".concat(e.message),{style:"error"})}))};e.prototype.processFields=function(){var e=un.safeParse({first_name:this.first_name,last_name:this.last_name,email:this.email,phone:this.phone});console.log("[SETTINGS] Validation result",e);this.valid=e.success;this.dirty=true};e.prototype.render=function(){var e=this;if(!this.endpoint.session){console.log("[SETTINGS] Must be authenticated");return r(i,{class:"authentication-required"},"Must be authenticated")}return r(i,null,r("h1",null,"My Profile"),r("form",{onSubmit:function(t){return e.handleSubmit(t)}},r("div",{class:"columns"},r("div",{class:"column"},r("verdocs-text-input",{id:"verdocs-profile-first-name",value:this.first_name,autocomplete:"off",label:"First Name",required:true,placeholder:"Enter your first name...",onInput:function(t){return e.first_name=t.target.value},onFocusout:function(t){e.first_name=t.target.value.trim();e.processFields()}}),r("verdocs-text-input",{id:"verdocs-profile-last-name",value:this.last_name,autocomplete:"off",label:"Last Name",required:true,placeholder:"Enter your last name...",onInput:function(t){return e.last_name=t.target.value},onFocusout:function(t){e.last_name=t.target.value.trim();e.processFields()}})),r("div",{class:"column"},r("verdocs-text-input",{id:"verdocs-profile-email",value:this.email,autocomplete:"off",label:"Email Address",required:true,disabled:true,placeholder:"Enter your email address...",onInput:function(t){return e.email=t.target.value},onFocusout:function(t){e.email=t.target.value.trim();e.processFields()}}),r("verdocs-text-input",{id:"verdocs-profile-phone",value:this.phone,clearable:true,autocomplete:"off",label:"Phone Number",placeholder:"Enter your phone number...",onInput:function(t){return e.phone=t.target.value},onFocusout:function(t){e.phone=t.target.value.trim();e.processFields()}}))),r("verdocs-button",{type:"submit",label:"Save",size:"normal",disabled:this.submitting||!this.dirty})))};return e}());ln.style=on}}}));