@verdocs/web-sdk 4.2.97 → 4.2.99

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 (240) hide show
  1. package/dist/cjs/{EnvelopeStore-8ff43359.js → EnvelopeStore-db69faac.js} +11 -6
  2. package/dist/cjs/{TemplateFieldStore-2ad4a148.js → TemplateFieldStore-836d8bf5.js} +0 -2
  3. package/dist/cjs/{TemplateStore-ea66895c.js → TemplateStore-d11d62c0.js} +1 -1
  4. package/dist/cjs/index-a27a7f77.js +8 -4
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/verdocs-build.cjs.entry.js +2 -2
  7. package/dist/cjs/{verdocs-button_2.cjs.entry.js → verdocs-button_3.cjs.entry.js} +55 -0
  8. package/dist/cjs/{verdocs-checkbox_5.cjs.entry.js → verdocs-checkbox_4.cjs.entry.js} +2 -56
  9. package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +1 -1
  10. package/dist/cjs/verdocs-dialog.cjs.entry.js +1 -1
  11. package/dist/cjs/verdocs-dropdown.cjs.entry.js +1 -1
  12. package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +1 -1
  13. package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +18 -106
  14. package/dist/cjs/verdocs-envelope-recipient-summary.cjs.entry.js +123 -0
  15. package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +57 -16
  16. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +6 -6
  17. package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +4 -4
  18. package/dist/cjs/verdocs-field-payment.cjs.entry.js +1 -1
  19. package/dist/cjs/verdocs-kba-dialog.cjs.entry.js +2 -4
  20. package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
  21. package/dist/cjs/verdocs-preview_9.cjs.entry.js +2 -2
  22. package/dist/cjs/verdocs-quick-functions.cjs.entry.js +1 -1
  23. package/dist/cjs/verdocs-radio-button_3.cjs.entry.js +11 -11
  24. package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
  25. package/dist/cjs/verdocs-sign.cjs.entry.js +4 -4
  26. package/dist/cjs/verdocs-status-indicator.cjs.entry.js +2 -2
  27. package/dist/cjs/verdocs-template-card.cjs.entry.js +1 -1
  28. package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +3 -3
  29. package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
  30. package/dist/cjs/verdocs-template-tags.cjs.entry.js +1 -1
  31. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  32. package/dist/collection/collection-manifest.json +1 -0
  33. package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.css +1 -0
  34. package/dist/collection/components/controls/verdocs-switch/verdocs-switch.css +61 -0
  35. package/dist/collection/components/controls/verdocs-switch/verdocs-switch.js +111 -0
  36. package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.css +3 -2
  37. package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.js +22 -4
  38. package/dist/collection/components/controls/verdocs-toggle-button/verdocs-toggle-button.js +1 -1
  39. package/dist/collection/components/controls/verdocs-toolbar-icon/verdocs-toolbar-icon.js +1 -1
  40. package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.js +1 -1
  41. package/dist/collection/components/dialogs/verdocs-initial-dialog/verdocs-initial-dialog.js +1 -1
  42. package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.css +6 -1
  43. package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.js +2 -4
  44. package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +1 -1
  45. package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +1 -1
  46. package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.js +1 -1
  47. package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +1 -1
  48. package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js +1 -1
  49. package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +3 -3
  50. package/dist/collection/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.js +1 -1
  51. package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.css +24 -7
  52. package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js +62 -18
  53. package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +6 -6
  54. package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js +2 -2
  55. package/dist/collection/components/templates/verdocs-template-card/verdocs-template-card.js +1 -1
  56. package/dist/collection/components/templates/verdocs-template-document-page/verdocs-template-document-page.js +1 -1
  57. package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +8 -8
  58. package/dist/collection/components/templates/verdocs-template-sender/verdocs-template-sender.js +1 -1
  59. package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +1 -1
  60. package/dist/collection/components/templates/verdocs-template-tags/verdocs-template-tags.js +1 -1
  61. package/dist/collection/utils/EnvelopeStore.js +10 -6
  62. package/dist/collection/utils/TemplateFieldStore.js +0 -2
  63. package/dist/components/EnvelopeStore.js +11 -7
  64. package/dist/components/TemplateFieldStore.js +0 -2
  65. package/dist/components/index.js +2 -0
  66. package/dist/components/verdocs-dialog.js +1 -1
  67. package/dist/components/verdocs-dropdown2.js +1 -1
  68. package/dist/components/verdocs-envelope-document-page2.js +1 -1
  69. package/dist/components/verdocs-envelope-recipient-summary.js +147 -1
  70. package/dist/components/verdocs-envelope-sidebar.js +85 -29
  71. package/dist/components/verdocs-envelopes-list.js +6 -6
  72. package/dist/components/verdocs-initial-dialog2.js +1 -1
  73. package/dist/components/verdocs-kba-dialog.js +2 -4
  74. package/dist/components/verdocs-ok-dialog2.js +1 -1
  75. package/dist/components/verdocs-quick-functions.js +1 -1
  76. package/dist/components/verdocs-search-tabs.js +1 -1
  77. package/dist/components/verdocs-sign.js +3 -3
  78. package/dist/components/verdocs-signature-dialog2.js +1 -1
  79. package/dist/components/verdocs-status-indicator2.js +2 -2
  80. package/dist/components/verdocs-switch.d.ts +11 -0
  81. package/dist/components/verdocs-switch.js +6 -0
  82. package/dist/components/verdocs-switch2.js +44 -0
  83. package/dist/components/verdocs-template-card.js +1 -1
  84. package/dist/components/verdocs-template-document-page2.js +1 -1
  85. package/dist/components/verdocs-template-role-properties2.js +8 -8
  86. package/dist/components/verdocs-template-sender2.js +1 -1
  87. package/dist/components/verdocs-template-star2.js +1 -1
  88. package/dist/components/verdocs-template-tags.js +1 -1
  89. package/dist/components/verdocs-text-input2.js +7 -6
  90. package/dist/components/verdocs-toggle-button2.js +1 -1
  91. package/dist/components/verdocs-toolbar-icon2.js +1 -1
  92. package/dist/components/verdocs-upload-dialog2.js +1 -1
  93. package/dist/esm/{EnvelopeStore-27e21856.js → EnvelopeStore-8b1d4755.js} +11 -7
  94. package/dist/esm/{TemplateFieldStore-4a2e5b85.js → TemplateFieldStore-68bf6acd.js} +0 -2
  95. package/dist/esm/{TemplateStore-cd995a27.js → TemplateStore-41799d0a.js} +1 -1
  96. package/dist/esm/index-a68c7262.js +8 -4
  97. package/dist/esm/loader.js +1 -1
  98. package/dist/esm/verdocs-build.entry.js +2 -2
  99. package/dist/esm/{verdocs-button_2.entry.js → verdocs-button_3.entry.js} +56 -2
  100. package/dist/esm/{verdocs-checkbox_5.entry.js → verdocs-checkbox_4.entry.js} +3 -56
  101. package/dist/esm/verdocs-contact-picker_2.entry.js +1 -1
  102. package/dist/esm/verdocs-dialog.entry.js +1 -1
  103. package/dist/esm/verdocs-dropdown.entry.js +1 -1
  104. package/dist/esm/verdocs-envelope-document-page.entry.js +1 -1
  105. package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +19 -107
  106. package/dist/{components/verdocs-envelope-recipient-summary2.js → esm/verdocs-envelope-recipient-summary.entry.js} +11 -41
  107. package/dist/esm/verdocs-envelope-sidebar.entry.js +59 -18
  108. package/dist/esm/verdocs-envelopes-list.entry.js +6 -6
  109. package/dist/esm/verdocs-field-attachment_13.entry.js +4 -4
  110. package/dist/esm/verdocs-field-payment.entry.js +1 -1
  111. package/dist/esm/verdocs-kba-dialog.entry.js +2 -4
  112. package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
  113. package/dist/esm/verdocs-preview_9.entry.js +2 -2
  114. package/dist/esm/verdocs-quick-functions.entry.js +1 -1
  115. package/dist/esm/verdocs-radio-button_3.entry.js +11 -11
  116. package/dist/esm/verdocs-search-tabs.entry.js +1 -1
  117. package/dist/esm/verdocs-sign.entry.js +4 -4
  118. package/dist/esm/verdocs-status-indicator.entry.js +2 -2
  119. package/dist/esm/verdocs-template-card.entry.js +1 -1
  120. package/dist/esm/verdocs-template-document-page_2.entry.js +3 -3
  121. package/dist/esm/verdocs-template-star.entry.js +1 -1
  122. package/dist/esm/verdocs-template-tags.entry.js +1 -1
  123. package/dist/esm/verdocs-web-sdk.js +1 -1
  124. package/dist/esm-es5/EnvelopeStore-8b1d4755.js +1 -0
  125. package/dist/esm-es5/{TemplateFieldStore-4a2e5b85.js → TemplateFieldStore-68bf6acd.js} +1 -1
  126. package/dist/esm-es5/{TemplateStore-cd995a27.js → TemplateStore-41799d0a.js} +1 -1
  127. package/dist/esm-es5/index-a68c7262.js +1 -1
  128. package/dist/esm-es5/loader.js +1 -1
  129. package/dist/esm-es5/verdocs-build.entry.js +1 -1
  130. package/dist/esm-es5/verdocs-button_3.entry.js +1 -0
  131. package/dist/esm-es5/verdocs-checkbox_4.entry.js +1 -0
  132. package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -1
  133. package/dist/esm-es5/verdocs-dialog.entry.js +1 -1
  134. package/dist/esm-es5/verdocs-dropdown.entry.js +1 -1
  135. package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
  136. package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js +1 -1
  137. package/dist/esm-es5/verdocs-envelope-recipient-summary.entry.js +1 -0
  138. package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
  139. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  140. package/dist/esm-es5/verdocs-field-attachment_13.entry.js +1 -1
  141. package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
  142. package/dist/esm-es5/verdocs-kba-dialog.entry.js +1 -1
  143. package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
  144. package/dist/esm-es5/verdocs-preview_9.entry.js +1 -1
  145. package/dist/esm-es5/verdocs-quick-functions.entry.js +1 -1
  146. package/dist/esm-es5/verdocs-radio-button_3.entry.js +1 -1
  147. package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
  148. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  149. package/dist/esm-es5/verdocs-status-indicator.entry.js +1 -1
  150. package/dist/esm-es5/verdocs-template-card.entry.js +1 -1
  151. package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
  152. package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
  153. package/dist/esm-es5/verdocs-template-tags.entry.js +1 -1
  154. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  155. package/dist/types/components/controls/verdocs-switch/verdocs-switch.d.ts +21 -0
  156. package/dist/types/components/controls/verdocs-text-input/verdocs-text-input.d.ts +2 -0
  157. package/dist/types/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.d.ts +1 -1
  158. package/dist/types/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.d.ts +7 -2
  159. package/dist/types/components.d.ts +91 -4
  160. package/dist/types/utils/EnvelopeStore.d.ts +2 -1
  161. package/dist/verdocs-web-sdk/{p-db59b650.entry.js → p-025eeafe.entry.js} +1 -1
  162. package/dist/verdocs-web-sdk/{p-1c04628f.entry.js → p-09b52821.entry.js} +1 -1
  163. package/dist/verdocs-web-sdk/{p-e5435d6f.entry.js → p-128e17f1.entry.js} +1 -1
  164. package/dist/verdocs-web-sdk/{p-2cf67caa.system.js → p-1a663adf.system.js} +1 -1
  165. package/dist/verdocs-web-sdk/{p-4372c294.js → p-1b0294d4.js} +1 -1
  166. package/dist/verdocs-web-sdk/p-1cb18a85.entry.js +1 -0
  167. package/dist/verdocs-web-sdk/{p-ecadacd2.entry.js → p-1e89f52d.entry.js} +1 -1
  168. package/dist/verdocs-web-sdk/p-267df026.system.js +1 -1
  169. package/dist/verdocs-web-sdk/{p-3dc96a64.system.entry.js → p-33f5ff73.system.entry.js} +1 -1
  170. package/dist/verdocs-web-sdk/{p-a1bff034.system.js → p-38c6897c.system.js} +1 -1
  171. package/dist/verdocs-web-sdk/{p-45be2439.entry.js → p-393489cb.entry.js} +1 -1
  172. package/dist/verdocs-web-sdk/{p-e86d6c0e.entry.js → p-405875b4.entry.js} +1 -1
  173. package/dist/verdocs-web-sdk/p-40b66b54.system.entry.js +1 -0
  174. package/dist/verdocs-web-sdk/{p-7b10ad30.system.entry.js → p-444191a8.system.entry.js} +1 -1
  175. package/dist/verdocs-web-sdk/{p-2419de34.entry.js → p-4480e944.entry.js} +1 -1
  176. package/dist/verdocs-web-sdk/{p-de1f949a.entry.js → p-4c514f4f.entry.js} +1 -1
  177. package/dist/verdocs-web-sdk/p-4dde02da.entry.js +1 -0
  178. package/dist/verdocs-web-sdk/p-52023c14.system.entry.js +1 -0
  179. package/dist/verdocs-web-sdk/{p-71783a91.system.entry.js → p-56a7b8df.system.entry.js} +1 -1
  180. package/dist/verdocs-web-sdk/{p-cf2ed386.system.entry.js → p-5a8672ab.system.entry.js} +1 -1
  181. package/dist/verdocs-web-sdk/{p-be2431ed.system.entry.js → p-64d648c1.system.entry.js} +1 -1
  182. package/dist/verdocs-web-sdk/{p-bbdc81d5.system.entry.js → p-669771a1.system.entry.js} +1 -1
  183. package/dist/verdocs-web-sdk/{p-594187ce.system.entry.js → p-68545704.system.entry.js} +1 -1
  184. package/dist/verdocs-web-sdk/{p-4efb0a48.system.entry.js → p-75e02f38.system.entry.js} +1 -1
  185. package/dist/verdocs-web-sdk/{p-281ce405.system.entry.js → p-77f25be6.system.entry.js} +1 -1
  186. package/dist/verdocs-web-sdk/p-784ac100.js +1 -0
  187. package/dist/verdocs-web-sdk/p-7da5f9e6.entry.js +1 -0
  188. package/dist/verdocs-web-sdk/p-809e1a1f.system.entry.js +1 -0
  189. package/dist/verdocs-web-sdk/{p-3b05c5b6.entry.js → p-8395d4f2.entry.js} +1 -1
  190. package/dist/verdocs-web-sdk/p-84a8d8c5.system.entry.js +1 -0
  191. package/dist/verdocs-web-sdk/{p-e826be1f.system.entry.js → p-86482c5e.system.entry.js} +1 -1
  192. package/dist/verdocs-web-sdk/{p-94852d77.entry.js → p-88c3a2b9.entry.js} +1 -1
  193. package/dist/verdocs-web-sdk/{p-a5b56406.system.entry.js → p-9790720c.system.entry.js} +1 -1
  194. package/dist/verdocs-web-sdk/p-985363b3.system.entry.js +1 -0
  195. package/dist/verdocs-web-sdk/{p-1dd6db40.system.entry.js → p-a75f7b16.system.entry.js} +1 -1
  196. package/dist/verdocs-web-sdk/p-af9f6863.entry.js +1 -0
  197. package/dist/verdocs-web-sdk/{p-473cf485.entry.js → p-b8938237.entry.js} +1 -1
  198. package/dist/verdocs-web-sdk/p-ba857346.system.js +1 -0
  199. package/dist/verdocs-web-sdk/{p-65596be9.entry.js → p-bde2073e.entry.js} +1 -1
  200. package/dist/verdocs-web-sdk/{p-b7a0a567.entry.js → p-c2e15dd9.entry.js} +1 -1
  201. package/dist/verdocs-web-sdk/p-c392509e.js +1 -0
  202. package/dist/verdocs-web-sdk/{p-1ff3c951.system.entry.js → p-c5dad8bb.system.entry.js} +1 -1
  203. package/dist/verdocs-web-sdk/{p-b7bccf83.entry.js → p-c8196df5.entry.js} +1 -1
  204. package/dist/verdocs-web-sdk/p-cca9858f.entry.js +1 -0
  205. package/dist/verdocs-web-sdk/p-ce8420d1.entry.js +1 -0
  206. package/dist/verdocs-web-sdk/{p-fed8d8f2.entry.js → p-d5f7caa2.entry.js} +1 -1
  207. package/dist/verdocs-web-sdk/p-d6577207.entry.js +1 -0
  208. package/dist/verdocs-web-sdk/p-e544d694.system.entry.js +1 -0
  209. package/dist/verdocs-web-sdk/p-eb602f8f.system.entry.js +1 -0
  210. package/dist/verdocs-web-sdk/{p-87357bff.entry.js → p-ed38f9b4.entry.js} +1 -1
  211. package/dist/verdocs-web-sdk/{p-cc4f4682.entry.js → p-edcc7110.entry.js} +1 -1
  212. package/dist/verdocs-web-sdk/{p-15f82220.system.entry.js → p-ef0061be.system.entry.js} +1 -1
  213. package/dist/verdocs-web-sdk/{p-9ad111fc.entry.js → p-f0dd04a1.entry.js} +1 -1
  214. package/dist/verdocs-web-sdk/p-fcedcc72.system.entry.js +1 -0
  215. package/dist/verdocs-web-sdk/{p-6178e8b2.system.entry.js → p-fd2224bb.system.entry.js} +1 -1
  216. package/dist/verdocs-web-sdk/{p-5fb5ef82.system.entry.js → p-fe672057.system.entry.js} +1 -1
  217. package/dist/verdocs-web-sdk/{p-14fb80a8.system.entry.js → p-ff9fc188.system.entry.js} +1 -1
  218. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  219. package/package.json +2 -2
  220. package/dist/collection/components/controls/verdocs-toggle/grid.svg +0 -1
  221. package/dist/collection/components/controls/verdocs-toggle/list.svg +0 -1
  222. package/dist/esm-es5/EnvelopeStore-27e21856.js +0 -1
  223. package/dist/esm-es5/verdocs-button_2.entry.js +0 -1
  224. package/dist/esm-es5/verdocs-checkbox_5.entry.js +0 -1
  225. package/dist/verdocs-web-sdk/p-01199d7a.entry.js +0 -1
  226. package/dist/verdocs-web-sdk/p-143f1bdf.system.entry.js +0 -1
  227. package/dist/verdocs-web-sdk/p-1500a477.entry.js +0 -1
  228. package/dist/verdocs-web-sdk/p-18188ae5.system.entry.js +0 -1
  229. package/dist/verdocs-web-sdk/p-2cfcd218.entry.js +0 -1
  230. package/dist/verdocs-web-sdk/p-380541d9.entry.js +0 -1
  231. package/dist/verdocs-web-sdk/p-8302dcf5.system.entry.js +0 -1
  232. package/dist/verdocs-web-sdk/p-9b3bebba.system.entry.js +0 -1
  233. package/dist/verdocs-web-sdk/p-a87190ad.entry.js +0 -1
  234. package/dist/verdocs-web-sdk/p-ae084df7.system.entry.js +0 -1
  235. package/dist/verdocs-web-sdk/p-b426caa8.system.entry.js +0 -1
  236. package/dist/verdocs-web-sdk/p-ba2d11a0.entry.js +0 -1
  237. package/dist/verdocs-web-sdk/p-d3b5c957.system.js +0 -1
  238. package/dist/verdocs-web-sdk/p-d754b3d1.system.entry.js +0 -1
  239. package/dist/verdocs-web-sdk/p-ed199c97.js +0 -1
  240. package/dist/verdocs-web-sdk/p-ff64786a.js +0 -1
