@verdocs/web-sdk 5.0.13 → 5.0.14
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/Datastore-4448f6ef.js +2 -0
- package/dist/cjs/Datastore-4448f6ef.js.map +1 -0
- package/dist/cjs/Icons-9a6f2f7c.js +2 -0
- package/dist/cjs/Icons-9a6f2f7c.js.map +1 -0
- package/dist/cjs/Toast-d84d7bd3.js +2 -0
- package/dist/cjs/Toast-d84d7bd3.js.map +1 -0
- package/dist/cjs/Types-7a726ff3.js +2 -0
- package/dist/cjs/Types-7a726ff3.js.map +1 -0
- package/dist/cjs/_commonjsHelpers-e6ff1d6e.js +2 -0
- package/dist/cjs/_commonjsHelpers-e6ff1d6e.js.map +1 -0
- package/dist/cjs/app-globals-3a1e7e63.js +2 -0
- package/dist/cjs/app-globals-3a1e7e63.js.map +1 -0
- package/dist/cjs/errors-017fb835.js +2 -0
- package/dist/cjs/errors-017fb835.js.map +1 -0
- package/dist/cjs/format-dc0f3757.js +2 -0
- package/dist/cjs/format-dc0f3757.js.map +1 -0
- package/dist/cjs/index-ccac8641.js +2 -0
- package/dist/cjs/index-ccac8641.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/interact.min-e6956f8b.js +2 -0
- package/dist/cjs/interact.min-e6956f8b.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/popper-31badbf8.js +2 -0
- package/dist/cjs/popper-31badbf8.js.map +1 -0
- package/dist/cjs/utils-746daf30.js +2 -0
- package/dist/cjs/utils-746daf30.js.map +1 -0
- package/dist/cjs/verdocs-auth.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-auth.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-build.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-build.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-button-panel_2.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-button-panel_2.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-button_2.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-button_2.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-checkbox_6.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-checkbox_6.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-dialog.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-dialog.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-dropdown.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-dropdown.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-envelope-recipient-summary.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-envelope-recipient-summary.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-envelopes-list.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-field-attachment_13.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-field-payment.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-field-payment.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-kba-dialog_2.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-kba-dialog_2.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-menu-panel_2.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-menu-panel_2.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-ok-dialog.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-organization-card_2.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-organization-card_2.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-pagination_2.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-pagination_2.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-preview_6.cjs.entry.js +4 -1
- package/dist/cjs/verdocs-preview_6.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-quick-functions.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-quick-functions.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-radio-button.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-radio-button.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-search-box.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-search-box.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-search-tabs.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-search-tabs.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-sign.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-sign.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-spinner.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-spinner.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-status-indicator.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-status-indicator.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-table.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-table.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-template-card.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-template-card.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-template-create.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-template-create.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-template-star.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-template-star.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-template-tags.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-template-tags.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-templates-list.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-templates-list.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-toggle.cjs.entry.js +2 -0
- package/dist/cjs/verdocs-toggle.cjs.entry.js.map +1 -0
- package/dist/cjs/verdocs-web-sdk.cjs.js +2 -0
- package/dist/cjs/verdocs-web-sdk.cjs.js.map +1 -0
- package/dist/collection/components/controls/verdocs-button/verdocs-button.js +1 -0
- package/dist/collection/components/controls/verdocs-button/verdocs-button.js.map +1 -0
- package/dist/collection/components/controls/verdocs-button-panel/verdocs-button-panel.js +1 -0
- package/dist/collection/components/controls/verdocs-button-panel/verdocs-button-panel.js.map +1 -0
- package/dist/collection/components/controls/verdocs-checkbox/verdocs-checkbox.js +1 -0
- package/dist/collection/components/controls/verdocs-checkbox/verdocs-checkbox.js.map +1 -0
- package/dist/collection/components/controls/verdocs-component-error/verdocs-component-error.js +1 -0
- package/dist/collection/components/controls/verdocs-component-error/verdocs-component-error.js.map +1 -0
- package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.js +1 -0
- package/dist/collection/components/controls/verdocs-dropdown/verdocs-dropdown.js.map +1 -0
- package/dist/collection/components/controls/verdocs-file-chooser/verdocs-file-chooser.js +1 -0
- package/dist/collection/components/controls/verdocs-file-chooser/verdocs-file-chooser.js.map +1 -0
- package/dist/collection/components/controls/verdocs-help-icon/verdocs-help-icon.js +1 -0
- package/dist/collection/components/controls/verdocs-help-icon/verdocs-help-icon.js.map +1 -0
- package/dist/collection/components/controls/verdocs-loader/verdocs-loader.js +1 -0
- package/dist/collection/components/controls/verdocs-loader/verdocs-loader.js.map +1 -0
- package/dist/collection/components/controls/verdocs-menu-panel/verdocs-menu-panel.js +1 -0
- package/dist/collection/components/controls/verdocs-menu-panel/verdocs-menu-panel.js.map +1 -0
- package/dist/collection/components/controls/verdocs-organization-card/verdocs-organization-card.js +1 -0
- package/dist/collection/components/controls/verdocs-organization-card/verdocs-organization-card.js.map +1 -0
- package/dist/collection/components/controls/verdocs-pagination/verdocs-pagination.js +1 -0
- package/dist/collection/components/controls/verdocs-pagination/verdocs-pagination.js.map +1 -0
- package/dist/collection/components/controls/verdocs-portal/verdocs-portal.js +1 -0
- package/dist/collection/components/controls/verdocs-portal/verdocs-portal.js.map +1 -0
- package/dist/collection/components/controls/verdocs-progress-bar/verdocs-progress-bar.js +1 -0
- package/dist/collection/components/controls/verdocs-progress-bar/verdocs-progress-bar.js.map +1 -0
- package/dist/collection/components/controls/verdocs-quick-filter/verdocs-quick-filter.js +1 -0
- package/dist/collection/components/controls/verdocs-quick-filter/verdocs-quick-filter.js.map +1 -0
- package/dist/collection/components/controls/verdocs-radio-button/verdocs-radio-button.js +1 -0
- package/dist/collection/components/controls/verdocs-radio-button/verdocs-radio-button.js.map +1 -0
- package/dist/collection/components/controls/verdocs-select-input/verdocs-select-input.js +1 -0
- package/dist/collection/components/controls/verdocs-select-input/verdocs-select-input.js.map +1 -0
- package/dist/collection/components/controls/verdocs-spinner/verdocs-spinner.js +1 -0
- package/dist/collection/components/controls/verdocs-spinner/verdocs-spinner.js.map +1 -0
- package/dist/collection/components/controls/verdocs-switch/verdocs-switch.js +1 -0
- package/dist/collection/components/controls/verdocs-switch/verdocs-switch.js.map +1 -0
- package/dist/collection/components/controls/verdocs-table/verdocs-table.js +1 -0
- package/dist/collection/components/controls/verdocs-table/verdocs-table.js.map +1 -0
- package/dist/collection/components/controls/verdocs-tabs/verdocs-tabs.js +1 -0
- package/dist/collection/components/controls/verdocs-tabs/verdocs-tabs.js.map +1 -0
- package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.js +1 -0
- package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.js.map +1 -0
- package/dist/collection/components/controls/verdocs-toggle/verdocs-toggle.js +1 -0
- package/dist/collection/components/controls/verdocs-toggle/verdocs-toggle.js.map +1 -0
- package/dist/collection/components/controls/verdocs-toggle-button/verdocs-toggle-button.js +1 -0
- package/dist/collection/components/controls/verdocs-toggle-button/verdocs-toggle-button.js.map +1 -0
- package/dist/collection/components/controls/verdocs-toolbar-icon/verdocs-toolbar-icon.js +1 -0
- package/dist/collection/components/controls/verdocs-toolbar-icon/verdocs-toolbar-icon.js.map +1 -0
- package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.js +1 -0
- package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.js.map +1 -0
- package/dist/collection/components/dialogs/verdocs-initial-dialog/verdocs-initial-dialog.js +1 -0
- package/dist/collection/components/dialogs/verdocs-initial-dialog/verdocs-initial-dialog.js.map +1 -0
- package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.js +1 -0
- package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.js.map +1 -0
- package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js +1 -0
- package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.js.map +1 -0
- package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js +1 -0
- package/dist/collection/components/dialogs/verdocs-signature-dialog/verdocs-signature-dialog.js.map +1 -0
- package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.js +1 -0
- package/dist/collection/components/dialogs/verdocs-upload-dialog/verdocs-upload-dialog.js.map +1 -0
- package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +1 -0
- package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js.map +1 -0
- package/dist/collection/components/elements/verdocs-search-box/verdocs-search-box.js +1 -0
- package/dist/collection/components/elements/verdocs-search-box/verdocs-search-box.js.map +1 -0
- package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js +1 -0
- package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.js.map +1 -0
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +1 -0
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js.map +1 -0
- package/dist/collection/components/embeds/verdocs-build/verdocs-build.js +1 -0
- package/dist/collection/components/embeds/verdocs-build/verdocs-build.js.map +1 -0
- package/dist/collection/components/embeds/verdocs-preview/verdocs-preview.js +1 -0
- package/dist/collection/components/embeds/verdocs-preview/verdocs-preview.js.map +1 -0
- package/dist/collection/components/embeds/verdocs-send/role-flow.js +1 -0
- package/dist/collection/components/embeds/verdocs-send/role-flow.js.map +1 -0
- package/dist/collection/components/embeds/verdocs-send/verdocs-send.js +1 -0
- package/dist/collection/components/embeds/verdocs-send/verdocs-send.js.map +1 -0
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +1 -0
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -0
- package/dist/collection/components/embeds/verdocs-view/verdocs-view.js +1 -0
- package/dist/collection/components/embeds/verdocs-view/verdocs-view.js.map +1 -0
- package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js +1 -0
- package/dist/collection/components/envelopes/verdocs-contact-picker/verdocs-contact-picker.js.map +1 -0
- package/dist/collection/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.js +1 -0
- package/dist/collection/components/envelopes/verdocs-envelope-document-page/verdocs-envelope-document-page.js.map +1 -0
- package/dist/collection/components/envelopes/verdocs-envelope-recipient-link/verdocs-envelope-recipient-link.js +1 -0
- package/dist/collection/components/envelopes/verdocs-envelope-recipient-link/verdocs-envelope-recipient-link.js.map +1 -0
- package/dist/collection/components/envelopes/verdocs-envelope-recipient-summary/verdocs-envelope-recipient-summary.js +1 -0
- package/dist/collection/components/envelopes/verdocs-envelope-recipient-summary/verdocs-envelope-recipient-summary.js.map +1 -0
- package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js +1 -0
- package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.js.map +1 -0
- package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +1 -0
- package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js.map +1 -0
- package/dist/collection/components/envelopes/verdocs-status-indicator/recipient-flow.js +1 -0
- package/dist/collection/components/envelopes/verdocs-status-indicator/recipient-flow.js.map +1 -0
- package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js +1 -0
- package/dist/collection/components/envelopes/verdocs-status-indicator/verdocs-status-indicator.js.map +1 -0
- package/dist/collection/components/fields/verdocs-field-attachment/verdocs-field-attachment.js +1 -0
- package/dist/collection/components/fields/verdocs-field-attachment/verdocs-field-attachment.js.map +1 -0
- package/dist/collection/components/fields/verdocs-field-checkbox/verdocs-field-checkbox.js +1 -0
- package/dist/collection/components/fields/verdocs-field-checkbox/verdocs-field-checkbox.js.map +1 -0
- package/dist/collection/components/fields/verdocs-field-date/verdocs-field-date.js +1 -0
- package/dist/collection/components/fields/verdocs-field-date/verdocs-field-date.js.map +1 -0
- package/dist/collection/components/fields/verdocs-field-dropdown/verdocs-field-dropdown.js +1 -0
- package/dist/collection/components/fields/verdocs-field-dropdown/verdocs-field-dropdown.js.map +1 -0
- package/dist/collection/components/fields/verdocs-field-initial/verdocs-field-initial.js +1 -0
- package/dist/collection/components/fields/verdocs-field-initial/verdocs-field-initial.js.map +1 -0
- package/dist/collection/components/fields/verdocs-field-payment/verdocs-field-payment.js +1 -0
- package/dist/collection/components/fields/verdocs-field-payment/verdocs-field-payment.js.map +1 -0
- package/dist/collection/components/fields/verdocs-field-radio/verdocs-field-radio.js +1 -0
- package/dist/collection/components/fields/verdocs-field-radio/verdocs-field-radio.js.map +1 -0
- package/dist/collection/components/fields/verdocs-field-signature/verdocs-field-signature.js +1 -0
- package/dist/collection/components/fields/verdocs-field-signature/verdocs-field-signature.js.map +1 -0
- package/dist/collection/components/fields/verdocs-field-textarea/verdocs-field-textarea.js +1 -0
- package/dist/collection/components/fields/verdocs-field-textarea/verdocs-field-textarea.js.map +1 -0
- package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.js +1 -0
- package/dist/collection/components/fields/verdocs-field-textbox/verdocs-field-textbox.js.map +1 -0
- package/dist/collection/components/fields/verdocs-field-timestamp/verdocs-field-timestamp.js +1 -0
- package/dist/collection/components/fields/verdocs-field-timestamp/verdocs-field-timestamp.js.map +1 -0
- package/dist/collection/components/templates/verdocs-template-attachments/verdocs-template-attachments.js +1 -0
- package/dist/collection/components/templates/verdocs-template-attachments/verdocs-template-attachments.js.map +1 -0
- package/dist/collection/components/templates/verdocs-template-build-tabs/verdocs-template-build-tabs.js +1 -0
- package/dist/collection/components/templates/verdocs-template-build-tabs/verdocs-template-build-tabs.js.map +1 -0
- package/dist/collection/components/templates/verdocs-template-card/verdocs-template-card.js +1 -0
- package/dist/collection/components/templates/verdocs-template-card/verdocs-template-card.js.map +1 -0
- package/dist/collection/components/templates/verdocs-template-create/verdocs-template-create.js +1 -0
- package/dist/collection/components/templates/verdocs-template-create/verdocs-template-create.js.map +1 -0
- package/dist/collection/components/templates/verdocs-template-document-page/verdocs-template-document-page.js +1 -0
- package/dist/collection/components/templates/verdocs-template-document-page/verdocs-template-document-page.js.map +1 -0
- package/dist/collection/components/templates/verdocs-template-field-properties/verdocs-template-field-properties.js +1 -0
- package/dist/collection/components/templates/verdocs-template-field-properties/verdocs-template-field-properties.js.map +1 -0
- package/dist/collection/components/templates/verdocs-template-fields/verdocs-template-fields.js +1 -0
- package/dist/collection/components/templates/verdocs-template-fields/verdocs-template-fields.js.map +1 -0
- package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +1 -0
- package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js.map +1 -0
- package/dist/collection/components/templates/verdocs-template-roles/verdocs-template-roles.js +3 -1
- package/dist/collection/components/templates/verdocs-template-roles/verdocs-template-roles.js.map +1 -0
- package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js +1 -0
- package/dist/collection/components/templates/verdocs-template-star/verdocs-template-star.js.map +1 -0
- package/dist/collection/components/templates/verdocs-template-tags/verdocs-template-tags.js +1 -0
- package/dist/collection/components/templates/verdocs-template-tags/verdocs-template-tags.js.map +1 -0
- package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.js +1 -0
- package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.js.map +1 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/utils/Datastore.js +1 -0
- package/dist/collection/utils/Datastore.js.map +1 -0
- package/dist/collection/utils/Icons.js +1 -0
- package/dist/collection/utils/Icons.js.map +1 -0
- package/dist/collection/utils/Templates.js +1 -0
- package/dist/collection/utils/Templates.js.map +1 -0
- package/dist/collection/utils/Toast.js +1 -0
- package/dist/collection/utils/Toast.js.map +1 -0
- package/dist/collection/utils/Types.js +1 -0
- package/dist/collection/utils/Types.js.map +1 -0
- package/dist/collection/utils/errors.js +1 -0
- package/dist/collection/utils/errors.js.map +1 -0
- package/dist/collection/utils/utils.js +1 -0
- package/dist/collection/utils/utils.js.map +1 -0
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/p-022b87d3.js +2 -0
- package/dist/components/p-022b87d3.js.map +1 -0
- package/dist/components/p-04c07b7b.js +2 -0
- package/dist/components/p-04c07b7b.js.map +1 -0
- package/dist/components/p-070bebd7.js +2 -0
- package/dist/components/p-070bebd7.js.map +1 -0
- package/dist/components/p-0e332769.js +2 -0
- package/dist/components/p-0e332769.js.map +1 -0
- package/dist/components/p-0ed0ac8b.js +2 -0
- package/dist/components/p-0ed0ac8b.js.map +1 -0
- package/dist/components/p-12bab948.js +2 -0
- package/dist/components/p-12bab948.js.map +1 -0
- package/dist/components/p-14c80ae8.js +2 -0
- package/dist/components/p-14c80ae8.js.map +1 -0
- package/dist/components/p-176a07b2.js +2 -0
- package/dist/components/p-176a07b2.js.map +1 -0
- package/dist/components/p-1ae5d7e0.js +2 -0
- package/dist/components/p-1ae5d7e0.js.map +1 -0
- package/dist/components/p-211fa3e2.js +2 -0
- package/dist/components/p-211fa3e2.js.map +1 -0
- package/dist/components/p-22da6d14.js +2 -0
- package/dist/components/p-22da6d14.js.map +1 -0
- package/dist/components/p-261521bc.js +2 -0
- package/dist/components/p-261521bc.js.map +1 -0
- package/dist/components/p-27548ebd.js +2 -0
- package/dist/components/p-27548ebd.js.map +1 -0
- package/dist/components/p-2ddf4d5b.js +2 -0
- package/dist/components/p-2ddf4d5b.js.map +1 -0
- package/dist/components/p-2ef2d490.js +2 -0
- package/dist/components/p-2ef2d490.js.map +1 -0
- package/dist/components/p-314d698d.js +2 -0
- package/dist/components/p-314d698d.js.map +1 -0
- package/dist/components/p-3201d529.js +2 -0
- package/dist/components/p-3201d529.js.map +1 -0
- package/dist/components/p-324ed895.js +2 -0
- package/dist/components/p-324ed895.js.map +1 -0
- package/dist/components/p-325b3828.js +2 -0
- package/dist/components/p-325b3828.js.map +1 -0
- package/dist/components/p-41a75ad6.js +2 -0
- package/dist/components/p-41a75ad6.js.map +1 -0
- package/dist/components/p-44ae3c75.js +2 -0
- package/dist/components/p-44ae3c75.js.map +1 -0
- package/dist/components/p-4d3b9ee9.js +2 -0
- package/dist/components/p-4d3b9ee9.js.map +1 -0
- package/dist/components/p-4dd750e9.js +2 -0
- package/dist/components/p-4dd750e9.js.map +1 -0
- package/dist/components/p-5182136e.js +2 -0
- package/dist/components/p-5182136e.js.map +1 -0
- package/dist/components/{p-56e4effa.js → p-570895a8.js} +4 -1
- package/dist/components/p-570895a8.js.map +1 -0
- package/dist/components/p-58d027d1.js +2 -0
- package/dist/components/p-58d027d1.js.map +1 -0
- package/dist/components/p-5e378f0e.js +2 -0
- package/dist/components/p-5e378f0e.js.map +1 -0
- package/dist/components/p-62743fd3.js +2 -0
- package/dist/components/p-62743fd3.js.map +1 -0
- package/dist/components/p-6719b0d7.js +2 -0
- package/dist/components/p-6719b0d7.js.map +1 -0
- package/dist/components/p-68a5aaff.js +2 -0
- package/dist/components/p-68a5aaff.js.map +1 -0
- package/dist/components/p-6c4fe42c.js +2 -0
- package/dist/components/p-6c4fe42c.js.map +1 -0
- package/dist/components/p-6fcd99d1.js +2 -0
- package/dist/components/p-6fcd99d1.js.map +1 -0
- package/dist/components/p-7cd6c0ce.js +2 -0
- package/dist/components/p-7cd6c0ce.js.map +1 -0
- package/dist/components/p-7f32e087.js +2 -0
- package/dist/components/p-7f32e087.js.map +1 -0
- package/dist/components/p-84ae0283.js +2 -0
- package/dist/components/p-84ae0283.js.map +1 -0
- package/dist/components/p-85aa8e05.js +2 -0
- package/dist/components/p-85aa8e05.js.map +1 -0
- package/dist/components/p-9bcf9620.js +2 -0
- package/dist/components/p-9bcf9620.js.map +1 -0
- package/dist/components/p-9c0b30f8.js +2 -0
- package/dist/components/p-9c0b30f8.js.map +1 -0
- package/dist/components/p-9cfd8022.js +2 -0
- package/dist/components/p-9cfd8022.js.map +1 -0
- package/dist/components/p-9fb98ea2.js +2 -0
- package/dist/components/p-9fb98ea2.js.map +1 -0
- package/dist/components/p-a2f6d2c6.js +2 -0
- package/dist/components/p-a2f6d2c6.js.map +1 -0
- package/dist/components/p-a55f08ad.js +2 -0
- package/dist/components/p-a55f08ad.js.map +1 -0
- package/dist/components/p-a901dff2.js +2 -0
- package/dist/components/p-a901dff2.js.map +1 -0
- package/dist/components/p-adf1586f.js +2 -0
- package/dist/components/p-adf1586f.js.map +1 -0
- package/dist/components/p-af5ecc92.js +2 -0
- package/dist/components/p-af5ecc92.js.map +1 -0
- package/dist/components/p-b0766439.js +2 -0
- package/dist/components/p-b0766439.js.map +1 -0
- package/dist/components/p-b7d080eb.js +2 -0
- package/dist/components/p-b7d080eb.js.map +1 -0
- package/dist/components/p-b99b485b.js +2 -0
- package/dist/components/p-b99b485b.js.map +1 -0
- package/dist/components/p-be261487.js +2 -0
- package/dist/components/p-be261487.js.map +1 -0
- package/dist/components/p-c00770e6.js +2 -0
- package/dist/components/p-c00770e6.js.map +1 -0
- package/dist/components/p-c1159428.js +2 -0
- package/dist/components/p-c1159428.js.map +1 -0
- package/dist/components/p-c662e5f4.js +2 -0
- package/dist/components/p-c662e5f4.js.map +1 -0
- package/dist/components/p-c76fab71.js +2 -0
- package/dist/components/p-c76fab71.js.map +1 -0
- package/dist/components/p-c7ee88c7.js +2 -0
- package/dist/components/p-c7ee88c7.js.map +1 -0
- package/dist/components/p-cce871bf.js +2 -0
- package/dist/components/p-cce871bf.js.map +1 -0
- package/dist/components/p-d8340641.js +2 -0
- package/dist/components/p-d8340641.js.map +1 -0
- package/dist/components/p-d9a2e920.js +2 -0
- package/dist/components/p-d9a2e920.js.map +1 -0
- package/dist/components/p-efa3b8ac.js +2 -0
- package/dist/components/p-efa3b8ac.js.map +1 -0
- package/dist/components/p-f0f6e862.js +2 -0
- package/dist/components/p-f0f6e862.js.map +1 -0
- package/dist/components/p-f4e068a9.js +2 -0
- package/dist/components/p-f4e068a9.js.map +1 -0
- package/dist/components/p-fd97809c.js +2 -0
- package/dist/components/p-fd97809c.js.map +1 -0
- package/dist/components/verdocs-auth.js +2 -0
- package/dist/components/verdocs-auth.js.map +1 -0
- package/dist/components/verdocs-build.js +3 -1
- package/dist/components/verdocs-build.js.map +1 -0
- package/dist/components/verdocs-button-panel.js +2 -0
- package/dist/components/verdocs-button-panel.js.map +1 -0
- package/dist/components/verdocs-button.js +2 -0
- package/dist/components/verdocs-button.js.map +1 -0
- package/dist/components/verdocs-checkbox.js +2 -0
- package/dist/components/verdocs-checkbox.js.map +1 -0
- package/dist/components/verdocs-component-error.js +2 -0
- package/dist/components/verdocs-component-error.js.map +1 -0
- package/dist/components/verdocs-contact-picker.js +2 -0
- package/dist/components/verdocs-contact-picker.js.map +1 -0
- package/dist/components/verdocs-dialog.js +2 -0
- package/dist/components/verdocs-dialog.js.map +1 -0
- package/dist/components/verdocs-dropdown.js +2 -0
- package/dist/components/verdocs-dropdown.js.map +1 -0
- package/dist/components/verdocs-envelope-document-page.js +2 -0
- package/dist/components/verdocs-envelope-document-page.js.map +1 -0
- package/dist/components/verdocs-envelope-recipient-link.js +2 -0
- package/dist/components/verdocs-envelope-recipient-link.js.map +1 -0
- package/dist/components/verdocs-envelope-recipient-summary.js +2 -0
- package/dist/components/verdocs-envelope-recipient-summary.js.map +1 -0
- package/dist/components/verdocs-envelope-sidebar.js +2 -0
- package/dist/components/verdocs-envelope-sidebar.js.map +1 -0
- package/dist/components/verdocs-envelopes-list.js +2 -0
- package/dist/components/verdocs-envelopes-list.js.map +1 -0
- package/dist/components/verdocs-field-attachment.js +2 -0
- package/dist/components/verdocs-field-attachment.js.map +1 -0
- package/dist/components/verdocs-field-checkbox.js +2 -0
- package/dist/components/verdocs-field-checkbox.js.map +1 -0
- package/dist/components/verdocs-field-date.js +2 -0
- package/dist/components/verdocs-field-date.js.map +1 -0
- package/dist/components/verdocs-field-dropdown.js +2 -0
- package/dist/components/verdocs-field-dropdown.js.map +1 -0
- package/dist/components/verdocs-field-initial.js +2 -0
- package/dist/components/verdocs-field-initial.js.map +1 -0
- package/dist/components/verdocs-field-payment.js +2 -0
- package/dist/components/verdocs-field-payment.js.map +1 -0
- package/dist/components/verdocs-field-radio.js +2 -0
- package/dist/components/verdocs-field-radio.js.map +1 -0
- package/dist/components/verdocs-field-signature.js +2 -0
- package/dist/components/verdocs-field-signature.js.map +1 -0
- package/dist/components/verdocs-field-textarea.js +2 -0
- package/dist/components/verdocs-field-textarea.js.map +1 -0
- package/dist/components/verdocs-field-textbox.js +2 -0
- package/dist/components/verdocs-field-textbox.js.map +1 -0
- package/dist/components/verdocs-field-timestamp.js +2 -0
- package/dist/components/verdocs-field-timestamp.js.map +1 -0
- package/dist/components/verdocs-file-chooser.js +2 -0
- package/dist/components/verdocs-file-chooser.js.map +1 -0
- package/dist/components/verdocs-help-icon.js +2 -0
- package/dist/components/verdocs-help-icon.js.map +1 -0
- package/dist/components/verdocs-initial-dialog.js +2 -0
- package/dist/components/verdocs-initial-dialog.js.map +1 -0
- package/dist/components/verdocs-kba-dialog.js +2 -0
- package/dist/components/verdocs-kba-dialog.js.map +1 -0
- package/dist/components/verdocs-loader.js +2 -0
- package/dist/components/verdocs-loader.js.map +1 -0
- package/dist/components/verdocs-menu-panel.js +2 -0
- package/dist/components/verdocs-menu-panel.js.map +1 -0
- package/dist/components/verdocs-ok-dialog.js +2 -0
- package/dist/components/verdocs-ok-dialog.js.map +1 -0
- package/dist/components/verdocs-organization-card.js +2 -0
- package/dist/components/verdocs-organization-card.js.map +1 -0
- package/dist/components/verdocs-pagination.js +2 -0
- package/dist/components/verdocs-pagination.js.map +1 -0
- package/dist/components/verdocs-portal.js +2 -0
- package/dist/components/verdocs-portal.js.map +1 -0
- package/dist/components/verdocs-preview.js +2 -0
- package/dist/components/verdocs-preview.js.map +1 -0
- package/dist/components/verdocs-progress-bar.js +2 -0
- package/dist/components/verdocs-progress-bar.js.map +1 -0
- package/dist/components/verdocs-quick-filter.js +2 -0
- package/dist/components/verdocs-quick-filter.js.map +1 -0
- package/dist/components/verdocs-quick-functions.js +2 -0
- package/dist/components/verdocs-quick-functions.js.map +1 -0
- package/dist/components/verdocs-radio-button.js +2 -0
- package/dist/components/verdocs-radio-button.js.map +1 -0
- package/dist/components/verdocs-search-box.js +2 -0
- package/dist/components/verdocs-search-box.js.map +1 -0
- package/dist/components/verdocs-search-tabs.js +2 -0
- package/dist/components/verdocs-search-tabs.js.map +1 -0
- package/dist/components/verdocs-select-input.js +2 -0
- package/dist/components/verdocs-select-input.js.map +1 -0
- package/dist/components/verdocs-send.js +2 -0
- package/dist/components/verdocs-send.js.map +1 -0
- package/dist/components/verdocs-sign.js +2 -0
- package/dist/components/verdocs-sign.js.map +1 -0
- package/dist/components/verdocs-signature-dialog.js +2 -0
- package/dist/components/verdocs-signature-dialog.js.map +1 -0
- package/dist/components/verdocs-spinner.js +2 -0
- package/dist/components/verdocs-spinner.js.map +1 -0
- package/dist/components/verdocs-status-indicator.js +2 -0
- package/dist/components/verdocs-status-indicator.js.map +1 -0
- package/dist/components/verdocs-switch.js +2 -0
- package/dist/components/verdocs-switch.js.map +1 -0
- package/dist/components/verdocs-table.js +2 -0
- package/dist/components/verdocs-table.js.map +1 -0
- package/dist/components/verdocs-tabs.js +2 -0
- package/dist/components/verdocs-tabs.js.map +1 -0
- package/dist/components/verdocs-template-attachments.js +2 -0
- package/dist/components/verdocs-template-attachments.js.map +1 -0
- package/dist/components/verdocs-template-build-tabs.js +2 -0
- package/dist/components/verdocs-template-build-tabs.js.map +1 -0
- package/dist/components/verdocs-template-card.js +2 -0
- package/dist/components/verdocs-template-card.js.map +1 -0
- package/dist/components/verdocs-template-create.js +2 -0
- package/dist/components/verdocs-template-create.js.map +1 -0
- package/dist/components/verdocs-template-document-page.js +2 -0
- package/dist/components/verdocs-template-document-page.js.map +1 -0
- package/dist/components/verdocs-template-field-properties.js +2 -0
- package/dist/components/verdocs-template-field-properties.js.map +1 -0
- package/dist/components/verdocs-template-fields.js +2 -0
- package/dist/components/verdocs-template-fields.js.map +1 -0
- package/dist/components/verdocs-template-role-properties.js +2 -0
- package/dist/components/verdocs-template-role-properties.js.map +1 -0
- package/dist/components/verdocs-template-roles.js +3 -1
- package/dist/components/verdocs-template-roles.js.map +1 -0
- package/dist/components/verdocs-template-star.js +2 -0
- package/dist/components/verdocs-template-star.js.map +1 -0
- package/dist/components/verdocs-template-tags.js +2 -0
- package/dist/components/verdocs-template-tags.js.map +1 -0
- package/dist/components/verdocs-templates-list.js +2 -0
- package/dist/components/verdocs-templates-list.js.map +1 -0
- package/dist/components/verdocs-text-input.js +2 -0
- package/dist/components/verdocs-text-input.js.map +1 -0
- package/dist/components/verdocs-toggle-button.js +2 -0
- package/dist/components/verdocs-toggle-button.js.map +1 -0
- package/dist/components/verdocs-toggle.js +2 -0
- package/dist/components/verdocs-toggle.js.map +1 -0
- package/dist/components/verdocs-toolbar-icon.js +2 -0
- package/dist/components/verdocs-toolbar-icon.js.map +1 -0
- package/dist/components/verdocs-upload-dialog.js +2 -0
- package/dist/components/verdocs-upload-dialog.js.map +1 -0
- package/dist/components/verdocs-view.js +2 -0
- package/dist/components/verdocs-view.js.map +1 -0
- package/dist/custom-elements.json +2156 -0
- package/dist/esm/Datastore-b55570ff.js +2 -0
- package/dist/esm/Datastore-b55570ff.js.map +1 -0
- package/dist/esm/Icons-faf0377f.js +2 -0
- package/dist/esm/Icons-faf0377f.js.map +1 -0
- package/dist/esm/Toast-c4843828.js +2 -0
- package/dist/esm/Toast-c4843828.js.map +1 -0
- package/dist/esm/Types-95d86a44.js +2 -0
- package/dist/esm/Types-95d86a44.js.map +1 -0
- package/dist/esm/_commonjsHelpers-bdec4bbd.js +2 -0
- package/dist/esm/_commonjsHelpers-bdec4bbd.js.map +1 -0
- package/dist/esm/app-globals-0f993ce5.js +2 -0
- package/dist/esm/app-globals-0f993ce5.js.map +1 -0
- package/dist/esm/errors-887f1e88.js +2 -0
- package/dist/esm/errors-887f1e88.js.map +1 -0
- package/dist/esm/format-b8602175.js +2 -0
- package/dist/esm/format-b8602175.js.map +1 -0
- package/dist/esm/index-272d51a4.js +2 -0
- package/dist/esm/index-272d51a4.js.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/interact.min-a71beb3d.js +2 -0
- package/dist/esm/interact.min-a71beb3d.js.map +1 -0
- package/dist/esm/loader.js +2 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/popper-0fbeff6d.js +2 -0
- package/dist/esm/popper-0fbeff6d.js.map +1 -0
- package/dist/esm/utils-bd656c37.js +2 -0
- package/dist/esm/utils-bd656c37.js.map +1 -0
- package/dist/esm/verdocs-auth.entry.js +2 -0
- package/dist/esm/verdocs-auth.entry.js.map +1 -0
- package/dist/esm/verdocs-build.entry.js +2 -0
- package/dist/esm/verdocs-build.entry.js.map +1 -0
- package/dist/esm/verdocs-button-panel_2.entry.js +2 -0
- package/dist/esm/verdocs-button-panel_2.entry.js.map +1 -0
- package/dist/esm/verdocs-button_2.entry.js +2 -0
- package/dist/esm/verdocs-button_2.entry.js.map +1 -0
- package/dist/esm/verdocs-checkbox_6.entry.js +2 -0
- package/dist/esm/verdocs-checkbox_6.entry.js.map +1 -0
- package/dist/esm/verdocs-contact-picker_2.entry.js +2 -0
- package/dist/esm/verdocs-contact-picker_2.entry.js.map +1 -0
- package/dist/esm/verdocs-dialog.entry.js +2 -0
- package/dist/esm/verdocs-dialog.entry.js.map +1 -0
- package/dist/esm/verdocs-dropdown.entry.js +2 -0
- package/dist/esm/verdocs-dropdown.entry.js.map +1 -0
- package/dist/esm/verdocs-envelope-document-page.entry.js +2 -0
- package/dist/esm/verdocs-envelope-document-page.entry.js.map +1 -0
- package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +2 -0
- package/dist/esm/verdocs-envelope-recipient-link_2.entry.js.map +1 -0
- package/dist/esm/verdocs-envelope-recipient-summary.entry.js +2 -0
- package/dist/esm/verdocs-envelope-recipient-summary.entry.js.map +1 -0
- package/dist/esm/verdocs-envelope-sidebar.entry.js +2 -0
- package/dist/esm/verdocs-envelope-sidebar.entry.js.map +1 -0
- package/dist/esm/verdocs-envelopes-list.entry.js +2 -0
- package/dist/esm/verdocs-envelopes-list.entry.js.map +1 -0
- package/dist/esm/verdocs-field-attachment_13.entry.js +2 -0
- package/dist/esm/verdocs-field-attachment_13.entry.js.map +1 -0
- package/dist/esm/verdocs-field-payment.entry.js +2 -0
- package/dist/esm/verdocs-field-payment.entry.js.map +1 -0
- package/dist/esm/verdocs-file-chooser_2.entry.js +2 -0
- package/dist/esm/verdocs-file-chooser_2.entry.js.map +1 -0
- package/dist/esm/verdocs-kba-dialog_2.entry.js +2 -0
- package/dist/esm/verdocs-kba-dialog_2.entry.js.map +1 -0
- package/dist/esm/verdocs-menu-panel_2.entry.js +2 -0
- package/dist/esm/verdocs-menu-panel_2.entry.js.map +1 -0
- package/dist/esm/verdocs-ok-dialog.entry.js +2 -0
- package/dist/esm/verdocs-ok-dialog.entry.js.map +1 -0
- package/dist/esm/verdocs-organization-card_2.entry.js +2 -0
- package/dist/esm/verdocs-organization-card_2.entry.js.map +1 -0
- package/dist/esm/verdocs-pagination_2.entry.js +2 -0
- package/dist/esm/verdocs-pagination_2.entry.js.map +1 -0
- package/dist/esm/verdocs-preview_6.entry.js +4 -1
- package/dist/esm/verdocs-preview_6.entry.js.map +1 -0
- package/dist/esm/verdocs-quick-functions.entry.js +2 -0
- package/dist/esm/verdocs-quick-functions.entry.js.map +1 -0
- package/dist/esm/verdocs-radio-button.entry.js +2 -0
- package/dist/esm/verdocs-radio-button.entry.js.map +1 -0
- package/dist/esm/verdocs-search-box.entry.js +2 -0
- package/dist/esm/verdocs-search-box.entry.js.map +1 -0
- package/dist/esm/verdocs-search-tabs.entry.js +2 -0
- package/dist/esm/verdocs-search-tabs.entry.js.map +1 -0
- package/dist/esm/verdocs-sign.entry.js +2 -0
- package/dist/esm/verdocs-sign.entry.js.map +1 -0
- package/dist/esm/verdocs-spinner.entry.js +2 -0
- package/dist/esm/verdocs-spinner.entry.js.map +1 -0
- package/dist/esm/verdocs-status-indicator.entry.js +2 -0
- package/dist/esm/verdocs-status-indicator.entry.js.map +1 -0
- package/dist/esm/verdocs-table.entry.js +2 -0
- package/dist/esm/verdocs-table.entry.js.map +1 -0
- package/dist/esm/verdocs-template-card.entry.js +2 -0
- package/dist/esm/verdocs-template-card.entry.js.map +1 -0
- package/dist/esm/verdocs-template-create.entry.js +2 -0
- package/dist/esm/verdocs-template-create.entry.js.map +1 -0
- package/dist/esm/verdocs-template-document-page_2.entry.js +2 -0
- package/dist/esm/verdocs-template-document-page_2.entry.js.map +1 -0
- package/dist/esm/verdocs-template-star.entry.js +2 -0
- package/dist/esm/verdocs-template-star.entry.js.map +1 -0
- package/dist/esm/verdocs-template-tags.entry.js +2 -0
- package/dist/esm/verdocs-template-tags.entry.js.map +1 -0
- package/dist/esm/verdocs-templates-list.entry.js +2 -0
- package/dist/esm/verdocs-templates-list.entry.js.map +1 -0
- package/dist/esm/verdocs-toggle.entry.js +2 -0
- package/dist/esm/verdocs-toggle.entry.js.map +1 -0
- package/dist/esm/verdocs-web-sdk.js +2 -0
- package/dist/esm/verdocs-web-sdk.js.map +1 -0
- package/dist/esm-es5/Datastore-b55570ff.js +2 -1
- package/dist/esm-es5/Datastore-b55570ff.js.map +1 -0
- package/dist/esm-es5/Icons-faf0377f.js +2 -1
- package/dist/esm-es5/Icons-faf0377f.js.map +1 -0
- package/dist/esm-es5/Toast-c4843828.js +2 -1
- package/dist/esm-es5/Toast-c4843828.js.map +1 -0
- package/dist/esm-es5/Types-95d86a44.js +2 -1
- package/dist/esm-es5/Types-95d86a44.js.map +1 -0
- package/dist/esm-es5/_commonjsHelpers-bdec4bbd.js +2 -1
- package/dist/esm-es5/_commonjsHelpers-bdec4bbd.js.map +1 -0
- package/dist/esm-es5/app-globals-0f993ce5.js +2 -1
- package/dist/esm-es5/app-globals-0f993ce5.js.map +1 -0
- package/dist/esm-es5/errors-887f1e88.js +2 -1
- package/dist/esm-es5/errors-887f1e88.js.map +1 -0
- package/dist/esm-es5/format-b8602175.js +2 -1
- package/dist/esm-es5/format-b8602175.js.map +1 -0
- package/dist/esm-es5/index-272d51a4.js +2 -1
- package/dist/esm-es5/index-272d51a4.js.map +1 -0
- package/dist/esm-es5/index.js +2 -0
- package/dist/esm-es5/index.js.map +1 -0
- package/dist/esm-es5/interact.min-a71beb3d.js +2 -1
- package/dist/esm-es5/interact.min-a71beb3d.js.map +1 -0
- package/dist/esm-es5/loader.js +2 -1
- package/dist/esm-es5/loader.js.map +1 -0
- package/dist/esm-es5/popper-0fbeff6d.js +2 -1
- package/dist/esm-es5/popper-0fbeff6d.js.map +1 -0
- package/dist/esm-es5/utils-bd656c37.js +2 -1
- package/dist/esm-es5/utils-bd656c37.js.map +1 -0
- package/dist/esm-es5/verdocs-auth.entry.js +2 -1
- package/dist/esm-es5/verdocs-auth.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-build.entry.js +2 -1
- package/dist/esm-es5/verdocs-build.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-button-panel_2.entry.js +2 -1
- package/dist/esm-es5/verdocs-button-panel_2.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-button_2.entry.js +2 -1
- package/dist/esm-es5/verdocs-button_2.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-checkbox_6.entry.js +2 -1
- package/dist/esm-es5/verdocs-checkbox_6.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-contact-picker_2.entry.js +2 -1
- package/dist/esm-es5/verdocs-contact-picker_2.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-dialog.entry.js +2 -1
- package/dist/esm-es5/verdocs-dialog.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-dropdown.entry.js +2 -1
- package/dist/esm-es5/verdocs-dropdown.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-envelope-document-page.entry.js +2 -1
- package/dist/esm-es5/verdocs-envelope-document-page.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js +2 -1
- package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-envelope-recipient-summary.entry.js +2 -1
- package/dist/esm-es5/verdocs-envelope-recipient-summary.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +2 -1
- package/dist/esm-es5/verdocs-envelope-sidebar.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-envelopes-list.entry.js +2 -1
- package/dist/esm-es5/verdocs-envelopes-list.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-field-attachment_13.entry.js +2 -1
- package/dist/esm-es5/verdocs-field-attachment_13.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-field-payment.entry.js +2 -1
- package/dist/esm-es5/verdocs-field-payment.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-file-chooser_2.entry.js +2 -1
- package/dist/esm-es5/verdocs-file-chooser_2.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-kba-dialog_2.entry.js +2 -1
- package/dist/esm-es5/verdocs-kba-dialog_2.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-menu-panel_2.entry.js +2 -1
- package/dist/esm-es5/verdocs-menu-panel_2.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-ok-dialog.entry.js +2 -1
- package/dist/esm-es5/verdocs-ok-dialog.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-organization-card_2.entry.js +2 -1
- package/dist/esm-es5/verdocs-organization-card_2.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-pagination_2.entry.js +2 -1
- package/dist/esm-es5/verdocs-pagination_2.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-preview_6.entry.js +2 -1
- package/dist/esm-es5/verdocs-preview_6.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-quick-functions.entry.js +2 -1
- package/dist/esm-es5/verdocs-quick-functions.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-radio-button.entry.js +2 -1
- package/dist/esm-es5/verdocs-radio-button.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-search-box.entry.js +2 -1
- package/dist/esm-es5/verdocs-search-box.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-search-tabs.entry.js +2 -1
- package/dist/esm-es5/verdocs-search-tabs.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-sign.entry.js +2 -1
- package/dist/esm-es5/verdocs-sign.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-spinner.entry.js +2 -1
- package/dist/esm-es5/verdocs-spinner.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-status-indicator.entry.js +2 -1
- package/dist/esm-es5/verdocs-status-indicator.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-table.entry.js +2 -1
- package/dist/esm-es5/verdocs-table.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-template-card.entry.js +2 -1
- package/dist/esm-es5/verdocs-template-card.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-template-create.entry.js +2 -1
- package/dist/esm-es5/verdocs-template-create.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-template-document-page_2.entry.js +2 -1
- package/dist/esm-es5/verdocs-template-document-page_2.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-template-star.entry.js +2 -1
- package/dist/esm-es5/verdocs-template-star.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-template-tags.entry.js +2 -1
- package/dist/esm-es5/verdocs-template-tags.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-templates-list.entry.js +2 -1
- package/dist/esm-es5/verdocs-templates-list.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-toggle.entry.js +2 -1
- package/dist/esm-es5/verdocs-toggle.entry.js.map +1 -0
- package/dist/esm-es5/verdocs-web-sdk.js +2 -1
- package/dist/esm-es5/verdocs-web-sdk.js.map +1 -0
- package/dist/verdocs-web-sdk/index.esm.js +2 -0
- package/dist/verdocs-web-sdk/index.esm.js.map +1 -0
- package/dist/verdocs-web-sdk/p-00ed440b.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-00ed440b.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-03399c69.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-03399c69.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-04c07b7b.js +2 -1
- package/dist/verdocs-web-sdk/p-04c07b7b.js.map +1 -0
- package/dist/verdocs-web-sdk/p-0c45b79c.js +13 -1
- package/dist/verdocs-web-sdk/p-0c45b79c.js.map +1 -0
- package/dist/verdocs-web-sdk/p-0c5b881a.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-0c5b881a.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-123c5de2.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-123c5de2.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-12bab948.js +2 -1
- package/dist/verdocs-web-sdk/p-12bab948.js.map +1 -0
- package/dist/verdocs-web-sdk/p-12ce49c2.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-12ce49c2.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-1794d2fa.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-1794d2fa.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-17f35bcb.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-17f35bcb.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-19462841.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-19462841.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-1d5b9103.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-1d5b9103.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-1e191c20.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-1e191c20.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-21b1acec.system.js +2 -1
- package/dist/verdocs-web-sdk/p-21b1acec.system.js.map +1 -0
- package/dist/verdocs-web-sdk/p-24f2d2e2.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-24f2d2e2.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-277a93d5.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-277a93d5.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-2c5350ec.system.js +2 -1
- package/dist/verdocs-web-sdk/p-2c5350ec.system.js.map +1 -0
- package/dist/verdocs-web-sdk/p-2eae32d9.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-2eae32d9.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-306bde40.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-306bde40.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-35dcb386.system.js +2 -1
- package/dist/verdocs-web-sdk/p-35dcb386.system.js.map +1 -0
- package/dist/verdocs-web-sdk/p-3649ddc2.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-3649ddc2.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-3834fa6a.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-3834fa6a.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-3cc50f0b.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-3cc50f0b.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-3fd9d933.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-3fd9d933.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-417f71da.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-417f71da.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-41f22b0a.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-41f22b0a.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-e77c1fcc.system.entry.js → p-4685955a.system.entry.js} +2 -1
- package/dist/verdocs-web-sdk/p-4685955a.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-49cc9ac5.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-49cc9ac5.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-4e9e154f.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-4e9e154f.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-50ea2036.system.js +2 -1
- package/dist/verdocs-web-sdk/p-50ea2036.system.js.map +1 -0
- package/dist/verdocs-web-sdk/p-53ed63e9.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-53ed63e9.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-53f4c7c3.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-53f4c7c3.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-546daa8b.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-546daa8b.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-56ba5cbf.system.js +2 -1
- package/dist/verdocs-web-sdk/p-56ba5cbf.system.js.map +1 -0
- package/dist/verdocs-web-sdk/p-5824962b.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-5824962b.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-58d027d1.js +2 -1
- package/dist/verdocs-web-sdk/p-58d027d1.js.map +1 -0
- package/dist/verdocs-web-sdk/p-6237ce51.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-6237ce51.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-68a5aaff.js +2 -1
- package/dist/verdocs-web-sdk/p-68a5aaff.js.map +1 -0
- package/dist/verdocs-web-sdk/p-6b4de004.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-6b4de004.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-70751089.system.js +2 -1
- package/dist/verdocs-web-sdk/p-70751089.system.js.map +1 -0
- package/dist/verdocs-web-sdk/p-761f6656.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-761f6656.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-76c044c8.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-76c044c8.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-7b1e00e5.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-7b1e00e5.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-83e567cb.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-83e567cb.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-85aa8e05.js +2 -1
- package/dist/verdocs-web-sdk/p-85aa8e05.js.map +1 -0
- package/dist/verdocs-web-sdk/p-882aa754.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-882aa754.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-88baf4d1.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-88baf4d1.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-8bdd951b.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-8bdd951b.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-8d7d61ee.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-8d7d61ee.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-8f5c17b6.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-8f5c17b6.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-9021fc7b.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-9021fc7b.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-90bc3ad0.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-90bc3ad0.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-9186f42e.system.js +2 -1
- package/dist/verdocs-web-sdk/p-9186f42e.system.js.map +1 -0
- package/dist/verdocs-web-sdk/p-9227d400.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-9227d400.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-94fe5817.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-94fe5817.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-9750edd6.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-9750edd6.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-9b26e4e0.system.js +2 -1
- package/dist/verdocs-web-sdk/p-9b26e4e0.system.js.map +1 -0
- package/dist/verdocs-web-sdk/p-a168645d.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-a168645d.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-a6113c3f.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-a6113c3f.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-a901dff2.js +2 -1
- package/dist/verdocs-web-sdk/p-a901dff2.js.map +1 -0
- package/dist/verdocs-web-sdk/p-ab473697.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-ab473697.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-ab65c67b.entry.js +8 -0
- package/dist/verdocs-web-sdk/p-ab65c67b.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-ac6ecfad.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-ac6ecfad.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-ad3d07a6.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-ad3d07a6.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-b0766439.js +2 -1
- package/dist/verdocs-web-sdk/p-b0766439.js.map +1 -0
- package/dist/verdocs-web-sdk/p-b0fbfc24.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-b0fbfc24.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-b9654a5e.js +3 -2
- package/dist/verdocs-web-sdk/p-b9654a5e.js.map +1 -0
- package/dist/verdocs-web-sdk/p-bbf30adc.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-bbf30adc.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-bfc815d0.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-bfc815d0.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-c0cd186e.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-c0cd186e.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-c2bca18a.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-c2bca18a.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-c53701b7.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-c53701b7.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-c7ee88c7.js +2 -1
- package/dist/verdocs-web-sdk/p-c7ee88c7.js.map +1 -0
- package/dist/verdocs-web-sdk/p-c8a15cb7.system.js +2 -1
- package/dist/verdocs-web-sdk/p-c8a15cb7.system.js.map +1 -0
- package/dist/verdocs-web-sdk/p-ca15a050.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-ca15a050.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-ca8aef1d.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-ca8aef1d.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-cbb75c5e.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-cbb75c5e.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-cd546dbe.system.js +2 -1
- package/dist/verdocs-web-sdk/p-cd546dbe.system.js.map +1 -0
- package/dist/verdocs-web-sdk/p-d23b5949.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-d23b5949.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-d58010a4.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-d58010a4.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-d5870e33.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-d5870e33.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-d738b5db.system.js +2 -1
- package/dist/verdocs-web-sdk/p-d738b5db.system.js.map +1 -0
- package/dist/verdocs-web-sdk/p-d8dae4e9.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-d8dae4e9.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-dced30fa.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-dced30fa.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-df3f235d.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-df3f235d.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-e0ac9edf.system.js +2 -1
- package/dist/verdocs-web-sdk/p-e0ac9edf.system.js.map +1 -0
- package/dist/verdocs-web-sdk/p-e1255160.js +2 -1
- package/dist/verdocs-web-sdk/p-e1255160.js.map +1 -0
- package/dist/verdocs-web-sdk/p-e2b70dfb.system.js +2 -1
- package/dist/verdocs-web-sdk/p-e2b70dfb.system.js.map +1 -0
- package/dist/verdocs-web-sdk/p-e3077c5e.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-e3077c5e.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-e438bd02.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-e438bd02.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-e6d711e0.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-e6d711e0.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-ea078594.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-ea078594.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-eb3ceb39.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-eb3ceb39.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-f12b428b.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-f12b428b.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-f29eb00a.system.js +2 -1
- package/dist/verdocs-web-sdk/p-f29eb00a.system.js.map +1 -0
- package/dist/verdocs-web-sdk/p-f2b16ddf.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-f2b16ddf.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-f84932fd.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-f84932fd.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-fd97809c.js +2 -1
- package/dist/verdocs-web-sdk/p-fd97809c.js.map +1 -0
- package/dist/verdocs-web-sdk/p-fda9c437.system.entry.js +2 -1
- package/dist/verdocs-web-sdk/p-fda9c437.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-fedcc413.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-fedcc413.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +2 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js.map +1 -0
- package/package.json +1 -1
- package/dist/verdocs-web-sdk/p-152b9acd.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-1e495c60.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-1eb501c3.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-2d7d0805.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-2f73c9de.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-35903760.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-39b72c10.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-47f32221.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-4a960ba5.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-4b36ca30.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-553a341c.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-5f1a000c.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-6da00869.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-7688bc89.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-76cc40fe.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-786bacad.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-7abbdb69.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-899fa588.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-91977069.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-92364765.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-92ce6180.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-98ab739b.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-99b819ad.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-a4b05f08.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-af1802b6.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-b0436bc7.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-bdd7b3d3.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-be4ec401.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-bf0b5dbc.entry.js +0 -8
- package/dist/verdocs-web-sdk/p-c1728f5c.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-c3593d47.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-db4c36aa.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-dc558be5.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e6dbb0f7.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-ea75f159.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-ef7813ed.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-f6b77cd1.entry.js +0 -1
@@ -1 +1,2 @@
|
|
1
|
-
import{r as registerInstance,c as createEvent,h,H as Host}from"./index-272d51a4.js";var verdocsTableCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-table{width:100%;display:block;margin:0 0 10px 0;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", "Barlow", sans-serif}verdocs-table .table-wrapper{margin:10px 0;padding:0}verdocs-table .table{width:100%;border:none;border-collapse:collapse}verdocs-table .row.data-row{border:1px solid #d4d4d8;background-color:#ffffff}verdocs-table .header-col{color:#5c6575;font-weight:600;text-align:left;padding:8px 16px}verdocs-table .data-col{font-weight:400;padding:8px 16px}';var VerdocsTableStyle0=verdocsTableCss;var VerdocsTable=function(){function e(e){registerInstance(this,e);this.colHeaderClick=createEvent(this,"colHeaderClick",7);this.rowClick=createEvent(this,"rowClick",7);this.columns=[];this.data=[]}e.prototype.render=function(){var e=this;return h(Host,{key:"237b25276ade798e6286880f02aa366e6bcd7a45",class:"table-wrapper"},h("table",{key:"604ec40339c8c880fe68bc7cb49b5c84ff3161f3",class:"table"},h("thead",{key:"355091e91fc735f8170d082b7a1e63118522d9dc"},h("tr",{key:"a826f1200533300f54b3340d3e45e62d8f4fb814",class:"row header-row"},this.columns.map((function(r,o){return h("th",{class:"col header-col col-".concat(o," col-").concat(r.id),onClick:function(){var o;return(o=e.colHeaderClick)===null||o===void 0?void 0:o.emit({col:r})},innerHTML:r.renderHeader?r.renderHeader(r):r.header||r.id})})))),h("tbody",{key:"f9bace73706b28bf610e897605c580319d4b05c2"},this.data.map((function(r){return h("tr",{class:"row data-row",onClick:function(){var o;return(o=e.rowClick)===null||o===void 0?void 0:o.emit({row:r})}},e.columns.map((function(e,o){return e.renderCell?h("td",{class:"col data-col col-".concat(o," col-").concat(e.id),innerHTML:e.renderCell(e,r)}):h("td",{class:"col data-col col-".concat(o," col-").concat(e.id)},r[e.id])})))})))))};return e}();VerdocsTable.style=VerdocsTableStyle0;export{VerdocsTable as verdocs_table};
|
1
|
+
import{r as registerInstance,c as createEvent,h,H as Host}from"./index-272d51a4.js";var verdocsTableCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-table{width:100%;display:block;margin:0 0 10px 0;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", "Barlow", sans-serif}verdocs-table .table-wrapper{margin:10px 0;padding:0}verdocs-table .table{width:100%;border:none;border-collapse:collapse}verdocs-table .row.data-row{border:1px solid #d4d4d8;background-color:#ffffff}verdocs-table .header-col{color:#5c6575;font-weight:600;text-align:left;padding:8px 16px}verdocs-table .data-col{font-weight:400;padding:8px 16px}';var VerdocsTableStyle0=verdocsTableCss;var VerdocsTable=function(){function e(e){registerInstance(this,e);this.colHeaderClick=createEvent(this,"colHeaderClick",7);this.rowClick=createEvent(this,"rowClick",7);this.columns=[];this.data=[]}e.prototype.render=function(){var e=this;return h(Host,{key:"237b25276ade798e6286880f02aa366e6bcd7a45",class:"table-wrapper"},h("table",{key:"604ec40339c8c880fe68bc7cb49b5c84ff3161f3",class:"table"},h("thead",{key:"355091e91fc735f8170d082b7a1e63118522d9dc"},h("tr",{key:"a826f1200533300f54b3340d3e45e62d8f4fb814",class:"row header-row"},this.columns.map((function(r,o){return h("th",{class:"col header-col col-".concat(o," col-").concat(r.id),onClick:function(){var o;return(o=e.colHeaderClick)===null||o===void 0?void 0:o.emit({col:r})},innerHTML:r.renderHeader?r.renderHeader(r):r.header||r.id})})))),h("tbody",{key:"f9bace73706b28bf610e897605c580319d4b05c2"},this.data.map((function(r){return h("tr",{class:"row data-row",onClick:function(){var o;return(o=e.rowClick)===null||o===void 0?void 0:o.emit({row:r})}},e.columns.map((function(e,o){return e.renderCell?h("td",{class:"col data-col col-".concat(o," col-").concat(e.id),innerHTML:e.renderCell(e,r)}):h("td",{class:"col data-col col-".concat(o," col-").concat(e.id)},r[e.id])})))})))))};return e}();VerdocsTable.style=VerdocsTableStyle0;export{VerdocsTable as verdocs_table};
|
2
|
+
//# sourceMappingURL=verdocs-table.entry.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["verdocsTableCss","VerdocsTableStyle0","VerdocsTable","prototype","render","_this","this","h","Host","key","class","columns","map","col","i","concat","id","onClick","_a","colHeaderClick","emit","innerHTML","renderHeader","header","data","row","rowClick","renderCell"],"sources":["src/components/controls/verdocs-table/verdocs-table.scss?tag=verdocs-table","src/components/controls/verdocs-table/verdocs-table.tsx"],"sourcesContent":["@import '../../../theme.scss';\n\nverdocs-table {\n width: 100%;\n display: block;\n margin: 0 0 10px 0;\n box-sizing: border-box;\n font-family: $primary-font;\n\n .table-wrapper {\n margin: 10px 0;\n padding: 0;\n }\n\n .table {\n width: 100%;\n border: none;\n border-collapse: collapse;\n }\n\n .row {\n &.header-row {\n }\n\n &.data-row {\n border: 1px solid #d4d4d8;\n background-color: #ffffff;\n }\n }\n\n .header-col {\n color: #5c6575;\n font-weight: 600;\n text-align: left;\n padding: 8px 16px;\n }\n\n .data-col {\n font-weight: 400;\n padding: 8px 16px;\n }\n}\n","import {Component, Prop, Host, h, Event, EventEmitter} from '@stencil/core';\n\nexport interface IColumn {\n id: string;\n header?: string;\n renderHeader?: (col: IColumn) => any;\n renderCell?: (col: IColumn, row: any) => any;\n}\n\n/**\n * Display a simple table of data. Columns and data cells may have custom renderers defined to\n * support creating interactive table layouts.\n *\n * ```ts\n * <verdocs-table columns={[...columns]} data={[...data]} />\n * ```\n */\n@Component({\n tag: 'verdocs-table',\n styleUrl: 'verdocs-table.scss',\n})\nexport class VerdocsTable {\n /**\n * The columns to display\n */\n @Prop() columns: IColumn[] = [];\n\n /**\n * The rows to display\n */\n @Prop() data: any[] = [];\n\n /**\n * Event fired when the user clicks a column header. This may be used to manage sorting options.\n */\n @Event({composed: true}) colHeaderClick: EventEmitter<{col: IColumn}>;\n\n /**\n * Event fired when the user clicks a row.\n */\n @Event({composed: true}) rowClick: EventEmitter<{row: any}>;\n\n render() {\n return (\n <Host class=\"table-wrapper\">\n <table class=\"table\">\n <thead>\n <tr class=\"row header-row\">\n {this.columns.map((col, i) => {\n return (\n <th\n class={`col header-col col-${i} col-${col.id}`}\n onClick={() => this.colHeaderClick?.emit({col})}\n innerHTML={col.renderHeader ? col.renderHeader(col) : col.header || col.id}\n />\n );\n })}\n </tr>\n </thead>\n\n <tbody>\n {this.data.map(row => (\n <tr class=\"row data-row\" onClick={() => this.rowClick?.emit({row})}>\n {this.columns.map((col, i) => {\n return col.renderCell ? (\n <td class={`col data-col col-${i} col-${col.id}`} innerHTML={col.renderCell(col, row)} />\n ) : (\n <td class={`col data-col col-${i} col-${col.id}`}>{row[col.id]}</td>\n );\n })}\n </tr>\n ))}\n </tbody>\n </table>\n </Host>\n );\n }\n}\n"],"mappings":"oFAAA,IAAMA,gBAAkB,4yBACxB,IAAAC,mBAAeD,gB,ICoBFE,aAAY,W,0JAIM,G,UAKP,E,CAYtBA,EAAAC,UAAAC,OAAA,eAAAC,EAAAC,KACE,OACEC,EAACC,KAAI,CAAAC,IAAA,2CAACC,MAAM,iBACVH,EAAA,SAAAE,IAAA,2CAAOC,MAAM,SACXH,EAAA,SAAAE,IAAA,4CACEF,EAAA,MAAAE,IAAA,2CAAIC,MAAM,kBACPJ,KAAKK,QAAQC,KAAI,SAACC,EAAKC,GACtB,OACEP,EAAA,MACEG,MAAO,sBAAAK,OAAsBD,EAAC,SAAAC,OAAQF,EAAIG,IAC1CC,QAAS,eAAAC,EAAM,OAAAA,EAAAb,EAAKc,kBAAc,MAAAD,SAAA,SAAAA,EAAEE,KAAK,CAACP,IAAGA,GAAE,EAC/CQ,UAAWR,EAAIS,aAAeT,EAAIS,aAAaT,GAAOA,EAAIU,QAAUV,EAAIG,I,MAOlFT,EAAA,SAAAE,IAAA,4CACGH,KAAKkB,KAAKZ,KAAI,SAAAa,GAAG,OAChBlB,EAAA,MAAIG,MAAM,eAAeO,QAAS,eAAAC,EAAM,OAAAA,EAAAb,EAAKqB,YAAQ,MAAAR,SAAA,SAAAA,EAAEE,KAAK,CAACK,IAAGA,GAAE,GAC/DpB,EAAKM,QAAQC,KAAI,SAACC,EAAKC,GACtB,OAAOD,EAAIc,WACTpB,EAAA,MAAIG,MAAO,oBAAAK,OAAoBD,EAAC,SAAAC,OAAQF,EAAIG,IAAMK,UAAWR,EAAIc,WAAWd,EAAKY,KAEjFlB,EAAA,MAAIG,MAAO,oBAAAK,OAAoBD,EAAC,SAAAC,OAAQF,EAAIG,KAAOS,EAAIZ,EAAIG,I,IANjD,M,WAxCL,G","ignoreList":[]}
|
@@ -1 +1,2 @@
|
|
1
|
-
import{r as registerInstance,h,H as Host}from"./index-272d51a4.js";var verdocsTemplateCardCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-card{font-family:"Inter", "Barlow", sans-serif;width:320px;height:320px;display:-ms-flexbox;display:flex;padding:25px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff;-webkit-box-shadow:2px 2px 5px rgba(51, 54, 75, 0.05);box-shadow:2px 2px 5px rgba(51, 54, 75, 0.05)}verdocs-template-card .thumbnail{width:272px;height:158px;-o-object-fit:cover;object-fit:cover;margin-bottom:22px;-o-object-position:-20% 0;object-position:-20% 0}verdocs-template-card .name{font-size:18px;font-weight:700;margin-bottom:7px}verdocs-template-card .org-name{font-size:14px;font-weight:700;margin-bottom:6px}verdocs-template-card hr{width:100%;margin-bottom:17px;background-color:#aeb4bf}verdocs-template-card .controls{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:justify;justify-content:space-between;text-align:center;font-size:16px}verdocs-template-card .controls .control{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;margin-right:8px;-ms-flex-align:start;align-items:flex-start;border-right:1px solid #aeb4bf}verdocs-template-card .controls .control.secondary{-ms-flex-pack:center;justify-content:center}verdocs-template-card .controls .control svg{fill:#aeb4bf;height:16px;max-width:16px;margin:0 8px -2px 0}verdocs-template-card .additional-controls svg{margin-right:0;fill:#654dcb}';var VerdocsTemplateCardStyle0=verdocsTemplateCardCss;var ActionsIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg>';var EmailIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"/></svg>';var PagesIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4H8c-1.1 0-1.99.9-1.99 2L6 21c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V11l-6-6zM8 21V7h6v5h5v9H8z"/></svg>';var StarIcon='<svg width="31" height="29" viewBox="0 0 31 29" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_31553_1553)"><path d="M30.886 11.4917C30.8916 11.0917 30.753 10.7034 30.4962 10.3993C30.2394 10.0953 29.882 9.8964 29.4908 9.83995L29.5182 9.65005L29.4908 9.83995L21.0938 8.60261L17.3412 0.912551C17.2067 0.638179 16.9992 0.407285 16.7421 0.245866C16.485 0.0844465 16.1885 -0.00111389 15.886 -0.00111389C15.5835 -0.00111389 15.287 0.0844465 15.0299 0.245866C14.7728 0.407285 14.5653 0.638179 14.4308 0.912551L10.6781 8.60261L2.28121 9.8392C1.89206 9.89475 1.53611 10.0916 1.2796 10.3931C1.02308 10.6945 0.88348 11.08 0.886776 11.4779C0.886447 11.6961 0.929977 11.912 1.01472 12.1125C1.09946 12.3131 1.22363 12.4941 1.37968 12.6445L7.45563 18.5744L6.01943 27.0241C6.00289 27.1258 5.99449 27.2287 5.99435 27.3317C5.99313 27.7717 6.16395 28.1943 6.4695 28.5071C6.77505 28.82 7.19045 28.9976 7.62496 29.0013C7.88846 29.0008 8.14779 28.9345 8.37992 28.8083L15.8883 24.8217L23.3967 28.8114C23.6287 28.9361 23.8873 29.0015 24.15 29.002C24.5752 28.9998 24.9832 28.8318 25.2893 28.5329C25.4452 28.3832 25.5695 28.2029 25.6544 28.003C25.7392 27.8031 25.783 27.5878 25.783 27.3702C25.7827 27.2731 25.7743 27.176 25.7579 27.0803L24.3209 18.6296L30.3931 12.7022C30.7094 12.3809 30.8867 11.9454 30.886 11.4917ZM22.0759 17.53L21.9437 17.3916L22.0759 17.53C22.0072 17.5977 21.9525 17.6787 21.9152 17.7681C21.8779 17.8575 21.8587 17.9536 21.8587 18.0506L21.8693 18.1737L23.2037 26.0237L16.2164 22.3148C16.1136 22.2602 15.9994 22.2317 15.8833 22.2317C15.7673 22.2317 15.653 22.2602 15.5503 22.3148L8.57132 26.0245L9.90651 18.1745L9.91712 18.0506C9.91696 17.9536 9.89768 17.8576 9.86038 17.7682C9.82308 17.6788 9.76851 17.5978 9.6999 17.53L4.05538 11.9724L11.8576 10.8258C11.9725 10.8088 12.0816 10.7638 12.1755 10.6947C12.2695 10.6256 12.3454 10.5344 12.3969 10.429L15.886 3.27721L19.3797 10.429C19.4313 10.5344 19.5074 10.6256 19.6014 10.6948C19.6955 10.7639 19.8047 10.8088 19.9197 10.8258L27.7197 11.9747L22.0759 17.53Z" fill="#ADB6BD"/></g><defs><clipPath id="clip0_31553_1553"><rect width="30" height="29" fill="white" transform="translate(0.886719)"/></clipPath></defs></svg>';var VerdocsTemplateCard=function(){function e(e){registerInstance(this,e);this.template=undefined}e.prototype.render=function(){var e,a,c,o;return h(Host,{key:"a0120b0a9d3430b7e8692bc24b8f3636dd37ab91"},h("span",{key:"cecadc6292764c38b76d4739bcef8b8465ee3ae6",class:"name"},this.template.name),h("span",{key:"942d609f2b0897e05630560dbeb0c4c5545cc60d",class:"org-name"},((e=this.template.organization)===null||e===void 0?void 0:e.name)||"Public"),h("hr",{key:"82c428c9e9ce82a85b0a2f3b3c4b60d2fe59339a"}),h("div",{key:"021c22798331eed52c972456a91c242281c0292d",class:"controls"},h("div",{key:"124aa6c01f9e20ba5358f17810a5cd5ad27384db",class:"control"},h("span",{key:"ece894c92186f75d2e5bf2c7fed96ea3d0eb4c90",class:"icon",innerHTML:StarIcon}),h("span",{key:"142b1848c47efafa5bf7201ed8f0bfa9d86d37b8",class:"value"},this.template.star_counter)),h("div",{key:"7c83ac1b26f8c90df8a3e6ca8b3a2032ca75e464",class:"control secondary"},h("span",{key:"33574402f74338520c77348573531488b402c794",class:"icon",innerHTML:PagesIcon}),h("span",{key:"c9788324cddccc57425e97a8b132ba8ab1014355",class:"value"},((o=(c=(a=this.template)===null||a===void 0?void 0:a.documents)===null||c===void 0?void 0:c[0])===null||o===void 0?void 0:o.pages)||1)),h("div",{key:"9c0b2a91e21cd80bcc8219f7cdd669a9ed2e827e",class:"control secondary"},h("span",{key:"fffbbe3031a9eec3ff83c68033420f9219134080",class:"icon",innerHTML:EmailIcon}),h("span",{key:"8d8655d9da311ec254ba77243b239c5da14b7516",class:"value"},this.template.counter)),h("span",{key:"774cfe8937b7c894f3c9d6ae308d2a48bac9f513",class:"additional-controls",innerHTML:ActionsIcon})))};return e}();VerdocsTemplateCard.style=VerdocsTemplateCardStyle0;export{VerdocsTemplateCard as verdocs_template_card};
|
1
|
+
import{r as registerInstance,h,H as Host}from"./index-272d51a4.js";var verdocsTemplateCardCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-card{font-family:"Inter", "Barlow", sans-serif;width:320px;height:320px;display:-ms-flexbox;display:flex;padding:25px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column;background-color:#ffffff;-webkit-box-shadow:2px 2px 5px rgba(51, 54, 75, 0.05);box-shadow:2px 2px 5px rgba(51, 54, 75, 0.05)}verdocs-template-card .thumbnail{width:272px;height:158px;-o-object-fit:cover;object-fit:cover;margin-bottom:22px;-o-object-position:-20% 0;object-position:-20% 0}verdocs-template-card .name{font-size:18px;font-weight:700;margin-bottom:7px}verdocs-template-card .org-name{font-size:14px;font-weight:700;margin-bottom:6px}verdocs-template-card hr{width:100%;margin-bottom:17px;background-color:#aeb4bf}verdocs-template-card .controls{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:justify;justify-content:space-between;text-align:center;font-size:16px}verdocs-template-card .controls .control{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;margin-right:8px;-ms-flex-align:start;align-items:flex-start;border-right:1px solid #aeb4bf}verdocs-template-card .controls .control.secondary{-ms-flex-pack:center;justify-content:center}verdocs-template-card .controls .control svg{fill:#aeb4bf;height:16px;max-width:16px;margin:0 8px -2px 0}verdocs-template-card .additional-controls svg{margin-right:0;fill:#654dcb}';var VerdocsTemplateCardStyle0=verdocsTemplateCardCss;var ActionsIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"/></svg>';var EmailIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"/></svg>';var PagesIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4H8c-1.1 0-1.99.9-1.99 2L6 21c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V11l-6-6zM8 21V7h6v5h5v9H8z"/></svg>';var StarIcon='<svg width="31" height="29" viewBox="0 0 31 29" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_31553_1553)"><path d="M30.886 11.4917C30.8916 11.0917 30.753 10.7034 30.4962 10.3993C30.2394 10.0953 29.882 9.8964 29.4908 9.83995L29.5182 9.65005L29.4908 9.83995L21.0938 8.60261L17.3412 0.912551C17.2067 0.638179 16.9992 0.407285 16.7421 0.245866C16.485 0.0844465 16.1885 -0.00111389 15.886 -0.00111389C15.5835 -0.00111389 15.287 0.0844465 15.0299 0.245866C14.7728 0.407285 14.5653 0.638179 14.4308 0.912551L10.6781 8.60261L2.28121 9.8392C1.89206 9.89475 1.53611 10.0916 1.2796 10.3931C1.02308 10.6945 0.88348 11.08 0.886776 11.4779C0.886447 11.6961 0.929977 11.912 1.01472 12.1125C1.09946 12.3131 1.22363 12.4941 1.37968 12.6445L7.45563 18.5744L6.01943 27.0241C6.00289 27.1258 5.99449 27.2287 5.99435 27.3317C5.99313 27.7717 6.16395 28.1943 6.4695 28.5071C6.77505 28.82 7.19045 28.9976 7.62496 29.0013C7.88846 29.0008 8.14779 28.9345 8.37992 28.8083L15.8883 24.8217L23.3967 28.8114C23.6287 28.9361 23.8873 29.0015 24.15 29.002C24.5752 28.9998 24.9832 28.8318 25.2893 28.5329C25.4452 28.3832 25.5695 28.2029 25.6544 28.003C25.7392 27.8031 25.783 27.5878 25.783 27.3702C25.7827 27.2731 25.7743 27.176 25.7579 27.0803L24.3209 18.6296L30.3931 12.7022C30.7094 12.3809 30.8867 11.9454 30.886 11.4917ZM22.0759 17.53L21.9437 17.3916L22.0759 17.53C22.0072 17.5977 21.9525 17.6787 21.9152 17.7681C21.8779 17.8575 21.8587 17.9536 21.8587 18.0506L21.8693 18.1737L23.2037 26.0237L16.2164 22.3148C16.1136 22.2602 15.9994 22.2317 15.8833 22.2317C15.7673 22.2317 15.653 22.2602 15.5503 22.3148L8.57132 26.0245L9.90651 18.1745L9.91712 18.0506C9.91696 17.9536 9.89768 17.8576 9.86038 17.7682C9.82308 17.6788 9.76851 17.5978 9.6999 17.53L4.05538 11.9724L11.8576 10.8258C11.9725 10.8088 12.0816 10.7638 12.1755 10.6947C12.2695 10.6256 12.3454 10.5344 12.3969 10.429L15.886 3.27721L19.3797 10.429C19.4313 10.5344 19.5074 10.6256 19.6014 10.6948C19.6955 10.7639 19.8047 10.8088 19.9197 10.8258L27.7197 11.9747L22.0759 17.53Z" fill="#ADB6BD"/></g><defs><clipPath id="clip0_31553_1553"><rect width="30" height="29" fill="white" transform="translate(0.886719)"/></clipPath></defs></svg>';var VerdocsTemplateCard=function(){function e(e){registerInstance(this,e);this.template=undefined}e.prototype.render=function(){var e,a,c,o;return h(Host,{key:"a0120b0a9d3430b7e8692bc24b8f3636dd37ab91"},h("span",{key:"cecadc6292764c38b76d4739bcef8b8465ee3ae6",class:"name"},this.template.name),h("span",{key:"942d609f2b0897e05630560dbeb0c4c5545cc60d",class:"org-name"},((e=this.template.organization)===null||e===void 0?void 0:e.name)||"Public"),h("hr",{key:"82c428c9e9ce82a85b0a2f3b3c4b60d2fe59339a"}),h("div",{key:"021c22798331eed52c972456a91c242281c0292d",class:"controls"},h("div",{key:"124aa6c01f9e20ba5358f17810a5cd5ad27384db",class:"control"},h("span",{key:"ece894c92186f75d2e5bf2c7fed96ea3d0eb4c90",class:"icon",innerHTML:StarIcon}),h("span",{key:"142b1848c47efafa5bf7201ed8f0bfa9d86d37b8",class:"value"},this.template.star_counter)),h("div",{key:"7c83ac1b26f8c90df8a3e6ca8b3a2032ca75e464",class:"control secondary"},h("span",{key:"33574402f74338520c77348573531488b402c794",class:"icon",innerHTML:PagesIcon}),h("span",{key:"c9788324cddccc57425e97a8b132ba8ab1014355",class:"value"},((o=(c=(a=this.template)===null||a===void 0?void 0:a.documents)===null||c===void 0?void 0:c[0])===null||o===void 0?void 0:o.pages)||1)),h("div",{key:"9c0b2a91e21cd80bcc8219f7cdd669a9ed2e827e",class:"control secondary"},h("span",{key:"fffbbe3031a9eec3ff83c68033420f9219134080",class:"icon",innerHTML:EmailIcon}),h("span",{key:"8d8655d9da311ec254ba77243b239c5da14b7516",class:"value"},this.template.counter)),h("span",{key:"774cfe8937b7c894f3c9d6ae308d2a48bac9f513",class:"additional-controls",innerHTML:ActionsIcon})))};return e}();VerdocsTemplateCard.style=VerdocsTemplateCardStyle0;export{VerdocsTemplateCard as verdocs_template_card};
|
2
|
+
//# sourceMappingURL=verdocs-template-card.entry.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["verdocsTemplateCardCss","VerdocsTemplateCardStyle0","ActionsIcon","EmailIcon","PagesIcon","StarIcon","VerdocsTemplateCard","prototype","render","h","Host","key","class","this","template","name","_a","organization","innerHTML","star_counter","_d","_c","_b","documents","pages","counter"],"sources":["src/components/templates/verdocs-template-card/verdocs-template-card.scss?tag=verdocs-template-card","src/components/templates/verdocs-template-card/verdocs-template-card.tsx"],"sourcesContent":["@import '../../../theme.scss';\n\nverdocs-template-card {\n font-family: $primary-font;\n width: 320px;\n height: 320px;\n display: flex;\n padding: 25px;\n flex-wrap: nowrap;\n box-sizing: border-box;\n flex-direction: column;\n background-color: $verdocs-grey-4;\n box-shadow: 2px 2px 5px rgba(51, 54, 75, 0.05);\n\n .thumbnail {\n width: 272px;\n height: 158px;\n object-fit: cover;\n margin-bottom: 22px;\n object-position: -20% 0;\n }\n\n .name {\n font-size: 18px;\n font-weight: 700;\n margin-bottom: 7px;\n }\n\n .org-name {\n font-size: 14px;\n font-weight: 700;\n margin-bottom: 6px;\n }\n\n hr {\n width: 100%;\n margin-bottom: 17px;\n background-color: $icon-color;\n }\n\n .controls {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: space-between;\n text-align: center;\n font-size: 16px;\n\n .control {\n flex: 1;\n display: flex;\n margin-right: 8px;\n align-items: flex-start;\n border-right: 1px solid $icon-color;\n\n &.secondary {\n justify-content: center;\n }\n\n svg {\n fill: $icon-color;\n height: 16px;\n max-width: 16px;\n margin: 0 8px -2px 0;\n }\n }\n }\n\n .additional-controls svg {\n margin-right: 0;\n fill: $verdocs-purple;\n }\n}\n","import {Component, Prop, h, Host} from '@stencil/core';\nimport {ITemplate} from '@verdocs/js-sdk';\n\nconst ActionsIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 0 24 24\" width=\"24px\" fill=\"#000000\"><path d=\"M0 0h24v24H0V0z\" fill=\"none\"/><path d=\"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z\"/></svg>`;\n\nconst EmailIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 0 24 24\" width=\"24px\" fill=\"#000000\"><path d=\"M0 0h24v24H0V0z\" fill=\"none\"/><path d=\"M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z\"/></svg>`;\n\nconst PagesIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 0 24 24\" width=\"24px\" fill=\"#000000\"><path d=\"M0 0h24v24H0V0z\" fill=\"none\"/><path d=\"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4H8c-1.1 0-1.99.9-1.99 2L6 21c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V11l-6-6zM8 21V7h6v5h5v9H8z\"/></svg>`;\n\nconst StarIcon = `<svg width=\"31\" height=\"29\" viewBox=\"0 0 31 29\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><g clip-path=\"url(#clip0_31553_1553)\"><path d=\"M30.886 11.4917C30.8916 11.0917 30.753 10.7034 30.4962 10.3993C30.2394 10.0953 29.882 9.8964 29.4908 9.83995L29.5182 9.65005L29.4908 9.83995L21.0938 8.60261L17.3412 0.912551C17.2067 0.638179 16.9992 0.407285 16.7421 0.245866C16.485 0.0844465 16.1885 -0.00111389 15.886 -0.00111389C15.5835 -0.00111389 15.287 0.0844465 15.0299 0.245866C14.7728 0.407285 14.5653 0.638179 14.4308 0.912551L10.6781 8.60261L2.28121 9.8392C1.89206 9.89475 1.53611 10.0916 1.2796 10.3931C1.02308 10.6945 0.88348 11.08 0.886776 11.4779C0.886447 11.6961 0.929977 11.912 1.01472 12.1125C1.09946 12.3131 1.22363 12.4941 1.37968 12.6445L7.45563 18.5744L6.01943 27.0241C6.00289 27.1258 5.99449 27.2287 5.99435 27.3317C5.99313 27.7717 6.16395 28.1943 6.4695 28.5071C6.77505 28.82 7.19045 28.9976 7.62496 29.0013C7.88846 29.0008 8.14779 28.9345 8.37992 28.8083L15.8883 24.8217L23.3967 28.8114C23.6287 28.9361 23.8873 29.0015 24.15 29.002C24.5752 28.9998 24.9832 28.8318 25.2893 28.5329C25.4452 28.3832 25.5695 28.2029 25.6544 28.003C25.7392 27.8031 25.783 27.5878 25.783 27.3702C25.7827 27.2731 25.7743 27.176 25.7579 27.0803L24.3209 18.6296L30.3931 12.7022C30.7094 12.3809 30.8867 11.9454 30.886 11.4917ZM22.0759 17.53L21.9437 17.3916L22.0759 17.53C22.0072 17.5977 21.9525 17.6787 21.9152 17.7681C21.8779 17.8575 21.8587 17.9536 21.8587 18.0506L21.8693 18.1737L23.2037 26.0237L16.2164 22.3148C16.1136 22.2602 15.9994 22.2317 15.8833 22.2317C15.7673 22.2317 15.653 22.2602 15.5503 22.3148L8.57132 26.0245L9.90651 18.1745L9.91712 18.0506C9.91696 17.9536 9.89768 17.8576 9.86038 17.7682C9.82308 17.6788 9.76851 17.5978 9.6999 17.53L4.05538 11.9724L11.8576 10.8258C11.9725 10.8088 12.0816 10.7638 12.1755 10.6947C12.2695 10.6256 12.3454 10.5344 12.3969 10.429L15.886 3.27721L19.3797 10.429C19.4313 10.5344 19.5074 10.6256 19.6014 10.6948C19.6955 10.7639 19.8047 10.8088 19.9197 10.8258L27.7197 11.9747L22.0759 17.53Z\" fill=\"#ADB6BD\"/></g><defs><clipPath id=\"clip0_31553_1553\"><rect width=\"30\" height=\"29\" fill=\"white\" transform=\"translate(0.886719)\"/></clipPath></defs></svg>`;\n\n/**\n * Displays a summary of a template\n */\n@Component({\n tag: 'verdocs-template-card',\n styleUrl: 'verdocs-template-card.scss',\n shadow: false,\n})\nexport class VerdocsTemplateCard {\n /**\n * The template for which the card will be rendered.\n */\n @Prop() template: ITemplate;\n\n render() {\n return (\n <Host>\n {/* TODO */}\n {/*<img src={this.template?.documents?.thumbnail_url || ''} alt=\"Template Thumbnail\" class=\"thumbnail\" />*/}\n\n <span class=\"name\">{this.template.name}</span>\n <span class=\"org-name\">{this.template.organization?.name || 'Public'}</span>\n\n <hr />\n\n <div class=\"controls\">\n <div class=\"control\">\n <span class=\"icon\" innerHTML={StarIcon} />\n <span class=\"value\">{this.template.star_counter}</span>\n </div>\n\n <div class=\"control secondary\">\n <span class=\"icon\" innerHTML={PagesIcon} />\n <span class=\"value\">{this.template?.documents?.[0]?.pages || 1}</span>\n </div>\n\n <div class=\"control secondary\">\n <span class=\"icon\" innerHTML={EmailIcon} />\n <span class=\"value\">{this.template.counter}</span>\n </div>\n\n <span class=\"additional-controls\" innerHTML={ActionsIcon} />\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"mEAAA,IAAMA,uBAAyB,2wDAC/B,IAAAC,0BAAeD,uBCEf,IAAME,YAAc,mTAEpB,IAAMC,UAAY,qRAElB,IAAMC,UAAY,sSAElB,IAAMC,SAAW,yoE,IAUJC,oBAAmB,W,+DAM9BA,EAAAC,UAAAC,OAAA,W,YACE,OACEC,EAACC,KAAI,CAAAC,IAAA,4CAIHF,EAAA,QAAAE,IAAA,2CAAMC,MAAM,QAAQC,KAAKC,SAASC,MAClCN,EAAA,QAAAE,IAAA,2CAAMC,MAAM,cAAYI,EAAAH,KAAKC,SAASG,gBAAY,MAAAD,SAAA,SAAAA,EAAED,OAAQ,UAE5DN,EAAA,MAAAE,IAAA,6CAEAF,EAAA,OAAAE,IAAA,2CAAKC,MAAM,YACTH,EAAA,OAAAE,IAAA,2CAAKC,MAAM,WACTH,EAAA,QAAAE,IAAA,2CAAMC,MAAM,OAAOM,UAAWb,WAC9BI,EAAA,QAAAE,IAAA,2CAAMC,MAAM,SAASC,KAAKC,SAASK,eAGrCV,EAAA,OAAAE,IAAA,2CAAKC,MAAM,qBACTH,EAAA,QAAAE,IAAA,2CAAMC,MAAM,OAAOM,UAAWd,YAC9BK,EAAA,QAAAE,IAAA,2CAAMC,MAAM,WAASQ,GAAAC,GAAAC,EAAAT,KAAKC,YAAQ,MAAAQ,SAAA,SAAAA,EAAEC,aAAS,MAAAF,SAAA,SAAAA,EAAG,MAAE,MAAAD,SAAA,SAAAA,EAAEI,QAAS,IAG/Df,EAAA,OAAAE,IAAA,2CAAKC,MAAM,qBACTH,EAAA,QAAAE,IAAA,2CAAMC,MAAM,OAAOM,UAAWf,YAC9BM,EAAA,QAAAE,IAAA,2CAAMC,MAAM,SAASC,KAAKC,SAASW,UAGrChB,EAAA,QAAAE,IAAA,2CAAMC,MAAM,sBAAsBM,UAAWhB,e,WAjCvB,G","ignoreList":[]}
|
@@ -1 +1,2 @@
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,r,o){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function n(e){try{c(o.next(e))}catch(e){i(e)}}function s(e){try{c(o["throw"](e))}catch(e){i(e)}}function c(e){e.done?r(e.value):a(e.value).then(n,s)}c((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,a,i,n;return n={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function s(e){return function(t){return c([e,t])}}function c(s){if(o)throw new TypeError("Generator is already executing.");while(n&&(n=0,s[0]&&(r=0)),r)try{if(o=1,a&&(i=s[0]&2?a["return"]:s[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;if(a=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(s[0]===6&&r.label<i[1]){r.label=i[1];i=s;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(s);break}if(i[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];a=0}finally{o=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host}from"./index-272d51a4.js";import{VerdocsEndpoint,createTemplate}from"@verdocs/js-sdk";import{S as SDKError}from"./errors-887f1e88.js";var verdocsTemplateCreateCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-create{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-template-create form{background-color:#ffffff;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-create form .upload-box{-webkit-box-sizing:border-box;box-sizing:border-box;width:320px;text-align:center;padding:44px 18px 66px;border:2px dashed #979797;color:rgba(0, 0, 0, 0.54)}verdocs-template-create form .upload-box.drag-over{border:2px solid #4c56cb}verdocs-template-create form .upload-box svg{width:64px;fill:#5c6575}verdocs-template-create p{color:#33364b;margin-top:20px;font-size:18px;font-weight:500;overflow-wrap:anywhere}verdocs-template-create p.subscript{color:#5c6575;font-size:14px;margin:20px}verdocs-template-create .loader-wrapper{background-color:#ffffff;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;width:320px;height:320px;text-align:center;border:2px dashed #979797;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-create .progress-wrapper{padding:20px}verdocs-template-create .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-create .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-template-create ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-create ::-moz-placeholder{color:#aaaaaa}verdocs-template-create :-ms-input-placeholder{color:#aaaaaa}verdocs-template-create ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-create ::placeholder{color:#aaaaaa}verdocs-template-create .error{margin:20px 0;color:#cc0000}';var VerdocsTemplateCreateStyle0=verdocsTemplateCreateCss;var FileIcon='<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24"><path d="M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"></path></svg>';var VerdocsTemplateCreate=function(){function e(e){registerInstance(this,e);this.exit=createEvent(this,"exit",7);this.next=createEvent(this,"next",7);this.sdkError=createEvent(this,"sdkError",7);this.templateCreated=createEvent(this,"templateCreated",7);this.endpoint=VerdocsEndpoint.getDefault();this.maxSize=20.5*1024*1024;this.file=undefined;this.creating=false;this.progressLabel="Uploading...";this.progressPercent=0;this.errorMessage=""}e.prototype.componentWillLoad=function(){this.endpoint.setTimeout(3e4);this.endpoint.loadSession()};e.prototype.handleFileChanged=function(e){var t;this.errorMessage="";this.file=((t=e.target.files)===null||t===void 0?void 0:t[0])||null;console.log("[CREATE] Selected file",this.file);var r=this.file.size;if(r>this.maxSize){this.errorMessage="Total file size must not exceed 20MB."}};e.prototype.handleUpload=function(e){e.stopPropagation();var t=document.getElementById("verdocs-template-create-file");t.click()};e.prototype.handleCancel=function(e){e.stopPropagation();this.exit.emit()};e.prototype.handleSubmit=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,o,a,i,n,s;var c=this;return __generator(this,(function(l){switch(l.label){case 0:e.stopPropagation();if(!this.file){return[2]}this.creating=true;this.progressLabel="Uploading...";l.label=1;case 1:l.trys.push([1,3,,4]);return[4,createTemplate(this.endpoint,{name:this.file.name,initial_reminder:0,followup_reminders:0,documents:[this.file]},(function(e){if(e>=99){c.progressLabel="Processing...";c.progressPercent=100}else{c.progressPercent=e}}))];case 2:n=l.sent();console.log("[CREATE] Created template",n);(t=this.templateCreated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,template:n,templateId:n.id});(r=this.next)===null||r===void 0?void 0:r.emit(n);this.creating=false;this.progressLabel="";this.progressPercent=0;return[3,4];case 3:s=l.sent();console.log("[CREATE] Error creating template",s);(o=this.sdkError)===null||o===void 0?void 0:o.emit(new SDKError(s.message,(a=s.response)===null||a===void 0?void 0:a.status,(i=s.response)===null||i===void 0?void 0:i.data));this.creating=false;return[3,4];case 4:return[2]}}))}))};e.prototype.render=function(){var e=this;if(!this.endpoint.session){return h(Host,null,h("verdocs-component-error",{message:"You must be authenticated to use this module."}))}return h(Host,null,h("form",{onSubmit:function(e){return e.preventDefault()},onClick:function(e){return e.stopPropagation()},autocomplete:"off"},h("input",{type:"file",id:"verdocs-template-create-file",multiple:true,accept:".pdf,application/pdf,.doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document",style:{display:"none"},onChange:function(t){return e.handleFileChanged(t)}}),this.creating?h("div",{class:"loader-wrapper"},h("verdocs-loader",null),this.progressLabel&&h("div",{class:"progress-wrapper"},h("verdocs-progress-bar",{showPercent:true,percent:this.progressPercent,label:this.progressLabel}))):h("div",{class:"upload-box",onDrop:function(t){t.preventDefault();t.target.classList.remove("drag-over");e.file=t.dataTransfer.files[0];if(e.file.size>e.maxSize){e.errorMessage="Total file size must not exceed 20MB."}},onDragOver:function(e){e.preventDefault();e.dataTransfer.dropEffect="copy"},onDragEnter:function(e){return e.target.classList.add("drag-over")},onDragLeave:function(e){return e.target.classList.remove("drag-over")}},h("span",{innerHTML:FileIcon,style:{display:"flex",justifyContent:"center"}}),h("p",null,this.file?this.file.name:"Drag and drop your files here"),h("p",{class:"subscript"},"Supported files: PDF, Word"),h("verdocs-button",{label:this.file?"Select a different file":"Select a file from your computer",size:"small",onClick:function(t){return e.handleUpload(t)}})),!!this.errorMessage&&h("div",{class:"error"},this.errorMessage),h("div",{class:"buttons"},h("verdocs-button",{variant:"outline",label:"Cancel",size:"small",onClick:function(t){return e.handleCancel(t)},disabled:this.creating}),h("verdocs-button",{label:"Next",size:"small",onClick:function(t){return e.handleSubmit(t)},disabled:!this.file||this.creating||!!this.errorMessage}))))};return e}();VerdocsTemplateCreate.style=VerdocsTemplateCreateStyle0;export{VerdocsTemplateCreate as verdocs_template_create};
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,r,o){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function n(e){try{c(o.next(e))}catch(e){i(e)}}function s(e){try{c(o["throw"](e))}catch(e){i(e)}}function c(e){e.done?r(e.value):a(e.value).then(n,s)}c((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,a,i,n;return n={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function s(e){return function(t){return c([e,t])}}function c(s){if(o)throw new TypeError("Generator is already executing.");while(n&&(n=0,s[0]&&(r=0)),r)try{if(o=1,a&&(i=s[0]&2?a["return"]:s[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;if(a=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(s[0]===6&&r.label<i[1]){r.label=i[1];i=s;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(s);break}if(i[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];a=0}finally{o=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host}from"./index-272d51a4.js";import{VerdocsEndpoint,createTemplate}from"@verdocs/js-sdk";import{S as SDKError}from"./errors-887f1e88.js";var verdocsTemplateCreateCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-create{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-template-create form{background-color:#ffffff;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-create form .upload-box{-webkit-box-sizing:border-box;box-sizing:border-box;width:320px;text-align:center;padding:44px 18px 66px;border:2px dashed #979797;color:rgba(0, 0, 0, 0.54)}verdocs-template-create form .upload-box.drag-over{border:2px solid #4c56cb}verdocs-template-create form .upload-box svg{width:64px;fill:#5c6575}verdocs-template-create p{color:#33364b;margin-top:20px;font-size:18px;font-weight:500;overflow-wrap:anywhere}verdocs-template-create p.subscript{color:#5c6575;font-size:14px;margin:20px}verdocs-template-create .loader-wrapper{background-color:#ffffff;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;width:320px;height:320px;text-align:center;border:2px dashed #979797;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-create .progress-wrapper{padding:20px}verdocs-template-create .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-create .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-template-create ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-create ::-moz-placeholder{color:#aaaaaa}verdocs-template-create :-ms-input-placeholder{color:#aaaaaa}verdocs-template-create ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-create ::placeholder{color:#aaaaaa}verdocs-template-create .error{margin:20px 0;color:#cc0000}';var VerdocsTemplateCreateStyle0=verdocsTemplateCreateCss;var FileIcon='<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24"><path d="M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"></path></svg>';var VerdocsTemplateCreate=function(){function e(e){registerInstance(this,e);this.exit=createEvent(this,"exit",7);this.next=createEvent(this,"next",7);this.sdkError=createEvent(this,"sdkError",7);this.templateCreated=createEvent(this,"templateCreated",7);this.endpoint=VerdocsEndpoint.getDefault();this.maxSize=20.5*1024*1024;this.file=undefined;this.creating=false;this.progressLabel="Uploading...";this.progressPercent=0;this.errorMessage=""}e.prototype.componentWillLoad=function(){this.endpoint.setTimeout(3e4);this.endpoint.loadSession()};e.prototype.handleFileChanged=function(e){var t;this.errorMessage="";this.file=((t=e.target.files)===null||t===void 0?void 0:t[0])||null;console.log("[CREATE] Selected file",this.file);var r=this.file.size;if(r>this.maxSize){this.errorMessage="Total file size must not exceed 20MB."}};e.prototype.handleUpload=function(e){e.stopPropagation();var t=document.getElementById("verdocs-template-create-file");t.click()};e.prototype.handleCancel=function(e){e.stopPropagation();this.exit.emit()};e.prototype.handleSubmit=function(e){return __awaiter(this,void 0,void 0,(function(){var t,r,o,a,i,n,s;var c=this;return __generator(this,(function(l){switch(l.label){case 0:e.stopPropagation();if(!this.file){return[2]}this.creating=true;this.progressLabel="Uploading...";l.label=1;case 1:l.trys.push([1,3,,4]);return[4,createTemplate(this.endpoint,{name:this.file.name,initial_reminder:0,followup_reminders:0,documents:[this.file]},(function(e){if(e>=99){c.progressLabel="Processing...";c.progressPercent=100}else{c.progressPercent=e}}))];case 2:n=l.sent();console.log("[CREATE] Created template",n);(t=this.templateCreated)===null||t===void 0?void 0:t.emit({endpoint:this.endpoint,template:n,templateId:n.id});(r=this.next)===null||r===void 0?void 0:r.emit(n);this.creating=false;this.progressLabel="";this.progressPercent=0;return[3,4];case 3:s=l.sent();console.log("[CREATE] Error creating template",s);(o=this.sdkError)===null||o===void 0?void 0:o.emit(new SDKError(s.message,(a=s.response)===null||a===void 0?void 0:a.status,(i=s.response)===null||i===void 0?void 0:i.data));this.creating=false;return[3,4];case 4:return[2]}}))}))};e.prototype.render=function(){var e=this;if(!this.endpoint.session){return h(Host,null,h("verdocs-component-error",{message:"You must be authenticated to use this module."}))}return h(Host,null,h("form",{onSubmit:function(e){return e.preventDefault()},onClick:function(e){return e.stopPropagation()},autocomplete:"off"},h("input",{type:"file",id:"verdocs-template-create-file",multiple:true,accept:".pdf,application/pdf,.doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document",style:{display:"none"},onChange:function(t){return e.handleFileChanged(t)}}),this.creating?h("div",{class:"loader-wrapper"},h("verdocs-loader",null),this.progressLabel&&h("div",{class:"progress-wrapper"},h("verdocs-progress-bar",{showPercent:true,percent:this.progressPercent,label:this.progressLabel}))):h("div",{class:"upload-box",onDrop:function(t){t.preventDefault();t.target.classList.remove("drag-over");e.file=t.dataTransfer.files[0];if(e.file.size>e.maxSize){e.errorMessage="Total file size must not exceed 20MB."}},onDragOver:function(e){e.preventDefault();e.dataTransfer.dropEffect="copy"},onDragEnter:function(e){return e.target.classList.add("drag-over")},onDragLeave:function(e){return e.target.classList.remove("drag-over")}},h("span",{innerHTML:FileIcon,style:{display:"flex",justifyContent:"center"}}),h("p",null,this.file?this.file.name:"Drag and drop your files here"),h("p",{class:"subscript"},"Supported files: PDF, Word"),h("verdocs-button",{label:this.file?"Select a different file":"Select a file from your computer",size:"small",onClick:function(t){return e.handleUpload(t)}})),!!this.errorMessage&&h("div",{class:"error"},this.errorMessage),h("div",{class:"buttons"},h("verdocs-button",{variant:"outline",label:"Cancel",size:"small",onClick:function(t){return e.handleCancel(t)},disabled:this.creating}),h("verdocs-button",{label:"Next",size:"small",onClick:function(t){return e.handleSubmit(t)},disabled:!this.file||this.creating||!!this.errorMessage}))))};return e}();VerdocsTemplateCreate.style=VerdocsTemplateCreateStyle0;export{VerdocsTemplateCreate as verdocs_template_create};
|
2
|
+
//# sourceMappingURL=verdocs-template-create.entry.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["verdocsTemplateCreateCss","VerdocsTemplateCreateStyle0","FileIcon","VerdocsTemplateCreate","VerdocsEndpoint","getDefault","class_1","prototype","componentWillLoad","this","endpoint","setTimeout","loadSession","handleFileChanged","e","errorMessage","file","_a","target","files","console","log","totalSize","size","maxSize","handleUpload","stopPropagation","fileElem","document","getElementById","click","handleCancel","exit","emit","handleSubmit","creating","progressLabel","createTemplate","name","initial_reminder","followup_reminders","documents","percent","_this","progressPercent","template","_f","sent","templateCreated","templateId","id","_b","next","e_1","_c","sdkError","SDKError","message","_d","response","status","_e","data","render","session","h","Host","onSubmit","preventDefault","onClick","autocomplete","type","multiple","accept","style","display","onChange","class","showPercent","label","onDrop","classList","remove","dataTransfer","onDragOver","dropEffect","onDragEnter","add","onDragLeave","innerHTML","justifyContent","variant","disabled"],"sources":["src/components/templates/verdocs-template-create/verdocs-template-create.scss?tag=verdocs-template-create","src/components/templates/verdocs-template-create/verdocs-template-create.tsx"],"sourcesContent":["@import '../../../theme.scss';\n\nverdocs-template-create {\n font-family: $verdocs-primary-font;\n\n form {\n background-color: $verdocs-grey-4;\n padding: 12px;\n display: flex;\n flex-direction: column;\n\n .upload-box {\n box-sizing: border-box;\n width: 320px;\n text-align: center;\n padding: 44px 18px 66px;\n border: 2px dashed #979797;\n color: rgba(0, 0, 0, 0.54);\n\n &.drag-over {\n border: 2px solid $verdocs-deep-blue;\n }\n\n svg {\n width: 64px;\n fill: #5c6575;\n }\n }\n }\n\n p {\n color: $verdocs-grey-1;\n margin-top: 20px;\n font-size: 18px;\n font-weight: 500;\n overflow-wrap: anywhere;\n\n &.subscript {\n color: $verdocs-bg-4;\n font-size: 14px;\n margin: 20px;\n }\n }\n\n .loader-wrapper {\n background-color: $verdocs-grey-4;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n position: relative;\n width: 320px;\n height: 320px;\n text-align: center;\n border: 2px dashed #979797;\n justify-content: flex-end;\n }\n\n .progress-wrapper {\n padding: 20px;\n }\n\n .buttons {\n display: flex;\n column-gap: 8px;\n margin-top: 16px;\n align-items: center;\n flex-direction: row;\n justify-content: flex-end;\n\n .flex-fill {\n flex: 1;\n }\n }\n\n ::placeholder {\n color: $verdocs-bg-2;\n }\n\n .error {\n margin: 20px 0;\n color: $verdocs-red-1;\n }\n}\n","import {createTemplate, ITemplate, VerdocsEndpoint} from '@verdocs/js-sdk';\nimport {Component, h, Event, EventEmitter, Prop, State, Host} from '@stencil/core';\nimport {SDKError} from '../../../utils/errors';\n\nconst FileIcon =\n '<svg focusable=\"false\" aria-hidden=\"true\" viewBox=\"0 0 24 24\"><path d=\"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z\"></path></svg>';\n\n/**\n * Displays a file upload mechanism suitable for the first step of creating a template.\n * This is typically the first step in a template creation workflow.\n */\n@Component({\n tag: 'verdocs-template-create',\n styleUrl: 'verdocs-template-create.scss',\n shadow: false,\n})\nexport class VerdocsTemplateCreate {\n /**\n * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.\n */\n @Prop() endpoint: VerdocsEndpoint = VerdocsEndpoint.getDefault();\n\n @Prop({mutable: true})\n maxSize: number = 20.5 * 1024 * 1024;\n\n /**\n * Event fired when the step is cancelled. This is called exit to avoid conflicts with the JS-reserved \"cancel\" event name.\n */\n @Event({composed: true}) exit: EventEmitter;\n\n /**\n * Event fired when the user changes the type.\n */\n @Event({composed: true}) next: EventEmitter<ITemplate>;\n\n /**\n * Event fired if an error occurs. The event details will contain information about the error. Most errors will\n * terminate the process, and the calling application should correct the condition and re-render the component.\n */\n @Event({composed: true}) sdkError: EventEmitter<SDKError>;\n\n /**\n * Event fired when the user updates the template.\n */\n @Event({composed: true}) templateCreated: EventEmitter<{endpoint: VerdocsEndpoint; template: ITemplate; templateId: string}>;\n\n @State() file: File | null;\n @State() creating = false;\n @State() progressLabel = 'Uploading...';\n @State() progressPercent = 0;\n @State() errorMessage = '';\n\n componentWillLoad() {\n this.endpoint.setTimeout(30000);\n this.endpoint.loadSession();\n }\n\n handleFileChanged(e: any) {\n this.errorMessage = '';\n this.file = e.target.files?.[0] || null;\n console.log('[CREATE] Selected file', this.file);\n\n const totalSize = this.file.size;\n if (totalSize > this.maxSize) {\n this.errorMessage = 'Total file size must not exceed 20MB.';\n }\n }\n\n handleUpload(e) {\n e.stopPropagation();\n const fileElem = document.getElementById('verdocs-template-create-file');\n fileElem.click();\n }\n\n handleCancel(e) {\n e.stopPropagation();\n this.exit.emit();\n }\n\n async handleSubmit(e) {\n e.stopPropagation();\n\n // Should be true if we're here because onClick is only enabled then. We're just guarding this for Typescript.\n if (!this.file) {\n return;\n }\n\n this.creating = true;\n this.progressLabel = 'Uploading...';\n\n try {\n const template = await createTemplate(\n this.endpoint,\n {\n name: this.file.name,\n // TODO: Make optional in the SDK\n initial_reminder: 0,\n followup_reminders: 0,\n documents: [this.file],\n },\n percent => {\n if (percent >= 99) {\n this.progressLabel = 'Processing...';\n this.progressPercent = 100;\n } else {\n this.progressPercent = percent;\n }\n },\n );\n\n console.log('[CREATE] Created template', template);\n this.templateCreated?.emit({endpoint: this.endpoint, template, templateId: template.id});\n this.next?.emit(template);\n this.creating = false;\n this.progressLabel = '';\n this.progressPercent = 0;\n } catch (e) {\n console.log('[CREATE] Error creating template', e);\n this.sdkError?.emit(new SDKError(e.message, e.response?.status, e.response?.data));\n this.creating = false;\n }\n }\n\n render() {\n if (!this.endpoint.session) {\n return (\n <Host>\n <verdocs-component-error message=\"You must be authenticated to use this module.\" />\n </Host>\n );\n }\n\n return (\n <Host>\n <form onSubmit={e => e.preventDefault()} onClick={e => e.stopPropagation()} autocomplete=\"off\">\n <input\n type=\"file\"\n id=\"verdocs-template-create-file\"\n multiple\n accept=\".pdf,application/pdf,.doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document\"\n style={{display: 'none'}}\n onChange={e => this.handleFileChanged(e)}\n />\n\n {this.creating ? (\n <div class=\"loader-wrapper\">\n <verdocs-loader />\n {this.progressLabel && (\n <div class=\"progress-wrapper\">\n <verdocs-progress-bar showPercent={true} percent={this.progressPercent} label={this.progressLabel} />\n </div>\n )}\n </div>\n ) : (\n <div\n class=\"upload-box\"\n onDrop={(e: any) => {\n e.preventDefault();\n e.target.classList.remove('drag-over');\n this.file = e.dataTransfer.files[0];\n\n if (this.file.size > this.maxSize) {\n this.errorMessage = 'Total file size must not exceed 20MB.';\n }\n }}\n onDragOver={(e: any) => {\n e.preventDefault();\n e.dataTransfer.dropEffect = 'copy';\n }}\n onDragEnter={(e: any) => e.target.classList.add('drag-over')}\n onDragLeave={(e: any) => e.target.classList.remove('drag-over')}\n >\n <span innerHTML={FileIcon} style={{display: 'flex', justifyContent: 'center'}} />\n <p>{this.file ? this.file.name : 'Drag and drop your files here'}</p>\n <p class=\"subscript\">Supported files: PDF, Word</p>\n\n <verdocs-button label={this.file ? 'Select a different file' : 'Select a file from your computer'} size=\"small\" onClick={e => this.handleUpload(e)} />\n </div>\n )}\n\n {!!this.errorMessage && <div class=\"error\">{this.errorMessage}</div>}\n\n <div class=\"buttons\">\n <verdocs-button variant=\"outline\" label=\"Cancel\" size=\"small\" onClick={e => this.handleCancel(e)} disabled={this.creating} />\n <verdocs-button label=\"Next\" size=\"small\" onClick={e => this.handleSubmit(e)} disabled={!this.file || this.creating || !!this.errorMessage} />\n </div>\n </form>\n </Host>\n );\n }\n}\n"],"mappings":"8oDAAA,IAAMA,yBAA2B,4nEACjC,IAAAC,4BAAeD,yBCGf,IAAME,SACJ,wL,IAWWC,sBAAqB,W,uOAIIC,gBAAgBC,a,aAGlC,KAAO,KAAO,K,kCAwBZ,M,mBACK,e,qBACE,E,kBACH,E,CAExBC,EAAAC,UAAAC,kBAAA,WACEC,KAAKC,SAASC,WAAW,KACzBF,KAAKC,SAASE,a,EAGhBN,EAAAC,UAAAM,kBAAA,SAAkBC,G,MAChBL,KAAKM,aAAe,GACpBN,KAAKO,OAAOC,EAAAH,EAAEI,OAAOC,SAAK,MAAAF,SAAA,SAAAA,EAAG,KAAM,KACnCG,QAAQC,IAAI,yBAA0BZ,KAAKO,MAE3C,IAAMM,EAAYb,KAAKO,KAAKO,KAC5B,GAAID,EAAYb,KAAKe,QAAS,CAC5Bf,KAAKM,aAAe,uC,GAIxBT,EAAAC,UAAAkB,aAAA,SAAaX,GACXA,EAAEY,kBACF,IAAMC,EAAWC,SAASC,eAAe,gCACzCF,EAASG,O,EAGXxB,EAAAC,UAAAwB,aAAA,SAAajB,GACXA,EAAEY,kBACFjB,KAAKuB,KAAKC,M,EAGN3B,EAAAC,UAAA2B,aAAN,SAAmBpB,G,yIACjBA,EAAEY,kBAGF,IAAKjB,KAAKO,KAAM,CACd,S,CAGFP,KAAK0B,SAAW,KAChB1B,KAAK2B,cAAgB,e,uCAGF,SAAMC,eACrB5B,KAAKC,SACL,CACE4B,KAAM7B,KAAKO,KAAKsB,KAEhBC,iBAAkB,EAClBC,mBAAoB,EACpBC,UAAW,CAAChC,KAAKO,QAEnB,SAAA0B,GACE,GAAIA,GAAW,GAAI,CACjBC,EAAKP,cAAgB,gBACrBO,EAAKC,gBAAkB,G,KAClB,CACLD,EAAKC,gBAAkBF,C,aAdvBG,EAAWC,EAAAC,OAmBjB3B,QAAQC,IAAI,4BAA6BwB,IACzC5B,EAAAR,KAAKuC,mBAAe,MAAA/B,SAAA,SAAAA,EAAEgB,KAAK,CAACvB,SAAUD,KAAKC,SAAUmC,SAAQA,EAAEI,WAAYJ,EAASK,MACpFC,EAAA1C,KAAK2C,QAAI,MAAAD,SAAA,SAAAA,EAAElB,KAAKY,GAChBpC,KAAK0B,SAAW,MAChB1B,KAAK2B,cAAgB,GACrB3B,KAAKmC,gBAAkB,E,8BAEvBxB,QAAQC,IAAI,mCAAoCgC,IAChDC,EAAA7C,KAAK8C,YAAQ,MAAAD,SAAA,SAAAA,EAAErB,KAAK,IAAIuB,SAASH,EAAEI,SAASC,EAAAL,EAAEM,YAAQ,MAAAD,SAAA,SAAAA,EAAEE,QAAQC,EAAAR,EAAEM,YAAQ,MAAAE,SAAA,SAAAA,EAAEC,OAC5ErD,KAAK0B,SAAW,M,qCAIpB7B,EAAAC,UAAAwD,OAAA,eAAApB,EAAAlC,KACE,IAAKA,KAAKC,SAASsD,QAAS,CAC1B,OACEC,EAACC,KAAI,KACHD,EAAA,2BAAyBR,QAAQ,kD,CAKvC,OACEQ,EAACC,KAAI,KACHD,EAAA,QAAME,SAAU,SAAArD,GAAK,OAAAA,EAAEsD,gBAAF,EAAoBC,QAAS,SAAAvD,GAAK,OAAAA,EAAEY,iBAAF,EAAqB4C,aAAa,OACvFL,EAAA,SACEM,KAAK,OACLrB,GAAG,+BACHsB,SAAQ,KACRC,OAAO,6HACPC,MAAO,CAACC,QAAS,QACjBC,SAAU,SAAA9D,GAAK,OAAA6B,EAAK9B,kBAAkBC,EAAvB,IAGhBL,KAAK0B,SACJ8B,EAAA,OAAKY,MAAM,kBACTZ,EAAA,uBACCxD,KAAK2B,eACJ6B,EAAA,OAAKY,MAAM,oBACTZ,EAAA,wBAAsBa,YAAa,KAAMpC,QAASjC,KAAKmC,gBAAiBmC,MAAOtE,KAAK2B,kBAK1F6B,EAAA,OACEY,MAAM,aACNG,OAAQ,SAAClE,GACPA,EAAEsD,iBACFtD,EAAEI,OAAO+D,UAAUC,OAAO,aAC1BvC,EAAK3B,KAAOF,EAAEqE,aAAahE,MAAM,GAEjC,GAAIwB,EAAK3B,KAAKO,KAAOoB,EAAKnB,QAAS,CACjCmB,EAAK5B,aAAe,uC,GAGxBqE,WAAY,SAACtE,GACXA,EAAEsD,iBACFtD,EAAEqE,aAAaE,WAAa,M,EAE9BC,YAAa,SAACxE,GAAW,OAAAA,EAAEI,OAAO+D,UAAUM,IAAI,YAAvB,EACzBC,YAAa,SAAC1E,GAAW,OAAAA,EAAEI,OAAO+D,UAAUC,OAAO,YAA1B,GAEzBjB,EAAA,QAAMwB,UAAWvF,SAAUwE,MAAO,CAACC,QAAS,OAAQe,eAAgB,YACpEzB,EAAA,SAAIxD,KAAKO,KAAOP,KAAKO,KAAKsB,KAAO,iCACjC2B,EAAA,KAAGY,MAAM,aAAW,8BAEpBZ,EAAA,kBAAgBc,MAAOtE,KAAKO,KAAO,0BAA4B,mCAAoCO,KAAK,QAAQ8C,QAAS,SAAAvD,GAAK,OAAA6B,EAAKlB,aAAaX,EAAlB,OAI/HL,KAAKM,cAAgBkD,EAAA,OAAKY,MAAM,SAASpE,KAAKM,cAEjDkD,EAAA,OAAKY,MAAM,WACTZ,EAAA,kBAAgB0B,QAAQ,UAAUZ,MAAM,SAASxD,KAAK,QAAQ8C,QAAS,SAAAvD,GAAK,OAAA6B,EAAKZ,aAAajB,EAAlB,EAAsB8E,SAAUnF,KAAK0B,WACjH8B,EAAA,kBAAgBc,MAAM,OAAOxD,KAAK,QAAQ8C,QAAS,SAAAvD,GAAK,OAAA6B,EAAKT,aAAapB,EAAlB,EAAsB8E,UAAWnF,KAAKO,MAAQP,KAAK0B,YAAc1B,KAAKM,iB,WAxKxG,G","ignoreList":[]}
|
@@ -1 +1,2 @@
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,o,r){function i(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,a){function s(e){try{c(r.next(e))}catch(e){a(e)}}function n(e){try{c(r["throw"](e))}catch(e){a(e)}}function c(e){e.done?o(e.value):i(e.value).then(s,n)}c((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,s;return s={next:n(0),throw:n(1),return:n(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function n(e){return function(t){return c([e,t])}}function c(n){if(r)throw new TypeError("Generator is already executing.");while(s&&(s=0,n[0]&&(o=0)),o)try{if(r=1,i&&(a=n[0]&2?i["return"]:n[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,n[1])).done)return a;if(i=0,a)n=[n[0]&2,a.value];switch(n[0]){case 0:case 1:a=n;break;case 4:o.label++;return{value:n[1],done:false};case 5:o.label++;i=n[1];n=[0];continue;case 7:n=o.ops.pop();o.trys.pop();continue;default:if(!(a=o.trys,a=a.length>0&&a[a.length-1])&&(n[0]===6||n[0]===2)){o=0;continue}if(n[0]===3&&(!a||n[1]>a[0]&&n[1]<a[3])){o.label=n[1];break}if(n[0]===6&&o.label<a[1]){o.label=a[1];a=n;break}if(a&&o.label<a[2]){o.label=a[2];o.ops.push(n);break}if(a[2])o.ops.pop();o.trys.pop();continue}n=t.call(e,o)}catch(e){n=[6,e];i=0}finally{r=a=0}if(n[0]&5)throw n[1];return{value:n[0]?n[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,F as Fragment,g as getElement}from"./index-272d51a4.js";import{VerdocsEndpoint,getTemplateDocumentPageDisplayUri,getTemplate}from"@verdocs/js-sdk";import{t as throttle,j as getControlStyles,g as getFieldId}from"./utils-bd656c37.js";import{S as Store}from"./Datastore-b55570ff.js";import{c as createPopper}from"./popper-0fbeff6d.js";import"./_commonjsHelpers-bdec4bbd.js";import"./Types-95d86a44.js";import"./format-b8602175.js";var verdocsTemplateDocumentPageCss="@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-document-page{width:100%;position:relative}verdocs-template-document-page .verdocs-template-document-page-layer{position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294);box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294)}verdocs-template-document-page .verdocs-template-document-page-layer.img{width:100%}verdocs-template-document-page .placeholder{opacity:0.1;width:612px;height:792px;-webkit-box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294);box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294)}";var VerdocsTemplateDocumentPageStyle0=verdocsTemplateDocumentPageCss;var VerdocsTemplateDocumentPage=function(){function e(e){registerInstance(this,e);this.pageRendered=createEvent(this,"pageRendered",7);this.templateListenerId=null;this.endpoint=VerdocsEndpoint.getDefault();this.editable=false;this.disabled=false;this.done=false;this.templateId="";this.documentId="";this.pageNumber=1;this.virtualWidth=612;this.virtualHeight=792;this.layers=[{name:"page",type:"canvas"}];this.containerId="verdocs-document-page-".concat(Math.random().toString(36).substring(2,11));this.renderedWidth=this.virtualWidth;this.renderedHeight=this.virtualHeight;this.naturalWidth=this.virtualWidth;this.naturalHeight=this.virtualHeight;this.aspectRatio=this.virtualWidth/this.virtualHeight;this.skipFirstNotification=true;this.pageDisplayUri="";this.xScale=1;this.yScale=1;this.loading=true;this.template=null}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this;return[4,getTemplateDocumentPageDisplayUri(this.endpoint,this.documentId,this.pageNumber)];case 1:e.pageDisplayUri=t.sent();this.listenToTemplate();return[2]}}))}))};e.prototype.componentDidLoad=function(){var e=this;this.resizeObserver=new ResizeObserver(throttle((function(t){for(var o=0,r=t;o<r.length;o++){var i=r[o];var a=i.contentRect.width;e.renderedWidth=a;e.renderedHeight=e.virtualHeight*(a/e.virtualWidth)}e.notifyRenderedSize()}),100));this.resizeObserver.observe(this.container)};e.prototype.componentDidUpdate=function(){this.notifyRenderedSize()};e.prototype.disconnectedCallback=function(){var e;(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect();this.unlistenToTemplate()};e.prototype.listenToTemplate=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){this.unlistenToTemplate();Store.subscribe("templates",this.templateId,(function(){return getTemplate(e.endpoint,e.templateId)}),false,(function(t){e.template=t;e.loading=false}));return[2]}))}))};e.prototype.unlistenToTemplate=function(){if(this.templateListenerId){Store.store.delListener(this.templateListenerId);this.templateListenerId=null}};e.prototype.notifyRenderedSize=function(){if(this.skipFirstNotification){this.skipFirstNotification=false;return}var e=this.renderedWidth/this.virtualWidth;if(this.xScale!==e){this.xScale=e}var t=this.renderedHeight/this.virtualHeight;if(this.yScale!==t){this.yScale=t}this.pageRendered.emit({containerId:this.containerId,documentId:this.documentId,pageNumber:this.pageNumber,virtualWidth:this.virtualWidth,virtualHeight:this.virtualHeight,renderedWidth:this.renderedWidth,renderedHeight:this.renderedHeight,naturalWidth:this.naturalWidth,naturalHeight:this.naturalHeight,aspectRatio:this.aspectRatio,xScale:e,yScale:t})};e.prototype.render=function(){var e=this;if(this.loading){return h(Host,null,h("img",{src:"https://public-assets.verdocs.com/loading-placeholder.png",class:"placeholder",alt:"Placeholder page"}))}var t="".concat(this.renderedHeight,"px");return h(Host,{id:"".concat(this.containerId),style:{height:t,flex:"0 0 ".concat(t)}},this.layers.map((function(o){var r;return o.type==="div"?h("div",{class:"verdocs-template-document-page-layer",id:"".concat(e.containerId,"-").concat(o.name),style:{height:t}},o.name==="controls"&&(((r=e.template)===null||r===void 0?void 0:r.fields)||[]).filter((function(t){return t&&t.page===e.pageNumber})).map((function(t){var o,r;var i=getFieldId(t);var a=t.name,s=t.type,n=t.multiline;var c=e,l=c.xScale,d=c.yScale,u=c.templateId,p=c.editable,f=c.disabled,b=c.done,m=c.pageNumber;if(((o=t["setting"])===null||o===void 0?void 0:o.leading)>0||((r=t["settings"])===null||r===void 0?void 0:r.leading)>0){s="textarea";n=true}switch(s){case"textbox":return h("verdocs-field-textbox",{id:i,fieldname:a,source:"template",sourceid:u,editable:p,multiline:n,disabled:f,done:b,xscale:l,yscale:d,pagenumber:m,style:getControlStyles(t,l,d)});case"textarea":return h("verdocs-field-textarea",{id:i,fieldname:a,source:"template",sourceid:u,editable:p,disabled:f,done:b,xscale:l,yscale:d,pagenumber:m,style:getControlStyles(t,l,d)});case"date":return h("verdocs-field-date",{id:i,fieldname:a,source:"template",sourceid:u,editable:p,disabled:f,done:b,xscale:l,yscale:d,pagenumber:m,style:getControlStyles(t,l,d)});case"attachment":return h("verdocs-field-attachment",{id:i,fieldname:a,source:"template",sourceid:u,editable:p,disabled:f,done:b,xscale:l,yscale:d,pagenumber:m,style:getControlStyles(t,l,d)});case"dropdown":return h("verdocs-field-dropdown",{id:i,fieldname:a,source:"template",sourceid:u,editable:p,disabled:f,done:b,xscale:l,yscale:d,pagenumber:m,style:getControlStyles(t,l,d)});case"initial":return h("verdocs-field-initial",{id:i,fieldname:a,source:"template",sourceid:u,editable:p,disabled:f,done:b,xscale:l,yscale:d,pagenumber:m,style:getControlStyles(t,l,d)});case"signature":return h("verdocs-field-signature",{id:i,fieldname:a,source:"template",sourceid:u,editable:p,disabled:f,done:b,xscale:l,yscale:d,pagenumber:m,style:getControlStyles(t,e.xScale,e.yScale)});case"timestamp":return h("verdocs-field-timestamp",{id:i,fieldname:a,source:"template",sourceid:u,editable:p,disabled:f,done:b,xscale:l,yscale:d,pagenumber:m,style:getControlStyles(t,l,d)});case"checkbox":return h("verdocs-field-checkbox",{id:i,fieldname:a,source:"template",sourceid:u,editable:p,disabled:f,done:b,xscale:l,yscale:d,pagenumber:m,style:getControlStyles(t,l,d)});case"radio":return h("verdocs-field-radio",{id:i,fieldname:a,source:"template",sourceid:u,editable:p,disabled:f,done:b,xscale:l,yscale:d,pagenumber:m,style:getControlStyles(t,l,d)});default:return h(Fragment,null,a)}}))):e.pageDisplayUri?h("img",{class:"verdocs-template-document-page-layer img",id:"".concat(e.containerId,"-").concat(o.name),src:e.pageDisplayUri,alt:"Page ".concat(e.pageNumber),"aria-hidden":true,loading:"lazy",onLoad:function(t){e.naturalWidth=t.target.naturalWidth;e.naturalHeight=t.target.naturalHeight;e.aspectRatio=e.naturalWidth/e.naturalHeight;e.virtualHeight=e.virtualWidth/e.aspectRatio;e.renderedHeight=t.target.offsetWidth/e.aspectRatio}}):h("div",null)})))};Object.defineProperty(e.prototype,"container",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();VerdocsTemplateDocumentPage.style=VerdocsTemplateDocumentPageStyle0;var verdocsToolbarIconCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-toolbar-icon{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:inline-block}verdocs-toolbar-icon .icon{display:inline-block;cursor:pointer}verdocs-toolbar-icon .icon svg{fill:#5c6575}verdocs-toolbar-icon .tooltip{display:none;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;background:#ffffff;color:#33364b;max-width:240px;font-weight:bold;padding:5px 10px;font-size:13px;position:relative;border-radius:4px;z-index:20000;white-space:nowrap}verdocs-toolbar-icon .tooltip .arrow,verdocs-toolbar-icon .tooltip .arrow::before{position:absolute;width:8px;height:8px;background:inherit}verdocs-toolbar-icon .tooltip .arrow{visibility:hidden;top:-4px}verdocs-toolbar-icon .tooltip .arrow::before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}verdocs-toolbar-icon .tooltip[data-show]{display:block}verdocs-toolbar-icon .tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]>.arrow{right:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=right]>.arrow{left:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]{padding:3px 10px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]>.arrow{right:-1px}';var VerdocsToolbarIconStyle0=verdocsToolbarIconCss;var VerdocsToolbarIcon=function(){function e(e){registerInstance(this,e);this.text="";this.icon="";this.placement="bottom";this.containerId="verdocs-toolbar-icon-".concat(Math.random().toString(36).substring(2,11))}e.prototype.componentDidLoad=function(){this.popperInstance=createPopper(this.iconEl,this.tooltip,{placement:this.placement,modifiers:this.placement==="left"?[{name:"offset",options:{offset:[0,20]}}]:[]})};e.prototype.disconnectedCallback=function(){if(this.popperInstance){this.popperInstance.destroy();this.popperInstance=null}};e.prototype.show=function(){var e,t;(e=this.tooltip)===null||e===void 0?void 0:e.setAttribute("data-show","");(t=this.popperInstance)===null||t===void 0?void 0:t.update().catch((function(){}))};e.prototype.hide=function(){var e;(e=this.tooltip)===null||e===void 0?void 0:e.removeAttribute("data-show")};e.prototype.render=function(){var e=this;return h(Host,{key:"98b2f6b2a2711df2cf8e687e38684d495b6e7d50",class:{}},h("div",{key:"49500d4d3348e2ccd6c9cbe7867645756c6cf5ef","aria-describedby":this.containerId,class:"icon",innerHTML:this.icon,onMouseEnter:function(){return e.show()},onFocus:function(){return e.show()},onMouseLeave:function(){return e.hide()},onBlur:function(){return e.hide()},ref:function(t){return e.iconEl=t}}),h("div",{key:"e64aa823a8a09b10a9166f96be633439d959d3ff",id:this.containerId,role:"tooltip",class:"tooltip","data-popper-placement":this.placement,ref:function(t){return e.tooltip=t}},this.text,h("div",{key:"399156e882824870173ecf3e4bcc35f2ba720b8c","data-popper-arrow":"true",class:"arrow"})))};return e}();VerdocsToolbarIcon.style=VerdocsToolbarIconStyle0;export{VerdocsTemplateDocumentPage as verdocs_template_document_page,VerdocsToolbarIcon as verdocs_toolbar_icon};
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,o,r){function i(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,a){function s(e){try{c(r.next(e))}catch(e){a(e)}}function n(e){try{c(r["throw"](e))}catch(e){a(e)}}function c(e){e.done?o(e.value):i(e.value).then(s,n)}c((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,s;return s={next:n(0),throw:n(1),return:n(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function n(e){return function(t){return c([e,t])}}function c(n){if(r)throw new TypeError("Generator is already executing.");while(s&&(s=0,n[0]&&(o=0)),o)try{if(r=1,i&&(a=n[0]&2?i["return"]:n[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,n[1])).done)return a;if(i=0,a)n=[n[0]&2,a.value];switch(n[0]){case 0:case 1:a=n;break;case 4:o.label++;return{value:n[1],done:false};case 5:o.label++;i=n[1];n=[0];continue;case 7:n=o.ops.pop();o.trys.pop();continue;default:if(!(a=o.trys,a=a.length>0&&a[a.length-1])&&(n[0]===6||n[0]===2)){o=0;continue}if(n[0]===3&&(!a||n[1]>a[0]&&n[1]<a[3])){o.label=n[1];break}if(n[0]===6&&o.label<a[1]){o.label=a[1];a=n;break}if(a&&o.label<a[2]){o.label=a[2];o.ops.push(n);break}if(a[2])o.ops.pop();o.trys.pop();continue}n=t.call(e,o)}catch(e){n=[6,e];i=0}finally{r=a=0}if(n[0]&5)throw n[1];return{value:n[0]?n[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host,F as Fragment,g as getElement}from"./index-272d51a4.js";import{VerdocsEndpoint,getTemplateDocumentPageDisplayUri,getTemplate}from"@verdocs/js-sdk";import{t as throttle,j as getControlStyles,g as getFieldId}from"./utils-bd656c37.js";import{S as Store}from"./Datastore-b55570ff.js";import{c as createPopper}from"./popper-0fbeff6d.js";import"./_commonjsHelpers-bdec4bbd.js";import"./Types-95d86a44.js";import"./format-b8602175.js";var verdocsTemplateDocumentPageCss="@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-document-page{width:100%;position:relative}verdocs-template-document-page .verdocs-template-document-page-layer{position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294);box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294)}verdocs-template-document-page .verdocs-template-document-page-layer.img{width:100%}verdocs-template-document-page .placeholder{opacity:0.1;width:612px;height:792px;-webkit-box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294);box-shadow:0 0 10px 5px rgba(0, 0, 0, 0.0588235294)}";var VerdocsTemplateDocumentPageStyle0=verdocsTemplateDocumentPageCss;var VerdocsTemplateDocumentPage=function(){function e(e){registerInstance(this,e);this.pageRendered=createEvent(this,"pageRendered",7);this.templateListenerId=null;this.endpoint=VerdocsEndpoint.getDefault();this.editable=false;this.disabled=false;this.done=false;this.templateId="";this.documentId="";this.pageNumber=1;this.virtualWidth=612;this.virtualHeight=792;this.layers=[{name:"page",type:"canvas"}];this.containerId="verdocs-document-page-".concat(Math.random().toString(36).substring(2,11));this.renderedWidth=this.virtualWidth;this.renderedHeight=this.virtualHeight;this.naturalWidth=this.virtualWidth;this.naturalHeight=this.virtualHeight;this.aspectRatio=this.virtualWidth/this.virtualHeight;this.skipFirstNotification=true;this.pageDisplayUri="";this.xScale=1;this.yScale=1;this.loading=true;this.template=null}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:e=this;return[4,getTemplateDocumentPageDisplayUri(this.endpoint,this.documentId,this.pageNumber)];case 1:e.pageDisplayUri=t.sent();this.listenToTemplate();return[2]}}))}))};e.prototype.componentDidLoad=function(){var e=this;this.resizeObserver=new ResizeObserver(throttle((function(t){for(var o=0,r=t;o<r.length;o++){var i=r[o];var a=i.contentRect.width;e.renderedWidth=a;e.renderedHeight=e.virtualHeight*(a/e.virtualWidth)}e.notifyRenderedSize()}),100));this.resizeObserver.observe(this.container)};e.prototype.componentDidUpdate=function(){this.notifyRenderedSize()};e.prototype.disconnectedCallback=function(){var e;(e=this.resizeObserver)===null||e===void 0?void 0:e.disconnect();this.unlistenToTemplate()};e.prototype.listenToTemplate=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){this.unlistenToTemplate();Store.subscribe("templates",this.templateId,(function(){return getTemplate(e.endpoint,e.templateId)}),false,(function(t){e.template=t;e.loading=false}));return[2]}))}))};e.prototype.unlistenToTemplate=function(){if(this.templateListenerId){Store.store.delListener(this.templateListenerId);this.templateListenerId=null}};e.prototype.notifyRenderedSize=function(){if(this.skipFirstNotification){this.skipFirstNotification=false;return}var e=this.renderedWidth/this.virtualWidth;if(this.xScale!==e){this.xScale=e}var t=this.renderedHeight/this.virtualHeight;if(this.yScale!==t){this.yScale=t}this.pageRendered.emit({containerId:this.containerId,documentId:this.documentId,pageNumber:this.pageNumber,virtualWidth:this.virtualWidth,virtualHeight:this.virtualHeight,renderedWidth:this.renderedWidth,renderedHeight:this.renderedHeight,naturalWidth:this.naturalWidth,naturalHeight:this.naturalHeight,aspectRatio:this.aspectRatio,xScale:e,yScale:t})};e.prototype.render=function(){var e=this;if(this.loading){return h(Host,null,h("img",{src:"https://public-assets.verdocs.com/loading-placeholder.png",class:"placeholder",alt:"Placeholder page"}))}var t="".concat(this.renderedHeight,"px");return h(Host,{id:"".concat(this.containerId),style:{height:t,flex:"0 0 ".concat(t)}},this.layers.map((function(o){var r;return o.type==="div"?h("div",{class:"verdocs-template-document-page-layer",id:"".concat(e.containerId,"-").concat(o.name),style:{height:t}},o.name==="controls"&&(((r=e.template)===null||r===void 0?void 0:r.fields)||[]).filter((function(t){return t&&t.page===e.pageNumber})).map((function(t){var o,r;var i=getFieldId(t);var a=t.name,s=t.type,n=t.multiline;var c=e,l=c.xScale,d=c.yScale,u=c.templateId,p=c.editable,f=c.disabled,b=c.done,m=c.pageNumber;if(((o=t["setting"])===null||o===void 0?void 0:o.leading)>0||((r=t["settings"])===null||r===void 0?void 0:r.leading)>0){s="textarea";n=true}switch(s){case"textbox":return h("verdocs-field-textbox",{id:i,fieldname:a,source:"template",sourceid:u,editable:p,multiline:n,disabled:f,done:b,xscale:l,yscale:d,pagenumber:m,style:getControlStyles(t,l,d)});case"textarea":return h("verdocs-field-textarea",{id:i,fieldname:a,source:"template",sourceid:u,editable:p,disabled:f,done:b,xscale:l,yscale:d,pagenumber:m,style:getControlStyles(t,l,d)});case"date":return h("verdocs-field-date",{id:i,fieldname:a,source:"template",sourceid:u,editable:p,disabled:f,done:b,xscale:l,yscale:d,pagenumber:m,style:getControlStyles(t,l,d)});case"attachment":return h("verdocs-field-attachment",{id:i,fieldname:a,source:"template",sourceid:u,editable:p,disabled:f,done:b,xscale:l,yscale:d,pagenumber:m,style:getControlStyles(t,l,d)});case"dropdown":return h("verdocs-field-dropdown",{id:i,fieldname:a,source:"template",sourceid:u,editable:p,disabled:f,done:b,xscale:l,yscale:d,pagenumber:m,style:getControlStyles(t,l,d)});case"initial":return h("verdocs-field-initial",{id:i,fieldname:a,source:"template",sourceid:u,editable:p,disabled:f,done:b,xscale:l,yscale:d,pagenumber:m,style:getControlStyles(t,l,d)});case"signature":return h("verdocs-field-signature",{id:i,fieldname:a,source:"template",sourceid:u,editable:p,disabled:f,done:b,xscale:l,yscale:d,pagenumber:m,style:getControlStyles(t,e.xScale,e.yScale)});case"timestamp":return h("verdocs-field-timestamp",{id:i,fieldname:a,source:"template",sourceid:u,editable:p,disabled:f,done:b,xscale:l,yscale:d,pagenumber:m,style:getControlStyles(t,l,d)});case"checkbox":return h("verdocs-field-checkbox",{id:i,fieldname:a,source:"template",sourceid:u,editable:p,disabled:f,done:b,xscale:l,yscale:d,pagenumber:m,style:getControlStyles(t,l,d)});case"radio":return h("verdocs-field-radio",{id:i,fieldname:a,source:"template",sourceid:u,editable:p,disabled:f,done:b,xscale:l,yscale:d,pagenumber:m,style:getControlStyles(t,l,d)});default:return h(Fragment,null,a)}}))):e.pageDisplayUri?h("img",{class:"verdocs-template-document-page-layer img",id:"".concat(e.containerId,"-").concat(o.name),src:e.pageDisplayUri,alt:"Page ".concat(e.pageNumber),"aria-hidden":true,loading:"lazy",onLoad:function(t){e.naturalWidth=t.target.naturalWidth;e.naturalHeight=t.target.naturalHeight;e.aspectRatio=e.naturalWidth/e.naturalHeight;e.virtualHeight=e.virtualWidth/e.aspectRatio;e.renderedHeight=t.target.offsetWidth/e.aspectRatio}}):h("div",null)})))};Object.defineProperty(e.prototype,"container",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();VerdocsTemplateDocumentPage.style=VerdocsTemplateDocumentPageStyle0;var verdocsToolbarIconCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-toolbar-icon{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:inline-block}verdocs-toolbar-icon .icon{display:inline-block;cursor:pointer}verdocs-toolbar-icon .icon svg{fill:#5c6575}verdocs-toolbar-icon .tooltip{display:none;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;background:#ffffff;color:#33364b;max-width:240px;font-weight:bold;padding:5px 10px;font-size:13px;position:relative;border-radius:4px;z-index:20000;white-space:nowrap}verdocs-toolbar-icon .tooltip .arrow,verdocs-toolbar-icon .tooltip .arrow::before{position:absolute;width:8px;height:8px;background:inherit}verdocs-toolbar-icon .tooltip .arrow{visibility:hidden;top:-4px}verdocs-toolbar-icon .tooltip .arrow::before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}verdocs-toolbar-icon .tooltip[data-show]{display:block}verdocs-toolbar-icon .tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]>.arrow{right:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=right]>.arrow{left:-4px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]{padding:3px 10px}verdocs-toolbar-icon .tooltip[data-popper-placement^=left]>.arrow{right:-1px}';var VerdocsToolbarIconStyle0=verdocsToolbarIconCss;var VerdocsToolbarIcon=function(){function e(e){registerInstance(this,e);this.text="";this.icon="";this.placement="bottom";this.containerId="verdocs-toolbar-icon-".concat(Math.random().toString(36).substring(2,11))}e.prototype.componentDidLoad=function(){this.popperInstance=createPopper(this.iconEl,this.tooltip,{placement:this.placement,modifiers:this.placement==="left"?[{name:"offset",options:{offset:[0,20]}}]:[]})};e.prototype.disconnectedCallback=function(){if(this.popperInstance){this.popperInstance.destroy();this.popperInstance=null}};e.prototype.show=function(){var e,t;(e=this.tooltip)===null||e===void 0?void 0:e.setAttribute("data-show","");(t=this.popperInstance)===null||t===void 0?void 0:t.update().catch((function(){}))};e.prototype.hide=function(){var e;(e=this.tooltip)===null||e===void 0?void 0:e.removeAttribute("data-show")};e.prototype.render=function(){var e=this;return h(Host,{key:"98b2f6b2a2711df2cf8e687e38684d495b6e7d50",class:{}},h("div",{key:"49500d4d3348e2ccd6c9cbe7867645756c6cf5ef","aria-describedby":this.containerId,class:"icon",innerHTML:this.icon,onMouseEnter:function(){return e.show()},onFocus:function(){return e.show()},onMouseLeave:function(){return e.hide()},onBlur:function(){return e.hide()},ref:function(t){return e.iconEl=t}}),h("div",{key:"e64aa823a8a09b10a9166f96be633439d959d3ff",id:this.containerId,role:"tooltip",class:"tooltip","data-popper-placement":this.placement,ref:function(t){return e.tooltip=t}},this.text,h("div",{key:"399156e882824870173ecf3e4bcc35f2ba720b8c","data-popper-arrow":"true",class:"arrow"})))};return e}();VerdocsToolbarIcon.style=VerdocsToolbarIconStyle0;export{VerdocsTemplateDocumentPage as verdocs_template_document_page,VerdocsToolbarIcon as verdocs_toolbar_icon};
|
2
|
+
//# sourceMappingURL=verdocs-template-document-page_2.entry.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["verdocsTemplateDocumentPageCss","VerdocsTemplateDocumentPageStyle0","VerdocsTemplateDocumentPage","this","templateListenerId","VerdocsEndpoint","getDefault","name","type","concat","Math","random","toString","substring","virtualWidth","virtualHeight","class_1","prototype","componentWillLoad","_c","getTemplateDocumentPageDisplayUri","endpoint","documentId","pageNumber","pageDisplayUri","_d","sent","listenToTemplate","componentDidLoad","_this","resizeObserver","ResizeObserver","throttle","entries","_i","entries_1","length","entry","renderedWidth","contentRect","width","renderedHeight","notifyRenderedSize","observe","container","componentDidUpdate","disconnectedCallback","_a","disconnect","unlistenToTemplate","Store","subscribe","templateId","getTemplate","template","loading","store","delListener","skipFirstNotification","xScale","yScale","pageRendered","emit","containerId","naturalWidth","naturalHeight","aspectRatio","render","h","Host","src","class","alt","height","id","style","flex","layers","map","layer","fields","filter","field","page","getFieldId","multiline","editable","disabled","done","leading","_b","fieldname","source","sourceid","xscale","yscale","pagenumber","getControlStyles","Fragment","onLoad","e","target","offsetWidth","verdocsToolbarIconCss","VerdocsToolbarIconStyle0","VerdocsToolbarIcon","popperInstance","createPopper","iconEl","tooltip","placement","modifiers","options","offset","destroy","show","setAttribute","update","catch","hide","removeAttribute","key","innerHTML","icon","onMouseEnter","onFocus","onMouseLeave","onBlur","ref","el","role","text"],"sources":["src/components/templates/verdocs-template-document-page/verdocs-template-document-page.scss?tag=verdocs-template-document-page","src/components/templates/verdocs-template-document-page/verdocs-template-document-page.tsx","src/components/controls/verdocs-toolbar-icon/verdocs-toolbar-icon.scss?tag=verdocs-toolbar-icon","src/components/controls/verdocs-toolbar-icon/verdocs-toolbar-icon.tsx"],"sourcesContent":["@import '../../../theme.scss';\n\nverdocs-template-document-page {\n width: 100%;\n position: relative;\n\n .verdocs-template-document-page-layer {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n box-shadow: 0 0 10px 5px #0000000f;\n\n &.img {\n width: 100%;\n }\n }\n\n .placeholder {\n opacity: 0.1;\n width: 612px;\n height: 792px;\n box-shadow: 0 0 10px 5px #0000000f;\n }\n}\n","// NOTE: This component does not have a story because it's not intended for external use.\n\nimport {getTemplate, getTemplateDocumentPageDisplayUri, type ITemplate, VerdocsEndpoint} from '@verdocs/js-sdk';\nimport {Component, h, Host, Prop, Event, EventEmitter, State, Element, Fragment} from '@stencil/core';\nimport {IDocumentPageInfo, IPageLayer} from '../../../utils/Types';\nimport {getControlStyles, getFieldId} from '../../../utils/utils';\nimport {throttle} from '../../../utils/utils';\nimport {Store} from '../../../utils/Datastore';\n\n/**\n * Represents one document page. This is primarily a layout container used to coordinate positions of\n * page-related layers such as the page itself, signature fields, etc. It is not intended to be used\n * on its own as an individual component.\n */\n@Component({\n tag: 'verdocs-template-document-page',\n styleUrl: 'verdocs-template-document-page.scss',\n shadow: false,\n})\nexport class VerdocsTemplateDocumentPage {\n private templateListenerId = null;\n private resizeObserver: ResizeObserver;\n\n @Element() container: HTMLElement;\n\n /**\n * The endpoint to load from.\n */\n @Prop() endpoint: VerdocsEndpoint = VerdocsEndpoint.getDefault();\n\n /**\n * Whether the fields should be editable (Builder)\n */\n @Prop() editable = false;\n\n /**\n * Whether the fields should be disabled (Builder)\n */\n @Prop() disabled = false;\n\n /**\n * Whether the field are interactable (done/submitted disables this)\n */\n @Prop() done = false;\n\n /**\n * The ID of the template the document is for.\n */\n @Prop() templateId: string = '';\n\n /**\n * The ID of the document to display.\n */\n @Prop() documentId: string = '';\n\n /**\n * The page number being rendered. (Reminder: page numbers are 1-based.)\n */\n @Prop() pageNumber: number = 1;\n\n /**\n * The \"virtual\" width of the page canvas. Defaults to 612 which at 72dpi is 8.5\" wide. This is used to compute\n * the aspect ratio of the final rendered element when scaling up/down.\n */\n @Prop() virtualWidth: number = 612;\n\n /**\n * The \"virtual\" height of the page canvas. Defaults to 792 which at 72dpi is 11\" tall. This is used to compute\n * the aspect ratio of the final rendered element when scaling up/down.\n */\n @Prop({mutable: true}) virtualHeight: number = 792;\n\n /**\n * The layers that will be rendered. The DOM structure will be a DIV container with one child DIV for each layer.\n * The parent DIV will have a unique ID, and each child DIV will have that ID with the layer name appended, e.g.\n * if `pages` was ['page', 'fields'] the structure will be:\n *\n * ```\n * <div id=\"verdocs-document-page-ker2fr1p9\">\n * <div id=\"verdocs-document-page-ker2fr1p9-page\"></div>\n * <div id=\"verdocs-document-page-ker2fr1p9-fields\"></div>\n * </div>\n * ```\n */\n @Prop() layers: IPageLayer[] = [{name: 'page', type: 'canvas'}];\n\n /**\n * Fired when a page has been rendered. This is also fired when the page is resized.\n */\n @Event() pageRendered: EventEmitter<IDocumentPageInfo>;\n\n @State() containerId = `verdocs-document-page-${Math.random().toString(36).substring(2, 11)}`;\n @State() renderedWidth: number = this.virtualWidth;\n @State() renderedHeight: number = this.virtualHeight;\n @State() naturalWidth: number = this.virtualWidth;\n @State() naturalHeight: number = this.virtualHeight;\n @State() aspectRatio: number = this.virtualWidth / this.virtualHeight;\n @State() skipFirstNotification = true;\n @State() pageDisplayUri = '';\n @State() xScale = 1;\n @State() yScale = 1;\n\n @State() loading = true;\n @State() template: ITemplate | null = null;\n\n async componentWillLoad() {\n this.pageDisplayUri = await getTemplateDocumentPageDisplayUri(this.endpoint, this.documentId, this.pageNumber);\n this.listenToTemplate();\n }\n\n componentDidLoad() {\n this.resizeObserver = new ResizeObserver(\n throttle(entries => {\n for (const entry of entries) {\n const renderedWidth = entry.contentRect.width;\n this.renderedWidth = renderedWidth;\n this.renderedHeight = this.virtualHeight * (renderedWidth / this.virtualWidth);\n }\n\n this.notifyRenderedSize();\n }, 100),\n );\n\n this.resizeObserver.observe(this.container);\n }\n\n componentDidUpdate() {\n // This is fired when fields are updated and triggers the parent to re-attach behaviors like drag-and-drop\n this.notifyRenderedSize();\n }\n\n disconnectedCallback() {\n this.resizeObserver?.disconnect();\n this.unlistenToTemplate();\n }\n\n async listenToTemplate() {\n this.unlistenToTemplate();\n Store.subscribe(\n 'templates',\n this.templateId,\n () => getTemplate(this.endpoint, this.templateId),\n false,\n (template: ITemplate) => {\n this.template = template;\n this.loading = false;\n },\n );\n }\n\n unlistenToTemplate() {\n if (this.templateListenerId) {\n Store.store.delListener(this.templateListenerId);\n this.templateListenerId = null;\n }\n }\n\n notifyRenderedSize() {\n // We skip one notification because by default we will always get at least two, one when rendering the initial size\n // and a second once we're able to compute the scale size, when the resizeObserver sets renderedWidth/renderedHeight.\n if (this.skipFirstNotification) {\n this.skipFirstNotification = false;\n return;\n }\n\n const xScale = this.renderedWidth / this.virtualWidth;\n if (this.xScale !== xScale) {\n this.xScale = xScale;\n }\n\n const yScale = this.renderedHeight / this.virtualHeight;\n if (this.yScale !== yScale) {\n this.yScale = yScale;\n }\n\n this.pageRendered.emit({\n // container: this.container,\n containerId: this.containerId,\n documentId: this.documentId,\n pageNumber: this.pageNumber,\n virtualWidth: this.virtualWidth,\n virtualHeight: this.virtualHeight,\n renderedWidth: this.renderedWidth,\n renderedHeight: this.renderedHeight,\n naturalWidth: this.naturalWidth,\n naturalHeight: this.naturalHeight,\n aspectRatio: this.aspectRatio,\n xScale,\n yScale,\n });\n }\n\n render() {\n if (this.loading) {\n return (\n <Host>\n <img src=\"https://public-assets.verdocs.com/loading-placeholder.png\" class=\"placeholder\" alt=\"Placeholder page\" />\n </Host>\n );\n }\n\n const height = `${this.renderedHeight}px`;\n\n return (\n <Host id={`${this.containerId}`} style={{height, flex: `0 0 ${height}`}}>\n {this.layers.map(layer =>\n layer.type === 'div' ? (\n <div class=\"verdocs-template-document-page-layer\" id={`${this.containerId}-${layer.name}`} style={{height}}>\n {layer.name === 'controls' &&\n (this.template?.fields || [])\n .filter(field => field && field.page === this.pageNumber)\n .map(field => {\n const id = getFieldId(field);\n let {name, type, multiline} = field;\n const {xScale, yScale, templateId, editable, disabled, done, pageNumber} = this;\n if (field['setting']?.leading > 0 || field['settings']?.leading > 0) {\n type = 'textarea';\n multiline = true;\n }\n switch (type as any) {\n case 'textbox':\n return (\n <verdocs-field-textbox\n id={id}\n fieldname={name}\n source=\"template\"\n sourceid={templateId}\n editable={editable}\n multiline={multiline}\n disabled={disabled}\n done={done}\n xscale={xScale}\n yscale={yScale}\n pagenumber={pageNumber}\n style={getControlStyles(field, xScale, yScale)}\n />\n );\n case 'textarea':\n return (\n <verdocs-field-textarea\n id={id}\n fieldname={name}\n source=\"template\"\n sourceid={templateId}\n editable={editable}\n disabled={disabled}\n done={done}\n xscale={xScale}\n yscale={yScale}\n pagenumber={pageNumber}\n style={getControlStyles(field, xScale, yScale)}\n />\n );\n case 'date':\n return (\n <verdocs-field-date\n id={id}\n fieldname={name}\n source=\"template\"\n sourceid={templateId}\n editable={editable}\n disabled={disabled}\n done={done}\n xscale={xScale}\n yscale={yScale}\n pagenumber={pageNumber}\n style={getControlStyles(field, xScale, yScale)}\n />\n );\n case 'attachment':\n return (\n <verdocs-field-attachment\n id={id}\n fieldname={name}\n source=\"template\"\n sourceid={templateId}\n editable={editable}\n disabled={disabled}\n done={done}\n xscale={xScale}\n yscale={yScale}\n pagenumber={pageNumber}\n style={getControlStyles(field, xScale, yScale)}\n />\n );\n case 'dropdown':\n return (\n <verdocs-field-dropdown\n id={id}\n fieldname={name}\n source=\"template\"\n sourceid={templateId}\n editable={editable}\n disabled={disabled}\n done={done}\n xscale={xScale}\n yscale={yScale}\n pagenumber={pageNumber}\n style={getControlStyles(field, xScale, yScale)}\n />\n );\n case 'initial':\n return (\n <verdocs-field-initial\n id={id}\n fieldname={name}\n source=\"template\"\n sourceid={templateId}\n editable={editable}\n disabled={disabled}\n done={done}\n xscale={xScale}\n yscale={yScale}\n pagenumber={pageNumber}\n style={getControlStyles(field, xScale, yScale)}\n />\n );\n case 'signature':\n return (\n <verdocs-field-signature\n id={id}\n fieldname={name}\n source=\"template\"\n sourceid={templateId}\n editable={editable}\n disabled={disabled}\n done={done}\n xscale={xScale}\n yscale={yScale}\n pagenumber={pageNumber}\n style={getControlStyles(field, this.xScale, this.yScale)}\n />\n );\n case 'timestamp':\n return (\n <verdocs-field-timestamp\n id={id}\n fieldname={name}\n source=\"template\"\n sourceid={templateId}\n editable={editable}\n disabled={disabled}\n done={done}\n xscale={xScale}\n yscale={yScale}\n pagenumber={pageNumber}\n style={getControlStyles(field, xScale, yScale)}\n />\n );\n case 'checkbox':\n return (\n <verdocs-field-checkbox\n id={id}\n fieldname={name}\n source=\"template\"\n sourceid={templateId}\n editable={editable}\n disabled={disabled}\n done={done}\n xscale={xScale}\n yscale={yScale}\n pagenumber={pageNumber}\n style={getControlStyles(field, xScale, yScale)}\n />\n );\n case 'radio':\n return (\n <verdocs-field-radio\n id={id}\n fieldname={name}\n source=\"template\"\n sourceid={templateId}\n editable={editable}\n disabled={disabled}\n done={done}\n xscale={xScale}\n yscale={yScale}\n pagenumber={pageNumber}\n style={getControlStyles(field, xScale, yScale)}\n />\n );\n default:\n return <Fragment>{name}</Fragment>;\n }\n })}\n </div>\n ) : this.pageDisplayUri ? (\n <img\n class=\"verdocs-template-document-page-layer img\"\n id={`${this.containerId}-${layer.name}`}\n src={this.pageDisplayUri}\n alt={`Page ${this.pageNumber}`}\n aria-hidden={true}\n loading=\"lazy\"\n onLoad={(e: any) => {\n // Note that all we really care about is the aspect ratio. We track the natural Width and Height but they aren't really that\n // useful as individual values. The image will already have been scaled down to fit a DIV for display (100%, auto height).\n // Builder places fields offset into the rendered display area, not the original document's dimensions. So its X/Y values\n // for a field are based on the responsive Web view the Template editor was seeing. The IMG was scaled down there in the\n // exact same way, so we just honor it. We capture the natural width and height here more as information. Then we use the\n // aspect ratio to adjust the \"virtual\" height in case the page is not 8.5\"x11\".\n // TODO: Store this in the DB with each page.\n this.naturalWidth = e.target.naturalWidth;\n this.naturalHeight = e.target.naturalHeight;\n this.aspectRatio = this.naturalWidth / this.naturalHeight;\n this.virtualHeight = this.virtualWidth / this.aspectRatio;\n this.renderedHeight = e.target.offsetWidth / this.aspectRatio;\n }}\n />\n ) : (\n <div></div>\n ),\n )}\n </Host>\n );\n }\n}\n","@import '../../../theme.scss';\n\nverdocs-toolbar-icon {\n font-family: $verdocs-primary-font;\n display: inline-block;\n\n .icon {\n display: inline-block;\n cursor: pointer;\n\n svg {\n fill: $choice-available-color;\n }\n }\n\n .tooltip {\n display: none;\n box-shadow: 0 0 10px 1px #999999;\n background: #ffffff;\n color: $label-color;\n max-width: 240px;\n font-weight: bold;\n padding: 5px 10px;\n font-size: 13px;\n position: relative;\n border-radius: 4px;\n z-index: 20000;\n white-space: nowrap;\n\n .arrow,\n .arrow::before {\n position: absolute;\n width: 8px;\n height: 8px;\n background: inherit;\n }\n\n .arrow {\n visibility: hidden;\n top: -4px;\n }\n\n .arrow::before {\n visibility: visible;\n content: '';\n transform: rotate(45deg);\n }\n\n &[data-show] {\n display: block;\n }\n\n &[data-popper-placement^='top'] > .arrow {\n bottom: -4px;\n }\n\n &[data-popper-placement^='bottom'] > .arrow {\n top: -4px;\n }\n\n &[data-popper-placement^='left'] > .arrow {\n right: -4px;\n }\n\n &[data-popper-placement^='right'] > .arrow {\n left: -4px;\n }\n\n // For the floating menu\n &[data-popper-placement^='left'] {\n //margin-right: 22px !important;\n padding: 3px 10px;\n\n & > .arrow {\n right: -1px;\n }\n }\n }\n}\n","import {createPopper, Instance} from '@popperjs/core';\nimport {Component, h, Host, Prop, State} from '@stencil/core';\nimport {Placement} from '@popperjs/core/lib/enums';\n// import {Component, Event, EventEmitter, h, Host, Prop, State} from '@stencil/core';\n\n/**\n * Displays a simple help icon. Upon hover or focus, a tooltip will be displayed with help text.\n *\n * ```ts\n * <verdocs-toolbar-icon text=\"Sample tooltip text\" icon={CalendarIcon} />\n * ```\n */\n@Component({\n tag: 'verdocs-toolbar-icon',\n styleUrl: 'verdocs-toolbar-icon.scss',\n shadow: false,\n})\nexport class VerdocsToolbarIcon {\n iconEl: HTMLDivElement;\n tooltip: HTMLDivElement;\n popperInstance: Instance;\n\n /**\n * Help text to display on hover/focus\n */\n @Prop() text: string = '';\n\n /**\n * SVG icon to display\n */\n @Prop() icon: string = '';\n\n /**\n * Override the Popper \"placement\" setting\n */\n @Prop() placement: Placement = 'bottom';\n\n /**\n * Triggered when the icon is pressed\n */\n // @Event({composed: true}) press: EventEmitter;\n\n @State() containerId = `verdocs-toolbar-icon-${Math.random().toString(36).substring(2, 11)}`;\n\n componentDidLoad() {\n this.popperInstance = createPopper(this.iconEl, this.tooltip, {\n placement: this.placement,\n modifiers: this.placement === 'left' ? [{name: 'offset', options: {offset: [0, 20]}}] : [],\n });\n // placement: 'top-end',\n // modifiers: [{name: 'offset', options: {offset: [0, 10]}}],\n // });\n }\n\n disconnectedCallback() {\n if (this.popperInstance) {\n this.popperInstance.destroy();\n this.popperInstance = null;\n }\n }\n\n show() {\n this.tooltip?.setAttribute('data-show', '');\n this.popperInstance?.update().catch(() => {});\n }\n\n hide() {\n this.tooltip?.removeAttribute('data-show');\n }\n\n // handlePress() {\n // this.press?.emit();\n // }\n\n render() {\n return (\n <Host class={{}}>\n <div\n aria-describedby={this.containerId}\n class=\"icon\"\n innerHTML={this.icon}\n onMouseEnter={() => this.show()}\n onFocus={() => this.show()}\n onMouseLeave={() => this.hide()}\n onBlur={() => this.hide()}\n ref={el => (this.iconEl = el as HTMLDivElement)}\n />\n <div id={this.containerId} role=\"tooltip\" class=\"tooltip\" data-popper-placement={this.placement} ref={el => (this.tooltip = el as HTMLDivElement)}>\n {this.text}\n <div data-popper-arrow=\"true\" class=\"arrow\" />\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"o7DAAA,IAAMA,+BAAiC,i3BACvC,IAAAC,kCAAeD,+B,ICkBFE,4BAA2B,W,4FAC9BC,KAAAC,mBAAqB,K,cAQOC,gBAAgBC,a,cAKjC,M,cAKA,M,UAKJ,M,gBAKc,G,gBAKA,G,gBAKA,E,kBAME,I,mBAMgB,I,YAchB,CAAC,CAACC,KAAM,OAAQC,KAAM,W,iBAO9B,yBAAAC,OAAyBC,KAAKC,SAASC,SAAS,IAAIC,UAAU,EAAG,K,mBACvDV,KAAKW,a,oBACJX,KAAKY,c,kBACPZ,KAAKW,a,mBACJX,KAAKY,c,iBACPZ,KAAKW,aAAeX,KAAKY,c,2BACvB,K,oBACP,G,YACR,E,YACA,E,aAEC,K,cACmB,I,CAEhCC,EAAAC,UAAAC,kBAAN,W,kHACEC,EAAAhB,KAAsB,SAAMiB,kCAAkCjB,KAAKkB,SAAUlB,KAAKmB,WAAYnB,KAAKoB,a,OAAnGJ,EAAKK,eAAiBC,EAAAC,OACtBvB,KAAKwB,mB,kBAGPX,EAAAC,UAAAW,iBAAA,eAAAC,EAAA1B,KACEA,KAAK2B,eAAiB,IAAIC,eACxBC,UAAS,SAAAC,GACP,IAAoB,IAAAC,EAAA,EAAAC,EAAAF,EAAAC,EAAAC,EAAAC,OAAAF,IAAS,CAAxB,IAAMG,EAAKF,EAAAD,GACd,IAAMI,EAAgBD,EAAME,YAAYC,MACxCX,EAAKS,cAAgBA,EACrBT,EAAKY,eAAiBZ,EAAKd,eAAiBuB,EAAgBT,EAAKf,a,CAGnEe,EAAKa,oB,GACJ,MAGLvC,KAAK2B,eAAea,QAAQxC,KAAKyC,U,EAGnC5B,EAAAC,UAAA4B,mBAAA,WAEE1C,KAAKuC,oB,EAGP1B,EAAAC,UAAA6B,qBAAA,W,OACEC,EAAA5C,KAAK2B,kBAAc,MAAAiB,SAAA,SAAAA,EAAEC,aACrB7C,KAAK8C,oB,EAGDjC,EAAAC,UAAAU,iBAAN,W,gGACExB,KAAK8C,qBACLC,MAAMC,UACJ,YACAhD,KAAKiD,YACL,WAAM,OAAAC,YAAYxB,EAAKR,SAAUQ,EAAKuB,WAAhC,GACN,OACA,SAACE,GACCzB,EAAKyB,SAAWA,EAChBzB,EAAK0B,QAAU,K,qBAKrBvC,EAAAC,UAAAgC,mBAAA,WACE,GAAI9C,KAAKC,mBAAoB,CAC3B8C,MAAMM,MAAMC,YAAYtD,KAAKC,oBAC7BD,KAAKC,mBAAqB,I,GAI9BY,EAAAC,UAAAyB,mBAAA,WAGE,GAAIvC,KAAKuD,sBAAuB,CAC9BvD,KAAKuD,sBAAwB,MAC7B,M,CAGF,IAAMC,EAASxD,KAAKmC,cAAgBnC,KAAKW,aACzC,GAAIX,KAAKwD,SAAWA,EAAQ,CAC1BxD,KAAKwD,OAASA,C,CAGhB,IAAMC,EAASzD,KAAKsC,eAAiBtC,KAAKY,cAC1C,GAAIZ,KAAKyD,SAAWA,EAAQ,CAC1BzD,KAAKyD,OAASA,C,CAGhBzD,KAAK0D,aAAaC,KAAK,CAErBC,YAAa5D,KAAK4D,YAClBzC,WAAYnB,KAAKmB,WACjBC,WAAYpB,KAAKoB,WACjBT,aAAcX,KAAKW,aACnBC,cAAeZ,KAAKY,cACpBuB,cAAenC,KAAKmC,cACpBG,eAAgBtC,KAAKsC,eACrBuB,aAAc7D,KAAK6D,aACnBC,cAAe9D,KAAK8D,cACpBC,YAAa/D,KAAK+D,YAClBP,OAAMA,EACNC,OAAMA,G,EAIV5C,EAAAC,UAAAkD,OAAA,eAAAtC,EAAA1B,KACE,GAAIA,KAAKoD,QAAS,CAChB,OACEa,EAACC,KAAI,KACHD,EAAA,OAAKE,IAAI,4DAA4DC,MAAM,cAAcC,IAAI,qB,CAKnG,IAAMC,EAAS,GAAAhE,OAAGN,KAAKsC,eAAc,MAErC,OACE2B,EAACC,KAAI,CAACK,GAAI,GAAAjE,OAAGN,KAAK4D,aAAeY,MAAO,CAACF,OAAMA,EAAEG,KAAM,OAAAnE,OAAOgE,KAC3DtE,KAAK0E,OAAOC,KAAI,SAAAC,G,MACf,OAAAA,EAAMvE,OAAS,MACb4D,EAAA,OAAKG,MAAM,uCAAuCG,GAAI,GAAAjE,OAAGoB,EAAKkC,YAAW,KAAAtD,OAAIsE,EAAMxE,MAAQoE,MAAO,CAACF,OAAMA,IACtGM,EAAMxE,OAAS,eACbwC,EAAAlB,EAAKyB,YAAQ,MAAAP,SAAA,SAAAA,EAAEiC,SAAU,IACvBC,QAAO,SAAAC,GAAS,OAAAA,GAASA,EAAMC,OAAStD,EAAKN,UAA7B,IAChBuD,KAAI,SAAAI,G,QACH,IAAMR,EAAKU,WAAWF,GACjB,IAAA3E,EAAyB2E,EAAK3E,KAAxBC,EAAmB0E,EAAK1E,KAAlB6E,EAAaH,EAAKG,UAC7B,IAAAlE,EAAqEU,EAApE8B,EAAMxC,EAAAwC,OAAEC,EAAMzC,EAAAyC,OAAER,EAAUjC,EAAAiC,WAAEkC,EAAQnE,EAAAmE,SAAEC,EAAQpE,EAAAoE,SAAEC,EAAIrE,EAAAqE,KAAEjE,EAAUJ,EAAAI,WACvE,KAAIwB,EAAAmC,EAAM,cAAU,MAAAnC,SAAA,SAAAA,EAAE0C,SAAU,KAAKC,EAAAR,EAAM,eAAW,MAAAQ,SAAA,SAAAA,EAAED,SAAU,EAAG,CACnEjF,EAAO,WACP6E,EAAY,I,CAEd,OAAQ7E,GACN,IAAK,UACH,OACE4D,EAAA,yBACEM,GAAIA,EACJiB,UAAWpF,EACXqF,OAAO,WACPC,SAAUzC,EACVkC,SAAUA,EACVD,UAAWA,EACXE,SAAUA,EACVC,KAAMA,EACNM,OAAQnC,EACRoC,OAAQnC,EACRoC,WAAYzE,EACZoD,MAAOsB,iBAAiBf,EAAOvB,EAAQC,KAG7C,IAAK,WACH,OACEQ,EAAA,0BACEM,GAAIA,EACJiB,UAAWpF,EACXqF,OAAO,WACPC,SAAUzC,EACVkC,SAAUA,EACVC,SAAUA,EACVC,KAAMA,EACNM,OAAQnC,EACRoC,OAAQnC,EACRoC,WAAYzE,EACZoD,MAAOsB,iBAAiBf,EAAOvB,EAAQC,KAG7C,IAAK,OACH,OACEQ,EAAA,sBACEM,GAAIA,EACJiB,UAAWpF,EACXqF,OAAO,WACPC,SAAUzC,EACVkC,SAAUA,EACVC,SAAUA,EACVC,KAAMA,EACNM,OAAQnC,EACRoC,OAAQnC,EACRoC,WAAYzE,EACZoD,MAAOsB,iBAAiBf,EAAOvB,EAAQC,KAG7C,IAAK,aACH,OACEQ,EAAA,4BACEM,GAAIA,EACJiB,UAAWpF,EACXqF,OAAO,WACPC,SAAUzC,EACVkC,SAAUA,EACVC,SAAUA,EACVC,KAAMA,EACNM,OAAQnC,EACRoC,OAAQnC,EACRoC,WAAYzE,EACZoD,MAAOsB,iBAAiBf,EAAOvB,EAAQC,KAG7C,IAAK,WACH,OACEQ,EAAA,0BACEM,GAAIA,EACJiB,UAAWpF,EACXqF,OAAO,WACPC,SAAUzC,EACVkC,SAAUA,EACVC,SAAUA,EACVC,KAAMA,EACNM,OAAQnC,EACRoC,OAAQnC,EACRoC,WAAYzE,EACZoD,MAAOsB,iBAAiBf,EAAOvB,EAAQC,KAG7C,IAAK,UACH,OACEQ,EAAA,yBACEM,GAAIA,EACJiB,UAAWpF,EACXqF,OAAO,WACPC,SAAUzC,EACVkC,SAAUA,EACVC,SAAUA,EACVC,KAAMA,EACNM,OAAQnC,EACRoC,OAAQnC,EACRoC,WAAYzE,EACZoD,MAAOsB,iBAAiBf,EAAOvB,EAAQC,KAG7C,IAAK,YACH,OACEQ,EAAA,2BACEM,GAAIA,EACJiB,UAAWpF,EACXqF,OAAO,WACPC,SAAUzC,EACVkC,SAAUA,EACVC,SAAUA,EACVC,KAAMA,EACNM,OAAQnC,EACRoC,OAAQnC,EACRoC,WAAYzE,EACZoD,MAAOsB,iBAAiBf,EAAOrD,EAAK8B,OAAQ9B,EAAK+B,UAGvD,IAAK,YACH,OACEQ,EAAA,2BACEM,GAAIA,EACJiB,UAAWpF,EACXqF,OAAO,WACPC,SAAUzC,EACVkC,SAAUA,EACVC,SAAUA,EACVC,KAAMA,EACNM,OAAQnC,EACRoC,OAAQnC,EACRoC,WAAYzE,EACZoD,MAAOsB,iBAAiBf,EAAOvB,EAAQC,KAG7C,IAAK,WACH,OACEQ,EAAA,0BACEM,GAAIA,EACJiB,UAAWpF,EACXqF,OAAO,WACPC,SAAUzC,EACVkC,SAAUA,EACVC,SAAUA,EACVC,KAAMA,EACNM,OAAQnC,EACRoC,OAAQnC,EACRoC,WAAYzE,EACZoD,MAAOsB,iBAAiBf,EAAOvB,EAAQC,KAG7C,IAAK,QACH,OACEQ,EAAA,uBACEM,GAAIA,EACJiB,UAAWpF,EACXqF,OAAO,WACPC,SAAUzC,EACVkC,SAAUA,EACVC,SAAUA,EACVC,KAAMA,EACNM,OAAQnC,EACRoC,OAAQnC,EACRoC,WAAYzE,EACZoD,MAAOsB,iBAAiBf,EAAOvB,EAAQC,KAG7C,QACE,OAAOQ,EAAC8B,SAAQ,KAAE3F,G,KAI5BsB,EAAKL,eACP4C,EAAA,OACEG,MAAM,2CACNG,GAAI,GAAAjE,OAAGoB,EAAKkC,YAAW,KAAAtD,OAAIsE,EAAMxE,MACjC+D,IAAKzC,EAAKL,eACVgD,IAAK,QAAA/D,OAAQoB,EAAKN,YAAY,cACjB,KACbgC,QAAQ,OACR4C,OAAQ,SAACC,GAQPvE,EAAKmC,aAAeoC,EAAEC,OAAOrC,aAC7BnC,EAAKoC,cAAgBmC,EAAEC,OAAOpC,cAC9BpC,EAAKqC,YAAcrC,EAAKmC,aAAenC,EAAKoC,cAC5CpC,EAAKd,cAAgBc,EAAKf,aAAee,EAAKqC,YAC9CrC,EAAKY,eAAiB2D,EAAEC,OAAOC,YAAczE,EAAKqC,W,IAItDE,EAAA,W,2IAvY4B,G,oECnBxC,IAAMmC,sBAAwB,opDAC9B,IAAAC,yBAAeD,sB,ICgBFE,mBAAkB,W,iDAQN,G,UAKA,G,eAKQ,S,iBAOR,wBAAAhG,OAAwBC,KAAKC,SAASC,SAAS,IAAIC,UAAU,EAAG,I,CAEvF4F,EAAAxF,UAAAW,iBAAA,WACEzB,KAAKuG,eAAiBC,aAAaxG,KAAKyG,OAAQzG,KAAK0G,QAAS,CAC5DC,UAAW3G,KAAK2G,UAChBC,UAAW5G,KAAK2G,YAAc,OAAS,CAAC,CAACvG,KAAM,SAAUyG,QAAS,CAACC,OAAQ,CAAC,EAAG,OAAS,I,EAO5FR,EAAAxF,UAAA6B,qBAAA,WACE,GAAI3C,KAAKuG,eAAgB,CACvBvG,KAAKuG,eAAeQ,UACpB/G,KAAKuG,eAAiB,I,GAI1BD,EAAAxF,UAAAkG,KAAA,W,SACEpE,EAAA5C,KAAK0G,WAAO,MAAA9D,SAAA,SAAAA,EAAEqE,aAAa,YAAa,KACxC1B,EAAAvF,KAAKuG,kBAAc,MAAAhB,SAAA,SAAAA,EAAE2B,SAASC,OAAM,c,EAGtCb,EAAAxF,UAAAsG,KAAA,W,OACExE,EAAA5C,KAAK0G,WAAO,MAAA9D,SAAA,SAAAA,EAAEyE,gBAAgB,Y,EAOhCf,EAAAxF,UAAAkD,OAAA,eAAAtC,EAAA1B,KACE,OACEiE,EAACC,KAAI,CAAAoD,IAAA,2CAAClD,MAAO,IACXH,EAAA,OAAAqD,IAAA,8DACoBtH,KAAK4D,YACvBQ,MAAM,OACNmD,UAAWvH,KAAKwH,KAChBC,aAAc,WAAM,OAAA/F,EAAKsF,MAAL,EACpBU,QAAS,WAAM,OAAAhG,EAAKsF,MAAL,EACfW,aAAc,WAAM,OAAAjG,EAAK0F,MAAL,EACpBQ,OAAQ,WAAM,OAAAlG,EAAK0F,MAAL,EACdS,IAAK,SAAAC,GAAE,OAAKpG,EAAK+E,OAASqB,CAAnB,IAET7D,EAAA,OAAAqD,IAAA,2CAAK/C,GAAIvE,KAAK4D,YAAamE,KAAK,UAAU3D,MAAM,UAAS,wBAAwBpE,KAAK2G,UAAWkB,IAAK,SAAAC,GAAE,OAAKpG,EAAKgF,QAAUoB,CAApB,GACrG9H,KAAKgI,KACN/D,EAAA,OAAAqD,IAAA,+DAAuB,OAAOlD,MAAM,W,WAxEf,G","ignoreList":[]}
|
@@ -1 +1,2 @@
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,r,n){function a(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function i(t){try{c(n.next(t))}catch(t){o(t)}}function s(t){try{c(n["throw"](t))}catch(t){o(t)}}function c(t){t.done?r(t.value):a(t.value).then(i,s)}c((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(t){return function(e){return c([t,e])}}function c(s){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,s[0]&&(r=0)),r)try{if(n=1,a&&(o=s[0]&2?a["return"]:s[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,s[1])).done)return o;if(a=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(s[0]===6&&r.label<o[1]){r.label=o[1];o=s;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(s);break}if(o[2])r.ops.pop();r.trys.pop();continue}s=e.call(t,r)}catch(t){s=[6,t];a=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host}from"./index-272d51a4.js";import{VerdocsEndpoint,toggleStar}from"@verdocs/js-sdk";var verdocsTemplateStarCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-star{display:-ms-flexbox;display:flex;-ms-flex:0 0 60px;flex:0 0 60px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;font-family:"Inter", "Barlow", sans-serif}verdocs-template-star .star{line-height:10px}verdocs-template-star .star.updating{-webkit-animation:spinningStar 2s infinite linear;animation:spinningStar 2s infinite linear}verdocs-template-star .star svg{width:24px;height:24px}verdocs-template-star .count{color:#595c5d;font-size:14px;margin-left:10px}@-webkit-keyframes spinningStar{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spinningStar{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}';var VerdocsTemplateStarStyle0=verdocsTemplateStarCss;var OutlineStarIcon='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z" /></svg>';var SolidStarIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.007 5.404.433c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.433 2.082-5.006z" clip-rule="evenodd" /></svg>';var VerdocsTemplateStar=function(){function t(t){registerInstance(this,t);this.starChange=createEvent(this,"starChange",7);this.sdkError=createEvent(this,"sdkError",7);this.endpoint=VerdocsEndpoint.getDefault();this.template=undefined;this.updating=false}t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.endpoint.loadSession();if(!this.endpoint.session){console.log("[TEMPLATES] Must be authenticated");return[2]}return[2]}))}))};t.prototype.toggle=function(t){var e=this;t.stopPropagation();this.updating=true;toggleStar(VerdocsEndpoint.getDefault(),this.template.id).then((function(t){e.updating=false;e.template.star_counter=t.star_counter;e.starChange.emit({templateId:e.template.id,starred:t.star_counter>0,count:t.star_counter})})).catch((function(t){e.updating=false;console.log("[STAR] Error toggling template star",t.message);e.sdkError.emit(t)}))};t.prototype.render=function(){var t=this;return h(Host,{key:"4b2e5c3bc4bbbbdeb699f23d36af8bd409677d02"},h("div",{key:"cac3bad8a37bcf044e037391bee73932b95931d1",class:"star ".concat(this.updating?"updating":""),innerHTML:this.template.star_counter?SolidStarIcon:OutlineStarIcon,onClick:function(e){return t.toggle(e)}}),h("div",{key:"3b947e3b3e0a8fe4a91aeba068bc10a86dbe82f5",class:"count"},this.template.star_counter||"--"))};return t}();VerdocsTemplateStar.style=VerdocsTemplateStarStyle0;export{VerdocsTemplateStar as verdocs_template_star};
|
1
|
+
var __awaiter=this&&this.__awaiter||function(t,e,r,n){function a(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function i(t){try{c(n.next(t))}catch(t){o(t)}}function s(t){try{c(n["throw"](t))}catch(t){o(t)}}function c(t){t.done?r(t.value):a(t.value).then(i,s)}c((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(t){return function(e){return c([t,e])}}function c(s){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,s[0]&&(r=0)),r)try{if(n=1,a&&(o=s[0]&2?a["return"]:s[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,s[1])).done)return o;if(a=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(s[0]===6&&r.label<o[1]){r.label=o[1];o=s;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(s);break}if(o[2])r.ops.pop();r.trys.pop();continue}s=e.call(t,r)}catch(t){s=[6,t];a=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host}from"./index-272d51a4.js";import{VerdocsEndpoint,toggleStar}from"@verdocs/js-sdk";var verdocsTemplateStarCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-star{display:-ms-flexbox;display:flex;-ms-flex:0 0 60px;flex:0 0 60px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;font-family:"Inter", "Barlow", sans-serif}verdocs-template-star .star{line-height:10px}verdocs-template-star .star.updating{-webkit-animation:spinningStar 2s infinite linear;animation:spinningStar 2s infinite linear}verdocs-template-star .star svg{width:24px;height:24px}verdocs-template-star .count{color:#595c5d;font-size:14px;margin-left:10px}@-webkit-keyframes spinningStar{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spinningStar{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}';var VerdocsTemplateStarStyle0=verdocsTemplateStarCss;var OutlineStarIcon='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z" /></svg>';var SolidStarIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.007 5.404.433c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.433 2.082-5.006z" clip-rule="evenodd" /></svg>';var VerdocsTemplateStar=function(){function t(t){registerInstance(this,t);this.starChange=createEvent(this,"starChange",7);this.sdkError=createEvent(this,"sdkError",7);this.endpoint=VerdocsEndpoint.getDefault();this.template=undefined;this.updating=false}t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.endpoint.loadSession();if(!this.endpoint.session){console.log("[TEMPLATES] Must be authenticated");return[2]}return[2]}))}))};t.prototype.toggle=function(t){var e=this;t.stopPropagation();this.updating=true;toggleStar(VerdocsEndpoint.getDefault(),this.template.id).then((function(t){e.updating=false;e.template.star_counter=t.star_counter;e.starChange.emit({templateId:e.template.id,starred:t.star_counter>0,count:t.star_counter})})).catch((function(t){e.updating=false;console.log("[STAR] Error toggling template star",t.message);e.sdkError.emit(t)}))};t.prototype.render=function(){var t=this;return h(Host,{key:"4b2e5c3bc4bbbbdeb699f23d36af8bd409677d02"},h("div",{key:"cac3bad8a37bcf044e037391bee73932b95931d1",class:"star ".concat(this.updating?"updating":""),innerHTML:this.template.star_counter?SolidStarIcon:OutlineStarIcon,onClick:function(e){return t.toggle(e)}}),h("div",{key:"3b947e3b3e0a8fe4a91aeba068bc10a86dbe82f5",class:"count"},this.template.star_counter||"--"))};return t}();VerdocsTemplateStar.style=VerdocsTemplateStarStyle0;export{VerdocsTemplateStar as verdocs_template_star};
|
2
|
+
//# sourceMappingURL=verdocs-template-star.entry.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["verdocsTemplateStarCss","VerdocsTemplateStarStyle0","OutlineStarIcon","SolidStarIcon","VerdocsTemplateStar","VerdocsEndpoint","getDefault","class_1","prototype","componentWillLoad","this","endpoint","loadSession","session","console","log","toggle","e","_this","stopPropagation","updating","toggleStar","template","id","then","r","star_counter","starChange","emit","templateId","starred","count","catch","message","sdkError","render","h","Host","key","class","concat","innerHTML","onClick"],"sources":["src/components/templates/verdocs-template-star/verdocs-template-star.scss?tag=verdocs-template-star","src/components/templates/verdocs-template-star/verdocs-template-star.tsx"],"sourcesContent":["@import '../../../theme.scss';\n\nverdocs-template-star {\n display: flex;\n flex: 0 0 60px;\n align-items: center;\n flex-direction: row;\n font-family: $primary-font;\n\n .star {\n line-height: 10px;\n\n &.updating {\n animation: spinningStar 2s infinite linear;\n }\n\n svg {\n width: 24px;\n height: 24px;\n }\n }\n\n .count {\n color: #595c5d;\n font-size: 14px;\n margin-left: 10px;\n }\n}\n\n@keyframes spinningStar {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n","import {VerdocsEndpoint, toggleStar, ITemplate} from '@verdocs/js-sdk';\nimport {Component, Prop, h, Host, Event, EventEmitter, State} from '@stencil/core';\nimport {SDKError} from '../../../utils/errors';\n\nconst OutlineStarIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M11.48 3.499a.562.562 0 011.04 0l2.125 5.111a.563.563 0 00.475.345l5.518.442c.499.04.701.663.321.988l-4.204 3.602a.563.563 0 00-.182.557l1.285 5.385a.562.562 0 01-.84.61l-4.725-2.885a.563.563 0 00-.586 0L6.982 20.54a.562.562 0 01-.84-.61l1.285-5.386a.562.562 0 00-.182-.557l-4.204-3.602a.563.563 0 01.321-.988l5.518-.442a.563.563 0 00.475-.345L11.48 3.5z\" /></svg>`;\n\nconst SolidStarIcon = `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path fill-rule=\"evenodd\" d=\"M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.007 5.404.433c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.433 2.082-5.006z\" clip-rule=\"evenodd\" /></svg>`;\n\n/**\n * Displays a clickable star that allows users to mark frequently-used templates.\n */\n@Component({\n tag: 'verdocs-template-star',\n styleUrl: 'verdocs-template-star.scss',\n})\nexport class VerdocsTemplateStar {\n /**\n * The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.\n */\n @Prop() endpoint: VerdocsEndpoint = VerdocsEndpoint.getDefault();\n\n /**\n * The template to display the star for.\n */\n @Prop({mutable: true}) template: ITemplate;\n\n /**\n * Event fired when the user toggles the star on or off. The event detail will contain\n * the new \"starred\" status and count.\n */\n @Event({composed: true}) starChange: EventEmitter<{templateId: string; starred: boolean; count: number}>;\n\n /**\n * Event fired if an error occurs. The event details will contain information about the error. Most errors will\n * terminate the process, and the calling application should correct the condition and re-render the component.\n */\n @Event({composed: true}) sdkError: EventEmitter<SDKError>;\n\n @State() updating = false;\n\n async componentWillLoad() {\n this.endpoint.loadSession();\n\n if (!this.endpoint.session) {\n console.log('[TEMPLATES] Must be authenticated');\n return;\n }\n }\n\n toggle(e: any) {\n e.stopPropagation();\n this.updating = true;\n toggleStar(VerdocsEndpoint.getDefault(), this.template.id)\n .then(r => {\n this.updating = false;\n this.template.star_counter = r.star_counter;\n this.starChange.emit({\n templateId: this.template.id,\n starred: r.star_counter > 0,\n count: r.star_counter,\n });\n })\n .catch(e => {\n this.updating = false;\n console.log('[STAR] Error toggling template star', e.message);\n this.sdkError.emit(e);\n });\n }\n\n render() {\n return (\n <Host>\n <div class={`star ${this.updating ? 'updating' : ''}`} innerHTML={this.template.star_counter ? SolidStarIcon : OutlineStarIcon} onClick={e => this.toggle(e)} />\n <div class=\"count\">{this.template.star_counter || '--'}</div>\n </Host>\n );\n }\n}\n"],"mappings":"0lDAAA,IAAMA,uBAAyB,ymCAC/B,IAAAC,0BAAeD,uBCGf,IAAME,gBAAkB,whBAExB,IAAMC,cAAgB,6a,IASTC,oBAAmB,W,mJAIMC,gBAAgBC,a,sCAmBhC,K,CAEdC,EAAAC,UAAAC,kBAAN,W,qFACEC,KAAKC,SAASC,cAEd,IAAKF,KAAKC,SAASE,QAAS,CAC1BC,QAAQC,IAAI,qCACZ,S,kBAIJR,EAAAC,UAAAQ,OAAA,SAAOC,GAAP,IAAAC,EAAAR,KACEO,EAAEE,kBACFT,KAAKU,SAAW,KAChBC,WAAWhB,gBAAgBC,aAAcI,KAAKY,SAASC,IACpDC,MAAK,SAAAC,GACJP,EAAKE,SAAW,MAChBF,EAAKI,SAASI,aAAeD,EAAEC,aAC/BR,EAAKS,WAAWC,KAAK,CACnBC,WAAYX,EAAKI,SAASC,GAC1BO,QAASL,EAAEC,aAAe,EAC1BK,MAAON,EAAEC,c,IAGZM,OAAM,SAAAf,GACLC,EAAKE,SAAW,MAChBN,QAAQC,IAAI,sCAAuCE,EAAEgB,SACrDf,EAAKgB,SAASN,KAAKX,E,KAIzBV,EAAAC,UAAA2B,OAAA,eAAAjB,EAAAR,KACE,OACE0B,EAACC,KAAI,CAAAC,IAAA,4CACHF,EAAA,OAAAE,IAAA,2CAAKC,MAAO,QAAAC,OAAQ9B,KAAKU,SAAW,WAAa,IAAMqB,UAAW/B,KAAKY,SAASI,aAAevB,cAAgBD,gBAAiBwC,QAAS,SAAAzB,GAAK,OAAAC,EAAKF,OAAOC,EAAZ,IAC9ImB,EAAA,OAAAE,IAAA,2CAAKC,MAAM,SAAS7B,KAAKY,SAASI,cAAgB,M,WA1D1B,G","ignoreList":[]}
|
@@ -1 +1,2 @@
|
|
1
|
-
import{r as registerInstance,h,H as Host}from"./index-272d51a4.js";var verdocsTemplateTagsCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-tags{font-family:"Inter", "Barlow", sans-serif}verdocs-template-tags span{margin:0 4px;height:28px;font-size:12px;font-weight:600;padding:5px 12px 7px;border-radius:5px;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;text-transform:uppercase;color:#33364b;border:1px solid #707ae5;background-color:#f5f5fa}';var VerdocsTemplateTagsStyle0=verdocsTemplateTagsCss;var VerdocsTemplateTags=function(){function e(e){registerInstance(this,e);this.tags=undefined}e.prototype.render=function(){var e;return h(Host,{key:"5b52ce24a601aa820868affd555ce4b46935938d"},(e=this.tags)===null||e===void 0?void 0:e.map((function(e){return h("span",null,e)})))};return e}();VerdocsTemplateTags.style=VerdocsTemplateTagsStyle0;export{VerdocsTemplateTags as verdocs_template_tags};
|
1
|
+
import{r as registerInstance,h,H as Host}from"./index-272d51a4.js";var verdocsTemplateTagsCss='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-template-tags{font-family:"Inter", "Barlow", sans-serif}verdocs-template-tags span{margin:0 4px;height:28px;font-size:12px;font-weight:600;padding:5px 12px 7px;border-radius:5px;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;text-transform:uppercase;color:#33364b;border:1px solid #707ae5;background-color:#f5f5fa}';var VerdocsTemplateTagsStyle0=verdocsTemplateTagsCss;var VerdocsTemplateTags=function(){function e(e){registerInstance(this,e);this.tags=undefined}e.prototype.render=function(){var e;return h(Host,{key:"5b52ce24a601aa820868affd555ce4b46935938d"},(e=this.tags)===null||e===void 0?void 0:e.map((function(e){return h("span",null,e)})))};return e}();VerdocsTemplateTags.style=VerdocsTemplateTagsStyle0;export{VerdocsTemplateTags as verdocs_template_tags};
|
2
|
+
//# sourceMappingURL=verdocs-template-tags.entry.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["verdocsTemplateTagsCss","VerdocsTemplateTagsStyle0","VerdocsTemplateTags","prototype","render","h","Host","key","_a","this","tags","map","tag"],"sources":["src/components/templates/verdocs-template-tags/verdocs-template-tags.scss?tag=verdocs-template-tags","src/components/templates/verdocs-template-tags/verdocs-template-tags.tsx"],"sourcesContent":["@import '../../../theme.scss';\n\nverdocs-template-tags {\n font-family: $primary-font;\n\n span {\n margin: 0 4px;\n height: 28px;\n font-size: 12px;\n font-weight: 600;\n padding: 5px 12px 7px;\n border-radius: 5px;\n display: inline-block;\n box-sizing: border-box;\n text-transform: uppercase;\n color: $label-color;\n border: 1px solid $border-color;\n background-color: $container-bg;\n }\n}\n","import {Component, Prop, h, Host} from '@stencil/core';\n\n/**\n * Displays a message listing a template's tags.\n */\n@Component({\n tag: 'verdocs-template-tags',\n styleUrl: 'verdocs-template-tags.scss',\n})\nexport class VerdocsTemplateTags {\n /**\n * The tags to display\n */\n @Prop() tags: any[];\n\n render() {\n return (\n <Host>\n {this.tags?.map(tag => (\n <span>{tag}</span>\n ))}\n </Host>\n );\n }\n}\n"],"mappings":"mEAAA,IAAMA,uBAAyB,upBAC/B,IAAAC,0BAAeD,uB,ICQFE,oBAAmB,W,2DAM9BA,EAAAC,UAAAC,OAAA,W,MACE,OACEC,EAACC,KAAI,CAAAC,IAAA,6CACFC,EAAAC,KAAKC,QAAI,MAAAF,SAAA,SAAAA,EAAEG,KAAI,SAAAC,GAAG,OACjBP,EAAA,YAAOO,EADU,I,WATK,G","ignoreList":[]}
|
@@ -1 +1,2 @@
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,n,s){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function r(e){try{c(s.next(e))}catch(e){a(e)}}function l(e){try{c(s["throw"](e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(r,l)}c((s=s.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},s,i,a,r;return r={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function l(e){return function(t){return c([e,t])}}function c(l){if(s)throw new TypeError("Generator is already executing.");while(r&&(r=0,l[0]&&(n=0)),n)try{if(s=1,i&&(a=l[0]&2?i["return"]:l[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;if(i=0,a)l=[l[0]&2,a.value];switch(l[0]){case 0:case 1:a=l;break;case 4:n.label++;return{value:l[1],done:false};case 5:n.label++;i=l[1];l=[0];continue;case 7:l=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){n.label=l[1];break}if(l[0]===6&&n.label<a[1]){n.label=a[1];a=l;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(l);break}if(a[2])n.ops.pop();n.trys.pop();continue}l=t.call(e,n)}catch(e){l=[6,e];i=0}finally{s=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host}from"./index-272d51a4.js";import{VerdocsEndpoint,getTemplates,deleteTemplate,integerSequence,canPerformTemplateAction}from"@verdocs/js-sdk";import{S as SDKError}from"./errors-887f1e88.js";import{f as format}from"./format-b8602175.js";var verdocsTemplatesListCss='@-webkit-keyframes verdocs-field-pulse {\n 0% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n 50% {\n background-color: rgba(0, 0, 0, 0);\n }\n 100% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n}\n@keyframes verdocs-field-pulse {\n 0% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n 50% {\n background-color: rgba(0, 0, 0, 0);\n }\n 100% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n}\nverdocs-templates-list {\n display: -ms-flexbox;\n display: flex;\n padding: 10px;\n font-size: 18px;\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n border-radius: 6px;\n color: #33364b;\n -ms-flex-direction: column;\n flex-direction: column;\n font-family: "Inter", "Barlow", sans-serif;\n}\nverdocs-templates-list .header {\n width: 100%;\n row-gap: 4px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -webkit-column-gap: 12px;\n -moz-column-gap: 12px;\n column-gap: 12px;\n margin: 0 0 10px 0;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-direction: row;\n flex-direction: row;\n}\nverdocs-templates-list .header .filter {\n width: 150px;\n}\nverdocs-templates-list .header verdocs-text-input {\n margin: 0;\n}\nverdocs-templates-list .header verdocs-text-input input {\n height: 32px;\n}\nverdocs-templates-list .filter {\n -ms-flex-align: center;\n align-items: center;\n}\nverdocs-templates-list .template-placeholder {\n height: 48px;\n -ms-flex: 0 0 48px;\n flex: 0 0 48px;\n margin: 5px 0;\n border-radius: 5px;\n background: #f5f5fa;\n}\nverdocs-templates-list .template {\n width: 100%;\n margin: 2px 0;\n border: 1px solid #ffffff;\n background: #ffffff;\n}\nverdocs-templates-list .template:hover {\n cursor: pointer;\n background: #ededff;\n border: 1px solid #a7a7f5;\n}\nverdocs-templates-list .template .inner {\n gap: 12px;\n display: -ms-flexbox;\n display: flex;\n padding: 8px 14px;\n border-radius: 5px;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-align: center;\n align-items: center;\n container-type: inline-size;\n}\nverdocs-templates-list .template .inner svg {\n width: 24px;\n height: 24px;\n}\nverdocs-templates-list .name {\n -ms-flex: 1;\n flex: 1;\n display: -ms-flexbox;\n display: flex;\n color: black;\n font-size: 16px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n@media screen and (max-width: 1300px) {\n verdocs-templates-list .name {\n font-size: 16px;\n }\n}\nverdocs-templates-list .spacer {\n margin: 0;\n height: 30px;\n -ms-flex: 0 0 1px;\n flex: 0 0 1px;\n display: -ms-flexbox;\n display: flex;\n border-right: 1px solid #dad8dd;\n}\n@media screen and (max-width: 800px) {\n verdocs-templates-list .spacer {\n display: none;\n }\n}\nverdocs-templates-list .empty-text {\n font-size: 20px;\n text-align: center;\n margin: 16px 0 0 0;\n padding: 80px 80px;\n border: 2px solid #ccc;\n}\nverdocs-templates-list .usage,\nverdocs-templates-list .ownership,\nverdocs-templates-list .last-used {\n gap: 10px;\n color: #444;\n display: -ms-flexbox;\n display: flex;\n font-size: 16px;\n margin: 0 0 0 10px;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-direction: row;\n flex-direction: row;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\nverdocs-templates-list .usage span,\nverdocs-templates-list .usage svg,\nverdocs-templates-list .ownership span,\nverdocs-templates-list .ownership svg,\nverdocs-templates-list .last-used span,\nverdocs-templates-list .last-used svg {\n width: 24px;\n height: 24px;\n}\nverdocs-templates-list .usage span,\nverdocs-templates-list .ownership span,\nverdocs-templates-list .last-used span {\n display: block;\n}\n@media screen and (max-width: 700px) {\n verdocs-templates-list verdocs-template-star {\n display: none;\n }\n}\nverdocs-templates-list .ownership {\n -ms-flex: 0 0 100px;\n flex: 0 0 100px;\n}\n@media screen and (max-width: 700px) {\n verdocs-templates-list .ownership {\n display: none;\n }\n}\nverdocs-templates-list .last-used {\n -ms-flex: 0 0 130px;\n flex: 0 0 130px;\n}\nverdocs-templates-list .usage {\n -ms-flex: 0 0 60px;\n flex: 0 0 60px;\n}\nverdocs-templates-list .header-row {\n display: none;\n}\nverdocs-templates-list table {\n container-type: size;\n max-width: 100%;\n overflow: hidden;\n table-layout: fixed;\n}\nverdocs-templates-list .data-row {\n cursor: pointer;\n background: #ededff;\n border: 1px solid #a7a7f5;\n}\nverdocs-templates-list .data-col svg {\n width: 24px;\n height: 24px;\n}\nverdocs-templates-list .col-name {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n}\n@container (max-width:700 px) {\n verdocs-templates-list verdocs-templates-list .col-starred {\n display: none;\n }\n}';var VerdocsTemplatesListStyle0=verdocsTemplatesListCss;var GlobeAltIcon='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M12 21a9.004 9.004 0 008.716-6.747M12 21a9.004 9.004 0 01-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 017.843 4.582M12 3a8.997 8.997 0 00-7.843 4.582m15.686 0A11.953 11.953 0 0112 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0121 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0112 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 013 12c0-1.605.42-3.113 1.157-4.418" /></svg>';var LockClosedIcon='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z" /></svg>';var BuildingOfficeIcon='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21" /></svg>';var EnvelopeIcon='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M21.75 6.75v10.5a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25m19.5 0v.243a2.25 2.25 0 01-1.07 1.916l-7.5 4.615a2.25 2.25 0 01-2.36 0L3.32 8.91a2.25 2.25 0 01-1.07-1.916V6.75" /></svg>';var CreatedIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.88 122.88"><g><path d="M81.61,4.73c0-2.61,2.58-4.73,5.77-4.73c3.19,0,5.77,2.12,5.77,4.73v20.72c0,2.61-2.58,4.73-5.77,4.73 c-3.19,0-5.77-2.12-5.77-4.73V4.73L81.61,4.73z M66.11,103.81c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2H81.9 c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H66.11L66.11,103.81z M15.85,67.09c-0.34,0-0.61-1.43-0.61-3.2 c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H15.85L15.85,67.09z M40.98,67.09 c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H40.98 L40.98,67.09z M66.11,67.09c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2H81.9c0.34,0,0.61,1.43,0.61,3.2 c0,1.77-0.27,3.2-0.61,3.2H66.11L66.11,67.09z M91.25,67.09c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79 c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H91.25L91.25,67.09z M15.85,85.45c-0.34,0-0.61-1.43-0.61-3.2 c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H15.85L15.85,85.45z M40.98,85.45 c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H40.98 L40.98,85.45z M66.11,85.45c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2H81.9c0.34,0,0.61,1.43,0.61,3.2 c0,1.77-0.27,3.2-0.61,3.2H66.11L66.11,85.45z M91.25,85.45c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79 c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H91.25L91.25,85.45z M15.85,103.81c-0.34,0-0.61-1.43-0.61-3.2 c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H15.85L15.85,103.81z M40.98,103.81 c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H40.98 L40.98,103.81z M29.61,4.73c0-2.61,2.58-4.73,5.77-4.73s5.77,2.12,5.77,4.73v20.72c0,2.61-2.58,4.73-5.77,4.73 s-5.77-2.12-5.77-4.73V4.73L29.61,4.73z M6.4,45.32h110.07V21.47c0-0.8-0.33-1.53-0.86-2.07c-0.53-0.53-1.26-0.86-2.07-0.86H103 c-1.77,0-3.2-1.43-3.2-3.2c0-1.77,1.43-3.2,3.2-3.2h10.55c2.57,0,4.9,1.05,6.59,2.74c1.69,1.69,2.74,4.02,2.74,6.59v27.06v65.03 c0,2.57-1.05,4.9-2.74,6.59c-1.69,1.69-4.02,2.74-6.59,2.74H9.33c-2.57,0-4.9-1.05-6.59-2.74C1.05,118.45,0,116.12,0,113.55V48.52 V21.47c0-2.57,1.05-4.9,2.74-6.59c1.69-1.69,4.02-2.74,6.59-2.74H20.6c1.77,0,3.2,1.43,3.2,3.2c0,1.77-1.43,3.2-3.2,3.2H9.33 c-0.8,0-1.53,0.33-2.07,0.86c-0.53,0.53-0.86,1.26-0.86,2.07V45.32L6.4,45.32z M116.48,51.73H6.4v61.82c0,0.8,0.33,1.53,0.86,2.07 c0.53,0.53,1.26,0.86,2.07,0.86h104.22c0.8,0,1.53-0.33,2.07-0.86c0.53-0.53,0.86-1.26,0.86-2.07V51.73L116.48,51.73z M50.43,18.54 c-1.77,0-3.2-1.43-3.2-3.2c0-1.77,1.43-3.2,3.2-3.2h21.49c1.77,0,3.2,1.43,3.2,3.2c0,1.77-1.43,3.2-3.2,3.2H50.43L50.43,18.54z"/></g></svg>';var LastUsedIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 410.2"><path d="M35.28 35.51h32.54v43.42c0 10.58 4.27 20.06 11.35 27.23 17.03 17.14 45.5 17.45 63.06.93 7.71-7.29 12.4-17.14 12.4-28.16V35.51h65.71v43.42c0 6.34 1.56 12.3 4.35 17.6 2.03 3.85 4.71 7.37 7.92 10.43l2.41 2.24c1.79 1.46 3.71 2.79 5.76 3.97l.31.18.07.04.25.13.16.1.15.08.27.14.05.03.32.17.05.03.27.13.15.08.17.09.26.12.07.04.32.16.03.01.31.15.12.06.2.09.24.11.1.05.33.14.34.16.1.04.23.1.21.09.13.05.31.13h.03l.34.14.08.04.27.1.18.07.16.06.3.11.05.02.34.12.06.02.3.11.16.05.19.07.26.09.09.03.35.12.02.01.34.1.13.04.22.07.25.07.11.03.36.11.36.1.11.03.25.07.22.06.14.04.34.09h.02l.37.1.08.02.29.06.19.05.17.03.32.08.05.01.37.08.06.01.31.06.17.04.21.03.28.06.09.02.37.07h.03l.35.06.14.03.23.03.27.04.11.02.38.06.38.05.12.01.26.04.23.03.15.01.35.05h.03l.39.04.08.01.3.02.21.02.17.02.34.02.05.01.39.03h.05l.34.02.18.01.21.01.3.02h.08l.39.01.03.01.36.01h.39l.28.01h.96l.33-.01h.39l.18-.01.2-.01.25-.01h.13l.32-.02h.07l.38-.02h.01l.37-.02.07-.01.32-.02.12-.01.26-.02.19-.02.19-.02.25-.02.13-.01.31-.04h.07l.37-.05h.01l.37-.04.06-.01.32-.04.12-.02.26-.03.18-.03.19-.03.24-.04.14-.02.3-.05.07-.01.36-.06h.01l.37-.07.05-.01.32-.06.12-.02.25-.05.18-.04.19-.04.23-.05.14-.03.29-.07.08-.01.35-.08.01-.01.36-.08.05-.02.31-.08.11-.02.25-.07.17-.04.2-.06.22-.05.14-.05.28-.08.07-.02.34-.09.02-.01.36-.11.03-.01.32-.1.1-.03.25-.08.16-.05.19-.07.22-.07.13-.04.28-.1.08-.03.32-.11.02-.01.35-.13.04-.01.3-.11.09-.04.26-.1.15-.06.19-.07.21-.09.13-.05.26-.11.08-.03.32-.13.02-.01.33-.14.04-.02.3-.13.09-.04.24-.11.14-.07.19-.08.19-.1.14-.06.25-.12.08-.03.3-.16h.03l.32-.17.03-.01.29-.16.09-.04.24-.12.13-.07.19-.1.18-.1.14-.07.23-.13.08-.05.29-.16.03-.01.31-.18c1.11-.64 2.17-1.31 3.2-2.03l2.71-1.95c4.36-3.56 7.92-7.88 10.43-12.76 2.73-5.26 4.25-11.19 4.25-17.5V35.51h33.97c9.68 0 18.5 3.98 24.91 10.38 6.4 6.37 10.38 15.2 10.38 24.9V192.9H365.1v-53.83H11.3v233.49c0 15.25 12.49 27.74 27.75 27.74h298.3c15.27 0 27.75-12.51 27.75-27.74V325.6h11.31v49.32c0 9.7-3.98 18.53-10.37 24.91-6.42 6.39-15.24 10.37-24.92 10.37H35.28c-9.68 0-18.49-3.97-24.89-10.37C3.97 393.41 0 384.59 0 374.92V70.79C0 61.12 3.97 52.3 10.36 45.9c6.43-6.42 15.25-10.39 24.92-10.39zm211.43-21.54c0-7.71 7.61-13.97 17.03-13.97 9.42 0 17.04 6.26 17.04 13.97v64.96c0 7.7-7.62 13.96-17.04 13.96-9.42 0-17.03-6.26-17.03-13.96V13.97zm-152.52 0C94.19 6.26 101.81 0 111.23 0c9.42 0 17.03 6.26 17.03 13.97v64.96c0 7.7-7.61 13.96-17.03 13.96-9.42 0-17.04-6.26-17.04-13.96V13.97zm311.37 327.72c1.48-14.79 2.69-32.45 3.59-46.5h-75.88v-71.88h77.43c-.39-14.06-1.17-31.75-2.35-46.58-.96-5.93 6.02-9.73 10.51-5.9l90.89 82.99c2.7 2.31 3.02 6.38.7 9.08l-.74.73-93.65 84.05c-4.6 3.89-11.47-.19-10.5-5.99zM63.51 286h50.56c3.53 0 6.43 2.91 6.43 6.44v42.06c0 3.52-2.91 6.44-6.43 6.44H63.51c-3.53 0-6.44-2.91-6.44-6.44v-42.06c0-3.54 2.9-6.44 6.44-6.44zm198.44-98.62h50.55c3.23 0 5.92 2.43 6.37 5.52h-16v49.42h-40.92c-3.53 0-6.45-2.9-6.45-6.45v-42.05c0-3.54 2.9-6.44 6.45-6.44zm0 98.62h40.92v39.6h16.07v8.9c0 3.52-2.92 6.44-6.44 6.44h-50.55c-3.53 0-6.45-2.91-6.45-6.44v-42.06c0-3.54 2.9-6.44 6.45-6.44zm-98.5-98.62h50.56c3.53 0 6.43 2.92 6.43 6.44v42.05c0 3.53-2.91 6.45-6.43 6.45h-50.56c-3.53 0-6.44-2.9-6.44-6.45v-42.05c0-3.54 2.9-6.44 6.44-6.44zm-99.94 0h50.56c3.53 0 6.43 2.92 6.43 6.44v42.05c0 3.53-2.91 6.45-6.43 6.45H63.51c-3.53 0-6.44-2.9-6.44-6.45v-42.05c0-3.54 2.9-6.44 6.44-6.44zM163.45 286h50.56c3.53 0 6.43 2.91 6.43 6.44v42.06c0 3.52-2.91 6.44-6.43 6.44h-50.56c-3.53 0-6.44-2.91-6.44-6.44v-42.06c0-3.54 2.9-6.44 6.44-6.44z"/></svg>';var UpdatedIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 506.49"><path fill-rule="nonzero" d="m371.06 415.61-43.25 11.52 6.23-46.41 37.02 34.89zm6.76-177.5c36.98 0 70.56 15.04 94.83 39.35C496.96 301.7 512 335.25 512 372.31c0 37.02-15.02 70.61-39.3 94.88l-.68.64c-24.23 23.88-57.5 38.66-94.2 38.66-37.06 0-70.61-15.04-94.88-39.31l-.64-.69c-23.9-24.24-38.68-57.53-38.68-94.18 0-37.06 15.04-70.61 39.32-94.89 24.27-24.27 57.85-39.31 94.88-39.31zm78.74 55.41c-20.09-20.11-47.96-32.58-78.74-32.58-30.75 0-58.61 12.47-78.75 32.62-20.15 20.14-32.62 48-32.62 78.75 0 30.5 12.25 58.14 32.02 78.19l.6.55c20.14 20.14 48 32.61 78.75 32.61 30.48 0 58.12-12.25 78.21-32.02l.54-.58c20.15-20.15 32.61-48 32.61-78.75s-12.48-58.61-32.62-78.79zM294.24 17.11C294.24 7.69 303.52 0 315.1 0c11.57 0 20.87 7.64 20.87 17.11v74.85c0 9.42-9.3 17.11-20.87 17.11-11.58 0-20.86-7.65-20.86-17.11V17.11zM56.8 242.28c-1.17 0-2.23-5.2-2.23-11.57 0-6.38.92-11.53 2.23-11.53h56.94c1.18 0 2.24 5.2 2.24 11.53 0 6.39-.92 11.57-2.24 11.57H56.8zm90.77 0c-1.17 0-2.23-5.2-2.23-11.57 0-6.38.92-11.53 2.23-11.53h56.94c1.18 0 2.24 5.2 2.24 11.53 0 6.39-.92 11.57-2.24 11.57h-56.94zm90.77 0c-1.16 0-2.22-5.2-2.22-11.57 0-6.38.92-11.53 2.22-11.53h56.94c1.19 0 2.25 5.15 2.25 11.49-5.7 3.55-11.2 7.44-16.43 11.61h-42.76zm-181.4 66.24c-1.18 0-2.24-5.2-2.24-11.57 0-6.38.93-11.58 2.24-11.58h56.94c1.18 0 2.22 5.2 2.22 11.58 0 6.37-.91 11.57-2.22 11.57H56.94zm90.77 0c-1.18 0-2.24-5.2-2.24-11.57 0-6.38.93-11.58 2.24-11.58h56.94c1.18 0 2.23 5.2 2.23 11.58 0 6.37-.92 11.57-2.23 11.57h-56.94zM57.06 374.8c-1.18 0-2.24-5.2-2.24-11.59 0-6.36.94-11.56 2.24-11.56H114c1.19 0 2.24 5.2 2.24 11.56 0 6.39-.93 11.59-2.24 11.59H57.06zm90.78 0c-1.19 0-2.25-5.2-2.25-11.59 0-6.36.94-11.56 2.25-11.56h56.94c1.18 0 2.24 5.2 2.24 11.56 0 6.39-.94 11.59-2.24 11.59h-56.94zM106.83 17.11C106.83 7.69 116.1 0 127.69 0c11.57 0 20.86 7.64 20.86 17.11v74.85c0 9.42-9.34 17.11-20.86 17.11-11.59 0-20.86-7.65-20.86-17.11V17.11zM22.97 163.64h397.39V77.46c0-2.94-1.19-5.53-3.09-7.43-1.9-1.9-4.59-3.08-7.42-3.08h-38.1c-6.39 0-11.59-5.2-11.59-11.57 0-6.38 5.2-11.58 11.59-11.58h38.1c9.32 0 17.7 3.77 23.82 9.88 6.12 6.14 9.88 14.5 9.88 23.83v136.81c-7.61-2.62-15.41-4.73-23.44-6.29v-21.38h.25H22.97v223.17c0 2.94 1.18 5.52 3.08 7.42 1.91 1.9 4.61 3.08 7.44 3.08h188.85c2.16 8.02 4.86 15.84 8.11 23.36H33.71c-9.3 0-17.7-3.75-23.84-9.89C3.75 427.72 0 419.36 0 410.02V77.55c0-9.29 3.75-17.7 9.87-23.82 6.14-6.13 14.5-9.89 23.84-9.89h40.67c6.38 0 11.57 5.2 11.57 11.57C85.95 61.8 80.76 67 74.38 67H33.71c-2.96 0-5.54 1.18-7.44 3.08-1.9 1.9-3.09 4.59-3.09 7.43v86.16h-.21v-.03zm158.95-96.69c-6.39 0-11.57-5.2-11.57-11.57 0-6.38 5.18-11.58 11.57-11.58h77.55c6.39 0 11.57 5.2 11.57 11.58 0 6.37-5.18 11.57-11.57 11.57h-77.55zm161.66 303.24 45.37-51.33c.72-.84 1.78-1.34 2.85-1.36.69-.01 1.37.13 1.98.45l32.94 29.96c.66.59 1.05 1.46 1.06 2.35.02 1-.39 1.98-1.16 2.66l-46.15 52.16-36.95-34.89h.06z"/></svg>';var VisibilityFilters=[{value:"private_shared",label:"Personal + Shared"},{value:"private",label:"Personal"},{value:"shared",label:"Shared"},{value:"public",label:"Public"}];var StarredFilters=[{value:"all",label:"All"},{value:"starred",label:"Starred"},{value:"unstarred",label:"Not Starred"}];var SortOptions=[{value:"name",label:"Name"},{value:"created_at",label:"Created"},{value:"updated_at",label:"Last Updated"},{value:"last_used_at",label:"Last Used"},{value:"counter",label:"Most Used"},{value:"star_counter",label:"Most Starred"}];var VerdocsTemplatesList=function(){function e(e){var t=this;registerInstance(this,e);this.sdkError=createEvent(this,"sdkError",7);this.viewTemplate=createEvent(this,"viewTemplate",7);this.signNow=createEvent(this,"signNow",7);this.submittedData=createEvent(this,"submittedData",7);this.editTemplate=createEvent(this,"editTemplate",7);this.templateDeleted=createEvent(this,"templateDeleted",7);this.changeSort=createEvent(this,"changeSort",7);this.changeVisibility=createEvent(this,"changeVisibility",7);this.changeStarred=createEvent(this,"changeStarred",7);this.changeName=createEvent(this,"changeName",7);this.handleOptionSelected=function(e,n){var s,i,a,r;if(e==="send"){(s=t.viewTemplate)===null||s===void 0?void 0:s.emit({endpoint:t.endpoint,template:n})}else if(e==="signnow"){(i=t.signNow)===null||i===void 0?void 0:i.emit({endpoint:t.endpoint,template:n})}else if(e==="submitted"){(a=t.submittedData)===null||a===void 0?void 0:a.emit({endpoint:t.endpoint,template:n})}else if(e==="edit"){(r=t.editTemplate)===null||r===void 0?void 0:r.emit({endpoint:t.endpoint,template:n})}else if(e==="delete"){t.confirmDelete=n}};this.endpoint=VerdocsEndpoint.getDefault();this.visibility="private_shared";this.starred="all";this.sort="updated_at";this.name="";this.allowedActions=["send","submitted","link","edit","delete"];this.showPagination=true;this.rowsPerPage=10;this.selectedPage=0;this.count=0;this.initiallyLoaded=false;this.loading=true;this.confirmDelete=null;this.templates=[];this.localNameFilter=""}e.prototype.handleSharingUpdated=function(){return this.queryTemplates()};e.prototype.handleStarredUpdated=function(){return this.queryTemplates()};e.prototype.handleSortUpdated=function(){return this.queryTemplates()};e.prototype.handleNameUpdated=function(){return this.queryTemplates()};e.prototype.handlePageUpdated=function(){return this.queryTemplates()};e.prototype.componentWillLoad=function(){this.endpoint.loadSession();if(!this.endpoint.session){console.log("[TEMPLATES] Must be authenticated");return}};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.queryTemplates()];case 1:e.sent();this.initiallyLoaded=true;return[2]}}))}))};e.prototype.queryTemplates=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,s,i,a;return __generator(this,(function(r){switch(r.label){case 0:console.log("[TEMPLATES] Querying templates");this.loading=true;r.label=1;case 1:r.trys.push([1,3,,4]);s={visibility:this.visibility,page:this.selectedPage,rows:this.rowsPerPage};if(this.name.trim()!==""){s.q=this.name.trim()}return[4,getTemplates(this.endpoint,s)];case 2:i=r.sent();this.templates=i.templates;this.count=i.count;this.loading=false;return[3,4];case 3:a=r.sent();this.loading=false;console.log("[TEMPLATES] Error listing templates",a);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new SDKError(a.message,(t=a.response)===null||t===void 0?void 0:t.status,(n=a.response)===null||n===void 0?void 0:n.data));return[3,4];case 4:return[2]}}))}))};e.prototype.deleteTemplate=function(e){var t=this;this.confirmDelete=null;deleteTemplate(this.endpoint,e.id).then((function(){var n;console.log("[TEMPLATES] Deleted template",e);(n=t.templateDeleted)===null||n===void 0?void 0:n.emit({endpoint:t.endpoint,template:e});return t.queryTemplates()})).catch((function(n){var s,i,a;console.log("[TEMPLATES] Error deleting template",e);(s=t.sdkError)===null||s===void 0?void 0:s.emit(new SDKError(n.message,(i=n.response)===null||i===void 0?void 0:i.status,(a=n.response)===null||a===void 0?void 0:a.data))}))};e.prototype.render=function(){var e=this;var t=!this.localNameFilter?this.templates:this.templates.filter((function(t){return t.name.toLowerCase().includes(e.localNameFilter.toLowerCase())}));return h(Host,{key:"8a4c436255e24af2dd9bffaa108a3c62ea72accc"},h("div",{key:"a28f3b140c708fc9491a1567b7e0977d00b02b23",class:"header"},h("div",{key:"ecb9bf6ea174af19a155b3bffdd9f3df6e3d0452",class:"filter"},h("verdocs-text-input",{key:"b4f4046fee300d2deefe70246158cb6048844e75",id:"verdocs-filter-name",value:this.name,clearable:true,autocomplete:"off",placeholder:"Filter by Name...",onInput:function(t){return e.localNameFilter=t.target.value.trim()},onFocusout:function(t){var n;e.name=t.target.value.trim();e.localNameFilter=t.target.value.trim();(n=e.changeName)===null||n===void 0?void 0:n.emit(e.name)}})),h("verdocs-quick-filter",{key:"c070d309bdf00dbdcb244929cbe3f16ce404656f",label:"Visibility",value:this.visibility,options:VisibilityFilters,onOptionSelected:function(t){var n;e.visibility=t.detail.value;(n=e.changeVisibility)===null||n===void 0?void 0:n.emit(e.visibility)}}),h("verdocs-quick-filter",{key:"ed6d35f557ae3c39498b020167e572024d8c2fa0",label:"Starred",value:this.starred,options:StarredFilters,onOptionSelected:function(t){var n;e.starred=t.detail.value;(n=e.changeStarred)===null||n===void 0?void 0:n.emit(e.starred)}}),h("verdocs-quick-filter",{key:"59ae730527224140d6b4ae1f94878ccc3cc9e5e8",label:"Sort By",value:this.sort,options:SortOptions,onOptionSelected:function(t){var n;e.sort=t.detail.value;(n=e.changeSort)===null||n===void 0?void 0:n.emit(e.sort)}}),this.loading&&h("verdocs-spinner",{key:"10c67eddf0cd00c85f636251b276f8fb6acc8a0c",mode:"dark",size:24}),h("div",{key:"615ebf459f9ee6c07a171393844add188b1af82a",style:{display:"flex",flex:"1"}})),t.map((function(t){var n=e.sort==="created_at"?"created_at":e.sort==="updated_at"?"updated_at":"last_used_at";var s=t[n];var i=[];var a=[];if(e.allowedActions.includes("send")){i.push({label:"Preview / Send",id:"send",disabled:!canPerformTemplateAction(e.endpoint.profile,"read",t)})}if(e.allowedActions.includes("signnow")){i.push({label:"Sign Now",id:"signnow",disabled:true})}if(e.allowedActions.includes("submitted")){i.push({label:""});i.push({label:"Submissions",id:"submitted",disabled:!canPerformTemplateAction(e.endpoint.profile,"read",t)})}if(e.allowedActions.includes("link")||e.allowedActions.includes("edit")||e.allowedActions.includes("delete")){i.push({label:""});if(e.allowedActions.includes("link")||e.allowedActions.includes("edit")||e.allowedActions.includes("delete")){i.push({label:"Edit",id:"edit",disabled:!a.includes("write")})}if(e.allowedActions.includes("link")||e.allowedActions.includes("edit")||e.allowedActions.includes("delete")){i.push({label:"Delete",id:"delete",disabled:!a.includes("delete")})}}return h("div",{class:"template",onClick:function(){var n;(n=e.viewTemplate)===null||n===void 0?void 0:n.emit({endpoint:e.endpoint,template:t})}},h("div",{class:"inner"},h("verdocs-template-star",{template:t,endpoint:e.endpoint}),h("div",{class:"spacer icon-spacer"}),h("div",{class:"name"},t.name),h("div",{class:"spacer usage-spacer"}),h("div",{class:"usage"},h("span",{innerHTML:EnvelopeIcon,title:"Usage Counter"}),t.counter||"--"),h("div",{class:"spacer last-used-spacer"}),h("div",{class:"last-used"},n==="created_at"&&h("span",{innerHTML:CreatedIcon,title:"Created"}),n==="updated_at"&&h("span",{innerHTML:UpdatedIcon,title:"Last Updated"}),n==="last_used_at"&&h("span",{innerHTML:LastUsedIcon,title:"Last Used"}),s?format(new Date(s),"P"):"Never"),h("div",{class:"spacer ownership-spacer"}),t.is_public&&h("div",{class:"ownership"},h("span",{innerHTML:GlobeAltIcon})," Public"),!t.is_public&&!t.is_personal&&h("div",{class:"ownership"},h("span",{innerHTML:LockClosedIcon})," Private"),!t.is_public&&t.is_personal&&h("div",{class:"ownership"},h("span",{innerHTML:BuildingOfficeIcon})," Shared"),h("verdocs-dropdown",{options:i,onOptionSelected:function(n){return e.handleOptionSelected(n.detail.id,t)}})))})),!this.initiallyLoaded&&h("div",{key:"3163f2916038b79f02e5cbda0c73d8da99b7770c"},integerSequence(0,this.rowsPerPage).map((function(){return h("div",{class:"template-placeholder"})}))),this.initiallyLoaded&&!this.templates.length&&h("div",{key:"ad467ef5f9d17286134252e0dac59584a670f381",class:"empty-text"},"No matching templates found. Please adjust your filters and try again."),this.initiallyLoaded&&this.templates.length&&this.showPagination?h("div",{style:{marginTop:"20px"}},h("verdocs-pagination",{selectedPage:this.selectedPage,perPage:this.rowsPerPage,itemCount:this.count,onSelectPage:function(t){e.selectedPage=t.detail.selectedPage}})):h("div",null),this.confirmDelete&&h("verdocs-ok-dialog",{key:"523648491adbf8f81da3b3e2a239d671b3e087d6",heading:"Delete this Template?",message:"This operation cannot be undone.",onNext:function(){return e.deleteTemplate(e.confirmDelete)},onExit:function(){return e.confirmDelete=null},showCancel:true}))};Object.defineProperty(e,"watchers",{get:function(){return{sharing:["handleSharingUpdated"],starred:["handleStarredUpdated"],sort:["handleSortUpdated"],name:["handleNameUpdated"],selectedPage:["handlePageUpdated"]}},enumerable:false,configurable:true});return e}();VerdocsTemplatesList.style=VerdocsTemplatesListStyle0;export{VerdocsTemplatesList as verdocs_templates_list};
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,n,s){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function r(e){try{c(s.next(e))}catch(e){a(e)}}function l(e){try{c(s["throw"](e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(r,l)}c((s=s.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},s,i,a,r;return r={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function l(e){return function(t){return c([e,t])}}function c(l){if(s)throw new TypeError("Generator is already executing.");while(r&&(r=0,l[0]&&(n=0)),n)try{if(s=1,i&&(a=l[0]&2?i["return"]:l[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,l[1])).done)return a;if(i=0,a)l=[l[0]&2,a.value];switch(l[0]){case 0:case 1:a=l;break;case 4:n.label++;return{value:l[1],done:false};case 5:n.label++;i=l[1];l=[0];continue;case 7:l=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){n.label=l[1];break}if(l[0]===6&&n.label<a[1]){n.label=a[1];a=l;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(l);break}if(a[2])n.ops.pop();n.trys.pop();continue}l=t.call(e,n)}catch(e){l=[6,e];i=0}finally{s=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,H as Host}from"./index-272d51a4.js";import{VerdocsEndpoint,getTemplates,deleteTemplate,integerSequence,canPerformTemplateAction}from"@verdocs/js-sdk";import{S as SDKError}from"./errors-887f1e88.js";import{f as format}from"./format-b8602175.js";var verdocsTemplatesListCss='@-webkit-keyframes verdocs-field-pulse {\n 0% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n 50% {\n background-color: rgba(0, 0, 0, 0);\n }\n 100% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n}\n@keyframes verdocs-field-pulse {\n 0% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n 50% {\n background-color: rgba(0, 0, 0, 0);\n }\n 100% {\n background-color: rgba(0, 0, 0, 0.35);\n }\n}\nverdocs-templates-list {\n display: -ms-flexbox;\n display: flex;\n padding: 10px;\n font-size: 18px;\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n border-radius: 6px;\n color: #33364b;\n -ms-flex-direction: column;\n flex-direction: column;\n font-family: "Inter", "Barlow", sans-serif;\n}\nverdocs-templates-list .header {\n width: 100%;\n row-gap: 4px;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -webkit-column-gap: 12px;\n -moz-column-gap: 12px;\n column-gap: 12px;\n margin: 0 0 10px 0;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-direction: row;\n flex-direction: row;\n}\nverdocs-templates-list .header .filter {\n width: 150px;\n}\nverdocs-templates-list .header verdocs-text-input {\n margin: 0;\n}\nverdocs-templates-list .header verdocs-text-input input {\n height: 32px;\n}\nverdocs-templates-list .filter {\n -ms-flex-align: center;\n align-items: center;\n}\nverdocs-templates-list .template-placeholder {\n height: 48px;\n -ms-flex: 0 0 48px;\n flex: 0 0 48px;\n margin: 5px 0;\n border-radius: 5px;\n background: #f5f5fa;\n}\nverdocs-templates-list .template {\n width: 100%;\n margin: 2px 0;\n border: 1px solid #ffffff;\n background: #ffffff;\n}\nverdocs-templates-list .template:hover {\n cursor: pointer;\n background: #ededff;\n border: 1px solid #a7a7f5;\n}\nverdocs-templates-list .template .inner {\n gap: 12px;\n display: -ms-flexbox;\n display: flex;\n padding: 8px 14px;\n border-radius: 5px;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-align: center;\n align-items: center;\n container-type: inline-size;\n}\nverdocs-templates-list .template .inner svg {\n width: 24px;\n height: 24px;\n}\nverdocs-templates-list .name {\n -ms-flex: 1;\n flex: 1;\n display: -ms-flexbox;\n display: flex;\n color: black;\n font-size: 16px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n@media screen and (max-width: 1300px) {\n verdocs-templates-list .name {\n font-size: 16px;\n }\n}\nverdocs-templates-list .spacer {\n margin: 0;\n height: 30px;\n -ms-flex: 0 0 1px;\n flex: 0 0 1px;\n display: -ms-flexbox;\n display: flex;\n border-right: 1px solid #dad8dd;\n}\n@media screen and (max-width: 800px) {\n verdocs-templates-list .spacer {\n display: none;\n }\n}\nverdocs-templates-list .empty-text {\n font-size: 20px;\n text-align: center;\n margin: 16px 0 0 0;\n padding: 80px 80px;\n border: 2px solid #ccc;\n}\nverdocs-templates-list .usage,\nverdocs-templates-list .ownership,\nverdocs-templates-list .last-used {\n gap: 10px;\n color: #444;\n display: -ms-flexbox;\n display: flex;\n font-size: 16px;\n margin: 0 0 0 10px;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-direction: row;\n flex-direction: row;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\nverdocs-templates-list .usage span,\nverdocs-templates-list .usage svg,\nverdocs-templates-list .ownership span,\nverdocs-templates-list .ownership svg,\nverdocs-templates-list .last-used span,\nverdocs-templates-list .last-used svg {\n width: 24px;\n height: 24px;\n}\nverdocs-templates-list .usage span,\nverdocs-templates-list .ownership span,\nverdocs-templates-list .last-used span {\n display: block;\n}\n@media screen and (max-width: 700px) {\n verdocs-templates-list verdocs-template-star {\n display: none;\n }\n}\nverdocs-templates-list .ownership {\n -ms-flex: 0 0 100px;\n flex: 0 0 100px;\n}\n@media screen and (max-width: 700px) {\n verdocs-templates-list .ownership {\n display: none;\n }\n}\nverdocs-templates-list .last-used {\n -ms-flex: 0 0 130px;\n flex: 0 0 130px;\n}\nverdocs-templates-list .usage {\n -ms-flex: 0 0 60px;\n flex: 0 0 60px;\n}\nverdocs-templates-list .header-row {\n display: none;\n}\nverdocs-templates-list table {\n container-type: size;\n max-width: 100%;\n overflow: hidden;\n table-layout: fixed;\n}\nverdocs-templates-list .data-row {\n cursor: pointer;\n background: #ededff;\n border: 1px solid #a7a7f5;\n}\nverdocs-templates-list .data-col svg {\n width: 24px;\n height: 24px;\n}\nverdocs-templates-list .col-name {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n}\n@container (max-width:700 px) {\n verdocs-templates-list verdocs-templates-list .col-starred {\n display: none;\n }\n}';var VerdocsTemplatesListStyle0=verdocsTemplatesListCss;var GlobeAltIcon='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M12 21a9.004 9.004 0 008.716-6.747M12 21a9.004 9.004 0 01-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 017.843 4.582M12 3a8.997 8.997 0 00-7.843 4.582m15.686 0A11.953 11.953 0 0112 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0121 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0112 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 013 12c0-1.605.42-3.113 1.157-4.418" /></svg>';var LockClosedIcon='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z" /></svg>';var BuildingOfficeIcon='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21" /></svg>';var EnvelopeIcon='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M21.75 6.75v10.5a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25m19.5 0v.243a2.25 2.25 0 01-1.07 1.916l-7.5 4.615a2.25 2.25 0 01-2.36 0L3.32 8.91a2.25 2.25 0 01-1.07-1.916V6.75" /></svg>';var CreatedIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.88 122.88"><g><path d="M81.61,4.73c0-2.61,2.58-4.73,5.77-4.73c3.19,0,5.77,2.12,5.77,4.73v20.72c0,2.61-2.58,4.73-5.77,4.73 c-3.19,0-5.77-2.12-5.77-4.73V4.73L81.61,4.73z M66.11,103.81c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2H81.9 c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H66.11L66.11,103.81z M15.85,67.09c-0.34,0-0.61-1.43-0.61-3.2 c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H15.85L15.85,67.09z M40.98,67.09 c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H40.98 L40.98,67.09z M66.11,67.09c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2H81.9c0.34,0,0.61,1.43,0.61,3.2 c0,1.77-0.27,3.2-0.61,3.2H66.11L66.11,67.09z M91.25,67.09c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79 c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H91.25L91.25,67.09z M15.85,85.45c-0.34,0-0.61-1.43-0.61-3.2 c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H15.85L15.85,85.45z M40.98,85.45 c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H40.98 L40.98,85.45z M66.11,85.45c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2H81.9c0.34,0,0.61,1.43,0.61,3.2 c0,1.77-0.27,3.2-0.61,3.2H66.11L66.11,85.45z M91.25,85.45c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79 c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H91.25L91.25,85.45z M15.85,103.81c-0.34,0-0.61-1.43-0.61-3.2 c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H15.85L15.85,103.81z M40.98,103.81 c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H40.98 L40.98,103.81z M29.61,4.73c0-2.61,2.58-4.73,5.77-4.73s5.77,2.12,5.77,4.73v20.72c0,2.61-2.58,4.73-5.77,4.73 s-5.77-2.12-5.77-4.73V4.73L29.61,4.73z M6.4,45.32h110.07V21.47c0-0.8-0.33-1.53-0.86-2.07c-0.53-0.53-1.26-0.86-2.07-0.86H103 c-1.77,0-3.2-1.43-3.2-3.2c0-1.77,1.43-3.2,3.2-3.2h10.55c2.57,0,4.9,1.05,6.59,2.74c1.69,1.69,2.74,4.02,2.74,6.59v27.06v65.03 c0,2.57-1.05,4.9-2.74,6.59c-1.69,1.69-4.02,2.74-6.59,2.74H9.33c-2.57,0-4.9-1.05-6.59-2.74C1.05,118.45,0,116.12,0,113.55V48.52 V21.47c0-2.57,1.05-4.9,2.74-6.59c1.69-1.69,4.02-2.74,6.59-2.74H20.6c1.77,0,3.2,1.43,3.2,3.2c0,1.77-1.43,3.2-3.2,3.2H9.33 c-0.8,0-1.53,0.33-2.07,0.86c-0.53,0.53-0.86,1.26-0.86,2.07V45.32L6.4,45.32z M116.48,51.73H6.4v61.82c0,0.8,0.33,1.53,0.86,2.07 c0.53,0.53,1.26,0.86,2.07,0.86h104.22c0.8,0,1.53-0.33,2.07-0.86c0.53-0.53,0.86-1.26,0.86-2.07V51.73L116.48,51.73z M50.43,18.54 c-1.77,0-3.2-1.43-3.2-3.2c0-1.77,1.43-3.2,3.2-3.2h21.49c1.77,0,3.2,1.43,3.2,3.2c0,1.77-1.43,3.2-3.2,3.2H50.43L50.43,18.54z"/></g></svg>';var LastUsedIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 410.2"><path d="M35.28 35.51h32.54v43.42c0 10.58 4.27 20.06 11.35 27.23 17.03 17.14 45.5 17.45 63.06.93 7.71-7.29 12.4-17.14 12.4-28.16V35.51h65.71v43.42c0 6.34 1.56 12.3 4.35 17.6 2.03 3.85 4.71 7.37 7.92 10.43l2.41 2.24c1.79 1.46 3.71 2.79 5.76 3.97l.31.18.07.04.25.13.16.1.15.08.27.14.05.03.32.17.05.03.27.13.15.08.17.09.26.12.07.04.32.16.03.01.31.15.12.06.2.09.24.11.1.05.33.14.34.16.1.04.23.1.21.09.13.05.31.13h.03l.34.14.08.04.27.1.18.07.16.06.3.11.05.02.34.12.06.02.3.11.16.05.19.07.26.09.09.03.35.12.02.01.34.1.13.04.22.07.25.07.11.03.36.11.36.1.11.03.25.07.22.06.14.04.34.09h.02l.37.1.08.02.29.06.19.05.17.03.32.08.05.01.37.08.06.01.31.06.17.04.21.03.28.06.09.02.37.07h.03l.35.06.14.03.23.03.27.04.11.02.38.06.38.05.12.01.26.04.23.03.15.01.35.05h.03l.39.04.08.01.3.02.21.02.17.02.34.02.05.01.39.03h.05l.34.02.18.01.21.01.3.02h.08l.39.01.03.01.36.01h.39l.28.01h.96l.33-.01h.39l.18-.01.2-.01.25-.01h.13l.32-.02h.07l.38-.02h.01l.37-.02.07-.01.32-.02.12-.01.26-.02.19-.02.19-.02.25-.02.13-.01.31-.04h.07l.37-.05h.01l.37-.04.06-.01.32-.04.12-.02.26-.03.18-.03.19-.03.24-.04.14-.02.3-.05.07-.01.36-.06h.01l.37-.07.05-.01.32-.06.12-.02.25-.05.18-.04.19-.04.23-.05.14-.03.29-.07.08-.01.35-.08.01-.01.36-.08.05-.02.31-.08.11-.02.25-.07.17-.04.2-.06.22-.05.14-.05.28-.08.07-.02.34-.09.02-.01.36-.11.03-.01.32-.1.1-.03.25-.08.16-.05.19-.07.22-.07.13-.04.28-.1.08-.03.32-.11.02-.01.35-.13.04-.01.3-.11.09-.04.26-.1.15-.06.19-.07.21-.09.13-.05.26-.11.08-.03.32-.13.02-.01.33-.14.04-.02.3-.13.09-.04.24-.11.14-.07.19-.08.19-.1.14-.06.25-.12.08-.03.3-.16h.03l.32-.17.03-.01.29-.16.09-.04.24-.12.13-.07.19-.1.18-.1.14-.07.23-.13.08-.05.29-.16.03-.01.31-.18c1.11-.64 2.17-1.31 3.2-2.03l2.71-1.95c4.36-3.56 7.92-7.88 10.43-12.76 2.73-5.26 4.25-11.19 4.25-17.5V35.51h33.97c9.68 0 18.5 3.98 24.91 10.38 6.4 6.37 10.38 15.2 10.38 24.9V192.9H365.1v-53.83H11.3v233.49c0 15.25 12.49 27.74 27.75 27.74h298.3c15.27 0 27.75-12.51 27.75-27.74V325.6h11.31v49.32c0 9.7-3.98 18.53-10.37 24.91-6.42 6.39-15.24 10.37-24.92 10.37H35.28c-9.68 0-18.49-3.97-24.89-10.37C3.97 393.41 0 384.59 0 374.92V70.79C0 61.12 3.97 52.3 10.36 45.9c6.43-6.42 15.25-10.39 24.92-10.39zm211.43-21.54c0-7.71 7.61-13.97 17.03-13.97 9.42 0 17.04 6.26 17.04 13.97v64.96c0 7.7-7.62 13.96-17.04 13.96-9.42 0-17.03-6.26-17.03-13.96V13.97zm-152.52 0C94.19 6.26 101.81 0 111.23 0c9.42 0 17.03 6.26 17.03 13.97v64.96c0 7.7-7.61 13.96-17.03 13.96-9.42 0-17.04-6.26-17.04-13.96V13.97zm311.37 327.72c1.48-14.79 2.69-32.45 3.59-46.5h-75.88v-71.88h77.43c-.39-14.06-1.17-31.75-2.35-46.58-.96-5.93 6.02-9.73 10.51-5.9l90.89 82.99c2.7 2.31 3.02 6.38.7 9.08l-.74.73-93.65 84.05c-4.6 3.89-11.47-.19-10.5-5.99zM63.51 286h50.56c3.53 0 6.43 2.91 6.43 6.44v42.06c0 3.52-2.91 6.44-6.43 6.44H63.51c-3.53 0-6.44-2.91-6.44-6.44v-42.06c0-3.54 2.9-6.44 6.44-6.44zm198.44-98.62h50.55c3.23 0 5.92 2.43 6.37 5.52h-16v49.42h-40.92c-3.53 0-6.45-2.9-6.45-6.45v-42.05c0-3.54 2.9-6.44 6.45-6.44zm0 98.62h40.92v39.6h16.07v8.9c0 3.52-2.92 6.44-6.44 6.44h-50.55c-3.53 0-6.45-2.91-6.45-6.44v-42.06c0-3.54 2.9-6.44 6.45-6.44zm-98.5-98.62h50.56c3.53 0 6.43 2.92 6.43 6.44v42.05c0 3.53-2.91 6.45-6.43 6.45h-50.56c-3.53 0-6.44-2.9-6.44-6.45v-42.05c0-3.54 2.9-6.44 6.44-6.44zm-99.94 0h50.56c3.53 0 6.43 2.92 6.43 6.44v42.05c0 3.53-2.91 6.45-6.43 6.45H63.51c-3.53 0-6.44-2.9-6.44-6.45v-42.05c0-3.54 2.9-6.44 6.44-6.44zM163.45 286h50.56c3.53 0 6.43 2.91 6.43 6.44v42.06c0 3.52-2.91 6.44-6.43 6.44h-50.56c-3.53 0-6.44-2.91-6.44-6.44v-42.06c0-3.54 2.9-6.44 6.44-6.44z"/></svg>';var UpdatedIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 506.49"><path fill-rule="nonzero" d="m371.06 415.61-43.25 11.52 6.23-46.41 37.02 34.89zm6.76-177.5c36.98 0 70.56 15.04 94.83 39.35C496.96 301.7 512 335.25 512 372.31c0 37.02-15.02 70.61-39.3 94.88l-.68.64c-24.23 23.88-57.5 38.66-94.2 38.66-37.06 0-70.61-15.04-94.88-39.31l-.64-.69c-23.9-24.24-38.68-57.53-38.68-94.18 0-37.06 15.04-70.61 39.32-94.89 24.27-24.27 57.85-39.31 94.88-39.31zm78.74 55.41c-20.09-20.11-47.96-32.58-78.74-32.58-30.75 0-58.61 12.47-78.75 32.62-20.15 20.14-32.62 48-32.62 78.75 0 30.5 12.25 58.14 32.02 78.19l.6.55c20.14 20.14 48 32.61 78.75 32.61 30.48 0 58.12-12.25 78.21-32.02l.54-.58c20.15-20.15 32.61-48 32.61-78.75s-12.48-58.61-32.62-78.79zM294.24 17.11C294.24 7.69 303.52 0 315.1 0c11.57 0 20.87 7.64 20.87 17.11v74.85c0 9.42-9.3 17.11-20.87 17.11-11.58 0-20.86-7.65-20.86-17.11V17.11zM56.8 242.28c-1.17 0-2.23-5.2-2.23-11.57 0-6.38.92-11.53 2.23-11.53h56.94c1.18 0 2.24 5.2 2.24 11.53 0 6.39-.92 11.57-2.24 11.57H56.8zm90.77 0c-1.17 0-2.23-5.2-2.23-11.57 0-6.38.92-11.53 2.23-11.53h56.94c1.18 0 2.24 5.2 2.24 11.53 0 6.39-.92 11.57-2.24 11.57h-56.94zm90.77 0c-1.16 0-2.22-5.2-2.22-11.57 0-6.38.92-11.53 2.22-11.53h56.94c1.19 0 2.25 5.15 2.25 11.49-5.7 3.55-11.2 7.44-16.43 11.61h-42.76zm-181.4 66.24c-1.18 0-2.24-5.2-2.24-11.57 0-6.38.93-11.58 2.24-11.58h56.94c1.18 0 2.22 5.2 2.22 11.58 0 6.37-.91 11.57-2.22 11.57H56.94zm90.77 0c-1.18 0-2.24-5.2-2.24-11.57 0-6.38.93-11.58 2.24-11.58h56.94c1.18 0 2.23 5.2 2.23 11.58 0 6.37-.92 11.57-2.23 11.57h-56.94zM57.06 374.8c-1.18 0-2.24-5.2-2.24-11.59 0-6.36.94-11.56 2.24-11.56H114c1.19 0 2.24 5.2 2.24 11.56 0 6.39-.93 11.59-2.24 11.59H57.06zm90.78 0c-1.19 0-2.25-5.2-2.25-11.59 0-6.36.94-11.56 2.25-11.56h56.94c1.18 0 2.24 5.2 2.24 11.56 0 6.39-.94 11.59-2.24 11.59h-56.94zM106.83 17.11C106.83 7.69 116.1 0 127.69 0c11.57 0 20.86 7.64 20.86 17.11v74.85c0 9.42-9.34 17.11-20.86 17.11-11.59 0-20.86-7.65-20.86-17.11V17.11zM22.97 163.64h397.39V77.46c0-2.94-1.19-5.53-3.09-7.43-1.9-1.9-4.59-3.08-7.42-3.08h-38.1c-6.39 0-11.59-5.2-11.59-11.57 0-6.38 5.2-11.58 11.59-11.58h38.1c9.32 0 17.7 3.77 23.82 9.88 6.12 6.14 9.88 14.5 9.88 23.83v136.81c-7.61-2.62-15.41-4.73-23.44-6.29v-21.38h.25H22.97v223.17c0 2.94 1.18 5.52 3.08 7.42 1.91 1.9 4.61 3.08 7.44 3.08h188.85c2.16 8.02 4.86 15.84 8.11 23.36H33.71c-9.3 0-17.7-3.75-23.84-9.89C3.75 427.72 0 419.36 0 410.02V77.55c0-9.29 3.75-17.7 9.87-23.82 6.14-6.13 14.5-9.89 23.84-9.89h40.67c6.38 0 11.57 5.2 11.57 11.57C85.95 61.8 80.76 67 74.38 67H33.71c-2.96 0-5.54 1.18-7.44 3.08-1.9 1.9-3.09 4.59-3.09 7.43v86.16h-.21v-.03zm158.95-96.69c-6.39 0-11.57-5.2-11.57-11.57 0-6.38 5.18-11.58 11.57-11.58h77.55c6.39 0 11.57 5.2 11.57 11.58 0 6.37-5.18 11.57-11.57 11.57h-77.55zm161.66 303.24 45.37-51.33c.72-.84 1.78-1.34 2.85-1.36.69-.01 1.37.13 1.98.45l32.94 29.96c.66.59 1.05 1.46 1.06 2.35.02 1-.39 1.98-1.16 2.66l-46.15 52.16-36.95-34.89h.06z"/></svg>';var VisibilityFilters=[{value:"private_shared",label:"Personal + Shared"},{value:"private",label:"Personal"},{value:"shared",label:"Shared"},{value:"public",label:"Public"}];var StarredFilters=[{value:"all",label:"All"},{value:"starred",label:"Starred"},{value:"unstarred",label:"Not Starred"}];var SortOptions=[{value:"name",label:"Name"},{value:"created_at",label:"Created"},{value:"updated_at",label:"Last Updated"},{value:"last_used_at",label:"Last Used"},{value:"counter",label:"Most Used"},{value:"star_counter",label:"Most Starred"}];var VerdocsTemplatesList=function(){function e(e){var t=this;registerInstance(this,e);this.sdkError=createEvent(this,"sdkError",7);this.viewTemplate=createEvent(this,"viewTemplate",7);this.signNow=createEvent(this,"signNow",7);this.submittedData=createEvent(this,"submittedData",7);this.editTemplate=createEvent(this,"editTemplate",7);this.templateDeleted=createEvent(this,"templateDeleted",7);this.changeSort=createEvent(this,"changeSort",7);this.changeVisibility=createEvent(this,"changeVisibility",7);this.changeStarred=createEvent(this,"changeStarred",7);this.changeName=createEvent(this,"changeName",7);this.handleOptionSelected=function(e,n){var s,i,a,r;if(e==="send"){(s=t.viewTemplate)===null||s===void 0?void 0:s.emit({endpoint:t.endpoint,template:n})}else if(e==="signnow"){(i=t.signNow)===null||i===void 0?void 0:i.emit({endpoint:t.endpoint,template:n})}else if(e==="submitted"){(a=t.submittedData)===null||a===void 0?void 0:a.emit({endpoint:t.endpoint,template:n})}else if(e==="edit"){(r=t.editTemplate)===null||r===void 0?void 0:r.emit({endpoint:t.endpoint,template:n})}else if(e==="delete"){t.confirmDelete=n}};this.endpoint=VerdocsEndpoint.getDefault();this.visibility="private_shared";this.starred="all";this.sort="updated_at";this.name="";this.allowedActions=["send","submitted","link","edit","delete"];this.showPagination=true;this.rowsPerPage=10;this.selectedPage=0;this.count=0;this.initiallyLoaded=false;this.loading=true;this.confirmDelete=null;this.templates=[];this.localNameFilter=""}e.prototype.handleSharingUpdated=function(){return this.queryTemplates()};e.prototype.handleStarredUpdated=function(){return this.queryTemplates()};e.prototype.handleSortUpdated=function(){return this.queryTemplates()};e.prototype.handleNameUpdated=function(){return this.queryTemplates()};e.prototype.handlePageUpdated=function(){return this.queryTemplates()};e.prototype.componentWillLoad=function(){this.endpoint.loadSession();if(!this.endpoint.session){console.log("[TEMPLATES] Must be authenticated");return}};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.queryTemplates()];case 1:e.sent();this.initiallyLoaded=true;return[2]}}))}))};e.prototype.queryTemplates=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,s,i,a;return __generator(this,(function(r){switch(r.label){case 0:console.log("[TEMPLATES] Querying templates");this.loading=true;r.label=1;case 1:r.trys.push([1,3,,4]);s={visibility:this.visibility,page:this.selectedPage,rows:this.rowsPerPage};if(this.name.trim()!==""){s.q=this.name.trim()}return[4,getTemplates(this.endpoint,s)];case 2:i=r.sent();this.templates=i.templates;this.count=i.count;this.loading=false;return[3,4];case 3:a=r.sent();this.loading=false;console.log("[TEMPLATES] Error listing templates",a);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new SDKError(a.message,(t=a.response)===null||t===void 0?void 0:t.status,(n=a.response)===null||n===void 0?void 0:n.data));return[3,4];case 4:return[2]}}))}))};e.prototype.deleteTemplate=function(e){var t=this;this.confirmDelete=null;deleteTemplate(this.endpoint,e.id).then((function(){var n;console.log("[TEMPLATES] Deleted template",e);(n=t.templateDeleted)===null||n===void 0?void 0:n.emit({endpoint:t.endpoint,template:e});return t.queryTemplates()})).catch((function(n){var s,i,a;console.log("[TEMPLATES] Error deleting template",e);(s=t.sdkError)===null||s===void 0?void 0:s.emit(new SDKError(n.message,(i=n.response)===null||i===void 0?void 0:i.status,(a=n.response)===null||a===void 0?void 0:a.data))}))};e.prototype.render=function(){var e=this;var t=!this.localNameFilter?this.templates:this.templates.filter((function(t){return t.name.toLowerCase().includes(e.localNameFilter.toLowerCase())}));return h(Host,{key:"8a4c436255e24af2dd9bffaa108a3c62ea72accc"},h("div",{key:"a28f3b140c708fc9491a1567b7e0977d00b02b23",class:"header"},h("div",{key:"ecb9bf6ea174af19a155b3bffdd9f3df6e3d0452",class:"filter"},h("verdocs-text-input",{key:"b4f4046fee300d2deefe70246158cb6048844e75",id:"verdocs-filter-name",value:this.name,clearable:true,autocomplete:"off",placeholder:"Filter by Name...",onInput:function(t){return e.localNameFilter=t.target.value.trim()},onFocusout:function(t){var n;e.name=t.target.value.trim();e.localNameFilter=t.target.value.trim();(n=e.changeName)===null||n===void 0?void 0:n.emit(e.name)}})),h("verdocs-quick-filter",{key:"c070d309bdf00dbdcb244929cbe3f16ce404656f",label:"Visibility",value:this.visibility,options:VisibilityFilters,onOptionSelected:function(t){var n;e.visibility=t.detail.value;(n=e.changeVisibility)===null||n===void 0?void 0:n.emit(e.visibility)}}),h("verdocs-quick-filter",{key:"ed6d35f557ae3c39498b020167e572024d8c2fa0",label:"Starred",value:this.starred,options:StarredFilters,onOptionSelected:function(t){var n;e.starred=t.detail.value;(n=e.changeStarred)===null||n===void 0?void 0:n.emit(e.starred)}}),h("verdocs-quick-filter",{key:"59ae730527224140d6b4ae1f94878ccc3cc9e5e8",label:"Sort By",value:this.sort,options:SortOptions,onOptionSelected:function(t){var n;e.sort=t.detail.value;(n=e.changeSort)===null||n===void 0?void 0:n.emit(e.sort)}}),this.loading&&h("verdocs-spinner",{key:"10c67eddf0cd00c85f636251b276f8fb6acc8a0c",mode:"dark",size:24}),h("div",{key:"615ebf459f9ee6c07a171393844add188b1af82a",style:{display:"flex",flex:"1"}})),t.map((function(t){var n=e.sort==="created_at"?"created_at":e.sort==="updated_at"?"updated_at":"last_used_at";var s=t[n];var i=[];var a=[];if(e.allowedActions.includes("send")){i.push({label:"Preview / Send",id:"send",disabled:!canPerformTemplateAction(e.endpoint.profile,"read",t)})}if(e.allowedActions.includes("signnow")){i.push({label:"Sign Now",id:"signnow",disabled:true})}if(e.allowedActions.includes("submitted")){i.push({label:""});i.push({label:"Submissions",id:"submitted",disabled:!canPerformTemplateAction(e.endpoint.profile,"read",t)})}if(e.allowedActions.includes("link")||e.allowedActions.includes("edit")||e.allowedActions.includes("delete")){i.push({label:""});if(e.allowedActions.includes("link")||e.allowedActions.includes("edit")||e.allowedActions.includes("delete")){i.push({label:"Edit",id:"edit",disabled:!a.includes("write")})}if(e.allowedActions.includes("link")||e.allowedActions.includes("edit")||e.allowedActions.includes("delete")){i.push({label:"Delete",id:"delete",disabled:!a.includes("delete")})}}return h("div",{class:"template",onClick:function(){var n;(n=e.viewTemplate)===null||n===void 0?void 0:n.emit({endpoint:e.endpoint,template:t})}},h("div",{class:"inner"},h("verdocs-template-star",{template:t,endpoint:e.endpoint}),h("div",{class:"spacer icon-spacer"}),h("div",{class:"name"},t.name),h("div",{class:"spacer usage-spacer"}),h("div",{class:"usage"},h("span",{innerHTML:EnvelopeIcon,title:"Usage Counter"}),t.counter||"--"),h("div",{class:"spacer last-used-spacer"}),h("div",{class:"last-used"},n==="created_at"&&h("span",{innerHTML:CreatedIcon,title:"Created"}),n==="updated_at"&&h("span",{innerHTML:UpdatedIcon,title:"Last Updated"}),n==="last_used_at"&&h("span",{innerHTML:LastUsedIcon,title:"Last Used"}),s?format(new Date(s),"P"):"Never"),h("div",{class:"spacer ownership-spacer"}),t.is_public&&h("div",{class:"ownership"},h("span",{innerHTML:GlobeAltIcon})," Public"),!t.is_public&&!t.is_personal&&h("div",{class:"ownership"},h("span",{innerHTML:LockClosedIcon})," Private"),!t.is_public&&t.is_personal&&h("div",{class:"ownership"},h("span",{innerHTML:BuildingOfficeIcon})," Shared"),h("verdocs-dropdown",{options:i,onOptionSelected:function(n){return e.handleOptionSelected(n.detail.id,t)}})))})),!this.initiallyLoaded&&h("div",{key:"3163f2916038b79f02e5cbda0c73d8da99b7770c"},integerSequence(0,this.rowsPerPage).map((function(){return h("div",{class:"template-placeholder"})}))),this.initiallyLoaded&&!this.templates.length&&h("div",{key:"ad467ef5f9d17286134252e0dac59584a670f381",class:"empty-text"},"No matching templates found. Please adjust your filters and try again."),this.initiallyLoaded&&this.templates.length&&this.showPagination?h("div",{style:{marginTop:"20px"}},h("verdocs-pagination",{selectedPage:this.selectedPage,perPage:this.rowsPerPage,itemCount:this.count,onSelectPage:function(t){e.selectedPage=t.detail.selectedPage}})):h("div",null),this.confirmDelete&&h("verdocs-ok-dialog",{key:"523648491adbf8f81da3b3e2a239d671b3e087d6",heading:"Delete this Template?",message:"This operation cannot be undone.",onNext:function(){return e.deleteTemplate(e.confirmDelete)},onExit:function(){return e.confirmDelete=null},showCancel:true}))};Object.defineProperty(e,"watchers",{get:function(){return{sharing:["handleSharingUpdated"],starred:["handleStarredUpdated"],sort:["handleSortUpdated"],name:["handleNameUpdated"],selectedPage:["handlePageUpdated"]}},enumerable:false,configurable:true});return e}();VerdocsTemplatesList.style=VerdocsTemplatesListStyle0;export{VerdocsTemplatesList as verdocs_templates_list};
|
2
|
+
//# sourceMappingURL=verdocs-templates-list.entry.js.map
|