legalesign-document-viewer 0.10.2 → 0.10.4

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 (508) hide show
  1. package/dist/cjs/defaultFieldIcons-ByvDN5ag.js +26 -0
  2. package/dist/cjs/defaultFieldIcons-ByvDN5ag.js.map +1 -0
  3. package/dist/cjs/defaultPalette-Dt4FmPno.js +222 -0
  4. package/dist/cjs/defaultPalette-Dt4FmPno.js.map +1 -0
  5. package/dist/cjs/editorUtils-f8cxkqvC.js +447 -0
  6. package/dist/cjs/editorUtils-f8cxkqvC.js.map +1 -0
  7. package/dist/cjs/fieldDefaults-BbJ3qf1E.js +27 -0
  8. package/dist/cjs/fieldDefaults-BbJ3qf1E.js.map +1 -0
  9. package/dist/cjs/{i18n-BElI-ESH.js → i18n-B8sub13B.js} +7 -5
  10. package/dist/cjs/{i18n-BElI-ESH.js.map → i18n-B8sub13B.js.map} +1 -1
  11. package/dist/cjs/{index-CmGbWor3.js → index-DFeU0FNc.js} +2 -5
  12. package/dist/cjs/index-DFeU0FNc.js.map +1 -0
  13. package/dist/cjs/loader.cjs.js +2 -2
  14. package/dist/cjs/ls-add-new-button_20.cjs.entry.js +1035 -0
  15. package/dist/cjs/ls-badge.cjs.entry.js +1 -1
  16. package/dist/cjs/ls-banner.cjs.entry.js +1 -1
  17. package/dist/cjs/ls-button.cjs.entry.js +49 -0
  18. package/dist/cjs/ls-card.cjs.entry.js +1 -1
  19. package/dist/cjs/ls-checkbox-input_5.cjs.entry.js +1 -1
  20. package/dist/cjs/ls-compose-loader_6.cjs.entry.js +381 -0
  21. package/dist/cjs/ls-compose-manager.cjs.entry.js +4 -4
  22. package/dist/cjs/ls-details-section.cjs.entry.js +1 -1
  23. package/dist/cjs/ls-document-viewer.cjs.entry.js +31138 -0
  24. package/dist/cjs/ls-document-viewer.cjs.js +2 -2
  25. package/dist/cjs/ls-dropdown-item.cjs.entry.js +1 -1
  26. package/dist/cjs/ls-dropdown.cjs.entry.js +1 -1
  27. package/dist/cjs/ls-editor-field_11.cjs.entry.js +909 -0
  28. package/dist/cjs/ls-field-alignment_3.cjs.entry.js +315 -0
  29. package/dist/cjs/ls-field-format_2.cjs.entry.js +218 -0
  30. package/dist/cjs/ls-field-properties-dropdown.cjs.entry.js +2 -2
  31. package/dist/cjs/ls-formfield.cjs.entry.js +1 -1
  32. package/dist/cjs/ls-header-bar.cjs.entry.js +1 -1
  33. package/dist/cjs/ls-helper-bar_2.cjs.entry.js +37 -0
  34. package/dist/cjs/ls-icon-button.cjs.entry.js +1 -1
  35. package/dist/cjs/ls-icon-check-button.cjs.entry.js +1 -1
  36. package/dist/cjs/ls-icon.cjs.entry.js +11211 -0
  37. package/dist/cjs/ls-label.cjs.entry.js +1 -1
  38. package/dist/cjs/ls-list-card-button.cjs.entry.js +1 -1
  39. package/dist/cjs/ls-loading_2.cjs.entry.js +37 -0
  40. package/dist/cjs/ls-navbar.cjs.entry.js +1 -1
  41. package/dist/cjs/ls-notification.cjs.entry.js +1 -1
  42. package/dist/cjs/ls-radio-group.cjs.entry.js +1 -1
  43. package/dist/cjs/ls-radio-input.cjs.entry.js +1 -1
  44. package/dist/cjs/ls-tabs.cjs.entry.js +1 -1
  45. package/dist/cjs/ls-tag.cjs.entry.js +1 -1
  46. package/dist/cjs/ls-text.cjs.entry.js +1 -1
  47. package/dist/cjs/ls-timeline-step.cjs.entry.js +1 -1
  48. package/dist/cjs/ls-timeline.cjs.entry.js +1 -1
  49. package/dist/cjs/ls-title-input.cjs.entry.js +2 -2
  50. package/dist/cjs/ls-toolbox-field.cjs.entry.js +96 -0
  51. package/dist/cjs/ls-tooltip.cjs.entry.js +247 -0
  52. package/dist/cjs/mouseHandlers-D3r6xq7p.js +975 -0
  53. package/dist/cjs/mouseHandlers-D3r6xq7p.js.map +1 -0
  54. package/dist/cjs/test-item.cjs.entry.js +1 -1
  55. package/dist/collection/components/ls-compose-loader/ls-compose-loader.js +1 -1
  56. package/dist/collection/components/ls-compose-manager/ls-compose-manager.js +2 -2
  57. package/dist/collection/components/ls-document-viewer/adapter/elementActions.js +1 -1
  58. package/dist/collection/components/ls-document-viewer/adapter/elementActions.js.map +1 -1
  59. package/dist/collection/components/ls-document-viewer/editorCalculator.js +1 -1
  60. package/dist/collection/components/ls-document-viewer/editorCalculator.js.map +1 -1
  61. package/dist/collection/components/ls-document-viewer/ls-document-viewer.css +6 -0
  62. package/dist/collection/components/ls-document-viewer/ls-document-viewer.js +53 -23
  63. package/dist/collection/components/ls-document-viewer/ls-document-viewer.js.map +1 -1
  64. package/dist/collection/components/ls-document-viewer/mouseHandlers.js +218 -78
  65. package/dist/collection/components/ls-document-viewer/mouseHandlers.js.map +1 -1
  66. package/dist/collection/components/ls-document-viewer/snapHelper.js +57 -16
  67. package/dist/collection/components/ls-document-viewer/snapHelper.js.map +1 -1
  68. package/dist/collection/components/ls-document-viewer/validator.js +6 -2
  69. package/dist/collection/components/ls-document-viewer/validator.js.map +1 -1
  70. package/dist/collection/components/ls-editor-field/ls-editor-field.js +6 -6
  71. package/dist/collection/components/ls-editor-field/ls-editor-field.js.map +1 -1
  72. package/dist/collection/components/ls-editor-table/ls-editor-table.js +1 -1
  73. package/dist/collection/components/ls-feature-column/ls-feature-column.js +6 -6
  74. package/dist/collection/components/ls-field-alignment/ls-field-alignment.js +2 -2
  75. package/dist/collection/components/ls-field-content/ls-field-content.js +3 -3
  76. package/dist/collection/components/ls-field-content/ls-field-content.js.map +1 -1
  77. package/dist/collection/components/ls-field-dimensions/ls-field-dimensions.js +3 -3
  78. package/dist/collection/components/ls-field-distribute/ls-field-distribute.js +24 -28
  79. package/dist/collection/components/ls-field-distribute/ls-field-distribute.js.map +1 -1
  80. package/dist/collection/components/ls-field-footer/ls-field-footer.js +1 -1
  81. package/dist/collection/components/ls-field-format/ls-field-format.css +7 -0
  82. package/dist/collection/components/ls-field-format/ls-field-format.js +11 -11
  83. package/dist/collection/components/ls-field-format/ls-field-format.js.map +1 -1
  84. package/dist/collection/components/ls-field-placement/ls-field-placement.js +1 -1
  85. package/dist/collection/components/ls-field-properties/ls-field-properties.js +1 -1
  86. package/dist/collection/components/ls-field-properties-advanced/ls-field-properties-advanced.js +2 -2
  87. package/dist/collection/components/ls-field-properties-autosign/ls-field-properties-autosign.js +1 -1
  88. package/dist/collection/components/ls-field-properties-container/ls-field-properties-container.js +1 -1
  89. package/dist/collection/components/ls-field-properties-date/ls-field-properties-date.js +1 -1
  90. package/dist/collection/components/ls-field-properties-dropdown/ls-field-properties-dropdown.js +1 -1
  91. package/dist/collection/components/ls-field-properties-email/ls-field-properties-email.js +1 -1
  92. package/dist/collection/components/ls-field-properties-file/ls-field-properties-file.js +1 -1
  93. package/dist/collection/components/ls-field-properties-general/ls-field-properties-general.js +1 -1
  94. package/dist/collection/components/ls-field-properties-image/ls-field-properties-image.js +1 -1
  95. package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.js +3 -3
  96. package/dist/collection/components/ls-field-properties-number/ls-field-properties-number.js +1 -1
  97. package/dist/collection/components/ls-field-properties-signature/ls-field-properties-signature.js +1 -1
  98. package/dist/collection/components/ls-field-properties-text/ls-field-properties-text.js +1 -1
  99. package/dist/collection/components/ls-field-size/ls-field-size.js +1 -1
  100. package/dist/collection/components/ls-field-type-display/ls-field-type-display.js +3 -3
  101. package/dist/collection/components/ls-helper-bar/ls-helper-bar.js +1 -1
  102. package/dist/collection/components/ls-input-wrapper/ls-input-wrapper.js +1 -1
  103. package/dist/collection/components/ls-keyboard-shortcuts/ls-keyboard-shortcuts.js +1 -1
  104. package/dist/collection/components/ls-left-bar/ls-left-bar.css +6 -0
  105. package/dist/collection/components/ls-participant-manager/ls-participant-manager.js +3 -3
  106. package/dist/collection/components/ls-participant-select/ls-participant-select.css +8 -0
  107. package/dist/collection/components/ls-participant-select/ls-participant-select.js +35 -47
  108. package/dist/collection/components/ls-participant-select/ls-participant-select.js.map +1 -1
  109. package/dist/collection/components/ls-props-section/ls-props-section.js +1 -1
  110. package/dist/collection/components/ls-recipient-card/ls-recipient-card.js +6 -5
  111. package/dist/collection/components/ls-recipient-card/ls-recipient-card.js.map +1 -1
  112. package/dist/collection/components/ls-recipient-manager/ls-recipient-manager.js +1 -1
  113. package/dist/collection/components/ls-statusbar/ls-statusbar.js +18 -8
  114. package/dist/collection/components/ls-statusbar/ls-statusbar.js.map +1 -1
  115. package/dist/collection/components/ls-title-input/ls-title-input.js +1 -1
  116. package/dist/collection/components/ls-toggle/ls-toggle.js +2 -2
  117. package/dist/collection/components/ls-toolbox-field/ls-toolbox-field.js +3 -3
  118. package/dist/collection/components/ls-validation-manager/ls-validation-manager.js +32 -2
  119. package/dist/collection/components/ls-validation-manager/ls-validation-manager.js.map +1 -1
  120. package/dist/collection/components/ls-validation-tag/ls-validation-tag.css +7 -0
  121. package/dist/collection/components/ls-validation-tag/ls-validation-tag.js +90 -34
  122. package/dist/collection/components/ls-validation-tag/ls-validation-tag.js.map +1 -1
  123. package/dist/components/index.js +1 -1
  124. package/dist/components/ls-add-new-button.js +1 -1
  125. package/dist/components/ls-badge.js +1 -1
  126. package/dist/components/ls-banner.js +6 -6
  127. package/dist/components/ls-button.js +1 -1
  128. package/dist/components/ls-card.js +1 -1
  129. package/dist/components/ls-checkbox-input.js +1 -1
  130. package/dist/components/ls-compose-loader.js +1 -1
  131. package/dist/components/ls-compose-manager.js +4 -4
  132. package/dist/components/ls-details-section.js +3 -3
  133. package/dist/components/ls-document-options.js +1 -1
  134. package/dist/components/ls-document-viewer.js +146 -110
  135. package/dist/components/ls-document-viewer.js.map +1 -1
  136. package/dist/components/ls-dropdown-item.js +1 -1
  137. package/dist/components/ls-dropdown.js +3 -3
  138. package/dist/components/ls-editor-field.js +1 -1
  139. package/dist/components/ls-editor-table.js +1 -1
  140. package/dist/components/ls-feature-column.js +1 -1
  141. package/dist/components/ls-field-alignment.js +1 -1
  142. package/dist/components/ls-field-content.js +1 -1
  143. package/dist/components/ls-field-dimensions.js +1 -1
  144. package/dist/components/ls-field-distribute.js +1 -1
  145. package/dist/components/ls-field-footer.js +1 -1
  146. package/dist/components/ls-field-format.js +1 -1
  147. package/dist/components/ls-field-placement.js +1 -1
  148. package/dist/components/ls-field-properties-advanced.js +1 -1
  149. package/dist/components/ls-field-properties-autosign.js +1 -1
  150. package/dist/components/ls-field-properties-container.js +1 -1
  151. package/dist/components/ls-field-properties-date.js +1 -1
  152. package/dist/components/ls-field-properties-dropdown.js +15 -15
  153. package/dist/components/ls-field-properties-email.js +1 -1
  154. package/dist/components/ls-field-properties-file.js +1 -1
  155. package/dist/components/ls-field-properties-general.js +1 -1
  156. package/dist/components/ls-field-properties-image.js +1 -1
  157. package/dist/components/ls-field-properties-multiple.js +1 -1
  158. package/dist/components/ls-field-properties-number.js +1 -1
  159. package/dist/components/ls-field-properties-signature.js +1 -1
  160. package/dist/components/ls-field-properties-text.js +1 -1
  161. package/dist/components/ls-field-properties.js +1 -1
  162. package/dist/components/ls-field-size.js +1 -1
  163. package/dist/components/ls-field-type-display.js +1 -1
  164. package/dist/components/ls-formfield.js +11 -11
  165. package/dist/components/ls-header-bar.js +4 -4
  166. package/dist/components/ls-helper-bar.js +1 -1
  167. package/dist/components/ls-icon-button.js +1 -1
  168. package/dist/components/ls-icon-check-button.js +2 -2
  169. package/dist/components/ls-icon.js +1 -1
  170. package/dist/components/ls-input-wrapper.js +1 -1
  171. package/dist/components/ls-keyboard-shortcuts.js +1 -1
  172. package/dist/components/ls-label.js +1 -1
  173. package/dist/components/ls-left-bar.js +1 -1
  174. package/dist/components/ls-list-card-button.js +4 -4
  175. package/dist/components/ls-loading-icon.js +1 -1
  176. package/dist/components/ls-loading-logo.js +1 -1
  177. package/dist/components/ls-loading.js +1 -1
  178. package/dist/components/ls-navbar.js +3 -3
  179. package/dist/components/ls-notification.js +2 -2
  180. package/dist/components/ls-number-input.js +1 -1
  181. package/dist/components/ls-participant-card.js +1 -1
  182. package/dist/components/ls-participant-manager.js +1 -1
  183. package/dist/components/ls-participant-select.js +1 -1
  184. package/dist/components/ls-props-section.js +1 -1
  185. package/dist/components/ls-radio-group.js +3 -3
  186. package/dist/components/ls-radio-input.js +1 -1
  187. package/dist/components/ls-recipient-card.js +1 -1
  188. package/dist/components/ls-recipient-manager.js +1 -1
  189. package/dist/components/ls-select-input.js +1 -1
  190. package/dist/components/ls-statusbar.js +1 -1
  191. package/dist/components/ls-tabs.js +2 -2
  192. package/dist/components/ls-tag.js +2 -2
  193. package/dist/components/ls-text-input.js +1 -1
  194. package/dist/components/ls-text.js +1 -1
  195. package/dist/components/ls-textarea-input.js +1 -1
  196. package/dist/components/ls-timeline-step.js +2 -2
  197. package/dist/components/ls-timeline.js +2 -2
  198. package/dist/components/ls-title-input.js +3 -3
  199. package/dist/components/ls-toggle.js +1 -1
  200. package/dist/components/ls-toolbar.js +1 -1
  201. package/dist/components/ls-toolbox-field.js +1 -1
  202. package/dist/components/ls-tooltip.js +1 -1
  203. package/dist/components/ls-validation-manager.js +1 -1
  204. package/dist/components/ls-validation-tag.js +1 -1
  205. package/dist/components/{p-C9O4GcTq.js → p-0KcafqsD.js} +4 -4
  206. package/dist/components/{p-C9O4GcTq.js.map → p-0KcafqsD.js.map} +1 -1
  207. package/dist/components/{p-C5Jz_eCB.js → p-4SVN50rZ.js} +17 -17
  208. package/dist/components/{p-C5Jz_eCB.js.map → p-4SVN50rZ.js.map} +1 -1
  209. package/dist/components/{p-CItLrDhm.js → p-7tNxs8No.js} +17 -17
  210. package/dist/components/{p-CItLrDhm.js.map → p-7tNxs8No.js.map} +1 -1
  211. package/dist/components/{p-DQ2OogsY.js → p-84KTjgkl.js} +4 -4
  212. package/dist/components/{p-DQ2OogsY.js.map → p-84KTjgkl.js.map} +1 -1
  213. package/dist/components/{p-Ci6AP0jT.js → p-B4nern9h.js} +8 -8
  214. package/dist/components/{p-Ci6AP0jT.js.map → p-B4nern9h.js.map} +1 -1
  215. package/dist/components/{p-DYJoT5OC.js → p-B6iYKtGO.js} +13 -12
  216. package/dist/components/p-B6iYKtGO.js.map +1 -0
  217. package/dist/components/{p-DlEh2FKG.js → p-B7x-6bu5.js} +4 -4
  218. package/dist/components/{p-DlEh2FKG.js.map → p-B7x-6bu5.js.map} +1 -1
  219. package/dist/components/{p-QXLGttP4.js → p-B9ooYFOA.js} +5 -5
  220. package/dist/components/{p-QXLGttP4.js.map → p-B9ooYFOA.js.map} +1 -1
  221. package/dist/components/{p-s20HlPHN.js → p-BBevdiks.js} +17 -17
  222. package/dist/components/{p-s20HlPHN.js.map → p-BBevdiks.js.map} +1 -1
  223. package/dist/components/{p-Ciap_aJy.js → p-BCNmvVjK.js} +17 -17
  224. package/dist/components/{p-Ciap_aJy.js.map → p-BCNmvVjK.js.map} +1 -1
  225. package/dist/components/{p-Bk-DeJ8r.js → p-BCzMSIcI.js} +4 -4
  226. package/dist/components/{p-Bk-DeJ8r.js.map → p-BCzMSIcI.js.map} +1 -1
  227. package/dist/components/{p-DbDvUcr5.js → p-BMhCD-zg.js} +4 -4
  228. package/dist/components/{p-DbDvUcr5.js.map → p-BMhCD-zg.js.map} +1 -1
  229. package/dist/components/{p-DvzrSyuS.js → p-BNihuKsl.js} +8 -8
  230. package/dist/components/{p-DvzrSyuS.js.map → p-BNihuKsl.js.map} +1 -1
  231. package/dist/components/{p-D_u1HxMf.js → p-BNtgCuBd.js} +8 -8
  232. package/dist/components/{p-D_u1HxMf.js.map → p-BNtgCuBd.js.map} +1 -1
  233. package/dist/components/{p-j1rAIT-X.js → p-BQ7lEZmO.js} +305 -129
  234. package/dist/components/p-BQ7lEZmO.js.map +1 -0
  235. package/dist/components/{p-CB9tEjJy.js → p-BT5rCW3w.js} +3 -3
  236. package/dist/components/{p-CB9tEjJy.js.map → p-BT5rCW3w.js.map} +1 -1
  237. package/dist/components/{p-C5iOpglg.js → p-BieB5Yv4.js} +12 -12
  238. package/dist/components/{p-C5iOpglg.js.map → p-BieB5Yv4.js.map} +1 -1
  239. package/dist/components/{p-DKhDOvYu.js → p-BnDS-Vxn.js} +10 -10
  240. package/dist/components/{p-DKhDOvYu.js.map → p-BnDS-Vxn.js.map} +1 -1
  241. package/dist/{esm/i18n-B8VmBxFg.js → components/p-Bp8hmhrC.js} +7 -5
  242. package/dist/components/{p-B8VmBxFg.js.map → p-Bp8hmhrC.js.map} +1 -1
  243. package/dist/components/{p-DVKeLLVk.js → p-BwJElhYd.js} +13 -13
  244. package/dist/components/p-BwJElhYd.js.map +1 -0
  245. package/dist/components/{p-MG59mYF3.js → p-C6Wto5hV.js} +18 -14
  246. package/dist/components/p-C6Wto5hV.js.map +1 -0
  247. package/dist/components/{p-1dutDvgl.js → p-C7ZEYzas.js} +5 -5
  248. package/dist/components/{p-1dutDvgl.js.map → p-C7ZEYzas.js.map} +1 -1
  249. package/dist/components/{p-CyKYlaAh.js → p-CKZG8VvW.js} +5 -5
  250. package/dist/components/{p-CyKYlaAh.js.map → p-CKZG8VvW.js.map} +1 -1
  251. package/dist/components/p-CMop5vLm.js +150 -0
  252. package/dist/components/p-CMop5vLm.js.map +1 -0
  253. package/dist/components/{p-Cm69fGZy.js → p-COX6-Qb4.js} +10 -10
  254. package/dist/components/{p-Cm69fGZy.js.map → p-COX6-Qb4.js.map} +1 -1
  255. package/dist/components/{p-lImp2h8Q.js → p-COkDTfhY.js} +17 -17
  256. package/dist/components/{p-lImp2h8Q.js.map → p-COkDTfhY.js.map} +1 -1
  257. package/dist/components/{p-CyQvboOz.js → p-CQx0j-F_.js} +6 -6
  258. package/dist/components/{p-CyQvboOz.js.map → p-CQx0j-F_.js.map} +1 -1
  259. package/dist/components/{p-CYBhiXXl.js → p-CXxS70Mm.js} +7 -7
  260. package/dist/components/{p-CYBhiXXl.js.map → p-CXxS70Mm.js.map} +1 -1
  261. package/dist/components/{p-CoUvqjky.js → p-CZF2_NGo.js} +4 -4
  262. package/dist/components/{p-CoUvqjky.js.map → p-CZF2_NGo.js.map} +1 -1
  263. package/dist/components/{p-Iy7DUSnq.js → p-C_A1TQER.js} +17 -17
  264. package/dist/components/{p-Iy7DUSnq.js.map → p-C_A1TQER.js.map} +1 -1
  265. package/dist/components/{p-B9uklVCX.js → p-CbaxmrLQ.js} +4 -4
  266. package/dist/components/{p-B9uklVCX.js.map → p-CbaxmrLQ.js.map} +1 -1
  267. package/dist/components/{p-DVM-djDm.js → p-Ck-idhcY.js} +7 -7
  268. package/dist/components/{p-DVM-djDm.js.map → p-Ck-idhcY.js.map} +1 -1
  269. package/dist/components/{p-CczRGS7Y.js → p-CuKQ9tEk.js} +3 -3
  270. package/dist/components/{p-CczRGS7Y.js.map → p-CuKQ9tEk.js.map} +1 -1
  271. package/dist/components/{p-DbBws6X7.js → p-CzuXVZQ1.js} +4 -4
  272. package/dist/components/{p-DbBws6X7.js.map → p-CzuXVZQ1.js.map} +1 -1
  273. package/dist/components/{p-DPZ4R8tR.js → p-D0k1Pz_A.js} +17 -17
  274. package/dist/components/{p-DPZ4R8tR.js.map → p-D0k1Pz_A.js.map} +1 -1
  275. package/dist/components/{p-C09xOzQ6.js → p-D1L3-Uvq.js} +7 -7
  276. package/dist/components/{p-C09xOzQ6.js.map → p-D1L3-Uvq.js.map} +1 -1
  277. package/dist/components/{p-DKbMooLM.js → p-DCexcYIP.js} +79 -73
  278. package/dist/components/p-DCexcYIP.js.map +1 -0
  279. package/dist/components/{p-CF3y5NYY.js → p-DG4uEGCg.js} +5 -5
  280. package/dist/components/{p-CF3y5NYY.js.map → p-DG4uEGCg.js.map} +1 -1
  281. package/dist/components/{p-i4y_Venf.js → p-DKo99Z43.js} +3 -3
  282. package/dist/components/{p-i4y_Venf.js.map → p-DKo99Z43.js.map} +1 -1
  283. package/dist/components/{p-1ddWJmvW.js → p-DVBhtEXS.js} +8 -8
  284. package/dist/components/{p-1ddWJmvW.js.map → p-DVBhtEXS.js.map} +1 -1
  285. package/dist/components/{p-B_88roRV.js → p-DYzmbr8y.js} +17 -17
  286. package/dist/components/{p-B_88roRV.js.map → p-DYzmbr8y.js.map} +1 -1
  287. package/dist/components/{p-BsreOXdY.js → p-DZP-fvPJ.js} +3 -3
  288. package/dist/components/{p-BsreOXdY.js.map → p-DZP-fvPJ.js.map} +1 -1
  289. package/dist/components/{p-CsfhfNKJ.js → p-DcR04vBT.js} +4 -4
  290. package/dist/components/{p-CsfhfNKJ.js.map → p-DcR04vBT.js.map} +1 -1
  291. package/dist/components/p-DdsRqtRd.js +176 -0
  292. package/dist/components/p-DdsRqtRd.js.map +1 -0
  293. package/dist/components/{p-CLbfAJ0X.js → p-DffaAVW4.js} +2 -5
  294. package/dist/components/p-DffaAVW4.js.map +1 -0
  295. package/dist/components/{p-Ak82LNyC.js → p-DqCMV_MY.js} +15 -15
  296. package/dist/components/{p-Ak82LNyC.js.map → p-DqCMV_MY.js.map} +1 -1
  297. package/dist/components/{p-DLpSXikD.js → p-DrEcfY_J.js} +4 -4
  298. package/dist/components/{p-DLpSXikD.js.map → p-DrEcfY_J.js.map} +1 -1
  299. package/dist/components/{p-DRcpbaNd.js → p-DwKK-L0J.js} +5 -5
  300. package/dist/components/{p-DRcpbaNd.js.map → p-DwKK-L0J.js.map} +1 -1
  301. package/dist/components/{p-BYHrh00m.js → p-Dw_QK-he.js} +6 -6
  302. package/dist/components/{p-BYHrh00m.js.map → p-Dw_QK-he.js.map} +1 -1
  303. package/dist/components/{p-CQVcPp7I.js → p-Ij6Uu9h8.js} +7 -7
  304. package/dist/components/{p-CQVcPp7I.js.map → p-Ij6Uu9h8.js.map} +1 -1
  305. package/dist/components/{p-DvVSXyfE.js → p-K7KaIE1v.js} +18 -18
  306. package/dist/components/p-K7KaIE1v.js.map +1 -0
  307. package/dist/components/{p-D-mPHPaO.js → p-OiC5NHtc.js} +4 -4
  308. package/dist/components/{p-D-mPHPaO.js.map → p-OiC5NHtc.js.map} +1 -1
  309. package/dist/components/{p-DzS_0OPs.js → p-QZa2_PWg.js} +4 -4
  310. package/dist/components/{p-DzS_0OPs.js.map → p-QZa2_PWg.js.map} +1 -1
  311. package/dist/components/{p-DdS3vht-.js → p-UwE-6cC0.js} +18 -18
  312. package/dist/components/{p-DdS3vht-.js.map → p-UwE-6cC0.js.map} +1 -1
  313. package/dist/components/{p-CDEEN7tu.js → p-ZtMRKgam.js} +16 -9
  314. package/dist/components/p-ZtMRKgam.js.map +1 -0
  315. package/dist/components/{p-5bn-NO5u.js → p-_YEZiLlm.js} +8 -8
  316. package/dist/components/{p-5bn-NO5u.js.map → p-_YEZiLlm.js.map} +1 -1
  317. package/dist/components/{p-DdCwAPae.js → p-lphkmIXU.js} +4 -4
  318. package/dist/components/{p-DdCwAPae.js.map → p-lphkmIXU.js.map} +1 -1
  319. package/dist/components/{p-C0RAZYKW.js → p-rE7Q2Ue3.js} +9 -9
  320. package/dist/components/{p-C0RAZYKW.js.map → p-rE7Q2Ue3.js.map} +1 -1
  321. package/dist/components/{p-BnrAwLD3.js → p-uXv5wPjh.js} +30 -30
  322. package/dist/components/{p-BnrAwLD3.js.map → p-uXv5wPjh.js.map} +1 -1
  323. package/dist/components/{p-DLtUiUbu.js → p-wijn7N4I.js} +6 -6
  324. package/dist/components/{p-DLtUiUbu.js.map → p-wijn7N4I.js.map} +1 -1
  325. package/dist/components/{p-BKHg_nvO.js → p-x_ncrpeq.js} +27 -17
  326. package/dist/components/p-x_ncrpeq.js.map +1 -0
  327. package/dist/components/{p-B2dT8iAi.js → p-ygIo6UQn.js} +3 -3
  328. package/dist/components/{p-B2dT8iAi.js.map → p-ygIo6UQn.js.map} +1 -1
  329. package/dist/components/test-item.js +1 -1
  330. package/dist/esm/defaultFieldIcons-CxK9aHT8.js +24 -0
  331. package/dist/esm/defaultFieldIcons-CxK9aHT8.js.map +1 -0
  332. package/dist/esm/defaultPalette-CwCWCxsI.js +220 -0
  333. package/dist/esm/defaultPalette-CwCWCxsI.js.map +1 -0
  334. package/dist/esm/editorUtils-BwTFZZiO.js +432 -0
  335. package/dist/esm/editorUtils-BwTFZZiO.js.map +1 -0
  336. package/dist/esm/fieldDefaults-B3gB_457.js +23 -0
  337. package/dist/esm/fieldDefaults-B3gB_457.js.map +1 -0
  338. package/dist/{components/p-B8VmBxFg.js → esm/i18n-Bp8hmhrC.js} +7 -5
  339. package/dist/esm/{i18n-B8VmBxFg.js.map → i18n-Bp8hmhrC.js.map} +1 -1
  340. package/dist/esm/{index-MftqtSf2.js → index-CItPoq74.js} +2 -5
  341. package/dist/esm/index-CItPoq74.js.map +1 -0
  342. package/dist/esm/loader.js +3 -3
  343. package/dist/esm/ls-add-new-button_20.entry.js +1014 -0
  344. package/dist/esm/ls-badge.entry.js +1 -1
  345. package/dist/esm/ls-banner.entry.js +1 -1
  346. package/dist/esm/ls-button.entry.js +47 -0
  347. package/dist/esm/ls-button.entry.js.map +1 -0
  348. package/dist/esm/ls-card.entry.js +1 -1
  349. package/dist/esm/ls-checkbox-input_5.entry.js +1 -1
  350. package/dist/esm/ls-compose-loader_6.entry.js +374 -0
  351. package/dist/esm/ls-compose-manager.entry.js +4 -4
  352. package/dist/esm/ls-details-section.entry.js +1 -1
  353. package/dist/esm/ls-document-viewer.entry.js +31135 -0
  354. package/dist/esm/ls-document-viewer.entry.js.map +1 -0
  355. package/dist/esm/ls-document-viewer.js +3 -3
  356. package/dist/esm/ls-dropdown-item.entry.js +1 -1
  357. package/dist/esm/ls-dropdown.entry.js +1 -1
  358. package/dist/esm/ls-editor-field_11.entry.js +897 -0
  359. package/dist/esm/ls-field-alignment_3.entry.js +311 -0
  360. package/dist/esm/ls-field-format_2.entry.js +215 -0
  361. package/dist/esm/ls-field-properties-dropdown.entry.js +2 -2
  362. package/dist/esm/ls-formfield.entry.js +1 -1
  363. package/dist/esm/ls-header-bar.entry.js +1 -1
  364. package/dist/esm/ls-helper-bar_2.entry.js +34 -0
  365. package/dist/esm/ls-icon-button.entry.js +1 -1
  366. package/dist/esm/ls-icon-check-button.entry.js +1 -1
  367. package/dist/esm/ls-icon.entry.js +11209 -0
  368. package/dist/esm/ls-icon.entry.js.map +1 -0
  369. package/dist/esm/ls-label.entry.js +1 -1
  370. package/dist/esm/ls-list-card-button.entry.js +1 -1
  371. package/dist/esm/ls-loading_2.entry.js +34 -0
  372. package/dist/esm/ls-navbar.entry.js +1 -1
  373. package/dist/esm/ls-notification.entry.js +1 -1
  374. package/dist/esm/ls-radio-group.entry.js +1 -1
  375. package/dist/esm/ls-radio-input.entry.js +1 -1
  376. package/dist/esm/ls-tabs.entry.js +1 -1
  377. package/dist/esm/ls-tag.entry.js +1 -1
  378. package/dist/esm/ls-text.entry.js +1 -1
  379. package/dist/esm/ls-timeline-step.entry.js +1 -1
  380. package/dist/esm/ls-timeline.entry.js +1 -1
  381. package/dist/esm/ls-title-input.entry.js +2 -2
  382. package/dist/esm/ls-toolbox-field.entry.js +94 -0
  383. package/dist/esm/ls-toolbox-field.entry.js.map +1 -0
  384. package/dist/esm/ls-tooltip.entry.js +245 -0
  385. package/dist/esm/ls-tooltip.entry.js.map +1 -0
  386. package/dist/esm/mouseHandlers-BV17gkLo.js +966 -0
  387. package/dist/esm/mouseHandlers-BV17gkLo.js.map +1 -0
  388. package/dist/esm/test-item.entry.js +1 -1
  389. package/dist/ls-document-viewer/ls-document-viewer.esm.js +1 -1
  390. package/dist/ls-document-viewer/p-048d62f5.entry.js +2 -0
  391. package/dist/ls-document-viewer/p-048d62f5.entry.js.map +1 -0
  392. package/dist/ls-document-viewer/p-0cd12efb.entry.js +2 -0
  393. package/dist/ls-document-viewer/p-0cd12efb.entry.js.map +1 -0
  394. package/dist/ls-document-viewer/{p-98a57094.entry.js → p-17771224.entry.js} +2 -2
  395. package/dist/ls-document-viewer/{p-6772200f.entry.js → p-34c89736.entry.js} +2 -2
  396. package/dist/ls-document-viewer/{p-7cfcd1b7.entry.js → p-35181c98.entry.js} +2 -2
  397. package/dist/ls-document-viewer/{p-f107d880.entry.js → p-355fa23b.entry.js} +2 -2
  398. package/dist/ls-document-viewer/p-36c7680a.entry.js +2 -0
  399. package/dist/ls-document-viewer/p-36c7680a.entry.js.map +1 -0
  400. package/dist/ls-document-viewer/{p-b884f55e.entry.js → p-3bce0fe7.entry.js} +2 -2
  401. package/dist/ls-document-viewer/{p-77488866.entry.js → p-429be8d1.entry.js} +2 -2
  402. package/dist/ls-document-viewer/p-4f759b89.entry.js +2 -0
  403. package/dist/ls-document-viewer/p-4f759b89.entry.js.map +1 -0
  404. package/dist/ls-document-viewer/p-4f8330da.entry.js +2 -0
  405. package/dist/ls-document-viewer/p-4f8330da.entry.js.map +1 -0
  406. package/dist/ls-document-viewer/p-58506eb1.entry.js +2 -0
  407. package/dist/ls-document-viewer/p-58506eb1.entry.js.map +1 -0
  408. package/dist/ls-document-viewer/{p-a5615ff6.entry.js → p-5e4e4662.entry.js} +2 -2
  409. package/dist/ls-document-viewer/{p-cf174e71.entry.js → p-61e1b37b.entry.js} +2 -2
  410. package/dist/ls-document-viewer/{p-c0cd42f6.entry.js → p-6244f792.entry.js} +2 -2
  411. package/dist/ls-document-viewer/p-6d0a1ebd.entry.js +2 -0
  412. package/dist/ls-document-viewer/p-6d0a1ebd.entry.js.map +1 -0
  413. package/dist/ls-document-viewer/p-7145596d.entry.js +2 -0
  414. package/dist/ls-document-viewer/p-7145596d.entry.js.map +1 -0
  415. package/dist/ls-document-viewer/{p-f3798c61.entry.js → p-7c5b3574.entry.js} +2 -2
  416. package/dist/ls-document-viewer/p-7f51073d.entry.js +2 -0
  417. package/dist/ls-document-viewer/{p-e4b0754b.entry.js → p-85c87644.entry.js} +2 -2
  418. package/dist/ls-document-viewer/{p-7c5c0140.entry.js → p-8e0ad6ec.entry.js} +2 -2
  419. package/dist/ls-document-viewer/{p-6f20b92f.entry.js → p-94bbac6a.entry.js} +2 -2
  420. package/dist/ls-document-viewer/{p-7d43969d.entry.js → p-9ebec463.entry.js} +2 -2
  421. package/dist/ls-document-viewer/p-B3gB_457.js +2 -0
  422. package/dist/ls-document-viewer/p-B3gB_457.js.map +1 -0
  423. package/dist/ls-document-viewer/p-Bp8hmhrC.js +2 -0
  424. package/dist/ls-document-viewer/{p-B8VmBxFg.js.map → p-Bp8hmhrC.js.map} +1 -1
  425. package/dist/ls-document-viewer/p-BwTFZZiO.js +2 -0
  426. package/dist/ls-document-viewer/p-BwTFZZiO.js.map +1 -0
  427. package/dist/ls-document-viewer/{p-MftqtSf2.js → p-CItPoq74.js} +2 -2
  428. package/dist/ls-document-viewer/p-CItPoq74.js.map +1 -0
  429. package/dist/ls-document-viewer/p-CwCWCxsI.js +2 -0
  430. package/dist/ls-document-viewer/p-CwCWCxsI.js.map +1 -0
  431. package/dist/ls-document-viewer/p-CxK9aHT8.js +2 -0
  432. package/dist/ls-document-viewer/p-CxK9aHT8.js.map +1 -0
  433. package/dist/ls-document-viewer/p-DhBCuHVJ.js +2 -0
  434. package/dist/ls-document-viewer/p-DhBCuHVJ.js.map +1 -0
  435. package/dist/ls-document-viewer/{p-9eac3794.entry.js → p-a4121600.entry.js} +2 -2
  436. package/dist/ls-document-viewer/p-a7dd3ba3.entry.js +2 -0
  437. package/dist/ls-document-viewer/p-a961097c.entry.js +2 -0
  438. package/dist/ls-document-viewer/p-a961097c.entry.js.map +1 -0
  439. package/dist/ls-document-viewer/{p-6be63692.entry.js → p-abb5c859.entry.js} +2 -2
  440. package/dist/ls-document-viewer/{p-a0ed1643.entry.js → p-bbc53e46.entry.js} +2 -2
  441. package/dist/ls-document-viewer/{p-fcf271bf.entry.js → p-c521696b.entry.js} +2 -2
  442. package/dist/ls-document-viewer/{p-8239246f.entry.js → p-c78bd190.entry.js} +2 -2
  443. package/dist/ls-document-viewer/{p-47e3e300.entry.js → p-ca1a0e03.entry.js} +2 -2
  444. package/dist/ls-document-viewer/p-cee82e97.entry.js +9009 -0
  445. package/dist/ls-document-viewer/p-cee82e97.entry.js.map +1 -0
  446. package/dist/ls-document-viewer/{p-0fba6f09.entry.js → p-d297ea14.entry.js} +2 -2
  447. package/dist/ls-document-viewer/{p-a91b7258.entry.js → p-d2caf154.entry.js} +2 -2
  448. package/dist/ls-document-viewer/{p-05267892.entry.js → p-d76f5c10.entry.js} +2 -2
  449. package/dist/ls-document-viewer/p-edfdaad7.entry.js +2 -0
  450. package/dist/ls-document-viewer/p-edfdaad7.entry.js.map +1 -0
  451. package/dist/ls-document-viewer/{p-a74d04e0.entry.js → p-f318c711.entry.js} +2 -2
  452. package/dist/ls-document-viewer/p-f3585382.entry.js +24 -0
  453. package/dist/ls-document-viewer/p-f3585382.entry.js.map +1 -0
  454. package/dist/types/components/ls-document-viewer/snapHelper.d.ts +1 -2
  455. package/dist/types/components/ls-participant-select/ls-participant-select.d.ts +4 -2
  456. package/dist/types/components/ls-validation-manager/ls-validation-manager.d.ts +3 -0
  457. package/dist/types/components/ls-validation-tag/ls-validation-tag.d.ts +2 -0
  458. package/dist/types/components.d.ts +18 -0
  459. package/package.json +1 -1
  460. package/dist/cjs/index-CmGbWor3.js.map +0 -1
  461. package/dist/cjs/ls-add-new-button_51.cjs.entry.js +0 -46975
  462. package/dist/components/p-1e4klocT.js +0 -182
  463. package/dist/components/p-1e4klocT.js.map +0 -1
  464. package/dist/components/p-BKHg_nvO.js.map +0 -1
  465. package/dist/components/p-BsVEdJSl.js +0 -108
  466. package/dist/components/p-BsVEdJSl.js.map +0 -1
  467. package/dist/components/p-CDEEN7tu.js.map +0 -1
  468. package/dist/components/p-CLbfAJ0X.js.map +0 -1
  469. package/dist/components/p-DKbMooLM.js.map +0 -1
  470. package/dist/components/p-DVKeLLVk.js.map +0 -1
  471. package/dist/components/p-DYJoT5OC.js.map +0 -1
  472. package/dist/components/p-DvVSXyfE.js.map +0 -1
  473. package/dist/components/p-MG59mYF3.js.map +0 -1
  474. package/dist/components/p-j1rAIT-X.js.map +0 -1
  475. package/dist/esm/index-MftqtSf2.js.map +0 -1
  476. package/dist/esm/ls-add-new-button_51.entry.js +0 -46922
  477. package/dist/ls-document-viewer/p-B8VmBxFg.js +0 -2
  478. package/dist/ls-document-viewer/p-MftqtSf2.js.map +0 -1
  479. package/dist/ls-document-viewer/p-d865f5a4.entry.js +0 -9031
  480. package/dist/ls-document-viewer/p-d865f5a4.entry.js.map +0 -1
  481. package/dist/ls-document-viewer/p-db2560fe.entry.js +0 -2
  482. package/dist/ls-document-viewer/p-e3a04b71.entry.js +0 -2
  483. /package/dist/ls-document-viewer/{p-98a57094.entry.js.map → p-17771224.entry.js.map} +0 -0
  484. /package/dist/ls-document-viewer/{p-6772200f.entry.js.map → p-34c89736.entry.js.map} +0 -0
  485. /package/dist/ls-document-viewer/{p-7cfcd1b7.entry.js.map → p-35181c98.entry.js.map} +0 -0
  486. /package/dist/ls-document-viewer/{p-f107d880.entry.js.map → p-355fa23b.entry.js.map} +0 -0
  487. /package/dist/ls-document-viewer/{p-b884f55e.entry.js.map → p-3bce0fe7.entry.js.map} +0 -0
  488. /package/dist/ls-document-viewer/{p-77488866.entry.js.map → p-429be8d1.entry.js.map} +0 -0
  489. /package/dist/ls-document-viewer/{p-a5615ff6.entry.js.map → p-5e4e4662.entry.js.map} +0 -0
  490. /package/dist/ls-document-viewer/{p-cf174e71.entry.js.map → p-61e1b37b.entry.js.map} +0 -0
  491. /package/dist/ls-document-viewer/{p-c0cd42f6.entry.js.map → p-6244f792.entry.js.map} +0 -0
  492. /package/dist/ls-document-viewer/{p-f3798c61.entry.js.map → p-7c5b3574.entry.js.map} +0 -0
  493. /package/dist/ls-document-viewer/{p-db2560fe.entry.js.map → p-7f51073d.entry.js.map} +0 -0
  494. /package/dist/ls-document-viewer/{p-e4b0754b.entry.js.map → p-85c87644.entry.js.map} +0 -0
  495. /package/dist/ls-document-viewer/{p-7c5c0140.entry.js.map → p-8e0ad6ec.entry.js.map} +0 -0
  496. /package/dist/ls-document-viewer/{p-6f20b92f.entry.js.map → p-94bbac6a.entry.js.map} +0 -0
  497. /package/dist/ls-document-viewer/{p-7d43969d.entry.js.map → p-9ebec463.entry.js.map} +0 -0
  498. /package/dist/ls-document-viewer/{p-9eac3794.entry.js.map → p-a4121600.entry.js.map} +0 -0
  499. /package/dist/ls-document-viewer/{p-e3a04b71.entry.js.map → p-a7dd3ba3.entry.js.map} +0 -0
  500. /package/dist/ls-document-viewer/{p-6be63692.entry.js.map → p-abb5c859.entry.js.map} +0 -0
  501. /package/dist/ls-document-viewer/{p-a0ed1643.entry.js.map → p-bbc53e46.entry.js.map} +0 -0
  502. /package/dist/ls-document-viewer/{p-fcf271bf.entry.js.map → p-c521696b.entry.js.map} +0 -0
  503. /package/dist/ls-document-viewer/{p-8239246f.entry.js.map → p-c78bd190.entry.js.map} +0 -0
  504. /package/dist/ls-document-viewer/{p-47e3e300.entry.js.map → p-ca1a0e03.entry.js.map} +0 -0
  505. /package/dist/ls-document-viewer/{p-0fba6f09.entry.js.map → p-d297ea14.entry.js.map} +0 -0
  506. /package/dist/ls-document-viewer/{p-a91b7258.entry.js.map → p-d2caf154.entry.js.map} +0 -0
  507. /package/dist/ls-document-viewer/{p-05267892.entry.js.map → p-d76f5c10.entry.js.map} +0 -0
  508. /package/dist/ls-document-viewer/{p-a74d04e0.entry.js.map → p-f318c711.entry.js.map} +0 -0