@@ -1,5 +1,6 @@
1
- import { r as registerInstance, h, H as Host } from './index-a68c7262.js';
1
+ import { r as registerInstance, h, H as Host, c as createEvent, g as getElement } from './index-a68c7262.js';
2
2
  import { c as createPopper } from './popper-0fbeff6d.js';
3
+ import { V as VerdocsToast } from './Toast-c4843828.js';
3
4
 
4
5
  const verdocsButtonCss = "@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-button button{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;text-transform:uppercase;-ms-flex-pack:center;justify-content:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;font-weight:700;cursor:pointer;margin:0}verdocs-button button:disabled{cursor:inherit;pointer-events:none}verdocs-button button .icon{margin:0 12px}verdocs-button button .icon svg{fill:#ffffff;display:block}verdocs-button button .button-label{padding:0 12px}verdocs-button button.small{height:34px;font-size:13px}verdocs-button button.small .icon{margin:0 4px}verdocs-button button.small .icon svg{margin:2px 0 0 0;height:20px}verdocs-button button.small .button-label{padding:0 4px}verdocs-button button.normal{height:44px;font-size:14px}verdocs-button button.normal .icon.start{margin:0 4px 0 8px}verdocs-button button.normal .icon.end{margin:0 8px 0 4px}verdocs-button button.normal .icon svg{margin:2px 0 0 0;height:22px}verdocs-button button.normal .button-label{padding:0 10px}verdocs-button button.medium{height:52px;font-size:16px}verdocs-button button.medium .icon.start{margin:0 0 0 18px}verdocs-button button.medium .icon.end{margin:0 18px 0 0}verdocs-button button.medium .icon svg{margin:2px 0 0 0;height:26px}verdocs-button button.medium .button-label{padding:0 20px}verdocs-button button.large{height:60px;font-size:20px}verdocs-button button.large .icon.start{margin:0 0 0 24px}verdocs-button button.large .icon.end{margin:0 24px 0 0}verdocs-button button.large .icon svg{margin:2px 0 0 0;height:32px}verdocs-button button.large .button-label{padding:0 34px}verdocs-button button.standard{background:#55bc81;border-radius:4px;outline:none;border:none;color:white}verdocs-button button.standard:disabled{background-color:#999999;cursor:default}verdocs-button button.standard:active:not([disabled]){-webkit-filter:brightness(110%);filter:brightness(110%)}verdocs-button button.text{color:#4c56cb;background:transparent;font-weight:500;padding:0 4px;outline:none;border:none}verdocs-button button.text:disabled{color:#999999}verdocs-button button.text:active:not([disabled]){-webkit-filter:brightness(130%);filter:brightness(130%)}verdocs-button button.text .icon svg{fill:#4c56cb}verdocs-button button.outline{border:1px solid #4c56cb;color:#4c56cb;outline:none;background:transparent;border-radius:4px;padding:0 20px}verdocs-button button.outline:disabled{color:#999999;border:1px solid #999999}verdocs-button button.outline:active{background:#4c56cb;color:white}verdocs-button button.outline .icon svg{fill:#4c56cb}";
