@verdocs/web-sdk 1.10.0 → 1.10.1
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/Templates-612a81f2.js +49 -0
- package/dist/cjs/{Templates-8ef16e3d.js → Templates-ed812768.js} +15 -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-build.cjs.entry.js +6 -5
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-field-textbox.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-help-icon_2.cjs.entry.js +9 -29
- package/dist/cjs/verdocs-preview.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-send.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-sign.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-template-create_2.cjs.entry.js +345 -0
- package/dist/cjs/verdocs-template-name.cjs.entry.js +75 -0
- package/dist/cjs/verdocs-template-properties.cjs.entry.js +77 -0
- package/dist/cjs/verdocs-template-recipients.cjs.entry.js +229 -0
- package/dist/cjs/verdocs-template-reminders.cjs.entry.js +109 -0
- package/dist/cjs/verdocs-template-sender-dialog.cjs.entry.js +43 -0
- package/dist/cjs/verdocs-template-visibility.cjs.entry.js +82 -0
- package/dist/cjs/verdocs-text-input.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-view.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +19 -16
- package/dist/collection/components/controls/verdocs-text-input/verdocs-text-input.css +4 -0
- 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/{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 +1 -1
- 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 +1 -1
- package/dist/collection/components/templates/verdocs-template-name/verdocs-template-name.css +39 -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 +1 -1
- package/dist/collection/components/{elements → templates}/verdocs-template-recipients/verdocs-template-recipients.css +0 -3
- package/dist/collection/components/{elements → templates}/verdocs-template-recipients/verdocs-template-recipients.js +99 -151
- package/dist/collection/components/templates/verdocs-template-recipients/verdocs-template-recipients.stories.js +12 -0
- package/dist/collection/components/templates/verdocs-template-reminders/verdocs-template-reminders.css +62 -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-visibillity/verdocs-template-visibility.css +67 -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/index.d.ts +18 -15
- package/dist/components/index.js +3 -0
- package/dist/components/templateStore.js +2 -1
- package/dist/components/verdocs-build.js +17 -58
- package/dist/components/verdocs-template-fields2.js +0 -1
- package/dist/components/verdocs-template-name.d.ts +11 -0
- package/dist/components/verdocs-template-name.js +110 -0
- package/dist/components/verdocs-template-properties.js +122 -1
- package/dist/components/verdocs-template-recipients.js +260 -1
- package/dist/components/verdocs-template-reminders.d.ts +11 -0
- package/dist/components/verdocs-template-reminders.js +158 -0
- package/dist/components/verdocs-template-visibility.d.ts +11 -0
- package/dist/components/verdocs-template-visibility.js +118 -0
- package/dist/components/verdocs-text-input2.js +1 -1
- package/dist/custom-elements.json +1252 -0
- package/dist/docs.json +320 -83
- package/dist/esm/{Envelopes-6982dfc6.js → Envelopes-91d7e139.js} +1 -1
- package/dist/esm/Templates-03c50708.js +47 -0
- package/dist/esm/{Templates-0638b1e4.js → Templates-8e4ab976.js} +15 -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-build.entry.js +6 -5
- package/dist/esm/verdocs-envelope-sidebar.entry.js +2 -2
- package/dist/esm/verdocs-field-textbox.entry.js +1 -1
- package/dist/esm/verdocs-help-icon_2.entry.js +10 -30
- package/dist/esm/verdocs-preview.entry.js +3 -3
- package/dist/esm/verdocs-quick-functions_3.entry.js +1 -1
- package/dist/esm/verdocs-send.entry.js +1 -1
- package/dist/esm/verdocs-sign.entry.js +2 -2
- package/dist/esm/verdocs-template-create_2.entry.js +340 -0
- package/dist/esm/verdocs-template-name.entry.js +71 -0
- package/dist/{components/verdocs-template-properties2.js → esm/verdocs-template-properties.entry.js} +15 -66
- package/dist/{components/verdocs-template-recipients2.js → esm/verdocs-template-recipients.entry.js} +102 -149
- package/dist/esm/verdocs-template-reminders.entry.js +105 -0
- package/dist/esm/verdocs-template-sender-dialog.entry.js +39 -0
- package/dist/esm/verdocs-template-visibility.entry.js +78 -0
- package/dist/esm/verdocs-text-input.entry.js +1 -1
- package/dist/esm/verdocs-view.entry.js +2 -2
- 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/Templates-03c50708.js +1 -0
- package/dist/esm-es5/{Templates-0638b1e4.js → Templates-8e4ab976.js} +1 -1
- 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-build.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-send.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- 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-sender-dialog.entry.js +1 -0
- package/dist/esm-es5/verdocs-template-visibility.entry.js +1 -0
- package/dist/esm-es5/verdocs-text-input.entry.js +1 -1
- package/dist/esm-es5/verdocs-view.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- 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/{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 +0 -0
- 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 +0 -0
- 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 +0 -0
- package/dist/types/components/{elements → templates}/verdocs-template-recipients/verdocs-template-recipients.d.ts +11 -52
- 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-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 +125 -15
- 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-621c7079.system.entry.js → p-069fcbbe.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-09cd92b4.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-0e06dc54.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-d9ff093e.system.entry.js → p-11c26f99.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-1dc5393d.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-1f06f0d0.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-18cf7ea1.system.entry.js → p-26f16c4a.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-34a2538f.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-453218bc.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-4a09c8df.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-3dcd05aa.system.entry.js → p-4edc67af.system.entry.js} +1 -1
- 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-5231a690.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-a1412c61.system.entry.js → p-52be34b3.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a140f6f9.entry.js → p-54102f3d.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a74a9c6b.system.js → p-55fc9529.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-03833051.system.entry.js → p-5f09d34b.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3dbf8bec.entry.js → p-619098f5.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-95016ea1.entry.js → p-6f742462.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ce442d55.entry.js → p-7abcf805.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-2d687108.system.js → p-7ac87084.system.js} +1 -1
- package/dist/verdocs-web-sdk/p-7d855960.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-7b357e1a.entry.js → p-898b46ce.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-8cf35e23.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-8d36c969.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-952b9288.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-a0b23dbe.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-a39b334f.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-c8e8732b.system.js → p-a95d40dc.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b8faf8b8.entry.js → p-acfa887e.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c2cc4492.js → p-b28ef4bb.js} +1 -1
- package/dist/verdocs-web-sdk/p-bdce7b62.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-c16b6ca4.system.js +1 -1
- package/dist/verdocs-web-sdk/p-cf8f8562.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-d122cadd.system.js +1 -0
- package/dist/verdocs-web-sdk/p-d876f216.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-e1da9867.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-50f82ed8.entry.js → p-e5ed6342.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-e9e83cbb.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/Templates-358eaee4.js +0 -29
- package/dist/cjs/verdocs-radio-button.cjs.entry.js +0 -23
- package/dist/collection/components/elements/verdocs-template-recipients/verdocs-template-recipients.stories.js +0 -35
- package/dist/esm/Templates-ad0e1ebe.js +0 -27
- package/dist/esm/verdocs-radio-button.entry.js +0 -19
- package/dist/esm-es5/Templates-ad0e1ebe.js +0 -1
- package/dist/esm-es5/templateStore-7b50460b.js +0 -1
- package/dist/esm-es5/verdocs-radio-button.entry.js +0 -1
- package/dist/esm-es5/verdocs-template-create_4.entry.js +0 -1
- package/dist/types/components/elements/verdocs-template-recipients/verdocs-template-recipients.stories.d.ts +0 -10
- package/dist/verdocs-web-sdk/p-11ab1bd0.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-6121f103.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-7d909ce4.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-8f50fd8e.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-ae3b30c6.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-c6370ca8.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e53f969c.js +0 -1
|
@@ -17,7 +17,6 @@ import { IOption } from "./components/controls/verdocs-floating-menu/verdocs-flo
|
|
|
17
17
|
import { IOrganization } from "@verdocs/js-sdk/Organizations/Types";
|
|
18
18
|
import { IRecentSearch } from "@verdocs/js-sdk/Search/Types";
|
|
19
19
|
import { ISearchEvent, TContentType } from "./components/elements/verdocs-search-box/verdocs-search-box";
|
|
20
|
-
import { IContactSearchEvent as IContactSearchEvent1, IContactSelectEvent as IContactSelectEvent1, IEmailContact as IEmailContact1, IPhoneContact as IPhoneContact1 } from "./components/elements/verdocs-template-recipients/verdocs-template-recipients";
|
|
21
20
|
import { IToggleIconButtons } from "./components/controls/verdocs-toggle/verdocs-toggle";
|
|
22
21
|
import { Placement } from "@popperjs/core/lib/enums";
|
|
23
22
|
import { FileWithData } from "@verdocs/js-sdk/Utils/Files";
|
|
@@ -672,6 +671,16 @@ export namespace Components {
|
|
|
672
671
|
*/
|
|
673
672
|
"templateId": string | null;
|
|
674
673
|
}
|
|
674
|
+
interface VerdocsTemplateName {
|
|
675
|
+
/**
|
|
676
|
+
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
677
|
+
*/
|
|
678
|
+
"endpoint": VerdocsEndpoint;
|
|
679
|
+
/**
|
|
680
|
+
* The template ID to edit.
|
|
681
|
+
*/
|
|
682
|
+
"templateId": string;
|
|
683
|
+
}
|
|
675
684
|
interface VerdocsTemplateProperties {
|
|
676
685
|
/**
|
|
677
686
|
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
@@ -684,17 +693,23 @@ export namespace Components {
|
|
|
684
693
|
}
|
|
685
694
|
interface VerdocsTemplateRecipients {
|
|
686
695
|
/**
|
|
687
|
-
*
|
|
696
|
+
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
688
697
|
*/
|
|
689
|
-
"
|
|
698
|
+
"endpoint": VerdocsEndpoint;
|
|
699
|
+
/**
|
|
700
|
+
* The template ID to edit.
|
|
701
|
+
*/
|
|
702
|
+
"templateId": string;
|
|
703
|
+
}
|
|
704
|
+
interface VerdocsTemplateReminders {
|
|
690
705
|
/**
|
|
691
706
|
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
692
707
|
*/
|
|
693
708
|
"endpoint": VerdocsEndpoint;
|
|
694
709
|
/**
|
|
695
|
-
* The
|
|
710
|
+
* The template ID to edit.
|
|
696
711
|
*/
|
|
697
|
-
"
|
|
712
|
+
"templateId": string;
|
|
698
713
|
}
|
|
699
714
|
interface VerdocsTemplateSenderDialog {
|
|
700
715
|
/**
|
|
@@ -708,6 +723,16 @@ export namespace Components {
|
|
|
708
723
|
*/
|
|
709
724
|
"tags": any[];
|
|
710
725
|
}
|
|
726
|
+
interface VerdocsTemplateVisibility {
|
|
727
|
+
/**
|
|
728
|
+
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
729
|
+
*/
|
|
730
|
+
"endpoint": VerdocsEndpoint;
|
|
731
|
+
/**
|
|
732
|
+
* The template ID to edit.
|
|
733
|
+
*/
|
|
734
|
+
"templateId": string;
|
|
735
|
+
}
|
|
711
736
|
interface VerdocsTextInput {
|
|
712
737
|
/**
|
|
713
738
|
* If desired, the autocomplete attribute to set.
|
|
@@ -886,6 +911,10 @@ export interface VerdocsTemplateFieldsCustomEvent<T> extends CustomEvent<T> {
|
|
|
886
911
|
detail: T;
|
|
887
912
|
target: HTMLVerdocsTemplateFieldsElement;
|
|
888
913
|
}
|
|
914
|
+
export interface VerdocsTemplateNameCustomEvent<T> extends CustomEvent<T> {
|
|
915
|
+
detail: T;
|
|
916
|
+
target: HTMLVerdocsTemplateNameElement;
|
|
917
|
+
}
|
|
889
918
|
export interface VerdocsTemplatePropertiesCustomEvent<T> extends CustomEvent<T> {
|
|
890
919
|
detail: T;
|
|
891
920
|
target: HTMLVerdocsTemplatePropertiesElement;
|
|
@@ -894,10 +923,18 @@ export interface VerdocsTemplateRecipientsCustomEvent<T> extends CustomEvent<T>
|
|
|
894
923
|
detail: T;
|
|
895
924
|
target: HTMLVerdocsTemplateRecipientsElement;
|
|
896
925
|
}
|
|
926
|
+
export interface VerdocsTemplateRemindersCustomEvent<T> extends CustomEvent<T> {
|
|
927
|
+
detail: T;
|
|
928
|
+
target: HTMLVerdocsTemplateRemindersElement;
|
|
929
|
+
}
|
|
897
930
|
export interface VerdocsTemplateSenderDialogCustomEvent<T> extends CustomEvent<T> {
|
|
898
931
|
detail: T;
|
|
899
932
|
target: HTMLVerdocsTemplateSenderDialogElement;
|
|
900
933
|
}
|
|
934
|
+
export interface VerdocsTemplateVisibilityCustomEvent<T> extends CustomEvent<T> {
|
|
935
|
+
detail: T;
|
|
936
|
+
target: HTMLVerdocsTemplateVisibilityElement;
|
|
937
|
+
}
|
|
901
938
|
export interface VerdocsToggleButtonCustomEvent<T> extends CustomEvent<T> {
|
|
902
939
|
detail: T;
|
|
903
940
|
target: HTMLVerdocsToggleButtonElement;
|
|
@@ -1169,6 +1206,12 @@ declare global {
|
|
|
1169
1206
|
prototype: HTMLVerdocsTemplateFieldsElement;
|
|
1170
1207
|
new (): HTMLVerdocsTemplateFieldsElement;
|
|
1171
1208
|
};
|
|
1209
|
+
interface HTMLVerdocsTemplateNameElement extends Components.VerdocsTemplateName, HTMLStencilElement {
|
|
1210
|
+
}
|
|
1211
|
+
var HTMLVerdocsTemplateNameElement: {
|
|
1212
|
+
prototype: HTMLVerdocsTemplateNameElement;
|
|
1213
|
+
new (): HTMLVerdocsTemplateNameElement;
|
|
1214
|
+
};
|
|
1172
1215
|
interface HTMLVerdocsTemplatePropertiesElement extends Components.VerdocsTemplateProperties, HTMLStencilElement {
|
|
1173
1216
|
}
|
|
1174
1217
|
var HTMLVerdocsTemplatePropertiesElement: {
|
|
@@ -1181,6 +1224,12 @@ declare global {
|
|
|
1181
1224
|
prototype: HTMLVerdocsTemplateRecipientsElement;
|
|
1182
1225
|
new (): HTMLVerdocsTemplateRecipientsElement;
|
|
1183
1226
|
};
|
|
1227
|
+
interface HTMLVerdocsTemplateRemindersElement extends Components.VerdocsTemplateReminders, HTMLStencilElement {
|
|
1228
|
+
}
|
|
1229
|
+
var HTMLVerdocsTemplateRemindersElement: {
|
|
1230
|
+
prototype: HTMLVerdocsTemplateRemindersElement;
|
|
1231
|
+
new (): HTMLVerdocsTemplateRemindersElement;
|
|
1232
|
+
};
|
|
1184
1233
|
interface HTMLVerdocsTemplateSenderDialogElement extends Components.VerdocsTemplateSenderDialog, HTMLStencilElement {
|
|
1185
1234
|
}
|
|
1186
1235
|
var HTMLVerdocsTemplateSenderDialogElement: {
|
|
@@ -1193,6 +1242,12 @@ declare global {
|
|
|
1193
1242
|
prototype: HTMLVerdocsTemplateTagsElement;
|
|
1194
1243
|
new (): HTMLVerdocsTemplateTagsElement;
|
|
1195
1244
|
};
|
|
1245
|
+
interface HTMLVerdocsTemplateVisibilityElement extends Components.VerdocsTemplateVisibility, HTMLStencilElement {
|
|
1246
|
+
}
|
|
1247
|
+
var HTMLVerdocsTemplateVisibilityElement: {
|
|
1248
|
+
prototype: HTMLVerdocsTemplateVisibilityElement;
|
|
1249
|
+
new (): HTMLVerdocsTemplateVisibilityElement;
|
|
1250
|
+
};
|
|
1196
1251
|
interface HTMLVerdocsTextInputElement extends Components.VerdocsTextInput, HTMLStencilElement {
|
|
1197
1252
|
}
|
|
1198
1253
|
var HTMLVerdocsTextInputElement: {
|
|
@@ -1273,10 +1328,13 @@ declare global {
|
|
|
1273
1328
|
"verdocs-template-card": HTMLVerdocsTemplateCardElement;
|
|
1274
1329
|
"verdocs-template-create": HTMLVerdocsTemplateCreateElement;
|
|
1275
1330
|
"verdocs-template-fields": HTMLVerdocsTemplateFieldsElement;
|
|
1331
|
+
"verdocs-template-name": HTMLVerdocsTemplateNameElement;
|
|
1276
1332
|
"verdocs-template-properties": HTMLVerdocsTemplatePropertiesElement;
|
|
1277
1333
|
"verdocs-template-recipients": HTMLVerdocsTemplateRecipientsElement;
|
|
1334
|
+
"verdocs-template-reminders": HTMLVerdocsTemplateRemindersElement;
|
|
1278
1335
|
"verdocs-template-sender-dialog": HTMLVerdocsTemplateSenderDialogElement;
|
|
1279
1336
|
"verdocs-template-tags": HTMLVerdocsTemplateTagsElement;
|
|
1337
|
+
"verdocs-template-visibility": HTMLVerdocsTemplateVisibilityElement;
|
|
1280
1338
|
"verdocs-text-input": HTMLVerdocsTextInputElement;
|
|
1281
1339
|
"verdocs-toggle": HTMLVerdocsToggleElement;
|
|
1282
1340
|
"verdocs-toggle-button": HTMLVerdocsToggleButtonElement;
|
|
@@ -2113,6 +2171,24 @@ declare namespace LocalJSX {
|
|
|
2113
2171
|
*/
|
|
2114
2172
|
"templateId"?: string | null;
|
|
2115
2173
|
}
|
|
2174
|
+
interface VerdocsTemplateName {
|
|
2175
|
+
/**
|
|
2176
|
+
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
2177
|
+
*/
|
|
2178
|
+
"endpoint"?: VerdocsEndpoint;
|
|
2179
|
+
/**
|
|
2180
|
+
* Event fired when the user cancels the dialog.
|
|
2181
|
+
*/
|
|
2182
|
+
"onClose"?: (event: VerdocsTemplateNameCustomEvent<any>) => void;
|
|
2183
|
+
/**
|
|
2184
|
+
* Event fired if an error occurs. The event details will contain information about the error. Most errors will terminate the process, and the calling application should correct the condition and re-render the component.
|
|
2185
|
+
*/
|
|
2186
|
+
"onSdkError"?: (event: VerdocsTemplateNameCustomEvent<SDKError>) => void;
|
|
2187
|
+
/**
|
|
2188
|
+
* The template ID to edit.
|
|
2189
|
+
*/
|
|
2190
|
+
"templateId"?: string;
|
|
2191
|
+
}
|
|
2116
2192
|
interface VerdocsTemplateProperties {
|
|
2117
2193
|
/**
|
|
2118
2194
|
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
@@ -2136,10 +2212,6 @@ declare namespace LocalJSX {
|
|
|
2136
2212
|
"templateId"?: string;
|
|
2137
2213
|
}
|
|
2138
2214
|
interface VerdocsTemplateRecipients {
|
|
2139
|
-
/**
|
|
2140
|
-
* If set, suggestions will be displayed in a drop-down list to the user. It is recommended that the number of suggestions be limited to the 5 best matching records.
|
|
2141
|
-
*/
|
|
2142
|
-
"contactSuggestions"?: (IEmailContact | IPhoneContact)[];
|
|
2143
2215
|
/**
|
|
2144
2216
|
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
2145
2217
|
*/
|
|
@@ -2149,17 +2221,31 @@ declare namespace LocalJSX {
|
|
|
2149
2221
|
*/
|
|
2150
2222
|
"onCancel"?: (event: VerdocsTemplateRecipientsCustomEvent<any>) => void;
|
|
2151
2223
|
/**
|
|
2152
|
-
* Event fired
|
|
2224
|
+
* Event fired if an error occurs. The event details will contain information about the error. Most errors will terminate the process, and the calling application should correct the condition and re-render the component.
|
|
2153
2225
|
*/
|
|
2154
|
-
"
|
|
2226
|
+
"onSdkError"?: (event: VerdocsTemplateRecipientsCustomEvent<SDKError>) => void;
|
|
2155
2227
|
/**
|
|
2156
|
-
*
|
|
2228
|
+
* The template ID to edit.
|
|
2157
2229
|
*/
|
|
2158
|
-
"
|
|
2230
|
+
"templateId"?: string;
|
|
2231
|
+
}
|
|
2232
|
+
interface VerdocsTemplateReminders {
|
|
2159
2233
|
/**
|
|
2160
|
-
* The
|
|
2234
|
+
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
2161
2235
|
*/
|
|
2162
|
-
"
|
|
2236
|
+
"endpoint"?: VerdocsEndpoint;
|
|
2237
|
+
/**
|
|
2238
|
+
* Event fired when the user cancels the dialog.
|
|
2239
|
+
*/
|
|
2240
|
+
"onClose"?: (event: VerdocsTemplateRemindersCustomEvent<any>) => void;
|
|
2241
|
+
/**
|
|
2242
|
+
* Event fired if an error occurs. The event details will contain information about the error. Most errors will terminate the process, and the calling application should correct the condition and re-render the component.
|
|
2243
|
+
*/
|
|
2244
|
+
"onSdkError"?: (event: VerdocsTemplateRemindersCustomEvent<SDKError>) => void;
|
|
2245
|
+
/**
|
|
2246
|
+
* The template ID to edit.
|
|
2247
|
+
*/
|
|
2248
|
+
"templateId"?: string;
|
|
2163
2249
|
}
|
|
2164
2250
|
interface VerdocsTemplateSenderDialog {
|
|
2165
2251
|
/**
|
|
@@ -2181,6 +2267,24 @@ declare namespace LocalJSX {
|
|
|
2181
2267
|
*/
|
|
2182
2268
|
"tags"?: any[];
|
|
2183
2269
|
}
|
|
2270
|
+
interface VerdocsTemplateVisibility {
|
|
2271
|
+
/**
|
|
2272
|
+
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
2273
|
+
*/
|
|
2274
|
+
"endpoint"?: VerdocsEndpoint;
|
|
2275
|
+
/**
|
|
2276
|
+
* Event fired when the user cancels the dialog.
|
|
2277
|
+
*/
|
|
2278
|
+
"onClose"?: (event: VerdocsTemplateVisibilityCustomEvent<any>) => void;
|
|
2279
|
+
/**
|
|
2280
|
+
* Event fired if an error occurs. The event details will contain information about the error. Most errors will terminate the process, and the calling application should correct the condition and re-render the component.
|
|
2281
|
+
*/
|
|
2282
|
+
"onSdkError"?: (event: VerdocsTemplateVisibilityCustomEvent<SDKError>) => void;
|
|
2283
|
+
/**
|
|
2284
|
+
* The template ID to edit.
|
|
2285
|
+
*/
|
|
2286
|
+
"templateId"?: string;
|
|
2287
|
+
}
|
|
2184
2288
|
interface VerdocsTextInput {
|
|
2185
2289
|
/**
|
|
2186
2290
|
* If desired, the autocomplete attribute to set.
|
|
@@ -2318,10 +2422,13 @@ declare namespace LocalJSX {
|
|
|
2318
2422
|
"verdocs-template-card": VerdocsTemplateCard;
|
|
2319
2423
|
"verdocs-template-create": VerdocsTemplateCreate;
|
|
2320
2424
|
"verdocs-template-fields": VerdocsTemplateFields;
|
|
2425
|
+
"verdocs-template-name": VerdocsTemplateName;
|
|
2321
2426
|
"verdocs-template-properties": VerdocsTemplateProperties;
|
|
2322
2427
|
"verdocs-template-recipients": VerdocsTemplateRecipients;
|
|
2428
|
+
"verdocs-template-reminders": VerdocsTemplateReminders;
|
|
2323
2429
|
"verdocs-template-sender-dialog": VerdocsTemplateSenderDialog;
|
|
2324
2430
|
"verdocs-template-tags": VerdocsTemplateTags;
|
|
2431
|
+
"verdocs-template-visibility": VerdocsTemplateVisibility;
|
|
2325
2432
|
"verdocs-text-input": VerdocsTextInput;
|
|
2326
2433
|
"verdocs-toggle": VerdocsToggle;
|
|
2327
2434
|
"verdocs-toggle-button": VerdocsToggleButton;
|
|
@@ -2377,10 +2484,13 @@ declare module "@stencil/core" {
|
|
|
2377
2484
|
"verdocs-template-card": LocalJSX.VerdocsTemplateCard & JSXBase.HTMLAttributes<HTMLVerdocsTemplateCardElement>;
|
|
2378
2485
|
"verdocs-template-create": LocalJSX.VerdocsTemplateCreate & JSXBase.HTMLAttributes<HTMLVerdocsTemplateCreateElement>;
|
|
2379
2486
|
"verdocs-template-fields": LocalJSX.VerdocsTemplateFields & JSXBase.HTMLAttributes<HTMLVerdocsTemplateFieldsElement>;
|
|
2487
|
+
"verdocs-template-name": LocalJSX.VerdocsTemplateName & JSXBase.HTMLAttributes<HTMLVerdocsTemplateNameElement>;
|
|
2380
2488
|
"verdocs-template-properties": LocalJSX.VerdocsTemplateProperties & JSXBase.HTMLAttributes<HTMLVerdocsTemplatePropertiesElement>;
|
|
2381
2489
|
"verdocs-template-recipients": LocalJSX.VerdocsTemplateRecipients & JSXBase.HTMLAttributes<HTMLVerdocsTemplateRecipientsElement>;
|
|
2490
|
+
"verdocs-template-reminders": LocalJSX.VerdocsTemplateReminders & JSXBase.HTMLAttributes<HTMLVerdocsTemplateRemindersElement>;
|
|
2382
2491
|
"verdocs-template-sender-dialog": LocalJSX.VerdocsTemplateSenderDialog & JSXBase.HTMLAttributes<HTMLVerdocsTemplateSenderDialogElement>;
|
|
2383
2492
|
"verdocs-template-tags": LocalJSX.VerdocsTemplateTags & JSXBase.HTMLAttributes<HTMLVerdocsTemplateTagsElement>;
|
|
2493
|
+
"verdocs-template-visibility": LocalJSX.VerdocsTemplateVisibility & JSXBase.HTMLAttributes<HTMLVerdocsTemplateVisibilityElement>;
|
|
2384
2494
|
"verdocs-text-input": LocalJSX.VerdocsTextInput & JSXBase.HTMLAttributes<HTMLVerdocsTextInputElement>;
|
|
2385
2495
|
"verdocs-toggle": LocalJSX.VerdocsToggle & JSXBase.HTMLAttributes<HTMLVerdocsToggleElement>;
|
|
2386
2496
|
"verdocs-toggle-button": LocalJSX.VerdocsToggleButton & JSXBase.HTMLAttributes<HTMLVerdocsToggleButtonElement>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { VerdocsEndpoint } from '@verdocs/js-sdk';
|
|
2
|
-
export declare const loadTemplate: (endpoint: VerdocsEndpoint, templateId: string) => Promise<
|
|
2
|
+
export declare const loadTemplate: (endpoint: VerdocsEndpoint, templateId: string) => Promise<unknown>;
|
|
@@ -2,8 +2,8 @@ import { VerdocsEndpoint } from '@verdocs/js-sdk';
|
|
|
2
2
|
import { ITemplateField } from '@verdocs/js-sdk/Templates/Types';
|
|
3
3
|
import { IDocumentField, IEnvelope } from '@verdocs/js-sdk/Envelopes/Types';
|
|
4
4
|
import { IDocumentPageInfo } from './Types';
|
|
5
|
-
export declare const defaultWidth: (field: ITemplateField | IDocumentField) => 150 | 64 | 24 |
|
|
6
|
-
export declare const defaultHeight: (field: ITemplateField | IDocumentField) =>
|
|
5
|
+
export declare const defaultWidth: (field: ITemplateField | IDocumentField) => 14 | 150 | 64 | 24 | 71;
|
|
6
|
+
export declare const defaultHeight: (field: ITemplateField | IDocumentField) => 36 | 14 | 15 | 24 | 50;
|
|
7
7
|
export declare const setControlStyles: (el: HTMLElement, field: ITemplateField | IDocumentField, xScale: number, yScale: number, option?: number) => void;
|
|
8
8
|
export declare const getFieldId: (field: ITemplateField | IDocumentField) => string;
|
|
9
9
|
export declare const getFieldOptionId: (field: ITemplateField | IDocumentField, index: number) => string;
|
|
@@ -1 +1 @@
|
|
|
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
|
+
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-7ac87084.system.js","./p-187b20b7.system.js","./p-51a3ea62.system.js","./p-af2c2f79.system.js","./p-e0cfad01.system.js","./p-0f6da8c7.system.js","./p-69912cbf.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}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
System.register(["./p-97329951.system.js","./p-a7433630.system.js"],(function(e){"use strict";var t,n,i,o,s;return{setters:[function(e){t=e.r;n=e.c;i=e.h;o=e.H},function(e){s=e.T}],execute:function(){var a='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 l=e("verdocs_template_sender_dialog",function(){function e(e){t(this,e);this.cancel=n(this,"cancel",7);this.next=n(this,"next",7);this.value=s.EVERYONE;this.newValue=s.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 i(o,null,i("div",{class:"background-overlay",onClick:function(t){return e.handleDismiss(t)}},i("div",{class:"dialog"},i("div",{class:"options"},i("div",{class:"option"},i("verdocs-radio-button",{name:"template-sender",value:s.EVERYONE,checked:this.value===s.EVERYONE,onInput:function(){return e.handleSelectSetting(s.EVERYONE)}}),i("div",{class:"description"},i("div",{class:"name"},"Anyone on the Web"),i("verdocs-help-icon",{text:"Anyone can use this template. (Make its visibility is set to to 'Public' or 'Shared'.)"}))),i("div",{class:"option"},i("verdocs-radio-button",{name:"template-sender",value:s.EVERYONE_AS_CREATOR,checked:this.value===s.EVERYONE_AS_CREATOR,onInput:function(){return e.handleSelectSetting(s.EVERYONE_AS_CREATOR)}}),i("div",{class:"description"},i("div",{class:"name"},"Anyone on the Web as me"),i("verdocs-help-icon",{text:"Anyone can use this template on my behalf. (Make sure its visibility is set to 'Public' or 'Shared'.)"}))),i("div",{class:"option"},i("verdocs-radio-button",{name:"template-sender",value:s.ORGANIZATION_MEMBER,checked:this.value===s.ORGANIZATION_MEMBER,onInput:function(){return e.handleSelectSetting(s.ORGANIZATION_MEMBER)}}),i("div",{class:"description"},i("div",{class:"name"},"Anyone in my organization"),i("verdocs-help-icon",{text:"Anyone in my organization can use this template. (Make sure its visibility is set to 'Shared')"}))),i("div",{class:"option"},i("verdocs-radio-button",{name:"template-sender",value:s.ORGANIZATION_MEMBER_AS_CREATOR,checked:this.value===s.ORGANIZATION_MEMBER_AS_CREATOR,onInput:function(){return e.handleSelectSetting(s.ORGANIZATION_MEMBER_AS_CREATOR)}}),i("div",{class:"description"},i("div",{class:"name"},"Anyone in my organization as me"),i("verdocs-help-icon",{text:"Anyone in my organization can use this template on my behalf. (Make sure its visibility is set to to 'Shared'.)"}))),i("div",{class:"option"},i("verdocs-radio-button",{name:"template-sender",value:s.CREATOR,checked:this.value===s.CREATOR,onInput:function(){return e.handleSelectSetting(s.CREATOR)}}),i("div",{class:"description"},i("div",{class:"name"},"Me"),i("verdocs-help-icon",{text:"Only I can use this template."})))),i("div",{class:"buttons"},i("verdocs-button",{label:"Cancel",variant:"outline",onClick:function(){return e.handleCancel()}}),i("verdocs-button",{label:"Done",onClick:function(){return e.handleDone()}})))))};return e}());l.style=a}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as i,H as s}from"./p-ff1278ed.js";import{c as o,g as a}from"./p-b28ef4bb.js";import"./p-8efc9749.js";import{V as l}from"./p-2e4dfdc6.js";import{S as r}from"./p-7a1b2643.js";import{i as n}from"./p-4f12a8a7.js";import{a as d,r as h,c as p,d as c,e as m}from"./p-644cc3c3.js";import{s as v}from"./p-87749601.js";import{l as g}from"./p-848e555d.js";import"./p-21603661.js";import"./p-880b619d.js";import"./p-aa124212.js";import"./p-5ea05a1d.js";import"./p-7291906c.js";const u=class{constructor(i){t(this,i),this.cancel=e(this,"cancel",7),this.next=e(this,"next",7),this.sdkError=e(this,"sdkError",7),this.endpoint=l.getDefault(),this.file=void 0}componentWillLoad(){this.endpoint.loadSession()}handleFileChanged(t){var e;console.log("files",t.target.files),this.file=(null===(e=t.target.files)||void 0===e?void 0:e[0])||null,console.log("Selected file",this.file)}handleUpload(t){t.stopPropagation(),document.getElementById("verdocs-template-create-file").click()}handleCancel(t){var e;t.stopPropagation(),null===(e=this.cancel)||void 0===e||e.emit()}async handleSubmit(t){var e,i,s,l,n,d,h,p;if(t.stopPropagation(),this.file)try{const t=await o(this.endpoint,{name:this.file.name});console.log("created template",t);const i=await(n=this.endpoint,d=t.id,h=this.file,p=new FormData,p.append("document",h,h.name),n.api.post("/templates/".concat(d,"/documents"),p,{timeout:1e4,onUploadProgress:function(){}}).then((function(t){return t.data})));console.log("created document",i);const s=await a(this.endpoint,t.id);console.log("[CREATE] Created template",s),null===(e=this.next)||void 0===e||e.emit(s)}catch(t){console.log("[TEMPLATE-CREATE] Error creating template",t),null===(i=this.sdkError)||void 0===i||i.emit(new r(t.message,null===(s=t.response)||void 0===s?void 0:s.status,null===(l=t.response)||void 0===l?void 0:l.data))}}render(){return this.endpoint.session?i("form",{onSubmit:t=>t.preventDefault(),onClick:t=>t.stopPropagation(),autocomplete:"off"},i("input",{type:"file",id:"verdocs-template-create-file",multiple:!0,accept:"application/pdf",style:{display:"none"},onChange:t=>this.handleFileChanged(t)}),i("div",{class:"upload-box"},i("div",null,i("span",{innerHTML:'<svg focusable="false" aria-hidden="true" viewBox="0 0 24 24"><path d="M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"></path></svg>'})),i("div",{style:{marginTop:"20px",fontSize:"20px",fontWeight:"bold"}},"Drag a file here"),i("div",{style:{marginTop:"20px",marginBottom:"20px",fontSize:"16px"}},"Or, if you prefer..."),i("verdocs-button",{label:"Select a file from your computer",size:"small",onClick:t=>this.handleUpload(t)})),i("div",{class:"buttons"},i("verdocs-button",{variant:"outline",label:"Cancel",size:"small",onClick:t=>this.handleCancel(t)}),i("verdocs-button",{label:"Next",size:"small",onClick:t=>this.handleSubmit(t),disabled:!this.file}))):i(s,null,i("verdocs-component-error",{message:"You must be authenticated to use this module."}))}};u.style='verdocs-template-create{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-template-create form{background-color:#ffffff;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-create form .upload-box{max-width:320px;text-align:center;padding:44px 18px 66px;border:2px dashed #979797;color:rgba(0, 0, 0, 0.54)}verdocs-template-create form .upload-box svg{width:64px;fill:#5c6575}verdocs-template-create .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:8px;-moz-column-gap:8px;column-gap:8px;margin-top:16px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-template-create .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-template-create ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-create ::-moz-placeholder{color:#aaaaaa}verdocs-template-create :-ms-input-placeholder{color:#aaaaaa}verdocs-template-create ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-create ::placeholder{color:#aaaaaa}';const x=[{id:"attachment",tooltip:"Attachment",icon:"A"},{id:"checkbox",tooltip:"Check Box",icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z"/></svg>'},{id:"date",tooltip:"Date",icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M7.6 13.925q-.55 0-.925-.375t-.375-.925q0-.55.375-.937.375-.388.925-.388t.925.388q.375.387.375.937t-.375.925q-.375.375-.925.375Zm4.4 0q-.55 0-.925-.375t-.375-.925q0-.55.375-.937.375-.388.925-.388t.925.388q.375.387.375.937t-.375.925q-.375.375-.925.375Zm4.4 0q-.55 0-.925-.375t-.375-.925q0-.55.375-.937.375-.388.925-.388t.925.388q.375.387.375.937t-.375.925q-.375.375-.925.375ZM5.3 22.85q-1.325 0-2.238-.912-.912-.913-.912-2.238V6.3q0-1.325.912-2.238.913-.912 2.238-.912H6v-2h2.575v2h6.85v-2H18v2h.7q1.325 0 2.238.912.912.913.912 2.238v13.4q0 1.325-.912 2.238-.913.912-2.238.912Zm0-3.15h13.4V10H5.3v9.7ZM5.3 8h13.4V6.3H5.3Zm0 0V6.3 8Z"/></svg>'},{id:"dropdown",tooltip:"Dropdown",icon:"O"},{id:"initial",tooltip:"Initials",icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M6.225 20.775V7h-5V3.225H15V7h-5v13.775Zm9.775 0v-8h-3V9h9.775v3.775h-3v8Z"/></svg>'},{id:"payment",tooltip:"Payment",icon:"P"},{id:"radio",tooltip:"Radio Button",icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M12 17q2.075 0 3.538-1.463Q17 14.075 17 12t-1.462-3.538Q14.075 7 12 7 9.925 7 8.463 8.462 7 9.925 7 12q0 2.075 1.463 3.537Q9.925 17 12 17Zm0 5.85q-2.275 0-4.25-.85t-3.438-2.312Q2.85 18.225 2 16.25q-.85-1.975-.85-4.25T2 7.75q.85-1.975 2.312-3.438Q5.775 2.85 7.75 2q1.975-.85 4.25-.85t4.25.85q1.975.85 3.438 2.312Q21.15 5.775 22 7.75q.85 1.975.85 4.25T22 16.25q-.85 1.975-2.312 3.438Q18.225 21.15 16.25 22q-1.975.85-4.25.85Zm0-3.15q3.25 0 5.475-2.225Q19.7 15.25 19.7 12q0-3.25-2.225-5.475Q15.25 4.3 12 4.3q-3.25 0-5.475 2.225Q4.3 8.75 4.3 12q0 3.25 2.225 5.475Q8.75 19.7 12 19.7Zm0-7.7Z"/></svg>'},{id:"signature",tooltip:"Signature",icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="m9.225 21.225 4.65-4.65h8.45v4.65Zm-5.35-2.2H5.05l8.5-8.5-1.175-1.175-8.5 8.5Zm14.25-9.95L13.8 4.8l1.325-1.325q.625-.65 1.525-.663.9-.012 1.6.663l1.225 1.175q.675.675.663 1.562-.013.888-.663 1.513ZM16.7 10.55 6 21.225H1.675V16.9L12.35 6.225Zm-3.725-.625-.6-.575 1.175 1.175Z"/></svg>'},{id:"textarea",tooltip:"Text Area",icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M3.225 20.725v-3.15h11.55v3.15Zm0-4.775V12.8h17.55v3.15Zm0-4.75V8.05h17.55v3.15Zm0-4.775v-3.15h17.55v3.15Z"/></svg>'},{id:"textbox",tooltip:"Text Box",icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M3.425 16.15V13h11.15v3.15Zm0-5.15V7.85h17.15V11Z"/></svg>'},{id:"timestamp",tooltip:"Timestamp",icon:"X"}],f=class{constructor(i){t(this,i),this.next=e(this,"next",7),this.cancel=e(this,"cancel",7),this.sdkError=e(this,"sdkError",7),this.pageHeights={},this.cachedPageInfo={},this.endpoint=l.getDefault(),this.templateId=null,this.placing=null,this.selectedRoleName=""}async componentWillLoad(){var t,e,i,s,o,a;try{if(this.endpoint.loadSession(),!this.templateId)return void console.log(`[FIELDS] Missing required template ID ${this.templateId}`);if(!this.endpoint.session)return void console.log("[BUILD] Unable to start builder session, must be authenticated");try{console.log(`[FIELDS] Loading template ${this.templateId}`,this.endpoint.session),await g(this.endpoint,this.templateId),this.selectedRoleName=v.roleNames[0],console.log("Starting with role",this.selectedRoleName)}catch(s){console.log("[FIELDS] Error loading template",s),null===(t=this.sdkError)||void 0===t||t.emit(new r(s.message,null===(e=s.response)||void 0===e?void 0:e.status,null===(i=s.response)||void 0===i?void 0:i.data))}}catch(t){console.log("[FIELDS] Error with preview session",t),null===(s=this.sdkError)||void 0===s||s.emit(new r(t.message,null===(o=t.response)||void 0===o?void 0:o.status,null===(a=t.response)||void 0===a?void 0:a.data))}}componentDidRender(){n.dynamicDrop(!0)}async handleFieldChange(t,e,i){console.log("[FIELDS] handleFieldChange",t,e,i)}attachFieldAttributes(t,e,i,s){s.addEventListener("input",(t=>this.handleFieldChange(e,t))),s.setAttribute("roleindex",i),s.setAttribute("pageNumber",t.pageNumber),s.setAttribute("xScale",t.xScale),s.setAttribute("yScale",t.yScale),s.setAttribute("name",e.name)}handlePageRendered(t){const e=t.detail;console.log("[FIELDS] Page rendered",e),this.cachedPageInfo[e.pageNumber]=e,this.pageHeights[e.pageNumber]=e.naturalHeight,console.log("tsf",e.pageNumber,v.fields);const i=v.fields.filter((t=>t.page_sequence===e.pageNumber));console.log("[FIELDS] Fields on page",i),i.forEach((t=>{const i=d(v.roleNames,t.role_name),s=h(t,e,i,{disabled:!0,editable:!0,draggable:!0});s&&(Array.isArray(s)?s.map((s=>this.attachFieldAttributes(e,t,i,s))):this.attachFieldAttributes(e,t,i,s),n(s).draggable({listeners:{start(t){console.log("[FIELDS] Drag started",t.type,t.target)},move(t){const e=+(t.target.getAttribute("posX")||0),i=+(t.target.getAttribute("posY")||0),s=+(t.target.getAttribute("xScale")||1),o=+(t.target.getAttribute("yScale")||1),a=t.dx/s+e,l=t.dy/o+i;t.target.setAttribute("posX",a),t.target.setAttribute("posy",l),p(t.target,"translate",`${a}px, ${l}px`)},end:this.handleMoveField.bind(this)}}))}))}async handleMoveField(t){const e=t.target.getAttribute("pageNumber"),{naturalWidth:i=612,naturalHeight:s=792,renderedHeight:o=792}=this.cachedPageInfo[e];console.log("[FIELDS] Drag ended",e,t.target);const a=t.target.getBoundingClientRect(),l=t.target.parentElement.getBoundingClientRect(),r=Math.max(a.left-l.left,0),n=Math.max(o-(l.bottom-a.bottom),0),{x:d,y:h}=this.viewCoordinatesToPageCoordinates(r,n,e,i-t.rect.width,s-t.rect.height),p=t.target.getAttribute("name"),c=v.fields.find((t=>t.name===p));if(c){c.setting.x=d,c.setting.y=h;const t=await(m=this.endpoint,g=this.templateId,u=p,x=c,m.api.put("/templates/".concat(g,"/fields/").concat(u),x).then((function(t){return t.data})));console.log("edited field",t),this.handlePageRendered({detail:this.cachedPageInfo[e]})}var m,g,u,x}generateFieldName(t,e){var i;const s=null===(i=v.template.pages)||void 0===i?void 0:i[e-1];return`${t}P${e}-${((null==s?void 0:s.fields)||[]).length}`}viewCoordinatesToPageCoordinates(t,e,i,s,o){const{xScale:a=1,yScale:l=1,renderedHeight:r=792}=this.cachedPageInfo[i];return{x:Math.floor(Math.min(t/a,s)),y:Math.floor(Math.min(Math.max(r-e,0)/l,o))}}async handleClickPage(t,e){if(this.placing){const a=e.sequence,l=t.offsetX,r=t.offsetY,n=c({type:this.placing}),d=m({type:this.placing}),{naturalWidth:h=612,naturalHeight:p=792}=this.cachedPageInfo[a],{x:g,y:u}=this.viewCoordinatesToPageCoordinates(l,r,a,h-n,p-d),x={name:this.generateFieldName(this.placing,a),role_name:this.selectedRoleName,template_id:this.templateId,type:this.placing,required:!0,page_sequence:a,validator:null,setting:{width:n,height:d,x:g,y:u,result:""}},f=await(i=this.endpoint,s=this.templateId,o=x,i.api.post("/templates/".concat(s,"/fields"),o).then((function(t){return t.data})));console.log("Saved field",f),v.fields.push(f),this.placing=null,this.handlePageRendered({detail:this.cachedPageInfo[a]})}var i,s,o}render(){if(!this.endpoint.session)return i(s,null,i("verdocs-component-error",{message:"You must be authenticated to use this module."}));if(v.loading||!v.template)return i(s,null,i("verdocs-loader",null));const t=[...v.template.pages];return t.sort(((t,e)=>t.sequence-e.sequence)),i(s,{class:this.placing?{[`placing-${this.placing}`]:!0}:{}},i("div",{class:"pages"},t.map((t=>i("verdocs-document-page",{pageImageUri:t.display_uri,virtualWidth:612,virtualHeight:792,onClick:e=>this.handleClickPage(e,t),pageNumber:t.sequence,onPageRendered:t=>this.handlePageRendered(t),layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})))),i("verdocs-floating-menu",{options:x,onOptionSelected:t=>{this.placing=t.detail.id}}))}};f.style="verdocs-template-fields{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;position:relative}verdocs-template-fields .page-0{padding:65px 15px 0 15px;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-fields .page-0 .user-placed-fields{height:100px;position:relative;background:#ffffff;-webkit-box-shadow:0 0 10px 5px #0000000f;box-shadow:0 0 10px 5px #0000000f}verdocs-template-fields .page-0 .user-placed-fields .title{top:0;left:0;color:#ffffff;font-size:12px;padding:3px 6px;font-weight:bold;position:absolute;background:#46497d}verdocs-template-fields .pages{display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;position:relative;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-template-fields .pages div,verdocs-template-fields .pages canvas{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-template-fields.placing-attachment{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-checkbox{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-date{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-dropdown{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-initial{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='M6.225 20.775V7h-5V3.225H15V7h-5v13.775Zm9.775 0v-8h-3V9h9.775v3.775h-3v8Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-payment{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-radio{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='M12 17q2.075 0 3.538-1.463Q17 14.075 17 12t-1.462-3.538Q14.075 7 12 7 9.925 7 8.463 8.462 7 9.925 7 12q0 2.075 1.463 3.537Q9.925 17 12 17Zm0 5.85q-2.275 0-4.25-.85t-3.438-2.312Q2.85 18.225 2 16.25q-.85-1.975-.85-4.25T2 7.75q.85-1.975 2.312-3.438Q5.775 2.85 7.75 2q1.975-.85 4.25-.85t4.25.85q1.975.85 3.438 2.312Q21.15 5.775 22 7.75q.85 1.975.85 4.25T22 16.25q-.85 1.975-2.312 3.438Q18.225 21.15 16.25 22q-1.975.85-4.25.85Zm0-3.15q3.25 0 5.475-2.225Q19.7 15.25 19.7 12q0-3.25-2.225-5.475Q15.25 4.3 12 4.3q-3.25 0-5.475 2.225Q4.3 8.75 4.3 12q0 3.25 2.225 5.475Q8.75 19.7 12 19.7Zm0-7.7Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-signature{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m9.225 21.225 4.65-4.65h8.45v4.65Zm-5.35-2.2H5.05l8.5-8.5-1.175-1.175-8.5 8.5Zm14.25-9.95L13.8 4.8l1.325-1.325q.625-.65 1.525-.663.9-.012 1.6.663l1.225 1.175q.675.675.663 1.562-.013.888-.663 1.513ZM16.7 10.55 6 21.225H1.675V16.9L12.35 6.225Zm-3.725-.625-.6-.575 1.175 1.175Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-textarea{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='M3.225 20.725v-3.15h11.55v3.15Zm0-4.775V12.8h17.55v3.15Zm0-4.75V8.05h17.55v3.15Zm0-4.775v-3.15h17.55v3.15Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-textbox{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='M3.425 16.15V13h11.15v3.15Zm0-5.15V7.85h17.15V11Z'/%3E%3C/svg%3E\") 16 16, pointer}verdocs-template-fields.placing-timestamp{cursor:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24' width='24'%3E%3Cpath d='m10.55 16.55 7.275-7.275L16.05 7.5l-5.5 5.45-2.675-2.65L6.1 12.075Zm-5.375 4.925q-1.125 0-1.887-.763-.763-.762-.763-1.887V5.175q0-1.125.763-1.888.762-.762 1.887-.762h13.65q1.125 0 1.888.762.762.763.762 1.888v13.65q0 1.125-.762 1.887-.763.763-1.888.763Zm0-2.65h13.65V5.175H5.175v13.65Zm0-13.65v13.65-13.65Z'/%3E%3C/svg%3E\") 16 16, pointer}";export{u as verdocs_template_create,f as verdocs_template_fields}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r["throw"](e))}catch(e){i(e)}}function l(e){e.done?n(e.value):o(e.value).then(s,a)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,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 l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,o&&(i=s[0]&2?o["return"]:s[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;if(o=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;o=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){n.label=s[1];break}if(s[0]===6&&n.label<i[1]){n.label=i[1];i=s;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(s);break}if(i[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];o=0}finally{r=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,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++){if(i||!(r in t)){if(!i)i=Array.prototype.slice.call(t,0,r);i[r]=t[r]}}return e.concat(i||Array.prototype.slice.call(t))};System.register(["./p-97329951.system.js","./p-a7433630.system.js","./p-a4dc6a79.system.js","./p-d7e31573.system.js","./p-
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r["throw"](e))}catch(e){i(e)}}function l(e){e.done?n(e.value):o(e.value).then(s,a)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,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 l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,o&&(i=s[0]&2?o["return"]:s[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;if(o=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;o=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){n.label=s[1];break}if(s[0]===6&&n.label<i[1]){n.label=i[1];i=s;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(s);break}if(i[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];o=0}finally{r=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,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++){if(i||!(r in t)){if(!i)i=Array.prototype.slice.call(t,0,r);i[r]=t[r]}}return e.concat(i||Array.prototype.slice.call(t))};System.register(["./p-97329951.system.js","./p-a7433630.system.js","./p-a4dc6a79.system.js","./p-d7e31573.system.js","./p-55fc9529.system.js","./p-a95d40dc.system.js","./p-187b20b7.system.js","./p-af2c2f79.system.js","./p-e0cfad01.system.js","./p-327858f0.system.js","./p-0f6da8c7.system.js","./p-d50523fd.system.js","./p-69912cbf.system.js"],(function(e){"use strict";var t,n,r,o,i,s,a,l,c,u;return{setters:[function(e){t=e.r;n=e.c;r=e.h;o=e.H},function(){},function(e){i=e.V},function(e){s=e.r;a=e.a},function(e){l=e.s},function(e){c=e.l},function(e){u=e.S},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var d='verdocs-preview{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:-ms-flexbox;display:flex;padding:15px;row-gap:15px;min-height:200px;position:relative;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-direction:column;flex-direction:column}verdocs-preview div,verdocs-preview canvas{-webkit-box-sizing:border-box;box-sizing:border-box}';var p=e("verdocs_preview",function(){function e(e){t(this,e);this.sdkError=n(this,"sdkError",7);this.endpoint=i.getDefault();this.templateId=null}e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,r;return __generator(this,(function(o){switch(o.label){case 0:this.endpoint.loadSession();if(!this.templateId){console.log("[PREVIEW] Missing required template ID ".concat(this.templateId));return[2]}o.label=1;case 1:o.trys.push([1,3,,4]);console.log("[PREVIEW] Loading template ".concat(this.templateId));return[4,c(this.endpoint,this.templateId)];case 2:o.sent();return[3,4];case 3:r=o.sent();console.log("[PREVIEW] Error loading template",r);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new u(r.message,(t=r.response)===null||t===void 0?void 0:t.status,(n=r.response)===null||n===void 0?void 0:n.data));return[3,4];case 4:return[2]}}))}))};e.prototype.handleFieldChange=function(e,t,n){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){console.log("[PREVIEW] handleFieldChange",e,t,n);return[2]}))}))};e.prototype.handlePageRendered=function(e){var t=e.detail;console.log("[PREVIEW] Page rendered",t);var n=l.fields.filter((function(e){return e.page_sequence===t.pageNumber}));console.log("[PREVIEW] Fields on page",n);n.forEach((function(e){return s(e,t,a(l.roleNames,e.role_name),{disabled:true,editable:false,draggable:false})}))};e.prototype.render=function(){var e=this;if(l.loading||!l.template){return r(o,null,r("verdocs-loader",null))}var t=__spreadArray([],l.template.pages,true);t.sort((function(e,t){return e.sequence-t.sequence}));return r(o,null,t.map((function(t){console.log("rendering page",t);return r("verdocs-document-page",{pageImageUri:t.display_uri,virtualWidth:612,virtualHeight:792,pageNumber:t.sequence,onPageRendered:function(t){return e.handlePageRendered(t)},layers:[{name:"page",type:"canvas"},{name:"controls",type:"div"}]})})))};return e}());p.style=d}}}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,c as e,h as t,H as s}from"./p-ff1278ed.js";import{u as o}from"./p-b28ef4bb.js";import"./p-8efc9749.js";import{V as l}from"./p-2e4dfdc6.js";import{s as a}from"./p-87749601.js";import{l as r}from"./p-848e555d.js";import{S as n}from"./p-7a1b2643.js";import"./p-21603661.js";import"./p-5ea05a1d.js";import"./p-7291906c.js";const p=class{constructor(t){i(this,t),this.close=e(this,"close",7),this.sdkError=e(this,"sdkError",7),this.endpoint=l.getDefault(),this.templateId="",this.dirty=!1,this.loading=!0,this.personal=!1,this.public=!1}async componentWillLoad(){var i,e,t;try{this.endpoint.loadSession(),await r(this.endpoint,this.templateId),this.loading=!1,this.personal=a.template.is_personal,this.public=a.template.is_public,this.dirty=!1}catch(s){console.log("[TEMPLATE VISIBILITY] Error loading template",s),this.loading=!1,null===(i=this.sdkError)||void 0===i||i.emit(new n(s.message,null===(e=s.response)||void 0===e?void 0:e.status,null===(t=s.response)||void 0===t?void 0:t.data))}}handleCancel(i){var e;i.stopPropagation(),this.personal=a.template.is_personal,this.public=a.template.is_public,this.dirty=!1,null===(e=this.close)||void 0===e||e.emit()}async handleSave(i){var e;i.stopPropagation(),await o(this.endpoint,this.templateId,{is_personal:this.personal,is_public:this.public}),a.template.is_personal=this.personal,a.template.is_public=this.public,this.dirty=!1,null===(e=this.close)||void 0===e||e.emit()}render(){return this.endpoint.session?this.endpoint.session&&a.template?t(s,null,t("form",{onSubmit:i=>i.preventDefault(),onClick:i=>i.stopPropagation(),autocomplete:"off"},t("div",{class:"input-row"},t("label",{htmlFor:"verdocs-is-personal"},"Personal"),t("verdocs-checkbox",{id:"verdocs-is-personal",name:"is-personal",checked:this.personal,value:"on",onInput:i=>{this.personal=i.target.checked,this.dirty=!0}})),t("div",{class:"description"},"Personal templates are hidden from other members of your Organization (if any)."),t("div",{class:"input-row"},t("label",{htmlFor:"verdocs-is-public"},"Public"),t("verdocs-checkbox",{id:"verdocs-is-public",name:"is-public",checked:this.public,value:"on",onInput:i=>{this.public=i.target.checked,this.dirty=!0}})),t("div",{class:"description"},"Public templates may appear in results when any other user searches for templates. Note that a template may be both Personal and Public, which may be useful if you want your template to be found via search but not otherwise displayed to other members of your Organization (if any)."),t("div",{class:"buttons"},t("verdocs-button",{size:"small",variant:"outline",label:"Cancel",disabled:!this.dirty,onClick:i=>this.handleCancel(i)}),t("verdocs-button",{size:"small",label:"Save",disabled:!this.dirty,onClick:i=>this.handleSave(i)})))):t(s,{class:"empty"}):t(s,null,t("verdocs-component-error",{message:"You must be authenticated to use this module."}))}};p.style='verdocs-template-visibility{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-template-visibility.loading{min-height:300px;position:relative;display:block}verdocs-template-visibility.empty{display:none}verdocs-template-visibility form{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-visibility form .description{font-size:14px;text-align:justify;margin-bottom:20px;color:#5c6575}verdocs-template-visibility form label{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;font-size:18px;font-weight:500;margin:0 0 4px 0;color:#5c6575}verdocs-template-visibility form input{border:none;font-size:18px;padding:3px 6px 3px 0;background:transparent;border-bottom:1px solid #33364b}verdocs-template-visibility form input:focus{outline:none}verdocs-template-visibility form .input-row{display:-ms-flexbox;display:flex;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-visibility form .input-row verdocs-text-input{margin:0;display:-ms-flexbox;display:flex;-ms-flex:0 0 40px;flex:0 0 40px}verdocs-template-visibility form .input-row verdocs-text-input input{text-align:center}verdocs-template-visibility form .input-row verdocs-checkbox{display:-ms-flexbox;display:flex;-ms-flex:0 0 40px;flex:0 0 40px;-ms-flex-pack:center;justify-content:center}verdocs-template-visibility .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-template-visibility ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-visibility ::-moz-placeholder{color:#aaaaaa}verdocs-template-visibility :-ms-input-placeholder{color:#aaaaaa}verdocs-template-visibility ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-visibility ::placeholder{color:#aaaaaa}';export{p as verdocs_template_visibility}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as t,h as s,H as i}from"./p-ff1278ed.js";import"./p-8efc9749.js";import{V as r}from"./p-2e4dfdc6.js";import{s as o}from"./p-87749601.js";import{l as a}from"./p-848e555d.js";import{S as n}from"./p-7a1b2643.js";import"./p-21603661.js";import"./p-5ea05a1d.js";import"./p-7291906c.js";import"./p-b28ef4bb.js";const l=class{constructor(s){e(this,s),this.close=t(this,"close",7),this.sdkError=t(this,"sdkError",7),this.endpoint=r.getDefault(),this.templateId="",this.showPlanBlocker=!1,this.sendReminders=!1,this.firstReminderDays="1",this.reminderDays="1",this.dirty=!1,this.loading=!0}async componentWillLoad(){var e,t,s;try{this.endpoint.loadSession(),await a(this.endpoint,this.templateId),this.loading=!1,this.sendReminders=!!o.template.reminder_id,this.dirty=!1}catch(i){console.log("[TEMPLATE REMINDERS] Error loading template",i),this.loading=!1,null===(e=this.sdkError)||void 0===e||e.emit(new n(i.message,null===(t=i.response)||void 0===t?void 0:t.status,null===(s=i.response)||void 0===s?void 0:s.data))}}handleCancel(e){var t;e.stopPropagation(),this.sendReminders=!!o.template.reminder_id,this.dirty=!1,null===(t=this.close)||void 0===t||t.emit()}async handleSave(e){var t,s,i,r;if(e.stopPropagation(),this.sendReminders){const e={setup_time:864e5*+this.firstReminderDays,interval_time:864e5*+this.reminderDays};o.template.reminder_id?await function(e,t,s,i){return e.api.put("/templates/".concat(t,"/reminder/").concat(s),i).then((function(e){return e.data}))}(this.endpoint,this.templateId,o.template.reminder_id,e):await function(e,t,s){return e.api.post("/templates/".concat(t,"/reminder/"),s).then((function(e){return e.data}))}(this.endpoint,this.templateId,e)}else await(s=this.endpoint,i=this.templateId,r=o.template.reminder_id,s.api.delete("/templates/".concat(i,"/reminder/").concat(r)).then((function(e){return e.data})));this.dirty=!1,null===(t=this.close)||void 0===t||t.emit()}render(){return this.endpoint.session?this.endpoint.session&&o.template?s(i,null,s("form",{onSubmit:e=>e.preventDefault(),onClick:e=>e.stopPropagation(),autocomplete:"off"},s("div",{class:"input-row"},s("label",{htmlFor:"verdocs-send-reminders"},"Send Automatic Reminders"),s("verdocs-checkbox",{id:"verdocs-send-reminders",name:"automatic-reminders",checked:this.sendReminders,value:"on",onInput:e=>{this.showPlanBlocker=!0,e.target.checked=!1}})),s("div",{class:"input-row"},s("label",{htmlFor:"verdocs-first-reminder-days"},"Days Before First Reminder"),s("verdocs-text-input",{id:"verdocs-first-reminder-days",type:"number",value:this.firstReminderDays,onInput:e=>this.firstReminderDays=e.target.value,disabled:!this.sendReminders})),s("div",{class:"input-row"},s("label",{htmlFor:"verdocs-days-between-reminders"},"Days Between Reminders"),s("verdocs-text-input",{id:"verdocs-days-between-reminders",type:"number",value:this.reminderDays,onInput:e=>this.reminderDays=e.target.value,disabled:!this.sendReminders})),s("div",{class:"buttons"},s("verdocs-button",{size:"small",variant:"outline",label:"Cancel",disabled:!this.dirty,onClick:e=>this.handleCancel(e)}),s("verdocs-button",{size:"small",label:"Save",disabled:!this.dirty,onClick:e=>this.handleSave(e)}))),this.showPlanBlocker&&s("verdocs-ok-dialog",{heading:"Upgrade to access this feature",message:"Please upgrade your plan to access this feature.",onNext:()=>this.showPlanBlocker=!1})):s(i,{class:"empty"}):s(i,null,s("verdocs-component-error",{message:"You must be authenticated to use this module."}))}};l.style='verdocs-template-reminders{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-template-reminders.loading{min-height:300px;position:relative;display:block}verdocs-template-reminders.empty{display:none}verdocs-template-reminders form{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-template-reminders form label{font-size:16px;font-weight:500;margin:0 0 6px 0}verdocs-template-reminders form input{border:none;font-size:18px;padding:3px 6px 3px 0;background:transparent;border-bottom:1px solid #33364b}verdocs-template-reminders form input:focus{outline:none}verdocs-template-reminders form .input-row{display:-ms-flexbox;display:flex;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-template-reminders form .input-row label{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex}verdocs-template-reminders form .input-row verdocs-text-input{margin:0;display:-ms-flexbox;display:flex;-ms-flex:0 0 60px;flex:0 0 60px}verdocs-template-reminders form .input-row verdocs-text-input input{text-align:center}verdocs-template-reminders form .input-row verdocs-checkbox{display:-ms-flexbox;display:flex;-ms-flex:0 0 40px;flex:0 0 40px;-ms-flex-pack:center;justify-content:center}verdocs-template-reminders .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-template-reminders ::-webkit-input-placeholder{color:#aaaaaa}verdocs-template-reminders ::-moz-placeholder{color:#aaaaaa}verdocs-template-reminders :-ms-input-placeholder{color:#aaaaaa}verdocs-template-reminders ::-ms-input-placeholder{color:#aaaaaa}verdocs-template-reminders ::placeholder{color:#aaaaaa}';export{l as verdocs_template_reminders}
|
|
@@ -1 +1 @@
|
|
|
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{
|
|
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{l(o.next(e))}catch(e){i(e)}}function a(e){try{l(o["throw"](e))}catch(e){i(e)}}function l(e){e.done?t(e.value):r(e.value).then(s,a)}l((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:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(n){return l([e,n])}}function l(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-7ac87084.system.js","./p-187b20b7.system.js","./p-d7e31573.system.js","./p-af2c2f79.system.js","./p-e0cfad01.system.js","./p-0f6da8c7.system.js","./p-69912cbf.system.js","./p-327858f0.system.js"],(function(e){"use strict";var n,t,o,r,i,s,a,l,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){a=e.V},function(e){l=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=a.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,l(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}}}));
|