@@ -0,0 +1,1014 @@
1
+ import { r as registerInstance, h, a as getElement, c as createEvent, H as Host } from './index-CItPoq74.js';
2
+ import { c as clsx } from './clsx-ChV9xqsO.js';
3
+ import { d as dvI18n } from './i18n-Bp8hmhrC.js';
4
+ import { d as defaultRolePalette } from './defaultPalette-CwCWCxsI.js';
5
+ import { g as getFieldIcon } from './defaultFieldIcons-CxK9aHT8.js';
6
+ import { F as FIELD_DEFAULTS } from './fieldDefaults-B3gB_457.js';
7
+
8
+ const lsAddNewButtonCss = () => `
9
+ .button {
10
+ position: relative;
11
+ display: flex;
12
+ justify-content: center;
13
+ width: 100%;
14
+ align-items: center;
15
+ gap: 0.5rem;
16
+ text-transform: capitalize;
17
+ transition: all 0.3s;
18
+ padding: 0.5rem 0.375rem;
19
+ border-radius: 0.5rem;
20
+ text-decoration-line: none;
21
+ background-color: var(--white);
22
+ }
23
+
24
+ .button.destructive {
25
+ border: 2px dashed var(--red-20);
26
+ color: var(--red-60);
27
+ }
28
+
29
+ .button:not(.destructive) {
30
+ border: 2px dashed var(--gray-20);
31
+ color: var(--gray-80);
32
+ }
33
+
34
+ .button:hover {
35
+
36
+ cursor: pointer;
37
+ }
38
+
39
+ .button.destructive:hover:not(:disabled) {
40
+ background-color: var(--red-10);
41
+ color: var(--red-80);
42
+
43
+ .icon {
44
+ color: var(--red-80)
45
+ }
46
+ }
47
+
48
+
49
+ .button:hover:not(:disabled):not(.destructive) {
50
+ color: var(--primary-50);
51
+ background-color: var(--primary-10);
52
+ border-color: var(--primary-20);
53
+
54
+ .icon {
55
+ color: var(--primary-50);
56
+ }
57
+ }
58
+
59
+
60
+ .button:focus {
61
+ box-shadow: var(--focus-box-shadow);
62
+ outline-offset: var(--focus-outline-offset);
63
+ outline: none;
64
+ }
65
+
66
+ .button:disabled {
67
+ background-color: var(--gray-10);
68
+ color: var(--gray-50);
69
+ border-color: var(--gray-20);
70
+ cursor: not-allowed;
71
+ }
72
+
73
+ .button:not(:disabled):not(.destructive) {
74
+ .icon {
75
+ color: var(--gray-80);
76
+ }
77
+ }
78
+
79
+ .button.destructive:not(:disabled) {
80
+ .icon {
81
+ color: var(--red-60);
82
+ }
83
+ }`;
84
+
85
+ var __rest = (undefined && undefined.__rest) || function (s, e) {
86
+ var t = {};
87
+ for (var p in s)
88
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
89
+ t[p] = s[p];
90
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
91
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
92
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
93
+ t[p[i]] = s[p[i]];
94
+ }
95
+ return t;
96
+ };
97
+ const LsAddNewButton = class {
98
+ constructor(hostRef) {
99
+ registerInstance(this, hostRef);
100
+ this.text = '';
101
+ this.loading = false;
102
+ this.disabled = false;
103
+ this.destructive = false;
104
+ }
105
+ render() {
106
+ const _a = this, { text, icon, loading, disabled, destructive, customStyle } = _a, rest = __rest(_a, ["text", "icon", "loading", "disabled", "destructive", "customStyle"]);
107
+ const buttonClass = clsx('button', disabled && 'disabled', destructive && 'destructive');
108
+ return (h("host", { key: '2a7c7aac19eaf12a3a6f086c98742f9b8060d38e' }, h("button", Object.assign({ key: 'bc2b817560e0b0c299a72bf22ef6b07e10da94e2', type: 'button', disabled: disabled || loading, class: buttonClass, style: customStyle }, rest), icon && !loading && (h("ls-icon", { key: 'b680fed0f0622a91d894aaea7871bff8911655a1', name: icon, solid: false, size: 20, class: 'icon' })), loading && (h("div", { key: '05fecd907228278d9f1fbc2f5dc3c56c204e0afc' }, h("ls-loading", { key: 'aa871b1ed5becd6fb1e4eedd335647951f4dcbab', iconSize: 20 }))), text && !loading && h("span", { key: 'ff60357b611378d8481c7f76de4013b999658b7a', class: 'text' }, text), loading && h("span", { key: '554b44264128c84f94649efe888a3769d3f977dd', class: 'text' }, "loading..."))));
109
+ }
110
+ get el() { return getElement(this); }
111
+ };
112
+ LsAddNewButton.style = lsAddNewButtonCss();
113
+
114
+ const lsDocumentOptionsCss = () => `*{box-sizing:border-box;margin:0;padding:0}:host{display:block}.ls-dv-editor-infobox{padding:0.125rem 0.5rem 0.125rem 0.5rem}.ls-dv-toolbox-section-title{color:var(--gray-100, #45484d);font-size:1.125rem;font-style:normal;font-weight:500;line-height:1.75rem;}.ls-dv-toolbox-section-description{color:var(--gray-80, #6f7176);font-size:0.75rem;font-style:normal;font-weight:400;line-height:1rem}.ls-dv-template-details{display:flex;flex-direction:column;gap:0.75rem}.ls-dv-template-detail-section{position:relative;display:flex;padding:0.75rem;align-items:center;gap:0.5rem;border-radius:1rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff)}.ls-dv-template-detail-section-title{color:var(--gray-80, #6f7176);font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;width:100%}.ls-dv-template-detail-section-info{color:var(--gray-70, #939599);font-size:0.75rem;font-style:normal;font-weight:400;line-height:1rem;width:100%}.ls-dv-template-title{border-radius:0.625rem;padding:0.25rem;color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem;cursor:pointer;width:100%;margin-top:-0.125rem}.ls-dv-template-title:hover{background:var(--gray-10, #f7f8fa)}.ls-dv-column{display:flex;flex-direction:column;align-items:flex-start}.ls-dv-edit-button{position:absolute;top:0.75rem;right:0.75rem;margin:0px;padding:0px;max-height:1.25rem !important;max-width:1.25rem !important;background-color:transparent;border:none;cursor:pointer;color:var(--gray-70, #939599)}.ls-dv-edit-button:hover{color:var(--gray-80, #6f7176)}p{color:var(--gray-80, #6f7176);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.ls-dv-button-link,.ls-dv-button-link:hover{all:unset}select{appearance:none;height:2.25rem}.ls-dv-input-wrapper{position:relative;width:fit-content}#selectorIcon{position:absolute;top:50%;right:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6f7176)}#selectLeadingIcon{position:absolute;top:50%;left:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6f7176)}.ls-dv-has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.625rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover,select:hover,textarea:hover{border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #ffffff)}input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #ffffff)}input:active,select:active,textarea:active{border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa)}input[type=checkbox]{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type=checkbox]:checked,input[type=checkbox].ls-dv-indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type=checkbox]:checked::after{content:"";position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type=checkbox].ls-dv-indeterminate::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type=checkbox]:checked:hover,input[type=checkbox].ls-dv-indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type=checkbox]:hover{border:1px solid #9ca3af}input[type=checkbox]:focus,input[type=checkbox]:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type=checkbox]:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type=checkbox]:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.ls-dv-checkbox-container{display:flex;gap:0.5rem;width:100%}.ls-dv-checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.ls-dv-form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.ls-dv-form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.ls-dv-loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #4456f6)}button{border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.ls-dv-tertiary-grey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #6f7176)}button.ls-dv-tertiary-grey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}.ls-dv-button-group{display:flex;border-radius:0.625rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip}.ls-dv-button-group button{display:flex;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;min-height:unset;color:var(--gray-80, #6f7176)}.ls-dv-button-group button:hover{background:var(--gray-10, #f7f8fa)}.ls-dv-button-group>:first-child{border-radius:0.625rem 0 0 0.625rem}.ls-dv-button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.ls-dv-button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}`;
115
+
116
+ const LsDocumentOptions = class {
117
+ constructor(hostRef) {
118
+ registerInstance(this, hostRef);
119
+ this.mutate = createEvent(this, "mutate", 7);
120
+ this.update = createEvent(this, "update", 7);
121
+ }
122
+ get component() { return getElement(this); }
123
+ /**
124
+ * The base template information (as JSON).
125
+ * {LSApiTemplate}
126
+ */
127
+ template;
128
+ editTitle = false;
129
+ selectedHandler(newSelected, _oldSelected) {
130
+ console.log(newSelected, 'document manager');
131
+ }
132
+ mutate;
133
+ update;
134
+ // Send one or more mutations up the chain
135
+ // The source of the chain fires the mutation
136
+ // NOTE this alter is debounced to account for typing
137
+ alter(diff) {
138
+ this.debounce(diff, 500);
139
+ }
140
+ titletimer;
141
+ debounce(diff, delay) {
142
+ if (this.titletimer)
143
+ clearTimeout(this.titletimer);
144
+ this.titletimer = setTimeout(() => {
145
+ this.template = { ...this.template, ...diff };
146
+ const diffs = [{ action: 'update', data: this.template }];
147
+ this.mutate.emit(diffs);
148
+ }, delay);
149
+ }
150
+ componentDidLoad() {
151
+ }
152
+ render() {
153
+ function formatDate(isoString) {
154
+ const date = new Date(isoString);
155
+ const day = String(date.getDate()).padStart(2, '0');
156
+ const month = String(date.getMonth() + 1).padStart(2, '0'); // Months are 0-indexed
157
+ const year = date.getFullYear();
158
+ const hours = String(date.getHours()).padStart(2, '0');
159
+ const minutes = String(date.getMinutes()).padStart(2, '0');
160
+ return `${day}/${month}/${year} at ${hours}:${minutes}`;
161
+ }
162
+ return (h(Host, null, h("div", { class: "ls-dv-editor-infobox" }, h("h2", { class: "ls-dv-toolbox-section-title" }, dvI18n.t('documentoptions.title')), h("p", { class: "ls-dv-toolbox-section-description" }, dvI18n.t('documentoptions.description'))), h("div", { class: 'ls-dv-template-details' }, h("div", { class: 'ls-dv-template-detail-section ls-dv-column' }, h("p", { class: "ls-dv-template-detail-section-title" }, dvI18n.t('documentoptions.name')), h("div", { class: "ls-dv-edit-button", onClick: () => {
163
+ this.editTitle = !this.editTitle;
164
+ } }, h("ls-icon", { name: this.editTitle ? 'check-icon' : 'pencil-alt-icon', size: 20, id: "edit-name-btn", "data-tooltip-id": "ls-dv-tooltip", "data-tooltip-content": this.editTitle ? dvI18n.t('common.save') : dvI18n.t('documentoptions.editname') })), this.editTitle ? (h("input", { value: this.template?.title, style: { width: '100%' }, onInput: e => {
165
+ e.preventDefault();
166
+ this.alter({ title: e.target.value });
167
+ }, onKeyUp: e => {
168
+ if (e.key === 'Enter' || e.keyCode === 13)
169
+ this.editTitle = false;
170
+ } })) : (h("div", { class: "ls-dv-template-title", onClick: () => {
171
+ this.editTitle = !this.editTitle;
172
+ } }, h("p", null, this.template?.title)))), h("div", { class: 'ls-dv-template-detail-section' }, h("div", null, h("p", { class: "ls-dv-template-detail-section-title" }, dvI18n.t('documentoptions.autoarchive')), h("p", { class: 'ls-dv-template-detail-section-info' }, dvI18n.t('documentoptions.autoarchivedescription'))), h("ls-toggle", { checked: this.template?.autoArchive, onValueChange: e => {
173
+ this.alter({ autoArchive: e.detail });
174
+ } })), h("div", { class: 'ls-dv-template-detail-section' }, h("div", null, h("p", { class: "ls-dv-template-detail-section-title" }, dvI18n.t('documentoptions.locktemplate')), h("p", { class: 'ls-dv-template-detail-section-info' }, dvI18n.t('documentoptions.locktemplatedescription'))), h("ls-toggle", { checked: this.template?.locked, onValueChange: e => {
175
+ this.alter({ locked: e.detail });
176
+ } })), h("div", { class: 'ls-dv-template-detail-section' }, h("div", null, h("p", { class: "ls-dv-template-detail-section-title", "tooltip-data": "Fixes the aspect ratio of all signatures on the document. This allows Participants to re-use the same signature throughout the signing process. If this setting is turned on after several signature fields have been placed, fields will automatically re-size to match the aspect ratio of the first signature on the Template." }, dvI18n.t('documentoptions.fixedsignatureaspect')), h("p", { class: 'ls-dv-template-detail-section-info' }, dvI18n.t('documentoptions.fixedsignatureaspectdescription'))), h("ls-toggle", { checked: this.template?.fixSignatureScale, onValueChange: e => {
177
+ this.alter({ fixSignatureScale: e.detail });
178
+ } })), h("div", { class: 'ls-dv-template-detail-section ls-dv-column' }, h("p", { class: "ls-dv-template-detail-section-title" }, dvI18n.t('documentoptions.documentretention')), h("p", null, h("input", { value: this.template?.documentRetentionDays, style: { width: '100%' }, type: 'number', onInput: e => {
179
+ e.preventDefault();
180
+ this.alter({ documentRetentionDays: e.target.value });
181
+ } }))), h("div", { class: 'ls-dv-template-detail-section ls-dv-column' }, h("p", { class: "ls-dv-template-detail-section-title" }, dvI18n.t('documentoptions.pages')), h("p", null, this.template?.pageCount)), h("div", { class: 'ls-dv-template-detail-section ls-dv-column' }, h("p", { class: "ls-dv-template-detail-section-title" }, dvI18n.t('documentoptions.datecreated')), " ", h("p", null, formatDate(this.template?.created))), h("div", { class: 'ls-dv-template-detail-section ls-dv-column' }, h("p", { class: "ls-dv-template-detail-section-title" }, dvI18n.t('documentoptions.createdby')), " ", h("p", null, this.template?.createdBy))), h("slot", null), h("ls-tooltip", { tooltipId: "ls-dv-tooltip" })));
182
+ }
183
+ static get watchers() { return {
184
+ "template": ["selectedHandler"]
185
+ }; }
186
+ };
187
+ LsDocumentOptions.style = lsDocumentOptionsCss();
188
+
189
+ const lsFeatureColumnCss = () => `:host{display:flex;flex-direction:column;gap:0.75rem;padding:0.25rem}.ls-dv-active-icon,.ls-dv-default-icon{padding:0.75rem;border-radius:1rem;color:var(--gray-80, #6f7176)}.ls-dv-default-icon:hover{background-color:var(--primary-10, #eff4ff);color:var(--primary-100, #0c1457);cursor:pointer}.ls-dv-active-icon{background-color:var(--primary-60, #4456f6);color:var(--white, #ffffff)}.ls-dv-hidden{display:none}`;
190
+
191
+ const LsFeatureColoumn = class {
192
+ constructor(hostRef) {
193
+ registerInstance(this, hostRef);
194
+ this.manage = createEvent(this, "manage", 7);
195
+ }
196
+ get component() { return getElement(this); }
197
+ /**
198
+ * Determines / sets which of the far left 'managers' is active.
199
+ * {'document' | 'toolbox' | 'participant' }
200
+ */
201
+ manager = 'toolbox';
202
+ /**
203
+ * The mode that document viewer is being used in.
204
+ * {'preview' | 'editor' | 'custom'}
205
+ */
206
+ mode = 'editor';
207
+ // Send an manager change up the DOM
208
+ manage;
209
+ componentDidLoad() {
210
+ }
211
+ render() {
212
+ return (h(Host, { key: '9d04bb0991d2b703f9d3aae1bbeaba1e4435244f' }, h("div", { key: '87c0a840f6ee79737187d49cdab70c1628392551', class: this.mode !== "editor" ? 'ls-dv-hidden' : this.manager === 'document' ? 'ls-dv-active-icon' : 'ls-dv-default-icon', onClick: () => {
213
+ this.manage.emit('document');
214
+ this.manager = 'document';
215
+ }, "data-tooltip-id": "ls-dv-tooltip", "data-tooltip-html": `<strong>${dvI18n.t('featurecolumn.templatedetails')}</strong><br/>${dvI18n.t('featurecolumn.templatedetailstooltip')}`, "data-tooltip-place": "right" }, h("ls-icon", { key: '2c394fa1d93840f9aa389df613795cb12cd46a12', name: "document-icon", size: 24 })), h("div", { key: '3159f85bb836b1cc99c2f22057b78cbf1feef509', class: this.manager === 'toolbox' ? 'ls-dv-active-icon' : 'ls-dv-default-icon', onClick: () => {
216
+ this.manage.emit('toolbox');
217
+ this.manager = 'toolbox';
218
+ }, "data-tooltip-id": "ls-dv-tooltip", "data-tooltip-html": `<strong>${dvI18n.t('featurecolumn.fieldtypes')}</strong><br/>${dvI18n.t('featurecolumn.fieldtypestooltip')}`, "data-tooltip-place": "right" }, h("ls-icon", { key: '67b8eede3eaf341ea1d13e4968b1ec959cdf4431', name: "typing-input-icon", size: 24 })), h("div", { key: 'af82b8e8d330de072f3e43924c780bc022956823', class: this.mode !== "editor" ? 'ls-dv-hidden' : this.manager === 'participant' ? 'ls-dv-active-icon' : 'ls-dv-default-icon', onClick: () => {
219
+ this.manage.emit('participant');
220
+ this.manager = 'participant';
221
+ }, "data-tooltip-id": "ls-dv-tooltip", "data-tooltip-html": `<strong>${dvI18n.t('featurecolumn.participants')}</strong><br/>${dvI18n.t('featurecolumn.participantstooltip')}`, "data-tooltip-place": "right" }, h("ls-icon", { key: '21432806a27193222886b07220fa579780e5239c', name: "user-group-icon", size: 24 })), h("div", { key: 'bb0c623d9cfe2e1579c434e1bd5220fe62e101c3', class: this.mode !== "compose" ? 'ls-dv-hidden' : this.manager === 'recipient' ? 'ls-dv-active-icon' : 'ls-dv-default-icon', onClick: () => {
222
+ this.manage.emit('recipient');
223
+ this.manager = 'recipient';
224
+ }, "data-tooltip-id": "ls-dv-tooltip", "data-tooltip-html": `<strong>${dvI18n.t('featurecolumn.recipients')}</strong><br/>${dvI18n.t('featurecolumn.recipientstooltip')}`, "data-tooltip-place": "right" }, h("ls-icon", { key: 'f595f2426bc6392c7f18157ea6fddfa97e87a477', name: "user-group-icon", size: 24 })), h("div", { key: '5a28cf31a458908f221b3c1120793a36fa843a88', class: this.mode !== "preview" ? 'ls-dv-hidden' : this.manager === 'validation' ? 'ls-dv-active-icon' : 'ls-dv-default-icon', onClick: () => {
225
+ this.manage.emit('validation');
226
+ this.manager = 'validation';
227
+ }, "data-tooltip-id": "ls-dv-tooltip", "data-tooltip-html": `<strong>${dvI18n.t('featurecolumn.validation')}</strong><br/>${dvI18n.t('featurecolumn.validationtooltip')}`, "data-tooltip-place": "right" }, h("ls-icon", { key: 'bc9036e2e27513a9f89b597997ba906096648744', name: "adjustments-icon", size: 24 })), h("slot", { key: 'ba34f0ac0354779dcf958097faa29b0e3278eda6' }), h("ls-tooltip", { key: '6238d20870825e456b4253135640942b079b8ea4', tooltipId: "ls-dv-tooltip" })));
228
+ }
229
+ };
230
+ LsFeatureColoumn.style = lsFeatureColumnCss();
231
+
232
+ const lsFieldPropertiesCss = () => `:host{display:block;width:100%;padding:1rem}p{color:var(--gray-80, #6f7176);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.ls-dv-button-link,.ls-dv-button-link:hover{all:unset}select{appearance:none;height:2.25rem}.ls-dv-input-wrapper{position:relative;width:fit-content}#selectorIcon{position:absolute;top:50%;right:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6f7176)}#selectLeadingIcon{position:absolute;top:50%;left:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6f7176)}.ls-dv-has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.625rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover,select:hover,textarea:hover{border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #ffffff)}input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #ffffff)}input:active,select:active,textarea:active{border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa)}input[type=checkbox]{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type=checkbox]:checked,input[type=checkbox].ls-dv-indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type=checkbox]:checked::after{content:"";position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type=checkbox].ls-dv-indeterminate::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type=checkbox]:checked:hover,input[type=checkbox].ls-dv-indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type=checkbox]:hover{border:1px solid #9ca3af}input[type=checkbox]:focus,input[type=checkbox]:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type=checkbox]:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type=checkbox]:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.ls-dv-checkbox-container{display:flex;gap:0.5rem;width:100%}.ls-dv-checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.ls-dv-form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.ls-dv-form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.ls-dv-loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #4456f6)}button{border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.ls-dv-tertiary-grey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #6f7176)}button.ls-dv-tertiary-grey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}.ls-dv-button-group{display:flex;border-radius:0.625rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip}.ls-dv-button-group button{display:flex;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;min-height:unset;color:var(--gray-80, #6f7176)}.ls-dv-button-group button:hover{background:var(--gray-10, #f7f8fa)}.ls-dv-button-group>:first-child{border-radius:0.625rem 0 0 0.625rem}.ls-dv-button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.ls-dv-button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}`;
233
+
234
+ const LsFieldProperties = class {
235
+ constructor(hostRef) {
236
+ registerInstance(this, hostRef);
237
+ }
238
+ dataItem;
239
+ template; // LSApiTemplate
240
+ readonly = false;
241
+ renderFields() {
242
+ if (this.dataItem && this.dataItem?.length === 1) {
243
+ switch (this.dataItem[0].formElementType) {
244
+ case 'signature':
245
+ return h("ls-field-properties-signature", { dataItem: this.dataItem[0], template: this.template, readonly: this.readonly });
246
+ case 'date':
247
+ return h("ls-field-properties-date", { dataItem: this.dataItem[0], readonly: this.readonly });
248
+ case 'signing date':
249
+ return h("ls-field-properties-date", { dataItem: this.dataItem[0], readonly: this.readonly });
250
+ case 'text':
251
+ return h("ls-field-properties-text", { dataItem: this.dataItem[0], readonly: this.readonly });
252
+ case 'number':
253
+ return h("ls-field-properties-number", { dataItem: this.dataItem[0], readonly: this.readonly });
254
+ case 'autosign':
255
+ return h("ls-field-properties-autosign", { dataItem: this.dataItem[0], readonly: this.readonly });
256
+ case 'email':
257
+ return h("ls-field-properties-email", { dataItem: this.dataItem[0], readonly: this.readonly });
258
+ case 'image':
259
+ return h("ls-field-properties-image", { dataItem: this.dataItem[0], readonly: this.readonly });
260
+ case 'file':
261
+ return h("ls-field-properties-file", { dataItem: this.dataItem[0], readonly: this.readonly });
262
+ case 'dropdown':
263
+ return h("ls-field-properties-file", { dataItem: this.dataItem[0], readonly: this.readonly });
264
+ default:
265
+ return h("ls-field-properties-general", { dataItem: this.dataItem[0], readonly: this.readonly });
266
+ }
267
+ }
268
+ else if (this.dataItem && this.dataItem?.length > 1)
269
+ return h("ls-field-properties-multiple", { dataItem: this.dataItem, readonly: this.readonly });
270
+ }
271
+ handleKeyDown = (event) => {
272
+ event.stopPropagation();
273
+ };
274
+ handleKeyUp = (event) => {
275
+ event.stopPropagation();
276
+ };
277
+ render() {
278
+ return (h(Host, { key: '8a711d56d7c988d3ded4153dbd1a8b5d8b82d458', onKeyDown: this.handleKeyDown, onKeyUp: this.handleKeyUp }, this.dataItem && this.renderFields(), h("slot", { key: 'e3e5dc0fc41d78c5fca1ddbae4fbd68f4145e628' })));
279
+ }
280
+ };
281
+ LsFieldProperties.style = lsFieldPropertiesCss();
282
+
283
+ const lsFieldPropertiesAutosignCss = () => `:host{display:block}p{color:var(--gray-80, #6f7176);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.ls-dv-button-link,.ls-dv-button-link:hover{all:unset}select{appearance:none;height:2.25rem}.ls-dv-input-wrapper{position:relative;width:fit-content}#selectorIcon{position:absolute;top:50%;right:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6f7176)}#selectLeadingIcon{position:absolute;top:50%;left:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6f7176)}.ls-dv-has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.625rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover,select:hover,textarea:hover{border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #ffffff)}input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #ffffff)}input:active,select:active,textarea:active{border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa)}input[type=checkbox]{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type=checkbox]:checked,input[type=checkbox].ls-dv-indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type=checkbox]:checked::after{content:"";position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type=checkbox].ls-dv-indeterminate::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type=checkbox]:checked:hover,input[type=checkbox].ls-dv-indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type=checkbox]:hover{border:1px solid #9ca3af}input[type=checkbox]:focus,input[type=checkbox]:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type=checkbox]:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type=checkbox]:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.ls-dv-checkbox-container{display:flex;gap:0.5rem;width:100%}.ls-dv-checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.ls-dv-form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.ls-dv-form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.ls-dv-loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #4456f6)}button{border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.ls-dv-tertiary-grey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #6f7176)}button.ls-dv-tertiary-grey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}.ls-dv-button-group{display:flex;border-radius:0.625rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip}.ls-dv-button-group button{display:flex;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;min-height:unset;color:var(--gray-80, #6f7176)}.ls-dv-button-group button:hover{background:var(--gray-10, #f7f8fa)}.ls-dv-button-group>:first-child{border-radius:0.625rem 0 0 0.625rem}.ls-dv-button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.ls-dv-button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}`;
284
+
285
+ const LsFieldPropertiesAutosign = class {
286
+ constructor(hostRef) {
287
+ registerInstance(this, hostRef);
288
+ }
289
+ dataItem;
290
+ readonly = false;
291
+ render() {
292
+ return (h(Host, { key: '796d793a5890e9c1ba9a1ab8ead252129a2d6567' }, h("div", { key: '4b4e6361dfba1c768e87d4eed987e86ad81f9046', class: "ls-dv-field-properties-section" }, "Self Sign Field"), h("div", { key: '6a239ae5e86d40da6af79b9bedcbda082fe0b8e3' }, "Label: ", h("input", { key: '320f6751bbf1c10cd29f147bcbe974f233a5a538', value: this.dataItem?.label, width: "30" })), h("ls-field-dimensions", { key: 'a3ac441f17dcfa1f57aa7d7014153289495f4406', dataItem: this.dataItem, readonly: this.readonly }), h("ls-field-properties-advanced", { key: 'fa3573d8ff9ba637fa5dd658dd2b2b5cf7eb392b', dataItem: this.dataItem, readonly: this.readonly }), h("ls-field-footer", { key: 'd33377ecafc922d8d115c539e557fd39b0c75804', dataItem: this.dataItem, readonly: this.readonly }), h("slot", { key: 'fb402b881e4089672c6fcdfb5db64db8b4c5e73d' })));
293
+ }
294
+ };
295
+ LsFieldPropertiesAutosign.style = lsFieldPropertiesAutosignCss();
296
+
297
+ const lsFieldPropertiesDateCss = () => `:host{display:flex;flex-direction:column;gap:1rem;width:100%;height:100%;position:relative}*{margin:0}.ls-dv-field-set{display:flex;flex-direction:column;gap:1rem;width:100%}p{color:var(--gray-80, #6f7176);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.ls-dv-button-link,.ls-dv-button-link:hover{all:unset}select{appearance:none;height:2.25rem;width:100%}.ls-dv-has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.625rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover,select:hover,textarea:hover{border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #ffffff)}input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #ffffff)}input:active,select:active,textarea:active{border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa)}input[type=checkbox]{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type=checkbox]:checked,input[type=checkbox].ls-dv-indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type=checkbox]:checked::after{content:"";position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type=checkbox].ls-dv-indeterminate::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type=checkbox]:checked:hover,input[type=checkbox].ls-dv-indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type=checkbox]:hover{border:1px solid #9ca3af}input[type=checkbox]:focus,input[type=checkbox]:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type=checkbox]:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type=checkbox]:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.ls-dv-checkbox-container{display:flex;gap:0.5rem;width:100%}.ls-dv-checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.ls-dv-form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.ls-dv-form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.ls-dv-loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #4456f6)}button{display:flex;gap:0.5rem;border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;font-weight:500;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.ls-dv-tertiary-grey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #6f7176)}button.ls-dv-tertiary-grey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.ls-dv-secondary{border:1px solid var(--gray-50, #c8c9cc);background:var(--white, #ffffff);color:var(--gray-90, #5e6066);box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)}button.ls-dv-secondary:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.ls-dv-destructive{border:1px solid var(--red-60, #f64a44);background-color:white;color:var(--red-60, #f64a44)}button.ls-dv-destructive:hover{border:1px solid var(--red-70, #dc2721);background:var(--red-10, #fff0f0)}.ls-dv-button-group{display:flex;border-radius:0.625rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip}.ls-dv-button-group button{display:flex;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;min-height:unset;color:var(--gray-80, #6f7176)}.ls-dv-button-group button:hover{background:var(--gray-10, #f7f8fa)}.ls-dv-button-group>:first-child{border-radius:0.625rem 0 0 0.625rem}.ls-dv-button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.ls-dv-button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}`;
298
+
299
+ const LsFieldPropertiesDate = class {
300
+ constructor(hostRef) {
301
+ registerInstance(this, hostRef);
302
+ }
303
+ dataItem;
304
+ readonly = false;
305
+ render() {
306
+ return (h(Host, { key: '69ad973b207cbf0c1b3f86ab2d75f9fe2ec3323d' }, h("ls-field-properties-container", { key: 'c448b123695b2f24e5baac38827593347d2fedd8', tabs: ['content', 'placement', 'dimensions'] }, h("div", { key: '03a55608eb31dde85b30d98ae46d54593b6719f3', class: 'ls-dv-field-set', slot: "content" }, h("ls-field-content", { key: '386fab75cc620a80594ce37a9c3ef0640c32fd16', dataItem: this.dataItem, readonly: this.readonly }), h("ls-field-properties-advanced", { key: 'bc47ff53d32201fe5ae27c28f26f9e0ee814ff1e', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: 'a8d7ef77b11bb0a2d9126e1b4966b7dac1cd4bd0', class: 'ls-dv-field-set', slot: "dimensions" }, h("ls-field-dimensions", { key: 'd48b3dce87d46fe27adfffee3d5a80a9317cf518', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: '6a0f11512f0e28f91e381119f2db69223ab9f49d', class: 'ls-dv-field-set', slot: "placement" }, h("ls-field-placement", { key: '237536b600b7bf428a5bf5b829cf806884e0e891', dataItem: this.dataItem, readonly: this.readonly }))), h("ls-field-footer", { key: '29b0d40c3cf3213b54341d2bb256fc66729a72a3', dataItem: this.dataItem, readonly: this.readonly })));
307
+ }
308
+ };
309
+ LsFieldPropertiesDate.style = lsFieldPropertiesDateCss();
310
+
311
+ const lsFieldPropertiesEmailCss = () => `:host{display:flex;flex-direction:column;gap:1rem;width:100%;height:100%;position:relative}*{margin:0}.ls-dv-field-set{display:flex;flex-direction:column;gap:1rem;width:100%}p{color:var(--gray-80, #6f7176);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.ls-dv-button-link,.ls-dv-button-link:hover{all:unset}select{appearance:none;height:2.25rem;width:100%}.ls-dv-has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.625rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover,select:hover,textarea:hover{border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #ffffff)}input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #ffffff)}input:active,select:active,textarea:active{border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa)}input[type=checkbox]{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type=checkbox]:checked,input[type=checkbox].ls-dv-indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type=checkbox]:checked::after{content:"";position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type=checkbox].ls-dv-indeterminate::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type=checkbox]:checked:hover,input[type=checkbox].ls-dv-indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type=checkbox]:hover{border:1px solid #9ca3af}input[type=checkbox]:focus,input[type=checkbox]:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type=checkbox]:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type=checkbox]:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.ls-dv-checkbox-container{display:flex;gap:0.5rem;width:100%}.ls-dv-checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.ls-dv-form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.ls-dv-form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.ls-dv-loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #4456f6)}button{display:flex;gap:0.5rem;border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;font-weight:500;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.ls-dv-tertiary-grey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #6f7176)}button.ls-dv-tertiary-grey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.ls-dv-secondary{border:1px solid var(--gray-50, #c8c9cc);background:var(--white, #ffffff);color:var(--gray-90, #5e6066);box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)}button.ls-dv-secondary:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.ls-dv-destructive{border:1px solid var(--red-60, #f64a44);background-color:white;color:var(--red-60, #f64a44)}button.ls-dv-destructive:hover{border:1px solid var(--red-70, #dc2721);background:var(--red-10, #fff0f0)}.ls-dv-button-group{display:flex;border-radius:0.625rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip}.ls-dv-button-group button{display:flex;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;min-height:unset;color:var(--gray-80, #6f7176)}.ls-dv-button-group button:hover{background:var(--gray-10, #f7f8fa)}.ls-dv-button-group>:first-child{border-radius:0.625rem 0 0 0.625rem}.ls-dv-button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.ls-dv-button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}`;
312
+
313
+ const LsFieldPropertiesEmail = class {
314
+ constructor(hostRef) {
315
+ registerInstance(this, hostRef);
316
+ }
317
+ dataItem;
318
+ readonly = false;
319
+ render() {
320
+ return (h(Host, { key: '3b4d2155764de3bdeec0f02de4119ca4f0abbcff' }, h("ls-field-properties-container", { key: '2c67d7445d17e2440b437e72f5d457c8c1d6dbd2', tabs: ['content', 'placement', 'dimensions'] }, h("div", { key: 'f1befef1ad6d9ac7694bc6b685050667bbf319f3', class: 'ls-dv-field-set', slot: "content" }, h("ls-field-content", { key: '1d84a5dae44d9e532ed423ec12e039ed97a63fba', dataItem: this.dataItem, readonly: this.readonly }), h("ls-field-properties-advanced", { key: '232b1b3a1de2d306860c3fa9146646bf33ff0b24', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: '94dc8fb660a9260fe4350a0e7dd2e2b35f38424e', class: 'ls-dv-field-set', slot: "dimensions" }, h("ls-field-dimensions", { key: 'c94152abb49cc46030893411f11fa69f3c5c6043', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: 'fdc3ebfbb77ec53b6d2b4678b941d7d1f974bdb8', class: 'ls-dv-field-set', slot: "placement" }, h("ls-field-placement", { key: 'dbe5208fb0c12561dd4c0722a1989606d7a8d23a', dataItem: this.dataItem, readonly: this.readonly }))), h("ls-field-footer", { key: '216a5b8216439cf7fcbf4b467a0461c5c6e5028d', dataItem: this.dataItem, readonly: this.readonly })));
321
+ }
322
+ };
323
+ LsFieldPropertiesEmail.style = lsFieldPropertiesEmailCss();
324
+
325
+ const lsFieldPropertiesFileCss = () => `:host{display:flex;flex-direction:column;gap:1rem;width:100%;height:100%;position:relative}*{margin:0}.ls-dv-field-set{display:flex;flex-direction:column;gap:1rem;width:100%}p{color:var(--gray-80, #6f7176);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.ls-dv-button-link,.ls-dv-button-link:hover{all:unset}select{appearance:none;height:2.25rem;width:100%}.ls-dv-has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.625rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover,select:hover,textarea:hover{border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #ffffff)}input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #ffffff)}input:active,select:active,textarea:active{border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa)}input[type=checkbox]{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type=checkbox]:checked,input[type=checkbox].ls-dv-indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type=checkbox]:checked::after{content:"";position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type=checkbox].ls-dv-indeterminate::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type=checkbox]:checked:hover,input[type=checkbox].ls-dv-indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type=checkbox]:hover{border:1px solid #9ca3af}input[type=checkbox]:focus,input[type=checkbox]:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type=checkbox]:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type=checkbox]:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.ls-dv-checkbox-container{display:flex;gap:0.5rem;width:100%}.ls-dv-checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.ls-dv-form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.ls-dv-form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.ls-dv-loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #4456f6)}button{display:flex;gap:0.5rem;border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;font-weight:500;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.ls-dv-tertiary-grey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #6f7176)}button.ls-dv-tertiary-grey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.ls-dv-secondary{border:1px solid var(--gray-50, #c8c9cc);background:var(--white, #ffffff);color:var(--gray-90, #5e6066);box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)}button.ls-dv-secondary:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.ls-dv-destructive{border:1px solid var(--red-60, #f64a44);background-color:white;color:var(--red-60, #f64a44)}button.ls-dv-destructive:hover{border:1px solid var(--red-70, #dc2721);background:var(--red-10, #fff0f0)}.ls-dv-button-group{display:flex;border-radius:0.625rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip}.ls-dv-button-group button{display:flex;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;min-height:unset;color:var(--gray-80, #6f7176)}.ls-dv-button-group button:hover{background:var(--gray-10, #f7f8fa)}.ls-dv-button-group>:first-child{border-radius:0.625rem 0 0 0.625rem}.ls-dv-button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.ls-dv-button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}`;
326
+
327
+ const LsFieldPropertiesFile = class {
328
+ constructor(hostRef) {
329
+ registerInstance(this, hostRef);
330
+ }
331
+ dataItem;
332
+ readonly = false;
333
+ render() {
334
+ return (h(Host, { key: 'b27de84229ca63eb19de6c845e6182c4e90526d3' }, h("ls-field-properties-container", { key: '8a4e28b41567239b1880b952b650f52d17b3d513', tabs: ['content', 'placement', 'dimensions'] }, h("div", { key: 'e74993366420f2185c2414756e7a2ea1c07719fa', class: 'ls-dv-field-set', slot: "content" }, h("ls-field-content", { key: '14b8adda4ea918dddfe2d5ad55ebe2f67d6b0553', dataItem: this.dataItem, readonly: this.readonly }), h("ls-field-properties-advanced", { key: '0098d039bf061542d949837225fed65170413da1', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: '3ceae547b879471f36a236a951f8746a0fef957a', class: 'ls-dv-field-set', slot: "dimensions" }, h("ls-field-dimensions", { key: '3224ef586fb9c767800a87d2850f2fe35319a906', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: 'c5635b01d0a142bdbee08720679aaf21ef0fcf5a', class: 'ls-dv-field-set', slot: "placement" }, h("ls-field-placement", { key: 'a049c5c3997ad42ea05323ba071045e8d7cecec8', dataItem: this.dataItem, readonly: this.readonly }))), h("ls-field-footer", { key: 'cf3c7d0f2cf380631e2319f18f96f54cdff73592', dataItem: this.dataItem, readonly: this.readonly })));
335
+ }
336
+ };
337
+ LsFieldPropertiesFile.style = lsFieldPropertiesFileCss();
338
+
339
+ const lsFieldPropertiesGeneralCss = () => `:host{display:flex;flex-direction:column;gap:1rem;width:100%;height:100%;position:relative}*{margin:0}.ls-dv-field-set{display:flex;flex-direction:column;gap:1rem;width:100%}p{color:var(--gray-80, #6f7176);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.ls-dv-button-link,.ls-dv-button-link:hover{all:unset}select{appearance:none;height:2.25rem;width:100%}.ls-dv-has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.625rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover,select:hover,textarea:hover{border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #ffffff)}input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #ffffff)}input:active,select:active,textarea:active{border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa)}input[type=checkbox]{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type=checkbox]:checked,input[type=checkbox].ls-dv-indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type=checkbox]:checked::after{content:"";position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type=checkbox].ls-dv-indeterminate::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type=checkbox]:checked:hover,input[type=checkbox].ls-dv-indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type=checkbox]:hover{border:1px solid #9ca3af}input[type=checkbox]:focus,input[type=checkbox]:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type=checkbox]:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type=checkbox]:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.ls-dv-checkbox-container{display:flex;gap:0.5rem;width:100%}.ls-dv-checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.ls-dv-form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.ls-dv-form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.ls-dv-loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #4456f6)}button{display:flex;gap:0.5rem;border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;font-weight:500;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.ls-dv-tertiary-grey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #6f7176)}button.ls-dv-tertiary-grey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.ls-dv-secondary{border:1px solid var(--gray-50, #c8c9cc);background:var(--white, #ffffff);color:var(--gray-90, #5e6066);box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)}button.ls-dv-secondary:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.ls-dv-destructive{border:1px solid var(--red-60, #f64a44);background-color:white;color:var(--red-60, #f64a44)}button.ls-dv-destructive:hover{border:1px solid var(--red-70, #dc2721);background:var(--red-10, #fff0f0)}.ls-dv-button-group{display:flex;border-radius:0.625rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip}.ls-dv-button-group button{display:flex;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;min-height:unset;color:var(--gray-80, #6f7176)}.ls-dv-button-group button:hover{background:var(--gray-10, #f7f8fa)}.ls-dv-button-group>:first-child{border-radius:0.625rem 0 0 0.625rem}.ls-dv-button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.ls-dv-button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}`;
340
+
341
+ const LsFieldPropertiesGeneral = class {
342
+ constructor(hostRef) {
343
+ registerInstance(this, hostRef);
344
+ }
345
+ dataItem;
346
+ readonly = false;
347
+ render() {
348
+ return (h(Host, { key: 'cad381380937e12a412ece7255aa32c5b957d341' }, h("ls-field-properties-container", { key: '271d9a757e93791371dc87a35b9b88db11a9073b', tabs: ['content', 'placement', 'dimensions'] }, h("div", { key: 'aa0275b878ca52d85e06ee027019eaee0f88d72f', class: 'ls-dv-field-set', slot: "content" }, h("ls-field-content", { key: '6245220b2068a05d05f0bf559ca2112f7b05d989', dataItem: this.dataItem, readonly: this.readonly }), h("ls-field-properties-advanced", { key: '38cf9305d208ef12f77694f8f44e6b37594e9055', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: '46541217824afeba61c8bf66ae038c5720f75114', class: 'ls-dv-field-set', slot: "dimensions" }, h("ls-field-dimensions", { key: '0774f0e6753b676c12fe80cc3c09e9c784d9530b', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: 'd7ac97520e031cd7e88983de6fd1913c80b016cb', class: 'ls-dv-field-set', slot: "placement" }, h("ls-field-placement", { key: 'b18bd7ef8727a39727be7f439cbc48c8534d324f', dataItem: this.dataItem, readonly: this.readonly }))), h("ls-field-footer", { key: 'cce6f2def47b39ebb36ac5a36c83e0cfa9ec33f5', dataItem: this.dataItem, readonly: this.readonly })));
349
+ }
350
+ };
351
+ LsFieldPropertiesGeneral.style = lsFieldPropertiesGeneralCss();
352
+
353
+ const lsFieldPropertiesImageCss = () => `:host{display:flex;flex-direction:column;gap:1rem;width:100%;height:100%;position:relative}*{margin:0}.ls-dv-field-set{display:flex;flex-direction:column;gap:1rem;width:100%}p{color:var(--gray-80, #6f7176);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.ls-dv-button-link,.ls-dv-button-link:hover{all:unset}select{appearance:none;height:2.25rem;width:100%}.ls-dv-has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.625rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover,select:hover,textarea:hover{border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #ffffff)}input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #ffffff)}input:active,select:active,textarea:active{border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa)}input[type=checkbox]{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type=checkbox]:checked,input[type=checkbox].ls-dv-indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type=checkbox]:checked::after{content:"";position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type=checkbox].ls-dv-indeterminate::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type=checkbox]:checked:hover,input[type=checkbox].ls-dv-indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type=checkbox]:hover{border:1px solid #9ca3af}input[type=checkbox]:focus,input[type=checkbox]:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type=checkbox]:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type=checkbox]:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.ls-dv-checkbox-container{display:flex;gap:0.5rem;width:100%}.ls-dv-checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.ls-dv-form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.ls-dv-form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.ls-dv-loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #4456f6)}button{display:flex;gap:0.5rem;border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;font-weight:500;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.ls-dv-tertiary-grey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #6f7176)}button.ls-dv-tertiary-grey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.ls-dv-secondary{border:1px solid var(--gray-50, #c8c9cc);background:var(--white, #ffffff);color:var(--gray-90, #5e6066);box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)}button.ls-dv-secondary:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.ls-dv-destructive{border:1px solid var(--red-60, #f64a44);background-color:white;color:var(--red-60, #f64a44)}button.ls-dv-destructive:hover{border:1px solid var(--red-70, #dc2721);background:var(--red-10, #fff0f0)}.ls-dv-button-group{display:flex;border-radius:0.625rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip}.ls-dv-button-group button{display:flex;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;min-height:unset;color:var(--gray-80, #6f7176)}.ls-dv-button-group button:hover{background:var(--gray-10, #f7f8fa)}.ls-dv-button-group>:first-child{border-radius:0.625rem 0 0 0.625rem}.ls-dv-button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.ls-dv-button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}`;
354
+
355
+ const LsFieldPropertiesImage = class {
356
+ constructor(hostRef) {
357
+ registerInstance(this, hostRef);
358
+ }
359
+ dataItem;
360
+ readonly = false;
361
+ render() {
362
+ return (h(Host, { key: 'e4667e666bdf4f1219025bdbc83014815e3395a3' }, h("ls-field-properties-container", { key: '51c522e89d11e8a9c7d60a0516b220b2868cd3db', tabs: ['content', 'placement', 'dimensions'] }, h("div", { key: '0623e45e5b42e784cad4a9e135687f9ab9ed4d97', class: 'ls-dv-field-set', slot: "content" }, h("ls-field-content", { key: 'e8dae21cc8cc82bdbcf7335fee57662efac8f082', dataItem: this.dataItem, readonly: this.readonly }), h("ls-field-properties-advanced", { key: '4b6c9fc26dd05066db690ac38e6c17d4176ea0b7', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: 'e3242a50f93a4523d82be92170122231e04526f8', class: 'ls-dv-field-set', slot: "dimensions" }, h("ls-field-dimensions", { key: 'e905ed1d5058ed5a6838ca39f5796f3a3711bef2', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: '3348b728451efab4759e836c876132f1fb816490', class: 'ls-dv-field-set', slot: "placement" }, h("ls-field-placement", { key: '726509f7fd32bb2e3c06b3eff421d3a53604767f', dataItem: this.dataItem, readonly: this.readonly }))), h("ls-field-footer", { key: '8eb07e3f53678cf8a2d7fc11092b3439d2bb5d8c', dataItem: this.dataItem, readonly: this.readonly })));
363
+ }
364
+ };
365
+ LsFieldPropertiesImage.style = lsFieldPropertiesImageCss();
366
+
367
+ const lsFieldPropertiesMultipleCss = () => `:host{display:flex;flex-direction:column;gap:1rem;width:100%;height:100%;position:relative}*{margin:0}.ls-dv-properties-container{display:flex;flex-direction:column;height:100%}.ls-dv-field-set{display:flex;flex-direction:column;gap:1rem;width:100%}.ls-dv-field-properties-section{display:flex;position:relative;flex-direction:column;gap:0.5rem}.ls-dv-row{flex-direction:row;align-items:center;justify-content:space-between}.ls-dv-field-properties-section-text{display:flex;flex-direction:column;gap:0.25rem;padding:0.25rem}.ls-dv-field-properties-section-title{color:var(--gray-90, #5e6066);font-size:1rem;font-style:normal;font-weight:500;line-height:1.25rem;}.ls-dv-field-properties-section-description{overflow:hidden;color:var(--gray-80, #6f7176);text-overflow:ellipsis;font-size:0.75rem;font-style:normal;font-weight:400;line-height:0.75rem;}.ls-dv-field-type-wrapper{position:relative;border-radius:0.875rem;padding:0.25rem}.ls-dv-field-type-inner{border-radius:0.625rem;background:var(--white, #ffffff);display:flex;padding:0.25rem 0.5rem 0.25rem 0.25rem;align-items:center;gap:0.875rem;align-self:stretch}.ls-dv-field-type-icon{display:flex;padding:0.5rem;align-items:center;border-radius:0.625rem;box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)}.ls-dv-field-type-name{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1.5rem;text-transform:capitalize}.ls-dv-tabs-container{display:grid;grid-template-columns:repeat(3, 1fr);width:100%;gap:0.125rem;padding:0.125rem;border:1px solid var(--gray-30, #e0e2e5);border-radius:0.75rem;background:var(--white, #ffffff)}.ls-dv-tab{all:unset;display:flex;justify-content:center;align-items:center;cursor:pointer;padding:0.5rem;border-radius:0.625rem;font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;color:var(--gray-80, #6f7176)}.ls-dv-tab.ls-dv-active{background:var(--primary-10, #eff4ff);color:var(--primary-60, #4456f6)}.ls-dv-tab:not(.ls-dv-active):hover{background:var(--gray-10, #f7f8fa)}.ls-dv-button-footer{display:flex;padding-top:1rem;border-top:1px solid var(--gray-20, #edeff2);flex-direction:column;justify-content:flex-end;gap:0.75rem;margin-top:auto}.ls-dv-scrolling-container{overflow-y:auto;padding:0 1rem;margin:0 -1rem;height:calc(100% - 10.938rem)}p{color:var(--gray-80, #6f7176);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.ls-dv-button-link,.ls-dv-button-link:hover{all:unset}select{appearance:none;height:2.25rem;width:100%}.ls-dv-input-wrapper{position:relative}.ls-dv-full-width{width:100%}#selectorIcon{position:absolute;top:50%;right:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6f7176)}#selectLeadingIcon{position:absolute;top:50%;left:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6f7176)}.ls-dv-has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.625rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover,select:hover,textarea:hover{border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #ffffff)}input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #ffffff)}input:active,select:active,textarea:active{border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa)}input[type=checkbox]{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type=checkbox]:checked,input[type=checkbox].ls-dv-indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type=checkbox]:checked::after{content:"";position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type=checkbox].ls-dv-indeterminate::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type=checkbox]:checked:hover,input[type=checkbox].ls-dv-indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type=checkbox]:hover{border:1px solid #9ca3af}input[type=checkbox]:focus,input[type=checkbox]:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type=checkbox]:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type=checkbox]:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.ls-dv-checkbox-container{display:flex;gap:0.5rem;width:100%}.ls-dv-checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.ls-dv-form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.ls-dv-form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.ls-dv-loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #4456f6)}button{display:flex;gap:0.5rem;border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;font-weight:500;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.ls-dv-tertiary-grey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #6f7176)}button.ls-dv-tertiary-grey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.ls-dv-secondary{border:1px solid var(--gray-50, #c8c9cc);background:var(--white, #ffffff);color:var(--gray-90, #5e6066);box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)}button.ls-dv-secondary:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.ls-dv-destructive{border:1px solid var(--red-60, #f64a44);background-color:white;color:var(--red-60, #f64a44)}button.ls-dv-destructive:hover{border:1px solid var(--red-70, #dc2721);background:var(--red-10, #fff0f0)}.ls-dv-button-group{display:flex;border-radius:0.625rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip}.ls-dv-button-group button{display:flex;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;min-height:unset;color:var(--gray-80, #6f7176)}.ls-dv-button-group button:hover{background:var(--gray-10, #f7f8fa)}.ls-dv-button-group>:first-child{border-radius:0.625rem 0 0 0.625rem}.ls-dv-button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.ls-dv-button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}`;
368
+
369
+ const fieldTypeKeyMap = {
370
+ 'signature': 'toolbox.signature',
371
+ 'auto sign': 'toolbox.autosign',
372
+ 'text': 'toolbox.text',
373
+ 'signing date': 'toolbox.signingdate',
374
+ 'date': 'toolbox.date',
375
+ 'initials': 'toolbox.initials',
376
+ 'checkbox': 'toolbox.checkbox',
377
+ 'email': 'toolbox.email',
378
+ 'number': 'toolbox.number',
379
+ 'image': 'toolbox.image',
380
+ 'dropdown': 'toolbox.dropdown',
381
+ 'file': 'toolbox.file',
382
+ 'drawn field': 'toolbox.drawn',
383
+ 'drawn': 'toolbox.drawn',
384
+ 'regular expression': 'toolbox.regex',
385
+ 'regex': 'toolbox.regex',
386
+ 'mixed': 'common.fields',
387
+ };
388
+ const LsFieldPropertiesMultiple = class {
389
+ constructor(hostRef) {
390
+ registerInstance(this, hostRef);
391
+ this.mutate = createEvent(this, "mutate", 7);
392
+ this.update = createEvent(this, "update", 7);
393
+ }
394
+ dataItem;
395
+ readonly = false;
396
+ mutate;
397
+ update;
398
+ // Send one or more mutations up the chain
399
+ // The source of the chain fires the mutation
400
+ // NOTE this alter is debounced to account for typing
401
+ alter(diff) {
402
+ this.dataItem = this.dataItem.map(item => ({ ...item, ...diff }));
403
+ this.debounce(diff, 500);
404
+ }
405
+ labeltimer;
406
+ debounce(diff, delay) {
407
+ if (this.labeltimer)
408
+ clearTimeout(this.labeltimer);
409
+ this.labeltimer = setTimeout(() => {
410
+ const evs = this.dataItem.map(item => ({ action: 'update', data: { ...item, ...diff } }));
411
+ this.mutate.emit(evs);
412
+ this.update.emit(evs);
413
+ }, delay);
414
+ }
415
+ allSignersSame = () => {
416
+ if (!this.dataItem || this.dataItem.length === 0)
417
+ return { isSame: true, signer: undefined };
418
+ const firstSigner = this.dataItem[0].signer;
419
+ const allSame = this.dataItem.every(item => item.signer === firstSigner);
420
+ return { isSame: allSame, signer: allSame ? firstSigner : 13 };
421
+ };
422
+ allLabelsSame = () => {
423
+ if (!this.dataItem || this.dataItem.length === 0)
424
+ return { isSame: true, label: undefined };
425
+ const firstLabel = this.dataItem[0].label;
426
+ const allSame = this.dataItem.every(item => item.label === firstLabel);
427
+ return { isSame: allSame, label: allSame ? firstLabel : undefined };
428
+ };
429
+ allElementsSame = () => {
430
+ if (!this.dataItem || this.dataItem.length === 0)
431
+ return { isSame: true, elementType: 'mixed' };
432
+ const firstElementType = this.dataItem[0].elementType;
433
+ const allSame = this.dataItem.every(item => item.elementType === firstElementType);
434
+ return { isSame: allSame, elementType: allSame ? firstElementType : 'mixed' };
435
+ };
436
+ allFieldsOptional = () => {
437
+ if (!this.dataItem || this.dataItem.length === 0)
438
+ return { isSame: true, optional: false };
439
+ const firstElementOptional = this.dataItem[0].optional;
440
+ const allSame = this.dataItem.every(item => item.optional === firstElementOptional);
441
+ return { isSame: allSame, optional: allSame ? firstElementOptional : false };
442
+ };
443
+ render() {
444
+ return (h(Host, { key: '21c331d8e6726fd2177a6259dc83a4c1d72013d0' }, h("ls-field-properties-container", { key: '70103075b20b765cd3e2fa4e9b41faa52a7dbfbb', tabs: ['content', 'placement', 'dimensions'] }, h("div", { key: '7d52c91405b3c410ae3bd26dbee9bbc9940440ff', class: 'ls-dv-field-set', slot: "content" }, h("div", { key: '2d369e4c21337ac0adf1c33145191f28e4a8a4f5', class: 'ls-dv-field-properties-section' }, h("div", { key: 'caa1f0fe955a2cadf75356b36024345ab9ac3e90', class: 'ls-dv-field-properties-section-text' }, h("p", { key: '2806214cafdaf6501e29d460e70385eb0431fadc', class: 'ls-dv-field-properties-section-title' }, dvI18n.t('fieldproperties.fieldtype')), h("p", { key: '7ca6e9ba018ac200c70423e3a8f576f55870ad63', class: 'ls-dv-field-properties-section-description' }, dvI18n.t('fieldproperties.fieldtypedescriptionmultiple'))), h("div", { key: '8d6f5ad752ba70785ed14af7b33eaeb7d791325a', class: 'ls-dv-field-type-wrapper', style: {
445
+ border: `1px dashed ${defaultRolePalette[this.allSignersSame().signer % 100].s30}`,
446
+ background: defaultRolePalette[this.allSignersSame().signer % 100].s10,
447
+ } }, h("div", { key: 'aa096db2fe07ed0b295dda267c58069f151822cd', class: 'ls-dv-field-type-inner' }, h("div", { key: 'b48617804728615d7aa5152b6c6bacd5b51a0199', class: 'ls-dv-field-type-icon', style: {
448
+ border: `1px solid ${defaultRolePalette[this.allSignersSame().signer % 100].s60}`,
449
+ color: defaultRolePalette[this.allSignersSame().signer % 100].s60,
450
+ background: defaultRolePalette[this.allSignersSame().signer % 100].s10,
451
+ } }, h("ls-icon", { key: 'a9a821363a12baf57e50b53c7239cebd14898011', name: getFieldIcon(this.allElementsSame().elementType), size: 20 })), h("p", { key: 'b55bcc2d0884eedf62cf33da3b97afebacad6a7a', class: 'ls-dv-field-type-name' }, this.dataItem.length, " ", dvI18n.t(fieldTypeKeyMap[this.allElementsSame().elementType] || 'common.fields'), " ", dvI18n.t('common.fields'))))), h("div", { key: '2c055703e9a17c16911057ae6f7ba8c4925757af', class: 'ls-dv-field-properties-section ls-dv-row' }, h("div", { key: '0678fae2efeae45c06b7edc1f80ccc6f583ad094', class: 'ls-dv-field-properties-section-text' }, h("p", { key: 'cb30c383c726d6760cfff19d9ad1c1d5ad684cea', class: 'ls-dv-field-properties-section-title' }, dvI18n.t('fieldproperties.requiredfield'))), h("ls-toggle", { key: '6e4686c4f54d25f7ec05d64589f489dc8b79f533', onValueChange: (ev) => !this.readonly && this.alter({ optional: !ev.detail }), checked: !this.allFieldsOptional().optional, indeterminate: this.allFieldsOptional().isSame === false })), h("div", { key: 'c2e52f759c785dae73e4bf8096f89ed1b249d117', class: 'ls-dv-field-properties-section' }, h("div", { key: '639bc44d6d497da687a6f5868762c2fe1f7d3fee', class: 'ls-dv-field-properties-section-text' }, h("p", { key: 'b70f4912691f080ef3cfcfb4e071d6eb798070c4', class: 'ls-dv-field-properties-section-title' }, dvI18n.t('fieldproperties.fieldlabel')), h("p", { key: '89361a9e5477ad2190561732472cd1fdc62c3fe0', class: 'ls-dv-field-properties-section-description' }, dvI18n.t('fieldproperties.fieldlabeldescription'))), h("input", { key: '744b79734e886ac76137abc20207401a9a0b46a5', value: this.allLabelsSame().label, onInput: (e) => this.alter({ label: e.target.value }), width: "30", placeholder: dvI18n.t('fieldproperties.placeholdersignhere'), disabled: this.readonly }))), h("div", { key: 'e1455fb17cd28a435f48e6608bb57972127e7575', class: 'ls-dv-field-set', slot: "dimensions" }, h("ls-field-dimensions", { key: 'c56248424553b41b587f446a5fcdacfee3ea0244', dataItem: this.dataItem, readonly: this.readonly }), h("ls-field-size", { key: '32cfdd4e812b65e181cca2550c9ef91b0f7306c0', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: 'd6daf145e13da19b1ba0a35b021b618e03e2755e', class: 'ls-dv-field-set', slot: "placement" }, h("ls-field-alignment", { key: 'cdafb88b10495193c2bf0f38a664967dd8c6d0f1', dataItem: this.dataItem, readonly: this.readonly }), h("ls-field-placement", { key: 'f56e3363bc98d09690715b31758cc3df4ecc7113', dataItem: this.dataItem, readonly: this.readonly }), h("ls-field-distribute", { key: '76e83f04c3d3973f5753b9038bbca92ff2ea2fde', dataItem: this.dataItem, readonly: this.readonly }))), h("ls-field-footer", { key: 'ff252944fabbfcdf90cae306ea9381575a334b9e', dataItem: this.dataItem, readonly: this.readonly }), h("slot", { key: '806c119839f28abcf4befe2dea5dc28591de5afc' })));
452
+ }
453
+ };
454
+ LsFieldPropertiesMultiple.style = lsFieldPropertiesMultipleCss();
455
+
456
+ const lsFieldPropertiesNumberCss = () => `:host{display:flex;flex-direction:column;gap:1rem;width:100%;height:100%;position:relative}*{margin:0}.ls-dv-field-set{display:flex;flex-direction:column;gap:1rem;width:100%}p{color:var(--gray-80, #6f7176);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.ls-dv-button-link,.ls-dv-button-link:hover{all:unset}select{appearance:none;height:2.25rem;width:100%}.ls-dv-has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.625rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover,select:hover,textarea:hover{border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #ffffff)}input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #ffffff)}input:active,select:active,textarea:active{border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa)}input[type=checkbox]{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type=checkbox]:checked,input[type=checkbox].ls-dv-indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type=checkbox]:checked::after{content:"";position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type=checkbox].ls-dv-indeterminate::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type=checkbox]:checked:hover,input[type=checkbox].ls-dv-indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type=checkbox]:hover{border:1px solid #9ca3af}input[type=checkbox]:focus,input[type=checkbox]:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type=checkbox]:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type=checkbox]:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.ls-dv-checkbox-container{display:flex;gap:0.5rem;width:100%}.ls-dv-checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.ls-dv-form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.ls-dv-form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.ls-dv-loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #4456f6)}button{display:flex;gap:0.5rem;border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;font-weight:500;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.ls-dv-tertiary-grey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #6f7176)}button.ls-dv-tertiary-grey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.ls-dv-secondary{border:1px solid var(--gray-50, #c8c9cc);background:var(--white, #ffffff);color:var(--gray-90, #5e6066);box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)}button.ls-dv-secondary:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.ls-dv-destructive{border:1px solid var(--red-60, #f64a44);background-color:white;color:var(--red-60, #f64a44)}button.ls-dv-destructive:hover{border:1px solid var(--red-70, #dc2721);background:var(--red-10, #fff0f0)}.ls-dv-button-group{display:flex;border-radius:0.625rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip}.ls-dv-button-group button{display:flex;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;min-height:unset;color:var(--gray-80, #6f7176)}.ls-dv-button-group button:hover{background:var(--gray-10, #f7f8fa)}.ls-dv-button-group>:first-child{border-radius:0.625rem 0 0 0.625rem}.ls-dv-button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.ls-dv-button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}`;
457
+
458
+ const LsFieldPropertiesNumber = class {
459
+ constructor(hostRef) {
460
+ registerInstance(this, hostRef);
461
+ }
462
+ dataItem;
463
+ readonly = false;
464
+ render() {
465
+ return (h(Host, { key: '5544d8eb23254af289b388dee34d8a592bb7f4b6' }, h("ls-field-properties-container", { key: 'b0d84298e9b5c5812e80114676c3818fc6a084b3', tabs: ['content', 'placement', 'dimensions'] }, h("div", { key: '83aa4a8b80d717a979c7e971b22ac5f7464bb71b', class: 'ls-dv-field-set', slot: "content" }, h("ls-field-content", { key: '8aed8b9920fa2cc940babdf791db98873407470a', dataItem: this.dataItem, readonly: this.readonly }), h("ls-field-properties-advanced", { key: '5319a3c09c2989825f39c7a74866ad7d57aa3f81', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: '5abbb75f57a91561e928e7fe852ce24510fcdafc', class: 'ls-dv-field-set', slot: "dimensions" }, h("ls-field-dimensions", { key: 'be91cbce65ad4b7383c7b9f5ec9fde98bae4f5c4', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: '4dbdd4f74ac3c6497dff88ce5bc20d1d47e7d284', class: 'ls-dv-field-set', slot: "placement" }, h("ls-field-placement", { key: '68fdecac847c636ed8e428a1ddcb29f4140f9837', dataItem: this.dataItem, readonly: this.readonly }))), h("ls-field-footer", { key: 'c63e164173ae3be09a68b6d166d3277ad405e443', dataItem: this.dataItem, readonly: this.readonly })));
466
+ }
467
+ };
468
+ LsFieldPropertiesNumber.style = lsFieldPropertiesNumberCss();
469
+
470
+ const lsFieldPropertiesSignatureCss = () => `:host{display:flex;flex-direction:column;gap:1rem;width:100%;height:100%;position:relative}*{margin:0}.ls-dv-field-set{display:flex;flex-direction:column;gap:1rem;width:100%}p{color:var(--gray-80, #6f7176);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.ls-dv-button-link,.ls-dv-button-link:hover{all:unset}select{appearance:none;height:2.25rem;width:100%}.ls-dv-has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.625rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover,select:hover,textarea:hover{border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #ffffff)}input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #ffffff)}input:active,select:active,textarea:active{border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa)}input[type=checkbox]{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type=checkbox]:checked,input[type=checkbox].ls-dv-indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type=checkbox]:checked::after{content:"";position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type=checkbox].ls-dv-indeterminate::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type=checkbox]:checked:hover,input[type=checkbox].ls-dv-indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type=checkbox]:hover{border:1px solid #9ca3af}input[type=checkbox]:focus,input[type=checkbox]:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type=checkbox]:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type=checkbox]:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.ls-dv-checkbox-container{display:flex;gap:0.5rem;width:100%}.ls-dv-checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.ls-dv-form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.ls-dv-form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.ls-dv-loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #4456f6)}button{display:flex;gap:0.5rem;border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;font-weight:500;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.ls-dv-tertiary-grey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #6f7176)}button.ls-dv-tertiary-grey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.ls-dv-secondary{border:1px solid var(--gray-50, #c8c9cc);background:var(--white, #ffffff);color:var(--gray-90, #5e6066);box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)}button.ls-dv-secondary:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.ls-dv-destructive{border:1px solid var(--red-60, #f64a44);background-color:white;color:var(--red-60, #f64a44)}button.ls-dv-destructive:hover{border:1px solid var(--red-70, #dc2721);background:var(--red-10, #fff0f0)}.ls-dv-button-group{display:flex;border-radius:0.625rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip}.ls-dv-button-group button{display:flex;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;min-height:unset;color:var(--gray-80, #6f7176)}.ls-dv-button-group button:hover{background:var(--gray-10, #f7f8fa)}.ls-dv-button-group>:first-child{border-radius:0.625rem 0 0 0.625rem}.ls-dv-button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.ls-dv-button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}`;
471
+
472
+ const LsFieldPropertiesSignature = class {
473
+ constructor(hostRef) {
474
+ registerInstance(this, hostRef);
475
+ }
476
+ dataItem;
477
+ template; // LSApiTemplate
478
+ readonly = false;
479
+ render() {
480
+ return (h(Host, { key: '93042c9fc3181dbd7cc31ad9f94617e386497aa4' }, h("ls-field-properties-container", { key: 'fa83ca5fb99c882246e77d44e246d4511e643484', tabs: ['content', 'placement', 'dimensions'] }, h("div", { key: 'e78f8d84515d7c3708b04b99493a32876b45ef6a', class: 'ls-dv-field-set', slot: "content" }, h("ls-field-content", { key: 'c7cc6753c87af46c7934ab7b3629560aa0ef3241', dataItem: this.dataItem, showValidationTypes: false, readonly: this.readonly }), h("ls-field-properties-advanced", { key: '589c129e896eb59f97185bc6ba059e524a013fee', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: '7872c27031cd6f501dfdbc8fc4874af678334564', class: 'ls-dv-field-set', slot: "dimensions" }, h("ls-field-dimensions", { key: '565f84d2fbea5b41aa862406a23d2df291f7f8f2', dataItem: this.dataItem, template: this.template, readonly: this.readonly })), h("div", { key: '657bcbfc4051cda08225e3a16120b74972ee1e28', class: 'ls-dv-field-set', slot: "placement" }, h("ls-field-placement", { key: '9c6d41d28abad21256757ef1236892d7d11ce779', dataItem: this.dataItem, readonly: this.readonly }))), h("ls-field-footer", { key: '54146052a4d10cb72d3dac21437c9830707a551b', dataItem: this.dataItem, readonly: this.readonly })));
481
+ }
482
+ };
483
+ LsFieldPropertiesSignature.style = lsFieldPropertiesSignatureCss();
484
+
485
+ const lsFieldPropertiesTextCss = () => `:host{display:flex;flex-direction:column;gap:1rem;width:100%;height:100%;position:relative}*{margin:0}.ls-dv-field-set{display:flex;flex-direction:column;gap:1rem;width:100%}p{color:var(--gray-80, #6f7176);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.ls-dv-button-link,.ls-dv-button-link:hover{all:unset}select{appearance:none;height:2.25rem;width:100%}.ls-dv-has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.625rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover,select:hover,textarea:hover{border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #ffffff)}input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #ffffff)}input:active,select:active,textarea:active{border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa)}input[type=checkbox]{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type=checkbox]:checked,input[type=checkbox].ls-dv-indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type=checkbox]:checked::after{content:"";position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type=checkbox].ls-dv-indeterminate::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type=checkbox]:checked:hover,input[type=checkbox].ls-dv-indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type=checkbox]:hover{border:1px solid #9ca3af}input[type=checkbox]:focus,input[type=checkbox]:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type=checkbox]:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type=checkbox]:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.ls-dv-checkbox-container{display:flex;gap:0.5rem;width:100%}.ls-dv-checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.ls-dv-form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.ls-dv-form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.ls-dv-loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #4456f6)}button{display:flex;gap:0.5rem;border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;font-weight:500;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.ls-dv-tertiary-grey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #6f7176)}button.ls-dv-tertiary-grey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.ls-dv-secondary{border:1px solid var(--gray-50, #c8c9cc);background:var(--white, #ffffff);color:var(--gray-90, #5e6066);box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)}button.ls-dv-secondary:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.ls-dv-destructive{border:1px solid var(--red-60, #f64a44);background-color:white;color:var(--red-60, #f64a44)}button.ls-dv-destructive:hover{border:1px solid var(--red-70, #dc2721);background:var(--red-10, #fff0f0)}.ls-dv-button-group{display:flex;border-radius:0.625rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip}.ls-dv-button-group button{display:flex;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;min-height:unset;color:var(--gray-80, #6f7176)}.ls-dv-button-group button:hover{background:var(--gray-10, #f7f8fa)}.ls-dv-button-group>:first-child{border-radius:0.625rem 0 0 0.625rem}.ls-dv-button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.ls-dv-button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}`;
486
+
487
+ const LsFieldPropertiesText = class {
488
+ constructor(hostRef) {
489
+ registerInstance(this, hostRef);
490
+ }
491
+ dataItem;
492
+ readonly = false;
493
+ render() {
494
+ return (h(Host, { key: '69d5bea954ed859f7590a767c4f6c843d75d1a39' }, h("ls-field-properties-container", { key: '103791254cf8170d7ae6eddf2908af77b0702d24', tabs: ['content', 'placement', 'dimensions'] }, h("div", { key: 'a15e2d32b0e216f264eea798986a9b3f2f20b2a0', class: 'ls-dv-field-set', slot: "content" }, h("ls-field-content", { key: 'fbecb6614bfcda0f179e335caa1e39a42d9c6f48', dataItem: this.dataItem, readonly: this.readonly }), h("ls-field-properties-advanced", { key: '3c43748d69d50f5e24597c7c4da23276582b8e30', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: '2d91e7563025d3e6232767f9cbd5320a3df086df', class: 'ls-dv-field-set', slot: "dimensions" }, h("ls-field-dimensions", { key: '5a9188e1586218fcd12ea4ae21e1b8700b022d79', dataItem: this.dataItem, readonly: this.readonly })), h("div", { key: 'b0bc42db750d544ec69a1b165a5945f6c1f7ccfa', class: 'ls-dv-field-set', slot: "placement" }, h("ls-field-placement", { key: '5b55324eb6ae03a7b1962ad4920fd71789ae6433', dataItem: this.dataItem, readonly: this.readonly }))), h("ls-field-footer", { key: '0a6f79e656aedc74c429d6400d50548d1005942b', dataItem: this.dataItem, readonly: this.readonly })));
495
+ }
496
+ };
497
+ LsFieldPropertiesText.style = lsFieldPropertiesTextCss();
498
+
499
+ const lsParticipantCardCss = () => `:host{display:block}*{box-sizing:border-box;margin:0}.ls-dv-participant-card{display:flex;padding:0.625rem;flex-direction:column;align-items:flex-start;gap:0.5rem;align-self:stretch;cursor:pointer}.ls-dv-participant-card-active,.ls-dv-participant-card:hover{outline:2px solid var(--active-outline-colour);outline-offset:-2px}.ls-dv-top-card{border-radius:1rem 1rem 0 0}.ls-dv-full-card{border-radius:1rem}.ls-dv-bottom-card{border-radius:0 0 1rem 1rem}.ls-dv-participant-card-inner{width:100%;min-width:0;display:flex;flex-direction:column;gap:0.5rem}.ls-dv-hidden{visibility:hidden;display:none}.ls-dv-form-button-set{display:flex;gap:0.5rem}.ls-dv-role-label{display:flex;padding:0.125rem 0.5rem;justify-content:center;align-items:center;gap:0.25rem;border-radius:0.625rem;font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;}.ls-dv-role-label.ls-dv-fields{border-radius:1rem;margin-top:0.5rem}.ls-dv-inner-button{margin:0px;padding:0px;max-height:1.25rem !important;max-width:1.25rem !important;background-color:transparent;border:none;cursor:pointer;color:var(--default-button-colour)}.ls-dv-inner-button:hover{color:var(--hover-button-colour)}.ls-dv-inner-button-disabled{pointer-events:none;opacity:0.4}.ls-dv-participant-card-top-items{display:flex;width:100%;justify-content:space-between;align-items:center}.ls-dv-button-set{display:flex;gap:0.125rem}.ls-dv-participant-text-description{font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ls-dv-participant-text-type{font-style:normal;font-weight:400;line-height:1.25rem;}.ls-dv-title-button{width:100%;text-align:left;background-color:transparent;border:none}.ls-dv-full-width{width:100%}p{color:var(--gray-80, #6f7176);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.ls-dv-button-link,.ls-dv-button-link:hover{all:unset}select{appearance:none;height:2.25rem;width:100%}.ls-dv-input-wrapper{position:relative;width:fit-content}#selectorIcon{position:absolute;top:50%;right:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6f7176)}#selectLeadingIcon{position:absolute;top:50%;left:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6f7176)}.ls-dv-has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.625rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover:not(:disabled),select:hover:not(:disabled),textarea:hover:not(:disabled){border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #ffffff)}input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #ffffff)}input:active,select:active,textarea:active{border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa)}input[type=checkbox]{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type=checkbox]:checked,input[type=checkbox].ls-dv-indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type=checkbox]:checked::after{content:"";position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type=checkbox].ls-dv-indeterminate::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type=checkbox]:checked:hover,input[type=checkbox].ls-dv-indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type=checkbox]:hover{border:1px solid #9ca3af}input[type=checkbox]:focus,input[type=checkbox]:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type=checkbox]:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type=checkbox]:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.ls-dv-checkbox-container{display:flex;gap:0.5rem;width:100%}.ls-dv-checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.ls-dv-form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.ls-dv-form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.ls-dv-loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #4456f6)}button{border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.ls-dv-tertiary-grey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #6f7176)}button.ls-dv-tertiary-grey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.ls-dv-tertiary{border:1px solid var(--primary-60, #4456f6);background:transparent;color:var(--primary-70, #2134dc)}button.ls-dv-tertiary:hover{border:1px solid var(--primary-70, #2134dc);border:1px solid var(--primary-80, #0e20c1)}button.ls-dv-destructive{border:1px solid var(--red-60, #f64a44);background:transparent;color:var(--red-60, #f64a44)}button.ls-dv-destructive:hover{border:1px solid var(--red-70, #dc2721);background:var(--red-10, #fff0f0);background-color:var(--red-10, #fff0f0)}button.ls-dv-secondary{border:1px solid var(--gray-50, #c8c9cc);background:var(--white, #ffffff);color:var(--gray-90, #5e6066);box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)}button.ls-dv-secondary:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}.ls-dv-button-group{display:flex;border-radius:0.625rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip}.ls-dv-button-group button{display:flex;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;min-height:unset;color:var(--gray-80, #6f7176)}.ls-dv-button-group button:hover{background:var(--gray-10, #f7f8fa)}.ls-dv-button-group>:first-child{border-radius:0.625rem 0 0 0.625rem}.ls-dv-button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.ls-dv-button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}`;
500
+
501
+ const LsParticipantCard = class {
502
+ constructor(hostRef) {
503
+ registerInstance(this, hostRef);
504
+ this.mutate = createEvent(this, "mutate", 7);
505
+ this.opened = createEvent(this, "opened", 7);
506
+ this.roleChange = createEvent(this, "roleChange", 7);
507
+ this.addParticipant = createEvent(this, "addParticipant", 7);
508
+ }
509
+ get component() { return getElement(this); }
510
+ signer;
511
+ index;
512
+ editable = false;
513
+ template;
514
+ active = false;
515
+ mutate;
516
+ opened;
517
+ roleChange;
518
+ // Send one or more mutations up the chain
519
+ // The source of the chain fires the mutation
520
+ // NOTE this alter is debounced to account for typing
521
+ alter(diff) {
522
+ this.signer = { ...this.signer, ...diff };
523
+ this.debounce(this.signer, 500);
524
+ }
525
+ labeltimer;
526
+ debounce(data, delay) {
527
+ if (this.labeltimer)
528
+ clearTimeout(this.labeltimer);
529
+ this.labeltimer = setTimeout(() => {
530
+ const diffs = [{ action: 'update', data }];
531
+ this.mutate.emit(diffs);
532
+ }, delay);
533
+ }
534
+ deleteHandler(role) {
535
+ this.mutate.emit([{ action: 'delete', data: role }]);
536
+ }
537
+ swapHandler(role1, role2) {
538
+ this.mutate.emit([{ action: 'swap', data: role1, data2: role2 }]);
539
+ }
540
+ modeHandler(_editable) {
541
+ // When opened fire an event to let the parent handle closing other controls
542
+ if (_editable) {
543
+ this.opened.emit(this.signer);
544
+ }
545
+ }
546
+ addParticipant;
547
+ busy = false;
548
+ swapUpBtn;
549
+ swapDownBtn;
550
+ editBtn;
551
+ deleteParticipantBtn;
552
+ addingWitness = false;
553
+ templateChanged() {
554
+ this.addingWitness = false;
555
+ }
556
+ componentDidLoad() { }
557
+ render() {
558
+ const participantFields = this.template.elementConnection.templateElements.filter(f => Number(f.signer) === this.signer.signerIndex) || [];
559
+ const child = this.template.roles.find(r => r.signerParent === this.signer.id);
560
+ // Find previous and next non-witness roles for swapping
561
+ const getPreviousNonWitness = () => {
562
+ for (let i = this.index - 1; i >= 0; i--) {
563
+ if (this.template.roles[i].roleType !== 'WITNESS') {
564
+ return this.template.roles[i];
565
+ }
566
+ }
567
+ return null;
568
+ };
569
+ const getNextNonWitness = () => {
570
+ for (let i = this.index + 1; i < this.template.roles.length; i++) {
571
+ if (this.template.roles[i].roleType !== 'WITNESS') {
572
+ return this.template.roles[i];
573
+ }
574
+ }
575
+ return null;
576
+ };
577
+ const previousRole = getPreviousNonWitness();
578
+ const nextRole = getNextNonWitness();
579
+ const formatRoleName = (signer) => {
580
+ if (signer.roleType == 'WITNESS')
581
+ return dvI18n.t('participants.participantwitness', { index: signer.signerIndex % 100 });
582
+ return dvI18n.t('participants.participant', { index: signer.signerIndex });
583
+ };
584
+ return (h(Host, null, h("div", { class: 'ls-dv-participant-card' +
585
+ (this.active ? ' ls-dv-participant-card-active' : '') +
586
+ (child ? ' ls-dv-top-card' : this.signer?.signerParent ? ' ls-dv-bottom-card' : ' ls-dv-full-card'), style: {
587
+ 'background': defaultRolePalette[this.signer?.signerIndex % 100].s10,
588
+ 'border': `1px solid ${defaultRolePalette[this.signer?.signerIndex % 100].s60}`,
589
+ 'marginTop': this.signer.roleType === 'WITNESS' ? '-0.813rem' : '0',
590
+ '--active-outline-colour': defaultRolePalette[this.signer?.signerIndex % 100].s60,
591
+ }, onMouseEnter: e => e.currentTarget.querySelector('.ls-dv-button-set')?.classList.remove('ls-dv-hidden'), onMouseLeave: e => e.currentTarget.querySelector('.ls-dv-button-set')?.classList.add('ls-dv-hidden'), onClick: () => this.roleChange.emit(this.signer.signerIndex), onDblClick: () => {
592
+ this.editable = true;
593
+ } }, h("div", { class: 'ls-dv-participant-card-inner' }, h("div", { class: 'ls-dv-participant-card-top-items' }, h("div", { class: 'ls-dv-role-label', style: {
594
+ background: defaultRolePalette[this.signer?.signerIndex % 100].s20,
595
+ color: defaultRolePalette[this.signer?.signerIndex % 100].s90,
596
+ } }, h("ls-icon", { name: this.signer?.roleType === 'APPROVER' ? 'check-circle-icon' : this.signer?.roleType === 'SIGNER' ? 'signature-icon' : 'eye-icon' }), this.signer?.ordinal || ''), h("div", { class: 'ls-dv-button-set ls-dv-hidden' }, previousRole && this.signer.roleType !== 'WITNESS' && (h("div", { class: `ls-dv-inner-button${this.busy ? ' ls-dv-inner-button-disabled' : ''}`, onClick: () => {
597
+ if (this.busy)
598
+ return;
599
+ this.swapHandler(this.signer, previousRole);
600
+ }, style: {
601
+ '--default-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s40,
602
+ '--hover-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s60,
603
+ }, "data-tooltip-id": "ls-dv-tooltip", "data-tooltip-content": dvI18n.t('participants.moveup') }, h("ls-icon", { name: "arrow-up-icon", size: 18 }))), nextRole && this.signer.roleType !== 'WITNESS' && (h("div", { class: `ls-dv-inner-button${this.busy ? ' ls-dv-inner-button-disabled' : ''}`, onClick: () => {
604
+ if (this.busy)
605
+ return;
606
+ this.swapHandler(this.signer, nextRole);
607
+ }, style: {
608
+ '--default-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s40,
609
+ '--hover-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s60,
610
+ }, "data-tooltip-id": "ls-dv-tooltip", "data-tooltip-content": dvI18n.t('participants.movedown') }, h("ls-icon", { name: "arrow-down-icon", size: 18 }))), h("div", { class: `ls-dv-inner-button${this.busy ? ' ls-dv-inner-button-disabled' : ''}`, onClick: () => {
611
+ if (this.busy)
612
+ return;
613
+ this.editable = !this.editable;
614
+ }, style: {
615
+ '--default-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s40,
616
+ '--hover-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s60,
617
+ } }, h("ls-icon", { name: this.editable ? 'check-icon' : 'pencil-alt-icon', size: 18, "data-tooltip-id": "ls-dv-tooltip", "data-tooltip-content": this.editable ? dvI18n.t('participants.savechanges') : dvI18n.t('participants.editparticipant') })), h("div", { class: `ls-dv-inner-button${this.busy ? ' ls-dv-inner-button-disabled' : ''}`, onClick: () => {
618
+ if (this.busy)
619
+ return;
620
+ this.deleteHandler(this.signer);
621
+ }, style: {
622
+ '--default-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s40,
623
+ '--hover-button-colour': defaultRolePalette[this.signer?.signerIndex % 100].s60,
624
+ }, "data-tooltip-id": "ls-dv-tooltip", "data-tooltip-content": dvI18n.t('participants.deleteparticipant'), "data-tooltip-place": "top-end" }, h("ls-icon", { name: "trash-icon", size: 18 })))), this.editable ? (h("div", { class: 'ls-dv-participant-card-inner' }, this.signer?.roleType !== 'WITNESS' ? (h("ls-input-wrapper", { select: true, leadingIcon: this.signer?.roleType === 'APPROVER' ? 'check-circle-icon' : 'signature-icon' }, h("select", { name: "roleType", id: "role-type", class: 'ls-dv-has-leading-icon', onChange: e => this.alter({ roleType: e.target.value }), disabled: child ? true : false }, h("option", { value: "APPROVER", selected: this.signer?.roleType === 'APPROVER' }, dvI18n.t('participants.approver')), h("option", { value: "SIGNER", selected: this.signer?.roleType === 'SIGNER' }, dvI18n.t('participants.signer'))))) : (h("ls-input-wrapper", { leadingIcon: "eye-icon" }, h("input", { name: "roleType", id: "role-type", class: 'ls-dv-has-leading-icon', disabled: true, value: "Witness", style: { wdith: '100%' } }))), h("input", { type: "text", id: "participant-description", name: "participantDescription", placeholder: dvI18n.t('participants.placeholder'), defaultValue: this.signer.name, onInput: e => this.alter({ name: e.target.value }), onKeyUp: e => {
625
+ if (e.key === 'Enter' || e.keyCode === 13)
626
+ this.editable = false;
627
+ } }), this.signer?.roleType === 'SIGNER' && !child ? (h("ls-button", { variant: "tertiary", outline: true, size: "sm", fullWidth: true, text: dvI18n.t('participants.addwitness'), leadingIcon: "plus-icon", loading: this.busy || this.addingWitness, disabled: this.busy || this.addingWitness, onClick: () => {
628
+ if (this.busy || this.addingWitness)
629
+ return;
630
+ this.addingWitness = true;
631
+ this.addParticipant.emit({ type: 'WITNESS', parent: this.signer.id, signerIndex: this.signer.signerIndex + 100 });
632
+ } })) : this.signer?.roleType === 'SIGNER' && child ? (h("ls-button", { variant: "destructiveTertiary", outline: true, size: "sm", fullWidth: true, text: dvI18n.t('participants.removewitness'), leadingIcon: "minus-sm-icon", loading: this.busy, disabled: this.busy, onClick: () => {
633
+ if (this.busy)
634
+ return;
635
+ this.deleteHandler(child);
636
+ } })) : this.signer?.roleType === 'WITNESS' ? (h("ls-button", { variant: "destructiveTertiary", outline: true, size: "sm", fullWidth: true, text: dvI18n.t('participants.removewitness'), leadingIcon: "minus-sm-icon", loading: this.busy, disabled: this.busy, onClick: () => {
637
+ if (this.busy)
638
+ return;
639
+ this.deleteHandler(this.signer);
640
+ } })) : null)) : (h("div", { class: 'ls-dv-participant-card-text' }, h("p", { class: "ls-dv-participant-text-description", style: {
641
+ color: defaultRolePalette[this.signer?.signerIndex % 100].s100,
642
+ }, "data-tooltip-id": "ls-dv-tooltip", "data-tooltip-html": `<span style="white-space:normal;word-break:break-word">${this.signer.name || formatRoleName(this.signer)}</span>`, onMouseEnter: (e) => {
643
+ const el = e.currentTarget;
644
+ if (el.scrollWidth <= el.clientWidth) {
645
+ el.removeAttribute('data-tooltip-html');
646
+ }
647
+ } }, this.signer.name || formatRoleName(this.signer)), h("p", { class: "ls-dv-participant-text-type", style: {
648
+ color: defaultRolePalette[this.signer?.signerIndex % 100].s80,
649
+ textTransform: 'capitalize',
650
+ } }, dvI18n.t(`participants.${this.signer.roleType.toLowerCase()}`)), this.signer?.roleType !== 'APPROVER' && (h("div", { class: 'ls-dv-role-label ls-dv-fields', style: {
651
+ background: participantFields.length === 0 ? defaultRolePalette[this.signer?.signerIndex % 100].s60 : defaultRolePalette[this.signer?.signerIndex % 100].s20,
652
+ color: participantFields.length === 0 ? 'white' : defaultRolePalette[this.signer?.signerIndex % 100].s90,
653
+ } }, participantFields.length === 0 && h("ls-icon", { name: "exclamation-circle-icon", size: 16, style: { marginRight: '0.125rem' } }), participantFields.length === 0
654
+ ? dvI18n.t('participants.signaturerequired')
655
+ : `${participantFields.length} ${participantFields.length === 1 ? dvI18n.t('common.field') : dvI18n.t('common.fields')}`)))))), h("slot", null), h("ls-tooltip", { tooltipId: "ls-dv-tooltip" })));
656
+ }
657
+ static get watchers() { return {
658
+ "editable": ["modeHandler"],
659
+ "template": ["templateChanged"]
660
+ }; }
661
+ };
662
+ LsParticipantCard.style = lsParticipantCardCss();
663
+
664
+ const lsParticipantManagerCss = () => `.ls-dv-label-span{position:absolute;font-family:inherit;display:inline-flex;align-items:center;line-height:1rem;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ls-dv-participant-list{position:relative;display:flex;flex-direction:column;gap:0.75rem}.ls-dv-sender-card{display:flex;padding:0.625rem;flex-direction:column;align-items:flex-start;align-self:stretch;cursor:pointer;border-radius:1rem;background:#f7f8fa;border:1px solid #afb0b2}.ls-dv-sender-card-active,.ls-dv-sender-card:hover{outline:2px solid #afb0b2;outline-offset:-2px}.ls-dv-sender-card-inner{display:flex;flex-direction:column;gap:0.5rem;width:100%;min-width:0}.ls-dv-sender-card-top-items{display:flex;width:100%;justify-content:space-between;align-items:center}.ls-dv-role-label{display:flex;padding:0.125rem 0.5rem;justify-content:center;align-items:center;gap:0.25rem;border-radius:0.625rem;font-size:0.875rem;font-weight:500;line-height:1.25rem}.ls-dv-role-label.ls-dv-fields{border-radius:1rem}.ls-dv-sender-card-text{display:flex;flex-direction:column;min-width:0}.ls-dv-sender-name{font-size:0.875rem;font-weight:500;line-height:1.25rem;color:#45484d}.ls-dv-sender-type{font-size:0.75rem;font-weight:400;line-height:1rem;color:#6f7176;text-transform:capitalize}*{box-sizing:border-box;margin:0}.ls-dv-editor-infobox{padding:0.125rem 0.5rem 0.125rem 0.5rem}.ls-dv-toolbox-section-title{color:var(--gray-100, #45484d);font-size:1.125rem;font-style:normal;font-weight:500;line-height:1.75rem;}.ls-dv-toolbox-section-description{color:var(--gray-80, #6f7176);font-size:0.75rem;font-style:normal;font-weight:400;line-height:1rem}.ls-dv-add-participant-button{position:sticky;display:flex;padding:0.75rem 0;margin-bottom:-0.75rem;margin-top:-0.75rem;bottom:-0.75rem;background-image:linear-gradient(to top, var(--gray-10, #f7f8fa) 0%, var(--gray-10, #f7f8fa) 80%, transparent 100%)}.ls-dv-add-participant-button ls-add-new-button{width:100%}p{color:var(--gray-80, #6f7176);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.ls-dv-button-link,.ls-dv-button-link:hover{all:unset}select{appearance:none;height:2.25rem}.ls-dv-input-wrapper{position:relative;width:fit-content}#selectorIcon{position:absolute;top:50%;right:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6f7176)}#selectLeadingIcon{position:absolute;top:50%;left:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6f7176)}.ls-dv-has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.625rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover,select:hover,textarea:hover{border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #ffffff)}input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #ffffff)}input:active,select:active,textarea:active{border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa)}input[type=checkbox]{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type=checkbox]:checked,input[type=checkbox].ls-dv-indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type=checkbox]:checked::after{content:"";position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type=checkbox].ls-dv-indeterminate::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type=checkbox]:checked:hover,input[type=checkbox].ls-dv-indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type=checkbox]:hover{border:1px solid #9ca3af}input[type=checkbox]:focus,input[type=checkbox]:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type=checkbox]:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type=checkbox]:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.ls-dv-checkbox-container{display:flex;gap:0.5rem;width:100%}.ls-dv-checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.ls-dv-form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.ls-dv-form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.ls-dv-loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #4456f6)}button{border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.ls-dv-tertiary-grey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #6f7176)}button.ls-dv-tertiary-grey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}.ls-dv-button-group{display:flex;border-radius:0.625rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip}.ls-dv-button-group button{display:flex;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;min-height:unset;color:var(--gray-80, #6f7176)}.ls-dv-button-group button:hover{background:var(--gray-10, #f7f8fa)}.ls-dv-button-group>:first-child{border-radius:0.625rem 0 0 0.625rem}.ls-dv-button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.ls-dv-button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}`;
665
+
666
+ const LsParticipantManager = class {
667
+ constructor(hostRef) {
668
+ registerInstance(this, hostRef);
669
+ this.mutate = createEvent(this, "mutate", 7);
670
+ this.update = createEvent(this, "update", 7);
671
+ this.addParticipant = createEvent(this, "addParticipant", 7);
672
+ this.roleChange = createEvent(this, "roleChange", 7);
673
+ }
674
+ get element() { return getElement(this); }
675
+ /**
676
+ * The base editor.
677
+ * {LSDocumentViewer}
678
+ */
679
+ editor;
680
+ /**
681
+ * The base template information (as JSON).
682
+ * {LSApiTemplate}
683
+ */
684
+ template;
685
+ /**
686
+ * The currently active signer index.
687
+ * {number}
688
+ */
689
+ activeSigner;
690
+ /**
691
+ * Whether a mutation is currently in progress.
692
+ * {boolean}
693
+ */
694
+ busy = false;
695
+ addingParticipant = false;
696
+ templateChanged() {
697
+ this.addingParticipant = false;
698
+ }
699
+ mutate;
700
+ update;
701
+ addParticipant;
702
+ selectedHandler(_role) {
703
+ //console.log(role, 'participant manager')
704
+ }
705
+ deleteHandler(role) {
706
+ this.update.emit([{ action: 'delete', data: role }]);
707
+ this.mutate.emit([{ action: 'delete', data: role }]);
708
+ }
709
+ swapHandler(role1, role2) {
710
+ this.update.emit([{ action: 'swap', data: role1, data2: role2 }]);
711
+ }
712
+ handleOpened(event) {
713
+ const participants = this.element.shadowRoot.querySelectorAll('ls-participant-card');
714
+ participants.forEach(element => {
715
+ const isTarget = element.signer?.id === event.detail.id;
716
+ element.editable = isTarget;
717
+ if (isTarget) {
718
+ element.scrollIntoView({ behavior: 'smooth', block: 'center' });
719
+ }
720
+ });
721
+ }
722
+ handleOpenNewWitness(event) {
723
+ const { parent } = event.detail;
724
+ const observer = new MutationObserver(() => {
725
+ const participants = this.element.shadowRoot.querySelectorAll('ls-participant-card');
726
+ participants.forEach(element => {
727
+ const isTarget = element.signer?.signerParent === parent;
728
+ element.editable = isTarget;
729
+ if (isTarget) {
730
+ element.scrollIntoView({ behavior: 'smooth', block: 'center' });
731
+ }
732
+ });
733
+ observer.disconnect();
734
+ });
735
+ observer.observe(this.element.shadowRoot, { childList: true, subtree: true });
736
+ }
737
+ roleChange;
738
+ render() {
739
+ return (h(Host, { key: 'a114a065d2508292fe982757651f35c5d5958e8a' }, h("div", { key: 'e36ee2b089bce6561f82273347e20d121642cc05', class: "ls-dv-editor-infobox" }, h("h2", { key: '3d107661610b31f493cc7afb032d2e7aec62465d', class: "ls-dv-toolbox-section-title" }, dvI18n.t('participants.title')), h("p", { key: '0420a0d6b572062ac64c6718c2883cd81cf78343', class: "ls-dv-toolbox-section-description" }, dvI18n.t('participants.description'))), h("div", { key: '95833f5d2e443372735c78098d01e631f2e6e3bb', class: "ls-dv-participant-list" }, h("div", { key: 'b8d93fff31cd1bdeeb74e8e6926d9807700028d6', class: 'ls-dv-sender-card' + (this.activeSigner === 0 ? ' ls-dv-sender-card-active' : ''), onClick: () => this.roleChange.emit(0) }, h("div", { key: 'f391b2bd058c2820f16955fbd1fc033db4655e71', class: "ls-dv-sender-card-inner" }, h("div", { key: '3c8f4b3f13440e34dff9ae52cf6e4ebcd0e07a1f', class: "ls-dv-sender-card-top-items" }, h("div", { key: '8dbac88b1d79b8d1bd68db851c450e964d3ca65d', class: "ls-dv-role-label", style: { background: '#edeff2', color: '#5e6066' } }, h("ls-icon", { key: '0276927d29ef0d71f676322b9b3a50767a2892a0', name: "user-icon" }))), h("div", { key: 'c255dd02beb2bfc78857d2cd30d3439623786cfc', class: "ls-dv-sender-card-text" }, h("p", { key: '3737054240b2ecc25e1819f5a66535e7c928b3ff', class: "ls-dv-sender-name" }, dvI18n.t('toolbar.sender')), h("p", { key: 'ec3a992eda47b9194c123616997600bf40130645', class: "ls-dv-sender-type" }, dvI18n.t('toolbar.you'))), this.template &&
740
+ (() => {
741
+ const senderFields = this.template.elementConnection.templateElements.filter(f => Number(f.signer) === 0) || [];
742
+ return senderFields.length > 0 ? (h("div", { class: "ls-dv-role-label ls-dv-fields", style: { background: '#edeff2', color: '#5e6066' } }, `${senderFields.length} ${senderFields.length === 1 ? dvI18n.t('common.field') : dvI18n.t('common.fields')}`)) : null;
743
+ })())), this.template &&
744
+ this.template?.roles.map((r, index) => {
745
+ return (h("ls-participant-card", { signer: r, index: index, template: this.template, active: r.signerIndex === this.activeSigner, busy: this.busy, onOpened: event => {
746
+ this.handleOpened.bind(this)(event);
747
+ }, onAddParticipant: event => this.handleOpenNewWitness(event) }));
748
+ })), h("div", { key: 'bd417aa83cf9af5342f943c4b5e49c3c30e50a7d', class: "ls-dv-add-participant-button" }, h("ls-add-new-button", { key: 'f37c41f95433e9fe11fab9adc291337f3528cfd0', text: dvI18n.t('participants.addparticipant'), icon: "user-add-icon", loading: this.addingParticipant, disabled: this.addingParticipant, onClick: () => {
749
+ if (this.addingParticipant)
750
+ return;
751
+ this.addingParticipant = true;
752
+ this.addParticipant.emit({ type: 'SIGNER' });
753
+ } })), h("slot", { key: 'e7d36f1636e0271667751508550178402fb01f63' })));
754
+ }
755
+ static get watchers() { return {
756
+ "template": ["templateChanged"]
757
+ }; }
758
+ };
759
+ LsParticipantManager.style = lsParticipantManagerCss();
760
+
761
+ const lsRecipientCardCss = () => `:host{display:block}*{box-sizing:border-box;margin:0}.ls-dv-participant-card{display:flex;padding:0.75rem;flex-direction:column;align-items:flex-start;gap:0.5rem;align-self:stretch;max-height:6.25rem;transition:max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);overflow:hidden;transform-origin:top}.ls-dv-participant-card.ls-dv-expand-up{transform-origin:bottom}.ls-dv-participant-card.ls-dv-expand-down{transform-origin:top}.ls-dv-participant-card.ls-dv-expanded{max-height:125rem;}.ls-dv-dot{width:0.5rem;height:0.5rem;background:var(--red-50, #ff706b);border-radius:50%;margin-right:0.25rem}.ls-dv-top-card{border-radius:1rem 1rem 0 0}.ls-dv-full-card{border-radius:1.5rem}.ls-dv-bottom-card{border-radius:0 0 1rem 1rem}.ls-dv-participant-card-inner{width:100%;display:flex;flex-direction:column;gap:0.5rem}.ls-dv-hidden{visibility:hidden;display:none}.ls-dv-form-button-set{display:flex;gap:0.5rem}.ls-dv-role-label{display:flex;padding:0.125rem 0.5rem;justify-content:center;align-items:center;gap:0.25rem;border-radius:0.625rem;font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;text-transform:capitalize}.ls-dv-fields-box{display:flex;flex-direction:column;gap:0.5rem;width:100%}.ls-dv-role-label.ls-dv-fields{border-radius:1rem;margin-top:0.5rem}.ls-dv-inner-button{margin:0px;padding:0px;max-height:1.25rem !important;max-width:1.25rem !important;background-color:transparent;border:none;cursor:pointer;color:var(--default-button-colour)}.ls-dv-inner-button:hover{color:var(--hover-button-colour)}.ls-dv-participant-card-top-items{display:flex;width:100%;justify-content:space-between;align-items:center}.ls-dv-button-set{display:flex;gap:0.125rem}.ls-dv-participant-text-description{font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;}.ls-dv-participant-text-type{font-style:normal;font-weight:400;line-height:1.25rem;}.ls-dv-title-button{width:100%;text-align:left;background-color:transparent;border:none}.ls-dv-full-width{width:100%}.ls-dv-participant-card-text{padding:0 0.125rem 0.125rem 0.125rem}p{color:var(--gray-80, #6f7176);font-family:var(--font-family);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height)}a{color:var(--primary-60, #4456f6);font-size:var(--text-sm);font-style:normal;font-weight:400;line-height:var(--text-sm-line-height);cursor:pointer}a:hover{text-decoration:underline;color:var(--primary-70, #2134dc)}.ls-dv-button-link,.ls-dv-button-link:hover{all:unset}select{appearance:none;height:2.25rem;width:100%}.ls-dv-input-wrapper{position:relative;width:fit-content}#selectorIcon{position:absolute;top:50%;right:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6f7176)}#selectLeadingIcon{position:absolute;top:50%;left:0.675rem;transform:translateY(-50%);pointer-events:none;color:var(--gray-80, #6f7176)}.ls-dv-has-leading-icon{padding-left:2.5rem}input,select,textarea{border:1px solid var(--gray-40, #d8d9dc);box-shadow:0 1px 0.125rem rgba(0, 0, 0, 0.05);padding:0.5rem 0.75rem;font-family:var(--font-family);font-size:var(--text-sm);border-radius:0.625rem;color:var(--gray-100, #45484d);font-weight:400}input::placeholder,select::placeholder,textarea::placeholder{color:var(--gray-60, #afb0b2)}input:hover:not(:disabled),select:hover:not(:disabled),textarea:hover:not(:disabled){border-color:var(--gray-50, #c8c9cc);background-color:var(--white, #ffffff)}input:focus,select:focus,textarea:focus{outline:none;box-shadow:0 0 0 0.25rem var(--primary-40, #79adfc);border-color:var(--primary-60, #4456f6);background-color:var(--white, #ffffff)}input:active,select:active,textarea:active{border-color:var(--primary-50, #5185ff)}input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;background-color:var(--gray-10, #f7f8fa)}input[type=checkbox]{appearance:none;position:relative;height:1rem;width:1rem;padding:0.25rem;border-radius:var(--radius-sm);border:1px solid #d1d5db;background-color:#ffffff;cursor:pointer}input[type=checkbox]:checked,input[type=checkbox].ls-dv-indeterminate{background-color:var(--primary-60, #4456f6);border:none}input[type=checkbox]:checked::after{content:"";position:absolute;top:45%;left:50%;transform:translate(-50%, -50%) rotate(-45deg) scale(-1, 1);width:0.5rem;height:0.25rem;border-bottom:0.125rem solid white;border-right:0.125rem solid white}input[type=checkbox].ls-dv-indeterminate::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:0.5rem;height:0.125rem;background-color:white}input[type=checkbox]:checked:hover,input[type=checkbox].ls-dv-indeterminate:hover{background-color:var(--primary-70, #2134dc);border:none}input[type=checkbox]:hover{border:1px solid #9ca3af}input[type=checkbox]:focus,input[type=checkbox]:active{outline:none;box-shadow:0 0 0 0.25rem var(--primary-20, #c7ddff);background-color:#f0f4f8}input[type=checkbox]:disabled{background-color:#f3f4f6;outline:none;cursor:not-allowed}input[type=checkbox]:disabled:checked{background-color:#e5e7eb;border:none;outline:none;cursor:not-allowed}.ls-dv-checkbox-container{display:flex;gap:0.5rem;width:100%}.ls-dv-checkbox-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:400;line-height:1rem}.ls-dv-form-label{color:var(--gray-100, #45484d);font-size:1rem;font-style:normal;font-weight:500;line-height:1.5rem}.ls-dv-form-field{display:flex;flex-direction:column;gap:0.25rem;width:100%}.ls-dv-loading-box{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;color:var(--primary-60, #4456f6)}button{border:0;appearance:button;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background-color:var(--primary-60, #4456f6);color:white;text-transform:capitalize;min-height:2.25rem;min-width:2.25rem}button.ls-dv-tertiary-grey{border:1px solid var(--gray-40, #d8d9dc);background-color:white;color:var(--gray-80, #6f7176)}button.ls-dv-tertiary-grey:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}button.ls-dv-tertiary{border:1px solid var(--primary-60, #4456f6);background:transparent;color:var(--primary-70, #2134dc)}button.ls-dv-tertiary:hover{border:1px solid var(--primary-70, #2134dc);border:1px solid var(--primary-80, #0e20c1)}button.ls-dv-destructive{border:1px solid var(--red-60, #f64a44);background:transparent;color:var(--red-60, #f64a44)}button.ls-dv-destructive:hover{border:1px solid var(--red-70, #dc2721);background:var(--red-10, #fff0f0);background-color:var(--red-10, #fff0f0)}button.ls-dv-secondary{border:1px solid var(--gray-50, #c8c9cc);background:var(--white, #ffffff);color:var(--gray-90, #5e6066);box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.1)}button.ls-dv-secondary:hover{border:1px solid var(--gray-50, #c8c9cc);background:var(--gray-10, #f7f8fa)}.ls-dv-button-group{display:flex;border-radius:0.625rem;border:1px solid var(--gray-30, #e0e2e5);background:var(--white, #ffffff);overflow:clip}.ls-dv-button-group button{display:flex;background:transparent;border-radius:unset;padding:0.25rem 0.75rem;min-width:2.156rem;min-height:unset;color:var(--gray-80, #6f7176)}.ls-dv-button-group button:hover{background:var(--gray-10, #f7f8fa)}.ls-dv-button-group>:first-child{border-radius:0.625rem 0 0 0.625rem}.ls-dv-button-group>:last-child{border-radius:0 0.5rem 0.5rem 0}.ls-dv-button-group>:not(:first-child){border-left:1px solid var(--gray-30, #e0e2e5)}`;
762
+
763
+ const LsRecipientCard = class {
764
+ constructor(hostRef) {
765
+ registerInstance(this, hostRef);
766
+ this.changeSigner = createEvent(this, "changeSigner", 7);
767
+ this.fieldSelected = createEvent(this, "fieldSelected", 7);
768
+ }
769
+ get component() { return getElement(this); }
770
+ /**
771
+ * The initial template data, including the link for background PDF. See README and
772
+ * example for correct GraphQL query and data structure.
773
+ * {LSApiTemplate}
774
+ */
775
+ recipient;
776
+ activeRecipient;
777
+ fieldTypeSelected = {
778
+ label: 'Signature',
779
+ formElementType: 'signature',
780
+ elementType: 'signature',
781
+ validation: 0,
782
+ defaultHeight: FIELD_DEFAULTS['signature'].defaultHeight,
783
+ defaultWidth: FIELD_DEFAULTS['signature'].defaultWidth,
784
+ };
785
+ template;
786
+ isHovered = false;
787
+ setIsHovered(value) {
788
+ this.isHovered = value;
789
+ }
790
+ validationErrors = [];
791
+ /**
792
+ * Allows the selection of fields in the toolbox to be limited to a | (pipe) delimited list.
793
+ * {string}
794
+ */
795
+ filtertoolbox = null;
796
+ // Send an internal event to be processed
797
+ changeSigner;
798
+ // Send an internal event to be processed
799
+ fieldSelected;
800
+ handleFieldTypeSelected(event) {
801
+ const fields = this.component.shadowRoot.querySelectorAll('ls-toolbox-field');
802
+ console.log(fields);
803
+ fields.forEach(element => {
804
+ element.isSelected = element.formElementType === event.detail.formElementType;
805
+ });
806
+ this.fieldTypeSelected = event.detail;
807
+ }
808
+ showTool(fieldFormType) {
809
+ return this.filtertoolbox === null || this.filtertoolbox.split('|').includes(fieldFormType);
810
+ }
811
+ cardRef;
812
+ handleExpandCollapse() {
813
+ if (!this.cardRef)
814
+ return;
815
+ const isActive = this.activeRecipient === this.recipient.signerIndex;
816
+ if (isActive) {
817
+ // Expand
818
+ this.cardRef.style.maxHeight = this.cardRef.scrollHeight + 2 + 'px';
819
+ }
820
+ else {
821
+ // Collapse
822
+ this.cardRef.style.maxHeight = '6rem';
823
+ }
824
+ }
825
+ componentDidLoad() {
826
+ const isActive = this.activeRecipient === this.recipient.signerIndex;
827
+ this.cardRef.style.maxHeight = isActive ? this.cardRef.scrollHeight + 2 + 'px' : '6rem';
828
+ }
829
+ render() {
830
+ const recipientFields = this.template.elementConnection.templateElements.filter(f => f.signer === this.recipient.signerIndex) || [];
831
+ const recipientSignatures = recipientFields.filter(f => f.elementType === 'signature' || f.elementType === 'auto sign');
832
+ const dropdownsMissingOptions = recipientFields.filter(f => f.validation === 20 && (!f.options || f.options.length === 0));
833
+ return (h(Host, { key: 'b6aa3783830f95dbf259641f8dac1e2e18212379' }, h("div", { key: 'f4072e791b9cb7688980bb4311990d6b9db57988', ref: el => (this.cardRef = el), class: `ls-dv-participant-card ls-dv-top-card ls-dv-full-card ${this.activeRecipient === this.recipient.signerIndex ? 'ls-dv-expanded' : ''}`, style: {
834
+ background: defaultRolePalette[this.recipient?.signerIndex % 100].s10,
835
+ border: `1px ${this.recipient.roleType === 'WITNESS' ? 'dashed' : 'solid'} ${defaultRolePalette[this.recipient?.signerIndex % 100].s60}`,
836
+ outline: `${this.recipient.signerIndex === this.activeRecipient ? '4px solid ' + defaultRolePalette[this.recipient?.signerIndex % 100].s40 : 'none'}`,
837
+ marginTop: '0',
838
+ cursor: 'pointer',
839
+ }, onClick: () => {
840
+ this.changeSigner.emit(this.recipient.signerIndex);
841
+ }, onMouseEnter: () => {
842
+ this.setIsHovered(true);
843
+ }, onMouseLeave: () => {
844
+ this.setIsHovered(false);
845
+ } }, h("div", { key: 'bf498a3424755635f71c0bb3be7c9c8bac11a0c7', class: 'ls-dv-participant-card-inner' }, h("div", { key: '6e0fca72dc3e11df31a1531c4be1f10c0d143e20', class: 'ls-dv-participant-card-top-items' }, h("div", { key: '6101fed339799c0084afd2e56ea4b2a3f487a806', class: 'ls-dv-role-label', style: {
846
+ background: defaultRolePalette[this.recipient?.signerIndex % 100].s20,
847
+ color: defaultRolePalette[this.recipient?.signerIndex % 100].s90,
848
+ } }, h("ls-icon", { key: '28b53eefe446614172302f9a4ec5d8db89d9fa21', name: this.recipient?.roleType === 'APPROVER' ? 'check-circle-icon' : this.recipient?.roleType === 'WITNESS' ? 'eye-icon' : 'signature-icon', size: 16 }), dvI18n.t(`participants.${(this.recipient?.roleType || 'SIGNER').toLowerCase()}`)), h("ls-icon", { key: '7fe9557a3e078fc31a5b55b145e5a99422262491', name: "cursor-click-icon", size: 16, customStyle: { color: defaultRolePalette[this.recipient?.signerIndex % 100].s70 }, solid: true, style: { display: this.isHovered && this.recipient.signerIndex !== this.activeRecipient ? 'block' : 'none' } }), h("div", { key: 'a11f57938c0e28d1ed7e2bb77e1f0654d932997f', class: "ls-dv-dot", style: { display: (!this.isHovered || this.recipient.signerIndex === this.activeRecipient) && this.validationErrors.filter(v => v?.signerIndex === this.recipient.signerIndex).length > 0 ? 'block' : 'none' } })), h("div", { key: 'f39af8cd6b58783d176f7ed0ebe939cdccdf7bbf', class: 'ls-dv-participant-card-text' }, h("p", { key: '3c8381bff8bb981b75431655c13e858cdc7ae32c', class: "ls-dv-participant-text-description", style: {
849
+ color: defaultRolePalette[this.recipient?.signerIndex % 100].s100,
850
+ } }, this.recipient?.previousRecipientDecides ? dvI18n.t('common.tobedecided') : this.recipient?.firstName + ' ' + this.recipient?.lastName), h("p", { key: '6d94b72b6017f1d7b8896a5b34b2cebf6d75a195', class: "ls-dv-participant-text-type", style: {
851
+ color: defaultRolePalette[this.recipient?.signerIndex % 100].s80,
852
+ } }, this.recipient?.previousRecipientDecides ? dvI18n.t('common.previousrecipientdecidesdetails') : this.recipient.email)), h("div", { key: '0501ea0e548375077146e08248d83e905ba1ea9e', class: "ls-dv-fields-box", style: { display: this.recipient.signerIndex === this.activeRecipient ? 'flex' : 'hidden' } }, this.recipient.signerIndex > 0 && this.showTool('signature') && this.recipient?.roleType !== 'APPROVER' && (h("ls-toolbox-field", { key: 'ae702f9affae9c2484b5b2fa7ce0391060d5692b', elementType: "signature", formElementType: "signature", label: dvI18n.t('toolbox.signature'), defaultHeight: FIELD_DEFAULTS['signature'].defaultHeight, defaultWidth: FIELD_DEFAULTS['signature'].defaultWidth, validation: 0, icon: "signature-icon", tooltip: dvI18n.t('toolbox.signaturetooltip'), signer: this.recipient.signerIndex, redDot: recipientSignatures.length === 0 })), this.recipient.signerIndex === 0 && this.showTool('auto sign') && (h("ls-toolbox-field", { key: '955ecda601ed5ecdcdb6e9e51a9e20d48396efbc', elementType: "admin", formElementType: "auto sign", label: dvI18n.t('toolbox.autosign'), defaultHeight: FIELD_DEFAULTS['auto sign'].defaultHeight, defaultWidth: FIELD_DEFAULTS['auto sign'].defaultWidth, validation: 3000, icon: "auto-sign-icon", tooltip: dvI18n.t('toolbox.autosigntooltip'), signer: this.recipient.signerIndex })), this.showTool('text') && (h("ls-toolbox-field", { key: 'ce50d66114c181ee99dfdecfb7277d4f7709064f', elementType: "text", formElementType: "text", label: dvI18n.t('toolbox.text'), defaultHeight: FIELD_DEFAULTS['text'].defaultHeight, defaultWidth: FIELD_DEFAULTS['text'].defaultWidth, validation: 0, icon: "text-icon", tooltip: dvI18n.t('toolbox.texttooltip'), signer: this.recipient.signerIndex })), this.recipient.signerIndex > 0 && this.showTool('signing date') && (h("ls-toolbox-field", { key: 'bef5cccafb176bfd5a5cf0b67b43773777e5c681', elementType: "text", formElementType: "signing date", label: dvI18n.t('toolbox.signingdate'), defaultHeight: FIELD_DEFAULTS['signing date'].defaultHeight, defaultWidth: FIELD_DEFAULTS['signing date'].defaultWidth, validation: 32, icon: "auto-date-icon", tooltip: dvI18n.t('toolbox.signingdatetooltip'), signer: this.recipient.signerIndex })), this.showTool('date') && (h("ls-toolbox-field", { key: '3f0750e1833d7ec4586ce999b02499968f6f9aa1', elementType: "text", formElementType: "date", label: dvI18n.t('toolbox.date'), defaultHeight: FIELD_DEFAULTS['date'].defaultHeight, defaultWidth: FIELD_DEFAULTS['date'].defaultWidth, validation: 4, icon: "calender-icon", tooltip: dvI18n.t('toolbox.datetooltip'), signer: this.recipient.signerIndex })), this.showTool('email') && (h("ls-toolbox-field", { key: '2f261aa2e679eb68cba57d00e2d83c36d33dddc6', elementType: "text", formElementType: "email", label: dvI18n.t('toolbox.email'), defaultHeight: FIELD_DEFAULTS['email'].defaultHeight, defaultWidth: FIELD_DEFAULTS['email'].defaultWidth, validation: 1, icon: "at-symbol-icon", tooltip: dvI18n.t('toolbox.emailtooltip'), signer: this.recipient.signerIndex })), this.showTool('initials') && (h("ls-toolbox-field", { key: '1ffe2cbf293619bf1d7cc08a1c4ff92809757c1e', elementType: "initials", formElementType: "initials", label: dvI18n.t('toolbox.initials'), defaultHeight: FIELD_DEFAULTS['initials'].defaultHeight, defaultWidth: FIELD_DEFAULTS['initials'].defaultWidth, validation: 2000, icon: "initials-icon", tooltip: dvI18n.t('toolbox.initialstooltip'), signer: this.recipient.signerIndex })), this.showTool('number') && (h("ls-toolbox-field", { key: 'a5f72ad406b0ebabe02be1c2d34298f975a63704', elementType: "text", formElementType: "number", label: dvI18n.t('toolbox.number'), defaultHeight: FIELD_DEFAULTS['number'].defaultHeight, defaultWidth: FIELD_DEFAULTS['number'].defaultWidth, validation: 50, icon: "hashtag-icon", tooltip: dvI18n.t('toolbox.numbertooltip'), signer: this.recipient.signerIndex })), this.showTool('dropdown') && (h("ls-toolbox-field", { key: '52ab8d8ee9bb6503c5e7a7d44550e655860d15ff', elementType: "text", formElementType: "dropdown", label: dvI18n.t('toolbox.dropdown'), defaultHeight: FIELD_DEFAULTS['dropdown'].defaultHeight, defaultWidth: FIELD_DEFAULTS['dropdown'].defaultWidth, validation: 20, icon: "dropdown-icon", tooltip: dvI18n.t('toolbox.dropdowntooltip'), signer: this.recipient.signerIndex, redDot: dropdownsMissingOptions.length > 0 })), this.showTool('checkbox') && (h("ls-toolbox-field", { key: '6d49f2e0fc216b3e9388714e162c64c6b616b71f', elementType: "text", formElementType: "checkbox", label: dvI18n.t('toolbox.checkbox'), defaultHeight: FIELD_DEFAULTS['checkbox'].defaultHeight, defaultWidth: FIELD_DEFAULTS['checkbox'].defaultWidth, validation: 25, icon: "check-icon", tooltip: dvI18n.t('toolbox.checkboxtooltip'), signer: this.recipient.signerIndex })), this.recipient.signerIndex > 0 && this.showTool('regex') && (h("ls-toolbox-field", { key: 'c3d8605e42bdf7b45018bb1f555e631211231d9b', elementType: "text", formElementType: "regex", label: dvI18n.t('toolbox.regex'), defaultHeight: FIELD_DEFAULTS['regex'].defaultHeight, defaultWidth: FIELD_DEFAULTS['regex'].defaultWidth, validation: 93, icon: "code-icon", tooltip: dvI18n.t('toolbox.regextooltip'), signer: this.recipient.signerIndex })), this.recipient.signerIndex > 0 && this.showTool('image') && (h("ls-toolbox-field", { key: '0d6dd8e0c947cc478d6153dade2418e0e341bcf5', elementType: "text", formElementType: "image", label: dvI18n.t('toolbox.image'), defaultHeight: FIELD_DEFAULTS['image'].defaultHeight, defaultWidth: FIELD_DEFAULTS['image'].defaultWidth, validation: 90, icon: "photograph-icon", tooltip: dvI18n.t('toolbox.imagetooltip'), signer: this.recipient.signerIndex })), this.recipient.signerIndex > 0 && this.showTool('file') && (h("ls-toolbox-field", { key: '0223678ff267f8595c2c0a8653d759666135568a', elementType: "text", formElementType: "file", label: dvI18n.t('toolbox.file'), defaultHeight: FIELD_DEFAULTS['file'].defaultHeight, defaultWidth: FIELD_DEFAULTS['file'].defaultWidth, validation: 74, icon: "upload-icon", tooltip: dvI18n.t('toolbox.filetooltip'), signer: this.recipient.signerIndex })), this.recipient.signerIndex > 0 && this.showTool('drawn') && (h("ls-toolbox-field", { key: '9feee72008c599f0d4737e04bb237f5f303b4c95', elementType: "text", formElementType: "drawn", label: dvI18n.t('toolbox.drawn'), defaultHeight: FIELD_DEFAULTS['drawn'].defaultHeight, defaultWidth: FIELD_DEFAULTS['drawn'].defaultWidth, validation: 90, icon: "pencil-icon", tooltip: dvI18n.t('toolbox.drawntooltip'), signer: this.recipient.signerIndex }))))), h("slot", { key: '3845c8a98da44674f9427b31fd042e35400545b8' }), h("ls-tooltip", { key: '433e9d5c8052b1d1a5ff3abf406157271f64bd1d', tooltipId: "ls-dv-tooltip" })));
853
+ }
854
+ static get watchers() { return {
855
+ "activeRecipient": ["handleExpandCollapse"]
856
+ }; }
857
+ };
858
+ LsRecipientCard.style = lsRecipientCardCss();
859
+
860
+ const lsRecipientManagerCss = () => `:host{display:block}*{margin:0}.ls-dv-editor-infobox{padding:0.25rem}.ls-dv-toolbox-section-title{color:var(--gray-100, #45484d);font-size:1.125rem;font-style:normal;font-weight:500;line-height:1.75rem;margin-bottom:0.375rem}.ls-dv-toolbox-section-description{color:var(--gray-80, #6f7176);font-size:0.75rem;font-style:normal;font-weight:400;line-height:1rem;margin-bottom:0.375rem}`;
861
+
862
+ const LsRecipientManager = class {
863
+ constructor(hostRef) {
864
+ registerInstance(this, hostRef);
865
+ }
866
+ render() {
867
+ return (h(Host, { key: '6ce7f9f730062923ed200956aef0a2333358702b' }, h("div", { key: '47977192bff6c16e37d69147f505d5e096e101d6', class: 'ls-dv-editor-infobox' }, h("h2", { key: 'f4934dd2d4805e3e6dde0eb09cb5cd276c7252d3', class: "ls-dv-toolbox-section-title" }, dvI18n.t('recipients.title')), h("p", { key: '4d9c0cf9fad882541ae4d9099dfb91cb3ddbbfd9', class: "ls-dv-toolbox-section-description" }, dvI18n.t('recipients.description'))), h("slot", { key: 'd9cd07d2a29fb009fd157acc7a95c16ff67baf6c' })));
868
+ }
869
+ };
870
+ LsRecipientManager.style = lsRecipientManagerCss();
871
+
872
+ const lsValidationManagerCss = () => `:host{display:block}*{box-sizing:border-box;margin:0}.ls-dv-toolbox-section-description{color:var(--gray-80, #6f7176);font-size:0.75rem;font-style:normal;font-weight:400;line-height:1rem}.ls-dv-validation-section-title{color:var(--gray-100, #45484d);font-size:1.125rem;font-style:normal;font-weight:500;line-height:1.75rem;}.ls-dv-valid-label{display:flex;padding:0.125rem 0.5rem;justify-content:center;align-items:center;gap:0.25rem;border-radius:1rem;font-size:0.75rem;font-style:normal;font-weight:500;line-height:1.25rem;width:fit-content}.ls-dv-valid{background-color:var(--green-30, #9df5d4);color:var(--green-100, #125241)}.ls-dv-invalid{background:var(--yellow-20, #fff3c2);color:var(--yellow-90, #8a3f0e)}.ls-dv-field-counter{display:flex;padding:0.125rem;justify-content:center;align-items:center;border-radius:1rem;font-size:0.625rem;line-height:0.75rem;font-style:normal;font-weight:500;color:var(--yellow-20, #fff3c2);background:#e17100;min-width:1rem}.ls-dv-field-dropdown{position:absolute;top:2rem;right:0;background:white;display:flex;flex-direction:column;gap:0.75rem;width:20rem;padding:1rem;border-radius:1rem;border:1px solid #e5e7eb;background:#fff;box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);max-height:20rem;overflow-y:auto;flex-direction:column;align-items:flex-start;z-index:1000}.ls-dv-required-field{position:relative;display:flex;width:100%;justify-content:space-between;align-items:center;gap:0.5rem;border-radius:0.625rem;padding:0.5rem 0.5rem 0.5rem 1rem;background:var(--field-background);color:var(--field-text-color);border:1px solid var(--field-border-color);transition:all 0.1s ease-in-out}.ls-dv-required-field:hover{background:var(--field-background-hover);color:var(--field-text-color-hover);border:1px solid var(--field-border-color-hover);box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)}.ls-dv-required-field-items-left{display:flex;gap:0.5rem;align-items:center;width:100%}.ls-dv-required-field-items-left p{font-size:0.875rem;font-style:normal;font-weight:500;line-height:0.875rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ls-dv-dot{height:0.5rem;width:0.5rem;border-radius:50%}.ls-dv-role-label{display:flex;padding:0.125rem 0.1875rem;justify-content:center;align-items:center;border-radius:0.25rem;font-size:0.75rem;font-style:normal;font-weight:400;line-height:1rem;text-transform:capitalize}.ls-dv-dropdown-header h2{color:var(--gray-100, #45484d);font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;margin-bottom:0.125rem}.ls-dv-dropdown-header p{color:var(--gray-80, #6f7176);font-size:0.75rem;font-style:normal;font-weight:400;line-height:1rem;}`;
873
+
874
+ const LsValidationManager = class {
875
+ constructor(hostRef) {
876
+ registerInstance(this, hostRef);
877
+ this.selectFields = createEvent(this, "selectFields", 7);
878
+ }
879
+ /**
880
+ * The template information (as JSON).
881
+ * {LSApiTemplate}
882
+ */
883
+ validationErrors;
884
+ selectFields;
885
+ render() {
886
+ return (h(Host, { key: '32ab9876adf798a57088daa7a3da6ce8ed2400a3' }, h("div", { key: '427e01b54239e3c618fcdc9f89d6855d65995871' }, h("div", { key: 'f5365722377c112fc6f2eb45d9a2ad32a3288476' }, h("div", { key: '77effee6fa7304392e5e262a0cde588c6296822d', class: 'ls-dv-validation-section-title' }, dvI18n.t('common.actionrequired')), h("p", { key: '198bb6953b73bc07bceacee9a9d713a6373b64d1', class: "ls-dv-toolbox-section-description" }, dvI18n.t('validation.description'))), this.validationErrors && this.validationErrors.map((field, idx) => {
887
+ const signerIndex = field?.role?.signerIndex ? field?.role?.signerIndex % 100 : null;
888
+ const pallette = defaultRolePalette[signerIndex || field?.element?.signer || 0];
889
+ return (h("div", { key: idx, class: 'ls-dv-required-field', style: {
890
+ '--field-background': pallette.s10,
891
+ '--field-border-color': pallette.s10,
892
+ '--field-background-hover': pallette.s20,
893
+ '--field-text-color': pallette.s70,
894
+ '--field-text-color-hover': pallette.s80,
895
+ '--field-border-color-hover': pallette.s60,
896
+ cursor: field?.element ? 'pointer' : 'default',
897
+ }, onClick: () => {
898
+ if (field?.element) {
899
+ this.selectFields.emit([field.element]);
900
+ }
901
+ } }, h("div", { class: 'ls-dv-required-field-items-left' }, h("div", { class: 'ls-dv-dot', style: { background: pallette.s60 } }), field?.role && (h("div", { class: 'ls-dv-required-field-items-left' }, h("p", { style: { color: pallette.s80 } }, field.role?.name || `Signer ${field?.role?.signerIndex + 1}`), h("div", { class: 'ls-dv-role-label', style: { background: pallette.s30, color: pallette.s70 } }, field.role?.roleType ? dvI18n.t(`participants.${field.role.roleType.toLowerCase()}`) : `Signer ${field.role?.signerIndex + 1}`))), field?.element && (h(h.Fragment, null, h("ls-toolbox-field", { elementType: "signature", formElementType: "signature", label: dvI18n.t('toolbox.signature'), defaultHeight: FIELD_DEFAULTS['signature'].defaultHeight, defaultWidth: FIELD_DEFAULTS['signature'].defaultWidth, validation: 0, icon: "signature-icon", tooltip: dvI18n.t('toolbox.signaturetooltip'), signer: field.element.signer }), h("p", { style: { color: pallette.s80 } }, field.role?.name || `${field.element.formElementType} ${field?.element?.label + 1}`), h("div", { class: 'ls-dv-role-label', style: { background: pallette.s30, color: pallette.s70 } }, field.description))))));
902
+ })), h("slot", { key: 'b76c2775368b4af043b994580518fdba2a205c8a' })));
903
+ }
904
+ };
905
+ LsValidationManager.style = lsValidationManagerCss();
906
+
907
+ const lsValidationTagCss = () => `:host{position:relative}*{box-sizing:border-box;margin:0}.ls-dv-valid-label{display:flex;padding:0.125rem 0.5rem;justify-content:center;align-items:center;gap:0.25rem;border-radius:1rem;font-size:0.75rem;font-style:normal;font-weight:500;line-height:1.25rem;width:fit-content}.ls-dv-valid-label-wrapper{display:flex;padding:0.25rem;border-radius:0.5rem;border:1px solid var(--gray-20, #edeff2);justify-content:center;align-items:center;border-radius:0.825rem;font-size:0.75rem;font-style:normal;font-weight:500;line-height:1.25rem;width:fit-content;gap:0.25rem}.ls-dv-valid-label-wrapper:hover{background:var(--gray-10, #f7f8fa);border:1px solid var(--gray-30, #e0e2e5)}.ls-dv-valid-label-icon-only{display:flex;padding:0.25rem;justify-content:center;align-items:center;border-radius:0.625rem}.ls-dv-valid{background-color:var(--green-30, #9df5d4);color:var(--green-100, #125241)}.ls-dv-valid.ls-dv-compose{border:1px solid var(--green-50, #57e5b1)}.ls-dv-valid.ls-dv-compose:hover{box-shadow:none}.ls-dv-invalid.ls-dv-default{background:var(--yellow-20, #fff3c2);color:var(--yellow-90, #8a3f0e)}.ls-dv-invalid.ls-dv-compose{border:1px solid var(--red-40, #ffa19e);background:var(--red-10, #fff0f0);color:var(--red-80, #c1140e)}.ls-dv-field-counter{display:flex;padding:0.125rem;justify-content:center;align-items:center;border-radius:1rem;font-size:0.625rem;line-height:0.75rem;font-style:normal;font-weight:500;color:var(--yellow-20, #fff3c2);background:#e17100;min-width:1rem}.ls-field-counter-floating{position:absolute;top:-0.125rem;right:-0.125rem}.ls-dv-field-counter.ls-dv-compose{color:var(--red-10, #fff0f0);background:var(--red-60, #f64a44)}.ls-dv-field-dropdown{position:absolute;top:2rem;right:0;background:white;display:flex;flex-direction:column;gap:0.75rem;width:20rem;padding:1rem;border-radius:1rem;border:1px solid #e5e7eb;background:#fff;box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);max-height:20rem;overflow-y:auto;flex-direction:column;align-items:flex-start;z-index:1000}.ls-dv-field-dropdown.ls-dv-field-dropdown-success{background:linear-gradient(var(--green-10, #effff9) 0%, rgb(255, 255, 255) 100%);width:fit-content;padding:2rem;align-items:center;justify-content:center}.ls-dv-field-dropdown.ls-dv-field-dropdown-success *{text-align:center;white-space:nowrap}.ls-dv-dropdown-success-icon-outer{display:flex;justify-content:center;align-items:center;border-radius:9999px;background:var(--green-20, #c5fde8);padding:0.5rem}.ls-dv-dropdown-success-icon-inner{display:flex;justify-content:center;align-items:center;border-radius:9999px;background:var(--green-40, #72f0c2);padding:0.75rem;color:var(--green-100, #125241)}.ls-dv-field-dropdown.ls-dv-compose{width:14rem;padding:0.75rem;gap:0.5rem}.ls-dv-field-dropdown.ls-dv-compose>*{width:100%}.ls-dv-validation-section{width:100%;display:flex;flex-direction:column;gap:0.5rem}.ls-dv-required-field{position:relative;display:flex;width:100%;justify-content:space-between;align-items:center;gap:0.5rem;border-radius:0.625rem;padding:0.5rem 0.5rem 0.5rem 1rem;background:var(--field-background);color:var(--field-text-color);border:1px solid var(--field-border-color);transition:all 0.1s ease-in-out;cursor:pointer}.ls-dv-required-field:hover{background:var(--field-background-hover);color:var(--field-text-color-hover);border:1px solid var(--field-border-color-hover);box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)}.ls-dv-required-field-items-left{display:flex;gap:0.5rem;align-items:center;width:100%}.ls-dv-required-field-items-left p{font-size:0.875rem;font-style:normal;font-weight:500;line-height:0.875rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ls-dv-dot{height:0.5rem;width:0.5rem;border-radius:50%}.ls-dv-role-label{display:flex;padding:0.125rem 0.1875rem;justify-content:center;align-items:center;border-radius:0.25rem;font-size:0.75rem;font-style:normal;font-weight:400;line-height:1rem;text-transform:capitalize}.ls-dv-dropdown-header h2{color:var(--gray-100, #45484d);font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;margin-bottom:0.125rem}.ls-dv-dropdown-header p{color:var(--gray-80, #6f7176);font-size:0.75rem;font-style:normal;font-weight:400;line-height:1rem;}.ls-dv-validation-tag-container{padding:0.75rem;display:flex;flex-direction:column;gap:0.5rem}.ls-dv-validation-tag-header{padding-bottom:0.5rem;border-bottom:1px solid #edeff2}.ls-dv-validation-tag-title{font-family:"IBM Plex Sans Medium", "IBM Plex Sans", sans-serif;font-size:0.875rem;color:#45484d;line-height:1.5rem}.ls-dv-validation-tag-row{display:flex;align-items:center;gap:0.5rem;padding:0.5rem;border-radius:0.625rem;cursor:pointer;transition:background-color 0.2s}.ls-dv-validation-tag-row:hover{background-color:var(--gray-10, #f7f8fa)}.ls-dv-validation-tag-bar{width:0.25rem;height:2rem;border-radius:9999px;flex-shrink:0}.ls-dv-validation-tag-details{flex:1 1 0%;min-width:0}.ls-dv-validation-tag-name{font-family:"IBM Plex Sans Medium", "IBM Plex Sans", sans-serif;font-size:0.875rem;color:#45484d;line-height:1.5rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ls-dv-validation-tag-email{font-family:"IBM Plex Sans Light", "IBM Plex Sans", sans-serif;font-size:0.75rem;color:#5e6066;line-height:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}`;
908
+
909
+ const LsValidationTag = class {
910
+ constructor(hostRef) {
911
+ registerInstance(this, hostRef);
912
+ this.changeSigner = createEvent(this, "changeSigner", 7);
913
+ this.selectFieldForPlacement = createEvent(this, "selectFieldForPlacement", 7);
914
+ this.selectFields = createEvent(this, "selectFields", 7);
915
+ }
916
+ status = 'Invalid';
917
+ validationErrors = [];
918
+ isExpanded = false;
919
+ type = 'default';
920
+ showDropDown = true;
921
+ changeSigner;
922
+ selectFieldForPlacement;
923
+ selectFields;
924
+ handleClickOutside = (event) => {
925
+ const path = event.composedPath();
926
+ if (path.includes(this.el))
927
+ return;
928
+ if (this.isExpanded) {
929
+ this.isExpanded = false;
930
+ }
931
+ };
932
+ el;
933
+ componentDidLoad() {
934
+ this.el = this.host || this.el || this.component;
935
+ document.addEventListener('mousedown', this.handleClickOutside);
936
+ }
937
+ disconnectedCallback() {
938
+ document.removeEventListener('mousedown', this.handleClickOutside);
939
+ }
940
+ render() {
941
+ return (h(Host, { key: '0a288719fe0c4633f25add33194bb00600c3a184', ref: el => (this.el = el) }, this.type === 'compose' ? (h("div", { class: `ls-dv-valid-label ls-dv-compose ${this.validationErrors.length === 0 ? 'ls-dv-valid' : 'ls-dv-invalid'}`, onClick: this.validationErrors.length && (() => (this.isExpanded = !this.isExpanded)) }, this.validationErrors.length > 0 && h("div", { class: "ls-dv-field-counter ls-dv-compose" }, this.validationErrors.length), this.validationErrors.length === 0 ? dvI18n.t('common.ready') : dvI18n.t('common.required'), this.validationErrors.length > 0 && h("ls-icon", { name: "cursor-click-icon", solid: true, size: 16, customStyle: { color: 'var(--red-70, #DC2721);' } }), this.validationErrors.length === 0 && h("ls-icon", { name: "check-icon", solid: true, size: 16, customStyle: { marginRight: '-0.125rem' } }))) : (h("div", { class: `ls-dv-valid-label-wrapper`, onClick: () => (this.isExpanded = !this.isExpanded) }, h("div", { class: `ls-dv-valid-label-icon-only ls-dv-default ${this.validationErrors.length === 0 ? 'ls-dv-valid' : 'ls-dv-invalid'}` }, h("ls-icon", { name: this.validationErrors.length > 0 ? 'clipboard-list-icon' : 'check-icon', size: 20 })), this.validationErrors.length > 0 && h("div", { class: "ls-dv-field-counter ls-field-counter-floating ls-dv-default" }, this.validationErrors.length), this.validationErrors.length > 0 && this.showDropDown && (h("ls-icon", { name: this.isExpanded ? 'chevron-up-icon' : 'chevron-down-icon', customStyle: { color: 'var(--gray-70, #4B5563)', marginRight: '0.25rem' } })))), this.isExpanded && this.validationErrors.length !== 0 && this.showDropDown && this.type !== 'compose' && (h("div", { key: '2da705d7b851a26d66c6877602d5488c8bf54ca6', class: 'ls-dv-field-dropdown', style: { top: '3.5rem' } }, (() => {
942
+ const signatureErrors = this.validationErrors.filter(f => f?.role && !f?.element);
943
+ const elementErrors = this.validationErrors.filter(f => f?.element);
944
+ return [
945
+ signatureErrors.length > 0 && (h("div", { class: "ls-dv-validation-section" }, h("div", { class: 'ls-dv-dropdown-header' }, h("h2", null, dvI18n.t('common.fieldsrequired')), h("p", null, signatureErrors.length, " ", signatureErrors.length === 1 ? dvI18n.t('validation.recipientneedsignature') : dvI18n.t('validation.recipientsneedsignatures'))), signatureErrors.map((field, idx) => {
946
+ const signerIndex = field?.role?.signerIndex ? field?.role?.signerIndex % 100 : null;
947
+ const pallette = defaultRolePalette[signerIndex || 0];
948
+ return (h("div", { key: `sig-${idx}`, class: 'ls-dv-required-field', style: {
949
+ '--field-background': pallette.s10,
950
+ '--field-border-color': pallette.s10,
951
+ '--field-background-hover': pallette.s20,
952
+ '--field-text-color': pallette.s70,
953
+ '--field-text-color-hover': pallette.s80,
954
+ '--field-border-color-hover': pallette.s60,
955
+ }, onMouseDown: e => {
956
+ e.preventDefault();
957
+ e.stopPropagation();
958
+ const fieldType = field?.element?.formElementType || 'signature';
959
+ this.selectFieldForPlacement.emit({
960
+ signerIndex: field.role.signerIndex,
961
+ fieldType: fieldType,
962
+ });
963
+ this.isExpanded = false;
964
+ } }, h("div", { class: 'ls-dv-required-field-items-left' }, h("div", { class: 'ls-dv-dot', style: { background: pallette.s60 } }), h("div", { class: 'ls-dv-required-field-items-left' }, h("p", { style: { color: pallette.s80 } }, field.role?.name || `Signer ${field?.role?.signerIndex + 1}`), h("ls-label", { text: field.role?.roleType ? dvI18n.t(`participants.${field.role.roleType.toLowerCase()}`) : `Signer ${field.role?.signerIndex + 1}`, colour: pallette.description, type: "low", size: "sm" })))));
965
+ }))),
966
+ elementErrors.length > 0 && (h("div", { class: "ls-dv-validation-section" }, h("div", { class: 'ls-dv-dropdown-header' }, h("h2", null, dvI18n.t('validation.optionsrequired')), h("p", null, elementErrors.length, " ", elementErrors.length === 1 ? dvI18n.t('validation.fieldneedsoptions') : dvI18n.t('validation.fieldsneedoptions'))), elementErrors.map((field, idx) => {
967
+ const signerIndex = field?.element?.signer ? field?.element?.signer % 100 : 0;
968
+ const pallette = defaultRolePalette[signerIndex];
969
+ return (h("div", { key: `el-${idx}`, class: 'ls-dv-required-field', style: {
970
+ '--field-background': pallette.s10,
971
+ '--field-border-color': pallette.s10,
972
+ '--field-background-hover': pallette.s20,
973
+ '--field-text-color': pallette.s70,
974
+ '--field-text-color-hover': pallette.s80,
975
+ '--field-border-color-hover': pallette.s60,
976
+ }, onMouseDown: e => {
977
+ e.preventDefault();
978
+ e.stopPropagation();
979
+ this.selectFields.emit([field.element]);
980
+ this.isExpanded = false;
981
+ } }, h("div", { class: 'ls-dv-required-field-items-left' }, h("div", { class: 'ls-dv-dot', style: { background: pallette.s60 } }), h("div", { class: 'ls-dv-required-field-items-left' }, h("p", { style: { color: pallette.s80 } }, field.title), h("ls-label", { text: field.description, colour: pallette.description, type: "low", size: "sm" })))));
982
+ }))),
983
+ ];
984
+ })())), this.isExpanded && this.validationErrors.length === 0 && this.type !== 'compose' && this.showDropDown && (h("div", { key: 'bec5c70a45c0a8e48d52b23d6468376347229f3a', class: 'ls-dv-field-dropdown ls-dv-field-dropdown-success', style: { top: '3.5rem' } }, h("div", { key: 'a681ac7256b1b19a00e9fb3b2b595235c104a610', class: "ls-dv-dropdown-success-icon-outer" }, h("div", { key: '059b00d57cb5f42172b3a942001e889e66af6627', class: "ls-dv-dropdown-success-icon-inner" }, h("ls-icon", { key: '4dc815096c6dfb2200cc8700f9ea383953952a01', name: "check-icon", solid: true, size: 28 }))), h("div", { key: '5e644880c37ef41aa1f00263603861084945bd2b', class: 'ls-dv-dropdown-header' }, h("h2", { key: '4d9a95e4310b92d4c69ba560bc420943e5db926b' }, dvI18n.t('common.templatereadytosend')), h("p", { key: 'c5f2d24f36bcc7d934798ef2c612c231e8e90b33' }, dvI18n.t('common.allfieldsplaced'))))), this.isExpanded && this.validationErrors.length !== 0 && this.showDropDown && this.type === 'compose' && (h("div", { key: '3852a720b5d8469d9e24da056798fca55f36715b', class: 'ls-dv-field-dropdown ls-dv-compose' }, (() => {
985
+ const signatureErrors = this.validationErrors.filter(f => f?.role && !f?.element);
986
+ const elementErrors = this.validationErrors.filter(f => f?.element);
987
+ return [
988
+ signatureErrors.length > 0 && (h("div", { class: "ls-dv-validation-section" }, h("div", { class: "ls-dv-validation-tag-header" }, h("p", { class: "ls-dv-validation-tag-title" }, dvI18n.t('common.fieldsrequired'))), signatureErrors.map((field, idx) => {
989
+ const signerIndex = field?.role?.signerIndex ? field?.role?.signerIndex % 100 : null;
990
+ const pallette = defaultRolePalette[signerIndex || 0];
991
+ return (h("div", { class: "ls-dv-validation-tag-row", key: `sig-${idx}`, onClick: () => {
992
+ this.selectFieldForPlacement.emit({
993
+ signerIndex: field.role.signerIndex,
994
+ fieldType: 'signature',
995
+ });
996
+ this.isExpanded = false;
997
+ } }, h("div", { class: "ls-dv-validation-tag-bar", style: { background: pallette.s60 } }), h("div", { class: "ls-dv-validation-tag-details" }, h("p", { class: "ls-dv-validation-tag-name" }, field?.role?.previousRecipientDecides ? `Recipient ${field?.role?.signerIndex + 1}` : `${field?.role?.firstName} ${field?.role?.lastName}`), h("p", { class: "ls-dv-validation-tag-email" }, field?.role?.previousRecipientDecides ? dvI18n.t('common.detailstobedecided') : field?.role?.email))));
998
+ }))),
999
+ elementErrors.length > 0 && (h("div", { class: "ls-dv-validation-section" }, h("div", { class: "ls-dv-validation-tag-header" }, h("p", { class: "ls-dv-validation-tag-title" }, dvI18n.t('validation.optionsrequired'))), elementErrors.map((field, idx) => {
1000
+ const signerIndex = field?.element?.signer ? field?.element?.signer % 100 : 0;
1001
+ const pallette = defaultRolePalette[signerIndex];
1002
+ return (h("div", { class: "ls-dv-validation-tag-row", key: `el-${idx}`, onClick: () => {
1003
+ this.selectFields.emit([field.element]);
1004
+ this.isExpanded = false;
1005
+ } }, h("div", { class: "ls-dv-validation-tag-bar", style: { background: pallette.s60 } }), h("div", { class: "ls-dv-validation-tag-details" }, h("p", { class: "ls-dv-validation-tag-name" }, field.title), h("p", { class: "ls-dv-validation-tag-email" }, field.description))));
1006
+ }))),
1007
+ ];
1008
+ })()))));
1009
+ }
1010
+ };
1011
+ LsValidationTag.style = lsValidationTagCss();
1012
+
1013
+ export { LsAddNewButton as ls_add_new_button, LsDocumentOptions as ls_document_options, LsFeatureColoumn as ls_feature_column, LsFieldProperties as ls_field_properties, LsFieldPropertiesAutosign as ls_field_properties_autosign, LsFieldPropertiesDate as ls_field_properties_date, LsFieldPropertiesEmail as ls_field_properties_email, LsFieldPropertiesFile as ls_field_properties_file, LsFieldPropertiesGeneral as ls_field_properties_general, LsFieldPropertiesImage as ls_field_properties_image, LsFieldPropertiesMultiple as ls_field_properties_multiple, LsFieldPropertiesNumber as ls_field_properties_number, LsFieldPropertiesSignature as ls_field_properties_signature, LsFieldPropertiesText as ls_field_properties_text, LsParticipantCard as ls_participant_card, LsParticipantManager as ls_participant_manager, LsRecipientCard as ls_recipient_card, LsRecipientManager as ls_recipient_manager, LsValidationManager as ls_validation_manager, LsValidationTag as ls_validation_tag };
1014
+ //# sourceMappingURL=ls-add-new-button.ls-document-options.ls-feature-column.ls-field-properties.ls-field-properties-autosign.ls-field-properties-date.ls-field-properties-email.ls-field-properties-file.ls-field-properties-general.ls-field-properties-image.ls-field-properties-multiple.ls-field-properties-number.ls-field-properties-signature.ls-field-properties-text.ls-participant-card.ls-participant-manager.ls-recipient-card.ls-recipient-manager.ls-validation-manager.ls-validation-tag.entry.js.map