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