5
6
  const VerdocsButtonStyle0 = verdocsButtonCss;
@@ -59,4 +60,57 @@ const VerdocsHelpIcon = class {
59
60
  };
60
61
  VerdocsHelpIcon.style = VerdocsHelpIconStyle0;
61
62
 
62
- export { VerdocsButton as verdocs_button, VerdocsHelpIcon as verdocs_help_icon };
63
+ const verdocsTextInputCss = "@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-text-input{font-family:\"Inter\", \"Barlow\", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 0 10px 0;display:block}verdocs-text-input .input-element{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:16px;height:28px;padding:4px 12px;outline:none}verdocs-text-input .input-element:disabled{cursor:not-allowed;background:#aeb4bf;border:1px solid #33364b}verdocs-text-input .input-element::-webkit-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-moz-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:focus{outline:1px solid #7d88ff}verdocs-text-input .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0}verdocs-text-input .required{color:red;margin-left:2px;display:inline-block}verdocs-text-input [data-lastpass-icon-root]{display:none !important}verdocs-text-input .input-container{position:relative}verdocs-text-input .clear{top:7px;right:5px;width:18px;height:18px;fill:#cccccc;position:absolute}verdocs-text-input .clear:hover{fill:#720101;cursor:pointer}verdocs-text-input .copy{top:7px;right:5px;width:18px;height:18px;fill:#cccccc;position:absolute}verdocs-text-input .copy:hover{fill:#654dcb;cursor:pointer}verdocs-text-input .toggle-pw{top:5px;right:7px;width:18px;height:18px;stroke:#cccccc;position:absolute}verdocs-text-input .toggle-pw:hover{fill:#654dcb;cursor:pointer}verdocs-text-input.clearable .input-element,verdocs-text-input.copyable .input-element{padding-right:32px}";
64
+ const VerdocsTextInputStyle0 = verdocsTextInputCss;
65
+
66
+ const ClearIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.881 122.88"><g><path fill-rule="evenodd" clip-rule="evenodd" d="M61.44,0c33.933,0,61.441,27.507,61.441,61.439 c0,33.933-27.508,61.44-61.441,61.44C27.508,122.88,0,95.372,0,61.439C0,27.507,27.508,0,61.44,0L61.44,0z M81.719,36.226 c1.363-1.363,3.572-1.363,4.936,0c1.363,1.363,1.363,3.573,0,4.936L66.375,61.439l20.279,20.278c1.363,1.363,1.363,3.573,0,4.937 c-1.363,1.362-3.572,1.362-4.936,0L61.44,66.376L41.162,86.654c-1.362,1.362-3.573,1.362-4.936,0c-1.363-1.363-1.363-3.573,0-4.937 l20.278-20.278L36.226,41.162c-1.363-1.363-1.363-3.573,0-4.936c1.363-1.363,3.573-1.363,4.936,0L61.44,56.504L81.719,36.226 L81.719,36.226z"/></g></svg>`;
67
+ const CopyIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M15.988 3.012A2.25 2.25 0 0118 5.25v6.5A2.25 2.25 0 0115.75 14H13.5V7A2.5 2.5 0 0011 4.5H8.128a2.252 2.252 0 011.884-1.488A2.25 2.25 0 0112.25 1h1.5a2.25 2.25 0 012.238 2.012zM11.5 3.25a.75.75 0 01.75-.75h1.5a.75.75 0 01.75.75v.25h-3v-.25z" clip-rule="evenodd" /><path fill-rule="evenodd" d="M2 7a1 1 0 011-1h8a1 1 0 011 1v10a1 1 0 01-1 1H3a1 1 0 01-1-1V7zm2 3.25a.75.75 0 01.75-.75h4.5a.75.75 0 010 1.5h-4.5a.75.75 0 01-.75-.75zm0 3.5a.75.75 0 01.75-.75h4.5a.75.75 0 010 1.5h-4.5a.75.75 0 01-.75-.75z" clip-rule="evenodd" /></svg>`;
68
+ const EyeIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z" /><path stroke-linecap="round" stroke-linejoin="round" d="M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z" /></svg>`;
69
+ const EyeSlashIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88" /></svg>`;
70
+ const VerdocsTextInput = class {
71
+ constructor(hostRef) {
72
+ registerInstance(this, hostRef);
73
+ this.blur = createEvent(this, "blur", 7);
74
+ this.value = '';
75
+ this.label = '';
76
+ this.placeholder = '';
77
+ this.autocomplete = '';
78
+ this.helpText = '';
79
+ this.clearable = false;
80
+ this.copyable = false;
81
+ this.type = 'text';
82
+ this.disabled = false;
83
+ this.required = false;
84
+ this.showingPw = false;
85
+ }
86
+ copyToClipboard() {
87
+ this.inputEl.select();
88
+ navigator.clipboard
89
+ .writeText(this.value)
90
+ .then(() => VerdocsToast('Copied!'))
91
+ .catch(e => console.log('Error copying to clipboard', e));
92
+ }
93
+ render() {
94
+ return (h(Host, { key: '6d4b7c85dd7698f795f11e1bb235406fdedd8a96', class: `input-field ${this.clearable ? 'clearable' : ''} ${this.copyable ? 'copyable' : ''}` }, h("label", { key: '48e3419a7c9187444a1fdcfad1cea862a6945ee3' }, this.label && (h("div", { key: 'ebf6b58a21bafab4fbe411b5f0f3cb5bb29157f8', class: "input-label" }, this.label + ':', this.required && h("span", { key: '84b895a4fc3686991a0966a3442fc87c610628d6', class: "required" }, "*"))), h("div", { key: '86887c310beeb76920c574d268fa9508d0d331b4', class: "input-container" }, h("input", { key: '14c9e36708fb955fd6b3bf5cac37aae2b64f820b', type: this.type === 'password' && this.showingPw ? 'text' : this.type, value: this.value, required: this.required, class: "input-element", "data-lpignore": "true", disabled: this.disabled, placeholder: this.placeholder, autoComplete: this.autocomplete, onBlur: (e) => { var _a; return (_a = this.blur) === null || _a === void 0 ? void 0 : _a.emit(e.target.value); }, ref: el => (this.inputEl = el), onInput: (e) => (this.value = e.target.value) }), this.clearable && this.value && (h("span", { key: '333a08eaf763d01d603cb8750b4328d9d2e6f97e', innerHTML: ClearIcon, class: "clear", onClick: () => {
95
+ // We need to allow the onInput event to fire first in case
96
+ // the user was focused on this field before clicking clear.
97
+ setTimeout(() => {
98
+ var _a;
99
+ this.value = '';
100
+ (_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.setAttribute('value', '');
101
+ // We need to allow the value to "settle"
102
+ setTimeout(() => {
103
+ var _a, _b;
104
+ (_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.dispatchEvent(new window.Event('focusout'));
105
+ (_b = this.inputEl) === null || _b === void 0 ? void 0 : _b.blur();
106
+ }, 50);
107
+ }, 50);
108
+ } })), this.type === 'password' && (h("span", { key: 'b62dc779e128bb5f541884cae7f27f53baf4c62a', innerHTML: this.showingPw ? EyeIcon : EyeSlashIcon, class: "toggle-pw", onClick: () => {
109
+ this.showingPw = !this.showingPw;
110
+ } })), !this.clearable && this.copyable && this.value && h("span", { key: 'acd2baea4821146254849942ebba6f2f1af5511d', innerHTML: CopyIcon, class: "copy", onClick: () => this.copyToClipboard() })), this.helpText && h("verdocs-help-icon", { key: '1c3e7b58bd3c62770b88d585bc52149780016dd5', text: this.helpText }))));
111
+ }
112
+ get hostEl() { return getElement(this); }
113
+ };
114
+ VerdocsTextInput.style = VerdocsTextInputStyle0;
115
+
116
+ export { VerdocsButton as verdocs_button, VerdocsHelpIcon as verdocs_help_icon, VerdocsTextInput as verdocs_text_input };
@@ -1,10 +1,9 @@
1
1
  import { r as registerInstance, h, H as Host, c as createEvent, g as getElement } from './index-a68c7262.js';
2
2
  import { VerdocsEndpoint, updateField, deleteField } from '@verdocs/js-sdk';
3
- import { g as getTemplateFieldStore, u as updateStoreField } from './TemplateFieldStore-4a2e5b85.js';
3
+ import { g as getTemplateFieldStore, u as updateStoreField } from './TemplateFieldStore-68bf6acd.js';
4
4
  import { g as getTemplateRoleStore } from './TemplateRoleStore-6d1bec83.js';
5
- import { g as getTemplateStore } from './TemplateStore-cd995a27.js';
5
+ import { g as getTemplateStore } from './TemplateStore-41799d0a.js';
6
6
  import { S as SDKError } from './errors-887f1e88.js';
7
- import { V as VerdocsToast } from './Toast-c4843828.js';
8
7
  import './index-a971a584.js';
9
8
  import './index-7588a071.js';
10
9
 
@@ -253,56 +252,4 @@ const VerdocsTemplateFieldProperties = class {
253
252
  };
254
253
  VerdocsTemplateFieldProperties.style = VerdocsTemplateFieldPropertiesStyle0;
255
254
 
256
- const verdocsTextInputCss = "@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-text-input{font-family:\"Inter\", \"Barlow\", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 0 10px 0;display:block}verdocs-text-input .input-element{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:16px;height:28px;padding:4px 12px;outline:none}verdocs-text-input .input-element:disabled{border:1px solid #aeb4bf;background:#f5f5fa}verdocs-text-input .input-element::-webkit-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-moz-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:focus{outline:1px solid #7d88ff}verdocs-text-input .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0}verdocs-text-input .required{color:red;margin-left:2px;display:inline-block}verdocs-text-input [data-lastpass-icon-root]{display:none !important}verdocs-text-input .input-container{position:relative}verdocs-text-input .clear{top:7px;right:5px;width:18px;height:18px;fill:#cccccc;position:absolute}verdocs-text-input .clear:hover{fill:#720101;cursor:pointer}verdocs-text-input .copy{top:7px;right:5px;width:18px;height:18px;fill:#cccccc;position:absolute}verdocs-text-input .copy:hover{fill:#654dcb;cursor:pointer}verdocs-text-input .toggle-pw{top:5px;right:7px;width:18px;height:18px;stroke:#cccccc;position:absolute}verdocs-text-input .toggle-pw:hover{fill:#654dcb;cursor:pointer}verdocs-text-input.clearable .input-element,verdocs-text-input.copyable .input-element{padding-right:32px}";
257
- const VerdocsTextInputStyle0 = verdocsTextInputCss;
258
-
259
- const ClearIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.881 122.88"><g><path fill-rule="evenodd" clip-rule="evenodd" d="M61.44,0c33.933,0,61.441,27.507,61.441,61.439 c0,33.933-27.508,61.44-61.441,61.44C27.508,122.88,0,95.372,0,61.439C0,27.507,27.508,0,61.44,0L61.44,0z M81.719,36.226 c1.363-1.363,3.572-1.363,4.936,0c1.363,1.363,1.363,3.573,0,4.936L66.375,61.439l20.279,20.278c1.363,1.363,1.363,3.573,0,4.937 c-1.363,1.362-3.572,1.362-4.936,0L61.44,66.376L41.162,86.654c-1.362,1.362-3.573,1.362-4.936,0c-1.363-1.363-1.363-3.573,0-4.937 l20.278-20.278L36.226,41.162c-1.363-1.363-1.363-3.573,0-4.936c1.363-1.363,3.573-1.363,4.936,0L61.44,56.504L81.719,36.226 L81.719,36.226z"/></g></svg>`;
260
- const CopyIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M15.988 3.012A2.25 2.25 0 0118 5.25v6.5A2.25 2.25 0 0115.75 14H13.5V7A2.5 2.5 0 0011 4.5H8.128a2.252 2.252 0 011.884-1.488A2.25 2.25 0 0112.25 1h1.5a2.25 2.25 0 012.238 2.012zM11.5 3.25a.75.75 0 01.75-.75h1.5a.75.75 0 01.75.75v.25h-3v-.25z" clip-rule="evenodd" /><path fill-rule="evenodd" d="M2 7a1 1 0 011-1h8a1 1 0 011 1v10a1 1 0 01-1 1H3a1 1 0 01-1-1V7zm2 3.25a.75.75 0 01.75-.75h4.5a.75.75 0 010 1.5h-4.5a.75.75 0 01-.75-.75zm0 3.5a.75.75 0 01.75-.75h4.5a.75.75 0 010 1.5h-4.5a.75.75 0 01-.75-.75z" clip-rule="evenodd" /></svg>`;
261
- const EyeIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z" /><path stroke-linecap="round" stroke-linejoin="round" d="M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z" /></svg>`;
262
- const EyeSlashIcon = `<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88" /></svg>`;
263
- const VerdocsTextInput = class {
264
- constructor(hostRef) {
265
- registerInstance(this, hostRef);
266
- this.value = '';
267
- this.label = '';
268
- this.placeholder = '';
269
- this.autocomplete = '';
270
- this.helpText = '';
271
- this.clearable = false;
272
- this.copyable = false;
273
- this.type = 'text';
274
- this.disabled = false;
275
- this.required = false;
276
- this.showingPw = false;
277
- }
278
- copyToClipboard() {
279
- this.inputEl.select();
280
- navigator.clipboard
281
- .writeText(this.value)
282
- .then(() => VerdocsToast('Copied!'))
283
- .catch(e => console.log('Error copying to clipboard', e));
284
- }
285
- render() {
286
- return (h(Host, { key: '60bd27aafb8597a65b2cc433a560ae1bd2b404ad', class: `input-field ${this.clearable ? 'clearable' : ''} ${this.copyable ? 'copyable' : ''}` }, h("label", { key: 'd35b3912a2fd3d27ba1f1a454bbd0cf02710d7c2' }, this.label && (h("div", { key: '24b9dbbc47a32d2db4b1cb1a0fbfcec6e10698f6', class: "input-label" }, this.label + ':', this.required && h("span", { key: '1c2ef6df80053e6eaf9c6f6b23391b329ace0b60', class: "required" }, "*"))), h("div", { key: '563ac56ff97fad6be30eefaacc0e654e11763db6', class: "input-container" }, h("input", { key: '50d21decaff04b0bb823f33ab71eacdcc0ef1906', type: this.type === 'password' && this.showingPw ? 'text' : this.type, value: this.value, required: this.required, class: "input-element", "data-lpignore": "true", disabled: this.disabled, placeholder: this.placeholder, autoComplete: this.autocomplete, ref: el => (this.inputEl = el), onInput: (e) => (this.value = e.target.value) }), this.clearable && this.value && (h("span", { key: '0d0e907d677492b54ff244f2f36389d474b13cda', innerHTML: ClearIcon, class: "clear", onClick: () => {
287
- // We need to allow the onInput event to fire first in case
288
- // the user was focused on this field before clicking clear.
289
- setTimeout(() => {
290
- var _a;
291
- this.value = '';
292
- (_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.setAttribute('value', '');
293
- // We need to allow the value to "settle"
294
- setTimeout(() => {
295
- var _a, _b;
296
- (_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.dispatchEvent(new Event('focusout'));
297
- (_b = this.inputEl) === null || _b === void 0 ? void 0 : _b.blur();
298
- }, 50);
299
- }, 50);
300
- } })), this.type === 'password' && (h("span", { key: '68df05b7d43320a87f4ede3115b20cf19b409f9e', innerHTML: this.showingPw ? EyeIcon : EyeSlashIcon, class: "toggle-pw", onClick: () => {
301
- this.showingPw = !this.showingPw;
302
- } })), !this.clearable && this.copyable && this.value && h("span", { key: 'f41ecf64b8fce70f74c6f938955b839a32252259', innerHTML: CopyIcon, class: "copy", onClick: () => this.copyToClipboard() })), this.helpText && h("verdocs-help-icon", { key: 'f8d399ed6c21bcc27e04330f6437f160e733218a', text: this.helpText }))));
303
- }
304
- get hostEl() { return getElement(this); }
305
- };
306
- VerdocsTextInput.style = VerdocsTextInputStyle0;
307
-
308
- export { VerdocsCheckbox as verdocs_checkbox, VerdocsComponentError as verdocs_component_error, VerdocsSelectInput as verdocs_select_input, VerdocsTemplateFieldProperties as verdocs_template_field_properties, VerdocsTextInput as verdocs_text_input };
255
+ export { VerdocsCheckbox as verdocs_checkbox, VerdocsComponentError as verdocs_component_error, VerdocsSelectInput as verdocs_select_input, VerdocsTemplateFieldProperties as verdocs_template_field_properties };
@@ -156,7 +156,7 @@ const VerdocsToggleButton = class {
156
156
  (_a = this.toggle) === null || _a === void 0 ? void 0 : _a.emit({ active: newState });
157
157
  }
158
158
  render() {
159
- return (h(Host, { key: '172f6a0d3eec15a7b97ed055125defe6d7e69fcb', class: `size-${this.size}` }, this.icon ? (h("button", { innerHTML: this.icon, class: { active: this._active }, onClick: e => this.handleToggle(e) })) : (h("button", { class: { active: this._active }, onClick: e => this.handleToggle(e) }, this.label))));
159
+ return (h(Host, { key: '95a678bbbbc6d63aff1239b6fb296e98e093ceb8', class: `size-${this.size}` }, this.icon ? (h("button", { innerHTML: this.icon, class: { active: this._active }, onClick: e => this.handleToggle(e) })) : (h("button", { class: { active: this._active }, onClick: e => this.handleToggle(e) }, this.label))));
160
160
  }
161
161
  };
162
162
  VerdocsToggleButton.style = VerdocsToggleButtonStyle0;
@@ -17,7 +17,7 @@ const VerdocsDialog = class {
17
17
  }
18
18
  }
19
19
  render() {
20
- return (h(Host, { key: '6248990033ba71022795432afa8679841450431e' }, h("div", { key: 'bdea70156c5d1776977bf7947e326ed118367f82', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: '5c8cec9a24b0a892aeb2325a87a6d238ad211992', class: "dialog" }, h("slot", { key: '001678f28acc1ca78772dfa2d2f9cb56c6e1074d', name: "title" }, h("div", { key: 'b5c86535f40180659a6e21b31193c6d0cdd0c706', class: "heading" }, "Please Confirm")), h("div", { key: 'e6c8eddfe1c541d34ac2380f78564bc80b736564', class: "content" }, h("slot", { key: '6d22d23df835be6339b7629a21fe3a3a802eb9b9' }))))));
20
+ return (h(Host, { key: '81c8ede6508a1ce80ce002b0b94b91604e7a2e73' }, h("div", { key: '2e05c3999a88c0d6e16615953054a4658c6f25d7', class: "background-overlay", onClick: e => this.handleDismiss(e) }, h("div", { key: '45e7c3d08b5a2cf830a06a0a938c3e43febb79ca', class: "dialog" }, h("slot", { key: '6c4c0e21c52a0a272df32976288734d09183251a', name: "title" }, h("div", { key: 'd3f30f469242351f95d2e20d58adf4e0ff86881e', class: "heading" }, "Please Confirm")), h("div", { key: '4800a431f9c5b5d65da612fd753533fd8469e9e5', class: "content" }, h("slot", { key: '40dcf76ccc8b799262aaba30435ae2692af53cb7' }))))));
21
21
  }
22
22
  };
