@verdocs/web-sdk 1.10.0 → 1.10.3
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/{Envelopes-d30cba62.js → Envelopes-4cc18551.js} +1 -1
- package/dist/cjs/Roles-927719de.js +28 -0
- package/dist/cjs/Templates-612a81f2.js +49 -0
- package/dist/cjs/{Templates-8ef16e3d.js → Templates-ed812768.js} +15 -0
- package/dist/cjs/{VerdocsEndpoint-38feb32a.js → VerdocsEndpoint-25056c73.js} +42 -0
- package/dist/{esm/verdocs-template-create_4.entry.js → cjs/interact.min-3e3c03a5.js} +2 -613
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{templateStore-eed1f161.js → templateStore-48acfb52.js} +2 -1
- package/dist/cjs/verdocs-auth.cjs.entry.js +1 -2
- package/dist/cjs/verdocs-build.cjs.entry.js +7 -7
- package/dist/cjs/verdocs-button-panel_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-contact-picker.cjs.entry.js +1 -2
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +3 -4
- package/dist/cjs/verdocs-field-textbox.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-help-icon_2.cjs.entry.js +13 -30
- package/dist/cjs/verdocs-preview.cjs.entry.js +4 -5
- package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +2 -3
- package/dist/cjs/verdocs-search.cjs.entry.js +1 -2
- package/dist/cjs/verdocs-send.cjs.entry.js +2 -3
- package/dist/cjs/verdocs-sign.cjs.entry.js +3 -4
- package/dist/cjs/verdocs-template-attachments.cjs.entry.js +53 -0
- package/dist/cjs/verdocs-template-create_2.cjs.entry.js +344 -0
- package/dist/cjs/verdocs-template-name.cjs.entry.js +74 -0
- package/dist/cjs/verdocs-template-properties.cjs.entry.js +76 -0
- package/dist/cjs/verdocs-template-recipients.cjs.entry.js +252 -0
- package/dist/cjs/verdocs-template-reminders.cjs.entry.js +108 -0
- package/dist/cjs/verdocs-template-role-properties_2.cjs.entry.js +228 -0
- package/dist/cjs/verdocs-template-visibility.cjs.entry.js +81 -0
- package/dist/cjs/verdocs-view.cjs.entry.js +3 -4
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +22 -17
- package/dist/collection/components/controls/verdocs-help-icon/verdocs-help-icon.css +5 -0
- package/dist/collection/components/controls/verdocs-select-input/verdocs-select-input.css +1 -1
- package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.css +4 -0
- package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.js +20 -1
- package/dist/collection/components/elements/verdocs-contact-picker/verdocs-contact-picker.stories.js +1 -1
- package/dist/collection/components/elements/verdocs-envelope-sidebar/verdocs-envelope-sidebar.stories.js +1 -1
- package/dist/collection/components/embeds/verdocs-build/verdocs-build.js +3 -2
- package/dist/collection/components/{elements → fields}/verdocs-field-attachment/verdocs-field-attachment.css +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-attachment/verdocs-field-attachment.js +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-attachment/verdocs-field-attachment.stories.js +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-checkbox/verdocs-field-checkbox.css +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-checkbox/verdocs-field-checkbox.js +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-checkbox/verdocs-field-checkbox.stories.js +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-date/verdocs-field-date.css +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-date/verdocs-field-date.js +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-date/verdocs-field-date.stories.js +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-dropdown/verdocs-field-dropdown.css +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-dropdown/verdocs-field-dropdown.js +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-dropdown/verdocs-field-dropdown.stories.js +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-initial/verdocs-field-initial.css +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-initial/verdocs-field-initial.js +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-initial/verdocs-field-initial.stories.js +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-payment/verdocs-field-payment.css +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-payment/verdocs-field-payment.js +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-payment/verdocs-field-payment.stories.js +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-radio-button-group/verdocs-field-radio-button.css +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-radio-button-group/verdocs-field-radio-button.js +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-radio-button-group/verdocs-field-radio-button.stories.js +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-signature/verdocs-field-signature.css +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-signature/verdocs-field-signature.js +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-signature/verdocs-field-signature.stories.js +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-textarea/verdocs-field-textarea.css +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-textarea/verdocs-field-textarea.js +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-textarea/verdocs-field-textarea.stories.js +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-textbox/verdocs-field-textbox.css +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-textbox/verdocs-field-textbox.js +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-textbox/verdocs-field-textbox.stories.js +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-timestamp/verdocs-field-timestamp.css +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-timestamp/verdocs-field-timestamp.js +0 -0
- package/dist/collection/components/{elements → fields}/verdocs-field-timestamp/verdocs-field-timestamp.stories.js +0 -0
- package/dist/collection/components/templates/verdocs-template-attachments/verdocs-template-attachments.css +23 -0
- package/dist/collection/components/templates/verdocs-template-attachments/verdocs-template-attachments.js +137 -0
- package/dist/collection/components/templates/verdocs-template-attachments/verdocs-template-attachments.stories.js +19 -0
- package/dist/collection/components/{elements → templates}/verdocs-template-create/verdocs-template-create.css +0 -0
- package/dist/collection/components/{elements → templates}/verdocs-template-create/verdocs-template-create.js +0 -0
- package/dist/collection/components/{elements → templates}/verdocs-template-create/verdocs-template-create.stories.js +2 -2
- package/dist/collection/components/{elements → templates}/verdocs-template-fields/verdocs-template-fields.css +0 -0
- package/dist/collection/components/{elements → templates}/verdocs-template-fields/verdocs-template-fields.js +0 -0
- package/dist/collection/components/{elements → templates}/verdocs-template-fields/verdocs-template-fields.stories.js +2 -3
- package/dist/collection/components/templates/verdocs-template-name/verdocs-template-name.css +40 -0
- package/dist/collection/components/templates/verdocs-template-name/verdocs-template-name.js +160 -0
- package/dist/collection/components/templates/verdocs-template-name/verdocs-template-name.stories.js +19 -0
- package/dist/collection/components/{elements → templates}/verdocs-template-properties/verdocs-template-properties.css +0 -0
- package/dist/collection/components/{elements → templates}/verdocs-template-properties/verdocs-template-properties.js +0 -0
- package/dist/collection/components/{elements → templates}/verdocs-template-properties/verdocs-template-properties.stories.js +2 -2
- package/dist/collection/components/templates/verdocs-template-recipients/verdocs-template-recipients.css +192 -0
- package/dist/collection/components/templates/verdocs-template-recipients/verdocs-template-recipients.js +337 -0
- package/dist/collection/components/templates/verdocs-template-recipients/verdocs-template-recipients.stories.js +13 -0
- package/dist/collection/components/templates/verdocs-template-reminders/verdocs-template-reminders.css +69 -0
- package/dist/collection/components/templates/verdocs-template-reminders/verdocs-template-reminders.js +181 -0
- package/dist/collection/components/templates/verdocs-template-reminders/verdocs-template-reminders.stories.js +19 -0
- package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.css +105 -0
- package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.js +303 -0
- package/dist/collection/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.stories.js +13 -0
- package/dist/collection/components/{dialogs/verdocs-template-sender-dialog/verdocs-template-sender-dialog.css → templates/verdocs-template-sender/verdocs-template-sender.css} +11 -11
- package/dist/collection/components/templates/verdocs-template-sender/verdocs-template-sender.js +193 -0
- package/dist/collection/components/templates/verdocs-template-sender/verdocs-template-sender.stories.js +13 -0
- package/dist/collection/components/templates/verdocs-template-visibillity/verdocs-template-visibility.css +75 -0
- package/dist/collection/components/templates/verdocs-template-visibillity/verdocs-template-visibility.js +168 -0
- package/dist/collection/components/templates/verdocs-template-visibillity/verdocs-template-visibility.stories.js +18 -0
- package/dist/collection/utils/Templates.js +23 -3
- package/dist/collection/utils/templateStore.js +2 -1
- package/dist/components/Templates.js +23 -3
- package/dist/components/Templates2.js +15 -1
- package/dist/components/VerdocsEndpoint.js +43 -1
- package/dist/components/index.d.ts +21 -16
- package/dist/components/index.js +6 -1
- package/dist/components/templateStore.js +2 -1
- package/dist/components/verdocs-auth.js +8 -3
- package/dist/components/verdocs-build.js +17 -59
- package/dist/components/verdocs-contact-picker2.js +0 -1
- package/dist/components/verdocs-envelope-sidebar.js +0 -1
- package/dist/components/verdocs-field-date.js +8 -2
- package/dist/components/verdocs-field-initial.js +10 -4
- package/dist/components/verdocs-field-signature.js +10 -4
- package/dist/components/verdocs-field-textarea.js +8 -2
- package/dist/components/verdocs-field-textbox.js +8 -2
- package/dist/components/verdocs-field-timestamp.js +8 -2
- package/dist/components/verdocs-help-icon2.js +1 -1
- package/dist/components/verdocs-initial-dialog2.js +8 -2
- package/dist/components/verdocs-preview.js +0 -1
- package/dist/components/verdocs-quick-functions2.js +0 -1
- package/dist/components/verdocs-search-activity2.js +0 -1
- package/dist/components/verdocs-search-box2.js +0 -1
- package/dist/components/verdocs-search.js +0 -1
- package/dist/components/verdocs-select-input2.js +1 -1
- package/dist/components/verdocs-send.js +1 -2
- package/dist/components/verdocs-sign.js +1 -2
- package/dist/components/verdocs-signature-dialog2.js +8 -2
- package/dist/components/verdocs-template-attachments.d.ts +11 -0
- package/dist/components/verdocs-template-attachments.js +73 -0
- package/dist/components/verdocs-template-create2.js +0 -1
- package/dist/components/verdocs-template-fields2.js +0 -2
- package/dist/components/verdocs-template-name.d.ts +11 -0
- package/dist/components/verdocs-template-name.js +115 -0
- package/dist/components/verdocs-template-properties.js +127 -1
- package/dist/components/verdocs-template-recipients.js +309 -1
- package/dist/components/verdocs-template-reminders.d.ts +11 -0
- package/dist/components/verdocs-template-reminders.js +163 -0
- package/dist/components/verdocs-template-role-properties.d.ts +11 -0
- package/dist/components/verdocs-template-role-properties.js +6 -0
- package/dist/components/verdocs-template-role-properties2.js +229 -0
- package/dist/components/verdocs-template-sender.d.ts +11 -0
- package/dist/components/verdocs-template-sender.js +6 -0
- package/dist/components/verdocs-template-sender2.js +116 -0
- package/dist/components/verdocs-template-visibility.d.ts +11 -0
- package/dist/components/verdocs-template-visibility.js +117 -0
- package/dist/components/verdocs-text-input2.js +11 -3
- package/dist/components/verdocs-view2.js +0 -1
- package/dist/custom-elements.json +1328 -0
- package/dist/docs.json +750 -147
- package/dist/esm/{Envelopes-6982dfc6.js → Envelopes-91d7e139.js} +1 -1
- package/dist/esm/Roles-2488d047.js +24 -0
- package/dist/esm/Templates-03c50708.js +47 -0
- package/dist/esm/{Templates-0638b1e4.js → Templates-8e4ab976.js} +15 -1
- package/dist/esm/{VerdocsEndpoint-6df32d3a.js → VerdocsEndpoint-7f17b088.js} +43 -1
- package/dist/{cjs/verdocs-template-create_4.cjs.entry.js → esm/interact.min-32c1c1e4.js} +1 -621
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{templateStore-7b50460b.js → templateStore-62eb71e2.js} +2 -1
- package/dist/esm/verdocs-auth.entry.js +1 -2
- package/dist/esm/verdocs-build.entry.js +7 -7
- package/dist/esm/verdocs-button-panel_2.entry.js +1 -1
- package/dist/esm/verdocs-contact-picker.entry.js +1 -2
- package/dist/esm/verdocs-envelope-sidebar.entry.js +3 -4
- package/dist/esm/verdocs-field-textbox.entry.js +1 -1
- package/dist/esm/verdocs-help-icon_2.entry.js +14 -31
- package/dist/esm/verdocs-preview.entry.js +4 -5
- package/dist/esm/verdocs-quick-functions_3.entry.js +2 -3
- package/dist/esm/verdocs-search.entry.js +1 -2
- package/dist/esm/verdocs-send.entry.js +2 -3
- package/dist/esm/verdocs-sign.entry.js +3 -4
- package/dist/esm/verdocs-template-attachments.entry.js +49 -0
- package/dist/esm/verdocs-template-create_2.entry.js +339 -0
- package/dist/esm/verdocs-template-name.entry.js +70 -0
- package/dist/{components/verdocs-template-properties2.js → esm/verdocs-template-properties.entry.js} +14 -66
- package/dist/esm/verdocs-template-recipients.entry.js +248 -0
- package/dist/esm/verdocs-template-reminders.entry.js +104 -0
- package/dist/esm/verdocs-template-role-properties_2.entry.js +223 -0
- package/dist/esm/verdocs-template-visibility.entry.js +77 -0
- package/dist/esm/verdocs-view.entry.js +3 -4
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/{Envelopes-6982dfc6.js → Envelopes-91d7e139.js} +1 -1
- package/dist/esm-es5/Roles-2488d047.js +1 -0
- package/dist/esm-es5/Templates-03c50708.js +1 -0
- package/dist/esm-es5/{Templates-0638b1e4.js → Templates-8e4ab976.js} +1 -1
- package/dist/esm-es5/VerdocsEndpoint-7f17b088.js +1 -0
- package/dist/esm-es5/interact.min-32c1c1e4.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/templateStore-62eb71e2.js +1 -0
- package/dist/esm-es5/verdocs-auth.entry.js +1 -1
- package/dist/esm-es5/verdocs-build.entry.js +1 -1
- package/dist/esm-es5/verdocs-button-panel_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-contact-picker.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -1
- package/dist/esm-es5/verdocs-help-icon_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-search.entry.js +1 -1
- package/dist/esm-es5/verdocs-send.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-attachments.entry.js +1 -0
- package/dist/esm-es5/verdocs-template-create_2.entry.js +1 -0
- package/dist/esm-es5/verdocs-template-name.entry.js +1 -0
- package/dist/esm-es5/verdocs-template-properties.entry.js +1 -0
- package/dist/esm-es5/verdocs-template-recipients.entry.js +1 -0
- package/dist/esm-es5/verdocs-template-reminders.entry.js +1 -0
- package/dist/esm-es5/verdocs-template-role-properties_2.entry.js +1 -0
- package/dist/esm-es5/verdocs-template-visibility.entry.js +1 -0
- package/dist/esm-es5/verdocs-view.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/controls/verdocs-text-input/verdocs-text-input.d.ts +4 -0
- package/dist/types/components/{elements → fields}/verdocs-field-attachment/verdocs-field-attachment.d.ts +0 -0
- package/dist/types/components/{elements → fields}/verdocs-field-attachment/verdocs-field-attachment.stories.d.ts +0 -0
- package/dist/types/components/{elements → fields}/verdocs-field-checkbox/verdocs-field-checkbox.d.ts +0 -0
- package/dist/types/components/{elements → fields}/verdocs-field-checkbox/verdocs-field-checkbox.stories.d.ts +0 -0
- package/dist/types/components/{elements → fields}/verdocs-field-date/verdocs-field-date.d.ts +0 -0
- package/dist/types/components/{elements → fields}/verdocs-field-date/verdocs-field-date.stories.d.ts +0 -0
- package/dist/types/components/{elements → fields}/verdocs-field-dropdown/verdocs-field-dropdown.d.ts +0 -0
- package/dist/types/components/{elements → fields}/verdocs-field-dropdown/verdocs-field-dropdown.stories.d.ts +0 -0
- package/dist/types/components/{elements → fields}/verdocs-field-initial/verdocs-field-initial.d.ts +0 -0
- package/dist/types/components/{elements → fields}/verdocs-field-initial/verdocs-field-initial.stories.d.ts +0 -0
- package/dist/types/components/{elements → fields}/verdocs-field-payment/verdocs-field-payment.d.ts +0 -0
- package/dist/types/components/{elements → fields}/verdocs-field-payment/verdocs-field-payment.stories.d.ts +0 -0
- package/dist/types/components/{elements → fields}/verdocs-field-radio-button-group/verdocs-field-radio-button.d.ts +0 -0
- package/dist/types/components/{elements → fields}/verdocs-field-radio-button-group/verdocs-field-radio-button.stories.d.ts +0 -0
- package/dist/types/components/{elements → fields}/verdocs-field-signature/verdocs-field-signature.d.ts +0 -0
- package/dist/types/components/{elements → fields}/verdocs-field-signature/verdocs-field-signature.stories.d.ts +0 -0
- package/dist/types/components/{elements → fields}/verdocs-field-textarea/verdocs-field-textarea.d.ts +0 -0
- package/dist/types/components/{elements → fields}/verdocs-field-textarea/verdocs-field-textarea.stories.d.ts +0 -0
- package/dist/types/components/{elements → fields}/verdocs-field-textbox/verdocs-field-textbox.d.ts +0 -0
- package/dist/types/components/{elements → fields}/verdocs-field-textbox/verdocs-field-textbox.stories.d.ts +0 -0
- package/dist/types/components/{elements → fields}/verdocs-field-timestamp/verdocs-field-timestamp.d.ts +0 -0
- package/dist/types/components/{elements → fields}/verdocs-field-timestamp/verdocs-field-timestamp.stories.d.ts +0 -0
- package/dist/types/components/templates/verdocs-template-attachments/verdocs-template-attachments.d.ts +29 -0
- package/dist/types/components/templates/verdocs-template-attachments/verdocs-template-attachments.stories.d.ts +7 -0
- package/dist/types/components/{elements → templates}/verdocs-template-create/verdocs-template-create.d.ts +0 -0
- package/dist/types/components/{elements → templates}/verdocs-template-create/verdocs-template-create.stories.d.ts +1 -1
- package/dist/types/components/{elements → templates}/verdocs-template-fields/verdocs-template-fields.d.ts +0 -0
- package/dist/types/components/{elements → templates}/verdocs-template-fields/verdocs-template-fields.stories.d.ts +1 -1
- package/dist/types/components/templates/verdocs-template-name/verdocs-template-name.d.ts +32 -0
- package/dist/types/components/templates/verdocs-template-name/verdocs-template-name.stories.d.ts +7 -0
- package/dist/types/components/{elements → templates}/verdocs-template-properties/verdocs-template-properties.d.ts +0 -0
- package/dist/types/components/{elements → templates}/verdocs-template-properties/verdocs-template-properties.stories.d.ts +1 -1
- package/dist/types/components/templates/verdocs-template-recipients/verdocs-template-recipients.d.ts +40 -0
- package/dist/types/components/templates/verdocs-template-recipients/verdocs-template-recipients.stories.d.ts +7 -0
- package/dist/types/components/templates/verdocs-template-reminders/verdocs-template-reminders.d.ts +35 -0
- package/dist/types/components/templates/verdocs-template-reminders/verdocs-template-reminders.stories.d.ts +7 -0
- package/dist/types/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.d.ts +56 -0
- package/dist/types/components/templates/verdocs-template-role-properties/verdocs-template-role-properties.stories.d.ts +7 -0
- package/dist/types/components/templates/verdocs-template-sender/verdocs-template-sender.d.ts +36 -0
- package/dist/types/components/templates/verdocs-template-sender/verdocs-template-sender.stories.d.ts +7 -0
- package/dist/types/components/templates/verdocs-template-visibillity/verdocs-template-visibility.d.ts +33 -0
- package/dist/types/components/templates/verdocs-template-visibillity/verdocs-template-visibility.stories.d.ts +7 -0
- package/dist/types/components.d.ts +268 -32
- package/dist/types/utils/Templates.d.ts +1 -1
- package/dist/types/utils/templateStore.d.ts +1 -0
- package/dist/types/utils/utils.d.ts +2 -2
- package/dist/verdocs-web-sdk/p-0ee57bd9.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-12c732a7.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-130fe919.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-15aef735.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-19849b9e.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-205027db.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-2144b8be.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-261dcea1.system.js +1 -0
- package/dist/verdocs-web-sdk/p-26b4ae0d.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-285eaf3c.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-2d4712ea.js +1 -0
- package/dist/verdocs-web-sdk/p-34db97b7.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-37a493a6.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-3da4b4cb.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-3fbe602a.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-4352529d.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-464adbad.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-4a1c9aa1.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-4f12a8a7.js +1 -0
- package/dist/verdocs-web-sdk/{p-c4deb4b7.js → p-50c9771e.js} +1 -1
- package/dist/verdocs-web-sdk/p-50d7e990.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-a74a9c6b.system.js → p-55fc9529.system.js} +1 -1
- package/dist/verdocs-web-sdk/p-5ee985be.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-45ac2230.system.entry.js → p-61b824ca.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9cecb5df.system.js → p-69912cbf.system.js} +1 -1
- package/dist/verdocs-web-sdk/p-74e1ae92.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-2d687108.system.js → p-7ac87084.system.js} +1 -1
- package/dist/verdocs-web-sdk/p-7b111f2b.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-848e555d.js +1 -0
- package/dist/verdocs-web-sdk/p-87749601.js +1 -0
- package/dist/verdocs-web-sdk/p-8c53e0ff.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-91539130.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-9717a531.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-98aa17a8.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-9b854a18.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-938a7d4e.system.entry.js → p-9bfafc67.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-9f17b920.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-a17a81a3.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-b5c21eda.entry.js → p-a662b038.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-a6872a88.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-c8e8732b.system.js → p-a95d40dc.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c2cc4492.js → p-b28ef4bb.js} +1 -1
- package/dist/verdocs-web-sdk/p-b4fee0ae.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-bda7353b.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-c16b6ca4.system.js +1 -1
- package/dist/verdocs-web-sdk/p-cd70bb21.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-d08fca9c.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-d122cadd.system.js +1 -0
- package/dist/verdocs-web-sdk/p-d5a95369.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-daedc6c2.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-de5c37cd.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-df4f1a5e.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-e223553c.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-6b205bb5.entry.js → p-ead5322f.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-f3e9be57.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-fbc81799.system.js +1 -0
- package/dist/verdocs-web-sdk/p-ffe60abd.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +5 -4
- package/dist/cjs/Templates-358eaee4.js +0 -29
- package/dist/cjs/Types-da57ce69.js +0 -43
- package/dist/cjs/verdocs-text-input.cjs.entry.js +0 -25
- package/dist/collection/components/dialogs/verdocs-template-sender-dialog/verdocs-template-sender-dialog.js +0 -114
- package/dist/collection/components/dialogs/verdocs-template-sender-dialog/verdocs-template-sender-dialog.stories.js +0 -46
- package/dist/collection/components/elements/verdocs-template-recipients/verdocs-template-recipients.css +0 -136
- package/dist/collection/components/elements/verdocs-template-recipients/verdocs-template-recipients.js +0 -368
- package/dist/collection/components/elements/verdocs-template-recipients/verdocs-template-recipients.stories.js +0 -35
- package/dist/components/Types.js +0 -43
- package/dist/components/verdocs-template-recipients2.js +0 -272
- package/dist/components/verdocs-template-sender-dialog.d.ts +0 -11
- package/dist/components/verdocs-template-sender-dialog.js +0 -6
- package/dist/components/verdocs-template-sender-dialog2.js +0 -75
- package/dist/esm/Templates-ad0e1ebe.js +0 -27
- package/dist/esm/Types-ab9f6af8.js +0 -43
- package/dist/esm/verdocs-text-input.entry.js +0 -21
- package/dist/esm-es5/Templates-ad0e1ebe.js +0 -1
- package/dist/esm-es5/Types-ab9f6af8.js +0 -1
- package/dist/esm-es5/VerdocsEndpoint-6df32d3a.js +0 -1
- package/dist/esm-es5/templateStore-7b50460b.js +0 -1
- package/dist/esm-es5/verdocs-template-create_4.entry.js +0 -1
- package/dist/esm-es5/verdocs-text-input.entry.js +0 -1
- package/dist/types/components/dialogs/verdocs-template-sender-dialog/verdocs-template-sender-dialog.d.ts +0 -26
- package/dist/types/components/dialogs/verdocs-template-sender-dialog/verdocs-template-sender-dialog.stories.d.ts +0 -8
- package/dist/types/components/elements/verdocs-template-recipients/verdocs-template-recipients.d.ts +0 -88
- package/dist/types/components/elements/verdocs-template-recipients/verdocs-template-recipients.stories.d.ts +0 -10
- package/dist/verdocs-web-sdk/p-03833051.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-11ab1bd0.js +0 -1
- package/dist/verdocs-web-sdk/p-17fd7860.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-18cf7ea1.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-266e163c.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-2e4dfdc6.js +0 -1
- package/dist/verdocs-web-sdk/p-3dbf8bec.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-3dcd05aa.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-46bb5543.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-50f82ed8.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-5b8dbf0b.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-5d220e75.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-621c7079.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-62dbe501.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-7a5c37cd.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-7b357e1a.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-86a8b6ad.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-8a2dbb48.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-8efc9749.js +0 -1
- package/dist/verdocs-web-sdk/p-8f50fd8e.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-95016ea1.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-a140f6f9.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-a1412c61.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-a4dc6a79.system.js +0 -1
- package/dist/verdocs-web-sdk/p-a7433630.system.js +0 -1
- package/dist/verdocs-web-sdk/p-ae3b30c6.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-b505db92.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-b8faf8b8.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-c6370ca8.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-ce442d55.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-d9ff093e.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e53f969c.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s))e[s]=t[s]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,n,i){function s(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function l(e){try{a(i.next(e))}catch(e){o(e)}}function r(e){try{a(i["throw"](e))}catch(e){o(e)}}function a(e){e.done?n(e.value):s(e.value).then(l,r)}a((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,s,o,l;return l={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function r(e){return function(t){return a([e,t])}}function a(l){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,s&&(o=l[0]&2?s["return"]:l[0]?s["throw"]||((o=s["return"])&&o.call(s),0):s.next)&&!(o=o.call(s,l[1])).done)return o;if(s=0,o)l=[l[0]&2,o.value];switch(l[0]){case 0:case 1:o=l;break;case 4:n.label++;return{value:l[1],done:false};case 5:n.label++;s=l[1];l=[0];continue;case 7:l=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){n.label=l[1];break}if(l[0]===6&&n.label<o[1]){n.label=o[1];o=l;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(l);break}if(o[2])n.ops.pop();n.trys.pop();continue}l=t.call(e,n)}catch(e){l=[6,e];s=0}finally{i=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};System.register(["./p-97329951.system.js","./p-9cecb5df.system.js","./p-a7433630.system.js","./p-7efdefa3.system.js","./p-05eb4fed.system.js","./p-a4dc6a79.system.js","./p-d7e31573.system.js","./p-af2c2f79.system.js","./p-e0cfad01.system.js","./p-327858f0.system.js"],(function(e){"use strict";var t,n,i,s,o,l,r,a,c,d;return{setters:[function(e){t=e.r;n=e.c;i=e.h;s=e.H},function(e){o=e.g},function(){},function(e){l=e.i;r=e.a},function(e){a=e.g},function(e){c=e.V},function(e){d=e.a},function(){},function(){},function(){}],execute:function(){var p='verdocs-send{display:-ms-flexbox;display:flex;padding:10px;position:relative;background:#ffffff;-ms-flex-direction:column;flex-direction:column;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-send .recipients{position:relative}verdocs-send .left-line{top:32px;left:20px;z-index:1;width:12px;bottom:30px;position:absolute;background:#ffffff;border-left:3px dotted #9b9b9b}verdocs-send .level{display:-ms-flexbox;display:flex;-webkit-column-gap:10px;-moz-column-gap:10px;column-gap:10px;margin-left:50px;position:relative;-ms-flex-direction:row;flex-direction:row;padding:8px 0 4px 0;border-bottom:1px solid #97979744}verdocs-send .level .level-icon{top:14px;z-index:2;left:-40px;width:24px;height:24px;position:absolute;background:#ffffff}verdocs-send .level .level-icon svg{fill:#00000089}verdocs-send .level .recipient{height:30px;display:-ms-flexbox;display:flex;-ms-flex:0 0 30px;flex:0 0 30px;color:#000000;cursor:pointer;font-size:14px;-ms-flex-align:center;align-items:center;border-radius:30px;-ms-flex-direction:row;flex-direction:row;background:#dddddd;white-space:nowrap;padding:2px 10px 2px 14px}verdocs-send .level .recipient .icon{width:22px;height:22px;-ms-flex:0 0 22px;flex:0 0 22px;margin:0 0 0 10px}verdocs-send .level .recipient .icon svg{width:22px;height:22px;fill:#333333;outline:none}verdocs-send .level .complete{-ms-flex:1;flex:1;height:30px;display:-ms-flexbox;display:flex;color:#000000;font-size:14px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;padding:3px 10px 3px 2px}verdocs-send .buttons{display:-ms-flexbox;display:flex;margin-top:10px;-webkit-column-gap:15px;-moz-column-gap:15px;column-gap:15px;-ms-flex-direction:row;flex-direction:row}verdocs-send verdocs-contact-picker{left:0;top:41px;z-index:10;position:absolute;border:1px solid #dddddd;-webkit-box-shadow:0 0 6px 3px rgba(0, 0, 0, 0.1);box-shadow:0 0 6px 3px rgba(0, 0, 0, 0.1)}';var u='<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24" tabindex="-1"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"></path></svg>';var f='<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24" tabindex="-1"><path d="M2 12C2 6.48 6.48 2 12 2s10 4.48 10 10-4.48 10-10 10S2 17.52 2 12zm10 6c3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6 2.69 6 6 6z"></path></svg>';var h='<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24" tabindex="-1"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"></path></svg>';var v='<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24" tabindex="-1"><path d="m18 7-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41 6 19l1.41-1.41L1.83 12 .41 13.41z"></path></svg>';var x=e("verdocs_send",function(){function e(e){t(this,e);this.send=n(this,"send",7);this.cancel=n(this,"cancel",7);this.sdkError=n(this,"sdkError",7);this.levels=[];this.endpoint=c.getDefault();this.templateId=null;this.template=null;this.pdfUrl=null;this.containerId="verdocs-send-".concat(Math.random().toString(36).substring(2,11));this.rolesAtLevel={};this.showPickerForId="";this.sessionContacts=[];this.recipientsAssigned={}}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n;return __generator(this,(function(i){switch(i.label){case 0:this.sessionContacts=[];i.label=1;case 1:i.trys.push([1,3,,4]);return[4,this.endpoint.loadSession()];case 2:t=i.sent();if((e=t.session)===null||e===void 0?void 0:e.profile){this.sessionContacts.push({id:t.session.profile.id,name:"".concat(t.session.profile.first_name," ").concat(t.session.profile.last_name),email:t.session.profile.email,phone:t.session.profile.phone})}return[3,4];case 3:n=i.sent();console.log("Error loading session",n);return[3,4];case 4:return[2]}}))}))};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n;return __generator(this,(function(i){switch(i.label){case 0:console.log("[SEND] Showing template",this.templateId);i.label=1;case 1:i.trys.push([1,3,,4]);console.log("[SEND] Loading template ".concat(this.templateId));return[4,o(this.endpoint,this.templateId)];case 2:e=i.sent();console.log("[SEND] Got template",e);this.template=e;if(e===null||e===void 0?void 0:e.roles){t={};e.roles.forEach((function(e){var n=e.sequence-1;t[n]||(t[n]=[]);var i="r-".concat(n,"-").concat(t[n].length);t[n].push(__assign(__assign({},e),{id:i}))}));this.rolesAtLevel=t;this.levels=Object.keys(t).map((function(e){return+e}));this.levels.sort((function(e,t){return e-t}))}return[3,4];case 3:n=i.sent();console.log("[SEND] Error getting template",n);return[3,4];case 4:return[2]}}))}))};e.prototype.getLevelIcon=function(e){if(e<0){return i("div",{class:"level-icon",innerHTML:f})}else if(e>=this.levels.length){return i("div",{class:"level-icon",innerHTML:v})}else{return i("div",{class:"level-icon",innerHTML:h})}};e.prototype.handleSelectContact=function(e,t){e.preventDefault();this.recipientsAssigned[t.id]=__assign(__assign({},t),e.detail);this.showPickerForId=""};e.prototype.handleClickRole=function(e,t){e.stopPropagation();this.showPickerForId=t.id};e.prototype.handleSend=function(e){var t;e.stopPropagation();(t=this.send)===null||t===void 0?void 0:t.emit({recipientsAssigned:Object.values(this.recipientsAssigned)})};e.prototype.handleCancel=function(e){var t;e.stopPropagation();(t=this.cancel)===null||t===void 0?void 0:t.emit()};e.prototype.render=function(){var e=this;var t,n,o;var c=((n=(t=this.template)===null||t===void 0?void 0:t.roles)===null||n===void 0?void 0:n.map((function(e){return e.name})))||[];var p=Object.values(this.recipientsAssigned).filter((function(e){console.log("valid email",l(e.email),e.email);console.log("valid phone",r(e.phone),e.phone);return l(e.email)||r(e.phone)})).length>=((o=this.template)===null||o===void 0?void 0:o.roles.length);console.log("assigned",p);return i(s,{class:{}},i("div",{class:"recipients"},i("div",{class:"left-line"}),i("div",{class:"level level-start"},this.getLevelIcon(-1),i("div",{class:"complete"},"Send Document")),this.levels.map((function(t){return i("div",{class:"level level-".concat(t)},e.getLevelIcon(t),e.rolesAtLevel[t].map((function(t){var n,s,o;return i("div",{class:"recipient",style:{backgroundColor:a(d(c,t.name))},onClick:function(n){return e.handleClickRole(n,t)}},(s=(n=e.recipientsAssigned[t.id])===null||n===void 0?void 0:n.full_name)!==null&&s!==void 0?s:t.name,i("div",{class:"icon",innerHTML:u}),e.showPickerForId===t.id&&i("verdocs-contact-picker",{onCancel:function(){return e.showPickerForId=""},onNext:function(n){return e.handleSelectContact(n,t)},contactSuggestions:e.sessionContacts,templateRole:(o=e.recipientsAssigned[t.id])!==null&&o!==void 0?o:t,onSearchContacts:function(e){return console.log("Search",e.detail)}}))})))})),i("div",{class:"level level-done"},this.getLevelIcon(this.levels.length),i("div",{class:"complete"},"Document Complete"))),i("div",{class:"buttons"},i("verdocs-button",{label:"Cancel",size:"small",variant:"outline",onClick:function(t){return e.handleCancel(t)}}),i("verdocs-button",{label:"Send",size:"small",disabled:!p,onClick:function(t){return e.handleSend(t)}})))};return e}());x.style=p}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as o}from"./p-c2cc4492.js";import{s as e}from"./p-e53f969c.js";const t=async(t,s)=>{if(e.template=null,s){e.loading=!0;try{console.log(`[TEMPLATES] Loading template ${s}`);const a=await o(t,s,!0);if(!a)return void console.log("[TEMPLATES] Unable to load template");e.template=a,e.loading=!1}catch(o){throw console.log("[TEMPLATES] Error loading template",o),o}}else console.log("[TEMPLATES] Missing required template ID")};export{t as l}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as i}from"./p-ff1278ed.js";import"./p-8efc9749.js";import{V as e}from"./p-2e4dfdc6.js";import{S as o}from"./p-7a1b2643.js";import"./p-21603661.js";const n=class{constructor(i){t(this,i),this.authenticated=s(this,"authenticated",7),this.sdkError=s(this,"sdkError",7),this.endpoint=e.getDefault(),this.visible=!0,this.logo="https://verdocs.com/assets/blue-logo.svg",this.isAuthenticated=!1,this.displayMode="login",this.username="",this.password="",this.loggingIn=!1,this.activeSession=null,this.loginError=null}componentWillLoad(){var t,s;this.endpoint.loadSession(),this.endpoint.session?(console.log("[AUTH] Authenticated"),this.isAuthenticated=!0,this.activeSession=this.endpoint.session,null===(t=this.authenticated)||void 0===t||t.emit({authenticated:!0,session:this.endpoint.session})):(console.log("[AUTH] Anonymous"),null===(s=this.authenticated)||void 0===s||s.emit({authenticated:!1,session:null}))}handleLogin(){var t,s;this.loggingIn=!0,(t=this.endpoint,s={username:this.username,password:this.password},t.api.post("/authentication/login",s).then((function(t){return t.data}))).then((t=>{var s;this.loggingIn=!1,this.endpoint.setToken(t.accessToken),this.activeSession=this.endpoint.session,this.isAuthenticated=!0,null===(s=this.authenticated)||void 0===s||s.emit({authenticated:!0,session:this.endpoint.session})})).catch((t=>{var s,i,e,n,l;console.log("[AUTH] Authentication error",t.response,JSON.stringify(t)),this.loggingIn=!1,this.activeSession=null,null===(s=this.authenticated)||void 0===s||s.emit({authenticated:!1,session:null}),null===(i=this.sdkError)||void 0===i||i.emit(new o(t.message,null===(e=t.response)||void 0===e?void 0:e.status,null===(n=t.response)||void 0===n?void 0:n.data)),403===(null===(l=null==t?void 0:t.response)||void 0===l?void 0:l.status)&&(this.loginError="Please check your username and password and try again.")}))}handleLogout(){var t;this.endpoint.clearSession(),this.isAuthenticated=!1,null===(t=this.authenticated)||void 0===t||t.emit({authenticated:!1,session:null})}handleClearError(){this.loginError=null}render(){return this.visible?this.isAuthenticated?i("div",{class:"status-result"},"Authenticated"):"signup"===this.displayMode?i("div",{class:"signup-form"},i("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),i("h3",null,"Sign up for an account"),i("h4",null,"Already have an account?",i("verdocs-button",{label:"Log In",variant:"text",onClick:()=>this.displayMode="login",disabled:this.loggingIn})),i("form",{onSubmit:()=>this.handleLogin()},i("verdocs-text-input",{label:"Email",autocomplete:"username",value:this.username,onInput:t=>this.username=t.target.value,disabled:this.loggingIn}),i("verdocs-text-input",{label:"Password",type:"password",autocomplete:"current-password",value:this.password,onInput:t=>this.password=t.target.value,disabled:this.loggingIn}),i("verdocs-button",{label:"Signup",disabled:this.loggingIn,onClick:()=>this.handleLogin(),style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}}))):i("div",{class:"login-form"},i("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),i("h3",null,"Log in to your account"),i("h4",null,"Don't have an account?",i("verdocs-button",{label:"Sign Up",variant:"text",onClick:()=>this.displayMode="signup",disabled:this.loggingIn})),i("form",{onSubmit:()=>this.handleLogin()},i("verdocs-text-input",{label:"Email",autocomplete:"username",value:this.username,onInput:t=>this.username=t.target.value,disabled:this.loggingIn}),i("verdocs-text-input",{label:"Password",type:"password",autocomplete:"current-password",value:this.password,onInput:t=>this.password=t.target.value,disabled:this.loggingIn}),i("verdocs-button",{label:"Forgot Your Password?",variant:"text",onClick:()=>this.displayMode="signup",disabled:this.loggingIn,style:{display:"flex",justifyContent:"center",margin:"10px auto 20px"}}),i("verdocs-button",{label:"Login",disabled:this.loggingIn,onClick:()=>this.handleLogin(),style:{display:"flex",justifyContent:"center",margin:"10px auto 0"}})),this.loginError?i("verdocs-ok-dialog",{heading:"Login Error",message:this.loginError,onNext:()=>this.handleClearError()}):i("div",null)):i("div",{style:{display:"none"}},"Verdocs Auth Placeholder")}};n.style='verdocs-auth{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-auth .login-form,verdocs-auth .signup-form{background:#ffffff;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;display:-ms-flexbox;display:flex;padding:20px;width:300px;max-width:100%}verdocs-auth .logo{margin:20px 0 30px;width:128px;max-width:100%}verdocs-auth h3{text-align:center;font-weight:400;font-size:16px;line-height:1.75;margin:0}verdocs-auth h4{text-align:center;font-weight:400;font-size:14px;line-height:1.43;margin:0}verdocs-auth .status-result{display:none}verdocs-auth .status-result.debug{white-space:pre-wrap;font-size:14px;background:#fff;padding:10px;display:block;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-auth form{width:100%}verdocs-auth verdocs-text-input{margin-bottom:10px}';export{n as verdocs_auth}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,n,t,o){function r(e){return e instanceof t?e:new t((function(n){n(e)}))}return new(t||(t=Promise))((function(t,i){function s(e){try{a(o.next(e))}catch(e){i(e)}}function l(e){try{a(o["throw"](e))}catch(e){i(e)}}function a(e){e.done?t(e.value):r(e.value).then(s,l)}a((o=o.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,r,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(n){return a([e,n])}}function a(s){if(o)throw new TypeError("Generator is already executing.");while(t)try{if(o=1,r&&(i=s[0]&2?r["return"]:s[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;if(r=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:t.label++;return{value:s[1],done:false};case 5:t.label++;r=s[1];s=[0];continue;case 7:s=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){t.label=s[1];break}if(s[0]===6&&t.label<i[1]){t.label=i[1];i=s;break}if(i&&t.label<i[2]){t.label=i[2];t.ops.push(s);break}if(i[2])t.ops.pop();t.trys.pop();continue}s=n.call(e,t)}catch(e){s=[6,e];r=0}finally{o=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,n,t){if(t||arguments.length===2)for(var o=0,r=n.length,i;o<r;o++){if(i||!(o in n)){if(!i)i=Array.prototype.slice.call(n,0,o);i[o]=n[o]}}return e.concat(i||Array.prototype.slice.call(n))};System.register(["./p-97329951.system.js","./p-a7433630.system.js","./p-a4dc6a79.system.js","./p-2d687108.system.js","./p-187b20b7.system.js","./p-d7e31573.system.js","./p-af2c2f79.system.js","./p-e0cfad01.system.js","./p-0f6da8c7.system.js","./p-9cecb5df.system.js","./p-327858f0.system.js"],(function(e){"use strict";var n,t,o,r,i,s,l,a,c,d,u;return{setters:[function(e){n=e.r;t=e.c;o=e.h;r=e.H;i=e.F;s=e.a},function(){},function(e){l=e.V},function(e){a=e.g;c=e.s},function(e){d=e.S},function(e){u=e.s},function(){},function(){},function(){},function(){},function(){}],execute:function(){var p='verdocs-view{display:-ms-flexbox;display:flex;overflow:hidden;position:relative;min-height:600px;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-view div,verdocs-view canvas{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-view .header{color:#fff;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 56px;flex:0 0 56px;padding:0 15px;font-size:12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-transition:all 0.25s;transition:all 0.25s;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12)}verdocs-view .header .logo{width:80px;display:none;margin:-6px 0 0 10px}verdocs-view .header .title{padding-left:16px;font-size:18px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}verdocs-view .document{-ms-flex:1;flex:1;height:100%;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}verdocs-view .document .inner{width:100%;max-width:1028px}';var f=[{id:"print",label:"Print"},{id:"download",label:"Download"}];var v=e("verdocs_view",function(){function e(e){n(this,e);this.sdkError=t(this,"sdkError",7);this.endpoint=l.getDefault();this.envelopeId=""}e.prototype.componentWillLoad=function(){this.endpoint.loadSession()};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,n,t,o;return __generator(this,(function(r){switch(r.label){case 0:if(!this.envelopeId){console.error("[VIEW] Missing required envelopeId");return[2]}r.label=1;case 1:r.trys.push([1,3,,4]);return[4,a(this.endpoint,this.envelopeId)];case 2:r.sent();return[3,4];case 3:o=r.sent();(e=this.sdkError)===null||e===void 0?void 0:e.emit(new d(o.message,(n=o.response)===null||n===void 0?void 0:n.status,(t=o.response)===null||t===void 0?void 0:t.data));return[3,4];case 4:return[2]}}))}))};e.prototype.handlePageRendered=function(e){var n=e.detail;console.log("[VIEW] Page rendered",n)};e.prototype.handleOptionSelected=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){switch(e.detail.id){case"print":window.print();break;case"download":u(this.endpoint,c.envelope,c.envelope.envelope_document_id).catch((function(e){console.log("Error downloading PDF",e)}));break}return[2]}))}))};e.prototype.render=function(){var e=this;var n;console.log("[VIEW] Rendering",c.error,c.loading,c.envelope);if(c.loading||!c.envelope){return o(r,null,o("verdocs-loader",null))}if(c.error){return o(r,null,o("div",null,c.error))}return o(r,null,o("div",{class:"header"},o(i,null,o("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),o("div",{class:"title"},c.envelope.name),o("div",{style:{flex:"1"}}),o("div",{style:{marginLeft:"10px"}}),o("verdocs-dropdown",{options:f,onOptionSelected:function(n){return e.handleOptionSelected(n)}}))),o("div",{class:"document"},(((n=c.envelope)===null||n===void 0?void 0:n.documents)||[]).filter((function(e){return e.type!=="certificate"})).map((function(n){var t=__spreadArray([],(n===null||n===void 0?void 0:n.pages)||[],true);t.sort((function(e,n){return e.sequence-n.sequence}));return o(i,null,t.map((function(n){return o("verdocs-document-page",{pageImageUri:n.display_uri,virtualWidth:612,virtualHeight:792,pageNumber:n.sequence,onPageRendered:function(n){return e.handlePageRendered(n)},layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})})))}))))};Object.defineProperty(e.prototype,"component",{get:function(){return s(this)},enumerable:false,configurable:true});return e}());v.style=p}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,c as t,h as e}from"./p-ff1278ed.js";import"./p-8efc9749.js";import{V as i}from"./p-2e4dfdc6.js";import"./p-21603661.js";const s=class{constructor(e){o(this,e),this.searchContacts=t(this,"searchContacts",7),this.cancel=t(this,"cancel",7),this.next=t(this,"next",7),this.endpoint=i.getDefault(),this.templateRole=null,this.contactSuggestions=[],this.name=void 0,this.email=void 0,this.phone=void 0,this.message=void 0,this.showSuggestions=!1,this.showMessage=!1,this.delegator=!1}componentWillLoad(){this.templateRole&&(this.name=this.templateRole.full_name||"",this.email=this.templateRole.email||"",this.phone=this.templateRole.phone||"",this.delegator=this.templateRole.delegator||!1,this.message=this.templateRole.message||"",this.showMessage=""!==this.message)}handleNameChange(o){var t;this.name=o.target.value,null===(t=this.searchContacts)||void 0===t||t.emit({query:this.name})}handleEmailChange(o){this.email=o.target.value}handlePhoneChange(o){this.phone=o.target.value}handleMessageChange(o){this.message=o.target.value}handleCancel(o){var t;o.stopPropagation(),this.showSuggestions=!1,null===(t=this.cancel)||void 0===t||t.emit()}handleSubmit(o){var t;o.stopPropagation(),this.showSuggestions=!1,null===(t=this.next)||void 0===t||t.emit({full_name:this.name,email:this.email,phone:this.phone,message:this.message,delegator:this.delegator})}handleSelectSuggestion(o,t){o.stopPropagation(),this.name=t.name,this.email=t.email,this.phone=t.phone,this.showSuggestions=!1}render(){return e("form",{onSubmit:o=>o.preventDefault(),onClick:o=>o.stopPropagation(),autocomplete:"off"},e("div",{class:"row"},e("label",{htmlFor:"verdocs-contact-picker-name"},"Name:"),e("input",{id:"verdocs-contact-picker-name",name:"verdocs-contact-picker-name",type:"text","data-lpignore":"true",autocomplete:"off",value:this.name,placeholder:"Recipient Name...",onFocus:()=>{var o;return this.showSuggestions=(null===(o=this.contactSuggestions)||void 0===o?void 0:o.length)>0},onInput:o=>this.handleNameChange(o)}),this.showSuggestions&&e("div",{class:"dropdown"},this.contactSuggestions.map((o=>{var t;return e("div",{key:null!==(t=o.id)&&void 0!==t?t:o.name,class:"suggestion",onClick:t=>this.handleSelectSuggestion(t,o)},o.avatar?e("img",{alt:"Avatar",class:"avatar",src:o.avatar}):e("div",{class:"avatar",innerHTML:'<svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiSvgIcon-root MuiSvgIcon-fontSizeLarge css-zjt8k" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="AccountCircleIcon" tabindex="-1" title="AccountCircle"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6zm0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20z"></path></svg>'}),e("div",{class:"details"},e("div",{class:"name"},o.name),o.email&&e("div",{class:"destination"},o.email),o.phone&&e("div",{class:"destination"},o.phone)))})))),e("div",{class:"row"},e("label",{htmlFor:"verdocs-contact-picker-email"},"Email:"),e("input",{id:"verdocs-contact-picker-email",name:"verdocs-contact-picker-email",type:"text","data-lpignore":"true",autoComplete:"off",value:this.email,placeholder:"Email Address...",onFocus:()=>this.showSuggestions=!1,onInput:o=>this.handleEmailChange(o)})),e("div",{class:"row"},e("label",{htmlFor:"verdocs-contact-picker-phone"},"Phone:"),e("input",{id:"verdocs-contact-picker-phone",name:"verdocs-contact-picker-phone",type:"text","data-lpignore":"true",autocomplete:"off",value:this.phone,placeholder:"Phone Number...",onFocus:()=>this.showSuggestions=!1,onInput:o=>this.handlePhoneChange(o)})),this.showMessage&&e("div",{class:"row"},e("label",{htmlFor:"verdocs-contact-picker-message"},"Message:"),e("input",{id:"verdocs-contact-picker-message",name:"verdocs-contact-picker-message",type:"text","data-lpignore":"true",autocomplete:"off",value:this.message,placeholder:"Invitation Message...",onFocus:()=>this.showSuggestions=!1,onInput:o=>this.handleMessageChange(o)})),e("div",{class:"buttons"},e("verdocs-toggle-button",{icon:'<svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiBox-root css-1om0hkc" focusable="false" aria-hidden="true" viewBox="0 0 24 24"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"></path></svg>',size:"small",active:this.showMessage,onToggle:o=>{this.showMessage=o.detail.active,this.showSuggestions=!1}}),e("verdocs-toggle-button",{icon:'<svg class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiSvgIcon-root MuiSvgIcon-fontSizeLarge css-zjt8k" focusable="false" aria-hidden="true" viewBox="0 0 24 24" data-testid="AssignmentIndIcon" tabindex="-1" title="AssignmentInd"><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm0 4c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H6v-1.4c0-2 4-3.1 6-3.1s6 1.1 6 3.1V19z"></path></svg>',size:"small",active:this.delegator,onToggle:o=>{this.delegator=o.detail.active,this.showSuggestions=!1}}),e("div",{class:"flex-fill"}),e("verdocs-button",{variant:"outline",label:"Cancel",size:"small",onClick:o=>this.handleCancel(o)}),e("verdocs-button",{label:"OK",size:"small",onClick:o=>this.handleSubmit(o)})))}};s.style='verdocs-contact-picker{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;background-color:#ffffff}verdocs-contact-picker form{background-color:#f5f5fa;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-contact-picker form .row{width:300px;display:-ms-flexbox;display:flex;position:relative;margin:0 0 20px 0;-ms-flex-direction:column;flex-direction:column}verdocs-contact-picker form label{display:block;font-size:14px;font-weight:500;margin:0 0 4px 0;color:#5c6575}verdocs-contact-picker form input{border:none;font-size:18px;padding:3px 6px 3px 0;background:transparent;border-bottom:1px solid #33364b}verdocs-contact-picker form input:focus{outline:none}verdocs-contact-picker form .dropdown{left:0;right:0;top:49px;z-index:100;position:absolute;background:#ffffff;-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}verdocs-contact-picker form .dropdown .suggestion{display:-ms-flexbox;display:flex;padding:6px 12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .dropdown .suggestion svg{fill:#666666}verdocs-contact-picker form .dropdown .suggestion .avatar{width:48px;height:48px;-ms-flex:0 0 48px;flex:0 0 48px;margin-right:8px;border-radius:100%}verdocs-contact-picker form .dropdown .suggestion .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-contact-picker form .dropdown .suggestion .name{font-size:16px;font-weight:500;margin-bottom:3px;color:#092c4c}verdocs-contact-picker form .dropdown .suggestion .destination{font-size:14px;margin-bottom:3px;color:#33364b}verdocs-contact-picker form .dropdown .suggestion:hover{background:#eee;cursor:pointer}verdocs-contact-picker .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-contact-picker ::-webkit-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-moz-placeholder{color:#aaaaaa}verdocs-contact-picker :-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::placeholder{color:#aaaaaa}verdocs-contact-picker [data-lastpass-icon-root]{display:none !important}';export{s as verdocs_contact_picker}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as t}from"./p-21603661.js";function n(t,n){return function(){return t.apply(n,arguments)}}const{toString:e}=Object.prototype,{getPrototypeOf:r}=Object,o=(i=Object.create(null),t=>{const n=e.call(t);return i[n]||(i[n]=n.slice(8,-1).toLowerCase())});var i;const s=t=>(t=t.toLowerCase(),n=>o(n)===t),u=t=>n=>typeof n===t,{isArray:c}=Array,a=u("undefined"),f=s("ArrayBuffer"),l=u("string"),h=u("function"),d=u("number"),p=t=>null!==t&&"object"==typeof t,m=t=>{if("object"!==o(t))return!1;const n=r(t);return!(null!==n&&n!==Object.prototype&&null!==Object.getPrototypeOf(n)||Symbol.toStringTag in t||Symbol.iterator in t)},b=s("Date"),w=s("File"),y=s("Blob"),g=s("FileList"),O=s("URLSearchParams");function v(t,n,{allOwnKeys:e=!1}={}){if(null==t)return;let r,o;if("object"!=typeof t&&(t=[t]),c(t))for(r=0,o=t.length;r<o;r++)n.call(null,t[r],r,t);else{const o=e?Object.getOwnPropertyNames(t):Object.keys(t),i=o.length;let s;for(r=0;r<i;r++)s=o[r],n.call(null,t[s],s,t)}}function R(t,n){n=n.toLowerCase();const e=Object.keys(t);let r,o=e.length;for(;o-- >0;)if(r=e[o],n===r.toLowerCase())return r;return null}const S="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,E=t=>!a(t)&&t!==S,j=(A="undefined"!=typeof Uint8Array&&r(Uint8Array),t=>A&&t instanceof A);var A;const N=s("HTMLFormElement"),T=(({hasOwnProperty:t})=>(n,e)=>t.call(n,e))(Object.prototype),x=s("RegExp"),P=(t,n)=>{const e=Object.getOwnPropertyDescriptors(t),r={};v(e,((e,o)=>{!1!==n(e,o,t)&&(r[o]=e)})),Object.defineProperties(t,r)},D="abcdefghijklmnopqrstuvwxyz",F={DIGIT:"0123456789",ALPHA:D,ALPHA_DIGIT:D+D.toUpperCase()+"0123456789"},U={isArray:c,isArrayBuffer:f,isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&h(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{const n="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||e.call(t)===n||h(t.toString)&&t.toString()===n)},isArrayBufferView:function(t){let n;return n="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&f(t.buffer),n},isString:l,isNumber:d,isBoolean:t=>!0===t||!1===t,isObject:p,isPlainObject:m,isUndefined:a,isDate:b,isFile:w,isBlob:y,isRegExp:x,isFunction:h,isStream:t=>p(t)&&h(t.pipe),isURLSearchParams:O,isTypedArray:j,isFileList:g,forEach:v,merge:function t(){const{caseless:n}=E(this)&&this||{},e={},r=(r,o)=>{const i=n&&R(e,o)||o;e[i]=m(e[i])&&m(r)?t(e[i],r):m(r)?t({},r):c(r)?r.slice():r};for(let t=0,n=arguments.length;t<n;t++)arguments[t]&&v(arguments[t],r);return e},extend:(t,e,r,{allOwnKeys:o}={})=>(v(e,((e,o)=>{t[o]=r&&h(e)?n(e,r):e}),{allOwnKeys:o}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,n,e,r)=>{t.prototype=Object.create(n.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:n.prototype}),e&&Object.assign(t.prototype,e)},toFlatObject:(t,n,e,o)=>{let i,s,u;const c={};if(n=n||{},null==t)return n;do{for(i=Object.getOwnPropertyNames(t),s=i.length;s-- >0;)u=i[s],o&&!o(u,t,n)||c[u]||(n[u]=t[u],c[u]=!0);t=!1!==e&&r(t)}while(t&&(!e||e(t,n))&&t!==Object.prototype);return n},kindOf:o,kindOfTest:s,endsWith:(t,n,e)=>{t=String(t),(void 0===e||e>t.length)&&(e=t.length);const r=t.indexOf(n,e-=n.length);return-1!==r&&r===e},toArray:t=>{if(!t)return null;if(c(t))return t;let n=t.length;if(!d(n))return null;const e=new Array(n);for(;n-- >0;)e[n]=t[n];return e},forEachEntry:(t,n)=>{const e=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=e.next())&&!r.done;){const e=r.value;n.call(t,e[0],e[1])}},matchAll:(t,n)=>{let e;const r=[];for(;null!==(e=t.exec(n));)r.push(e);return r},isHTMLForm:N,hasOwnProperty:T,hasOwnProp:T,reduceDescriptors:P,freezeMethods:t=>{P(t,((n,e)=>{if(h(t)&&-1!==["arguments","caller","callee"].indexOf(e))return!1;h(t[e])&&(n.enumerable=!1,"writable"in n?n.writable=!1:n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+e+"'")}))}))},toObjectSet:(t,n)=>{const e={},r=t=>{t.forEach((t=>{e[t]=!0}))};return c(t)?r(t):r(String(t).split(n)),e},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,n,e){return n.toUpperCase()+e})),noop:()=>{},toFiniteNumber:(t,n)=>(t=+t,Number.isFinite(t)?t:n),findKey:R,global:S,isContextDefined:E,ALPHABET:F,generateString:(t=16,n=F.ALPHA_DIGIT)=>{let e="";const{length:r}=n;for(;t--;)e+=n[Math.random()*r|0];return e},isSpecCompliantForm:function(t){return!!(t&&h(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const n=new Array(10),e=(t,r)=>{if(p(t)){if(n.indexOf(t)>=0)return;if(!("toJSON"in t)){n[r]=t;const o=c(t)?[]:{};return v(t,((t,n)=>{const i=e(t,r+1);!a(i)&&(o[n]=i)})),n[r]=void 0,o}}return t};return e(t,0)}};function _(t,n,e,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",n&&(this.code=n),e&&(this.config=e),r&&(this.request=r),o&&(this.response=o)}U.inherits(_,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:U.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const B=_.prototype,C={};function L(t){return U.isPlainObject(t)||U.isArray(t)}function q(t){return U.endsWith(t,"[]")?t.slice(0,-2):t}function I(t,n,e){return t?t.concat(n).map((function(t,n){return t=q(t),!e&&n?"["+t+"]":t})).join(e?".":""):n}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((t=>{C[t]={value:t}})),Object.defineProperties(_,C),Object.defineProperty(B,"isAxiosError",{value:!0}),_.from=(t,n,e,r,o,i)=>{const s=Object.create(B);return U.toFlatObject(t,s,(function(t){return t!==Error.prototype}),(t=>"isAxiosError"!==t)),_.call(s,t.message,n,e,r,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const k=U.toFlatObject(U,{},null,(function(t){return/^is[A-Z]/.test(t)}));function M(t,n,e){if(!U.isObject(t))throw new TypeError("target must be an object");n=n||new FormData;const r=(e=U.toFlatObject(e,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,n){return!U.isUndefined(n[t])}))).metaTokens,o=e.visitor||a,i=e.dots,s=e.indexes,u=(e.Blob||"undefined"!=typeof Blob&&Blob)&&U.isSpecCompliantForm(n);if(!U.isFunction(o))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(U.isDate(t))return t.toISOString();if(!u&&U.isBlob(t))throw new _("Blob is not supported. Use a Buffer instead.");return U.isArrayBuffer(t)||U.isTypedArray(t)?u&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function a(t,e,o){let u=t;if(t&&!o&&"object"==typeof t)if(U.endsWith(e,"{}"))e=r?e:e.slice(0,-2),t=JSON.stringify(t);else if(U.isArray(t)&&function(t){return U.isArray(t)&&!t.some(L)}(t)||(U.isFileList(t)||U.endsWith(e,"[]"))&&(u=U.toArray(t)))return e=q(e),u.forEach((function(t,r){!U.isUndefined(t)&&null!==t&&n.append(!0===s?I([e],r,i):null===s?e:e+"[]",c(t))})),!1;return!!L(t)||(n.append(I(o,e,i),c(t)),!1)}const f=[],l=Object.assign(k,{defaultVisitor:a,convertValue:c,isVisitable:L});if(!U.isObject(t))throw new TypeError("data must be an object");return function t(e,r){if(!U.isUndefined(e)){if(-1!==f.indexOf(e))throw Error("Circular reference detected in "+r.join("."));f.push(e),U.forEach(e,(function(e,i){!0===(!(U.isUndefined(e)||null===e)&&o.call(n,e,U.isString(i)?i.trim():i,r,l))&&t(e,r?r.concat(i):[i])})),f.pop()}}(t),n}function J(t){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return n[t]}))}function z(t,n){this._pairs=[],t&&M(t,this,n)}const H=z.prototype;function K(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function V(t,n,e){if(!n)return t;const r=e&&e.encode||K,o=e&&e.serialize;let i;if(i=o?o(n,e):U.isURLSearchParams(n)?n.toString():new z(n,e).toString(r),i){const n=t.indexOf("#");-1!==n&&(t=t.slice(0,n)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}H.append=function(t,n){this._pairs.push([t,n])},H.toString=function(t){const n=t?function(n){return t.call(this,n,J)}:J;return this._pairs.map((function(t){return n(t[0])+"="+n(t[1])}),"").join("&")};class ${constructor(){this.handlers=[]}use(t,n,e){return this.handlers.push({fulfilled:t,rejected:n,synchronous:!!e&&e.synchronous,runWhen:e?e.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){U.forEach(this.handlers,(function(n){null!==n&&t(n)}))}}const G={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},W="undefined"!=typeof URLSearchParams?URLSearchParams:z,X=FormData,Z=(()=>{let t;return("undefined"==typeof navigator||"ReactNative"!==(t=navigator.product)&&"NativeScript"!==t&&"NS"!==t)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),Q="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Y={isBrowser:!0,classes:{URLSearchParams:W,FormData:X,Blob},isStandardBrowserEnv:Z,isStandardBrowserWebWorkerEnv:Q,protocols:["http","https","file","blob","url","data"]};function tt(t){function n(t,e,r,o){let i=t[o++];const s=Number.isFinite(+i),u=o>=t.length;return i=!i&&U.isArray(r)?r.length:i,u?(r[i]=U.hasOwnProp(r,i)?[r[i],e]:e,!s):(r[i]&&U.isObject(r[i])||(r[i]=[]),n(t,e,r[i],o)&&U.isArray(r[i])&&(r[i]=function(t){const n={},e=Object.keys(t);let r;const o=e.length;let i;for(r=0;r<o;r++)i=e[r],n[i]=t[i];return n}(r[i])),!s)}if(U.isFormData(t)&&U.isFunction(t.entries)){const e={};return U.forEachEntry(t,((t,r)=>{n(function(t){return U.matchAll(/\w+|\[(\w*)]/g,t).map((t=>"[]"===t[0]?"":t[1]||t[0]))}(t),r,e,0)})),e}return null}const nt={"Content-Type":void 0},et={transitional:G,adapter:["xhr","http"],transformRequest:[function(t,n){const e=n.getContentType()||"",r=e.indexOf("application/json")>-1,o=U.isObject(t);if(o&&U.isHTMLForm(t)&&(t=new FormData(t)),U.isFormData(t))return r&&r?JSON.stringify(tt(t)):t;if(U.isArrayBuffer(t)||U.isBuffer(t)||U.isStream(t)||U.isFile(t)||U.isBlob(t))return t;if(U.isArrayBufferView(t))return t.buffer;if(U.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(e.indexOf("application/x-www-form-urlencoded")>-1)return function(t,n){return M(t,new Y.classes.URLSearchParams,Object.assign({visitor:function(t,n,e,r){return r.defaultVisitor.apply(this,arguments)}},n))}(t,this.formSerializer).toString();if((i=U.isFileList(t))||e.indexOf("multipart/form-data")>-1){const n=this.env&&this.env.FormData;return M(i?{"files[]":t}:t,n&&new n,this.formSerializer)}}return o||r?(n.setContentType("application/json",!1),function(t){if(U.isString(t))try{return(0,JSON.parse)(t),U.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const n=this.transitional||et.transitional,e=n&&n.forcedJSONParsing,r="json"===this.responseType;if(t&&U.isString(t)&&(e&&!this.responseType||r)){const e=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(t){if(e){if("SyntaxError"===t.name)throw _.from(t,_.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Y.classes.FormData,Blob:Y.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};U.forEach(["delete","get","head"],(function(t){et.headers[t]={}})),U.forEach(["post","put","patch"],(function(t){et.headers[t]=U.merge(nt)}));const rt=U.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ot=Symbol("internals");function it(t){return t&&String(t).trim().toLowerCase()}function st(t){return!1===t||null==t?t:U.isArray(t)?t.map(st):String(t)}function ut(t,n,e,r){return U.isFunction(r)?r.call(this,n,e):U.isString(n)?U.isString(r)?-1!==n.indexOf(r):U.isRegExp(r)?r.test(n):void 0:void 0}class ct{constructor(t){t&&this.set(t)}set(t,n,e){const r=this;function o(t,n,e){const o=it(n);if(!o)throw new Error("header name must be a non-empty string");const i=U.findKey(r,o);(!i||void 0===r[i]||!0===e||void 0===e&&!1!==r[i])&&(r[i||n]=st(t))}const i=(t,n)=>U.forEach(t,((t,e)=>o(t,e,n)));return U.isPlainObject(t)||t instanceof this.constructor?i(t,n):U.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z]+$/.test(t.trim())?i((t=>{const n={};let e,r,o;return t&&t.split("\n").forEach((function(t){o=t.indexOf(":"),e=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim(),!e||n[e]&&rt[e]||("set-cookie"===e?n[e]?n[e].push(r):n[e]=[r]:n[e]=n[e]?n[e]+", "+r:r)})),n})(t),n):null!=t&&o(n,t,e),this}get(t,n){if(t=it(t)){const e=U.findKey(this,t);if(e){const t=this[e];if(!n)return t;if(!0===n)return function(t){const n=Object.create(null),e=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=e.exec(t);)n[r[1]]=r[2];return n}(t);if(U.isFunction(n))return n.call(this,t,e);if(U.isRegExp(n))return n.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=it(t)){const e=U.findKey(this,t);return!(!e||void 0===this[e]||n&&!ut(0,this[e],e,n))}return!1}delete(t,n){const e=this;let r=!1;function o(t){if(t=it(t)){const o=U.findKey(e,t);!o||n&&!ut(0,e[o],o,n)||(delete e[o],r=!0)}}return U.isArray(t)?t.forEach(o):o(t),r}clear(t){const n=Object.keys(this);let e=n.length,r=!1;for(;e--;){const o=n[e];t&&!ut(0,this[o],o,t)||(delete this[o],r=!0)}return r}normalize(t){const n=this,e={};return U.forEach(this,((r,o)=>{const i=U.findKey(e,o);if(i)return n[i]=st(r),void delete n[o];const s=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((t,n,e)=>n.toUpperCase()+e))}(o):String(o).trim();s!==o&&delete n[o],n[s]=st(r),e[s]=!0})),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return U.forEach(this,((e,r)=>{null!=e&&!1!==e&&(n[r]=t&&U.isArray(e)?e.join(", "):e)})),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([t,n])=>t+": "+n)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const e=new this(t);return n.forEach((t=>e.set(t))),e}static accessor(t){const n=(this[ot]=this[ot]={accessors:{}}).accessors,e=this.prototype;function r(t){const r=it(t);n[r]||(function(t,n){const e=U.toCamelCase(" "+n);["get","set","has"].forEach((r=>{Object.defineProperty(t,r+e,{value:function(t,e,o){return this[r].call(this,n,t,e,o)},configurable:!0})}))}(e,t),n[r]=!0)}return U.isArray(t)?t.forEach(r):r(t),this}}function at(t,n){const e=this||et,r=n||e,o=ct.from(r.headers);let i=r.data;return U.forEach(t,(function(t){i=t.call(e,i,o.normalize(),n?n.status:void 0)})),o.normalize(),i}function ft(t){return!(!t||!t.__CANCEL__)}function lt(t,n,e){_.call(this,null==t?"canceled":t,_.ERR_CANCELED,n,e),this.name="CanceledError"}ct.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),U.freezeMethods(ct.prototype),U.freezeMethods(ct),U.inherits(lt,_,{__CANCEL__:!0});const ht=Y.isStandardBrowserEnv?{write:function(t,n,e,r,o,i){const s=[];s.push(t+"="+encodeURIComponent(n)),U.isNumber(e)&&s.push("expires="+new Date(e).toGMTString()),U.isString(r)&&s.push("path="+r),U.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){const n=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function dt(t,n){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(n)?function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t}(t,n):n}const pt=Y.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let e;function r(e){let r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){const n=U.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0};function mt(t,n){let e=0;const r=function(t,n){t=t||10;const e=new Array(t),r=new Array(t);let o,i=0,s=0;return n=void 0!==n?n:1e3,function(u){const c=Date.now(),a=r[s];o||(o=c),e[i]=u,r[i]=c;let f=s,l=0;for(;f!==i;)l+=e[f++],f%=t;if(i=(i+1)%t,i===s&&(s=(s+1)%t),c-o<n)return;const h=a&&c-a;return h?Math.round(1e3*l/h):void 0}}(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,u=i-e,c=r(u);e=i;const a={loaded:i,total:s,progress:s?i/s:void 0,bytes:u,rate:c||void 0,estimated:c&&s&&i<=s?(s-i)/c:void 0,event:o};a[n?"download":"upload"]=!0,t(a)}}const bt={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(n,e){let r=t.data;const o=ct.from(t.headers).normalize(),i=t.responseType;let s;function u(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s)}U.isFormData(r)&&(Y.isStandardBrowserEnv||Y.isStandardBrowserWebWorkerEnv)&&o.setContentType(!1);let c=new XMLHttpRequest;if(t.auth){const n=t.auth.username||"",e=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.set("Authorization","Basic "+btoa(n+":"+e))}const a=dt(t.baseURL,t.url);function f(){if(!c)return;const r=ct.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function(t,n,e){const r=e.config.validateStatus;e.status&&r&&!r(e.status)?n(new _("Request failed with status code "+e.status,[_.ERR_BAD_REQUEST,_.ERR_BAD_RESPONSE][Math.floor(e.status/100)-4],e.config,e.request,e)):t(e)}((function(t){n(t),u()}),(function(t){e(t),u()}),{data:i&&"text"!==i&&"json"!==i?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:r,config:t,request:c}),c=null}if(c.open(t.method.toUpperCase(),V(a,t.params,t.paramsSerializer),!0),c.timeout=t.timeout,"onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(f)},c.onabort=function(){c&&(e(new _("Request aborted",_.ECONNABORTED,t,c)),c=null)},c.onerror=function(){e(new _("Network Error",_.ERR_NETWORK,t,c)),c=null},c.ontimeout=function(){let n=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";t.timeoutErrorMessage&&(n=t.timeoutErrorMessage),e(new _(n,(t.transitional||G).clarifyTimeoutError?_.ETIMEDOUT:_.ECONNABORTED,t,c)),c=null},Y.isStandardBrowserEnv){const n=(t.withCredentials||pt(a))&&t.xsrfCookieName&&ht.read(t.xsrfCookieName);n&&o.set(t.xsrfHeaderName,n)}void 0===r&&o.setContentType(null),"setRequestHeader"in c&&U.forEach(o.toJSON(),(function(t,n){c.setRequestHeader(n,t)})),U.isUndefined(t.withCredentials)||(c.withCredentials=!!t.withCredentials),i&&"json"!==i&&(c.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&c.addEventListener("progress",mt(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",mt(t.onUploadProgress)),(t.cancelToken||t.signal)&&(s=n=>{c&&(e(!n||n.type?new lt(null,t,c):n),c.abort(),c=null)},t.cancelToken&&t.cancelToken.subscribe(s),t.signal&&(t.signal.aborted?s():t.signal.addEventListener("abort",s)));const l=function(t){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}(a);l&&-1===Y.protocols.indexOf(l)?e(new _("Unsupported protocol "+l+":",_.ERR_BAD_REQUEST,t)):c.send(r||null)}))}};U.forEach(bt,((t,n)=>{if(t){try{Object.defineProperty(t,"name",{value:n})}catch(t){}Object.defineProperty(t,"adapterName",{value:n})}}));function wt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new lt(null,t)}function yt(t){return wt(t),t.headers=ct.from(t.headers),t.data=at.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),(t=>{t=U.isArray(t)?t:[t];const{length:n}=t;let e,r;for(let o=0;o<n&&(e=t[o],!(r=U.isString(e)?bt[e.toLowerCase()]:e));o++);if(!r){if(!1===r)throw new _(`Adapter ${e} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(U.hasOwnProp(bt,e)?`Adapter '${e}' is not available in the build`:`Unknown adapter '${e}'`)}if(!U.isFunction(r))throw new TypeError("adapter is not a function");return r})(t.adapter||et.adapter)(t).then((function(n){return wt(t),n.data=at.call(t,t.transformResponse,n),n.headers=ct.from(n.headers),n}),(function(n){return ft(n)||(wt(t),n&&n.response&&(n.response.data=at.call(t,t.transformResponse,n.response),n.response.headers=ct.from(n.response.headers))),Promise.reject(n)}))}const gt=t=>t instanceof ct?t.toJSON():t;function Ot(t,n){n=n||{};const e={};function r(t,n,e){return U.isPlainObject(t)&&U.isPlainObject(n)?U.merge.call({caseless:e},t,n):U.isPlainObject(n)?U.merge({},n):U.isArray(n)?n.slice():n}function o(t,n,e){return U.isUndefined(n)?U.isUndefined(t)?void 0:r(void 0,t,e):r(t,n,e)}function i(t,n){if(!U.isUndefined(n))return r(void 0,n)}function s(t,n){return U.isUndefined(n)?U.isUndefined(t)?void 0:r(void 0,t):r(void 0,n)}function u(e,o,i){return i in n?r(e,o):i in t?r(void 0,e):void 0}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:u,headers:(t,n)=>o(gt(t),gt(n),!0)};return U.forEach(Object.keys(t).concat(Object.keys(n)),(function(r){const i=c[r]||o,s=i(t[r],n[r],r);U.isUndefined(s)&&i!==u||(e[r]=s)})),e}const vt={};["object","boolean","number","function","string","symbol"].forEach(((t,n)=>{vt[t]=function(e){return typeof e===t||"a"+(n<1?"n ":" ")+t}}));const Rt={};vt.transitional=function(t,n,e){function r(t,n){return"[Axios v1.3.1] Transitional option '"+t+"'"+n+(e?". "+e:"")}return(e,o,i)=>{if(!1===t)throw new _(r(o," has been removed"+(n?" in "+n:"")),_.ERR_DEPRECATED);return n&&!Rt[o]&&(Rt[o]=!0,console.warn(r(o," has been deprecated since v"+n+" and will be removed in the near future"))),!t||t(e,o,i)}};const St={assertOptions:function(t,n,e){if("object"!=typeof t)throw new _("options must be an object",_.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const i=r[o],s=n[i];if(s){const n=t[i],e=void 0===n||s(n,i,t);if(!0!==e)throw new _("option "+i+" must be "+e,_.ERR_BAD_OPTION_VALUE)}else if(!0!==e)throw new _("Unknown option "+i,_.ERR_BAD_OPTION)}},validators:vt},Et=St.validators;class jt{constructor(t){this.defaults=t,this.interceptors={request:new $,response:new $}}request(t,n){"string"==typeof t?(n=n||{}).url=t:n=t||{},n=Ot(this.defaults,n);const{transitional:e,paramsSerializer:r,headers:o}=n;let i;void 0!==e&&St.assertOptions(e,{silentJSONParsing:Et.transitional(Et.boolean),forcedJSONParsing:Et.transitional(Et.boolean),clarifyTimeoutError:Et.transitional(Et.boolean)},!1),void 0!==r&&St.assertOptions(r,{encode:Et.function,serialize:Et.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase(),i=o&&U.merge(o.common,o[n.method]),i&&U.forEach(["delete","get","head","post","put","patch","common"],(t=>{delete o[t]})),n.headers=ct.concat(i,o);const s=[];let u=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(n)||(u=u&&t.synchronous,s.unshift(t.fulfilled,t.rejected))}));const c=[];let a;this.interceptors.response.forEach((function(t){c.push(t.fulfilled,t.rejected)}));let f,l=0;if(!u){const t=[yt.bind(this),void 0];for(t.unshift.apply(t,s),t.push.apply(t,c),f=t.length,a=Promise.resolve(n);l<f;)a=a.then(t[l++],t[l++]);return a}f=s.length;let h=n;for(l=0;l<f;){const t=s[l++],n=s[l++];try{h=t(h)}catch(t){n.call(this,t);break}}try{a=yt.call(this,h)}catch(t){return Promise.reject(t)}for(l=0,f=c.length;l<f;)a=a.then(c[l++],c[l++]);return a}getUri(t){return V(dt((t=Ot(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}U.forEach(["delete","get","head","options"],(function(t){jt.prototype[t]=function(n,e){return this.request(Ot(e||{},{method:t,url:n,data:(e||{}).data}))}})),U.forEach(["post","put","patch"],(function(t){function n(n){return function(e,r,o){return this.request(Ot(o||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:e,data:r}))}}jt.prototype[t]=n(),jt.prototype[t+"Form"]=n(!0)}));class At{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let n;this.promise=new Promise((function(t){n=t}));const e=this;this.promise.then((t=>{if(!e._listeners)return;let n=e._listeners.length;for(;n-- >0;)e._listeners[n](t);e._listeners=null})),this.promise.then=t=>{let n;const r=new Promise((t=>{e.subscribe(t),n=t})).then(t);return r.cancel=function(){e.unsubscribe(n)},r},t((function(t,r,o){e.reason||(e.reason=new lt(t,r,o),n(e.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);-1!==n&&this._listeners.splice(n,1)}static source(){let t;return{token:new At((function(n){t=n})),cancel:t}}}const Nt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Nt).forEach((([t,n])=>{Nt[n]=t}));const Tt=function t(e){const r=new jt(e),o=n(jt.prototype.request,r);return U.extend(o,jt.prototype,r,{allOwnKeys:!0}),U.extend(o,r,null,{allOwnKeys:!0}),o.create=function(n){return t(Ot(e,n))},o}(et);Tt.Axios=jt,Tt.CanceledError=lt,Tt.CancelToken=At,Tt.isCancel=ft,Tt.VERSION="1.3.1",Tt.toFormData=M,Tt.AxiosError=_,Tt.Cancel=Tt.CanceledError,Tt.all=function(t){return Promise.all(t)},Tt.spread=function(t){return function(n){return t.apply(null,n)}},Tt.isAxiosError=function(t){return U.isObject(t)&&!0===t.isAxiosError},Tt.mergeConfig=Ot,Tt.AxiosHeaders=ct,Tt.formToJSON=t=>tt(U.isHTMLForm(t)?new FormData(t):t),Tt.HttpStatusCode=Nt,Tt.default=Tt;var xt=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw new Error("Unable to resolve global `this`")},Pt=function(){if(this)return this;if("object"==typeof globalThis&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(t){return xt()}try{return __global__||xt()}finally{delete Object.prototype.__global__}}(),Dt=Symbol.for("verdocs-default-endpoint"),Ft=function(t){return console.debug("[JS-SDK] ".concat(t.method.toUpperCase()," ").concat(t.baseURL).concat(t.url),t.data?JSON.stringify(t.data):""),t},Ut=function(){function n(t){this.environment="verdocs",this.sessionType="user",this.baseURL="https://api.verdocs.com",this.clientID="not-set",this.timeout=15e3,this.token=null,this.nextListenerId=0,this.sessionListeners=new Map,this.requestLoggerId=null,this.session=null,this.baseURL=(null==t?void 0:t.baseURL)||"https://api.verdocs.com",this.timeout=(null==t?void 0:t.timeout)||15e3,this.environment=(null==t?void 0:t.environment)||"verdocs",this.sessionType=(null==t?void 0:t.sessionType)||"user",this.clientID=(null==t?void 0:t.clientID)||"not-set",this.api=Tt.create({baseURL:this.baseURL,timeout:this.timeout})}return n.prototype.setDefault=function(){Pt[Dt]=this},n.getDefault=function(){return Pt[Dt]||(Pt[Dt]=new n,window.console.debug("[JS_SDK] Created default endpoint",Pt[Dt])),Pt[Dt]},n.prototype.getEnvironment=function(){return this.environment},n.prototype.getSessionType=function(){return this.sessionType},n.prototype.getBaseURL=function(){return this.baseURL},n.prototype.getClientID=function(){return this.clientID},n.prototype.getTimeout=function(){return this.timeout},n.prototype.getSession=function(){return this.session},n.prototype.setEnvironment=function(t){return this.environment=t,this},n.prototype.setSessionType=function(t){return this.sessionType=t,this},n.prototype.setBaseURL=function(t){return this.api.defaults.baseURL=t,this},n.prototype.setClientID=function(t){return this.clientID=t,this.api.defaults.headers.common["X-Client-ID"]=t,this},n.prototype.setTimeout=function(t){return this.timeout=t,this.api.defaults.timeout=t,this},n.prototype.logRequests=function(t){return t&&null===this.requestLoggerId?this.requestLoggerId=this.api.interceptors.request.use(Ft):t||null===this.requestLoggerId||this.api.interceptors.request.eject(this.requestLoggerId),this},n.prototype.setToken=function(n){if(!n)return this.clearSession();var e=t(n);return null===e||e.exp&&1e3*e.exp<(new Date).getTime()?(window.console.warn("[JS_SDK] Ignoring attempt to use expired session token"),this.clearSession()):(this.token=n,this.session=e,"user"===this.sessionType?this.api.defaults.headers.common.Authorization="Bearer ".concat(n):this.api.defaults.headers.common.signer="Bearer ".concat(n),localStorage.setItem(this.sessionStorageKey(),n),this.notifySessionListeners(),this)},n.prototype.getToken=function(){return this.token},n.prototype.sessionStorageKey=function(){return"verdocs-session-".concat(this.getSessionType(),"-").concat(this.getEnvironment())},n.prototype.clearSession=function(){return localStorage.removeItem(this.sessionStorageKey()),delete this.api.defaults.headers.common.Authorization,delete this.api.defaults.headers.common.signer,this.session=null,this.token=null,this.notifySessionListeners(),this},n.prototype.clearSignerSession=function(){return localStorage.removeItem(this.sessionStorageKey()),delete this.api.defaults.headers.common.Authorization,this.session=null,this.token=null,this.notifySessionListeners(),this},n.prototype.notifySessionListeners=function(){var t=this;this.sessionListeners.forEach((function(n){try{n(t,t.session)}catch(t){}}))},n.prototype.onSessionChanged=function(t){var n=this;this.nextListenerId++;var e=Symbol.for(""+this.nextListenerId);return this.sessionListeners.set(e,t),function(){n.sessionListeners.delete(e)}},n.prototype.loadSession=function(){var t=localStorage.getItem(this.sessionStorageKey());return t?this.setToken(t):this.clearSession()},n}();export{Ut as V}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as i,h as t,H as s}from"./p-ff1278ed.js";import"./p-8efc9749.js";import{V as n}from"./p-2e4dfdc6.js";import{g as a,s as o}from"./p-c4deb4b7.js";import{S as l}from"./p-7a1b2643.js";import{f as c}from"./p-ab01f71e.js";import"./p-21603661.js";import"./p-880b619d.js";import"./p-5ea05a1d.js";import"./p-c2cc4492.js";const d={visibility:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M12 15a3 3 0 100-6 3 3 0 000 6z" /><path fill-rule="evenodd" d="M1.323 11.447C2.811 6.976 7.028 3.75 12.001 3.75c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113-1.487 4.471-5.705 7.697-10.677 7.697-4.97 0-9.186-3.223-10.675-7.69a1.762 1.762 0 010-1.113zM17.25 12a5.25 5.25 0 11-10.5 0 5.25 5.25 0 0110.5 0z" clip-rule="evenodd" /></svg>',pencil:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M21.731 2.269a2.625 2.625 0 00-3.712 0l-1.157 1.157 3.712 3.712 1.157-1.157a2.625 2.625 0 000-3.712zM19.513 8.199l-3.712-3.712-12.15 12.15a5.25 5.25 0 00-1.32 2.214l-.8 2.685a.75.75 0 00.933.933l2.685-.8a5.25 5.25 0 002.214-1.32L19.513 8.2z" /></svg>',mail:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>',done:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M19.916 4.626a.75.75 0 01.208 1.04l-9 13.5a.75.75 0 01-1.154.114l-6-6a.75.75 0 011.06-1.06l5.353 5.353 8.493-12.739a.75.75 0 011.04-.208z" clip-rule="evenodd" /></svg>',send:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/></svg>',gesture:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1H21v-2.5h-2.47c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3 5.12 3 3.97 4 3.72 4.25c-.36.36-.66.66-.88.93l1.75 1.71zm9.29 11.66c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z"/></svg>',clear:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',check_circle:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>',link:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/></svg>',cancel:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/></svg>',done_all:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"/></svg>',create:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>',perm_identity:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>',people:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>',contact_email:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M21 8V7l-3 2-3-2v1l3 2 3-2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1zm8-6h-8V6h8v6z"/></svg>',textsms:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/></svg>',verified_user:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M12.516 2.17a.75.75 0 00-1.032 0 11.209 11.209 0 01-7.877 3.08.75.75 0 00-.722.515A12.74 12.74 0 002.25 9.75c0 5.942 4.064 10.933 9.563 12.348a.749.749 0 00.374 0c5.499-1.415 9.563-6.406 9.563-12.348 0-1.39-.223-2.73-.635-3.985a.75.75 0 00-.722-.516l-.143.001c-2.996 0-5.717-1.17-7.734-3.08zm3.094 8.016a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z" clip-rule="evenodd" /></svg>',account_circle:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"/></svg>'},r=class{constructor(t){e(this,t),this.sdkError=i(this,"sdkError",7),this.endpoint=n.getDefault(),this.envelopeId="",this.activeTab=1,this.panelOpen=!1}componentWillLoad(){this.endpoint.loadSession()}async componentDidLoad(){var e,i,t;if(this.envelopeId)try{await a(this.endpoint,this.envelopeId)}catch(s){null===(e=this.sdkError)||void 0===e||e.emit(new l(s.message,null===(i=s.response)||void 0===i?void 0:i.status,null===(t=s.response)||void 0===t?void 0:t.data))}else console.error("[SIDEBAR] Missing required envelopeId")}setTab(e){this.panelOpen=e!==this.activeTab||!this.panelOpen,this.activeTab=e}canResendRecipient(e){return!["pending","declined","submitted","canceled"].includes(e.status)&&!["complete","declined","canceled"].includes(o.envelope.status)}canModifyRecipient(e){return!e.claimed&&!["declined","signed","submitted","canceled"].includes(e.status)&&!["complete","declined","canceled"].includes(o.envelope.status)}handleRecipientAction(e,i){console.log("recipient action",i,e)}prepareHistoryEntries(){const e=[],i=o.envelope.histories||[];e.push({icon:"pencil",message:"Envelope created.",date:new Date(o.envelope.created_at)}),"complete"===o.envelope.status&&e.push({icon:"pencil",message:"Envelope completed.",date:new Date(o.envelope.updated_at)});const t=i.some((e=>"owner:canceled"===e.event));return"canceled"!==o.envelope.status||t||e.push({icon:"pencil",message:"Envelope Cancelled.",date:new Date(o.envelope.canceled_at)}),i.forEach((i=>{const t=o.envelope.recipients.find((e=>e.role_name===i.role_name)),s=(null==t?void 0:t.full_name)||"";switch(i.event.toLowerCase()){case"recipient:signed":e.push({icon:"gesture",message:`Signed by ${s}.`,date:new Date(i.created_at)});break;case"recipient:declined":e.push({icon:"clear",message:`Declined by ${s}.`,date:new Date(i.created_at)});break;case"recipient:opened":switch(i.event_detail){case"email":case"mail":e.push({icon:"visibility",message:`Opened by ${s}, via email.`,date:new Date(i.created_at)});break;case"sms":e.push({icon:"visibility",message:`Opened by ${s}, via SMS.`,date:new Date(i.created_at)});break;case"in_person_link":e.push({icon:"visibility",message:`Opened by ${s}, via In-person link.`,date:new Date(i.created_at)});break;case"in_app":e.push({icon:"visibility",message:`Opened by ${s}, via dashboard.`,date:new Date(i.created_at)});break;default:e.push({icon:"visibility",message:`Opened by ${s}.`,date:new Date(i.created_at)})}break;case"recipient:submitted":switch(i.event_detail){case"approver":e.push({icon:"check_circle",message:`Approved by ${s}.`,date:new Date(i.created_at)});break;default:e.push({icon:"send",message:`Submitted by ${s}.`,date:new Date(i.created_at)})}break;case"recipient:prepared":e.push({icon:"send",message:`Prepared by ${s}.`,date:new Date(i.created_at)});break;case"recipient:claimed":"guest"===i.event_detail?e.push({icon:"account_circle",message:`${s} claimed the Verdoc as a guest.`,date:new Date(i.created_at)}):"profile"===i.event_detail&&e.push({icon:"verified_user",message:`${s} claimed the Verdoc as a verified user.`,date:new Date(i.created_at)});break;case"recipient:agreed":e.push({icon:"done",message:`${s} agreed to use electronic records and signatures.`,date:new Date(i.created_at)});break;case"recipient:invited":e.push("sms"===i.event_detail?{icon:"textsms",message:`${s} has been invited via SMS.`,date:new Date(i.created_at)}:{icon:"mail",message:`${s} has been invited via email.`,date:new Date(i.created_at)});break;case"invitation:resent":e.push({icon:"mail",message:`Invitation was resent to ${s} ${"reminder"===i.event_detail?" by reminder":""}.`,date:new Date(i.created_at)});break;case"envelope:cc":e.push({icon:"contact_mail",message:`A copy has been sent to ${s}.`,date:new Date(i.created_at)});break;case"recipient:delegated":e.push({icon:"people",message:i.event_detail,date:new Date(i.created_at)});break;case"recipient:updated_info":case"owner:updated_recipient_info":e.push({icon:"perm_identity",message:i.event_detail,date:new Date(i.created_at)});break;case"created":e.push({icon:"create",message:"Envelope was created.",date:new Date(i.created_at)});break;case"completed":e.push({icon:"done_all",message:"Envelope was completed.",date:new Date(i.created_at)});break;case"canceled":case"owner:canceled":e.push({icon:"cancel",message:"Envelope was canceled by the creator.",date:new Date(i.created_at)});break;case"owner:get_in_person_link":e.push({icon:"link",message:`Owner accessed the In-person link for ${t}.`,date:new Date(i.created_at)});break;default:console.log("unknown",i)}})),e.sort(((e,i)=>i.date.getTime()-e.date.getTime())),e}render(){var e,i,n;if(!o.envelope)return t(s,null);const a=this.endpoint.getSession().profile_id===o.envelope.profile_id,l=this.prepareHistoryEntries();return t(s,{class:this.panelOpen?"open":""},t("div",{class:"buttons"},t("button",{class:1===this.activeTab?"active":"",onClick:()=>this.setTab(1),innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z" /></svg>'}),t("button",{class:2===this.activeTab?"active":"",onClick:()=>this.setTab(2),innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z" /></svg>'}),t("button",{class:3===this.activeTab?"active":"",onClick:()=>this.setTab(3),innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z" /></svg>'})),1===this.activeTab&&t("div",{class:"content"},t("div",{class:"title"},"Details"),t("div",{class:"label"},"Envelope ID"),t("div",{class:"value"},o.envelope.id),t("div",{class:"label"},"Date Created"),t("div",{class:"value"},c(new Date(o.envelope.created_at),"PP pp")),t("div",{class:"label"},"Last Modified"),t("div",{class:"value"},c(new Date(o.envelope.updated_at),"PP pp")),t("div",{class:"label"},"Status"),t("div",{class:"value"},o.envelope.status),t("div",{class:"label"},"Verdoc Owner UUID"),t("div",{class:"value"},o.envelope.profile_id),t("div",{class:"label"},"Verdoc Owner Name"),t("div",{class:"value"},null===(e=o.envelope.profile)||void 0===e?void 0:e.first_name," ",null===(i=o.envelope.profile)||void 0===i?void 0:i.last_name),t("div",{class:"label"},"Verdoc Owner Email"),t("div",{class:"value"},null===(n=o.envelope.profile)||void 0===n?void 0:n.email)),2===this.activeTab&&t("div",{class:"content"},t("div",{class:"title"},"Recipients"),o.envelope.recipients.map(((e,i)=>t("div",{class:"recipient-detail"},t("div",{class:"recipient-header"},t("div",{class:"recipient-number"},i+1),t("div",{class:"recipient-type"},e.type),t("div",{class:{"recipient-status":!0,[e.status]:!0}},e.status),a&&t("verdocs-dropdown",{onOptionSelected:i=>this.handleRecipientAction(e,i.detail.id),options:[{id:"reminder",label:"Send Reminder",disabled:!this.canResendRecipient(e)},{id:"modify",label:"Modify Recipient",disabled:!this.canModifyRecipient(e)},{id:"inperson",label:"Get In-Person Link",disabled:!this.canModifyRecipient(e)||!["invited","opened"].includes(e.status)}]})),t("dic",{class:"recipient-content"},t("div",{class:"recipient-name"},e.full_name),t("div",{class:"recipient-name"},e.email),t("div",{class:"recipient-name"},e.phone)))))),3===this.activeTab&&t("div",{class:"content"},t("div",{class:"title"},"History"),l.map((e=>t("div",{class:"history-entry"},t("div",{class:"activity-icon",innerHTML:d[e.icon]||e.icon}),t("div",{class:"activity-details"},t("div",{class:"activity-text"},e.message),t("div",{class:"activity-date"},c(e.date,"PP pp"))))))))}};r.style='verdocs-envelope-sidebar{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex;-ms-flex:0 0 56px;flex:0 0 56px;width:56px;min-height:400px;height:100%;background:#41435e;-webkit-transition:0.5s cubic-bezier(0.35, 0, 0.25, 1);transition:0.5s cubic-bezier(0.35, 0, 0.25, 1)}verdocs-envelope-sidebar.open{-ms-flex:0 0 400px;flex:0 0 400px;width:400px}verdocs-envelope-sidebar .buttons{-ms-flex-direction:column;flex-direction:column;-ms-flex:0 0 56px;flex:0 0 56px;display:-ms-flexbox;display:flex}verdocs-envelope-sidebar .buttons button{height:50px;outline:none;border:none;border-left:2px solid transparent;background:none;width:100%}verdocs-envelope-sidebar .buttons button.active{border-left:2px solid #50bd80}verdocs-envelope-sidebar .buttons button svg{color:white;width:24px;height:24px}verdocs-envelope-sidebar .content{-ms-flex:1;flex:1;display:none;color:white;-ms-flex-direction:column;flex-direction:column;padding:12px 16px 16px}verdocs-envelope-sidebar.open .content{display:-ms-flexbox;display:flex}verdocs-envelope-sidebar .title{margin-bottom:12px;font-size:16px;line-height:24px;font-weight:400;-ms-flex:0;flex:0}verdocs-envelope-sidebar .label{font-size:12px;line-height:16px;color:rgba(255, 255, 255, 0.54);-ms-flex:0;flex:0}verdocs-envelope-sidebar .value{margin-bottom:14px;font-size:14px;font-weight:500;line-height:16px;color:#fff;-ms-flex:0;flex:0}verdocs-envelope-sidebar .recipient-detail{-ms-flex:0;flex:0;padding:8px;position:relative;-ms-flex-direction:column;flex-direction:column;border:solid 1px #979797;margin-bottom:16px}verdocs-envelope-sidebar .recipient-header{-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;place-content:center space-between;-ms-flex-align:center;align-items:center;margin-bottom:4px}verdocs-envelope-sidebar .recipient-number{width:24px;height:24px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:24px;font-size:14px;font-weight:500;margin-right:10px;border:solid 1px #979797}verdocs-envelope-sidebar .recipient-type{-ms-flex:1 1 88px;flex:1 1 88px;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:88px;min-width:88px;text-transform:capitalize}verdocs-envelope-sidebar .recipient-status{-ms-flex:1 1 100px;flex:1 1 100px;border-radius:5px;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100px;min-width:100px;background-color:#616161;text-transform:capitalize}verdocs-envelope-sidebar .recipient-status.invited{background-color:#ff8f00}verdocs-envelope-sidebar .recipient-status.opened{background-color:#616161}verdocs-envelope-sidebar .recipient-status.signed,verdocs-envelope-sidebar .recipient-status.submitted{background-color:#2e7d32}verdocs-envelope-sidebar .recipient-status.pending{background-color:#0277bd}verdocs-envelope-sidebar .recipient-status.canceled,verdocs-envelope-sidebar .recipient-status.declined{background-color:#c62828}verdocs-envelope-sidebar .recipient-content{-ms-flex-direction:column;flex-direction:column}verdocs-envelope-sidebar .history-entry{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;padding:8px 0 0;margin:8px 0 0;border-top:1px solid #dddddd}verdocs-envelope-sidebar .history-entry .activity-icon{margin-right:14px}verdocs-envelope-sidebar .history-entry .activity-icon svg{width:24px;height:24px;fill:#ffffff}verdocs-envelope-sidebar .history-entry .activity-text{font-size:14px;line-height:16px;margin-bottom:4px}verdocs-envelope-sidebar .history-entry .activity-date{font-size:12px;line-height:16px;color:rgba(255, 255, 255, 0.54)}verdocs-envelope-sidebar .content .history-entry:first-of-type{border-top:none}';export{r as verdocs_envelope_sidebar}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r["throw"](e))}catch(e){o(e)}}function c(e){e.done?n(e.value):i(e.value).then(s,a)}c((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return c([e,t])}}function c(s){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;i=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1];o=s;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(s);break}if(o[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-97329951.system.js","./p-a7433630.system.js","./p-a4dc6a79.system.js","./p-9cecb5df.system.js","./p-af2c2f79.system.js"],(function(e){"use strict";var t,n,r,i,o;return{setters:[function(e){t=e.r;n=e.c;r=e.h},function(){},function(e){i=e.V},function(e){o=e.a},function(){}],execute:function(){var s=undefined&&undefined.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function s(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r["throw"](e))}catch(e){o(e)}}function c(e){e.done?n(e.value):i(e.value).then(s,a)}c((r=r.apply(e,t||[])).next())}))};var a=undefined&&undefined.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return c([e,t])}}function c(a){if(r)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(n=0)),n)try{if(r=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var c=function(e){return s(void 0,void 0,void 0,(function(){return a(this,(function(t){return[2,e.api.get("/search/history").then((function(e){return e.data}))]}))}))};var l='verdocs-quick-functions{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-quick-functions .container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:240px;background-color:#1e2031;text-transform:uppercase;padding:10px 10px 20px 10px;font-family:sans-serif;color:#ffffff}verdocs-quick-functions .title{font-size:22px;font-weight:700;line-height:30px;margin:1em 0 40px 0}verdocs-quick-functions button{width:140px;height:40px;border:none;display:-ms-flexbox;display:flex;color:#ffffff;cursor:pointer;font-size:14px;font-weight:700;line-height:25px;-ms-flex-align:center;align-items:center;margin-bottom:20px;border-radius:5px;text-transform:uppercase;-ms-flex-pack:space-evenly;justify-content:space-evenly;background-color:#55bc81}verdocs-quick-functions button svg{fill:#ffffff}';var h='<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="M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"/></svg>';var f='<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><g><rect fill="none" height="24" width="24"/><g><path d="M19,5v14H5V5H19 M19,3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2V5C21,3.9,20.1,3,19,3L19,3z"/></g><path d="M14,17H7v-2h7V17z M17,13H7v-2h10V13z M17,9H7V7h10V9z"/></g></svg>';var u=e("verdocs_quick_functions",function(){function e(e){t(this,e);this.createTemplate=n(this,"createTemplate",7);this.createDocument=n(this,"createDocument",7);this.endpoint=i.getDefault()}e.prototype.handleCreateTemplate=function(){this.createTemplate.emit()};e.prototype.handleCreateDocument=function(){this.createDocument.emit()};e.prototype.render=function(){var e=this;return r("div",{class:"container"},r("p",{class:"title"},"Quick Create"),r("button",{onClick:function(){return e.handleCreateTemplate()},innerHTML:f},"Template"),r("button",{onClick:function(){return e.handleCreateDocument()},innerHTML:h},"Document"))};return e}());u.style=l;var p='verdocs-search-activity{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-search-activity .container{display:-ms-flexbox;display:flex;width:240px;color:#ffffff;-ms-flex-direction:column;flex-direction:column;text-transform:uppercase;padding:10px 10px 20px 10px;background-color:#1e2031}verdocs-search-activity .title{font-size:22px;font-weight:700;line-height:30px}verdocs-search-activity .items{display:-ms-flexbox;display:flex;margin-top:20px;-ms-flex-direction:column;flex-direction:column}verdocs-search-activity .item{border:none;display:-ms-flexbox;display:flex;text-align:left;margin-bottom:20px;-ms-flex-direction:row;flex-direction:row;background:transparent}verdocs-search-activity .item:hover{cursor:pointer}verdocs-search-activity .icon{-ms-flex:0 0 22px;flex:0 0 22px;margin-right:14px}verdocs-search-activity .icon svg{fill:#707ae5;width:22px;height:22px}verdocs-search-activity .details{display:-ms-flexbox;display:flex;overflow:hidden;-ms-flex-direction:column;flex-direction:column}verdocs-search-activity .item-title{font-size:16px;font-weight:400;color:#ffffff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}verdocs-search-activity .info{font-size:14px;font-weight:500;line-height:23px;color:#aeb4bf}verdocs-search-activity .empty{text-transform:none;line-height:22px;color:#cccccc}';var d='<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="M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"/></svg>';var x=e("verdocs_search_activity",function(){function e(e){t(this,e);this.entrySelected=n(this,"entrySelected",7);this.endpoint=i.getDefault();this.type="recent";this.options=undefined;this.emptyMessage="You do not have any starred searches.";this.authFailure=false;this.title="Recent Searches";this.recent=[];this.saved=[];this.starred=[]}e.prototype.componentWillLoad=function(){var e=this;this.endpoint.loadSession();var t=function(t){var n;console.warn("[Verdocs/search-activity] Error getting search data",t);if(((n=t===null||t===void 0?void 0:t.response)===null||n===void 0?void 0:n.status)===401){e.authFailure=true}};switch(this.type){case"recent":this.title="Recent Searches";this.emptyMessage="You do not have any recent searches.";c(this.endpoint).then((function(t){return e.recent=t.recent})).catch(t);break;case"saved":this.title="Saved Searches";this.emptyMessage="You do not have any saved searches.";c(this.endpoint).then((function(t){return e.saved=t.saved})).catch(t);break;case"starred":this.title="My Starred items";this.emptyMessage="You do not have any starred templates.";o(this.endpoint,{is_starred:true}).then((function(t){return e.starred=t})).catch(t);break}};e.prototype.handleSelectEntry=function(e){this.entrySelected.emit(e)};e.prototype.computePagesText=function(e){if(e<2){return"".concat(e," Page")}else{return"".concat(e," Pages")}};e.prototype.computeRecipientsText=function(e){if(typeof e==="object"){return e.join(", ")}else if(e>1){return"".concat(e," Recipients")}else{return"".concat(e," Recipient")}};e.prototype.render=function(){var e=this;var t=this.recent.length<1&&this.saved.length<1&&this.starred.length<1;return r("div",{class:"container"},r("p",{class:"title"},this.title),r("div",{class:"items"},this.recent.map((function(t){return r("button",{class:"item",onClick:function(){return e.handleSelectEntry(t)}},r("div",{class:"icon",innerHTML:d}),r("div",{class:"details"},r("div",{class:"item-title"},t.params.q),r("div",{class:"info"},"Test")))})),this.saved.map((function(t){return r("button",{class:"item",onClick:function(){return e.handleSelectEntry(t)}},r("div",{class:"icon",innerHTML:d}),r("div",{class:"details"},r("div",{class:"item-title"},t.params.q),r("div",{class:"info"})))})),t&&r("div",{class:"empty"},this.authFailure?"Authentication required":this.emptyMessage)))};return e}());x.style=p;var v='verdocs-search-box{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-search-box form{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:45px;-webkit-box-sizing:border-box;box-sizing:border-box;margin:5px 0 0;border-radius:5px;-ms-flex-align:center;align-items:center;background-color:#fff;padding:0 8px;border-width:1px;border-style:solid;border-color:#707ae5}verdocs-search-box form input{-webkit-box-sizing:border-box;box-sizing:border-box;height:43px;width:100%;font-size:18px;border:none}verdocs-search-box form input:focus{outline:none}verdocs-search-box form button.search{cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:4px;border:none;width:100px;height:28px;font-weight:700;font-size:10px;letter-spacing:1px;background-color:#55bc81;text-transform:uppercase;color:#fff}verdocs-search-box form .type{background-color:#707ae5;height:30px;display:-ms-inline-flexbox;display:inline-flex;padding:1px 0 2px 10px;font-size:13px;line-height:16px;border-radius:4px;-ms-flex-pack:center;justify-content:center;text-transform:uppercase;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;color:#fff;margin-right:10px}verdocs-search-box form .type button{border:none;color:#fff;margin:5px 0 0 8px;background:transparent}verdocs-search-box form svg{width:12px;height:12px;margin-right:6px}verdocs-search-box ::-webkit-input-placeholder{color:#aeb4bf}verdocs-search-box ::-moz-placeholder{color:#aeb4bf}verdocs-search-box :-ms-input-placeholder{color:#aeb4bf}verdocs-search-box ::-ms-input-placeholder{color:#aeb4bf}verdocs-search-box ::placeholder{color:#aeb4bf}';var y='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M23.4809 20.7176L17.9111 15.2536C19.0961 13.6368 19.727 11.6926 19.7128 9.70131C19.7201 7.53345 18.9846 5.42606 17.6244 3.71753C16.2642 2.009 14.3581 0.798456 12.2123 0.280282C10.0665 -0.237892 7.80552 -0.0336342 5.79227 0.86026C3.77902 1.75415 2.13038 3.28582 1.1111 5.20931C0.0918114 7.1328 -0.238985 9.33652 0.171813 11.4666C0.582612 13.5967 1.71117 15.5296 3.37628 16.9548C5.0414 18.3801 7.14646 19.2151 9.35344 19.3257C11.5604 19.4364 13.7413 18.8162 15.5458 17.5649L21.1372 23.05L21.1563 23.0663C21.4841 23.3487 21.9039 23.507 22.3401 23.5128C22.7823 23.5125 23.2063 23.3402 23.5191 23.0337V23.0337C23.6749 22.8812 23.7979 22.6995 23.8804 22.4993C23.963 22.2991 24.0036 22.0847 23.9997 21.8688C23.9959 21.6529 23.9477 21.44 23.858 21.2428C23.7683 21.0456 23.639 20.8682 23.4778 20.7212L23.4809 20.7176ZM14.5167 14.1975C13.4564 15.2349 12.0623 15.8797 10.5719 16.022C9.08145 16.1644 7.58681 15.7955 6.34249 14.9781C5.09816 14.1608 4.18109 12.9456 3.74751 11.5395C3.31393 10.1334 3.39064 8.6233 3.96455 7.26643C4.53846 5.90955 5.57409 4.7898 6.89507 4.09787C8.21606 3.40594 9.74071 3.18461 11.2093 3.4716C12.678 3.75858 13.9998 4.53612 14.9497 5.6718C15.8996 6.80748 16.4188 8.23105 16.4189 9.7001C16.4196 10.5357 16.2519 11.3632 15.9254 12.135C15.599 12.9069 15.1202 13.6078 14.5167 14.1975V14.1975Z" fill="white"/></svg>';var m='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.0739 11.7565L19.7127 6.23228C20.0875 5.85692 20.0875 5.25309 19.7127 4.87773L19.0213 4.20046C18.6382 3.82511 18.0219 3.82511 17.6387 4.20046L12 9.72472L6.36127 4.20046C5.97814 3.82511 5.36179 3.82511 4.97866 4.20046L4.28735 4.87773C3.90422 5.25309 3.90422 5.85692 4.28735 6.23228L9.92608 11.7565L4.28735 17.2808C3.90422 17.6561 3.90422 18.26 4.28735 18.6353L4.97866 19.3126C5.36179 19.688 5.97814 19.688 6.36127 19.3126L12 13.7883L17.6387 19.3126C18.0219 19.688 18.6382 19.688 19.0213 19.3126L19.7127 18.6353C20.0958 18.26 20.0958 17.6561 19.7127 17.2808L14.0739 11.7565Z" fill="white"/></svg>';var g=e("verdocs_search_box",function(){function e(e){t(this,e);this.searchClicked=n(this,"searchClicked",7);this.typeChanged=n(this,"typeChanged",7);this.queryChanged=n(this,"queryChanged",7);this.endpoint=i.getDefault();this.placeholder="search documents, templates, people...";this.type="all";this.query="";this.grabsFocus=false}e.prototype.focusField=function(){return s(this,void 0,void 0,(function(){return a(this,(function(e){this.inputEl.focus();return[2]}))}))};e.prototype.componentDidRender=function(){if(this.grabsFocus){this.inputEl.focus()}};e.prototype.handleSearch=function(e){this.searchClicked.emit({type:this.type,query:this.query});e.preventDefault();return false};e.prototype.handleChange=function(e){this.queryChanged.emit(e.target.value)};e.prototype.handleClearFilter=function(){this.typeChanged.emit("all")};e.prototype.handleKeyUp=function(e){if(e.key==="Enter"){this.searchClicked.emit({type:this.type,query:this.query})}};e.prototype.render=function(){var e=this;return r("form",{onSubmit:function(t){return e.handleSearch(t)}},this.type!==undefined&&this.type!=="all"&&r("span",{class:"type"},this.type,"s ",r("button",{class:"remove",innerHTML:m,onClick:function(){return e.handleClearFilter()}})),r("input",{type:"text",value:this.query,placeholder:this.placeholder,onInput:function(t){return e.handleChange(t)},onKeyUp:function(t){return e.handleKeyUp(t)},ref:function(t){return e.inputEl=t}}),r("button",{onClick:function(t){return e.handleSearch(t)},class:"search"},r("span",{innerHTML:y}),"Search"))};return e}());g.style=v}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-97329951.system.js","./p-a7433630.system.js","./p-a4dc6a79.system.js","./p-187b20b7.system.js","./p-af2c2f79.system.js"],(function(t){"use strict";var e,n,i,s,o;return{setters:[function(t){e=t.r;n=t.c;i=t.h},function(){},function(t){s=t.V},function(t){o=t.S},function(){}],execute:function(){var a=function(t,e){return t.api.post("/authentication/login",e).then((function(t){return t.data}))};var r='verdocs-auth{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-auth .login-form,verdocs-auth .signup-form{background:#ffffff;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;display:-ms-flexbox;display:flex;padding:20px;width:300px;max-width:100%}verdocs-auth .logo{margin:20px 0 30px;width:128px;max-width:100%}verdocs-auth h3{text-align:center;font-weight:400;font-size:16px;line-height:1.75;margin:0}verdocs-auth h4{text-align:center;font-weight:400;font-size:14px;line-height:1.43;margin:0}verdocs-auth .status-result{display:none}verdocs-auth .status-result.debug{white-space:pre-wrap;font-size:14px;background:#fff;padding:10px;display:block;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-auth form{width:100%}verdocs-auth verdocs-text-input{margin-bottom:10px}';var l=t("verdocs_auth",function(){function t(t){e(this,t);this.authenticated=n(this,"authenticated",7);this.sdkError=n(this,"sdkError",7);this.endpoint=s.getDefault();this.visible=true;this.logo="https://verdocs.com/assets/blue-logo.svg";this.isAuthenticated=false;this.displayMode="login";this.username="";this.password="";this.loggingIn=false;this.activeSession=null;this.loginError=null}t.prototype.componentWillLoad=function(){var t,e;this.endpoint.loadSession();if(this.endpoint.session){console.log("[AUTH] Authenticated");this.isAuthenticated=true;this.activeSession=this.endpoint.session;(t=this.authenticated)===null||t===void 0?void 0:t.emit({authenticated:true,session:this.endpoint.session})}else{console.log("[AUTH] Anonymous");(e=this.authenticated)===null||e===void 0?void 0:e.emit({authenticated:false,session:null})}};t.prototype.handleLogin=function(){var t=this;this.loggingIn=true;a(this.endpoint,{username:this.username,password:this.password}).then((function(e){var n;t.loggingIn=false;t.endpoint.setToken(e.accessToken);t.activeSession=t.endpoint.session;t.isAuthenticated=true;(n=t.authenticated)===null||n===void 0?void 0:n.emit({authenticated:true,session:t.endpoint.session})})).catch((function(e){var n,i,s,a,r;console.log("[AUTH] Authentication error",e.response,JSON.stringify(e));t.loggingIn=false;t.activeSession=null;(n=t.authenticated)===null||n===void 0?void 0:n.emit({authenticated:false,session:null});(i=t.sdkError)===null||i===void 0?void 0:i.emit(new o(e.message,(s=e.response)===null||s===void 0?void 0:s.status,(a=e.response)===null||a===void 0?void 0:a.data));if(((r=e===null||e===void 0?void 0:e.response)===null||r===void 0?void 0:r.status)===403){t.loginError="Please check your username and password and try again."}}))};t.prototype.handleLogout=function(){var t;this.endpoint.clearSession();this.isAuthenticated=false;(t=this.authenticated)===null||t===void 0?void 0:t.emit({authenticated:false,session:null})};t.prototype.handleClearError=function(){this.loginError=null};t.prototype.render=function(){var t=this;if(!this.visible){return i("div",{style:{display:"none"}},"Verdocs Auth Placeholder")}if(this.isAuthenticated){return i("div",{class:"status-result"},"Authenticated")}if(this.displayMode==="signup"){return i("div",{class:"signup-form"},i("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),i("h3",null,"Sign up for an account"),i("h4",null,"Already have an account?",i("verdocs-button",{label:"Log In",variant:"text",onClick:function(){return t.displayMode="login"},disabled:this.loggingIn})),i("form",{onSubmit:function(){return t.handleLogin()}},i("verdocs-text-input",{label:"Email",autocomplete:"username",value:this.username,onInput:function(e){return t.username=e.target.value},disabled:this.loggingIn}),i("verdocs-text-input",{label:"Password",type:"password",autocomplete:"current-password",value:this.password,onInput:function(e){return t.password=e.target.value},disabled:this.loggingIn}),i("verdocs-button",{label:"Signup",disabled:this.loggingIn,onClick:function(){return t.handleLogin()},style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}})))}return i("div",{class:"login-form"},i("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),i("h3",null,"Log in to your account"),i("h4",null,"Don't have an account?",i("verdocs-button",{label:"Sign Up",variant:"text",onClick:function(){return t.displayMode="signup"},disabled:this.loggingIn})),i("form",{onSubmit:function(){return t.handleLogin()}},i("verdocs-text-input",{label:"Email",autocomplete:"username",value:this.username,onInput:function(e){return t.username=e.target.value},disabled:this.loggingIn}),i("verdocs-text-input",{label:"Password",type:"password",autocomplete:"current-password",value:this.password,onInput:function(e){return t.password=e.target.value},disabled:this.loggingIn}),i("verdocs-button",{label:"Forgot Your Password?",variant:"text",onClick:function(){return t.displayMode="signup"},disabled:this.loggingIn,style:{display:"flex",justifyContent:"center",margin:"10px auto 20px"}}),i("verdocs-button",{label:"Login",disabled:this.loggingIn,onClick:function(){return t.handleLogin()},style:{display:"flex",justifyContent:"center",margin:"10px auto 0"}})),this.loginError?i("verdocs-ok-dialog",{heading:"Login Error",message:this.loginError,onNext:function(){return t.handleClearError()}}):i("div",null))};return t}());l.style=r}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as o,h as i,H as s,F as r,a as t}from"./p-ff1278ed.js";import"./p-8efc9749.js";import{V as n}from"./p-2e4dfdc6.js";import{g as l,s as d}from"./p-c4deb4b7.js";import{S as a}from"./p-7a1b2643.js";import{s as c}from"./p-644cc3c3.js";import"./p-21603661.js";import"./p-880b619d.js";import"./p-5ea05a1d.js";import"./p-c2cc4492.js";import"./p-aa124212.js";const p=[{id:"print",label:"Print"},{id:"download",label:"Download"}],x=class{constructor(i){e(this,i),this.sdkError=o(this,"sdkError",7),this.endpoint=n.getDefault(),this.envelopeId=""}componentWillLoad(){this.endpoint.loadSession()}async componentDidLoad(){var e,o,i;if(this.envelopeId)try{await l(this.endpoint,this.envelopeId)}catch(s){null===(e=this.sdkError)||void 0===e||e.emit(new a(s.message,null===(o=s.response)||void 0===o?void 0:o.status,null===(i=s.response)||void 0===i?void 0:i.data))}else console.error("[VIEW] Missing required envelopeId")}handlePageRendered(e){console.log("[VIEW] Page rendered",e.detail)}async handleOptionSelected(e){switch(e.detail.id){case"print":window.print();break;case"download":c(this.endpoint,d.envelope,d.envelope.envelope_document_id).catch((e=>{console.log("Error downloading PDF",e)}))}}render(){var e;return console.log("[VIEW] Rendering",d.error,d.loading,d.envelope),d.loading||!d.envelope?i(s,null,i("verdocs-loader",null)):d.error?i(s,null,i("div",null,d.error)):i(s,null,i("div",{class:"header"},i(r,null,i("img",{src:"https://verdocs.com/assets/white-logo.svg",alt:"Verdocs Logo",class:"logo"}),i("div",{class:"title"},d.envelope.name),i("div",{style:{flex:"1"}}),i("div",{style:{marginLeft:"10px"}}),i("verdocs-dropdown",{options:p,onOptionSelected:e=>this.handleOptionSelected(e)}))),i("div",{class:"document"},((null===(e=d.envelope)||void 0===e?void 0:e.documents)||[]).filter((e=>"certificate"!==e.type)).map((e=>{const o=[...(null==e?void 0:e.pages)||[]];return o.sort(((e,o)=>e.sequence-o.sequence)),i(r,null,o.map((e=>i("verdocs-document-page",{pageImageUri:e.display_uri,virtualWidth:612,virtualHeight:792,pageNumber:e.sequence,onPageRendered:e=>this.handlePageRendered(e),layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]}))))}))))}get component(){return t(this)}};x.style='verdocs-view{display:-ms-flexbox;display:flex;overflow:hidden;position:relative;min-height:600px;-ms-flex-direction:column;flex-direction:column;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-view div,verdocs-view canvas{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-view .header{color:#fff;display:-ms-flexbox;display:flex;z-index:1000;-ms-flex:0 0 56px;flex:0 0 56px;padding:0 15px;font-size:12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-webkit-transition:all 0.25s;transition:all 0.25s;background-color:#33354c;-webkit-box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12);box-shadow:0 4px 4px 0 rgba(0, 0, 0, 0.24), 0 0 4px 0 rgba(0, 0, 0, 0.12)}verdocs-view .header .logo{width:80px;display:none;margin:-6px 0 0 10px}verdocs-view .header .title{padding-left:16px;font-size:18px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}verdocs-view .document{-ms-flex:1;flex:1;height:100%;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;position:relative;overflow-y:scroll;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}verdocs-view .document .inner{width:100%;max-width:1028px}';export{x as verdocs_view}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-97329951.system.js"],(function(t){"use strict";var e,i,o;return{setters:[function(t){e=t.r;i=t.h;o=t.H}],execute:function(){var a='verdocs-text-input{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 0 10px 0;display:block}verdocs-text-input .input-element{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:16px;height:28px;padding:4px 12px;outline:none}verdocs-text-input .input-element::-webkit-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-moz-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:focus{outline:1px solid #7d88ff}verdocs-text-input .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0}verdocs-text-input [data-lastpass-icon-root]{display:none !important}';var l=t("verdocs_text_input",function(){function t(t){e(this,t);this.value="";this.label="";this.placeholder="";this.autocomplete="";this.type="text";this.disabled=false}t.prototype.render=function(){return i(o,{class:"input-field"},i("label",null,this.label?i("div",{class:"input-label"},this.label+":"):i("div",null),i("input",{type:this.type,value:this.value,class:"input-element","data-lpignore":"true",disabled:this.disabled,placeholder:this.placeholder,autoComplete:this.autocomplete})))};return t}());l.style=a}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,n,s){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function i(e){try{l(s.next(e))}catch(e){r(e)}}function a(e){try{l(s["throw"](e))}catch(e){r(e)}}function l(e){e.done?n(e.value):o(e.value).then(i,a)}l((s=s.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},s,o,r,i;return i={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function a(e){return function(t){return l([e,t])}}function l(i){if(s)throw new TypeError("Generator is already executing.");while(n)try{if(s=1,o&&(r=i[0]&2?o["return"]:i[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;if(o=0,r)i=[i[0]&2,r.value];switch(i[0]){case 0:case 1:r=i;break;case 4:n.label++;return{value:i[1],done:false};case 5:n.label++;o=i[1];i=[0];continue;case 7:i=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(i[0]===6||i[0]===2)){n=0;continue}if(i[0]===3&&(!r||i[1]>r[0]&&i[1]<r[3])){n.label=i[1];break}if(i[0]===6&&n.label<r[1]){n.label=r[1];r=i;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(i);break}if(r[2])n.ops.pop();n.trys.pop();continue}i=t.call(e,n)}catch(e){i=[6,e];o=0}finally{s=r=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};System.register(["./p-97329951.system.js","./p-a7433630.system.js","./p-a4dc6a79.system.js","./p-c8e8732b.system.js","./p-187b20b7.system.js","./p-af2c2f79.system.js","./p-9cecb5df.system.js","./p-a74a9c6b.system.js","./p-0f6da8c7.system.js","./p-d50523fd.system.js"],(function(e){"use strict";var t,n,s,o,r,i,a;return{setters:[function(e){t=e.r;n=e.c;s=e.h;o=e.H},function(){},function(e){r=e.V},function(e){i=e.l},function(e){a=e.S},function(){},function(){},function(){},function(){},function(){}],execute:function(){var l='verdocs-build{display:-ms-flexbox;display:flex;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}';var c=e("verdocs_build",function(){function e(e){t(this,e);this.sdkError=n(this,"sdkError",7);this.fields=[];this.endpoint=r.getDefault();this.templateId=null;this.step="create";this.pdfUrl=null;this.template=null}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,s;return __generator(this,(function(o){switch(o.label){case 0:this.endpoint.loadSession();if(!this.endpoint.session){console.log("[BUILD] Unable to start builder session, must be authenticated");return[2]}if(!this.templateId){console.log("[BUILD] No template ID specified, showing upload option");this.step="create";return[2]}o.label=1;case 1:o.trys.push([1,3,,4]);console.log("[BUILD] Loading template ".concat(this.templateId));return[4,i(this.endpoint,this.templateId)];case 2:o.sent();this.step="fields";return[3,4];case 3:s=o.sent();console.log("[BUILD] Error loading template",s);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new a(s.message,(t=s.response)===null||t===void 0?void 0:t.status,(n=s.response)===null||n===void 0?void 0:n.data));return[3,4];case 4:return[2]}}))}))};e.prototype.handleCancel=function(e){console.log("Cancel",e.detail);this.step=""};e.prototype.handleTemplateCreated=function(e){console.log("Created",e.detail);this.step="properties"};e.prototype.handlePropertiesUpdated=function(e){console.log("updated",e.detail);this.step="recipients"};e.prototype.handleRecipientsUpdated=function(e){console.log("updated",e.detail);this.step="fields"};e.prototype.render=function(){var e=this;if(!this.endpoint.session){return s(o,null,s("verdocs-component-error",{message:"You must be authenticated to use this module."}))}return s(o,null,this.step==="create"&&s("verdocs-template-create",{onCancel:function(t){return e.handleCancel(t)},onNext:function(t){return e.handleTemplateCreated(t)}}),this.step==="properties"&&s("verdocs-template-properties",{onCancel:function(t){return e.handleCancel(t)},onNext:function(t){return e.handlePropertiesUpdated(t)}}),this.step==="recipients"&&s("verdocs-template-recipients",{onCancel:function(t){return e.handleCancel(t)},onNext:function(t){return e.handleRecipientsUpdated(t)}}),this.step==="fields"&&s("verdocs-template-fields",{onCancel:function(t){return e.handleCancel(t)},onNext:function(t){return e.handleCancel(t)}}))};return e}());c.style=l}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,i,n){function s(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,a){function o(e){try{r(n.next(e))}catch(e){a(e)}}function c(e){try{r(n["throw"](e))}catch(e){a(e)}}function r(e){e.done?i(e.value):s(e.value).then(o,c)}r((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,s,a,o;return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(e){return function(t){return r([e,t])}}function r(o){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,s&&(a=o[0]&2?s["return"]:o[0]?s["throw"]||((a=s["return"])&&a.call(s),0):s.next)&&!(a=a.call(s,o[1])).done)return a;if(s=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;s=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(o[0]===6&&i.label<a[1]){i.label=a[1];a=o;break}if(a&&i.label<a[2]){i.label=a[2];i.ops.push(o);break}if(a[2])i.ops.pop();i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e];s=0}finally{n=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-97329951.system.js","./p-a7433630.system.js","./p-a4dc6a79.system.js","./p-2d687108.system.js","./p-187b20b7.system.js","./p-51a3ea62.system.js","./p-af2c2f79.system.js","./p-e0cfad01.system.js","./p-0f6da8c7.system.js","./p-9cecb5df.system.js"],(function(e){"use strict";var t,i,n,s,a,o,c,r,l;return{setters:[function(e){t=e.r;i=e.c;n=e.h;s=e.H},function(){},function(e){a=e.V},function(e){o=e.g;c=e.s},function(e){r=e.S},function(e){l=e.f},function(){},function(){},function(){},function(){}],execute:function(){var d='verdocs-envelope-sidebar{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex;-ms-flex:0 0 56px;flex:0 0 56px;width:56px;min-height:400px;height:100%;background:#41435e;-webkit-transition:0.5s cubic-bezier(0.35, 0, 0.25, 1);transition:0.5s cubic-bezier(0.35, 0, 0.25, 1)}verdocs-envelope-sidebar.open{-ms-flex:0 0 400px;flex:0 0 400px;width:400px}verdocs-envelope-sidebar .buttons{-ms-flex-direction:column;flex-direction:column;-ms-flex:0 0 56px;flex:0 0 56px;display:-ms-flexbox;display:flex}verdocs-envelope-sidebar .buttons button{height:50px;outline:none;border:none;border-left:2px solid transparent;background:none;width:100%}verdocs-envelope-sidebar .buttons button.active{border-left:2px solid #50bd80}verdocs-envelope-sidebar .buttons button svg{color:white;width:24px;height:24px}verdocs-envelope-sidebar .content{-ms-flex:1;flex:1;display:none;color:white;-ms-flex-direction:column;flex-direction:column;padding:12px 16px 16px}verdocs-envelope-sidebar.open .content{display:-ms-flexbox;display:flex}verdocs-envelope-sidebar .title{margin-bottom:12px;font-size:16px;line-height:24px;font-weight:400;-ms-flex:0;flex:0}verdocs-envelope-sidebar .label{font-size:12px;line-height:16px;color:rgba(255, 255, 255, 0.54);-ms-flex:0;flex:0}verdocs-envelope-sidebar .value{margin-bottom:14px;font-size:14px;font-weight:500;line-height:16px;color:#fff;-ms-flex:0;flex:0}verdocs-envelope-sidebar .recipient-detail{-ms-flex:0;flex:0;padding:8px;position:relative;-ms-flex-direction:column;flex-direction:column;border:solid 1px #979797;margin-bottom:16px}verdocs-envelope-sidebar .recipient-header{-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;place-content:center space-between;-ms-flex-align:center;align-items:center;margin-bottom:4px}verdocs-envelope-sidebar .recipient-number{width:24px;height:24px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;border-radius:24px;font-size:14px;font-weight:500;margin-right:10px;border:solid 1px #979797}verdocs-envelope-sidebar .recipient-type{-ms-flex:1 1 88px;flex:1 1 88px;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:88px;min-width:88px;text-transform:capitalize}verdocs-envelope-sidebar .recipient-status{-ms-flex:1 1 100px;flex:1 1 100px;border-radius:5px;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100px;min-width:100px;background-color:#616161;text-transform:capitalize}verdocs-envelope-sidebar .recipient-status.invited{background-color:#ff8f00}verdocs-envelope-sidebar .recipient-status.opened{background-color:#616161}verdocs-envelope-sidebar .recipient-status.signed,verdocs-envelope-sidebar .recipient-status.submitted{background-color:#2e7d32}verdocs-envelope-sidebar .recipient-status.pending{background-color:#0277bd}verdocs-envelope-sidebar .recipient-status.canceled,verdocs-envelope-sidebar .recipient-status.declined{background-color:#c62828}verdocs-envelope-sidebar .recipient-content{-ms-flex-direction:column;flex-direction:column}verdocs-envelope-sidebar .history-entry{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;padding:8px 0 0;margin:8px 0 0;border-top:1px solid #dddddd}verdocs-envelope-sidebar .history-entry .activity-icon{margin-right:14px}verdocs-envelope-sidebar .history-entry .activity-icon svg{width:24px;height:24px;fill:#ffffff}verdocs-envelope-sidebar .history-entry .activity-text{font-size:14px;line-height:16px;margin-bottom:4px}verdocs-envelope-sidebar .history-entry .activity-date{font-size:12px;line-height:16px;color:rgba(255, 255, 255, 0.54)}verdocs-envelope-sidebar .content .history-entry:first-of-type{border-top:none}';var p='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z" /></svg>';var v='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z" /></svg>';var h='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="#ffffff"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12h3.75M9 15h3.75M9 18h3.75m3 .75H18a2.25 2.25 0 002.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 00-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75 2.25 2.25 0 00-.1-.664m-5.8 0A2.251 2.251 0 0113.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25zM6.75 12h.008v.008H6.75V12zm0 3h.008v.008H6.75V15zm0 3h.008v.008H6.75V18z" /></svg>';var u={visibility:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M12 15a3 3 0 100-6 3 3 0 000 6z" /><path fill-rule="evenodd" d="M1.323 11.447C2.811 6.976 7.028 3.75 12.001 3.75c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113-1.487 4.471-5.705 7.697-10.677 7.697-4.97 0-9.186-3.223-10.675-7.69a1.762 1.762 0 010-1.113zM17.25 12a5.25 5.25 0 11-10.5 0 5.25 5.25 0 0110.5 0z" clip-rule="evenodd" /></svg>',pencil:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path d="M21.731 2.269a2.625 2.625 0 00-3.712 0l-1.157 1.157 3.712 3.712 1.157-1.157a2.625 2.625 0 000-3.712zM19.513 8.199l-3.712-3.712-12.15 12.15a5.25 5.25 0 00-1.32 2.214l-.8 2.685a.75.75 0 00.933.933l2.685-.8a5.25 5.25 0 002.214-1.32L19.513 8.2z" /></svg>',mail:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>',done:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M19.916 4.626a.75.75 0 01.208 1.04l-9 13.5a.75.75 0 01-1.154.114l-6-6a.75.75 0 011.06-1.06l5.353 5.353 8.493-12.739a.75.75 0 011.04-.208z" clip-rule="evenodd" /></svg>',send:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/></svg>',gesture:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1H21v-2.5h-2.47c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3 5.12 3 3.97 4 3.72 4.25c-.36.36-.66.66-.88.93l1.75 1.71zm9.29 11.66c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48z"/></svg>',clear:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>',check_circle:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>',link:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/></svg>',cancel:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/></svg>',done_all:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.41z"/></svg>',create:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>',perm_identity:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/></svg>',people:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z"/></svg>',contact_email:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M21 8V7l-3 2-3-2v1l3 2 3-2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1zm8-6h-8V6h8v6z"/></svg>',textsms:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/></svg>',verified_user:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#ffffff"><path fill-rule="evenodd" d="M12.516 2.17a.75.75 0 00-1.032 0 11.209 11.209 0 01-7.877 3.08.75.75 0 00-.722.515A12.74 12.74 0 002.25 9.75c0 5.942 4.064 10.933 9.563 12.348a.749.749 0 00.374 0c5.499-1.415 9.563-6.406 9.563-12.348 0-1.39-.223-2.73-.635-3.985a.75.75 0 00-.722-.516l-.143.001c-2.996 0-5.717-1.17-7.734-3.08zm3.094 8.016a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z" clip-rule="evenodd" /></svg>',account_circle:'<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"/></svg>'};var f=e("verdocs_envelope_sidebar",function(){function e(e){t(this,e);this.sdkError=i(this,"sdkError",7);this.endpoint=a.getDefault();this.envelopeId="";this.activeTab=1;this.panelOpen=false}e.prototype.componentWillLoad=function(){this.endpoint.loadSession()};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,n;return __generator(this,(function(s){switch(s.label){case 0:if(!this.envelopeId){console.error("[SIDEBAR] Missing required envelopeId");return[2]}s.label=1;case 1:s.trys.push([1,3,,4]);return[4,o(this.endpoint,this.envelopeId)];case 2:s.sent();return[3,4];case 3:n=s.sent();(e=this.sdkError)===null||e===void 0?void 0:e.emit(new r(n.message,(t=n.response)===null||t===void 0?void 0:t.status,(i=n.response)===null||i===void 0?void 0:i.data));return[3,4];case 4:return[2]}}))}))};e.prototype.setTab=function(e){this.panelOpen=e!==this.activeTab||!this.panelOpen;this.activeTab=e};e.prototype.canResendRecipient=function(e){return!["pending","declined","submitted","canceled"].includes(e.status)&&!["complete","declined","canceled"].includes(c.envelope.status)};e.prototype.canModifyRecipient=function(e){return!e.claimed&&!["declined","signed","submitted","canceled"].includes(e.status)&&!["complete","declined","canceled"].includes(c.envelope.status)};e.prototype.handleRecipientAction=function(e,t){console.log("recipient action",t,e)};e.prototype.prepareHistoryEntries=function(){var e=[];var t=c.envelope.histories||[];e.push({icon:"pencil",message:"Envelope created.",date:new Date(c.envelope.created_at)});if(c.envelope.status==="complete"){e.push({icon:"pencil",message:"Envelope completed.",date:new Date(c.envelope.updated_at)})}var i=t.some((function(e){return e.event==="owner:canceled"}));if(c.envelope.status==="canceled"&&!i){e.push({icon:"pencil",message:"Envelope Cancelled.",date:new Date(c.envelope.canceled_at)})}t.forEach((function(t){var i=c.envelope.recipients.find((function(e){return e.role_name===t.role_name}));var n=(i===null||i===void 0?void 0:i.full_name)||"";switch(t.event.toLowerCase()){case"recipient:signed":e.push({icon:"gesture",message:"Signed by ".concat(n,"."),date:new Date(t.created_at)});break;case"recipient:declined":e.push({icon:"clear",message:"Declined by ".concat(n,"."),date:new Date(t.created_at)});break;case"recipient:opened":switch(t.event_detail){case"email":case"mail":e.push({icon:"visibility",message:"Opened by ".concat(n,", via email."),date:new Date(t.created_at)});break;case"sms":e.push({icon:"visibility",message:"Opened by ".concat(n,", via SMS."),date:new Date(t.created_at)});break;case"in_person_link":e.push({icon:"visibility",message:"Opened by ".concat(n,", via In-person link."),date:new Date(t.created_at)});break;case"in_app":e.push({icon:"visibility",message:"Opened by ".concat(n,", via dashboard."),date:new Date(t.created_at)});break;default:e.push({icon:"visibility",message:"Opened by ".concat(n,"."),date:new Date(t.created_at)})}break;case"recipient:submitted":switch(t.event_detail){case"approver":e.push({icon:"check_circle",message:"Approved by ".concat(n,"."),date:new Date(t.created_at)});break;default:e.push({icon:"send",message:"Submitted by ".concat(n,"."),date:new Date(t.created_at)});break}break;case"recipient:prepared":e.push({icon:"send",message:"Prepared by ".concat(n,"."),date:new Date(t.created_at)});break;case"recipient:claimed":if(t.event_detail==="guest"){e.push({icon:"account_circle",message:"".concat(n," claimed the Verdoc as a guest."),date:new Date(t.created_at)})}else if(t.event_detail==="profile"){e.push({icon:"verified_user",message:"".concat(n," claimed the Verdoc as a verified user."),date:new Date(t.created_at)})}break;case"recipient:agreed":e.push({icon:"done",message:"".concat(n," agreed to use electronic records and signatures."),date:new Date(t.created_at)});break;case"recipient:invited":if(t.event_detail==="sms"){e.push({icon:"textsms",message:"".concat(n," has been invited via SMS."),date:new Date(t.created_at)})}else{e.push({icon:"mail",message:"".concat(n," has been invited via email."),date:new Date(t.created_at)})}break;case"invitation:resent":e.push({icon:"mail",message:"Invitation was resent to ".concat(n," ").concat(t.event_detail==="reminder"?" by reminder":"","."),date:new Date(t.created_at)});break;case"envelope:cc":e.push({icon:"contact_mail",message:"A copy has been sent to ".concat(n,"."),date:new Date(t.created_at)});break;case"recipient:delegated":e.push({icon:"people",message:t.event_detail,date:new Date(t.created_at)});break;case"recipient:updated_info":e.push({icon:"perm_identity",message:t.event_detail,date:new Date(t.created_at)});break;case"owner:updated_recipient_info":e.push({icon:"perm_identity",message:t.event_detail,date:new Date(t.created_at)});break;case"created":e.push({icon:"create",message:"Envelope was created.",date:new Date(t.created_at)});break;case"completed":e.push({icon:"done_all",message:"Envelope was completed.",date:new Date(t.created_at)});break;case"canceled":case"owner:canceled":e.push({icon:"cancel",message:"Envelope was canceled by the creator.",date:new Date(t.created_at)});break;case"owner:get_in_person_link":e.push({icon:"link",message:"Owner accessed the In-person link for ".concat(i,"."),date:new Date(t.created_at)});break;default:console.log("unknown",t);break}}));e.sort((function(e,t){return t.date.getTime()-e.date.getTime()}));return e};e.prototype.render=function(){var e=this;var t,i,a;if(!c.envelope){return n(s,null)}var o=this.endpoint.getSession();var r=o.profile_id===c.envelope.profile_id;var d=this.prepareHistoryEntries();return n(s,{class:this.panelOpen?"open":""},n("div",{class:"buttons"},n("button",{class:this.activeTab===1?"active":"",onClick:function(){return e.setTab(1)},innerHTML:p}),n("button",{class:this.activeTab===2?"active":"",onClick:function(){return e.setTab(2)},innerHTML:v}),n("button",{class:this.activeTab===3?"active":"",onClick:function(){return e.setTab(3)},innerHTML:h})),this.activeTab===1&&n("div",{class:"content"},n("div",{class:"title"},"Details"),n("div",{class:"label"},"Envelope ID"),n("div",{class:"value"},c.envelope.id),n("div",{class:"label"},"Date Created"),n("div",{class:"value"},l(new Date(c.envelope.created_at),"PP pp")),n("div",{class:"label"},"Last Modified"),n("div",{class:"value"},l(new Date(c.envelope.updated_at),"PP pp")),n("div",{class:"label"},"Status"),n("div",{class:"value"},c.envelope.status),n("div",{class:"label"},"Verdoc Owner UUID"),n("div",{class:"value"},c.envelope.profile_id),n("div",{class:"label"},"Verdoc Owner Name"),n("div",{class:"value"},(t=c.envelope.profile)===null||t===void 0?void 0:t.first_name," ",(i=c.envelope.profile)===null||i===void 0?void 0:i.last_name),n("div",{class:"label"},"Verdoc Owner Email"),n("div",{class:"value"},(a=c.envelope.profile)===null||a===void 0?void 0:a.email)),this.activeTab===2&&n("div",{class:"content"},n("div",{class:"title"},"Recipients"),c.envelope.recipients.map((function(t,i){var s;return n("div",{class:"recipient-detail"},n("div",{class:"recipient-header"},n("div",{class:"recipient-number"},i+1),n("div",{class:"recipient-type"},t.type),n("div",{class:(s={"recipient-status":true},s[t.status]=true,s)},t.status),r&&n("verdocs-dropdown",{onOptionSelected:function(i){return e.handleRecipientAction(t,i.detail.id)},options:[{id:"reminder",label:"Send Reminder",disabled:!e.canResendRecipient(t)},{id:"modify",label:"Modify Recipient",disabled:!e.canModifyRecipient(t)},{id:"inperson",label:"Get In-Person Link",disabled:!e.canModifyRecipient(t)||!["invited","opened"].includes(t.status)}]})),n("dic",{class:"recipient-content"},n("div",{class:"recipient-name"},t.full_name),n("div",{class:"recipient-name"},t.email),n("div",{class:"recipient-name"},t.phone)))}))),this.activeTab===3&&n("div",{class:"content"},n("div",{class:"title"},"History"),d.map((function(e){return n("div",{class:"history-entry"},n("div",{class:"activity-icon",innerHTML:u[e.icon]||e.icon}),n("div",{class:"activity-details"},n("div",{class:"activity-text"},e.message),n("div",{class:"activity-date"},l(e.date,"PP pp"))))}))))};return e}());f.style=d}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as o,H as t,c as i}from"./p-ff1278ed.js";import{c as s}from"./p-ec26fc38.js";import{T as n}from"./p-8efc9749.js";const a=class{constructor(o){e(this,o),this.text="",this.containerId=`verdocs-help-icon-${Math.random().toString(36).substring(2,11)}`}componentDidLoad(){this.popperInstance=s(this.icon,this.tooltip,{})}disconnectedCallback(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}show(){var e,o;null===(e=this.tooltip)||void 0===e||e.setAttribute("data-show",""),null===(o=this.popperInstance)||void 0===o||o.update().catch((()=>{}))}hide(){var e;null===(e=this.tooltip)||void 0===e||e.removeAttribute("data-show")}render(){return o(t,{class:{}},o("div",{"aria-describedby":this.containerId,class:"icon",innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M11.925 18q.55 0 .938-.387.387-.388.387-.938 0-.55-.387-.925-.388-.375-.938-.375-.55 0-.925.375t-.375.925q0 .55.375.938.375.387.925.387Zm-.95-3.85h1.95q0-.8.2-1.287.2-.488 1.025-1.288.65-.625 1.025-1.213.375-.587.375-1.437 0-1.425-1.025-2.175Q13.5 6 12.1 6q-1.425 0-2.35.775t-1.275 1.85l1.775.7q.125-.45.55-.975.425-.525 1.275-.525.725 0 1.1.412.375.413.375.888 0 .475-.287.9-.288.425-.713.775-1.075.95-1.325 1.475-.25.525-.25 1.875ZM12 22.2q-2.125 0-3.988-.8-1.862-.8-3.237-2.175Q3.4 17.85 2.6 15.988 1.8 14.125 1.8 12t.8-3.988q.8-1.862 2.175-3.237Q6.15 3.4 8.012 2.6 9.875 1.8 12 1.8t3.988.8q1.862.8 3.237 2.175Q20.6 6.15 21.4 8.012q.8 1.863.8 3.988t-.8 3.988q-.8 1.862-2.175 3.237Q17.85 20.6 15.988 21.4q-1.863.8-3.988.8Zm0-2.275q3.325 0 5.625-2.3t2.3-5.625q0-3.325-2.3-5.625T12 4.075q-3.325 0-5.625 2.3T4.075 12q0 3.325 2.3 5.625t5.625 2.3ZM12 12Z"/></svg>',onMouseEnter:()=>this.show(),onFocus:()=>this.show(),onMouseLeave:()=>this.hide(),onBlur:()=>this.hide(),ref:e=>this.icon=e}),o("div",{id:this.containerId,role:"tooltip",class:"tooltip","data-popper-placement":"bottom",ref:e=>this.tooltip=e},this.text,o("div",{"data-popper-arrow":"true",class:"arrow"})))}};a.style='verdocs-help-icon{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:inline-block}verdocs-help-icon .icon{display:inline-block}verdocs-help-icon .icon svg{fill:#5c6575}verdocs-help-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;position:relative;padding:5px 10px;font-size:13px;border-radius:4px;z-index:10000}verdocs-help-icon .tooltip .arrow,verdocs-help-icon .tooltip .arrow::before{position:absolute;width:8px;height:8px;background:inherit}verdocs-help-icon .tooltip .arrow{visibility:hidden;top:-4px}verdocs-help-icon .tooltip .arrow::before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}verdocs-help-icon .tooltip[data-show]{display:block}verdocs-help-icon .tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}verdocs-help-icon .tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}verdocs-help-icon .tooltip[data-popper-placement^=left]>.arrow{right:-4px}verdocs-help-icon .tooltip[data-popper-placement^=right]>.arrow{left:-4px}';const l=class{constructor(o){e(this,o),this.cancel=i(this,"cancel",7),this.next=i(this,"next",7),this.value=n.EVERYONE,this.newValue=n.EVERYONE}componentWillLoad(){this.newValue=this.value}handleCancel(){this.cancel.emit()}handleDismiss(e){"background-overlay"===e.target.className&&(e.preventDefault(),this.handleCancel())}handleDone(){this.next.emit(this.newValue)}handleSelectSetting(e){this.newValue=e}render(){return o(t,null,o("div",{class:"background-overlay",onClick:e=>this.handleDismiss(e)},o("div",{class:"dialog"},o("div",{class:"options"},o("div",{class:"option"},o("verdocs-radio-button",{name:"template-sender",value:n.EVERYONE,checked:this.value===n.EVERYONE,onInput:()=>this.handleSelectSetting(n.EVERYONE)}),o("div",{class:"description"},o("div",{class:"name"},"Anyone on the Web"),o("verdocs-help-icon",{text:"Anyone can use this template. (Make its visibility is set to to 'Public' or 'Shared'.)"}))),o("div",{class:"option"},o("verdocs-radio-button",{name:"template-sender",value:n.EVERYONE_AS_CREATOR,checked:this.value===n.EVERYONE_AS_CREATOR,onInput:()=>this.handleSelectSetting(n.EVERYONE_AS_CREATOR)}),o("div",{class:"description"},o("div",{class:"name"},"Anyone on the Web as me"),o("verdocs-help-icon",{text:"Anyone can use this template on my behalf. (Make sure its visibility is set to 'Public' or 'Shared'.)"}))),o("div",{class:"option"},o("verdocs-radio-button",{name:"template-sender",value:n.ORGANIZATION_MEMBER,checked:this.value===n.ORGANIZATION_MEMBER,onInput:()=>this.handleSelectSetting(n.ORGANIZATION_MEMBER)}),o("div",{class:"description"},o("div",{class:"name"},"Anyone in my organization"),o("verdocs-help-icon",{text:"Anyone in my organization can use this template. (Make sure its visibility is set to 'Shared')"}))),o("div",{class:"option"},o("verdocs-radio-button",{name:"template-sender",value:n.ORGANIZATION_MEMBER_AS_CREATOR,checked:this.value===n.ORGANIZATION_MEMBER_AS_CREATOR,onInput:()=>this.handleSelectSetting(n.ORGANIZATION_MEMBER_AS_CREATOR)}),o("div",{class:"description"},o("div",{class:"name"},"Anyone in my organization as me"),o("verdocs-help-icon",{text:"Anyone in my organization can use this template on my behalf. (Make sure its visibility is set to to 'Shared'.)"}))),o("div",{class:"option"},o("verdocs-radio-button",{name:"template-sender",value:n.CREATOR,checked:this.value===n.CREATOR,onInput:()=>this.handleSelectSetting(n.CREATOR)}),o("div",{class:"description"},o("div",{class:"name"},"Me"),o("verdocs-help-icon",{text:"Only I can use this template."})))),o("div",{class:"buttons"},o("verdocs-button",{label:"Cancel",variant:"outline",onClick:()=>this.handleCancel()}),o("verdocs-button",{label:"Done",onClick:()=>this.handleDone()})))))}};l.style='verdocs-template-sender-dialog{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-sender-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-sender-dialog .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-template-sender-dialog .dialog{width:340px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#ffffff;padding:16px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-template-sender-dialog .heading{display:-ms-flexbox;display:flex;font-size:20px;font-weight:500;-ms-flex-direction:row;flex-direction:row}verdocs-template-sender-dialog .buttons{display:-ms-flexbox;display:flex;margin-top:10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-sender-dialog .buttons verdocs-button{margin-left:16px}verdocs-template-sender-dialog .options{row-gap:10px}verdocs-template-sender-dialog .options .option{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-template-sender-dialog .options .option .description{margin-left:10px}verdocs-template-sender-dialog .options .option .description .name{display:inline-block;vertical-align:top;margin-top:4px;margin-right:4px}';export{a as verdocs_help_icon,l as verdocs_template_sender_dialog}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-97329951.system.js","./p-e12b7fbc.system.js","./p-a7433630.system.js"],(function(e){"use strict";var t,o,n,i,s,r;return{setters:[function(e){t=e.r;o=e.h;n=e.H;i=e.c},function(e){s=e.c},function(e){r=e.T}],execute:function(){var a='verdocs-help-icon{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:inline-block}verdocs-help-icon .icon{display:inline-block}verdocs-help-icon .icon svg{fill:#5c6575}verdocs-help-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;position:relative;padding:5px 10px;font-size:13px;border-radius:4px;z-index:10000}verdocs-help-icon .tooltip .arrow,verdocs-help-icon .tooltip .arrow::before{position:absolute;width:8px;height:8px;background:inherit}verdocs-help-icon .tooltip .arrow{visibility:hidden;top:-4px}verdocs-help-icon .tooltip .arrow::before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}verdocs-help-icon .tooltip[data-show]{display:block}verdocs-help-icon .tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}verdocs-help-icon .tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}verdocs-help-icon .tooltip[data-popper-placement^=left]>.arrow{right:-4px}verdocs-help-icon .tooltip[data-popper-placement^=right]>.arrow{left:-4px}';var l='<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M11.925 18q.55 0 .938-.387.387-.388.387-.938 0-.55-.387-.925-.388-.375-.938-.375-.55 0-.925.375t-.375.925q0 .55.375.938.375.387.925.387Zm-.95-3.85h1.95q0-.8.2-1.287.2-.488 1.025-1.288.65-.625 1.025-1.213.375-.587.375-1.437 0-1.425-1.025-2.175Q13.5 6 12.1 6q-1.425 0-2.35.775t-1.275 1.85l1.775.7q.125-.45.55-.975.425-.525 1.275-.525.725 0 1.1.412.375.413.375.888 0 .475-.287.9-.288.425-.713.775-1.075.95-1.325 1.475-.25.525-.25 1.875ZM12 22.2q-2.125 0-3.988-.8-1.862-.8-3.237-2.175Q3.4 17.85 2.6 15.988 1.8 14.125 1.8 12t.8-3.988q.8-1.862 2.175-3.237Q6.15 3.4 8.012 2.6 9.875 1.8 12 1.8t3.988.8q1.862.8 3.237 2.175Q20.6 6.15 21.4 8.012q.8 1.863.8 3.988t-.8 3.988q-.8 1.862-2.175 3.237Q17.85 20.6 15.988 21.4q-1.863.8-3.988.8Zm0-2.275q3.325 0 5.625-2.3t2.3-5.625q0-3.325-2.3-5.625T12 4.075q-3.325 0-5.625 2.3T4.075 12q0 3.325 2.3 5.625t5.625 2.3ZM12 12Z"/></svg>';var c=e("verdocs_help_icon",function(){function e(e){t(this,e);this.text="";this.containerId="verdocs-help-icon-".concat(Math.random().toString(36).substring(2,11))}e.prototype.componentDidLoad=function(){this.popperInstance=s(this.icon,this.tooltip,{})};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 o(n,{class:{}},o("div",{"aria-describedby":this.containerId,class:"icon",innerHTML:l,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.icon=t}}),o("div",{id:this.containerId,role:"tooltip",class:"tooltip","data-popper-placement":"bottom",ref:function(t){return e.tooltip=t}},this.text,o("div",{"data-popper-arrow":"true",class:"arrow"})))};return e}());c.style=a;var d='verdocs-template-sender-dialog{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-sender-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-sender-dialog .background-overlay{position:absolute;z-index:10000;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background:#0000007f}verdocs-template-sender-dialog .dialog{width:340px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#ffffff;padding:16px;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-template-sender-dialog .heading{display:-ms-flexbox;display:flex;font-size:20px;font-weight:500;-ms-flex-direction:row;flex-direction:row}verdocs-template-sender-dialog .buttons{display:-ms-flexbox;display:flex;margin-top:10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-sender-dialog .buttons verdocs-button{margin-left:16px}verdocs-template-sender-dialog .options{row-gap:10px}verdocs-template-sender-dialog .options .option{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-template-sender-dialog .options .option .description{margin-left:10px}verdocs-template-sender-dialog .options .option .description .name{display:inline-block;vertical-align:top;margin-top:4px;margin-right:4px}';var p=e("verdocs_template_sender_dialog",function(){function e(e){t(this,e);this.cancel=i(this,"cancel",7);this.next=i(this,"next",7);this.value=r.EVERYONE;this.newValue=r.EVERYONE}e.prototype.componentWillLoad=function(){this.newValue=this.value};e.prototype.handleCancel=function(){this.cancel.emit()};e.prototype.handleDismiss=function(e){if(e.target.className==="background-overlay"){e.preventDefault();this.handleCancel()}};e.prototype.handleDone=function(){this.next.emit(this.newValue)};e.prototype.handleSelectSetting=function(e){this.newValue=e};e.prototype.render=function(){var e=this;return o(n,null,o("div",{class:"background-overlay",onClick:function(t){return e.handleDismiss(t)}},o("div",{class:"dialog"},o("div",{class:"options"},o("div",{class:"option"},o("verdocs-radio-button",{name:"template-sender",value:r.EVERYONE,checked:this.value===r.EVERYONE,onInput:function(){return e.handleSelectSetting(r.EVERYONE)}}),o("div",{class:"description"},o("div",{class:"name"},"Anyone on the Web"),o("verdocs-help-icon",{text:"Anyone can use this template. (Make its visibility is set to to 'Public' or 'Shared'.)"}))),o("div",{class:"option"},o("verdocs-radio-button",{name:"template-sender",value:r.EVERYONE_AS_CREATOR,checked:this.value===r.EVERYONE_AS_CREATOR,onInput:function(){return e.handleSelectSetting(r.EVERYONE_AS_CREATOR)}}),o("div",{class:"description"},o("div",{class:"name"},"Anyone on the Web as me"),o("verdocs-help-icon",{text:"Anyone can use this template on my behalf. (Make sure its visibility is set to 'Public' or 'Shared'.)"}))),o("div",{class:"option"},o("verdocs-radio-button",{name:"template-sender",value:r.ORGANIZATION_MEMBER,checked:this.value===r.ORGANIZATION_MEMBER,onInput:function(){return e.handleSelectSetting(r.ORGANIZATION_MEMBER)}}),o("div",{class:"description"},o("div",{class:"name"},"Anyone in my organization"),o("verdocs-help-icon",{text:"Anyone in my organization can use this template. (Make sure its visibility is set to 'Shared')"}))),o("div",{class:"option"},o("verdocs-radio-button",{name:"template-sender",value:r.ORGANIZATION_MEMBER_AS_CREATOR,checked:this.value===r.ORGANIZATION_MEMBER_AS_CREATOR,onInput:function(){return e.handleSelectSetting(r.ORGANIZATION_MEMBER_AS_CREATOR)}}),o("div",{class:"description"},o("div",{class:"name"},"Anyone in my organization as me"),o("verdocs-help-icon",{text:"Anyone in my organization can use this template on my behalf. (Make sure its visibility is set to to 'Shared'.)"}))),o("div",{class:"option"},o("verdocs-radio-button",{name:"template-sender",value:r.CREATOR,checked:this.value===r.CREATOR,onInput:function(){return e.handleSelectSetting(r.CREATOR)}}),o("div",{class:"description"},o("div",{class:"name"},"Me"),o("verdocs-help-icon",{text:"Only I can use this template."})))),o("div",{class:"buttons"},o("verdocs-button",{label:"Cancel",variant:"outline",onClick:function(){return e.handleCancel()}}),o("verdocs-button",{label:"Done",onClick:function(){return e.handleDone()}})))))};return e}());p.style=d}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,H as i}from"./p-ff1278ed.js";const o=class{constructor(e){t(this,e),this.value="",this.label="",this.placeholder="",this.autocomplete="",this.type="text",this.disabled=!1}render(){return e(i,{class:"input-field"},e("label",null,this.label?e("div",{class:"input-label"},this.label+":"):e("div",null),e("input",{type:this.type,value:this.value,class:"input-element","data-lpignore":"true",disabled:this.disabled,placeholder:this.placeholder,autoComplete:this.autocomplete})))}};o.style='verdocs-text-input{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 0 10px 0;display:block}verdocs-text-input .input-element{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:16px;height:28px;padding:4px 12px;outline:none}verdocs-text-input .input-element::-webkit-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-moz-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:focus{outline:1px solid #7d88ff}verdocs-text-input .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0}verdocs-text-input [data-lastpass-icon-root]{display:none !important}';export{o as verdocs_text_input}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-97329951.system.js","./p-a7433630.system.js","./p-a4dc6a79.system.js","./p-af2c2f79.system.js"],(function(e){"use strict";var s,r,t;return{setters:[function(e){s=e.r;r=e.h},function(){},function(e){t=e.V},function(){}],execute:function(){var n='verdocs-search{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:-ms-flexbox;display:flex;background-color:#1e2031}verdocs-search search-box{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:20px 10px}verdocs-search .boxes{-ms-flex-wrap:wrap;flex-wrap:wrap;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;margin:20px 0}verdocs-search search-recent,verdocs-search search-saved,verdocs-search search-quick-functions,verdocs-search search-starred{display:-ms-flexbox;display:flex;margin:0 20px 20px 0}';var c=e("verdocs_search",function(){function e(e){s(this,e);this.endpoint=t.getDefault()}e.prototype.render=function(){return r("div",{class:"container"},r("verdocs-search-box",{endpoint:this.endpoint}),r("div",{class:"boxes"},r("verdocs-search-activity",{type:"recent",endpoint:this.endpoint}),r("verdocs-search-activity",{type:"saved",endpoint:this.endpoint}),r("verdocs-search-activity",{type:"starred",endpoint:this.endpoint}),r("verdocs-quick-functions",{endpoint:this.endpoint})))};return e}());c.style=n}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as s}from"./p-ff1278ed.js";import"./p-8efc9749.js";import{V as r}from"./p-2e4dfdc6.js";import"./p-21603661.js";const c=class{constructor(s){e(this,s),this.endpoint=r.getDefault()}render(){return s("div",{class:"container"},s("verdocs-search-box",{endpoint:this.endpoint}),s("div",{class:"boxes"},s("verdocs-search-activity",{type:"recent",endpoint:this.endpoint}),s("verdocs-search-activity",{type:"saved",endpoint:this.endpoint}),s("verdocs-search-activity",{type:"starred",endpoint:this.endpoint}),s("verdocs-quick-functions",{endpoint:this.endpoint})))}};c.style='verdocs-search{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:-ms-flexbox;display:flex;background-color:#1e2031}verdocs-search search-box{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:20px 10px}verdocs-search .boxes{-ms-flex-wrap:wrap;flex-wrap:wrap;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;margin:20px 0}verdocs-search search-recent,verdocs-search search-saved,verdocs-search search-quick-functions,verdocs-search search-starred{display:-ms-flexbox;display:flex;margin:0 20px 20px 0}';export{c as verdocs_search}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e,t,r,a;!function(e){e.TEMPLATE_CREATOR_CREATE_PUBLIC="template:creator:create:public",e.TEMPLATE_CREATOR_CREATE_ORG="template:creator:create:org",e.TEMPLATE_CREATOR_CREATE_PERSONAL="template:creator:create:personal",e.TEMPLATE_CREATOR_DELETE="template:creator:delete",e.TEMPLATE_CREATOR_VISIBILITY="template:creator:visibility",e.TEMPLATE_MEMBER_READ="template:member:read",e.TEMPLATE_MEMBER_WRITE="template:member:write",e.TEMPLATE_MEMBER_DELETE="template:member:delete",e.TEMPLATE_MEMBER_VISIBILITY="template:member:visibility"}(e||(e={})),function(e){e.CREATOR="creator",e.ORGANIZATION_MEMBER="organization_member",e.ORGANIZATION_MEMBER_AS_CREATOR="organization_member_as_creator",e.EVERYONE="everyone",e.EVERYONE_AS_CREATOR="everyone_as_creator"}(t||(t={})),function(e){e.CREATE_PERSONAL="create_personal",e.CREATE_ORG="create_org",e.CREATE_PUBLIC="create_public",e.READ="read",e.WRITE="write",e.DELETE="delete",e.CHANGE_VISIBILITY_PERSONAL="change_visibility_personal",e.CHANGE_VISIBILITY_ORG="change_visibility_org",e.CHANGE_VISIBILITY_PUBLIC="change_visibility_public"}(r||(r={})),function(e){e.CREATED_AT="created_at",e.UPDATED_AT="updated_at",e.NAME="name",e.LAST_USED_AT="last_used_at",e.COUNTER="counter",e.STAR_COUNTER="star_counter"}(a||(a={}));export{t as T}
|