legalesign-document-viewer 1.0.9 → 1.0.11
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.
- package/dist/cjs/{editorUtils-qPk-FXeB.js → editorUtils-Bej3Frit.js} +4 -4
- package/dist/cjs/editorUtils-Bej3Frit.js.map +1 -0
- package/dist/cjs/{i18n-CiRtpN_k.js → i18n-CO9DdQsL.js} +56 -20
- package/dist/cjs/{i18n-CiRtpN_k.js.map → i18n-CO9DdQsL.js.map} +1 -1
- package/dist/cjs/ls-add-new-button_20.cjs.entry.js +28 -28
- package/dist/cjs/ls-assignee-select_21.cjs.entry.js +14 -14
- package/dist/cjs/ls-compose-loader_7.cjs.entry.js +10 -10
- package/dist/cjs/ls-compose-manager.cjs.entry.js +1 -1
- package/dist/cjs/ls-document-viewer.cjs.entry.js +5 -5
- package/dist/cjs/ls-field-alignment_3.cjs.entry.js +4 -4
- package/dist/cjs/ls-field-format_2.cjs.entry.js +11 -11
- package/dist/cjs/ls-field-properties-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/ls-field-type-display.cjs.entry.js +4 -4
- package/dist/cjs/ls-helper-bar_2.cjs.entry.js +3 -3
- package/dist/cjs/ls-title-input.cjs.entry.js +1 -1
- package/dist/cjs/ls-toolbox-field.cjs.entry.js +3 -3
- package/dist/cjs/{mouseHandlers-CsURq0hI.js → mouseHandlers-CwOyBBz6.js} +5 -5
- package/dist/cjs/mouseHandlers-CwOyBBz6.js.map +1 -0
- package/dist/collection/components/ls-document-viewer/adapter/elementActions.js +2 -2
- package/dist/collection/components/ls-document-viewer/adapter/elementActions.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/adapter/templateActions.js +1 -1
- package/dist/collection/components/ls-document-viewer/adapter/templateActions.js.map +1 -1
- package/dist/collection/components/ls-document-viewer/mouseHandlers.js +1 -1
- package/dist/collection/components/ls-document-viewer/mouseHandlers.js.map +1 -1
- package/dist/collection/components/ls-editor-field/ls-editor-field.js +1 -1
- package/dist/collection/components/ls-field-content/ls-field-content.js +1 -1
- package/dist/collection/components/ls-field-dimensions/ls-field-dimensions.js +1 -1
- package/dist/collection/components/ls-field-footer/ls-field-footer.js +1 -1
- package/dist/collection/components/ls-field-placement/ls-field-placement.js +1 -1
- package/dist/collection/components/ls-field-properties-advanced/ls-field-properties-advanced.js +4 -4
- package/dist/collection/components/ls-field-properties-advanced/ls-field-properties-advanced.js.map +1 -1
- package/dist/collection/components/ls-field-properties-autosign/ls-field-properties-autosign.js +2 -2
- package/dist/collection/components/ls-field-properties-checkbox/ls-field-properties-checkbox.js +2 -2
- package/dist/collection/components/ls-field-properties-container/ls-field-properties-container.js +2 -2
- package/dist/collection/components/ls-field-properties-date/ls-field-properties-date.js +2 -2
- package/dist/collection/components/ls-field-properties-dropdown/ls-field-properties-dropdown.js +2 -2
- package/dist/collection/components/ls-field-properties-email/ls-field-properties-email.js +2 -2
- package/dist/collection/components/ls-field-properties-file/ls-field-properties-file.js +2 -2
- package/dist/collection/components/ls-field-properties-general/ls-field-properties-general.js +2 -2
- package/dist/collection/components/ls-field-properties-multiple/ls-field-properties-multiple.js +4 -4
- package/dist/collection/components/ls-field-properties-number/ls-field-properties-number.js +2 -2
- package/dist/collection/components/ls-field-properties-signature/ls-field-properties-signature.js +2 -2
- package/dist/collection/components/ls-field-properties-text/ls-field-properties-text.js +2 -2
- package/dist/collection/components/ls-field-size/ls-field-size.js +1 -1
- package/dist/collection/components/ls-field-type-display/ls-field-type-display.js +3 -3
- package/dist/collection/components/ls-field-type-select/ls-field-type-select.js +4 -4
- package/dist/collection/components/ls-helper-bar/ls-helper-bar.js +1 -1
- package/dist/collection/components/ls-input-wrapper/ls-input-wrapper.js +1 -1
- package/dist/collection/components/ls-keyboard-shortcuts/ls-keyboard-shortcuts.js +1 -1
- package/dist/collection/components/ls-participant-manager/ls-participant-manager.js +3 -3
- package/dist/collection/components/ls-participant-select/ls-participant-select.js +10 -10
- package/dist/collection/components/ls-props-section/ls-props-section.js +1 -1
- package/dist/collection/components/ls-recipient-card/ls-recipient-card.js +5 -5
- package/dist/collection/components/ls-recipient-manager/ls-recipient-manager.js +1 -1
- package/dist/collection/components/ls-statusbar/ls-statusbar.js +8 -8
- package/dist/collection/components/ls-title-input/ls-title-input.js +1 -1
- package/dist/collection/components/ls-toggle/ls-toggle.js +2 -2
- package/dist/collection/components/ls-toolbox-field/ls-toolbox-field.js +3 -3
- package/dist/collection/components/ls-validation-manager/ls-validation-manager.js +2 -2
- package/dist/collection/components/ls-validation-tag/ls-validation-tag.js +2 -2
- package/dist/collection/types/LSApiElement.js.map +1 -1
- package/dist/components/ls-assignee-select.js +1 -1
- package/dist/components/ls-compose-manager.js +1 -1
- package/dist/components/ls-document-options.js +1 -1
- package/dist/components/ls-document-viewer.js +46 -46
- package/dist/components/ls-document-viewer.js.map +1 -1
- package/dist/components/ls-editor-field.js +1 -1
- package/dist/components/ls-feature-column.js +1 -1
- package/dist/components/ls-field-alignment.js +1 -1
- package/dist/components/ls-field-content.js +1 -1
- package/dist/components/ls-field-dimensions.js +1 -1
- package/dist/components/ls-field-distribute.js +1 -1
- package/dist/components/ls-field-footer.js +1 -1
- package/dist/components/ls-field-format.js +1 -1
- package/dist/components/ls-field-placement.js +1 -1
- package/dist/components/ls-field-properties-advanced.js +1 -1
- package/dist/components/ls-field-properties-autosign.js +1 -1
- package/dist/components/ls-field-properties-checkbox.js +1 -1
- package/dist/components/ls-field-properties-container.js +1 -1
- package/dist/components/ls-field-properties-date.js +1 -1
- package/dist/components/ls-field-properties-dropdown.js +13 -13
- package/dist/components/ls-field-properties-email.js +1 -1
- package/dist/components/ls-field-properties-file.js +1 -1
- package/dist/components/ls-field-properties-general.js +1 -1
- package/dist/components/ls-field-properties-multiple.js +1 -1
- package/dist/components/ls-field-properties-number.js +1 -1
- package/dist/components/ls-field-properties-signature.js +1 -1
- package/dist/components/ls-field-properties-text.js +1 -1
- package/dist/components/ls-field-properties.js +1 -1
- package/dist/components/ls-field-size.js +1 -1
- package/dist/components/ls-field-type-display.js +4 -4
- package/dist/components/ls-field-type-select.js +1 -1
- package/dist/components/ls-helper-bar.js +1 -1
- package/dist/components/ls-input-wrapper.js +1 -1
- package/dist/components/ls-keyboard-shortcuts.js +1 -1
- package/dist/components/ls-left-bar.js +1 -1
- package/dist/components/ls-participant-card.js +1 -1
- package/dist/components/ls-participant-manager.js +1 -1
- package/dist/components/ls-participant-select.js +1 -1
- package/dist/components/ls-props-section.js +1 -1
- package/dist/components/ls-recipient-card.js +1 -1
- package/dist/components/ls-recipient-manager.js +1 -1
- package/dist/components/ls-select-menu.js +1 -1
- package/dist/components/ls-statusbar.js +1 -1
- package/dist/components/ls-title-input.js +1 -1
- package/dist/components/ls-toggle.js +1 -1
- package/dist/components/ls-toolbar.js +1 -1
- package/dist/components/ls-toolbox-field.js +1 -1
- package/dist/components/ls-validation-manager.js +1 -1
- package/dist/components/ls-validation-tag.js +1 -1
- package/dist/components/{p-cVy33CoF.js → p-0gpJEkuE.js} +7 -7
- package/dist/components/{p-cVy33CoF.js.map → p-0gpJEkuE.js.map} +1 -1
- package/dist/components/{p-CP0kT0Mg.js → p-8F4ilTjF.js} +9 -9
- package/dist/components/{p-CP0kT0Mg.js.map → p-8F4ilTjF.js.map} +1 -1
- package/dist/components/{p-CTJakSNy.js → p-Al32p_JM.js} +56 -20
- package/dist/components/{p-CTJakSNy.js.map → p-Al32p_JM.js.map} +1 -1
- package/dist/components/{p-BGqK8A6J.js → p-BD_LQa4f.js} +15 -15
- package/dist/components/{p-BGqK8A6J.js.map → p-BD_LQa4f.js.map} +1 -1
- package/dist/components/{p-DrY15WI3.js → p-BKbGzLae.js} +3 -3
- package/dist/components/{p-DrY15WI3.js.map → p-BKbGzLae.js.map} +1 -1
- package/dist/components/{p-CmTo6hVs.js → p-BNHlMdus.js} +3 -3
- package/dist/components/{p-CmTo6hVs.js.map → p-BNHlMdus.js.map} +1 -1
- package/dist/components/{p-B-C6alQM.js → p-BRcbstSs.js} +14 -14
- package/dist/components/{p-B-C6alQM.js.map → p-BRcbstSs.js.map} +1 -1
- package/dist/components/{p-Dt25nkl1.js → p-BcIQeY5m.js} +15 -15
- package/dist/components/{p-Dt25nkl1.js.map → p-BcIQeY5m.js.map} +1 -1
- package/dist/components/{p-BGf2weVY.js → p-BddWzZuD.js} +4 -4
- package/dist/components/{p-BGf2weVY.js.map → p-BddWzZuD.js.map} +1 -1
- package/dist/components/{p-XbR1a2cd.js → p-Bmm5vB3M.js} +38 -38
- package/dist/components/{p-XbR1a2cd.js.map → p-Bmm5vB3M.js.map} +1 -1
- package/dist/components/{p-CAodj2pw.js → p-BodlW2-m.js} +4 -4
- package/dist/components/{p-CAodj2pw.js.map → p-BodlW2-m.js.map} +1 -1
- package/dist/components/{p-OM5HW0fT.js → p-BoxsygDA.js} +15 -15
- package/dist/components/{p-OM5HW0fT.js.map → p-BoxsygDA.js.map} +1 -1
- package/dist/components/{p-Dx13q6Yk.js → p-BrzfHYNI.js} +15 -15
- package/dist/components/{p-Dx13q6Yk.js.map → p-BrzfHYNI.js.map} +1 -1
- package/dist/components/{p-DNOnOhDR.js → p-BzFRp7ij.js} +4 -4
- package/dist/components/{p-DNOnOhDR.js.map → p-BzFRp7ij.js.map} +1 -1
- package/dist/components/{p-DJPmzRND.js → p-C-vCe5Wm.js} +3 -3
- package/dist/components/{p-DJPmzRND.js.map → p-C-vCe5Wm.js.map} +1 -1
- package/dist/components/{p-BtdUICMY.js → p-C2JalniE.js} +4 -4
- package/dist/components/{p-BtdUICMY.js.map → p-C2JalniE.js.map} +1 -1
- package/dist/components/{p-BIGiHXfV.js → p-CD0ohunR.js} +5 -5
- package/dist/components/{p-BIGiHXfV.js.map → p-CD0ohunR.js.map} +1 -1
- package/dist/components/{p-BYUxzyjP.js → p-CJWQJjj3.js} +4 -4
- package/dist/components/{p-BYUxzyjP.js.map → p-CJWQJjj3.js.map} +1 -1
- package/dist/components/{p-DFJ5ZITC.js → p-CLn6CMAa.js} +5 -5
- package/dist/components/{p-DFJ5ZITC.js.map → p-CLn6CMAa.js.map} +1 -1
- package/dist/components/{p-qUfVDcw9.js → p-CLsTvOMB.js} +5 -5
- package/dist/components/{p-qUfVDcw9.js.map → p-CLsTvOMB.js.map} +1 -1
- package/dist/components/{p-CpiQFgrc.js → p-CTMHCecN.js} +9 -9
- package/dist/components/{p-CpiQFgrc.js.map → p-CTMHCecN.js.map} +1 -1
- package/dist/components/{p-DRNWIJua.js → p-Cmw6RXlv.js} +8 -8
- package/dist/components/{p-DRNWIJua.js.map → p-Cmw6RXlv.js.map} +1 -1
- package/dist/components/{p-MfUeAqax.js → p-CyHkY6Ep.js} +4 -4
- package/dist/components/{p-MfUeAqax.js.map → p-CyHkY6Ep.js.map} +1 -1
- package/dist/components/{p-C9HNwsm9.js → p-D2fyXA3F.js} +19 -19
- package/dist/components/{p-C9HNwsm9.js.map → p-D2fyXA3F.js.map} +1 -1
- package/dist/components/{p-Coi9olJj.js → p-D3nY_GGj.js} +13 -13
- package/dist/components/{p-Coi9olJj.js.map → p-D3nY_GGj.js.map} +1 -1
- package/dist/components/{p-Df4XNePF.js → p-DGQDJCUG.js} +3 -3
- package/dist/components/{p-Df4XNePF.js.map → p-DGQDJCUG.js.map} +1 -1
- package/dist/components/{p-psaKay8Q.js → p-DKCAgr17.js} +15 -15
- package/dist/components/{p-psaKay8Q.js.map → p-DKCAgr17.js.map} +1 -1
- package/dist/components/{p-C7Lt318b.js → p-DQGVdCyH.js} +5 -5
- package/dist/components/{p-C7Lt318b.js.map → p-DQGVdCyH.js.map} +1 -1
- package/dist/components/{p-Cnnef3Aj.js → p-DaQLveiE.js} +3 -3
- package/dist/components/{p-Cnnef3Aj.js.map → p-DaQLveiE.js.map} +1 -1
- package/dist/components/{p-BtEbRXYV.js → p-DjyJ7Vy7.js} +15 -15
- package/dist/components/{p-BtEbRXYV.js.map → p-DjyJ7Vy7.js.map} +1 -1
- package/dist/components/{p-D3MoYCK8.js → p-DmB0JIWj.js} +4 -4
- package/dist/components/{p-D3MoYCK8.js.map → p-DmB0JIWj.js.map} +1 -1
- package/dist/components/{p-BLg4aOta.js → p-DmrshWtQ.js} +3 -3
- package/dist/components/{p-BLg4aOta.js.map → p-DmrshWtQ.js.map} +1 -1
- package/dist/components/{p-xGqqHc5A.js → p-Dxb06R94.js} +3 -3
- package/dist/components/{p-xGqqHc5A.js.map → p-Dxb06R94.js.map} +1 -1
- package/dist/components/{p-CAcUrs4O.js → p-RceAr_AQ.js} +3 -3
- package/dist/components/{p-CAcUrs4O.js.map → p-RceAr_AQ.js.map} +1 -1
- package/dist/components/{p-CWhhZmiz.js → p-S46PtMZ-.js} +6 -6
- package/dist/components/{p-CWhhZmiz.js.map → p-S46PtMZ-.js.map} +1 -1
- package/dist/components/{p-Bhd-PK8a.js → p-WCNsFhYD.js} +5 -5
- package/dist/components/{p-Bhd-PK8a.js.map → p-WCNsFhYD.js.map} +1 -1
- package/dist/components/{p-SPfJL8BL.js → p-XbFErpli.js} +4 -4
- package/dist/components/{p-SPfJL8BL.js.map → p-XbFErpli.js.map} +1 -1
- package/dist/components/{p-DcHV6_u-.js → p-ZKk3AJde.js} +27 -27
- package/dist/components/{p-DcHV6_u-.js.map → p-ZKk3AJde.js.map} +1 -1
- package/dist/components/{p-CbHnsyZK.js → p-eDwhUH-3.js} +3 -3
- package/dist/components/{p-CbHnsyZK.js.map → p-eDwhUH-3.js.map} +1 -1
- package/dist/components/{p-gI-BKLOF.js → p-eWb3jk9k.js} +7 -7
- package/dist/components/{p-gI-BKLOF.js.map → p-eWb3jk9k.js.map} +1 -1
- package/dist/components/{p-DdhwRHiy.js → p-gvdT4if6.js} +3 -3
- package/dist/components/{p-DdhwRHiy.js.map → p-gvdT4if6.js.map} +1 -1
- package/dist/components/{p-DXfTLLqW.js → p-m1DXrPv0.js} +15 -15
- package/dist/components/{p-DXfTLLqW.js.map → p-m1DXrPv0.js.map} +1 -1
- package/dist/components/{p-Dzpgg8ew.js → p-nEeIgVD4.js} +7 -7
- package/dist/components/p-nEeIgVD4.js.map +1 -0
- package/dist/components/{p-CmBPltP9.js → p-sL-kvPiU.js} +15 -15
- package/dist/components/{p-CmBPltP9.js.map → p-sL-kvPiU.js.map} +1 -1
- package/dist/esm/{editorUtils-t6aFqPXA.js → editorUtils-COpeLNIg.js} +4 -4
- package/dist/esm/editorUtils-COpeLNIg.js.map +1 -0
- package/dist/esm/{i18n-CTJakSNy.js → i18n-Al32p_JM.js} +56 -20
- package/dist/esm/{i18n-CTJakSNy.js.map → i18n-Al32p_JM.js.map} +1 -1
- package/dist/esm/ls-add-new-button_20.entry.js +28 -28
- package/dist/esm/ls-assignee-select_21.entry.js +14 -14
- package/dist/esm/ls-compose-loader_7.entry.js +10 -10
- package/dist/esm/ls-compose-manager.entry.js +1 -1
- package/dist/esm/ls-document-viewer.entry.js +5 -5
- package/dist/esm/ls-document-viewer.entry.js.map +1 -1
- package/dist/esm/ls-field-alignment_3.entry.js +4 -4
- package/dist/esm/ls-field-format_2.entry.js +11 -11
- package/dist/esm/ls-field-properties-dropdown.entry.js +1 -1
- package/dist/esm/ls-field-type-display.entry.js +4 -4
- package/dist/esm/ls-helper-bar_2.entry.js +3 -3
- package/dist/esm/ls-title-input.entry.js +1 -1
- package/dist/esm/ls-toolbox-field.entry.js +3 -3
- package/dist/esm/{mouseHandlers-CXAZ6jqT.js → mouseHandlers-ZnSeG3Tw.js} +5 -5
- package/dist/esm/mouseHandlers-ZnSeG3Tw.js.map +1 -0
- package/dist/ls-document-viewer/ls-document-viewer.esm.js +1 -1
- package/dist/ls-document-viewer/p-0WDO8yNX.js +2 -0
- package/dist/ls-document-viewer/p-0WDO8yNX.js.map +1 -0
- package/dist/ls-document-viewer/{p-f9f2226d.entry.js → p-0bd91b5d.entry.js} +2 -2
- package/dist/ls-document-viewer/{p-81cfdefe.entry.js → p-106a844a.entry.js} +2 -2
- package/dist/ls-document-viewer/{p-2af72229.entry.js → p-51edee50.entry.js} +2 -2
- package/dist/ls-document-viewer/p-5dbd72f7.entry.js +2 -0
- package/dist/ls-document-viewer/p-Al32p_JM.js +2 -0
- package/dist/ls-document-viewer/{p-CTJakSNy.js.map → p-Al32p_JM.js.map} +1 -1
- package/dist/ls-document-viewer/{p-Ml5kW412.js → p-BnmDPEuZ.js} +2 -2
- package/dist/ls-document-viewer/p-BnmDPEuZ.js.map +1 -0
- package/dist/ls-document-viewer/{p-489e2da3.entry.js → p-af926417.entry.js} +4 -4
- package/dist/ls-document-viewer/p-af926417.entry.js.map +1 -0
- package/dist/ls-document-viewer/{p-bd5520ed.entry.js → p-b142576e.entry.js} +2 -2
- package/dist/ls-document-viewer/{p-dc4a84a2.entry.js → p-c71b0687.entry.js} +2 -2
- package/dist/ls-document-viewer/p-c7361f1c.entry.js +2 -0
- package/dist/ls-document-viewer/{p-1ce17f2e.entry.js.map → p-c7361f1c.entry.js.map} +1 -1
- package/dist/ls-document-viewer/{p-f3d31f21.entry.js → p-daea4a55.entry.js} +2 -2
- package/dist/ls-document-viewer/{p-25667d0f.entry.js → p-ddb4daf1.entry.js} +2 -2
- package/dist/ls-document-viewer/p-ddb4daf1.entry.js.map +1 -0
- package/dist/ls-document-viewer/{p-cafb5c48.entry.js → p-e4ce8e02.entry.js} +2 -2
- package/dist/ls-document-viewer/{p-15374bec.entry.js → p-e7783017.entry.js} +2 -2
- package/dist/types/types/LSApiElement.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/editorUtils-qPk-FXeB.js.map +0 -1
- package/dist/cjs/mouseHandlers-CsURq0hI.js.map +0 -1
- package/dist/components/p-Dzpgg8ew.js.map +0 -1
- package/dist/esm/editorUtils-t6aFqPXA.js.map +0 -1
- package/dist/esm/mouseHandlers-CXAZ6jqT.js.map +0 -1
- package/dist/ls-document-viewer/p-1ce17f2e.entry.js +0 -2
- package/dist/ls-document-viewer/p-25667d0f.entry.js.map +0 -1
- package/dist/ls-document-viewer/p-489e2da3.entry.js.map +0 -1
- package/dist/ls-document-viewer/p-7e6cb6c0.entry.js +0 -2
- package/dist/ls-document-viewer/p-C2_YNAMZ.js +0 -2
- package/dist/ls-document-viewer/p-C2_YNAMZ.js.map +0 -1
- package/dist/ls-document-viewer/p-CTJakSNy.js +0 -2
- package/dist/ls-document-viewer/p-Ml5kW412.js.map +0 -1
- /package/dist/ls-document-viewer/{p-f9f2226d.entry.js.map → p-0bd91b5d.entry.js.map} +0 -0
- /package/dist/ls-document-viewer/{p-81cfdefe.entry.js.map → p-106a844a.entry.js.map} +0 -0
- /package/dist/ls-document-viewer/{p-2af72229.entry.js.map → p-51edee50.entry.js.map} +0 -0
- /package/dist/ls-document-viewer/{p-7e6cb6c0.entry.js.map → p-5dbd72f7.entry.js.map} +0 -0
- /package/dist/ls-document-viewer/{p-bd5520ed.entry.js.map → p-b142576e.entry.js.map} +0 -0
- /package/dist/ls-document-viewer/{p-dc4a84a2.entry.js.map → p-c71b0687.entry.js.map} +0 -0
- /package/dist/ls-document-viewer/{p-f3d31f21.entry.js.map → p-daea4a55.entry.js.map} +0 -0
- /package/dist/ls-document-viewer/{p-cafb5c48.entry.js.map → p-e4ce8e02.entry.js.map} +0 -0
- /package/dist/ls-document-viewer/{p-15374bec.entry.js.map → p-e7783017.entry.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,g as t,b as l}from"./p-CItPoq74.js";export{s as setNonce}from"./p-CItPoq74.js";var i=()=>{const t=import.meta.url;const l={};if(t!==""){l.resourcesUrl=new URL(".",t).href}return e(l)};i().then((async e=>{await t();return l(JSON.parse('[["p-cee82e97",[[257,"ls-icon",{"name":[1],"solid":[4],"size":[2],"customStyle":[16]}]]],["p-489e2da3",[[769,"ls-document-viewer",{"template":[1],"token":[1],"userpool":[1],"endpoint":[1],"templateid":[1],"recipients":[1],"_recipients":[16],"language":[1],"zoom":[1026],"pageNum":[1026,"page-num"],"pageCount":[1026,"page-count"],"signer":[1026],"groupInfo":[1032,"group-info"],"mode":[1],"manager":[1025],"displayTable":[1028,"display-table"],"filtertoolbox":[1],"showstatusbar":[4],"showpagepreview":[4],"readonly":[4],"showtableview":[4],"toolboxFilter":[1,"toolbox-filter"],"_template":[32],"validationErrors":[32],"status":[32],"error":[32],"errorTitle":[32],"fontSize":[32],"fontFamily":[32],"selected":[32],"isLoading":[32],"isMutating":[32],"loaderSize":[32],"selectedDataItems":[32],"fieldTypeSelected":[32],"pageNext":[64],"pagePrev":[64],"unselect":[64],"setZoom":[64]},[[0,"mutate","mutateHandler"],[0,"update","updateHandler"],[0,"fieldTypeSelected","handleFieldTypeSelected"],[0,"toolboxDragStart","handleToolboxDragStart"],[0,"addParticipant","addParticpantHandler"],[0,"changeSigner","updateSigner"],[0,"selectFieldForPlacement","selectFieldForPlacement"],[0,"selectFields","selectFieldsHandler"],[0,"roleChange","roleHandler"]],{"templateid":["templateIdChanged"],"language":["languageChanged"],"mode":["modeHandler"],"_template":["templateLockedHandler"],"zoom":["zoomChanged"]}]]],["p-7e6cb6c0",[[769,"ls-field-properties-dropdown",{"dataItem":[16],"roles":[16],"filtertoolbox":[1]}]]],["p-85c87644",[[257,"ls-banner",{"type":[1],"layout":[1],"text":[1],"label":[4],"labelText":[1,"label-text"],"labelIcon":[1,"label-icon"],"button":[4],"buttonText":[1,"button-text"],"buttonIcon":[1,"button-icon"],"customStyle":[16]}]]],["p-6244f792",[[257,"ls-header-bar",{"text1":[1,"text-1"],"text2":[1,"text-2"],"leftText":[1,"left-text"],"leftClick":[16],"icon":[1],"loading":[4],"customStyle":[16],"rest":[16]}]]],["p-429be8d1",[[257,"ls-list-card-button",{"text":[1],"icon":[1],"loading":[4],"disabled":[4],"destructive":[4],"customStyle":[16],"rest":[16]}]]],["p-61e1b37b",[[260,"ls-details-section",{"header":[1],"layout":[1],"actionIcon":[1,"action-icon"],"customStyle":[16],"rest":[16]}]]],["p-c78bd190",[[257,"ls-dropdown",{"dropdownButtons":[16],"right":[4],"scrollable":[4],"handleClick":[16],"customStyle":[16],"extend":[32]}]]],["p-d297ea14",[[257,"ls-navbar",{"items":[16],"customStyle":[16]}]]],["p-9ebec463",[[256,"ls-radio-group",{"options":[16],"heading":[1],"subHeading":[1,"sub-heading"],"name":[1],"isHorizontal":[4,"is-horizontal"],"customStyle":[16],"_options":[32]},null,{"options":["watchOptionsHandler"]}]]],["p-bd5520ed",[[769,"ls-field-type-display",{"assignee":[2],"fieldType":[1,"field-type"]}]]],["p-bbc53e46",[[257,"ls-icon-check-button",{"icon":[1],"solid":[4],"checked":[4],"disabled":[4],"customStyle":[16],"rest":[16],"_checked":[32]},null,{"checked":["watchCheckedHandler"]}]]],["p-17771224",[[256,"ls-notification",{"heading":[1],"message":[1],"button1":[1,"button-1"],"button1Click":[16],"button2":[1,"button-2"],"button2Click":[16],"linkAction":[1,"link-action"],"linkURL":[1,"link-u-r-l"],"Icon":[1,"icon"],"iconColour":[1,"icon-colour"],"iconSolid":[4,"icon-solid"]}]]],["p-c521696b",[[257,"ls-tabs",{"items":[16],"size":[1],"customStyle":[16],"rest":[16],"newItems":[32]},null,{"items":["watchItemsHandler"]}]]],["p-d76f5c10",[[257,"ls-tag",{"text":[1],"colour":[1],"size":[1],"dot":[4],"icon":[1],"iconType":[1,"icon-type"],"outline":[4],"saturation":[1],"hover":[4],"customStyle":[16],"rest":[16]}]]],["p-d2caf154",[[257,"ls-timeline",{"showRecipient":[4,"show-recipient"],"recipientRole":[1,"recipient-role"],"recipientName":[1,"recipient-name"],"recipientEmail":[1,"recipient-email"],"recipientColour":[1,"recipient-colour"],"sentDateTime":[1,"sent-date-time"],"emailOpenedDateTime":[1,"email-opened-date-time"],"documentFirstViewedDateTime":[1,"document-first-viewed-date-time"],"signedDateTime":[1,"signed-date-time"],"expiryDate":[1,"expiry-date"],"status":[1],"emailProblem":[1,"email-problem"],"labelEmailed":[1,"label-emailed"],"labelOpened":[1,"label-opened"],"labelViewed":[1,"label-viewed"],"labelSigned":[1,"label-signed"],"labelApproved":[1,"label-approved"],"labelWitnessed":[1,"label-witnessed"],"labelRejected":[1,"label-rejected"],"labelBounced":[1,"label-bounced"],"labelExpired":[1,"label-expired"],"labelOutOfOffice":[1,"label-out-of-office"],"labelScheduled":[1,"label-scheduled"],"labelNotSent":[1,"label-not-sent"],"labelNotOpened":[1,"label-not-opened"],"labelNotViewed":[1,"label-not-viewed"],"labelNotSigned":[1,"label-not-signed"],"labelNotApproved":[1,"label-not-approved"],"labelNotWitnessed":[1,"label-not-witnessed"],"labelBypassed":[1,"label-bypassed"],"customStyle":[16]}]]],["p-355fa23b",[[257,"ls-timeline-step",{"step":[1],"complete":[4],"text":[1],"customLineClass":[1,"custom-line-class"],"customDiskClass":[1,"custom-disk-class"]}]]],["p-2af72229",[[769,"ls-title-input",{"template":[1040],"editTitle":[32]}]]],["p-34c89736",[[260,"ls-card",{"paddingX":[2,"padding-x"],"paddingY":[2,"padding-y"],"direction":[1],"corners":[2],"gap":[2],"backgroundColor":[1,"background-color"],"outline":[4],"outlineColor":[1,"outline-color"],"shadow":[4],"customClass":[1,"custom-class"]}]]],["p-dc4a84a2",[[769,"ls-compose-manager",{"template":[16]}]]],["p-8e0ad6ec",[[260,"ls-text",{"preset":[1],"size":[1],"weight":[1],"colour":[1],"noWrap":[4,"no-wrap"]}]]],["p-a4121600",[[256,"test-item",{"text":[1]}]]],["p-ca1a0e03",[[257,"ls-badge",{"text":[1],"colour":[1],"type":[1],"size":[1],"rounded":[1],"leadingIcon":[1,"leading-icon"],"trailingIcon":[1,"trailing-icon"],"iconSolid":[4,"icon-solid"],"customStyle":[16]}]]],["p-94bbac6a",[[257,"ls-dropdown-item",{"index":[2],"text":[1],"secondaryText":[1,"secondary-text"],"icon":[1],"trailingIcon":[1,"trailing-icon"],"disabled":[4],"destructive":[4],"divider":[4],"badge":[1],"rest":[16]}]]],["p-dcb9d000",[[257,"ls-tooltip",{"tooltipId":[1,"tooltip-id"]}]]],["p-f9f2226d",[[769,"ls-participant-select",{"selected":[1025],"signer":[2],"roles":[16],"selectedRole":[32],"scrollToBottom":[32],"isAddingParticipant":[32],"isOpen":[32]},[[8,"click","handleWindowClick"]],{"signer":["handleSignerChange"],"roles":["handleRoleLoad"]}],[769,"ls-field-format",{"dataItem":[1040]},null,{"dataItem":["selectFieldsHandler"]}]]],["p-f3d31f21",[[769,"ls-toolbox-field",{"formElementType":[1,"form-element-type"],"elementType":[1,"element-type"],"validation":[2],"fixedAspect":[2,"fixed-aspect"],"redDot":[4,"red-dot"],"label":[1],"icon":[1],"tooltip":[1],"defaultHeight":[2,"default-height"],"defaultWidth":[2,"default-width"],"signer":[2],"isSelected":[1028,"is-selected"]},[[1,"mousedown","handleMouseDown"],[0,"keydown","handleKeyDown"]]]]],["p-15374bec",[[769,"ls-helper-bar",{"expanded":[1028],"showShortcuts":[1028,"show-shortcuts"]}],[257,"ls-keyboard-shortcuts"]]],["p-7145596d",[[257,"ls-loading",{"text":[1],"defaultIcon":[4,"default-icon"],"iconSize":[2,"icon-size"],"customStyle":[16]}],[257,"ls-loading-icon",{"default":[4],"size":[2]}]]],["p-58506eb1",[[257,"ls-button",{"variant":[1],"accessibility":[1],"type":[1],"size":[1],"rounded":[1],"fullWidth":[4,"full-width"],"leadingIcon":[1,"leading-icon"],"trailingIcon":[1,"trailing-icon"],"iconSolid":[4,"icon-solid"],"outline":[4],"disabled":[4],"loading":[4],"loadingText":[1,"loading-text"],"customStyle":[16],"text":[1],"rest":[16]}]]],["p-25667d0f",[[769,"ls-field-content",{"dataItem":[1040],"roles":[16],"showValidationTypes":[4,"show-validation-types"],"readonly":[4],"filtertoolbox":[1],"valueError":[32],"isDirty":[32]},[[0,"keydown","handleKeyDown"]],{"dataItem":["watchDataItemHandler"]}],[769,"ls-field-placement",{"dataItem":[1040],"readonly":[4]}],[769,"ls-field-properties-advanced",{"dataItem":[1040],"expanded":[1028],"readonly":[4]}],[769,"ls-field-properties-container",{"dataItem":[16],"tabs":[16],"selectedTab":[1537,"selected-tab"]}],[257,"ls-formfield",{"name":[1],"fieldId":[1,"field-id"],"label":[1],"as":[1],"value":[1032],"placeholder":[1],"descriptionText":[1,"description-text"],"errorText":[1,"error-text"],"aria":[1],"inputRef":[1,"input-ref"],"infoTooltipText":[1,"info-tooltip-text"],"hoverTooltipText":[1,"hover-tooltip-text"],"disabled":[4],"extraLabel":[1,"extra-label"],"required":[4],"optional":[4],"valid":[4],"dirty":[4],"customised":[4],"count":[4],"countMax":[2,"count-max"],"textareaRows":[2,"textarea-rows"],"buttonClick":[16],"buttonIcon":[1,"button-icon"],"labelIcon":[1,"label-icon"],"fieldIcon":[1,"field-icon"],"iconPosition":[1,"icon-position"],"options":[1],"_value":[32]},null,{"value":["valueWatcher"]}],[769,"ls-assignee-select",{"signer":[2],"roles":[16],"disabled":[4],"disabledSenderReason":[1,"disabled-sender-reason"],"disabledApproverReason":[1,"disabled-approver-reason"],"mixed":[4],"isOpen":[32]},[[8,"click","handleWindowClick"]],{"signer":["handleSignerChange"]}],[769,"ls-field-dimensions",{"dataItem":[1040],"template":[8],"readonly":[4]}],[769,"ls-field-footer",{"dataItem":[1040],"readonly":[4]}],[769,"ls-field-type-select",{"fieldType":[1,"field-type"],"assignee":[2],"roles":[16],"roleTypes":[16],"disabled":[4],"mixed":[4],"filtertoolbox":[1],"isOpen":[32]},[[8,"click","handleWindowClick"]]],[257,"ls-text-input",{"type":[1],"name":[1],"value":[1025],"placeholder":[1],"aria":[1],"inputRef":[1,"input-ref"],"disabled":[4],"required":[4],"valid":[4],"dirty":[4],"countMax":[2,"count-max"],"buttonClick":[8,"button-click"],"buttonIcon":[1,"button-icon"],"fieldIcon":[1,"field-icon"],"iconPosition":[1,"icon-position"],"showPassword":[32]}],[257,"ls-number-input",{"type":[1],"name":[1],"value":[1026],"placeholder":[1],"aria":[1],"inputRef":[1,"input-ref"],"disabled":[4],"required":[4],"valid":[4],"dirty":[4],"countMax":[2,"count-max"],"buttonClick":[8,"button-click"],"buttonIcon":[1,"button-icon"],"fieldIcon":[1,"field-icon"]}],[257,"ls-select-input",{"name":[1],"value":[1],"aria":[1],"inputRef":[1,"input-ref"],"disabled":[4],"displayOnly":[4,"display-only"],"required":[4],"valid":[4],"dirty":[4],"buttonClick":[8,"button-click"],"buttonIcon":[1,"button-icon"],"fieldIcon":[1,"field-icon"],"options":[1]}],[257,"ls-textarea-input",{"name":[1],"value":[1],"placeholder":[1],"aria":[1],"inputRef":[1,"input-ref"],"disabled":[4],"displayOnly":[4,"display-only"],"required":[4],"valid":[4],"dirty":[4],"countMax":[2,"count-max"],"rows":[2],"buttonClick":[8,"button-click"],"buttonIcon":[1,"button-icon"],"fieldIcon":[1,"field-icon"]}],[257,"ls-checkbox-input",{"checkboxId":[1,"checkbox-id"],"label":[1],"description":[1],"name":[1],"checked":[4],"disabled":[4],"position":[1],"_checked":[32]},null,{"checked":["watchCheckedHandler"]}],[769,"ls-props-section",{"sectionTitle":[1,"section-title"],"sectionDescription":[1,"section-description"],"row":[4]}],[772,"ls-toggle",{"checked":[1028],"indeterminate":[4]}],[769,"ls-editor-field",{"assignee":[1025],"dataItem":[1040],"selected":[4],"multiSelected":[4,"multi-selected"],"readonly":[4],"type":[1],"page":[16],"fixedAspect":[2,"fixed-aspect"],"zoom":[1],"floatingActive":[1540,"floating-active"],"isEditing":[32],"heldEdge":[32],"isEdgeDragging":[32],"innerValue":[32],"valueError":[32]},[[0,"keydown","handleInput"],[3,"mousemove","handleMouseMove"],[2,"dblclick","handleDoubleClick"],[3,"mousedown","handleMouseDown"],[0,"dragstart","handleDragStart"]],{"dataItem":["dataItemChanged","watchDataItemHandler"],"selected":["watchSelectedHandler"]}],[769,"ls-input-wrapper",{"leadingIcon":[8,"leading-icon"],"select":[4]}],[257,"ls-radio-input",{"radioId":[1,"radio-id"],"label":[1],"icon":[1],"name":[1],"checked":[4],"disabled":[4],"customStyle":[16]}],[257,"ls-icon-button",{"icon":[1],"disabled":[4],"solid":[4],"customStyle":[16],"rest":[16]}],[257,"ls-label",{"text":[1],"colour":[1],"type":[1],"size":[1],"leadingIcon":[1,"leading-icon"],"trailingIcon":[1,"trailing-icon"],"iconSolid":[4,"icon-solid"],"customStyle":[16]}]]],["p-81cfdefe",[[769,"ls-field-distribute",{"dataItem":[1040],"readonly":[4]}],[769,"ls-field-alignment",{"dataItem":[1040],"readonly":[4]}],[769,"ls-field-size",{"dataItem":[1040],"readonly":[4]}]]],["p-cafb5c48",[[769,"ls-field-properties",{"dataItem":[16],"template":[8],"readonly":[4],"filtertoolbox":[1]}],[769,"ls-participant-manager",{"editor":[16],"template":[16],"activeSigner":[2,"active-signer"],"busy":[4],"addingParticipant":[32]},null,{"template":["templateChanged"]}],[769,"ls-document-options",{"template":[1040],"editTitle":[32]}],[769,"ls-recipient-card",{"recipient":[16],"activeRecipient":[2,"active-recipient"],"fieldTypeSelected":[16],"template":[16],"validationErrors":[16],"filtertoolbox":[1],"isHovered":[32]},[[0,"fieldTypeSelected","handleFieldTypeSelected"]],{"activeRecipient":["handleExpandCollapse"]}],[769,"ls-validation-manager",{"validationErrors":[16]}],[769,"ls-feature-column",{"manager":[1025],"mode":[1]}],[769,"ls-validation-tag",{"status":[1025],"validationErrors":[1040],"isExpanded":[1028,"is-expanded"],"type":[1],"showDropDown":[4,"show-drop-down"]}],[257,"ls-recipient-manager"],[769,"ls-field-properties-checkbox",{"dataItem":[1040],"roles":[16],"readonly":[4],"filtertoolbox":[1]},[[0,"mutate","handleChildMutate"]]],[769,"ls-field-properties-date",{"dataItem":[16],"roles":[16],"readonly":[4],"filtertoolbox":[1]}],[769,"ls-field-properties-email",{"dataItem":[16],"roles":[16],"readonly":[4],"filtertoolbox":[1]}],[769,"ls-field-properties-file",{"dataItem":[16],"roles":[16],"readonly":[4],"filtertoolbox":[1]}],[769,"ls-field-properties-general",{"dataItem":[16],"roles":[16],"readonly":[4],"filtertoolbox":[1]}],[769,"ls-field-properties-multiple",{"dataItem":[1040],"roles":[16],"readonly":[4],"filtertoolbox":[1],"valueError":[32]},null,{"dataItem":["validateOnChange"]}],[769,"ls-field-properties-number",{"dataItem":[16],"roles":[16],"readonly":[4],"filtertoolbox":[1]}],[769,"ls-field-properties-signature",{"dataItem":[16],"template":[8],"roles":[16],"readonly":[4],"filtertoolbox":[1]}],[769,"ls-field-properties-text",{"dataItem":[16],"roles":[16],"readonly":[4],"filtertoolbox":[1]}],[769,"ls-field-properties-autosign",{"dataItem":[16],"readonly":[4]}],[769,"ls-participant-card",{"signer":[16],"index":[2],"editable":[1028],"template":[16],"active":[4],"busy":[4],"swapUpBtn":[32],"swapDownBtn":[32],"editBtn":[32],"deleteParticipantBtn":[32],"addingWitness":[32]},null,{"editable":["modeHandler"],"template":["templateChanged"]}],[257,"ls-add-new-button",{"text":[1],"icon":[1],"loading":[4],"disabled":[4],"destructive":[4],"customStyle":[16],"rest":[16]}]]],["p-1ce17f2e",[[769,"ls-left-bar",{"mode":[1],"selected":[16],"manager":[1],"signer":[2],"filtertoolbox":[1],"template":[16],"recipients":[16],"validationErrors":[16],"fieldTypeSelected":[16],"displayTable":[4,"display-table"],"busy":[4],"selectedDataItems":[16]},null,{"manager":["managerWatchHandler"],"signer":["signerChanged"]}],[769,"ls-toolbar",{"dataItem":[1040],"groupInfo":[16],"template":[16],"editor":[1040],"mode":[1],"signer":[2],"selected":[16],"pageNum":[2,"page-num"]}],[769,"ls-statusbar",{"zoom":[1026],"page":[1026],"pageCount":[1026,"page-count"],"editor":[16],"canUndo":[4,"can-undo"],"canRedo":[4,"can-redo"],"mode":[1],"showThumbnails":[32],"showZoomMenu":[32],"showPageMenu":[32]},null,{"page":["onPageChange"]}],[769,"ls-select-menu",{"selected":[16],"pageNum":[2,"page-num"],"editor":[8],"floating":[4],"isOpen":[32],"isVisible":[32],"isHeldDown":[32],"floatingTop":[32],"floatingLeft":[32]},[[8,"click","handleWindowClick"]],{"selected":["onSelectionChange"],"pageNum":["onSelectionChange"]}],[257,"ls-compose-loader"],[769,"ls-editor-table",{"editor":[16]}],[257,"ls-loading-logo",{"size":[2],"colour":[1]}]]]]'),e)}));
|
|
1
|
+
import{p as e,g as t,b as l}from"./p-CItPoq74.js";export{s as setNonce}from"./p-CItPoq74.js";var i=()=>{const t=import.meta.url;const l={};if(t!==""){l.resourcesUrl=new URL(".",t).href}return e(l)};i().then((async e=>{await t();return l(JSON.parse('[["p-cee82e97",[[257,"ls-icon",{"name":[1],"solid":[4],"size":[2],"customStyle":[16]}]]],["p-af926417",[[769,"ls-document-viewer",{"template":[1],"token":[1],"userpool":[1],"endpoint":[1],"templateid":[1],"recipients":[1],"_recipients":[16],"language":[1],"zoom":[1026],"pageNum":[1026,"page-num"],"pageCount":[1026,"page-count"],"signer":[1026],"groupInfo":[1032,"group-info"],"mode":[1],"manager":[1025],"displayTable":[1028,"display-table"],"filtertoolbox":[1],"showstatusbar":[4],"showpagepreview":[4],"readonly":[4],"showtableview":[4],"toolboxFilter":[1,"toolbox-filter"],"_template":[32],"validationErrors":[32],"status":[32],"error":[32],"errorTitle":[32],"fontSize":[32],"fontFamily":[32],"selected":[32],"isLoading":[32],"isMutating":[32],"loaderSize":[32],"selectedDataItems":[32],"fieldTypeSelected":[32],"pageNext":[64],"pagePrev":[64],"unselect":[64],"setZoom":[64]},[[0,"mutate","mutateHandler"],[0,"update","updateHandler"],[0,"fieldTypeSelected","handleFieldTypeSelected"],[0,"toolboxDragStart","handleToolboxDragStart"],[0,"addParticipant","addParticpantHandler"],[0,"changeSigner","updateSigner"],[0,"selectFieldForPlacement","selectFieldForPlacement"],[0,"selectFields","selectFieldsHandler"],[0,"roleChange","roleHandler"]],{"templateid":["templateIdChanged"],"language":["languageChanged"],"mode":["modeHandler"],"_template":["templateLockedHandler"],"zoom":["zoomChanged"]}]]],["p-5dbd72f7",[[769,"ls-field-properties-dropdown",{"dataItem":[16],"roles":[16],"filtertoolbox":[1]}]]],["p-85c87644",[[257,"ls-banner",{"type":[1],"layout":[1],"text":[1],"label":[4],"labelText":[1,"label-text"],"labelIcon":[1,"label-icon"],"button":[4],"buttonText":[1,"button-text"],"buttonIcon":[1,"button-icon"],"customStyle":[16]}]]],["p-6244f792",[[257,"ls-header-bar",{"text1":[1,"text-1"],"text2":[1,"text-2"],"leftText":[1,"left-text"],"leftClick":[16],"icon":[1],"loading":[4],"customStyle":[16],"rest":[16]}]]],["p-429be8d1",[[257,"ls-list-card-button",{"text":[1],"icon":[1],"loading":[4],"disabled":[4],"destructive":[4],"customStyle":[16],"rest":[16]}]]],["p-61e1b37b",[[260,"ls-details-section",{"header":[1],"layout":[1],"actionIcon":[1,"action-icon"],"customStyle":[16],"rest":[16]}]]],["p-c78bd190",[[257,"ls-dropdown",{"dropdownButtons":[16],"right":[4],"scrollable":[4],"handleClick":[16],"customStyle":[16],"extend":[32]}]]],["p-d297ea14",[[257,"ls-navbar",{"items":[16],"customStyle":[16]}]]],["p-9ebec463",[[256,"ls-radio-group",{"options":[16],"heading":[1],"subHeading":[1,"sub-heading"],"name":[1],"isHorizontal":[4,"is-horizontal"],"customStyle":[16],"_options":[32]},null,{"options":["watchOptionsHandler"]}]]],["p-b142576e",[[769,"ls-field-type-display",{"assignee":[2],"fieldType":[1,"field-type"]}]]],["p-bbc53e46",[[257,"ls-icon-check-button",{"icon":[1],"solid":[4],"checked":[4],"disabled":[4],"customStyle":[16],"rest":[16],"_checked":[32]},null,{"checked":["watchCheckedHandler"]}]]],["p-17771224",[[256,"ls-notification",{"heading":[1],"message":[1],"button1":[1,"button-1"],"button1Click":[16],"button2":[1,"button-2"],"button2Click":[16],"linkAction":[1,"link-action"],"linkURL":[1,"link-u-r-l"],"Icon":[1,"icon"],"iconColour":[1,"icon-colour"],"iconSolid":[4,"icon-solid"]}]]],["p-c521696b",[[257,"ls-tabs",{"items":[16],"size":[1],"customStyle":[16],"rest":[16],"newItems":[32]},null,{"items":["watchItemsHandler"]}]]],["p-d76f5c10",[[257,"ls-tag",{"text":[1],"colour":[1],"size":[1],"dot":[4],"icon":[1],"iconType":[1,"icon-type"],"outline":[4],"saturation":[1],"hover":[4],"customStyle":[16],"rest":[16]}]]],["p-d2caf154",[[257,"ls-timeline",{"showRecipient":[4,"show-recipient"],"recipientRole":[1,"recipient-role"],"recipientName":[1,"recipient-name"],"recipientEmail":[1,"recipient-email"],"recipientColour":[1,"recipient-colour"],"sentDateTime":[1,"sent-date-time"],"emailOpenedDateTime":[1,"email-opened-date-time"],"documentFirstViewedDateTime":[1,"document-first-viewed-date-time"],"signedDateTime":[1,"signed-date-time"],"expiryDate":[1,"expiry-date"],"status":[1],"emailProblem":[1,"email-problem"],"labelEmailed":[1,"label-emailed"],"labelOpened":[1,"label-opened"],"labelViewed":[1,"label-viewed"],"labelSigned":[1,"label-signed"],"labelApproved":[1,"label-approved"],"labelWitnessed":[1,"label-witnessed"],"labelRejected":[1,"label-rejected"],"labelBounced":[1,"label-bounced"],"labelExpired":[1,"label-expired"],"labelOutOfOffice":[1,"label-out-of-office"],"labelScheduled":[1,"label-scheduled"],"labelNotSent":[1,"label-not-sent"],"labelNotOpened":[1,"label-not-opened"],"labelNotViewed":[1,"label-not-viewed"],"labelNotSigned":[1,"label-not-signed"],"labelNotApproved":[1,"label-not-approved"],"labelNotWitnessed":[1,"label-not-witnessed"],"labelBypassed":[1,"label-bypassed"],"customStyle":[16]}]]],["p-355fa23b",[[257,"ls-timeline-step",{"step":[1],"complete":[4],"text":[1],"customLineClass":[1,"custom-line-class"],"customDiskClass":[1,"custom-disk-class"]}]]],["p-51edee50",[[769,"ls-title-input",{"template":[1040],"editTitle":[32]}]]],["p-34c89736",[[260,"ls-card",{"paddingX":[2,"padding-x"],"paddingY":[2,"padding-y"],"direction":[1],"corners":[2],"gap":[2],"backgroundColor":[1,"background-color"],"outline":[4],"outlineColor":[1,"outline-color"],"shadow":[4],"customClass":[1,"custom-class"]}]]],["p-c71b0687",[[769,"ls-compose-manager",{"template":[16]}]]],["p-8e0ad6ec",[[260,"ls-text",{"preset":[1],"size":[1],"weight":[1],"colour":[1],"noWrap":[4,"no-wrap"]}]]],["p-a4121600",[[256,"test-item",{"text":[1]}]]],["p-ca1a0e03",[[257,"ls-badge",{"text":[1],"colour":[1],"type":[1],"size":[1],"rounded":[1],"leadingIcon":[1,"leading-icon"],"trailingIcon":[1,"trailing-icon"],"iconSolid":[4,"icon-solid"],"customStyle":[16]}]]],["p-94bbac6a",[[257,"ls-dropdown-item",{"index":[2],"text":[1],"secondaryText":[1,"secondary-text"],"icon":[1],"trailingIcon":[1,"trailing-icon"],"disabled":[4],"destructive":[4],"divider":[4],"badge":[1],"rest":[16]}]]],["p-dcb9d000",[[257,"ls-tooltip",{"tooltipId":[1,"tooltip-id"]}]]],["p-0bd91b5d",[[769,"ls-participant-select",{"selected":[1025],"signer":[2],"roles":[16],"selectedRole":[32],"scrollToBottom":[32],"isAddingParticipant":[32],"isOpen":[32]},[[8,"click","handleWindowClick"]],{"signer":["handleSignerChange"],"roles":["handleRoleLoad"]}],[769,"ls-field-format",{"dataItem":[1040]},null,{"dataItem":["selectFieldsHandler"]}]]],["p-daea4a55",[[769,"ls-toolbox-field",{"formElementType":[1,"form-element-type"],"elementType":[1,"element-type"],"validation":[2],"fixedAspect":[2,"fixed-aspect"],"redDot":[4,"red-dot"],"label":[1],"icon":[1],"tooltip":[1],"defaultHeight":[2,"default-height"],"defaultWidth":[2,"default-width"],"signer":[2],"isSelected":[1028,"is-selected"]},[[1,"mousedown","handleMouseDown"],[0,"keydown","handleKeyDown"]]]]],["p-e7783017",[[769,"ls-helper-bar",{"expanded":[1028],"showShortcuts":[1028,"show-shortcuts"]}],[257,"ls-keyboard-shortcuts"]]],["p-7145596d",[[257,"ls-loading",{"text":[1],"defaultIcon":[4,"default-icon"],"iconSize":[2,"icon-size"],"customStyle":[16]}],[257,"ls-loading-icon",{"default":[4],"size":[2]}]]],["p-58506eb1",[[257,"ls-button",{"variant":[1],"accessibility":[1],"type":[1],"size":[1],"rounded":[1],"fullWidth":[4,"full-width"],"leadingIcon":[1,"leading-icon"],"trailingIcon":[1,"trailing-icon"],"iconSolid":[4,"icon-solid"],"outline":[4],"disabled":[4],"loading":[4],"loadingText":[1,"loading-text"],"customStyle":[16],"text":[1],"rest":[16]}]]],["p-ddb4daf1",[[769,"ls-field-content",{"dataItem":[1040],"roles":[16],"showValidationTypes":[4,"show-validation-types"],"readonly":[4],"filtertoolbox":[1],"valueError":[32],"isDirty":[32]},[[0,"keydown","handleKeyDown"]],{"dataItem":["watchDataItemHandler"]}],[769,"ls-field-placement",{"dataItem":[1040],"readonly":[4]}],[769,"ls-field-properties-advanced",{"dataItem":[1040],"expanded":[1028],"readonly":[4]}],[769,"ls-field-properties-container",{"dataItem":[16],"tabs":[16],"selectedTab":[1537,"selected-tab"]}],[257,"ls-formfield",{"name":[1],"fieldId":[1,"field-id"],"label":[1],"as":[1],"value":[1032],"placeholder":[1],"descriptionText":[1,"description-text"],"errorText":[1,"error-text"],"aria":[1],"inputRef":[1,"input-ref"],"infoTooltipText":[1,"info-tooltip-text"],"hoverTooltipText":[1,"hover-tooltip-text"],"disabled":[4],"extraLabel":[1,"extra-label"],"required":[4],"optional":[4],"valid":[4],"dirty":[4],"customised":[4],"count":[4],"countMax":[2,"count-max"],"textareaRows":[2,"textarea-rows"],"buttonClick":[16],"buttonIcon":[1,"button-icon"],"labelIcon":[1,"label-icon"],"fieldIcon":[1,"field-icon"],"iconPosition":[1,"icon-position"],"options":[1],"_value":[32]},null,{"value":["valueWatcher"]}],[769,"ls-assignee-select",{"signer":[2],"roles":[16],"disabled":[4],"disabledSenderReason":[1,"disabled-sender-reason"],"disabledApproverReason":[1,"disabled-approver-reason"],"mixed":[4],"isOpen":[32]},[[8,"click","handleWindowClick"]],{"signer":["handleSignerChange"]}],[769,"ls-field-dimensions",{"dataItem":[1040],"template":[8],"readonly":[4]}],[769,"ls-field-footer",{"dataItem":[1040],"readonly":[4]}],[769,"ls-field-type-select",{"fieldType":[1,"field-type"],"assignee":[2],"roles":[16],"roleTypes":[16],"disabled":[4],"mixed":[4],"filtertoolbox":[1],"isOpen":[32]},[[8,"click","handleWindowClick"]]],[257,"ls-text-input",{"type":[1],"name":[1],"value":[1025],"placeholder":[1],"aria":[1],"inputRef":[1,"input-ref"],"disabled":[4],"required":[4],"valid":[4],"dirty":[4],"countMax":[2,"count-max"],"buttonClick":[8,"button-click"],"buttonIcon":[1,"button-icon"],"fieldIcon":[1,"field-icon"],"iconPosition":[1,"icon-position"],"showPassword":[32]}],[257,"ls-number-input",{"type":[1],"name":[1],"value":[1026],"placeholder":[1],"aria":[1],"inputRef":[1,"input-ref"],"disabled":[4],"required":[4],"valid":[4],"dirty":[4],"countMax":[2,"count-max"],"buttonClick":[8,"button-click"],"buttonIcon":[1,"button-icon"],"fieldIcon":[1,"field-icon"]}],[257,"ls-select-input",{"name":[1],"value":[1],"aria":[1],"inputRef":[1,"input-ref"],"disabled":[4],"displayOnly":[4,"display-only"],"required":[4],"valid":[4],"dirty":[4],"buttonClick":[8,"button-click"],"buttonIcon":[1,"button-icon"],"fieldIcon":[1,"field-icon"],"options":[1]}],[257,"ls-textarea-input",{"name":[1],"value":[1],"placeholder":[1],"aria":[1],"inputRef":[1,"input-ref"],"disabled":[4],"displayOnly":[4,"display-only"],"required":[4],"valid":[4],"dirty":[4],"countMax":[2,"count-max"],"rows":[2],"buttonClick":[8,"button-click"],"buttonIcon":[1,"button-icon"],"fieldIcon":[1,"field-icon"]}],[257,"ls-checkbox-input",{"checkboxId":[1,"checkbox-id"],"label":[1],"description":[1],"name":[1],"checked":[4],"disabled":[4],"position":[1],"_checked":[32]},null,{"checked":["watchCheckedHandler"]}],[769,"ls-props-section",{"sectionTitle":[1,"section-title"],"sectionDescription":[1,"section-description"],"row":[4]}],[772,"ls-toggle",{"checked":[1028],"indeterminate":[4]}],[769,"ls-editor-field",{"assignee":[1025],"dataItem":[1040],"selected":[4],"multiSelected":[4,"multi-selected"],"readonly":[4],"type":[1],"page":[16],"fixedAspect":[2,"fixed-aspect"],"zoom":[1],"floatingActive":[1540,"floating-active"],"isEditing":[32],"heldEdge":[32],"isEdgeDragging":[32],"innerValue":[32],"valueError":[32]},[[0,"keydown","handleInput"],[3,"mousemove","handleMouseMove"],[2,"dblclick","handleDoubleClick"],[3,"mousedown","handleMouseDown"],[0,"dragstart","handleDragStart"]],{"dataItem":["dataItemChanged","watchDataItemHandler"],"selected":["watchSelectedHandler"]}],[769,"ls-input-wrapper",{"leadingIcon":[8,"leading-icon"],"select":[4]}],[257,"ls-radio-input",{"radioId":[1,"radio-id"],"label":[1],"icon":[1],"name":[1],"checked":[4],"disabled":[4],"customStyle":[16]}],[257,"ls-icon-button",{"icon":[1],"disabled":[4],"solid":[4],"customStyle":[16],"rest":[16]}],[257,"ls-label",{"text":[1],"colour":[1],"type":[1],"size":[1],"leadingIcon":[1,"leading-icon"],"trailingIcon":[1,"trailing-icon"],"iconSolid":[4,"icon-solid"],"customStyle":[16]}]]],["p-106a844a",[[769,"ls-field-distribute",{"dataItem":[1040],"readonly":[4]}],[769,"ls-field-alignment",{"dataItem":[1040],"readonly":[4]}],[769,"ls-field-size",{"dataItem":[1040],"readonly":[4]}]]],["p-e4ce8e02",[[769,"ls-field-properties",{"dataItem":[16],"template":[8],"readonly":[4],"filtertoolbox":[1]}],[769,"ls-participant-manager",{"editor":[16],"template":[16],"activeSigner":[2,"active-signer"],"busy":[4],"addingParticipant":[32]},null,{"template":["templateChanged"]}],[769,"ls-document-options",{"template":[1040],"editTitle":[32]}],[769,"ls-recipient-card",{"recipient":[16],"activeRecipient":[2,"active-recipient"],"fieldTypeSelected":[16],"template":[16],"validationErrors":[16],"filtertoolbox":[1],"isHovered":[32]},[[0,"fieldTypeSelected","handleFieldTypeSelected"]],{"activeRecipient":["handleExpandCollapse"]}],[769,"ls-validation-manager",{"validationErrors":[16]}],[769,"ls-feature-column",{"manager":[1025],"mode":[1]}],[769,"ls-validation-tag",{"status":[1025],"validationErrors":[1040],"isExpanded":[1028,"is-expanded"],"type":[1],"showDropDown":[4,"show-drop-down"]}],[257,"ls-recipient-manager"],[769,"ls-field-properties-checkbox",{"dataItem":[1040],"roles":[16],"readonly":[4],"filtertoolbox":[1]},[[0,"mutate","handleChildMutate"]]],[769,"ls-field-properties-date",{"dataItem":[16],"roles":[16],"readonly":[4],"filtertoolbox":[1]}],[769,"ls-field-properties-email",{"dataItem":[16],"roles":[16],"readonly":[4],"filtertoolbox":[1]}],[769,"ls-field-properties-file",{"dataItem":[16],"roles":[16],"readonly":[4],"filtertoolbox":[1]}],[769,"ls-field-properties-general",{"dataItem":[16],"roles":[16],"readonly":[4],"filtertoolbox":[1]}],[769,"ls-field-properties-multiple",{"dataItem":[1040],"roles":[16],"readonly":[4],"filtertoolbox":[1],"valueError":[32]},null,{"dataItem":["validateOnChange"]}],[769,"ls-field-properties-number",{"dataItem":[16],"roles":[16],"readonly":[4],"filtertoolbox":[1]}],[769,"ls-field-properties-signature",{"dataItem":[16],"template":[8],"roles":[16],"readonly":[4],"filtertoolbox":[1]}],[769,"ls-field-properties-text",{"dataItem":[16],"roles":[16],"readonly":[4],"filtertoolbox":[1]}],[769,"ls-field-properties-autosign",{"dataItem":[16],"readonly":[4]}],[769,"ls-participant-card",{"signer":[16],"index":[2],"editable":[1028],"template":[16],"active":[4],"busy":[4],"swapUpBtn":[32],"swapDownBtn":[32],"editBtn":[32],"deleteParticipantBtn":[32],"addingWitness":[32]},null,{"editable":["modeHandler"],"template":["templateChanged"]}],[257,"ls-add-new-button",{"text":[1],"icon":[1],"loading":[4],"disabled":[4],"destructive":[4],"customStyle":[16],"rest":[16]}]]],["p-c7361f1c",[[769,"ls-left-bar",{"mode":[1],"selected":[16],"manager":[1],"signer":[2],"filtertoolbox":[1],"template":[16],"recipients":[16],"validationErrors":[16],"fieldTypeSelected":[16],"displayTable":[4,"display-table"],"busy":[4],"selectedDataItems":[16]},null,{"manager":["managerWatchHandler"],"signer":["signerChanged"]}],[769,"ls-toolbar",{"dataItem":[1040],"groupInfo":[16],"template":[16],"editor":[1040],"mode":[1],"signer":[2],"selected":[16],"pageNum":[2,"page-num"]}],[769,"ls-statusbar",{"zoom":[1026],"page":[1026],"pageCount":[1026,"page-count"],"editor":[16],"canUndo":[4,"can-undo"],"canRedo":[4,"can-redo"],"mode":[1],"showThumbnails":[32],"showZoomMenu":[32],"showPageMenu":[32]},null,{"page":["onPageChange"]}],[769,"ls-select-menu",{"selected":[16],"pageNum":[2,"page-num"],"editor":[8],"floating":[4],"isOpen":[32],"isVisible":[32],"isHeldDown":[32],"floatingTop":[32],"floatingLeft":[32]},[[8,"click","handleWindowClick"]],{"selected":["onSelectionChange"],"pageNum":["onSelectionChange"]}],[257,"ls-compose-loader"],[769,"ls-editor-table",{"editor":[16]}],[257,"ls-loading-logo",{"size":[2],"colour":[1]}]]]]'),e)}));
|
|
2
2
|
//# sourceMappingURL=ls-document-viewer.esm.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{d as e}from"./p-Al32p_JM.js";import{u as t}from"./p-CmJjDhcp.js";const i=(e,t,i=false,d=false)=>{const a=new Array;const{top:n,left:u,bottom:p,right:f}=t.getBoundingClientRect();e.forEach((e=>{if(e.getBoundingClientRect().bottom<=p&&e.getBoundingClientRect().top>=n&&e.getBoundingClientRect().left>=u&&e.getBoundingClientRect().right<=f){if(i)e.selected=true;a.push(e)}else{if(i&&!d)e.selected=false}}));return a};function d(e,t){const i=this._template.elementConnection.templateElements;this._template={...this._template,elementConnection:{...this._template.elementConnection,templateElements:[...i,t]}};const d=this.mode==="compose"?this._recipients?.find((e=>e.signerIndex===t.signer)):this._template.roles.find((e=>e.signerIndex===t.signer));const a=document.createElement("ls-editor-field");a.setAttribute("type",t.formElementType);a.setAttribute("id","ls-field-"+t.id);a.setAttribute("assignee",this.mode==="compose"&&d?.previousRecipientDecides?"To Be Decided":this.mode==="compose"?`${d?.firstName} ${d?.lastName}`:d?.name||(t.signer===0?"Sender":`Participant ${t.signer}`));a.setAttribute("zoom",String(this.zoom));a.setAttribute("readonly",String(this.mode==="preview"||this._template?.locked));a.style.zIndex="100";a.style.position="absolute";a.style.top=Math.floor(t.top*this.zoom)+"px";a.style.left=Math.floor(t.left*this.zoom)+"px";a.style.height=Math.floor(t.height*this.zoom)+"px";a.style.width=Math.floor(t.width*this.zoom)+"px";a.style.fontSize=Math.round(t.fontSize*this.zoom)+"px";a.style.alignContent=t.align;a.style.fontFamily=t.fontName;a.dataItem=t;e.appendChild(a);return a}function a(e,t){e.style.top=Math.floor(t.top*this.zoom)+"px";e.style.left=Math.floor(t.left*this.zoom)+"px";e.style.height=Math.floor(t.height*this.zoom)+"px";e.style.width=Math.floor(t.width*this.zoom)+"px";e.style.fontSize=Math.round(t.fontSize*this.zoom)+"px";e.style.fontFamily=t.fontName;e.style.textAlign=t.align;e.dataItem=u(t)}const n=(e,t,i,d,a)=>{const n=e.getBoundingClientRect();const{height:u,width:p}=t.getBoundingClientRect();const f=Math.round((t.getBoundingClientRect().top-n.top)/a);const l=Math.round((t.getBoundingClientRect().left-n.left)/a);const r=l>0?l/d:0;const y=f>0?f/i:0;const s=(l+p/a)/d;const o=(f+u/a)/i;return{top:f,left:l,height:Math.round(u/a),width:Math.round(p/a),ax:r,ay:y,bx:s,by:o}};const u=e=>{const t=e.left/e.pageDimensions.width;const i=e.top/e.pageDimensions.height;const d=(e.left+e.width)/e.pageDimensions.width;const a=(e.top+e.height)/e.pageDimensions.height;return{...e,ax:t,ay:i,bx:d,by:a}};const p=e=>`\n mutation LDVupdateTemplate {\n updateTemplate(input: {\n templateId: "${e.id}", \n title: "${e.title}",\n locked: ${e.locked},\n documentRetentionDays: ${e.documentRetentionDays},\n autoArchive: ${e.autoArchive},\n fixSignatureScale: ${e.fixSignatureScale?e.fixSignatureScale:false}\n })\n }\n `;const f=e=>`\n query LDVGetTemplate {\n template(id: "${e}") {\n id\n title\n fileName\n pageDimensions\n pageCount\n modified\n link\n valid\n locked\n autoArchive\n archived\n tags\n created\n createdBy\n lastSent\n fixSignatureScale\n groupId\n documentRetentionDays\n roles{\n id\n name\n roleType\n signerIndex\n ordinal\n signerParent\n experience\n }\n elementConnection {\n templateElements {\n align\n ax\n ay\n bx\n by\n elementType\n formElementType\n fieldOrder\n fontName\n fontSize\n helpText\n hideBorder\n id\n label\n labelExtra\n logicAction\n logicGroup\n mapTo\n options\n optional\n page\n role\n signer\n excludeFromPdf\n validation\n value\n }\n totalCount\n }\n userSignatureConnection {\n userSignatureElements {\n id\n userId\n ax\n ay\n bx\n by\n page\n link\n }\n }\n }\n }\n `;const l=(e,t,i,d)=>{if(!i||i==="")return null;if(e==="text"){return r(t,i)}if(e==="number"){return y(t,i)}if(e==="email"){return s(i)}if(e==="dropdown"&&t===20){return o(i,d)}return null};const r=(t,i)=>{if(t>=65&&t<=72){const d=t-64;if(i.length!==d){return e.t("fieldvalidation.exactcharacters",{count:d})}return null}if(t===77){const t=i.replace(/\w\S*/g,(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()));if(i!==t){return e.t("fieldvalidation.titlecase")}return null}if(t===78){if(i!==i.toUpperCase()){return e.t("fieldvalidation.uppercase")}return null}if(t===79){if(i!==i.toLowerCase()){return e.t("fieldvalidation.lowercase")}return null}return null};const y=(t,i)=>{if(t===50){if(!/^\d+$/.test(i))return e.t("fieldvalidation.wholenumber");return null}if(t===51){if(!/^\d+(\.\d+)?$/.test(i))return e.t("fieldvalidation.number");return null}if(t===52){if(!/^\d+\.\d{2}$/.test(i))return e.t("fieldvalidation.currency");return null}if(t>=53&&t<=64){const d=t-52;const a=new RegExp(`^\\d{${d}}$`);if(!a.test(i)){return e.t("fieldvalidation.exactdigits",{count:d})}return null}return null};const s=t=>{const i=/^[^\s@]+@[^\s@]+\.[^\s@]+$/;if(!i.test(t)){return e.t("fieldvalidation.email")}return null};const o=(t,i)=>{if(!i||i.trim()==="")return null;const d=i.split("\n").map((e=>e.trim())).filter((e=>e.length>0));if(d.length===0)return null;if(!d.includes(t)){return e.t("fieldvalidation.dropdownoption")}return null};function m(t){var i=[];if(this._recipients){this._recipients.forEach((d=>{if(t.elementConnection.templateElements.filter((e=>e.formElementType==="signature"&&e.signer===d.signerIndex)).length===0){if(d?.roleType!=="APPROVER"){i.push({id:d.id,signerIndex:d.signerIndex,title:e.t("validation.missingsignature"),description:e.t("validation.recipientmissingsignature",{name:d.name}),role:d,type:"signature"})}}}))}else{t.roles.forEach((d=>{if(t.elementConnection.templateElements.filter((e=>e.formElementType==="signature"&&e.signer===d.signerIndex)).length===0){if(d?.roleType!=="APPROVER"){i.push({id:d.id,signerIndex:d.signerIndex,title:e.t("validation.missingsignature"),description:e.t("validation.recipientmissingsignature",{name:d.name}),role:d,type:"signature"})}}}))}t.elementConnection.templateElements.forEach((d=>{if(d.validation===20&&(!d.options||d.options.length===0)){const a=this._recipients||t.roles;const n=a?.find((e=>e.signerIndex===d.signer));i.push({id:d.id,signerIndex:d.signer,title:d.label||e.t("toolbox.dropdown"),description:n?.firstName?`${n.firstName} ${n.lastName}`:n?.name||e.t("participants.participant",{index:(d.signer||0)+1}),element:d,role:n,type:"options"})}}));t.elementConnection.templateElements.forEach((e=>{if(e.value){const d=l(e.formElementType,e.validation,e.value,e.options);if(d){const a=this._recipients||t.roles;const n=a?.find((t=>t.signerIndex===e.signer));i.push({id:e.id,signerIndex:e.signer,title:e.label||e.formElementType,description:d,element:e,role:n,type:"value"})}}}));return i}function h(e){if(e.left+e.width>e.pageDimensions.width||e.top<0||e.left<0||e.top+e.height>e.pageDimensions.height)return true;else return false}function c(e){const i=e.result;const a=atob(e.obj.id).substring(0,3);const n=i[Object.keys(i)[0]];if(e.event.action==="create"){if(a==="ele"){d.bind(this)(this.component.shadowRoot.getElementById("ls-document-frame"),{...e.obj,id:n});t(e.obj.id,n);this.update.emit({event:{...e.event,result:e.result},template:this._template});this.validationErrors=m.bind(this)(this._template)}}if(a==="rol"){return g.bind(this)().then((()=>{this.update.emit({event:{...e.event,result:e.result},template:this._template})}))}if(a==="tpl"){this._template={...this._template,...e.obj};this.validationErrors=m.bind(this)(this._template);this.update.emit({event:{...e.event,result:e.result},template:this._template})}}async function g(){const e=this.component.shadowRoot.querySelector("ls-left-bar");const t=e?.shadowRoot?.getElementById("ls-participant-manager");const i=await this.adapter.execute(this.token,f(this.templateid));console.log(i);this.parseTemplate(JSON.stringify(i.template));if(t)t.template=this._template;this.generateFields();this.showPageFields(this.pageNum);this.validationErrors=m.bind(this)(this._template)}function T(e){if(!e?.id)return"invalid";const t=atob(e.id);if(t.length<3)return"invalid";const i=atob(e.id).substring(0,3);switch(i){case"ele":return"element";case"rol":return"role";case"tpl":return"template";case"doc":return"document";default:return"unknown"}}const x=[{id:0,description:"general purpose",formType:"text",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:30,description:"yyyy/mm/dd (auto sign day)",formType:"signing date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:31,description:"yy/mm/dd (auto sign day)",formType:"signing date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:32,description:"dd/mm/yyyy (auto sign day)",formType:"signing date",defaultHeight:16,defaultWidth:200,typeDefault:true,inputType:"text"},{id:33,description:"dd/mm/yy (auto sign day)",formType:"signing date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:34,description:"mm/dd/yyyy (auto sign day)",formType:"signing date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:35,description:"mm/dd/yy (auto sign day)",formType:"signing date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:36,description:"yyyy.mm.dd (auto sign day)",formType:"signing date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:37,description:"yy.mm.dd (auto sign day)",formType:"signing date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:38,description:"dd.mm.yyyy (auto sign day)",formType:"signing date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:39,description:"dd.mm.yy (auto sign day)",formType:"signing date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:40,description:"mm.dd.yyyy (auto sign day)",formType:"signing date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:41,description:"mm.dd.yy (auto sign day)",formType:"signing date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:42,description:"yyyy-mm-dd (auto sign day)",formType:"signing date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:43,description:"yy-mm-dd (auto sign day)",formType:"signing date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:44,description:"dd-mm-yyyy (auto sign day)",formType:"signing date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:45,description:"dd-mm-yy (auto sign day)",formType:"signing date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:46,description:"mm-dd-yyyy (auto sign day)",formType:"signing date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:47,description:"mm-dd-yy (auto sign day)",formType:"signing date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:48,description:"d mmmm yyyy (auto sign day)",formType:"signing date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:73,description:"Secret Code",formType:"text",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:77,description:"Title caps (force text to title caps)",formType:"text",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:78,description:"Uppercase (force text to uppercase)",formType:"text",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:79,description:"Lowercase (force text to lowercase)",formType:"text",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:65,description:"1 character (any text)",formType:"text",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:66,description:"2 character (any text)",formType:"text",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:67,description:"3 character (any text)",formType:"text",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:68,description:"4 character (any text)",formType:"text",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:69,description:"5 character (any text)",formType:"text",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:70,description:"6 character (any text)",formType:"text",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:71,description:"7 character (any text)",formType:"text",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:72,description:"8 character (any text)",formType:"text",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:1e3,description:"First name field (special use)",formType:"text",defaultHeight:16,defaultWidth:200,typeDefault:true,inputType:"text"},{id:1001,description:"Last name field (special use)",formType:"text",defaultHeight:16,defaultWidth:200,typeDefault:true,inputType:"text"},{id:1,description:"Email",formType:"email",defaultHeight:16,defaultWidth:200,typeDefault:true,inputType:"text"},{id:1002,description:"Email field (special use)",formType:"email",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:50,description:"Whole number",formType:"number",defaultHeight:16,defaultWidth:200,typeDefault:true,inputType:"number"},{id:51,description:"Number",formType:"number",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"number"},{id:52,description:"Currency",formType:"number",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"number"},{id:53,description:"1 number",formType:"number",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"number"},{id:54,description:"2 numbers",formType:"number",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"number"},{id:55,description:"3 numbers",formType:"number",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"number"},{id:56,description:"4 numbers",formType:"number",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"number"},{id:57,description:"5 numbers",formType:"number",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"number"},{id:58,description:"6 numbers",formType:"number",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"number"},{id:59,description:"7 numbers",formType:"number",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"number"},{id:60,description:"8 numbers",formType:"number",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"number"},{id:61,description:"9 numbers",formType:"number",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"number"},{id:62,description:"10 numbers",formType:"number",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"number"},{id:63,description:"11 numbers",formType:"number",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"number"},{id:64,description:"12 numbers",formType:"number",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"number"},{id:2,description:"yyyy/mm/dd",formType:"date",defaultHeight:16,defaultWidth:200,typeDefault:true,inputType:"date"},{id:3,description:"yy/mm/dd",formType:"date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"date"},{id:4,description:"dd/mm/yyyy",formType:"date",defaultHeight:16,defaultWidth:200,typeDefault:true,inputType:"date"},{id:5,description:"dd/mm/yy",formType:"date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"date"},{id:6,description:"mm/dd/yyyy",formType:"date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"date"},{id:7,description:"mm/dd/yy",formType:"date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"date"},{id:80,description:"mm/yy",formType:"date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"date"},{id:81,description:"mm/yyyy",formType:"date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"date"},{id:8,description:"yyyy.mm.dd",formType:"date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"date"},{id:9,description:"yy.mm.dd",formType:"date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"date"},{id:10,description:"dd.mm.yyyy",formType:"date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"date"},{id:11,description:"dd.mm.yy",formType:"date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"date"},{id:12,description:"mm.dd.yyyy",formType:"date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"date"},{id:13,description:"mm.dd.yy",formType:"date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"date"},{id:82,description:"mm.yy",formType:"date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"date"},{id:83,description:"mm.yyyy",formType:"date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"date"},{id:14,description:"yyyy-mm-dd",formType:"date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"date"},{id:15,description:"yy-mm-dd",formType:"date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"date"},{id:16,description:"dd-mm-yyyy",formType:"date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"date"},{id:17,description:"dd-mm-yy",formType:"date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"date"},{id:18,description:"mm-dd-yyyy",formType:"date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"date"},{id:19,description:"mm-dd-yy",formType:"date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"date"},{id:84,description:"mm-yy",formType:"date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"date"},{id:85,description:"mm-yyyy",formType:"date",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"date"},{id:20,description:"Dropdown List",formType:"dropdown",defaultHeight:16,defaultWidth:200,typeDefault:true,inputType:"text"},{id:91,description:"Countries",formType:"dropdown",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:92,description:"Name prefix titles",formType:"dropdown",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:24,description:"✔/✗",formType:"checkbox",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"checkbox"},{id:25,description:"✔/empty",formType:"checkbox",defaultHeight:16,defaultWidth:200,typeDefault:true,inputType:"checkbox"},{id:26,description:"✗/empty",formType:"checkbox",defaultHeight:16,defaultWidth:16,typeDefault:false,inputType:"checkbox"},{id:74,description:"File: attach to confirmatory email to sender",formType:"file",defaultHeight:16,defaultWidth:200,typeDefault:true,inputType:"file"},{id:75,description:"File: append to PDF, PDF files only",formType:"file",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"file"},{id:76,description:"File: zip with PDF (for internal view, signed PDF for signer)",formType:"file",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"file"},{id:90,description:"Drawn field.",formType:"drawn field",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:2e3,description:"Initials",formType:"initials",defaultHeight:16,defaultWidth:200,typeDefault:true,inputType:"text"},{id:93,description:"Regular Expression field",formType:"regular expression",defaultHeight:16,defaultWidth:200,typeDefault:false,inputType:"text"},{id:3e3,description:"Auto Sign",formType:"auto sign",defaultHeight:16,defaultWidth:200,typeDefault:true,inputType:"text"},{id:4e3,description:"Text Area",formType:"textarea",defaultHeight:16,defaultWidth:200,typeDefault:true,inputType:"textarea"}];function D(e){if(e===null)return x[0];const t=x.find((t=>t.id===e));return t===null?x[0]:t}export{i as a,c as b,T as c,d,f as e,n as f,D as g,l as h,x as i,a as m,h as o,u as r,g as s,p as u,m as v};
|
|
2
|
+
//# sourceMappingURL=p-0WDO8yNX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"p-0WDO8yNX.js","sources":["src/components/ls-document-viewer/editorCalculator.ts","src/components/ls-document-viewer/adapter/templateActions.ts","src/utils/fieldValueValidator.ts","src/components/ls-document-viewer/validator.ts","src/components/ls-document-viewer/editorUtils.ts"],"sourcesContent":["import { LSApiElement } from '../../types/LSApiElement';\n\nexport const findIn = (fields: NodeListOf<HTMLLsEditorFieldElement>, selector: HTMLElement, restyle: boolean = false, additive: boolean = false): HTMLLsEditorFieldElement[] => {\n const selected: HTMLLsEditorFieldElement[] = new Array();\n const { top, left, bottom, right } = selector.getBoundingClientRect();\n\n fields.forEach(f => {\n if (f.getBoundingClientRect().bottom <= bottom && f.getBoundingClientRect().top >= top && f.getBoundingClientRect().left >= left && f.getBoundingClientRect().right <= right) {\n if (restyle) f.selected = true;\n selected.push(f);\n } else {\n if (restyle && !additive) f.selected = false;\n }\n });\n return selected;\n};\n\n// Used to append new fields (dropped or loaded from template data)\nexport function addField(frame: HTMLElement, data): HTMLLsEditorFieldElement {\n const fields = this._template.elementConnection.templateElements;\n this._template = { ...this._template, elementConnection: { ...this._template.elementConnection, templateElements: [...fields, data] } };\n const assignee = this.mode === 'compose' ? this._recipients?.find(r => r.signerIndex === data.signer) : this._template.roles.find(r => r.signerIndex === data.signer);\n const node = document.createElement('ls-editor-field');\n node.setAttribute('type', data.formElementType);\n node.setAttribute('id', 'ls-field-' + data.id);\n node.setAttribute(\n 'assignee',\n this.mode === 'compose' && assignee?.previousRecipientDecides\n ? 'To Be Decided'\n : this.mode === 'compose'\n ? `${assignee?.firstName} ${assignee?.lastName}`\n : assignee?.name || (data.signer === 0 ? 'Sender' : `Participant ${data.signer}`),\n );\n node.setAttribute('zoom', String(this.zoom));\n node.setAttribute('readonly', String(this.mode === 'preview' || this._template?.locked));\n // node.setAttribute('selected', 'selected');\n node.style.zIndex = '100';\n node.style.position = 'absolute';\n\n node.style.top = Math.floor(data.top * this.zoom) + 'px';\n node.style.left = Math.floor(data.left * this.zoom) + 'px';\n node.style.height = Math.floor(data.height * this.zoom) + 'px';\n node.style.width = Math.floor(data.width * this.zoom) + 'px';\n node.style.fontSize = Math.round(data.fontSize * this.zoom) + 'px';\n node.style.alignContent = data.align;\n node.style.fontFamily = data.fontName;\n node.dataItem = data;\n\n frame.appendChild(node);\n\n return node as any as HTMLLsEditorFieldElement;\n}\n\nexport function moveField(item: HTMLLsEditorFieldElement, data) {\n item.style.top = Math.floor(data.top * this.zoom) + 'px';\n item.style.left = Math.floor(data.left * this.zoom) + 'px';\n item.style.height = Math.floor(data.height * this.zoom) + 'px';\n item.style.width = Math.floor(data.width * this.zoom) + 'px';\n item.style.fontSize = Math.round(data.fontSize * this.zoom) + 'px';\n item.style.fontFamily = data.fontName;\n item.style.textAlign = data.align;\n item.dataItem = recalculateCoordinates(data);\n}\n\n// calculates html compatible coords at current zoom level\nexport const transformCoordinates = (\n sourceField: LSApiElement,\n inputFieldWidth: number,\n inputFieldHeight: number,\n viewerWidth: number,\n viewerHeight: number,\n left: number,\n top: number,\n fontName: string,\n fontSize: number,\n zoom: number,\n): LSApiElement => {\n // Returns X, Y coordinates\n const ax = left > 0 ? left / viewerWidth : 0;\n const ay = top > 0 ? top / viewerHeight : 0;\n const bx = (left + inputFieldWidth) / viewerWidth;\n const by = (top + inputFieldHeight) / viewerHeight;\n\n // Return with calculated styles that try to place it as it would appear on legacy signing page\n return {\n ...sourceField,\n ax,\n ay,\n bx,\n by,\n cstyle: {\n margin: 0,\n verticalAlign: 'top',\n boxSizing: 'content-box',\n fontSize: viewerWidth < 640 ? `${(fontSize / 24) * zoom}rem` : `${fontSize * zoom}px`,\n fontFamily: fontName || 'arial',\n width: `${(inputFieldWidth * bx - inputFieldWidth * ax) * zoom}px`, // app1 input has padding-x 3px\n height: `${inputFieldHeight * (by - ay) * zoom}px`, // app1 input has padding-y 2px\n // minHeight: `${inputFieldHeight * (BY - AY) * zoom - 2}px`,\n lineHeight: 'inherit',\n },\n divStyle: {\n position: 'absolute',\n top: `${inputFieldHeight * ay * zoom}px`,\n left: `${inputFieldWidth * ax * zoom}px`,\n width: `${(inputFieldWidth * bx - inputFieldWidth * ax) * zoom}px`,\n height: `${inputFieldHeight * (by - ay) * zoom}px`,\n zIndex: 1000,\n fontSize: viewerWidth < 640 ? `${(fontSize / 24) * zoom}rem` : `${fontSize * zoom}px`,\n },\n objectHeight: `${inputFieldHeight * (by - ay) * zoom}px`,\n };\n};\n\n// from a field element get all dimension data including LEGACY dimensions\nexport const findDimensions = (\n frameContainer: HTMLDivElement,\n sourceField: HTMLLsEditorFieldElement,\n pageHeight: number,\n pageWidth: number,\n zoom: number,\n): { top: number; left: number; height: number; width: number; ax: number; ay: number; bx: number; by: number } => {\n // Position of widget frame\n const frmDims = frameContainer.getBoundingClientRect();\n // dimensions relative to viewport\n const { height, width } = sourceField.getBoundingClientRect();\n const top = Math.round((sourceField.getBoundingClientRect().top - frmDims.top) / zoom);\n const left = Math.round((sourceField.getBoundingClientRect().left - frmDims.left) / zoom);\n\n // Returns X, Y coordinates\n const ax = left > 0 ? left / pageWidth : 0;\n const ay = top > 0 ? top / pageHeight : 0;\n const bx = (left + width / zoom) / pageWidth;\n const by = (top + height / zoom) / pageHeight;\n\n // Return with calculated styles that try to place it as it would appear on legacy signing page\n return {\n top,\n left,\n height: Math.round(height / zoom),\n width: Math.round(width / zoom),\n ax,\n ay,\n bx,\n by,\n };\n};\n\n// from a field element get all dimension data including LEGACY dimensions\nexport const recalculateCoordinates = (d: LSApiElement): LSApiElement => {\n // Returns X, Y coordinates\n const ax = d.left / d.pageDimensions.width;\n const ay = d.top / d.pageDimensions.height;\n const bx = (d.left + d.width) / d.pageDimensions.width;\n const by = (d.top + d.height) / d.pageDimensions.height;\n\n // Return with calculated styles that try to place it as it would appear on legacy signing page\n return {\n ...d,\n ax,\n ay,\n bx,\n by,\n };\n};\n\n// from a field determinse if out of bounds\nexport const oob = (d: LSApiElement): boolean => {\n return d.left < 0 || d.top < 0 || d.left + d.width > d.pageDimensions.width || d.top + d.height > d.pageDimensions.height;\n};\n","// Add a role\nconst updateTemplate = template => {\n return `\n mutation LDVupdateTemplate {\n updateTemplate(input: {\n templateId: \"${template.id}\", \n title: \"${template.title}\",\n locked: ${template.locked},\n documentRetentionDays: ${template.documentRetentionDays},\n autoArchive: ${template.autoArchive},\n fixSignatureScale: ${template.fixSignatureScale ? template.fixSignatureScale : false}\n })\n }\n `;\n};\n\nconst getTemplate = (id: string) => {\n return `\n query LDVGetTemplate {\n template(id: \"${id}\") {\n id\n title\n fileName\n pageDimensions\n pageCount\n modified\n link\n valid\n locked\n autoArchive\n archived\n tags\n created\n createdBy\n lastSent\n fixSignatureScale\n groupId\n documentRetentionDays\n roles{\n id\n name\n roleType\n signerIndex\n ordinal\n signerParent\n experience\n }\n elementConnection {\n templateElements {\n align\n ax\n ay\n bx\n by\n elementType\n formElementType\n fieldOrder\n fontName\n fontSize\n helpText\n hideBorder\n id\n label\n labelExtra\n logicAction\n logicGroup\n mapTo\n options\n optional\n page\n role\n signer\n excludeFromPdf\n validation\n value\n }\n totalCount\n }\n userSignatureConnection {\n userSignatureElements {\n id\n userId\n ax\n ay\n bx\n by\n page\n link\n }\n }\n }\n }\n `;\n};\n\nexport { updateTemplate, getTemplate };\n","/**\n * Validates a field value based on its formElementType and validation ID.\n * Returns null if valid, or a translation key string if invalid.\n * Empty values always return null (required/optional is handled separately).\n */\nimport { dvI18n } from '../i18n/i18n';\n\nexport const validateFieldValue = (\n formElementType: string,\n validation: number,\n value: string,\n options?: string,\n): string | null => {\n if (!value || value === '') return null;\n\n if (formElementType === 'text') {\n return validateText(validation, value);\n }\n\n if (formElementType === 'number') {\n return validateNumber(validation, value);\n }\n\n if (formElementType === 'email') {\n return validateEmail(value);\n }\n\n if (formElementType === 'dropdown' && validation === 20) {\n return validateDropdownValue(value, options);\n }\n\n return null;\n};\n\nconst validateText = (validation: number, value: string): string | null => {\n // Character length validations (65–72 → 1–8 characters)\n if (validation >= 65 && validation <= 72) {\n const requiredLength = validation - 64;\n if (value.length !== requiredLength) {\n return dvI18n.t('fieldvalidation.exactcharacters', { count: requiredLength });\n }\n return null;\n }\n\n // Title case (77)\n if (validation === 77) {\n const titleCased = value.replace(/\\w\\S*/g, txt => txt.charAt(0).toUpperCase() + txt.slice(1).toLowerCase());\n if (value !== titleCased) {\n return dvI18n.t('fieldvalidation.titlecase');\n }\n return null;\n }\n\n // Uppercase (78)\n if (validation === 78) {\n if (value !== value.toUpperCase()) {\n return dvI18n.t('fieldvalidation.uppercase');\n }\n return null;\n }\n\n // Lowercase (79)\n if (validation === 79) {\n if (value !== value.toLowerCase()) {\n return dvI18n.t('fieldvalidation.lowercase');\n }\n return null;\n }\n\n return null;\n};\n\nconst validateNumber = (validation: number, value: string): string | null => {\n // Whole number (50)\n if (validation === 50) {\n if (!/^\\d+$/.test(value)) return dvI18n.t('fieldvalidation.wholenumber');\n return null;\n }\n\n // Number with optional decimal (51)\n if (validation === 51) {\n if (!/^\\d+(\\.\\d+)?$/.test(value)) return dvI18n.t('fieldvalidation.number');\n return null;\n }\n\n // Currency (52)\n if (validation === 52) {\n if (!/^\\d+\\.\\d{2}$/.test(value)) return dvI18n.t('fieldvalidation.currency');\n return null;\n }\n\n // Exact digit count (53–64 → 1–12 digits)\n if (validation >= 53 && validation <= 64) {\n const requiredDigits = validation - 52;\n const pattern = new RegExp(`^\\\\d{${requiredDigits}}$`);\n if (!pattern.test(value)) {\n return dvI18n.t('fieldvalidation.exactdigits', { count: requiredDigits });\n }\n return null;\n }\n\n return null;\n};\n\nconst validateEmail = (value: string): string | null => {\n const emailPattern = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/;\n if (!emailPattern.test(value)) {\n return dvI18n.t('fieldvalidation.email');\n }\n return null;\n};\n\nconst validateDropdownValue = (value: string, options?: string): string | null => {\n if (!options || options.trim() === '') return null;\n const optionList = options.split('\\n').map(o => o.trim()).filter(o => o.length > 0);\n if (optionList.length === 0) return null;\n if (!optionList.includes(value)) {\n return dvI18n.t('fieldvalidation.dropdownoption');\n }\n return null;\n};\n","/**\n * This module contains all the rules required to mark a template\n * as valid.\n *\n */\n\nimport { LSApiTemplate } from '../../types/LSApiTemplate';\nimport { ValidationError } from '../../types/ValidationError';\nimport { validateFieldValue } from '../../utils/fieldValueValidator';\nimport { dvI18n } from '../../i18n/i18n';\n\nexport function validate(t: LSApiTemplate): ValidationError[] {\n var errors = [];\n\n if (this._recipients) {\n this._recipients.forEach(tr => {\n if (t.elementConnection.templateElements.filter(e => e.formElementType === 'signature' && e.signer === tr.signerIndex).length === 0) {\n if (tr?.roleType !== 'APPROVER') {\n errors.push({\n id: tr.id,\n signerIndex: tr.signerIndex,\n title: dvI18n.t('validation.missingsignature'),\n description: dvI18n.t('validation.recipientmissingsignature', { name: tr.name }),\n role: tr,\n type: 'signature',\n });\n }\n }\n });\n } else {\n // Check for missing signatures\n t.roles.forEach(tr => {\n if (t.elementConnection.templateElements.filter(e => e.formElementType === 'signature' && e.signer === tr.signerIndex).length === 0) {\n if (tr?.roleType !== 'APPROVER') {\n errors.push({\n id: tr.id,\n signerIndex: tr.signerIndex,\n title: dvI18n.t('validation.missingsignature'),\n description: dvI18n.t('validation.recipientmissingsignature', { name: tr.name }),\n role: tr,\n type: 'signature',\n });\n }\n }\n });\n }\n\n // Check for missing multi-select options\n t.elementConnection.templateElements.forEach(element => {\n if (element.validation === 20 && (!element.options || element.options.length === 0)) {\n const roles = this._recipients || t.roles;\n const role = roles?.find(r => r.signerIndex === element.signer);\n errors.push({\n id: element.id,\n signerIndex: element.signer,\n title: element.label || dvI18n.t('toolbox.dropdown'),\n description: role?.firstName ? `${role.firstName} ${role.lastName}` : role?.name || dvI18n.t('participants.participant', { index: (element.signer || 0) + 1 }),\n element: element,\n role: role,\n type: 'options',\n });\n }\n });\n\n // Check for invalid pre-filled values\n t.elementConnection.templateElements.forEach(element => {\n if (element.value) {\n const error = validateFieldValue(element.formElementType, element.validation, element.value, element.options);\n if (error) {\n const roles = this._recipients || t.roles;\n const role = roles?.find(r => r.signerIndex === element.signer);\n errors.push({\n id: element.id,\n signerIndex: element.signer,\n title: element.label || element.formElementType,\n description: error,\n element: element,\n role: role,\n type: 'value',\n });\n }\n }\n });\n\n return errors;\n}\n","/**\n * These utils are used to make document-viewer more readable\n * but they must be called using the bind() function so that\n * all code is executed within the correct 'this' scope.\n *\n * Avoid using arrow functions here as they reassign \"thiss\"\n */\n\nimport { LSApiElement } from '../../types/LSApiElement';\nimport { LSMutateEvent } from '../../types/LSMutateEvent';\nimport { ValidationType } from '../../types/ValidationType';\nimport { getTemplate } from './adapter/templateActions';\nimport { addField } from './editorCalculator';\nimport { validate } from './validator';\nimport { updateCreatedId } from './history';\n\n/**\n * Determines if an element will be plotted out of bounds, i.e. off\n * the page.\n */\nexport function oob(obj: LSApiElement): boolean {\n if (obj.left + obj.width > obj.pageDimensions.width || obj.top < 0 || obj.left < 0 || obj.top + obj.height > obj.pageDimensions.height) return true;\n else return false;\n}\n\nexport function alter(diffFn) {\n const diffs: LSMutateEvent[] = this.selected.map(c => {\n return { action: 'update', data: diffFn(c.dataItem) as LSApiElement };\n });\n this.mutate.emit(diffs);\n}\n\nexport function resetDataItems() {\n const fields = this.component.shadowRoot.querySelectorAll('ls-editor-field') as HTMLLsEditorFieldElement[];\n this.selected = Array.from(fields).filter(fx => fx.selected);\n this.selectFields.emit(this.selected.map(fx => fx.dataItem));\n}\n\nexport function debounce(func, timeout = 300) {\n let timer;\n return (...args) => {\n clearTimeout(timer);\n timer = setTimeout(() => {\n func.apply(this, args);\n }, timeout);\n };\n}\n\n// After a mutation ensure that the new data is stored in fields and template\nexport function matchData(data: { result: any; obj: any; event: LSMutateEvent }) {\n const newObj = data.result;\n const prefix = atob(data.obj.id).substring(0, 3);\n // because mutations return the ID back with the mutation name we just assume its the first (and only) JSON prop\n const id = newObj[Object.keys(newObj)[0]];\n\n if (data.event.action === 'create') {\n if (prefix === 'ele') {\n addField.bind(this)(this.component.shadowRoot.getElementById('ls-document-frame'), { ...data.obj, id });\n updateCreatedId(data.obj.id, id);\n\n this.update.emit({ event: { ...data.event, result: data.result }, template: this._template });\n this.validationErrors = validate.bind(this)(this._template);\n }\n }\n\n if (prefix === 'rol') { \n return syncRoles.bind(this)().then(() => {\n this.update.emit({ event: { ...data.event, result: data.result }, template: this._template });\n });\n \n }\n\n if (prefix === 'tpl') {\n this._template = { ...this._template, ...data.obj };\n this.validationErrors = validate.bind(this)(this._template);\n this.update.emit({ event: { ...data.event, result: data.result }, template: this._template });\n }\n}\n\nexport async function syncRoles() {\n const leftBar = this.component.shadowRoot.querySelector('ls-left-bar') as HTMLLsLeftBarElement;\n const participantManager = leftBar?.shadowRoot?.getElementById('ls-participant-manager') as HTMLLsParticipantManagerElement;\n const tresult = (await this.adapter.execute(this.token, getTemplate(this.templateid))) as any;\n console.log(tresult);\n this.parseTemplate(JSON.stringify(tresult.template));\n if (participantManager) participantManager.template = this._template;\n this.generateFields();\n this.showPageFields(this.pageNum);\n this.validationErrors = validate.bind(this)(this._template);\n}\n\n// Utility function which extracts the type from any API id\nexport function getApiType(obj: any) {\n if (!obj?.id) return 'invalid';\n\n const apiId = atob(obj.id);\n if (apiId.length < 3) return 'invalid';\n\n const prefix = atob(obj.id).substring(0, 3);\n\n switch (prefix) {\n case 'ele':\n return 'element';\n case 'rol':\n return 'role';\n case 'tpl':\n return 'template';\n case 'doc':\n return 'document';\n default:\n return 'unknown';\n }\n}\n\nexport const validationTypes: any = [\n { id: 0, description: 'general purpose', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 30, description: 'yyyy/mm/dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 31, description: 'yy/mm/dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 32, description: 'dd/mm/yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },\n { id: 33, description: 'dd/mm/yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 34, description: 'mm/dd/yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 35, description: 'mm/dd/yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 36, description: 'yyyy.mm.dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 37, description: 'yy.mm.dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 38, description: 'dd.mm.yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 39, description: 'dd.mm.yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 40, description: 'mm.dd.yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 41, description: 'mm.dd.yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 42, description: 'yyyy-mm-dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 43, description: 'yy-mm-dd (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 44, description: 'dd-mm-yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 45, description: 'dd-mm-yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 46, description: 'mm-dd-yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 47, description: 'mm-dd-yy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 48, description: 'd mmmm yyyy (auto sign day)', formType: 'signing date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 73, description: 'Secret Code', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 77, description: 'Title caps (force text to title caps)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 78, description: 'Uppercase (force text to uppercase)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 79, description: 'Lowercase (force text to lowercase)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 65, description: '1 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 66, description: '2 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 67, description: '3 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 68, description: '4 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 69, description: '5 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 70, description: '6 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 71, description: '7 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 72, description: '8 character (any text)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 1000, description: 'First name field (special use)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },\n { id: 1001, description: 'Last name field (special use)', formType: 'text', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },\n { id: 1, description: 'Email', formType: 'email', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },\n { id: 1002, description: 'Email field (special use)', formType: 'email', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 50, description: 'Whole number', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'number' },\n { id: 51, description: 'Number', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 52, description: 'Currency', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 53, description: '1 number', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 54, description: '2 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 55, description: '3 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 56, description: '4 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 57, description: '5 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 58, description: '6 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 59, description: '7 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 60, description: '8 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 61, description: '9 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 62, description: '10 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 63, description: '11 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 64, description: '12 numbers', formType: 'number', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'number' },\n { id: 2, description: 'yyyy/mm/dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'date' },\n { id: 3, description: 'yy/mm/dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 4, description: 'dd/mm/yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'date' },\n { id: 5, description: 'dd/mm/yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 6, description: 'mm/dd/yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 7, description: 'mm/dd/yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 80, description: 'mm/yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 81, description: 'mm/yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 8, description: 'yyyy.mm.dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 9, description: 'yy.mm.dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 10, description: 'dd.mm.yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 11, description: 'dd.mm.yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 12, description: 'mm.dd.yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 13, description: 'mm.dd.yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 82, description: 'mm.yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 83, description: 'mm.yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 14, description: 'yyyy-mm-dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 15, description: 'yy-mm-dd', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 16, description: 'dd-mm-yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 17, description: 'dd-mm-yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 18, description: 'mm-dd-yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 19, description: 'mm-dd-yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 84, description: 'mm-yy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 85, description: 'mm-yyyy', formType: 'date', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'date' },\n { id: 20, description: 'Dropdown List', formType: 'dropdown', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },\n { id: 91, description: 'Countries', formType: 'dropdown', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 92, description: 'Name prefix titles', formType: 'dropdown', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 24, description: '✔/✗', formType: 'checkbox', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'checkbox' },\n { id: 25, description: '✔/empty', formType: 'checkbox', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'checkbox' },\n { id: 26, description: '✗/empty', formType: 'checkbox', defaultHeight: 16, defaultWidth: 16, typeDefault: false, inputType: 'checkbox' },\n { id: 74, description: 'File: attach to confirmatory email to sender', formType: 'file', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'file' },\n { id: 75, description: 'File: append to PDF, PDF files only', formType: 'file', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'file' },\n {\n id: 76,\n description: 'File: zip with PDF (for internal view, signed PDF for signer)',\n formType: 'file',\n defaultHeight: 16,\n defaultWidth: 200,\n typeDefault: false,\n inputType: 'file',\n },\n { id: 90, description: 'Drawn field.', formType: 'drawn field', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 2000, description: 'Initials', formType: 'initials', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },\n { id: 93, description: 'Regular Expression field', formType: 'regular expression', defaultHeight: 16, defaultWidth: 200, typeDefault: false, inputType: 'text' },\n { id: 3000, description: 'Auto Sign', formType: 'auto sign', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'text' },\n { id: 4000, description: 'Text Area', formType: 'textarea', defaultHeight: 16, defaultWidth: 200, typeDefault: true, inputType: 'textarea' },\n];\n\n// See validation table in database for latest values - these have to be hard coded for our HTML control - ASW\nexport function getInputType(validation: number): ValidationType {\n if (validation === null) return validationTypes[0];\n\n const inputType: ValidationType = validationTypes.find(v => v.id === validation);\n\n return inputType === null ? validationTypes[0] : inputType;\n}\n"],"names":[],"mappings":";;;AAEa,MAAA,MAAM,GAAG,CAAC,MAA4C,EAAE,QAAqB,EAAE,UAAmB,KAAK,EAAE,QAAoB,GAAA,KAAK,KAAgC;AAC7K,IAAA,MAAM,QAAQ,GAA+B,IAAI,KAAK,EAAE;AACxD,IAAA,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,QAAQ,CAAC,qBAAqB,EAAE;AAErE,IAAA,MAAM,CAAC,OAAO,CAAC,CAAC,IAAG;AACjB,QAAA,IAAI,CAAC,CAAC,qBAAqB,EAAE,CAAC,MAAM,IAAI,MAAM,IAAI,CAAC,CAAC,qBAAqB,EAAE,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC,CAAC,qBAAqB,EAAE,CAAC,IAAI,IAAI,IAAI,IAAI,CAAC,CAAC,qBAAqB,EAAE,CAAC,KAAK,IAAI,KAAK,EAAE;AAC5K,YAAA,IAAI,OAAO;AAAE,gBAAA,CAAC,CAAC,QAAQ,GAAG,IAAI;AAC9B,YAAA,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;;aACX;YACL,IAAI,OAAO,IAAI,CAAC,QAAQ;AAAE,gBAAA,CAAC,CAAC,QAAQ,GAAG,KAAK;;AAEhD,KAAC,CAAC;AACF,IAAA,OAAO,QAAQ;AACjB;AAEA;AACgB,SAAA,QAAQ,CAAC,KAAkB,EAAE,IAAI,EAAA;IAC/C,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,gBAAgB;AAChE,IAAA,IAAI,CAAC,SAA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AY,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE;;AAG9I;AACM,SAAU,YAAY,CAAC,UAAkB,EAAA;IAC7C,IAAI,UAAU,KAAK,IAAI;AAAE,QAAA,OAAO,eAAe,CAAC,CAAC,CAAC;AAElD,IAAA,MAAM,SAAS,GAAmB,eAAe,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,KAAK,UAAU,CAAC;AAEhF,IAAA,OAAO,SAAS,KAAK,IAAI,GAAG,eAAe,CAAC,CAAC,CAAC,GAAG,SAAS;AAC5D;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e,c as t,a,h as o,H as r}from"./p-CItPoq74.js";import{d as i}from"./p-CTJakSNy.js";import{d}from"./p-CwCWCxsI.js";const l=()=>`:host{display:flex;flex-direction:row}.ls-dv-field-format-bar{display:flex;flex-direction:row;gap:0.5rem}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;min-width:fit-content}.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}.ls-dv-has-trailing-icon{padding-right:2rem}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=number]{width:max-content;max-width:3rem}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 button.ls-dv-active{background:var(--primary-10, #eff4ff);color:var(--primary-60, #4456f6);cursor:default;pointer-events:none}.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)}`;const c=class{constructor(a){e(this,a);this.mutate=t(this,"mutate",7)}dataItem;mutate;get component(){return a(this)}fontSizes=[6,8,10,12,14,16,18,20,24,28,32,36,64,72,124];selectFieldsHandler(){if(this.dataItem.length>0){var e=this.component.shadowRoot.getElementById("ls-toolbar-font-select");if(e)e.value=this.allElementsSame()?.fontName;var t=this.component.shadowRoot.getElementById("ls-toolbar-font-size");if(t)t.value=this.allElementsSame()?.fontSize?.toString()}}alter(e){console.log(e);const t=this.dataItem.map((t=>({action:"update",data:{...t,...e}})));this.dataItem=t.map((e=>e.data));this.mutate.emit(t)}componentDidLoad(){}allElementsSame=()=>{if(!this.dataItem||this.dataItem.length===0)return;const e=this.dataItem[0].fontName;const t=this.dataItem.every((t=>t.fontName===e));const a=this.dataItem[0].fontSize;const o=this.dataItem.every((e=>e.fontSize===a));const r=this.dataItem[0].align||"left";const i=this.dataItem.every((e=>(e.align||"left")===r));return{isSame:t&&o,fontName:t?e:"mixed",fontSize:o?a:"mixed",align:i?r:"mixed"}};render(){return o(r,{key:"67f8db275fa6516f07620f0df259906e9d8ae470"},this.dataItem&&this.dataItem.length>1&&o("div",{key:"3ce7162ceaf8a026e4a7241ef40dfead41a5b1c1",class:"ls-dv-field-format-bar"},o("div",{key:"f30f132d45c15ba7f68ef2c8783dfa28c15141cf",class:"ls-dv-input-wrapper","data-tooltip-id":"ls-dv-tooltip","data-tooltip-content":i.t("format.fontfamily")},o("ls-icon",{key:"08c73e77c38361bc2d37ef15c3e06cf813618961",id:"selectLeadingIcon",name:"typeface-icon"}),o("select",{key:"018191b86e12770767a551688aeeecbdbe51a4e2",id:"ls-toolbar-font-select",onChange:e=>{this.alter({fontName:e.target.value})},class:"ls-dv-has-leading-icon ls-dv-has-trailing-icon"},o("option",{key:"93b0f9b75f41876d63a1d622ca94b9b5e9dfa908",disabled:true,selected:this.allElementsSame()?.fontName==="mixed",value:"mixed"},i.t("fieldproperties.mixed")),o("option",{key:"e9faa9dfaf3ff75a3ce510e64419ac093acccd25",value:"arial"},"Arial"),o("option",{key:"7b280f5f8efc88446af24e97b711516ac4008be1",value:"liberation"},"Liberation Sans"),o("option",{key:"18c03b38a08bfee4e046a38761c3483aec71a77b",value:"courier"},"Courier"),o("option",{key:"e7072bfff3ada9f0024313e3f43d0245c6079b28",value:"helvetica"},"Helvetica"),o("option",{key:"439c95cc62ea7c161959a374298c9d47a8204546",value:"verdana"},"Verdana")),o("ls-icon",{key:"95baaab584a60fc85d280c15f3bd9c78b0622e58",id:"selectorIcon",name:"selector-icon"})),o("div",{key:"9bbda6ae453b07da37cdaeebb964ade7803254bf",class:"ls-dv-input-wrapper","data-tooltip-id":"ls-dv-tooltip","data-tooltip-content":i.t("format.fontsize")},o("ls-icon",{key:"46c03f524378b946e6f32ce82e525f08fa92ab1a",id:"selectLeadingIcon",name:"text-size-icon"}),o("select",{key:"3dd39f77e2aaab4caad2de89bc6a5f703e2e312a",id:"ls-toolbar-font-size",onChange:e=>{this.alter({fontSize:parseInt(e.target.value)});e.target.blur()},class:"ls-dv-has-leading-icon ls-dv-has-trailing-icon"},o("option",{key:"f89b1abc0a8bd45e109cd5ba6d4d121e7e639d63",disabled:true,selected:this.allElementsSame()?.fontSize==="mixed",value:"mixed"},i.t("fieldproperties.mixed")),this.fontSizes.map((e=>o("option",{value:e,selected:this.allElementsSame()?.fontSize===e},e)))),o("ls-icon",{key:"a37b3ecdff064a154bce9b4c0bf249c2009a1c0e",id:"selectorIcon",name:"selector-icon"})),o("div",{key:"28f5d1dde6f30624f2ebc0175bfeea629732cdcb",class:"ls-dv-button-group"},o("button",{key:"64ef281302a4218328cd8887c52bbc850629425c",class:{"ls-dv-active":this.allElementsSame()?.align==="left"},onClick:()=>{this.alter({align:"left"})},"data-tooltip-id":"ls-dv-tooltip","data-tooltip-content":i.t("format.aligntextleft")},o("ls-icon",{key:"985ea95bf99b920e8671847c9bf50533c294498c",name:"menu-alt-2-icon"})),o("button",{key:"835b802969be4c4d68db935d1e7c96a6754b2d15",class:{"ls-dv-active":this.allElementsSame()?.align==="center"},onClick:()=>{this.alter({align:"center"})},"data-tooltip-id":"ls-dv-tooltip","data-tooltip-content":i.t("format.aligntextcenter")},o("ls-icon",{key:"7a549d92ec713eead0a40144a0a0e9073d51fbaf",name:"menu-alt-5-icon"})),o("button",{key:"161d87c93f040f2a0dcf7736346d24be594d58f9",class:{"ls-dv-active":this.allElementsSame()?.align==="right"},onClick:()=>{this.alter({align:"right"})},"data-tooltip-id":"ls-dv-tooltip","data-tooltip-content":i.t("format.aligntextright")},o("ls-icon",{key:"e0f846262279b2c0dc2424aa9c8f101cfcfee1b9",name:"menu-alt-3-icon"})))),this.dataItem&&this.dataItem.length===1&&o("div",{key:"9d3b885f45d74ccfe58c5fd6c6b6899d16d21c1d",class:"ls-dv-field-format-bar"},o("div",{key:"8786b8c864cab4f984a5b93d53f698c66e94a3bc",class:"ls-dv-input-wrapper","data-tooltip-id":"ls-dv-tooltip","data-tooltip-content":i.t("format.fontfamily")},o("ls-icon",{key:"585579e38e58636f437d6411825f80f994a1a21b",id:"selectorIcon",name:"selector-icon"}),o("ls-icon",{key:"507c013a74531a6b52c4624b828e5e70d53270ad",id:"selectLeadingIcon",name:"typeface-icon"}),o("select",{key:"3878862175dbd05a7f65f40c918e3282e824558d",id:"ls-toolbar-font-select",onChange:e=>{this.alter({fontName:e.target.value})},class:"ls-dv-has-leading-icon ls-dv-has-trailing-icon"},o("option",{key:"6b57efb90ef6a3b2ba2d13d5f714b6a1523e41d1",value:"arial"},"Arial"),o("option",{key:"95e762ed828bc06aec4967109326989bc860172c",value:"liberation"},"Liberation Sans"),o("option",{key:"42c6cd2a625aa96276ef080133c59069d692458c",value:"courier"},"Courier"),o("option",{key:"a70cf28e4ae339be15695fb1ac318504addb1668",value:"helvetica"},"Helvetica"),o("option",{key:"a74abcdacc483826d83ea75279ab54b2182906ce",value:"verdana"},"Verdana"))),o("div",{key:"6d86948ef41adaa0669fc8f509a0f10f69d8acf7",class:"ls-dv-input-wrapper","data-tooltip-id":"ls-dv-tooltip","data-tooltip-content":i.t("format.fontsize")},o("ls-icon",{key:"2e207b573f445015d4abebec892f66ca80301299",id:"selectLeadingIcon",name:"text-size-icon"}),o("select",{key:"10de2be7b36eaf872f06641411ba73fb64f7e377",id:"ls-toolbar-font-size",onChange:e=>{this.alter({fontSize:parseInt(e.target.value)});e.target.blur()},class:"ls-dv-has-leading-icon ls-dv-has-trailing-icon"},this.fontSizes.map((e=>o("option",{value:e,selected:this.dataItem[0].fontSize===e},e)))),o("ls-icon",{key:"071e07610b965de760746c14cc28f629f697ea04",id:"selectorIcon",name:"selector-icon"})),o("div",{key:"4451f71ae8da401631636b6fda37aa6e3d921e8d",class:"ls-dv-button-group"},o("button",{key:"b890d5ec32ec0986a5728823e92cfd186f69ca3f",class:{"ls-dv-active":this.dataItem[0].align==="left"||!this.dataItem[0].align},onClick:()=>{this.alter({align:"left"})},"data-tooltip-id":"ls-dv-tooltip","data-tooltip-content":i.t("format.aligntextleft")},o("ls-icon",{key:"d88930fd3e0f1ec3493c520a749f7f3ab517d700",name:"menu-alt-2-icon"})),o("button",{key:"69607fbf8ddfb0e01d5c8a9c730d2175ebed8095",class:{"ls-dv-active":this.dataItem[0].align==="center"},onClick:()=>{this.alter({align:"center"})},"data-tooltip-id":"ls-dv-tooltip","data-tooltip-content":i.t("format.aligntextcenter")},o("ls-icon",{key:"a238a5647c131c1a640e9fb54bcbfc3e58da392a",name:"menu-alt-5-icon"})),o("button",{key:"edcfbf372e19a5a3f6d2aacf94f79645d38c0216",class:{"ls-dv-active":this.dataItem[0].align==="right"},onClick:()=>{this.alter({align:"right"})},"data-tooltip-id":"ls-dv-tooltip","data-tooltip-content":i.t("format.aligntextright")},o("ls-icon",{key:"4fc79e1f1befbce488049d47d420a70c09447832",name:"menu-alt-3-icon"})))),o("ls-tooltip",{key:"649cfe25ea3da1e2605b28c13ca304f9f2865aa0",tooltipId:"ls-dv-tooltip"}))}static get watchers(){return{dataItem:["selectFieldsHandler"]}}};c.style=l();const n=()=>`:host{display:inline-block}*{margin:0}.ls-dv-dropdown{display:flex;align-items:center;position:relative}.ls-dv-dropdown-header{border-radius:0.75rem;border:1px solid var(--gray-20, #edeff2);background:var(--gray-10, #f7f8fa);display:flex;padding:0.125rem 0.125rem 0.125rem 0.5rem;align-items:center;gap:0.5rem}.ls-dv-placing-fields-text{color:var(--gray-90, #5e6066);text-align:center;font-size:0.875rem;font-style:normal;font-weight:500;margin:0}.ls-dv-selected-role-label{display:flex;padding:0.125rem 0.375rem;align-items:center;gap:0.25rem;border-radius:0.25rem;font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;max-width:10rem}.ls-dv-selected-role-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ls-dv-dropdown-list{position:absolute;top:3rem;left:50%;transform:translateX(-50%);display:flex;width:18.5625rem;padding:0.25rem;flex-direction:column;gap:0.25rem;border-radius:1rem;border:1px solid var(--gray-30, #e0e2e5);background:white;box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);max-height:40vh}.ls-dv-dropdown-list-items{display:flex;flex-direction:column;gap:0.25rem;overflow-y:auto;min-height:0}.ls-dv-dropdown-item{display:flex;padding:0.5rem 0.875rem 0.5rem 0.5rem;align-items:center;gap:0.75rem;align-self:stretch;border-radius:0.75rem}.ls-dv-dropdown-item.ls-dv-selected,.ls-dv-dropdown-item.ls-dv-selected:hover{background:var(--background-selected, #e0e2e5)}.ls-dv-dropdown-item:hover{background:var(--gray-10, #f7f8fa)}.ls-dv-skeleton-item{pointer-events:none;color:var(--primary-50, #5185ff)}.ls-dv-skeleton-circle{width:2.25rem !important;height:2.25rem !important;flex-shrink:0;border-radius:0.625rem;background:var(--gray-20, #edeff2);animation:pulse 1.2s ease-in-out infinite}.ls-dv-skeleton-line{border-radius:0.25rem;background:var(--gray-20, #edeff2);animation:pulse 1.2s ease-in-out infinite}.ls-dv-skeleton-line-name{width:6rem;height:0.75rem;margin-bottom:0.25rem}.ls-dv-skeleton-line-type{width:3rem;height:0.625rem}@keyframes pulse{0%,100%{opacity:1}50%{opacity:0.4}}.ls-dv-add-participant-row{all:unset;flex-shrink:0;display:flex;padding:0.5rem 0.875rem 0.5rem 0.5rem;align-items:center;gap:0.75rem;align-self:stretch;border-radius:0.75rem;border:1px dashed var(--gray-30, #e0e2e5);cursor:pointer}.ls-dv-add-participant-row:hover{background:var(--gray-10, #f7f8fa)}.ls-dv-add-participant-row:disabled{cursor:not-allowed;background:var(--gray-10, #f7f8fa);opacity:0.5}.ls-dv-plus-icon{color:var(--gray-40, #d8d9dc)}.ls-dv-role-icon{display:flex;padding:0.5rem;border-radius:0.625rem}.ls-dv-add-participant-icon{display:flex;padding:0.5rem;border-radius:0.625rem;color:white;background:var(--primary-60, #4456f6)}.ls-dv-role-text{display:flex;flex-direction:column;width:100%;min-width:0}.ls-dv-dropdown-item .ls-dv-check-icon{color:var(--gray-40, #d8d9dc)}.ls-dv-dropdown-item.ls-dv-selected .ls-dv-check-icon{color:var(--check-icon-selected)}.ls-dv-role-name{color:var(--gray-100, #45484d);font-size:0.75rem;font-style:normal;font-weight:500;line-height:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ls-dv-role-type{color:var(--gray-80, #6f7176);font-size:0.75rem;font-style:normal;font-weight:400;line-height:1rem;}.ls-dv-dropdown-item.ls-dv-selected .ls-dv-role-name{color:var(--role-name-selected)}.ls-dv-dropdown-item.ls-dv-selected .ls-dv-role-type{color:var(--role-type-selected)}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)}.ls-dv-expand-button{border:0;cursor:pointer;display:inline-flex;align-items:center;border-radius:0.625rem;justify-content:center;text-transform:capitalize;min-height:2rem;min-width:2rem;max-height:2rem;max-width:2rem}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)}`;const s=class{constructor(a){e(this,a);this.roleChange=t(this,"roleChange",7);this.addParticipant=t(this,"addParticipant",7)}get el(){return a(this)}selected;signer;selectedRole={signerIndex:1,name:"",roleType:"SIGNER",default:true};handleSignerChange(e){this.syncSelectedRole(e)}scrollToBottom=false;isAddingParticipant=false;handleRoleLoad(){this.syncSelectedRole(this.signer);if(this.scrollToBottom){this.scrollToBottom=false;this.isAddingParticipant=false;requestAnimationFrame((()=>{const e=this.el.shadowRoot?.querySelector(".ls-dv-dropdown-list-items");if(e)e.scrollTo({top:e.scrollHeight,behavior:"smooth"})}))}}componentWillLoad(){this.syncSelectedRole(this.signer)}syncSelectedRole(e){if(e===0){this.selectedRole={signerIndex:0,name:"Sender",roleType:"SENDER",default:false}}else if(this.roles?.length>0){const t=this.roles.find((t=>t.signerIndex===e));if(t){this.selectedRole={...t,default:false}}}}roles=[];isOpen=false;handleWindowClick(e){if(this.isOpen&&!this.el.shadowRoot.contains(e.composedPath()[0])){this.isOpen=false}}toggleDropdown=()=>{this.isOpen=!this.isOpen};roleChange;addParticipant;selectRole(e){this.selectedRole={...e,default:false};this.isOpen=false;this.roleChange.emit(e.signerIndex)}createHandler(){this.scrollToBottom=true;this.isAddingParticipant=true;this.addParticipant.emit({type:"SIGNER"});requestAnimationFrame((()=>{const e=this.el.shadowRoot?.querySelector(".ls-dv-dropdown-list-items");if(e)e.scrollTo({top:e.scrollHeight,behavior:"smooth"})}))}render(){return o(r,{key:"150af762e16fa8eb3595356d55fbf5fa0af6767d"},o("div",{key:"cbac746cdd87e0f03cca811f52cdcd9de99e5531",class:"ls-dv-dropdown"},o("div",{key:"3ba9e9b2f1bd9dd13e12f7b92f2481686f03cc2f",class:"ls-dv-dropdown-header",onClick:this.toggleDropdown},o("svg",{key:"73fe28420e88237e7dca0ff1e990be418e529733",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o("path",{key:"e884b1e78c02d9102b77efd0fdaa00dd71448647",d:"M4 0.5H6.5C8.433 0.5 10 2.067 10 4V6.5C10 8.433 8.433 10 6.5 10H4C2.067 10 0.5 8.433 0.5 6.5V4C0.5 2.067 2.067 0.5 4 0.5Z",fill:"#78A3FA",stroke:"#F7F8FA"}),o("path",{key:"1cb0c7f6e9a6bb0ad22621cfac7345dea91c9d65",d:"M13.5 0.5H16C17.933 0.5 19.5 2.067 19.5 4V6.5C19.5 8.433 17.933 10 16 10H13.5C11.567 10 10 8.433 10 6.5V4C10 2.067 11.567 0.5 13.5 0.5Z",fill:"#46DBAA",stroke:"#F7F8FA"}),o("path",{key:"c74320cbf5e50e87cca72ad6d135cc7a99b1ba6d",d:"M4 10H6.5C8.433 10 10 11.567 10 13.5V16C10 17.933 8.433 19.5 6.5 19.5H4C2.067 19.5 0.5 17.933 0.5 16V13.5C0.5 11.567 2.067 10 4 10Z",fill:"#FAD232",stroke:"#F7F8FA"}),o("path",{key:"74913d07b5f11b7dd7669efbd3284e2eefd1cb4d",d:"M14.75 12.125V14.75M14.75 14.75V17.375M14.75 14.75H17.375M14.75 14.75L12.125 14.75",stroke:"#939599","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})),o("p",{key:"c9a5c9b1d8808c24dcc614b6584fd4399054afde",class:"ls-dv-placing-fields-text"},i.t("toolbar.placingfieldsfor")),o("div",{key:"0c58f6ff4feb2ddf44778bdaca385d53660362e3",class:"ls-dv-selected-role-label",style:{background:d[this.selectedRole?.signerIndex%100].s20,color:d[this.selectedRole?.signerIndex%100].s80}},o("ls-icon",{key:"8af2f54850247a878253cd2105dac4b1484dc96d",size:18,name:this.selectedRole?.roleType==="SENDER"?"user-icon":this.selectedRole?.roleType==="APPROVER"?"check-circle-icon":this.selectedRole?.roleType==="WITNESS"?"eye-icon":"signature-icon"}),o("span",{key:"e3ade3474ba29cfe257cbee99065dc74996c6cbb",class:"ls-dv-selected-role-text"},this.selectedRole.name||(this.selectedRole.roleType==="WITNESS"?i.t("participants.witness"):i.t("participants.participant",{index:this.selectedRole.signerIndex})))),o("button",{key:"698f4a6035e1fd72fb993c9cce891edf21259de3",class:"ls-dv-tertiary-grey ls-dv-expand-button","aria-haspopup":"listbox","aria-expanded":this.isOpen},o("ls-icon",{key:"2451fded4de2e2868a7e3ca89764d20bf4083937",name:"chevron-down-icon"}))),this.isOpen&&o("div",{key:"fc21d552dd6c70a1a54c97c5c382a08189adab97",class:"ls-dv-dropdown-list"},o("div",{key:"65d7087b4088105fca50682c41918b52af11ff64",class:"ls-dv-dropdown-list-items"},o("div",{key:"75efae7706fcbd202c0d77e722e19a6be9a6b921",class:this.selectedRole?.signerIndex===0?"ls-dv-dropdown-item ls-dv-selected":"ls-dv-dropdown-item",style:{"--background-selected":d[0].s10,"--check-icon-selected":d[0].s50},onClick:()=>this.selectRole({signerIndex:0,name:i.t("toolbar.sender"),roleType:"SENDER"}),onMouseEnter:e=>e.currentTarget.querySelector(".ls-dv-check-icon")?.setAttribute("name","check-circle-icon"),onMouseLeave:e=>e.currentTarget.querySelector(".ls-dv-check-icon")?.setAttribute("name",this.selectedRole?.signerIndex!==0?"base-circle-icon":"check-circle-icon")},o("div",{key:"0f8b0e690ff5411855fe62fe83f01c94d53e99fc",class:"ls-dv-role-icon",style:{background:d[0].s50,color:d[0].s80}},o("ls-icon",{key:"646640b0e4ddea9b1e17435686e906b094a5db10",name:"user-icon"})),o("div",{key:"39b9fe8b03f980aa7913b7e64d47175a6aa038a9",class:"ls-dv-role-text"},o("p",{key:"fd78c5344763b05dacef93a56ea34d04f62bf8d6",class:"ls-dv-role-name",style:{"--role-name-selected":d[0].s80}},i.t("toolbar.sender")),o("p",{key:"94c73d0c01d8fb6cecb79ef930255ad2dc24dc11",class:"ls-dv-role-type",style:{"--role-type-selected":d[0].s80}},i.t("toolbar.you"))),o("ls-icon",{key:"1dd3d3e67e6f0f9f608c7d8c2699657e0e7cddd1",class:"ls-dv-check-icon",name:this.selectedRole?.signerIndex===0?"check-circle-icon":"base-circle-icon",solid:this.selectedRole?.signerIndex===0})),this.roles.map((e=>o("div",{class:e.signerIndex===this.selectedRole?.signerIndex?"ls-dv-dropdown-item ls-dv-selected":"ls-dv-dropdown-item",style:{"--background-selected":d[e?.signerIndex%100].s10,"--check-icon-selected":d[e?.signerIndex%100].s50},onClick:()=>this.selectRole(e),onMouseEnter:e=>e.currentTarget.querySelector(".ls-dv-check-icon")?.setAttribute("name","check-circle-icon"),onMouseLeave:t=>t.currentTarget.querySelector(".ls-dv-check-icon")?.setAttribute("name",e.signerIndex!==this.selectedRole?.signerIndex?"base-circle-icon":"check-circle-icon")},o("div",{class:"ls-dv-role-icon",style:{background:e.signerIndex>100?d[e?.signerIndex%100].s30:d[e?.signerIndex%100].s40,color:d[e?.signerIndex%100].s90}},o("ls-icon",{name:e.roleType==="WITNESS"?"eye-icon":e.roleType==="APPROVER"?"check-circle-icon":"signature-icon"})),o("div",{class:"ls-dv-role-text"},o("p",{class:"ls-dv-role-name",style:{"--role-name-selected":d[e?.signerIndex%100].s100},"data-tooltip-id":"ls-dv-select-tooltip","data-tooltip-html":`<span style="white-space:normal;word-break:break-word">${e.name||(e.signerIndex>100?i.t("participants.participantwitness",{index:e.signerIndex-100}):i.t("participants.participant",{index:e.signerIndex}))}</span>`,onMouseEnter:e=>{const t=e.currentTarget;if(t.scrollWidth<=t.clientWidth){t.removeAttribute("data-tooltip-html")}}},e.name||(e.signerIndex>100?i.t("participants.participantwitness",{index:e.signerIndex-100}):i.t("participants.participant",{index:e.signerIndex}))),o("p",{class:"ls-dv-role-type",style:{"--role-type-selected":d[e?.signerIndex%100].s80}},e.roleType==="WITNESS"?i.t("participants.witness"):e.roleType==="APPROVER"?i.t("participants.approver"):i.t("participants.signer"))),o("ls-icon",{class:"ls-dv-check-icon",name:e.signerIndex===this.selectedRole?.signerIndex?"check-circle-icon":"base-circle-icon",solid:e.signerIndex===this.selectedRole?.signerIndex})))),this.isAddingParticipant&&o("div",{key:"2b3176e22a07593b05b39e8e31ca65b7079d1cf5",class:"ls-dv-dropdown-item ls-dv-skeleton-item"},o("div",{key:"456bafaffc739ce3d0202685a75756eaae2e3640",class:"ls-dv-skeleton-circle"}),o("div",{key:"222332e1b35357b04354eafb7e75cee128baeb54",class:"ls-dv-role-text"},o("div",{key:"5187461fc1a26e731b12cd4ec26cbfeec799484b",class:"ls-dv-skeleton-line ls-dv-skeleton-line-name"}),o("div",{key:"37ad70561685143c5c4da568be50816a46243292",class:"ls-dv-skeleton-line ls-dv-skeleton-line-type"})),o("ls-loading",{key:"d1630dbc4d81c5e1d69cc899b2140bda489714d9"}))),o("button",{key:"4c7bf6571f797d8a8ba281c215408d957b6ecc5d",onClick:()=>this.createHandler(),class:"ls-dv-add-participant-row",style:{"--background-selected":d[1].s10,"--check-icon-selected":d[1].s50},disabled:this.isAddingParticipant},o("div",{key:"e9e5c62e05596c8caf61f87181a43bbb7642281e",class:"ls-dv-add-participant-icon"},o("ls-icon",{key:"a78ce863d87e147673a6a4a72ad436605b578a8e",name:"user-add-icon"})),o("div",{key:"de8127d969f8e3e6b6492168ec0e9168362edb13",class:"ls-dv-role-text"},o("p",{key:"efc07c9c0a0c503080363cfbe22ba87b8c0bd6a4",class:"ls-dv-role-name"},i.t("participants.addparticipant")),o("p",{key:"660a50862d88ab40fe40c59ed3930cb21d18fa83",class:"ls-dv-role-type"},i.t("toolbar.addnewsigner"))),o("ls-icon",{key:"2f644fd360b284ba938cd8e8276293358bf5d10e",class:"ls-dv-plus-icon",name:"plus-icon"})))),o("ls-tooltip",{key:"e740ed1a6be56df49529df675e80d02bf47f9b2d",tooltipId:"ls-dv-select-tooltip"}),o("slot",{key:"7d34400e9104c5aa2fe7408144bec5ae84405b2f"}))}static get watchers(){return{signer:["handleSignerChange"],roles:["handleRoleLoad"]}}};s.style=n();export{c as ls_field_format,s as ls_participant_select};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as e,c as t,a,h as o,H as r}from"./p-CItPoq74.js";import{d as i}from"./p-Al32p_JM.js";import{d}from"./p-CwCWCxsI.js";const l=()=>`:host{display:flex;flex-direction:row}.ls-dv-field-format-bar{display:flex;flex-direction:row;gap:0.5rem}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;min-width:fit-content}.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}.ls-dv-has-trailing-icon{padding-right:2rem}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=number]{width:max-content;max-width:3rem}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 button.ls-dv-active{background:var(--primary-10, #eff4ff);color:var(--primary-60, #4456f6);cursor:default;pointer-events:none}.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)}`;const c=class{constructor(a){e(this,a);this.mutate=t(this,"mutate",7)}dataItem;mutate;get component(){return a(this)}fontSizes=[6,8,10,12,14,16,18,20,24,28,32,36,64,72,124];selectFieldsHandler(){if(this.dataItem.length>0){var e=this.component.shadowRoot.getElementById("ls-toolbar-font-select");if(e)e.value=this.allElementsSame()?.fontName;var t=this.component.shadowRoot.getElementById("ls-toolbar-font-size");if(t)t.value=this.allElementsSame()?.fontSize?.toString()}}alter(e){console.log(e);const t=this.dataItem.map((t=>({action:"update",data:{...t,...e}})));this.dataItem=t.map((e=>e.data));this.mutate.emit(t)}componentDidLoad(){}allElementsSame=()=>{if(!this.dataItem||this.dataItem.length===0)return;const e=this.dataItem[0].fontName;const t=this.dataItem.every((t=>t.fontName===e));const a=this.dataItem[0].fontSize;const o=this.dataItem.every((e=>e.fontSize===a));const r=this.dataItem[0].align||"left";const i=this.dataItem.every((e=>(e.align||"left")===r));return{isSame:t&&o,fontName:t?e:"mixed",fontSize:o?a:"mixed",align:i?r:"mixed"}};render(){return o(r,{key:"67f8db275fa6516f07620f0df259906e9d8ae470"},this.dataItem&&this.dataItem.length>1&&o("div",{key:"3ce7162ceaf8a026e4a7241ef40dfead41a5b1c1",class:"ls-dv-field-format-bar"},o("div",{key:"f30f132d45c15ba7f68ef2c8783dfa28c15141cf",class:"ls-dv-input-wrapper","data-tooltip-id":"ls-dv-tooltip","data-tooltip-content":i.t("format.fontfamily")},o("ls-icon",{key:"08c73e77c38361bc2d37ef15c3e06cf813618961",id:"selectLeadingIcon",name:"typeface-icon"}),o("select",{key:"018191b86e12770767a551688aeeecbdbe51a4e2",id:"ls-toolbar-font-select",onChange:e=>{this.alter({fontName:e.target.value})},class:"ls-dv-has-leading-icon ls-dv-has-trailing-icon"},o("option",{key:"93b0f9b75f41876d63a1d622ca94b9b5e9dfa908",disabled:true,selected:this.allElementsSame()?.fontName==="mixed",value:"mixed"},i.t("fieldproperties.mixed")),o("option",{key:"e9faa9dfaf3ff75a3ce510e64419ac093acccd25",value:"arial"},"Arial"),o("option",{key:"7b280f5f8efc88446af24e97b711516ac4008be1",value:"liberation"},"Liberation Sans"),o("option",{key:"18c03b38a08bfee4e046a38761c3483aec71a77b",value:"courier"},"Courier"),o("option",{key:"e7072bfff3ada9f0024313e3f43d0245c6079b28",value:"helvetica"},"Helvetica"),o("option",{key:"439c95cc62ea7c161959a374298c9d47a8204546",value:"verdana"},"Verdana")),o("ls-icon",{key:"95baaab584a60fc85d280c15f3bd9c78b0622e58",id:"selectorIcon",name:"selector-icon"})),o("div",{key:"9bbda6ae453b07da37cdaeebb964ade7803254bf",class:"ls-dv-input-wrapper","data-tooltip-id":"ls-dv-tooltip","data-tooltip-content":i.t("format.fontsize")},o("ls-icon",{key:"46c03f524378b946e6f32ce82e525f08fa92ab1a",id:"selectLeadingIcon",name:"text-size-icon"}),o("select",{key:"3dd39f77e2aaab4caad2de89bc6a5f703e2e312a",id:"ls-toolbar-font-size",onChange:e=>{this.alter({fontSize:parseInt(e.target.value)});e.target.blur()},class:"ls-dv-has-leading-icon ls-dv-has-trailing-icon"},o("option",{key:"f89b1abc0a8bd45e109cd5ba6d4d121e7e639d63",disabled:true,selected:this.allElementsSame()?.fontSize==="mixed",value:"mixed"},i.t("fieldproperties.mixed")),this.fontSizes.map((e=>o("option",{value:e,selected:this.allElementsSame()?.fontSize===e},e)))),o("ls-icon",{key:"a37b3ecdff064a154bce9b4c0bf249c2009a1c0e",id:"selectorIcon",name:"selector-icon"})),o("div",{key:"28f5d1dde6f30624f2ebc0175bfeea629732cdcb",class:"ls-dv-button-group"},o("button",{key:"64ef281302a4218328cd8887c52bbc850629425c",class:{"ls-dv-active":this.allElementsSame()?.align==="left"},onClick:()=>{this.alter({align:"left"})},"data-tooltip-id":"ls-dv-tooltip","data-tooltip-content":i.t("format.aligntextleft")},o("ls-icon",{key:"985ea95bf99b920e8671847c9bf50533c294498c",name:"menu-alt-2-icon"})),o("button",{key:"835b802969be4c4d68db935d1e7c96a6754b2d15",class:{"ls-dv-active":this.allElementsSame()?.align==="center"},onClick:()=>{this.alter({align:"center"})},"data-tooltip-id":"ls-dv-tooltip","data-tooltip-content":i.t("format.aligntextcenter")},o("ls-icon",{key:"7a549d92ec713eead0a40144a0a0e9073d51fbaf",name:"menu-alt-5-icon"})),o("button",{key:"161d87c93f040f2a0dcf7736346d24be594d58f9",class:{"ls-dv-active":this.allElementsSame()?.align==="right"},onClick:()=>{this.alter({align:"right"})},"data-tooltip-id":"ls-dv-tooltip","data-tooltip-content":i.t("format.aligntextright")},o("ls-icon",{key:"e0f846262279b2c0dc2424aa9c8f101cfcfee1b9",name:"menu-alt-3-icon"})))),this.dataItem&&this.dataItem.length===1&&o("div",{key:"9d3b885f45d74ccfe58c5fd6c6b6899d16d21c1d",class:"ls-dv-field-format-bar"},o("div",{key:"8786b8c864cab4f984a5b93d53f698c66e94a3bc",class:"ls-dv-input-wrapper","data-tooltip-id":"ls-dv-tooltip","data-tooltip-content":i.t("format.fontfamily")},o("ls-icon",{key:"585579e38e58636f437d6411825f80f994a1a21b",id:"selectorIcon",name:"selector-icon"}),o("ls-icon",{key:"507c013a74531a6b52c4624b828e5e70d53270ad",id:"selectLeadingIcon",name:"typeface-icon"}),o("select",{key:"3878862175dbd05a7f65f40c918e3282e824558d",id:"ls-toolbar-font-select",onChange:e=>{this.alter({fontName:e.target.value})},class:"ls-dv-has-leading-icon ls-dv-has-trailing-icon"},o("option",{key:"6b57efb90ef6a3b2ba2d13d5f714b6a1523e41d1",value:"arial"},"Arial"),o("option",{key:"95e762ed828bc06aec4967109326989bc860172c",value:"liberation"},"Liberation Sans"),o("option",{key:"42c6cd2a625aa96276ef080133c59069d692458c",value:"courier"},"Courier"),o("option",{key:"a70cf28e4ae339be15695fb1ac318504addb1668",value:"helvetica"},"Helvetica"),o("option",{key:"a74abcdacc483826d83ea75279ab54b2182906ce",value:"verdana"},"Verdana"))),o("div",{key:"6d86948ef41adaa0669fc8f509a0f10f69d8acf7",class:"ls-dv-input-wrapper","data-tooltip-id":"ls-dv-tooltip","data-tooltip-content":i.t("format.fontsize")},o("ls-icon",{key:"2e207b573f445015d4abebec892f66ca80301299",id:"selectLeadingIcon",name:"text-size-icon"}),o("select",{key:"10de2be7b36eaf872f06641411ba73fb64f7e377",id:"ls-toolbar-font-size",onChange:e=>{this.alter({fontSize:parseInt(e.target.value)});e.target.blur()},class:"ls-dv-has-leading-icon ls-dv-has-trailing-icon"},this.fontSizes.map((e=>o("option",{value:e,selected:this.dataItem[0].fontSize===e},e)))),o("ls-icon",{key:"071e07610b965de760746c14cc28f629f697ea04",id:"selectorIcon",name:"selector-icon"})),o("div",{key:"4451f71ae8da401631636b6fda37aa6e3d921e8d",class:"ls-dv-button-group"},o("button",{key:"b890d5ec32ec0986a5728823e92cfd186f69ca3f",class:{"ls-dv-active":this.dataItem[0].align==="left"||!this.dataItem[0].align},onClick:()=>{this.alter({align:"left"})},"data-tooltip-id":"ls-dv-tooltip","data-tooltip-content":i.t("format.aligntextleft")},o("ls-icon",{key:"d88930fd3e0f1ec3493c520a749f7f3ab517d700",name:"menu-alt-2-icon"})),o("button",{key:"69607fbf8ddfb0e01d5c8a9c730d2175ebed8095",class:{"ls-dv-active":this.dataItem[0].align==="center"},onClick:()=>{this.alter({align:"center"})},"data-tooltip-id":"ls-dv-tooltip","data-tooltip-content":i.t("format.aligntextcenter")},o("ls-icon",{key:"a238a5647c131c1a640e9fb54bcbfc3e58da392a",name:"menu-alt-5-icon"})),o("button",{key:"edcfbf372e19a5a3f6d2aacf94f79645d38c0216",class:{"ls-dv-active":this.dataItem[0].align==="right"},onClick:()=>{this.alter({align:"right"})},"data-tooltip-id":"ls-dv-tooltip","data-tooltip-content":i.t("format.aligntextright")},o("ls-icon",{key:"4fc79e1f1befbce488049d47d420a70c09447832",name:"menu-alt-3-icon"})))),o("ls-tooltip",{key:"649cfe25ea3da1e2605b28c13ca304f9f2865aa0",tooltipId:"ls-dv-tooltip"}))}static get watchers(){return{dataItem:["selectFieldsHandler"]}}};c.style=l();const n=()=>`:host{display:inline-block}*{margin:0}.ls-dv-dropdown{display:flex;align-items:center;position:relative}.ls-dv-dropdown-header{border-radius:0.75rem;border:1px solid var(--gray-20, #edeff2);background:var(--gray-10, #f7f8fa);display:flex;padding:0.125rem 0.125rem 0.125rem 0.5rem;align-items:center;gap:0.5rem}.ls-dv-placing-fields-text{color:var(--gray-90, #5e6066);text-align:center;font-size:0.875rem;font-style:normal;font-weight:500;margin:0}.ls-dv-selected-role-label{display:flex;padding:0.125rem 0.375rem;align-items:center;gap:0.25rem;border-radius:0.25rem;font-size:0.875rem;font-style:normal;font-weight:500;line-height:1.25rem;max-width:10rem}.ls-dv-selected-role-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ls-dv-dropdown-list{position:absolute;top:3rem;left:50%;transform:translateX(-50%);display:flex;width:18.5625rem;padding:0.25rem;flex-direction:column;gap:0.25rem;border-radius:1rem;border:1px solid var(--gray-30, #e0e2e5);background:white;box-shadow:0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);max-height:40vh}.ls-dv-dropdown-list-items{display:flex;flex-direction:column;gap:0.25rem;overflow-y:auto;min-height:0}.ls-dv-dropdown-item{display:flex;padding:0.5rem 0.875rem 0.5rem 0.5rem;align-items:center;gap:0.75rem;align-self:stretch;border-radius:0.75rem}.ls-dv-dropdown-item.ls-dv-selected,.ls-dv-dropdown-item.ls-dv-selected:hover{background:var(--background-selected, #e0e2e5)}.ls-dv-dropdown-item:hover{background:var(--gray-10, #f7f8fa)}.ls-dv-skeleton-item{pointer-events:none;color:var(--primary-50, #5185ff)}.ls-dv-skeleton-circle{width:2.25rem !important;height:2.25rem !important;flex-shrink:0;border-radius:0.625rem;background:var(--gray-20, #edeff2);animation:pulse 1.2s ease-in-out infinite}.ls-dv-skeleton-line{border-radius:0.25rem;background:var(--gray-20, #edeff2);animation:pulse 1.2s ease-in-out infinite}.ls-dv-skeleton-line-name{width:6rem;height:0.75rem;margin-bottom:0.25rem}.ls-dv-skeleton-line-type{width:3rem;height:0.625rem}@keyframes pulse{0%,100%{opacity:1}50%{opacity:0.4}}.ls-dv-add-participant-row{all:unset;flex-shrink:0;display:flex;padding:0.5rem 0.875rem 0.5rem 0.5rem;align-items:center;gap:0.75rem;align-self:stretch;border-radius:0.75rem;border:1px dashed var(--gray-30, #e0e2e5);cursor:pointer}.ls-dv-add-participant-row:hover{background:var(--gray-10, #f7f8fa)}.ls-dv-add-participant-row:disabled{cursor:not-allowed;background:var(--gray-10, #f7f8fa);opacity:0.5}.ls-dv-plus-icon{color:var(--gray-40, #d8d9dc)}.ls-dv-role-icon{display:flex;padding:0.5rem;border-radius:0.625rem}.ls-dv-add-participant-icon{display:flex;padding:0.5rem;border-radius:0.625rem;color:white;background:var(--primary-60, #4456f6)}.ls-dv-role-text{display:flex;flex-direction:column;width:100%;min-width:0}.ls-dv-dropdown-item .ls-dv-check-icon{color:var(--gray-40, #d8d9dc)}.ls-dv-dropdown-item.ls-dv-selected .ls-dv-check-icon{color:var(--check-icon-selected)}.ls-dv-role-name{color:var(--gray-100, #45484d);font-size:0.75rem;font-style:normal;font-weight:500;line-height:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ls-dv-role-type{color:var(--gray-80, #6f7176);font-size:0.75rem;font-style:normal;font-weight:400;line-height:1rem;}.ls-dv-dropdown-item.ls-dv-selected .ls-dv-role-name{color:var(--role-name-selected)}.ls-dv-dropdown-item.ls-dv-selected .ls-dv-role-type{color:var(--role-type-selected)}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)}.ls-dv-expand-button{border:0;cursor:pointer;display:inline-flex;align-items:center;border-radius:0.625rem;justify-content:center;text-transform:capitalize;min-height:2rem;min-width:2rem;max-height:2rem;max-width:2rem}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)}`;const s=class{constructor(a){e(this,a);this.roleChange=t(this,"roleChange",7);this.addParticipant=t(this,"addParticipant",7)}get el(){return a(this)}selected;signer;selectedRole={signerIndex:1,name:"",roleType:"SIGNER",default:true};handleSignerChange(e){this.syncSelectedRole(e)}scrollToBottom=false;isAddingParticipant=false;handleRoleLoad(){this.syncSelectedRole(this.signer);if(this.scrollToBottom){this.scrollToBottom=false;this.isAddingParticipant=false;requestAnimationFrame((()=>{const e=this.el.shadowRoot?.querySelector(".ls-dv-dropdown-list-items");if(e)e.scrollTo({top:e.scrollHeight,behavior:"smooth"})}))}}componentWillLoad(){this.syncSelectedRole(this.signer)}syncSelectedRole(e){if(e===0){this.selectedRole={signerIndex:0,name:"Sender",roleType:"SENDER",default:false}}else if(this.roles?.length>0){const t=this.roles.find((t=>t.signerIndex===e));if(t){this.selectedRole={...t,default:false}}}}roles=[];isOpen=false;handleWindowClick(e){if(this.isOpen&&!this.el.shadowRoot.contains(e.composedPath()[0])){this.isOpen=false}}toggleDropdown=()=>{this.isOpen=!this.isOpen};roleChange;addParticipant;selectRole(e){this.selectedRole={...e,default:false};this.isOpen=false;this.roleChange.emit(e.signerIndex)}createHandler(){this.scrollToBottom=true;this.isAddingParticipant=true;this.addParticipant.emit({type:"SIGNER"});requestAnimationFrame((()=>{const e=this.el.shadowRoot?.querySelector(".ls-dv-dropdown-list-items");if(e)e.scrollTo({top:e.scrollHeight,behavior:"smooth"})}))}render(){return o(r,{key:"1f7abd769fc60bb3cdedd73be4366f32a3475b00"},o("div",{key:"c62e40e5402eb611b8c0c5e04b127aed949886dd",class:"ls-dv-dropdown"},o("div",{key:"2cabd0b74685028770262b1598359897f52bc94b",class:"ls-dv-dropdown-header",onClick:this.toggleDropdown},o("svg",{key:"e2e3359fc70d418cd2a0ca7ed9b0a7f672ddc1a7",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o("path",{key:"c66d17776220d6be4ba94dba2194d26ddeee473a",d:"M4 0.5H6.5C8.433 0.5 10 2.067 10 4V6.5C10 8.433 8.433 10 6.5 10H4C2.067 10 0.5 8.433 0.5 6.5V4C0.5 2.067 2.067 0.5 4 0.5Z",fill:"#78A3FA",stroke:"#F7F8FA"}),o("path",{key:"6c947b99109d08de58bdd140938cdaf15d24f668",d:"M13.5 0.5H16C17.933 0.5 19.5 2.067 19.5 4V6.5C19.5 8.433 17.933 10 16 10H13.5C11.567 10 10 8.433 10 6.5V4C10 2.067 11.567 0.5 13.5 0.5Z",fill:"#46DBAA",stroke:"#F7F8FA"}),o("path",{key:"b35e19f4425e9e44a8ecd549000f9995923e3d1f",d:"M4 10H6.5C8.433 10 10 11.567 10 13.5V16C10 17.933 8.433 19.5 6.5 19.5H4C2.067 19.5 0.5 17.933 0.5 16V13.5C0.5 11.567 2.067 10 4 10Z",fill:"#FAD232",stroke:"#F7F8FA"}),o("path",{key:"a35039be6054810c6367318e8e5cbf07b3ca9410",d:"M14.75 12.125V14.75M14.75 14.75V17.375M14.75 14.75H17.375M14.75 14.75L12.125 14.75",stroke:"#939599","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})),o("p",{key:"544e3f471402fffa6e92b12c80a87f34312bc1c7",class:"ls-dv-placing-fields-text"},i.t("toolbar.placingfieldsfor")),o("div",{key:"83781a4fe2f9082e9152347521bb3d6a1dd0d7f4",class:"ls-dv-selected-role-label",style:{background:d[this.selectedRole?.signerIndex%100].s20,color:d[this.selectedRole?.signerIndex%100].s80}},o("ls-icon",{key:"9c10df8cc9b3ff9e0373838ef0151e5d157848d2",size:18,name:this.selectedRole?.roleType==="SENDER"?"user-icon":this.selectedRole?.roleType==="APPROVER"?"check-circle-icon":this.selectedRole?.roleType==="WITNESS"?"eye-icon":"signature-icon"}),o("span",{key:"6e10b4259ceaef47d145a9cb2b8cccc2aca6406a",class:"ls-dv-selected-role-text"},this.selectedRole.name||(this.selectedRole.roleType==="WITNESS"?i.t("participants.witness"):i.t("participants.participant",{index:this.selectedRole.signerIndex})))),o("button",{key:"a6d4fb0c922fa49a15c11befaa07e4d020df0540",class:"ls-dv-tertiary-grey ls-dv-expand-button","aria-haspopup":"listbox","aria-expanded":this.isOpen},o("ls-icon",{key:"ffc56d6839f713f1f777fc69dce34c832913de2c",name:"chevron-down-icon"}))),this.isOpen&&o("div",{key:"542e7cdbf7217c697e699754ce068b428fee5107",class:"ls-dv-dropdown-list"},o("div",{key:"184dcab63acaffee0e68d891b29142444bef9718",class:"ls-dv-dropdown-list-items"},o("div",{key:"79dcb9b9456dea4b3421b2c973828ad8ab1e1c51",class:this.selectedRole?.signerIndex===0?"ls-dv-dropdown-item ls-dv-selected":"ls-dv-dropdown-item",style:{"--background-selected":d[0].s10,"--check-icon-selected":d[0].s50},onClick:()=>this.selectRole({signerIndex:0,name:i.t("toolbar.sender"),roleType:"SENDER"}),onMouseEnter:e=>e.currentTarget.querySelector(".ls-dv-check-icon")?.setAttribute("name","check-circle-icon"),onMouseLeave:e=>e.currentTarget.querySelector(".ls-dv-check-icon")?.setAttribute("name",this.selectedRole?.signerIndex!==0?"base-circle-icon":"check-circle-icon")},o("div",{key:"1967041e887eae610dbff3a145a9b7f5e4915137",class:"ls-dv-role-icon",style:{background:d[0].s50,color:d[0].s80}},o("ls-icon",{key:"bb1871c31c6f4d33e6c733696ba972474cd46f2e",name:"user-icon"})),o("div",{key:"00b472fb20d65cd4d5e2a6269d18352fae23c264",class:"ls-dv-role-text"},o("p",{key:"61132277f7ab99a62e8f06ac7988c30982f5f18f",class:"ls-dv-role-name",style:{"--role-name-selected":d[0].s80}},i.t("toolbar.sender")),o("p",{key:"dca8ed5b354a555ed89f299509f6876d2e396225",class:"ls-dv-role-type",style:{"--role-type-selected":d[0].s80}},i.t("toolbar.you"))),o("ls-icon",{key:"d5eb4a6d9d01ba5182b690d65602b08467edcfd1",class:"ls-dv-check-icon",name:this.selectedRole?.signerIndex===0?"check-circle-icon":"base-circle-icon",solid:this.selectedRole?.signerIndex===0})),this.roles.map((e=>o("div",{class:e.signerIndex===this.selectedRole?.signerIndex?"ls-dv-dropdown-item ls-dv-selected":"ls-dv-dropdown-item",style:{"--background-selected":d[e?.signerIndex%100].s10,"--check-icon-selected":d[e?.signerIndex%100].s50},onClick:()=>this.selectRole(e),onMouseEnter:e=>e.currentTarget.querySelector(".ls-dv-check-icon")?.setAttribute("name","check-circle-icon"),onMouseLeave:t=>t.currentTarget.querySelector(".ls-dv-check-icon")?.setAttribute("name",e.signerIndex!==this.selectedRole?.signerIndex?"base-circle-icon":"check-circle-icon")},o("div",{class:"ls-dv-role-icon",style:{background:e.signerIndex>100?d[e?.signerIndex%100].s30:d[e?.signerIndex%100].s40,color:d[e?.signerIndex%100].s90}},o("ls-icon",{name:e.roleType==="WITNESS"?"eye-icon":e.roleType==="APPROVER"?"check-circle-icon":"signature-icon"})),o("div",{class:"ls-dv-role-text"},o("p",{class:"ls-dv-role-name",style:{"--role-name-selected":d[e?.signerIndex%100].s100},"data-tooltip-id":"ls-dv-select-tooltip","data-tooltip-html":`<span style="white-space:normal;word-break:break-word">${e.name||(e.signerIndex>100?i.t("participants.participantwitness",{index:e.signerIndex-100}):i.t("participants.participant",{index:e.signerIndex}))}</span>`,onMouseEnter:e=>{const t=e.currentTarget;if(t.scrollWidth<=t.clientWidth){t.removeAttribute("data-tooltip-html")}}},e.name||(e.signerIndex>100?i.t("participants.participantwitness",{index:e.signerIndex-100}):i.t("participants.participant",{index:e.signerIndex}))),o("p",{class:"ls-dv-role-type",style:{"--role-type-selected":d[e?.signerIndex%100].s80}},e.roleType==="WITNESS"?i.t("participants.witness"):e.roleType==="APPROVER"?i.t("participants.approver"):i.t("participants.signer"))),o("ls-icon",{class:"ls-dv-check-icon",name:e.signerIndex===this.selectedRole?.signerIndex?"check-circle-icon":"base-circle-icon",solid:e.signerIndex===this.selectedRole?.signerIndex})))),this.isAddingParticipant&&o("div",{key:"cbdee837f31736c4f8e5d574f315474f36215cc5",class:"ls-dv-dropdown-item ls-dv-skeleton-item"},o("div",{key:"6de33dadf39cc5f550eb480f3ca58ffbeed4eade",class:"ls-dv-skeleton-circle"}),o("div",{key:"6c11ab68f18a66c47d8300af1153859334d88b17",class:"ls-dv-role-text"},o("div",{key:"89fecb4ebc5097af5578c594ce88c2500bf0ca85",class:"ls-dv-skeleton-line ls-dv-skeleton-line-name"}),o("div",{key:"e97f9132755743bf5dab4cec594c44f2e2ce17c2",class:"ls-dv-skeleton-line ls-dv-skeleton-line-type"})),o("ls-loading",{key:"d57ece494bbd8e05062f5766a7a320b01c2019ff"}))),o("button",{key:"2d01c96a0cfebb35c9131f0f95342de5ba7cc956",onClick:()=>this.createHandler(),class:"ls-dv-add-participant-row",style:{"--background-selected":d[1].s10,"--check-icon-selected":d[1].s50},disabled:this.isAddingParticipant},o("div",{key:"3823dc4a44a0a496710008d20618c91e06bc2dc6",class:"ls-dv-add-participant-icon"},o("ls-icon",{key:"b13d5981062cf5e150c6db34c64d538751fc9f41",name:"user-add-icon"})),o("div",{key:"993fe50f732ddd18c364cf58bce1b0491a4a2373",class:"ls-dv-role-text"},o("p",{key:"938aa668cc871cf907ee410278f2c7fef0f18ce9",class:"ls-dv-role-name"},i.t("participants.addparticipant")),o("p",{key:"ed579ccce4987552fb20191d80f8f97dbdfaa419",class:"ls-dv-role-type"},i.t("toolbar.addnewsigner"))),o("ls-icon",{key:"8e86ffba4298f2faa2c7abff5e6b15df3da60cd7",class:"ls-dv-plus-icon",name:"plus-icon"})))),o("ls-tooltip",{key:"ed547789e966697a2a0a17c7ddf1b30b4a7f49e5",tooltipId:"ls-dv-select-tooltip"}),o("slot",{key:"5569842e1871a2f0ab38d364aff12ae96d825cfb"}))}static get watchers(){return{signer:["handleSignerChange"],roles:["handleRoleLoad"]}}};s.style=n();export{c as ls_field_format,s as ls_participant_select};
|
|
2
|
+
//# sourceMappingURL=p-0bd91b5d.entry.js.map
|