23
23
  VerdocsDialog.style = VerdocsDialogStyle0;
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-a68c7262.js';
2
2
 
3
- const verdocsDropdownCss = "@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-dropdown{display:block;position:relative;font-family:\"Inter\", \"Barlow\", sans-serif}verdocs-dropdown .arrow{width:32px;height:26px;background:#fff;cursor:pointer;border-radius:4px;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;border:1px solid #cccccc;-ms-flex-pack:center;justify-content:center}verdocs-dropdown .arrow svg{fill:#55bc81;-webkit-transition:0.3s;transition:0.3s}verdocs-dropdown.open .arrow{background:#4c56cb;border:1px solid #707ae5}verdocs-dropdown.open .arrow svg{-webkit-transform:scaleY(-1);transform:scaleY(-1);fill:#fff}#verdocs-dropdown-menu-items{width:200px;z-index:10000;position:absolute;border-radius:5px;background:#33354c;border:1px solid #654dcb}.verdocs-dropdown-menu-separator{height:1px;margin-top:5px;padding-top:5px;border-top:1px solid rgba(255, 255, 255, 0.3725490196)}.verdocs-dropdown-menu-option{width:100%;color:#fff;border:none;display:block;text-align:left;background:none;padding:10px 20px}.verdocs-dropdown-menu-option:hover{cursor:pointer;background:#55bc81}.verdocs-dropdown-menu-option[disabled]{color:#aaaaaa}.verdocs-dropdown-menu-option[disabled]:hover{cursor:inherit;background:transparent;color:#aaaaaa}";
3
+ const verdocsDropdownCss = "@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-dropdown{height:26px;display:block;position:relative;font-family:\"Inter\", \"Barlow\", sans-serif}verdocs-dropdown .arrow{width:32px;height:26px;background:#fff;cursor:pointer;border-radius:4px;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;border:1px solid #cccccc;-ms-flex-pack:center;justify-content:center}verdocs-dropdown .arrow svg{fill:#55bc81;-webkit-transition:0.3s;transition:0.3s}verdocs-dropdown.open .arrow{background:#4c56cb;border:1px solid #707ae5}verdocs-dropdown.open .arrow svg{-webkit-transform:scaleY(-1);transform:scaleY(-1);fill:#fff}#verdocs-dropdown-menu-items{width:200px;z-index:10000;position:absolute;border-radius:5px;background:#33354c;border:1px solid #654dcb}.verdocs-dropdown-menu-separator{height:1px;margin-top:5px;padding-top:5px;border-top:1px solid rgba(255, 255, 255, 0.3725490196)}.verdocs-dropdown-menu-option{width:100%;color:#fff;border:none;display:block;text-align:left;background:none;padding:10px 20px}.verdocs-dropdown-menu-option:hover{cursor:pointer;background:#55bc81}.verdocs-dropdown-menu-option[disabled]{color:#aaaaaa}.verdocs-dropdown-menu-option[disabled]:hover{cursor:inherit;background:transparent;color:#aaaaaa}";
4
4
  const VerdocsDropdownStyle0 = verdocsDropdownCss;
5
5
 
6
6
  const MENU_ID = 'verdocs-dropdown-menu-items';
@@ -78,7 +78,7 @@ const VerdocsEnvelopeDocumentPage = class {
78
78
  }
79
79
  render() {
80
80
  const height = `${this.renderedHeight}px`;
81
- return (h(Host, { key: 'fb5e7873cb34621236cee2d6b08c36187f5e2687', id: `${this.containerId}`, style: { height, flex: `0 0 ${height}` } }, this.layers.map(layer => layer.type === 'div' ? (h("div", { class: "verdocs-envelope-document-page-layer", id: `${this.containerId}-${layer.name}`, style: { height } })) : this.pageDisplayUri ? (h("img", { class: "verdocs-envelope-document-page-layer img", id: `${this.containerId}-${layer.name}`, src: this.pageDisplayUri, alt: `Page ${this.pageNumber}`, "aria-hidden": true, loading: "lazy", onLoad: (e) => {
81
+ return (h(Host, { key: 'c047ed0efbc74b5981dbb631999f33af262559f7', id: `${this.containerId}`, style: { height, flex: `0 0 ${height}` } }, this.layers.map(layer => layer.type === 'div' ? (h("div", { class: "verdocs-envelope-document-page-layer", id: `${this.containerId}-${layer.name}`, style: { height } })) : this.pageDisplayUri ? (h("img", { class: "verdocs-envelope-document-page-layer img", id: `${this.containerId}-${layer.name}`, src: this.pageDisplayUri, alt: `Page ${this.pageNumber}`, "aria-hidden": true, loading: "lazy", onLoad: (e) => {
82
82
  // Note that all we really care about is the aspect ratio. We track the natural Width and Height but they aren't really that
83
83
  // useful as individual values. The image will already have been scaled down to fit a DIV for display (100%, auto height).
84
84
  // Builder places fields offset into the rendered display area, not the original document's dimensions. So its X/Y values
@@ -1,10 +1,10 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-a68c7262.js';
2
- import { VerdocsEndpoint, getInPersonLink, formatFullName, getRecipientsWithActions, recipientCanAct } from '@verdocs/js-sdk';
3
- import { g as getEnvelopeStore } from './EnvelopeStore-27e21856.js';
2
+ import { VerdocsEndpoint, getInPersonLink, formatFullName } from '@verdocs/js-sdk';
3
+ import { g as getEnvelopeStore } from './EnvelopeStore-8b1d4755.js';
4
4
  import { V as VerdocsToast } from './Toast-c4843828.js';
5
5
  import { S as SDKError } from './errors-887f1e88.js';
6
- import './index-a971a584.js';
7
6
  import './index-7588a071.js';
7
+ import './index-a971a584.js';
8
8
 
9
9
  const verdocsEnvelopeRecipientLinkCss = "@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-envelope-recipient-link{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:100000;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-family:\"Inter\", \"Barlow\", sans-serif;background-color:rgba(0, 0, 0, 0.4980392157)}verdocs-envelope-recipient-link .summary-content{width:600px;display:-ms-flexbox;display:flex;max-width:90%;font-size:18px;-ms-flex:0 0 600px;flex:0 0 600px;border-radius:6px;background:#ffffff;-ms-flex-direction:column;flex-direction:column;padding:30px 20px 20px}verdocs-envelope-recipient-link .summary-content .summary-title{font-size:20px;font-weight:700;margin:0 0 10px 0;color:#33364b}verdocs-envelope-recipient-link .summary-recipient{display:-ms-flexbox;display:flex;color:#33364b;margin:8px 0 24px 0;-ms-flex-direction:column;flex-direction:column}verdocs-envelope-recipient-link .summary-recipient .role-name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;font-size:14px;font-weight:600;margin:0 0 8px 0;color:#092c4c}verdocs-envelope-recipient-link .summary-recipient .role-info{gap:5px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:end;align-items:flex-end}verdocs-envelope-recipient-link .summary-recipient .role-full-name{-ms-flex:1;flex:1;height:34px;display:-ms-flexbox;display:flex;font-size:16px;padding:0 12px;border-radius:4px;-ms-flex-align:center;align-items:center;border:1px solid #cccccc;background:rgb(249, 250, 251)}verdocs-envelope-recipient-link .summary-recipient .recipient-link{width:120px;padding:0 16px;font-weight:500;margin:0 0 0 8px;text-align:center;font-size:0.875rem;border-radius:100%;color:rgb(55, 65, 81);line-height:1.25rem;background-color:#d8d8d8;border:2px solid rgb(156, 163, 175)}verdocs-envelope-recipient-link .summary-recipient .link-wrapper{gap:5px;display:-ms-flexbox;display:flex;margin:4px 0 0 0;-ms-flex-direction:row;flex-direction:row}verdocs-envelope-recipient-link .summary-recipient .link-wrapper .link{-ms-flex:1;flex:1;height:34px;display:-ms-flexbox;display:flex;font-size:16px;padding:0 12px;overflow:hidden;margin:0 6px 0 0;border-radius:4px;white-space:nowrap;-ms-flex-align:center;align-items:center;text-overflow:ellipsis;border:1px solid #cccccc;background:rgb(249, 250, 251)}verdocs-envelope-recipient-link .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;margin:10px 0 0 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-envelope-recipient-link .buttons verdocs-button{-ms-flex:0 0 120px;flex:0 0 120px;margin-left:10px;white-space:nowrap}verdocs-envelope-recipient-link .buttons verdocs-button button{width:100%}";
10
10
  const VerdocsEnvelopeRecipientLinkStyle0 = verdocsEnvelopeRecipientLinkCss;
@@ -90,115 +90,27 @@ const VerdocsEnvelopeRecipientLink = class {
90
90
  };
91
91
  VerdocsEnvelopeRecipientLink.style = VerdocsEnvelopeRecipientLinkStyle0;
92
92
 
93
- const verdocsEnvelopeRecipientSummaryCss = "@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-envelope-recipient-summary{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:100000;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-family:\"Inter\", \"Barlow\", sans-serif;background-color:rgba(0, 0, 0, 0.4980392157)}verdocs-envelope-recipient-summary .summary-content{width:600px;display:-ms-flexbox;display:flex;max-width:90%;font-size:18px;-ms-flex:0 0 600px;flex:0 0 600px;border-radius:6px;background:#ffffff;-ms-flex-direction:column;flex-direction:column;padding:30px 20px 20px}verdocs-envelope-recipient-summary .summary-content .summary-title{font-size:20px;font-weight:700;margin:0 0 10px 0;color:#33364b}verdocs-envelope-recipient-summary .summary-recipient{display:-ms-flexbox;display:flex;color:#33364b;margin:8px 0 24px 0;-ms-flex-direction:column;flex-direction:column}verdocs-envelope-recipient-summary .summary-recipient .role-name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;font-size:14px;font-weight:600;margin:0 0 8px 0;color:#092c4c}verdocs-envelope-recipient-summary .summary-recipient .role-info{gap:5px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:end;align-items:flex-end}verdocs-envelope-recipient-summary .summary-recipient .role-full-name{-ms-flex:1;flex:1;height:34px;display:-ms-flexbox;display:flex;font-size:16px;padding:0 12px;border-radius:4px;-ms-flex-align:center;align-items:center;border:1px solid #cccccc;background:rgb(249, 250, 251)}verdocs-envelope-recipient-summary .summary-recipient .recipient-link{width:120px;padding:0 16px;font-weight:500;margin:0 0 0 8px;text-align:center;font-size:0.875rem;border-radius:100%;color:rgb(55, 65, 81);line-height:1.25rem;background-color:#d8d8d8;border:2px solid rgb(156, 163, 175)}verdocs-envelope-recipient-summary .summary-recipient .link-wrapper{gap:5px;display:-ms-flexbox;display:flex;margin:4px 0 0 0;-ms-flex-direction:row;flex-direction:row}verdocs-envelope-recipient-summary .summary-recipient .link-wrapper .link{-ms-flex:1;flex:1;height:34px;display:-ms-flexbox;display:flex;font-size:16px;padding:0 12px;overflow:hidden;border-radius:4px;-ms-flex-align:center;align-items:center;white-space:nowrap;text-overflow:ellipsis;border:1px solid #cccccc;background:rgb(249, 250, 251)}verdocs-envelope-recipient-summary .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;margin:10px 0 0 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-envelope-recipient-summary .buttons verdocs-button{-ms-flex:0 0 120px;flex:0 0 120px;margin-left:10px;white-space:nowrap}verdocs-envelope-recipient-summary .buttons verdocs-button button{width:100%}";
94
- const VerdocsEnvelopeRecipientSummaryStyle0 = verdocsEnvelopeRecipientSummaryCss;
93
+ const verdocsSwitchCss = "@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-switch{font-family:\"Inter\", \"Barlow\", sans-serif}verdocs-switch .switch{display:-ms-inline-flexbox;display:inline-flex;height:24px;width:44px;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;cursor:pointer;border-radius:12px;border:transparent;-webkit-transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms}verdocs-switch .switch.primary[data-state=checked]{background:#55bc81}verdocs-switch .switch.primary[data-state=unchecked]{background:#e3e3e3}verdocs-switch .switch.secondary[data-state=checked]{background:#4c56cb}verdocs-switch .switch.secondary[data-state=unchecked]{background:#e3e3e3}verdocs-switch .slider{display:block;width:20px;height:20px;border-radius:20px;background:#ffffff;-webkit-box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);-webkit-transition-property:-webkit-transform;transition-property:-webkit-transform;transition-property:transform;transition-property:transform, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms}verdocs-switch .slider[data-state=checked]{-webkit-transform:translateX(16px);transform:translateX(16px)}verdocs-switch .slider[data-state=unchecked]{-webkit-transform:translateX(-4px);transform:translateX(-4px)}verdocs-switch .switch.disabled.primary,verdocs-switch .switch.disabled.secondary{cursor:not-allowed;background:#666666}";
94
+ const VerdocsSwitchStyle0 = verdocsSwitchCss;
95
95
 
96
- const VerdocsEnvelopeRecipientSummary = class {
96
+ const VerdocsSwitch = class {
97
97
  constructor(hostRef) {
98
98
  registerInstance(this, hostRef);
99
- this.another = createEvent(this, "another", 7);
100
- this.view = createEvent(this, "view", 7);
101
- this.next = createEvent(this, "next", 7);
102
- this.sdkError = createEvent(this, "sdkError", 7);
103
- this.store = null;
104
- this.endpoint = VerdocsEndpoint.getDefault();
105
- this.envelopeId = '';
106
- this.canSendAnother = true;
107
- this.canView = true;
108
- this.canDone = true;
109
- this.isOpen = undefined;
110
- this.loading = true;
111
- this.recipientStatusIcons = [];
112
- this.containerId = `verdocs-status-indicator-${Math.random().toString(36).substring(2, 11)}`;
113
- this.gettingLinks = {};
114
- this.links = {};
115
- }
116
- async componentWillLoad() {
117
- var _a, _b, _c;
118
- try {
119
- this.endpoint.loadSession();
120
- if (!this.envelopeId) {
121
- console.log(`[RECIPIENTS] Missing required envelope ID ${this.envelopeId}`);
122
- return;
123
- }
124
- if (!this.endpoint.session) {
125
- console.log('[RECIPIENTS] Unable to start session, must be authenticated');
126
- return;
127
- }
128
- this.store = await getEnvelopeStore(this.endpoint, this.envelopeId, true);
129
- this.sortEnvelopeRecipients();
130
- this.loading = false;
131
- }
132
- catch (e) {
133
- console.log('[RECIPIENTS] Error loading envelope', e);
134
- (_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(new SDKError(e.message, (_b = e.response) === null || _b === void 0 ? void 0 : _b.status, (_c = e.response) === null || _c === void 0 ? void 0 : _c.data));
135
- }
136
- }
137
- sortEnvelopeRecipients() {
138
- var _a, _b;
139
- (_b = (_a = this.store) === null || _a === void 0 ? void 0 : _a.state) === null || _b === void 0 ? void 0 : _b.recipients.sort((a, b) => {
140
- return a.sequence === b.sequence ? a.order - b.order : a.sequence - b.sequence;
141
- });
142
- }
143
- handleAnother(e) {
144
- var _a;
145
- e.preventDefault();
146
- (_a = this.another) === null || _a === void 0 ? void 0 : _a.emit({ envelope: this.store.state });
147
- }
148
- handleView(e) {
149
- var _a;
150
- e.preventDefault();
151
- (_a = this.view) === null || _a === void 0 ? void 0 : _a.emit({ envelope: this.store.state });
152
- }
153
- handleDone(e) {
154
- var _a;
155
- e.preventDefault();
156
- (_a = this.next) === null || _a === void 0 ? void 0 : _a.emit({ envelope: this.store.state });
157
- }
158
- copyLink(link) {
159
- navigator.clipboard
160
- .writeText(link)
161
- .then(() => {
162
- // VerdocsToast('Link copied to clipboard!', {style: 'success', duration: 3000});
163
- })
164
- .catch(e => {
165
- var _a;
166
- console.warn('[RECIPIENTS] Error copying to clipboard', e);
167
- (_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(e);
168
- // VerdocsToast(`Unable to copy to clipboard: ${e.message}`, {style: 'error'});
169
- });
170
- }
171
- getLink(recipient) {
172
- this.gettingLinks = { ...this.gettingLinks, [recipient.role_name]: true };
173
- getInPersonLink(this.endpoint, recipient.envelope_id, recipient.role_name)
174
- .then(response => {
175
- this.gettingLinks = { ...this.gettingLinks, [recipient.role_name]: false };
176
- this.links = { ...this.links, [recipient.role_name]: response.link };
177
- this.copyLink(response.link);
178
- })
179
- .catch(e => {
180
- var _a;
181
- this.gettingLinks = { ...this.gettingLinks, [recipient.role_name]: false };
182
- console.log('[RECIPIENTS] Error getting link', e);
183
- (_a = this.sdkError) === null || _a === void 0 ? void 0 : _a.emit(e);
184
- // VerdocsToast('Unable to get link: ' + e.message, {style: 'error'});
185
- });
99
+ this.checkedChange = createEvent(this, "checkedChange", 7);
100
+ this.checked = false;
101
+ this.style = 'primary';
102
+ this.disabled = false;
186
103
  }
187
104
  render() {
188
- var _a, _b;
189
- if (this.loading) {
190
- return h(Host, null);
191
- }
192
- return (h(Host, null, h("div", { class: "summary-content" }, h("h1", { class: "summary-title" }, "Recipient Summary"), h("div", { class: "summary-rows" }, (((_b = (_a = this.store) === null || _a === void 0 ? void 0 : _a.state) === null || _b === void 0 ? void 0 : _b.recipients) || []).map(recipient => {
193
- const recipientsWithActions = getRecipientsWithActions(this.store.state);
194
- const showLinkButton = recipientCanAct(recipient, recipientsWithActions);
195
- const link = this.links[recipient.role_name];
196
- const gettingLink = this.gettingLinks[recipient.role_name];
197
- const fullName = formatFullName(recipient);
198
- return (h("div", { class: "summary-recipient" }, h("div", { class: "role-name" }, recipient.role_name), h("div", { class: "role-details" }, h("div", { class: "role-info" }, h("div", { class: "role-full-name" }, fullName, " (", recipient.email || recipient.phone, ")"), showLinkButton && !link && h("verdocs-button", { size: "small", variant: "outline", label: "Get Link", disabled: gettingLink, onClick: () => this.getLink(recipient) })), link && (h("div", { class: "link-wrapper" }, h("div", { class: "link" }, link), h("verdocs-button", { size: "small", variant: "outline", label: "Copy", onClick: () => this.copyLink(link) }))))));
199
- })), (this.canSendAnother || this.canView || this.canDone) && (h("div", { class: "buttons" }, this.canSendAnother && h("verdocs-button", { size: "small", label: "Send Another", onClick: e => this.handleAnother(e) }), this.canView && h("verdocs-button", { size: "small", label: "View Now", onClick: e => this.handleView(e) }), this.canDone && h("verdocs-button", { size: "small", label: "Done", onClick: e => this.handleDone(e) }))))));
105
+ return (h("button", { key: '8869138a0f6398a5d1257a10a375c2a18a0a137c', value: "on", type: "button", role: "switch", class: `switch ${this.style} ${this.disabled ? 'disabled' : ''}`, "data-state": this.checked ? 'checked' : 'unchecked', "aria-checked": this.checked ? 'checked' : 'unchecked', onClick: () => {
106
+ var _a;
107
+ if (!this.disabled) {
108
+ this.checked = !this.checked;
109
+ (_a = this.checkedChange) === null || _a === void 0 ? void 0 : _a.emit(this.checked);
110
+ }
111
+ } }, h("span", { key: 'cb3cf22d7d1f10a6bc996960fe68bbfe0065c68c', "data-state": this.checked ? 'checked' : 'unchecked', class: "slider" })));
200
112
  }
201
113
  };
202
- VerdocsEnvelopeRecipientSummary.style = VerdocsEnvelopeRecipientSummaryStyle0;
114
+ VerdocsSwitch.style = VerdocsSwitchStyle0;
203
115
 
204
- export { VerdocsEnvelopeRecipientLink as verdocs_envelope_recipient_link, VerdocsEnvelopeRecipientSummary as verdocs_envelope_recipient_summary };
116
+ export { VerdocsEnvelopeRecipientLink as verdocs_envelope_recipient_link, VerdocsSwitch as verdocs_switch };
@@ -1,16 +1,16 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-a68c7262.js';
2
2
  import { VerdocsEndpoint, getInPersonLink, getRecipientsWithActions, recipientCanAct, formatFullName } from '@verdocs/js-sdk';
3
- import { g as getEnvelopeStore } from './EnvelopeStore.js';
4
- import { S as SDKError } from './errors.js';
5
- import { d as defineCustomElement$1 } from './verdocs-button2.js';
3
+ import { g as getEnvelopeStore } from './EnvelopeStore-8b1d4755.js';
4
+ import { S as SDKError } from './errors-887f1e88.js';
5
+ import './index-7588a071.js';
6
+ import './index-a971a584.js';
6
7
 
7
8
  const verdocsEnvelopeRecipientSummaryCss = "@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-envelope-recipient-summary{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:100000;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;font-family:\"Inter\", \"Barlow\", sans-serif;background-color:rgba(0, 0, 0, 0.4980392157)}verdocs-envelope-recipient-summary .summary-content{width:600px;display:-ms-flexbox;display:flex;max-width:90%;font-size:18px;-ms-flex:0 0 600px;flex:0 0 600px;border-radius:6px;background:#ffffff;-ms-flex-direction:column;flex-direction:column;padding:30px 20px 20px}verdocs-envelope-recipient-summary .summary-content .summary-title{font-size:20px;font-weight:700;margin:0 0 10px 0;color:#33364b}verdocs-envelope-recipient-summary .summary-recipient{display:-ms-flexbox;display:flex;color:#33364b;margin:8px 0 24px 0;-ms-flex-direction:column;flex-direction:column}verdocs-envelope-recipient-summary .summary-recipient .role-name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;font-size:14px;font-weight:600;margin:0 0 8px 0;color:#092c4c}verdocs-envelope-recipient-summary .summary-recipient .role-info{gap:5px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:end;align-items:flex-end}verdocs-envelope-recipient-summary .summary-recipient .role-full-name{-ms-flex:1;flex:1;height:34px;display:-ms-flexbox;display:flex;font-size:16px;padding:0 12px;border-radius:4px;-ms-flex-align:center;align-items:center;border:1px solid #cccccc;background:rgb(249, 250, 251)}verdocs-envelope-recipient-summary .summary-recipient .recipient-link{width:120px;padding:0 16px;font-weight:500;margin:0 0 0 8px;text-align:center;font-size:0.875rem;border-radius:100%;color:rgb(55, 65, 81);line-height:1.25rem;background-color:#d8d8d8;border:2px solid rgb(156, 163, 175)}verdocs-envelope-recipient-summary .summary-recipient .link-wrapper{gap:5px;display:-ms-flexbox;display:flex;margin:4px 0 0 0;-ms-flex-direction:row;flex-direction:row}verdocs-envelope-recipient-summary .summary-recipient .link-wrapper .link{-ms-flex:1;flex:1;height:34px;display:-ms-flexbox;display:flex;font-size:16px;padding:0 12px;overflow:hidden;border-radius:4px;-ms-flex-align:center;align-items:center;white-space:nowrap;text-overflow:ellipsis;border:1px solid #cccccc;background:rgb(249, 250, 251)}verdocs-envelope-recipient-summary .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;margin:10px 0 0 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-envelope-recipient-summary .buttons verdocs-button{-ms-flex:0 0 120px;flex:0 0 120px;margin-left:10px;white-space:nowrap}verdocs-envelope-recipient-summary .buttons verdocs-button button{width:100%}";
8
9
  const VerdocsEnvelopeRecipientSummaryStyle0 = verdocsEnvelopeRecipientSummaryCss;
9
10
 
10
- const VerdocsEnvelopeRecipientSummary = /*@__PURE__*/ proxyCustomElement(class VerdocsEnvelopeRecipientSummary extends HTMLElement {
11
- constructor() {
12
- super();
13
- this.__registerHost();
11
+ const VerdocsEnvelopeRecipientSummary = class {
12
+ constructor(hostRef) {
13
+ registerInstance(this, hostRef);
14
14
  this.another = createEvent(this, "another", 7);
15
15
  this.view = createEvent(this, "view", 7);
16
16
  this.next = createEvent(this, "next", 7);
@@ -113,37 +113,7 @@ const VerdocsEnvelopeRecipientSummary = /*@__PURE__*/ proxyCustomElement(class V
113
113
  return (h("div", { class: "summary-recipient" }, h("div", { class: "role-name" }, recipient.role_name), h("div", { class: "role-details" }, h("div", { class: "role-info" }, h("div", { class: "role-full-name" }, fullName, " (", recipient.email || recipient.phone, ")"), showLinkButton && !link && h("verdocs-button", { size: "small", variant: "outline", label: "Get Link", disabled: gettingLink, onClick: () => this.getLink(recipient) })), link && (h("div", { class: "link-wrapper" }, h("div", { class: "link" }, link), h("verdocs-button", { size: "small", variant: "outline", label: "Copy", onClick: () => this.copyLink(link) }))))));
114
114
  })), (this.canSendAnother || this.canView || this.canDone) && (h("div", { class: "buttons" }, this.canSendAnother && h("verdocs-button", { size: "small", label: "Send Another", onClick: e => this.handleAnother(e) }), this.canView && h("verdocs-button", { size: "small", label: "View Now", onClick: e => this.handleView(e) }), this.canDone && h("verdocs-button", { size: "small", label: "Done", onClick: e => this.handleDone(e) }))))));
115
115
  }
116
- static get style() { return VerdocsEnvelopeRecipientSummaryStyle0; }
117
- }, [0, "verdocs-envelope-recipient-summary", {
118
- "endpoint": [16],
119
- "envelopeId": [1, "envelope-id"],
120
- "canSendAnother": [4, "can-send-another"],
121
- "canView": [4, "can-view"],
122
- "canDone": [4, "can-done"],
123
- "isOpen": [32],
124
- "loading": [32],
125
- "recipientStatusIcons": [32],
126
- "containerId": [32],
127
- "gettingLinks": [32],
128
- "links": [32]
129
- }]);
130
- function defineCustomElement() {
131
- if (typeof customElements === "undefined") {
132
- return;
133
- }
134
- const components = ["verdocs-envelope-recipient-summary", "verdocs-button"];
135
- components.forEach(tagName => { switch (tagName) {
136
- case "verdocs-envelope-recipient-summary":
137
- if (!customElements.get(tagName)) {
138
- customElements.define(tagName, VerdocsEnvelopeRecipientSummary);
139
- }
140
- break;
141
- case "verdocs-button":
142
- if (!customElements.get(tagName)) {
143
- defineCustomElement$1();
144
- }
145
- break;
146
- } });
147
- }
116
+ };
117
+ VerdocsEnvelopeRecipientSummary.style = VerdocsEnvelopeRecipientSummaryStyle0;
148
118
 
149
- export { VerdocsEnvelopeRecipientSummary as V, defineCustomElement as d };
119
+ export { VerdocsEnvelopeRecipientSummary as verdocs_envelope_recipient_summary };