@verdocs/web-sdk 1.4.2 → 1.5.0
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/VerdocsEndpoint-5e6dd8ef.js +4780 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/verdocs-auth.cjs.entry.js +33 -24
- package/dist/cjs/verdocs-button_2.cjs.entry.js +1 -2
- package/dist/cjs/verdocs-dropdown_12.cjs.entry.js +26 -22
- package/dist/cjs/verdocs-kba-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-ok-dialog.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-quick-functions.cjs.entry.js +6 -1
- package/dist/cjs/verdocs-search-activity_2.cjs.entry.js +42 -37
- package/dist/cjs/verdocs-search-tabs.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-search.cjs.entry.js +7 -2
- package/dist/cjs/verdocs-sign.cjs.entry.js +26 -161
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/components/controls/verdocs-button/verdocs-button.css +1 -1
- package/dist/collection/components/controls/verdocs-button/verdocs-button.js +0 -1
- package/dist/collection/components/dialogs/verdocs-kba-dialog/verdocs-kba-dialog.css +1 -1
- package/dist/collection/components/dialogs/verdocs-ok-dialog/verdocs-ok-dialog.css +1 -1
- package/dist/collection/components/elements/verdocs-field-attachment/verdocs-field-attachment.css +1 -1
- package/dist/collection/components/elements/verdocs-field-checkbox-group/verdocs-field-checkbox.css +1 -1
- package/dist/collection/components/elements/verdocs-field-date/verdocs-field-date.css +1 -1
- package/dist/collection/components/elements/verdocs-field-dropdown/verdocs-field-dropdown.css +1 -1
- package/dist/collection/components/elements/verdocs-field-initial/verdocs-field-initial.css +1 -1
- package/dist/collection/components/elements/verdocs-field-payment/verdocs-field-payment.css +1 -1
- package/dist/collection/components/elements/verdocs-field-radio-button-group/verdocs-field-radio-button.css +1 -1
- package/dist/collection/components/elements/verdocs-field-signature/verdocs-field-signature.css +1 -1
- package/dist/collection/components/elements/verdocs-field-textarea/verdocs-field-textarea.css +1 -1
- package/dist/collection/components/elements/verdocs-field-textbox/verdocs-field-textbox.css +1 -1
- package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.css +1 -1
- package/dist/collection/components/elements/verdocs-quick-functions/verdocs-quick-functions.js +31 -1
- package/dist/collection/components/elements/verdocs-search-activity/verdocs-search-activity.css +1 -1
- package/dist/collection/components/elements/verdocs-search-activity/verdocs-search-activity.js +30 -6
- package/dist/collection/components/elements/verdocs-search-box/verdocs-search-box.css +1 -1
- package/dist/collection/components/elements/verdocs-search-box/verdocs-search-box.js +26 -0
- package/dist/collection/components/elements/verdocs-search-tabs/verdocs-search-tabs.css +1 -1
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.css +2 -5
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +40 -24
- package/dist/collection/components/embeds/verdocs-search/verdocs-search.css +1 -1
- package/dist/collection/components/embeds/verdocs-search/verdocs-search.js +36 -6
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.css +28 -27
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +40 -23
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.stories.js +2 -2
- package/dist/collection/components/embeds/verdocs-view/verdocs-view.css +1 -1
- package/dist/collection/components/embeds/verdocs-view/verdocs-view.js +26 -0
- package/dist/components/VerdocsEndpoint.js +4766 -0
- package/dist/components/verdocs-auth.js +34 -23
- package/dist/components/verdocs-button2.js +1 -2
- package/dist/components/verdocs-field-attachment2.js +1 -1
- package/dist/components/verdocs-field-checkbox2.js +1 -1
- package/dist/components/verdocs-field-date2.js +1 -1
- package/dist/components/verdocs-field-dropdown2.js +1 -1
- package/dist/components/verdocs-field-initial2.js +1 -1
- package/dist/components/verdocs-field-payment2.js +1 -1
- package/dist/components/verdocs-field-radio-button2.js +1 -1
- package/dist/components/verdocs-field-signature2.js +1 -1
- package/dist/components/verdocs-field-textarea2.js +1 -1
- package/dist/components/verdocs-field-textbox2.js +1 -1
- package/dist/components/verdocs-kba-dialog.js +1 -1
- package/dist/components/verdocs-ok-dialog2.js +1 -1
- package/dist/components/verdocs-quick-functions.js +9 -2
- package/dist/components/verdocs-search-activity2.js +38 -35
- package/dist/components/verdocs-search-box2.js +7 -1
- package/dist/components/verdocs-search-tabs.js +1 -1
- package/dist/components/verdocs-search.js +10 -3
- package/dist/components/verdocs-sign.js +27 -162
- package/dist/components/verdocs-view2.js +7 -2
- package/dist/custom-elements.json +830 -0
- package/dist/docs.json +118 -4
- package/dist/esm/VerdocsEndpoint-30e1b6ec.js +4766 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/verdocs-auth.entry.js +33 -24
- package/dist/esm/verdocs-button_2.entry.js +1 -2
- package/dist/esm/verdocs-dropdown_12.entry.js +16 -12
- package/dist/esm/verdocs-kba-dialog.entry.js +1 -1
- package/dist/esm/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm/verdocs-quick-functions.entry.js +6 -1
- package/dist/esm/verdocs-search-activity_2.entry.js +42 -37
- package/dist/esm/verdocs-search-tabs.entry.js +1 -1
- package/dist/esm/verdocs-search.entry.js +7 -2
- package/dist/esm/verdocs-sign.entry.js +26 -161
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/VerdocsEndpoint-30e1b6ec.js +7 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/verdocs-auth.entry.js +1 -1
- package/dist/esm-es5/verdocs-button_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-dropdown_12.entry.js +2 -2
- package/dist/esm-es5/verdocs-kba-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-ok-dialog.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions.entry.js +1 -1
- package/dist/esm-es5/verdocs-search-activity_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-search-tabs.entry.js +1 -1
- package/dist/esm-es5/verdocs-search.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/elements/verdocs-quick-functions/verdocs-quick-functions.d.ts +5 -0
- package/dist/types/components/elements/verdocs-search-activity/verdocs-search-activity.d.ts +5 -0
- package/dist/types/components/elements/verdocs-search-box/verdocs-search-box.d.ts +5 -0
- package/dist/types/components/embeds/verdocs-auth/verdocs-auth.d.ts +11 -6
- package/dist/types/components/embeds/verdocs-search/verdocs-search.d.ts +5 -0
- package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +6 -3
- package/dist/types/components/embeds/verdocs-view/verdocs-view.d.ts +5 -0
- package/dist/types/components.d.ts +57 -0
- package/dist/verdocs-web-sdk/{p-ed5baeb4.entry.js → p-064453c3.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-06f38046.js +1 -0
- package/dist/verdocs-web-sdk/p-16d62a51.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-1b4e04b7.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-1ea3b9d3.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-30cc8818.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-0353c423.entry.js → p-32ad1014.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-4d80d044.system.js +7 -0
- package/dist/verdocs-web-sdk/{p-432c3151.system.entry.js → p-81fc0196.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-8276345a.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-88a300c5.system.js +1 -1
- package/dist/verdocs-web-sdk/p-9139a76d.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-9d8d8c78.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-a87069d5.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-aa9fc574.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-c29c2cf8.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-98d72550.system.entry.js → p-c4d03ff9.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-cd6a2c40.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-d14a6057.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-a1fcf0c4.entry.js → p-d522de7d.entry.js} +2 -2
- package/dist/verdocs-web-sdk/{p-e2e643c5.system.entry.js → p-e4ba14dc.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-f4219236.entry.js +1 -0
- package/dist/verdocs-web-sdk/p-f6a53928.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/Auth-adc80bd4.js +0 -68
- package/dist/cjs/Token-1ec62bd3.js +0 -2330
- package/dist/cjs/buffer-es6-bc8199b1.js +0 -2018
- package/dist/components/Auth.js +0 -64
- package/dist/components/Token.js +0 -2325
- package/dist/components/buffer-es6.js +0 -2010
- package/dist/esm/Auth-ff6040be.js +0 -64
- package/dist/esm/Token-a587e3ad.js +0 -2325
- package/dist/esm/buffer-es6-136673c8.js +0 -2010
- package/dist/esm-es5/Auth-ff6040be.js +0 -1
- package/dist/esm-es5/Token-a587e3ad.js +0 -1
- package/dist/esm-es5/buffer-es6-136673c8.js +0 -7
- package/dist/verdocs-web-sdk/p-11bc03a5.js +0 -1
- package/dist/verdocs-web-sdk/p-34bb9854.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-3d1eb63d.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-3f437456.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-466cf9bf.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-5dfd73f9.system.js +0 -7
- package/dist/verdocs-web-sdk/p-6348272c.js +0 -1
- package/dist/verdocs-web-sdk/p-6ac9e6f8.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-6d65d54e.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-8795dbe8.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-8c6db319.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-8c6e29a5.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-92632d8e.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-9fbb3fc2.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-b1cd24f7.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-cd6d1fe5.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e3659c64.system.js +0 -1
- package/dist/verdocs-web-sdk/p-e609b2ee.system.js +0 -1
- package/dist/verdocs-web-sdk/p-ef932a87.js +0 -1
- package/dist/verdocs-web-sdk/p-f9d431ef.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,c as createEvent,h,F as Fragment,H as Host}from"./index-859bc689.js";var Question='<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M20 0C8.95313 0 0 8.95313 0 20C0 31.0469 8.95313 40 20 40C31.0469 40 40 31.0469 40 20C40 8.95313 31.0469 0 20 0ZM20 36.25C11.0391 36.25 3.75 28.9602 3.75 20C3.75 11.0398 11.0391 3.75 20 3.75C28.9609 3.75 36.25 11.0398 36.25 20C36.25 28.9602 28.9609 36.25 20 36.25Z" fill="white"/>\n<path d="M20 26.25C18.5938 26.25 17.5 27.3438 17.5 28.75C17.5 30.1562 18.5234 31.25 20 31.25C21.3359 31.25 22.5 30.1562 22.5 28.75C22.5 27.3438 21.3359 26.25 20 26.25ZM22.5859 10H18.5938C15.5469 10 13.125 12.4219 13.125 15.4688C13.125 16.4844 13.9844 17.3438 15 17.3438C16.0156 17.3438 16.875 16.4844 16.875 15.4688C16.875 14.5312 17.5859 13.75 18.5234 13.75H22.5156C23.5234 13.75 24.375 14.5312 24.375 15.4688C24.375 16.0938 24.0625 16.5703 23.5156 16.8828L19.0625 19.6094C18.4375 20 18.125 20.625 18.125 21.25V22.5C18.125 23.5156 18.9844 24.375 20 24.375C21.0156 24.375 21.875 23.5156 21.875 22.5V22.3438L25.3984 20.1562C27.0391 19.1406 28.0547 17.3438 28.0547 15.4688C28.125 12.4219 25.7031 10 22.5859 10Z" fill="#E7E7E7"/>\n</svg>\n';var verdocsKbaDialogCss='verdocs-kba-dialog{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-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-kba-dialog .dialog{width:440px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#fff;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-kba-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-kba-dialog .step{margin-left:6px;color:#666}verdocs-kba-dialog .help-box{background-color:#707ae5;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;margin:14px 0;padding:14px;-ms-flex-align:center;align-items:center;color:white}verdocs-kba-dialog .help-details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:15px;font-size:14px}verdocs-kba-dialog .help-icon{width:40px;height:40px}verdocs-kba-dialog .help-title{font-weight:600;margin-bottom:4px}verdocs-kba-dialog .help-text{font-weight:400}verdocs-kba-dialog .choices{display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));margin:0 0 15px 0}verdocs-kba-dialog .choice{border
|
|
1
|
+
import{r as registerInstance,c as createEvent,h,F as Fragment,H as Host}from"./index-859bc689.js";var Question='<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M20 0C8.95313 0 0 8.95313 0 20C0 31.0469 8.95313 40 20 40C31.0469 40 40 31.0469 40 20C40 8.95313 31.0469 0 20 0ZM20 36.25C11.0391 36.25 3.75 28.9602 3.75 20C3.75 11.0398 11.0391 3.75 20 3.75C28.9609 3.75 36.25 11.0398 36.25 20C36.25 28.9602 28.9609 36.25 20 36.25Z" fill="white"/>\n<path d="M20 26.25C18.5938 26.25 17.5 27.3438 17.5 28.75C17.5 30.1562 18.5234 31.25 20 31.25C21.3359 31.25 22.5 30.1562 22.5 28.75C22.5 27.3438 21.3359 26.25 20 26.25ZM22.5859 10H18.5938C15.5469 10 13.125 12.4219 13.125 15.4688C13.125 16.4844 13.9844 17.3438 15 17.3438C16.0156 17.3438 16.875 16.4844 16.875 15.4688C16.875 14.5312 17.5859 13.75 18.5234 13.75H22.5156C23.5234 13.75 24.375 14.5312 24.375 15.4688C24.375 16.0938 24.0625 16.5703 23.5156 16.8828L19.0625 19.6094C18.4375 20 18.125 20.625 18.125 21.25V22.5C18.125 23.5156 18.9844 24.375 20 24.375C21.0156 24.375 21.875 23.5156 21.875 22.5V22.3438L25.3984 20.1562C27.0391 19.1406 28.0547 17.3438 28.0547 15.4688C28.125 12.4219 25.7031 10 22.5859 10Z" fill="#E7E7E7"/>\n</svg>\n';var verdocsKbaDialogCss='verdocs-kba-dialog{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-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-kba-dialog .dialog{width:440px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#fff;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-kba-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-kba-dialog .step{margin-left:6px;color:#666}verdocs-kba-dialog .help-box{background-color:#707ae5;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;margin:14px 0;padding:14px;-ms-flex-align:center;align-items:center;color:white}verdocs-kba-dialog .help-details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:15px;font-size:14px}verdocs-kba-dialog .help-icon{width:40px;height:40px}verdocs-kba-dialog .help-title{font-weight:600;margin-bottom:4px}verdocs-kba-dialog .help-text{font-weight:400}verdocs-kba-dialog .choices{display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));margin:0 0 15px 0}verdocs-kba-dialog .choice{border:1px solid #707ae5;border-radius:5px;display:-ms-flexbox;display:flex;height:60px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;color:#5c6575;cursor:pointer}verdocs-kba-dialog .choice.selected{background-color:#707ae5;color:#ffffff}verdocs-kba-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-kba-dialog .buttons verdocs-button{margin-left:16px}';var VerdocsKbaDialog=function(){function e(e){registerInstance(this,e);this.cancel=createEvent(this,"cancel",7);this.done=createEvent(this,"done",7);this.step=1;this.steps=3;this.helptitle="One Time Code";this.helptext="Please check your text messages for a security code, and enter the code below.";this.mode="choice";this.label="PIN";this.placeholder="Enter your PIN...";this.choices=["553 Arbor Dr","18 Lacey Ln","23A Ball Ct","2375 Cavallo Blvd","23-1 RR-7","151 Boulder Rd"];this.open=false;this.response=""}e.prototype.handleCancel=function(){this.cancel.emit();this.open=false};e.prototype.handleDismiss=function(e){if(e.target.className==="background-overlay"){e.preventDefault();this.handleCancel()}};e.prototype.handleDone=function(){this.done.emit(this.response);this.open=false};e.prototype.render=function(){var e=this;return h(Host,{style:{display:this.open?"block":"none"}},h("div",{class:"background-overlay",onClick:function(o){return e.handleDismiss(o)}},h("div",{class:"dialog"},h("div",{class:"heading"},"Confirm Your Identity",this.steps>1?h("span",{class:"step"},"(",this.step,"/",this.steps,")"):h(Fragment,null)),h("div",{class:"help-box"},h("div",{class:"help-icon",innerHTML:Question}),h("div",{class:"help-details"},h("div",{class:"help-title"},this.helptitle),h("div",{class:"help-text"},this.helptext))),this.mode==="choice"?h("div",{class:"choices"},this.choices.map((function(o){return h("div",{class:"choice ".concat(o===e.response?"selected":""),onClick:function(){e.response=o}},o)}))):h("div",{class:"input"},h("label",{htmlFor:"verdocs-kba-input"},this.label),h("input",{type:"text",id:"verdocs-kba-input",name:"verdocs-kba-input",placeholder:this.placeholder})),h("div",{class:"buttons"},h("verdocs-button",{label:"Cancel",variant:"outline",onPress:function(){return e.handleCancel()}}),h("verdocs-button",{label:"Done",onPress:function(){return e.handleDone()},disabled:!this.response})))))};return e}();VerdocsKbaDialog.style=verdocsKbaDialogCss;export{VerdocsKbaDialog as verdocs_kba_dialog};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,c as createEvent,h,H as Host}from"./index-859bc689.js";var verdocsOkDialogCss='verdocs-ok-dialog{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-ok-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-ok-dialog .dialog{max-width:50%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;-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-ok-dialog .heading{display:-ms-flexbox;display:flex;font-size:16px;-ms-flex-direction:row;flex-direction:row;background:#444444;padding:8px 16px;color:#ffffff}verdocs-ok-dialog .content{font-size:
|
|
1
|
+
import{r as registerInstance,c as createEvent,h,H as Host}from"./index-859bc689.js";var verdocsOkDialogCss='verdocs-ok-dialog{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-ok-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-ok-dialog .dialog{max-width:50%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;-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-ok-dialog .heading{display:-ms-flexbox;display:flex;font-size:16px;-ms-flex-direction:row;flex-direction:row;background:#444444;padding:8px 16px;color:#ffffff}verdocs-ok-dialog .content{font-size:16px;background:#ffffff;padding:20px}verdocs-ok-dialog .buttons{display:-ms-flexbox;display:flex;margin:20px 0 0 0;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}verdocs-ok-dialog .buttons verdocs-button{margin-left:16px}';var VerdocsOkDialog=function(){function e(e){registerInstance(this,e);this.closed=createEvent(this,"closed",7);this.heading="";this.message="";this.open=false;this.cancel=false}e.prototype.handleClose=function(e){this.closed.emit(e);this.open=false};e.prototype.handleDismiss=function(e){if(e.target.className==="background-overlay"){e.preventDefault();this.handleClose("cancel")}};e.prototype.render=function(){var e=this;return h(Host,{style:{display:this.open?"block":"none"}},h("div",{class:"background-overlay",onClick:function(o){return e.handleDismiss(o)}},h("div",{class:"dialog"},h("div",{class:"heading"},this.heading),h("div",{class:"content"},this.message,h("div",{class:"buttons"},this.cancel?h("verdocs-button",{label:"CANCEL",variant:"outline",onPress:function(){return e.handleClose("cancel")}}):h("div",{style:{display:"none"}}),h("verdocs-button",{label:"OK",onPress:function(){return e.handleClose("ok")}}))))))};return e}();VerdocsOkDialog.style=verdocsOkDialogCss;export{VerdocsOkDialog as verdocs_ok_dialog};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,c as createEvent,h}from"./index-859bc689.js";var TemplateIcon='<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><g><rect fill="none" height="24" width="24"/><g><path d="M19,5v14H5V5H19 M19,3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2V5C21,3.9,20.1,3,19,3L19,3z"/></g><path d="M14,17H7v-2h7V17z M17,13H7v-2h10V13z M17,9H7V7h10V9z"/></g></svg>';var DocumentIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"/></svg>';var verdocsQuickFunctionsCss='verdocs-quick-functions{font-family:"
|
|
1
|
+
import{r as registerInstance,c as createEvent,h}from"./index-859bc689.js";import{V as VerdocsEndpoint}from"./VerdocsEndpoint-30e1b6ec.js";var TemplateIcon='<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><g><rect fill="none" height="24" width="24"/><g><path d="M19,5v14H5V5H19 M19,3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2V5C21,3.9,20.1,3,19,3L19,3z"/></g><path d="M14,17H7v-2h7V17z M17,13H7v-2h10V13z M17,9H7V7h10V9z"/></g></svg>';var DocumentIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"/></svg>';var verdocsQuickFunctionsCss='verdocs-quick-functions{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-quick-functions .container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:240px;background-color:var(--verdocs-background-dark);text-transform:uppercase;padding:10px 10px 20px 10px;font-family:sans-serif;color:#ffffff}verdocs-quick-functions .title{font-size:22px;font-weight:700;line-height:30px;margin:1em 0 40px 0}verdocs-quick-functions button{width:140px;height:40px;border:none;display:-ms-flexbox;display:flex;color:#ffffff;cursor:pointer;font-size:14px;font-weight:700;line-height:25px;-ms-flex-align:center;align-items:center;margin-bottom:20px;border-radius:5px;text-transform:uppercase;-ms-flex-pack:space-evenly;justify-content:space-evenly;background-color:#50be50}verdocs-quick-functions button svg{fill:#ffffff}';var VerdocsQuickFunctions=function(){function e(e){registerInstance(this,e);this.createTemplate=createEvent(this,"createTemplate",7);this.createDocument=createEvent(this,"createDocument",7);this.endpoint=VerdocsEndpoint.getDefault()}e.prototype.handleCreateTemplate=function(){this.createTemplate.emit()};e.prototype.handleCreateDocument=function(){this.createDocument.emit()};e.prototype.render=function(){var e=this;return h("div",{class:"container"},h("p",{class:"title"},"Quick Create"),h("button",{onClick:function(){return e.handleCreateTemplate()},innerHTML:TemplateIcon},"Template"),h("button",{onClick:function(){return e.handleCreateDocument()},innerHTML:DocumentIcon},"Document"))};return e}();VerdocsQuickFunctions.style=verdocsQuickFunctionsCss;export{VerdocsQuickFunctions as verdocs_quick_functions};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,c as createEvent,h}from"./index-859bc689.js";import{l as loadSession}from"./Auth-ff6040be.js";import{g as getEndpoint}from"./Token-a587e3ad.js";import"./buffer-es6-136673c8.js";var __awaiter=undefined&&undefined.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n["throw"](e))}catch(e){o(e)}}function c(e){e.done?r(e.value):i(e.value).then(s,a)}c((n=n.apply(e,t||[])).next())}))};var __generator=undefined&&undefined.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return c([e,t])}}function c(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(s[0]===6&&r.label<o[1]){r.label=o[1];o=s;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(s);break}if(o[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];i=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var getSearchHistory=function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(e){return[2,getEndpoint().api.get("/search/history").then((function(e){return e.data}))]}))}))};var getTemplates=function(e){return getEndpoint().api.get("/templates/",{params:e}).then((function(e){return e.data}))};var DocumentIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"/></svg>';var verdocsSearchActivityCss='verdocs-search-activity{font-family:"Barlow", sans-serif}verdocs-search-activity .container{display:-ms-flexbox;display:flex;width:240px;color:#ffffff;-ms-flex-direction:column;flex-direction:column;text-transform:uppercase;padding:10px 10px 20px 10px;background-color:var(--verdocs-background-dark)}verdocs-search-activity .title{font-size:22px;font-weight:700;line-height:30px}verdocs-search-activity .items{display:-ms-flexbox;display:flex;margin-top:20px;-ms-flex-direction:column;flex-direction:column}verdocs-search-activity .item{border:none;display:-ms-flexbox;display:flex;text-align:left;margin-bottom:20px;-ms-flex-direction:row;flex-direction:row;background:transparent}verdocs-search-activity .item:hover{cursor:pointer}verdocs-search-activity .icon{-ms-flex:0 0 22px;flex:0 0 22px;margin-right:14px}verdocs-search-activity .icon svg{fill:#707ae5;width:22px;height:22px}verdocs-search-activity .details{display:-ms-flexbox;display:flex;overflow:hidden;-ms-flex-direction:column;flex-direction:column}verdocs-search-activity .item-title{font-size:16px;font-weight:400;color:#ffffff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}verdocs-search-activity .info{font-size:14px;font-weight:500;line-height:23px;color:#aeb4bf}verdocs-search-activity .empty{text-transform:none;line-height:22px;color:#ccc}';var SOURCE="verdocs-stage";var VerdocsSearchActivity=function(){function e(e){registerInstance(this,e);this.entrySelected=createEvent(this,"entrySelected",7);this.type="recent";this.emptyMessage="You do not have any starred searches.";this.authFailure=false;this.title="Recent Searches";this.recent=[];this.saved=[];this.starred=[]}e.prototype.componentWillLoad=function(){var e=this;loadSession(SOURCE);var t=function(t){var r;console.warn("[Verdocs/search-activity] Error getting search data",t);if(((r=t===null||t===void 0?void 0:t.response)===null||r===void 0?void 0:r.status)===401){e.authFailure=true}};switch(this.type){case"recent":this.title="Recent Searches";this.emptyMessage="You do not have any recent searches.";getSearchHistory().then((function(t){return e.recent=t.recent})).catch(t);break;case"saved":this.title="Saved Searches";this.emptyMessage="You do not have any saved searches.";getSearchHistory().then((function(t){return e.saved=t.saved})).catch(t);break;case"starred":this.title="My Starred items";this.emptyMessage="You do not have any starred templates.";getTemplates({is_starred:true}).then((function(t){return e.starred=t})).catch(t);break}};e.prototype.handleSelectEntry=function(e){this.entrySelected.emit(e)};e.prototype.computePagesText=function(e){if(e<2){return"".concat(e," Page")}else{return"".concat(e," Pages")}};e.prototype.computeRecipientsText=function(e){if(typeof e==="object"){return e.join(", ")}else if(e>1){return"".concat(e," Recipients")}else{return"".concat(e," Recipient")}};e.prototype.render=function(){var e=this;var t=this.recent.length<1&&this.saved.length<1&&this.starred.length<1;return h("div",{class:"container"},h("p",{class:"title"},this.title),h("div",{class:"items"},this.recent.map((function(t){return h("button",{class:"item",onClick:function(){return e.handleSelectEntry(t)}},h("div",{class:"icon",innerHTML:DocumentIcon}),h("div",{class:"details"},h("div",{class:"item-title"},t.params.q),h("div",{class:"info"},"Test")))})),this.saved.map((function(t){return h("button",{class:"item",onClick:function(){return e.handleSelectEntry(t)}},h("div",{class:"icon",innerHTML:DocumentIcon}),h("div",{class:"details"},h("div",{class:"item-title"},t.params.q),h("div",{class:"info"})))})),t&&h("div",{class:"empty"},this.authFailure?"Authentication required":this.emptyMessage)))};return e}();VerdocsSearchActivity.style=verdocsSearchActivityCss;var SearchIcon='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M23.4809 20.7176L17.9111 15.2536C19.0961 13.6368 19.727 11.6926 19.7128 9.70131C19.7201 7.53345 18.9846 5.42606 17.6244 3.71753C16.2642 2.009 14.3581 0.798456 12.2123 0.280282C10.0665 -0.237892 7.80552 -0.0336342 5.79227 0.86026C3.77902 1.75415 2.13038 3.28582 1.1111 5.20931C0.0918114 7.1328 -0.238985 9.33652 0.171813 11.4666C0.582612 13.5967 1.71117 15.5296 3.37628 16.9548C5.0414 18.3801 7.14646 19.2151 9.35344 19.3257C11.5604 19.4364 13.7413 18.8162 15.5458 17.5649L21.1372 23.05L21.1563 23.0663C21.4841 23.3487 21.9039 23.507 22.3401 23.5128C22.7823 23.5125 23.2063 23.3402 23.5191 23.0337V23.0337C23.6749 22.8812 23.7979 22.6995 23.8804 22.4993C23.963 22.2991 24.0036 22.0847 23.9997 21.8688C23.9959 21.6529 23.9477 21.44 23.858 21.2428C23.7683 21.0456 23.639 20.8682 23.4778 20.7212L23.4809 20.7176ZM14.5167 14.1975C13.4564 15.2349 12.0623 15.8797 10.5719 16.022C9.08145 16.1644 7.58681 15.7955 6.34249 14.9781C5.09816 14.1608 4.18109 12.9456 3.74751 11.5395C3.31393 10.1334 3.39064 8.6233 3.96455 7.26643C4.53846 5.90955 5.57409 4.7898 6.89507 4.09787C8.21606 3.40594 9.74071 3.18461 11.2093 3.4716C12.678 3.75858 13.9998 4.53612 14.9497 5.6718C15.8996 6.80748 16.4188 8.23105 16.4189 9.7001C16.4196 10.5357 16.2519 11.3632 15.9254 12.135C15.599 12.9069 15.1202 13.6078 14.5167 14.1975V14.1975Z" fill="white"/>\n</svg>\n';var CloseIcon='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M14.0739 11.7565L19.7127 6.23228C20.0875 5.85692 20.0875 5.25309 19.7127 4.87773L19.0213 4.20046C18.6382 3.82511 18.0219 3.82511 17.6387 4.20046L12 9.72472L6.36127 4.20046C5.97814 3.82511 5.36179 3.82511 4.97866 4.20046L4.28735 4.87773C3.90422 5.25309 3.90422 5.85692 4.28735 6.23228L9.92608 11.7565L4.28735 17.2808C3.90422 17.6561 3.90422 18.26 4.28735 18.6353L4.97866 19.3126C5.36179 19.688 5.97814 19.688 6.36127 19.3126L12 13.7883L17.6387 19.3126C18.0219 19.688 18.6382 19.688 19.0213 19.3126L19.7127 18.6353C20.0958 18.26 20.0958 17.6561 19.7127 17.2808L14.0739 11.7565Z" fill="white"/>\n</svg>\n';var verdocsSearchBoxCss='verdocs-search-box{font-family:"Barlow", sans-serif}verdocs-search-box form{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:45px;-webkit-box-sizing:border-box;box-sizing:border-box;margin:5px 0 0;border-radius:5px;-ms-flex-align:center;align-items:center;background-color:#fff;padding:0 8px;border-width:1px;border-style:solid;border-color:var(--verdocs-container-border-color)}verdocs-search-box form input{-webkit-box-sizing:border-box;box-sizing:border-box;height:43px;width:100%;font-size:18px;border:none}verdocs-search-box form input:focus{outline:none}verdocs-search-box form button.search{cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:4px;border:none;width:100px;height:28px;font-weight:700;font-size:10px;letter-spacing:1px;background-color:#50be80;text-transform:uppercase;color:#fff}verdocs-search-box form .type{background-color:#707ae5;height:30px;display:-ms-inline-flexbox;display:inline-flex;padding:1px 0 2px 10px;font-size:13px;line-height:16px;border-radius:4px;-ms-flex-pack:center;justify-content:center;text-transform:uppercase;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;color:#fff;margin-right:10px}verdocs-search-box form .type button{border:none;color:#fff;margin:5px 0 0 8px;background:transparent}verdocs-search-box form svg{width:12px;height:12px;margin-right:6px}verdocs-search-box ::-webkit-input-placeholder{color:#aeb4bf}verdocs-search-box ::-moz-placeholder{color:#aeb4bf}verdocs-search-box :-ms-input-placeholder{color:#aeb4bf}verdocs-search-box ::-ms-input-placeholder{color:#aeb4bf}verdocs-search-box ::placeholder{color:#aeb4bf}';var VerdocsSearchBox=function(){function e(e){registerInstance(this,e);this.searchClicked=createEvent(this,"searchClicked",7);this.typeChanged=createEvent(this,"typeChanged",7);this.queryChanged=createEvent(this,"queryChanged",7);this.placeholder="search documents, templates, people...";this.type="all";this.query=""}e.prototype.handleSearch=function(e){this.searchClicked.emit({type:this.type,query:this.query});e.preventDefault();return false};e.prototype.handleChange=function(e){this.queryChanged.emit(e.target.value)};e.prototype.handleClearFilter=function(){this.typeChanged.emit("all")};e.prototype.handleKeyUp=function(e){if(e.key==="Enter"){this.searchClicked.emit({type:this.type,query:this.query})}};e.prototype.render=function(){var e=this;return h("form",{onSubmit:function(t){return e.handleSearch(t)}},this.type!==undefined&&this.type!=="all"&&h("span",{class:"type"},this.type,"s ",h("button",{class:"remove",innerHTML:CloseIcon,onClick:function(){return e.handleClearFilter()}})),h("input",{type:"text",placeholder:this.placeholder,value:this.query,onInput:function(t){return e.handleChange(t)},onKeyUp:function(t){return e.handleKeyUp(t)}}),h("button",{onClick:function(t){return e.handleSearch(t)},class:"search"},h("span",{innerHTML:SearchIcon}),"Search"))};return e}();VerdocsSearchBox.style=verdocsSearchBoxCss;export{VerdocsSearchActivity as verdocs_search_activity,VerdocsSearchBox as verdocs_search_box};
|
|
1
|
+
import{r as registerInstance,c as createEvent,h}from"./index-859bc689.js";import{V as VerdocsEndpoint}from"./VerdocsEndpoint-30e1b6ec.js";var getTemplates=function(e,t){return e.api.get("/templates/",{params:t}).then((function(e){return e.data}))};var __awaiter=undefined&&undefined.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function s(e){try{c(n.next(e))}catch(e){o(e)}}function a(e){try{c(n["throw"](e))}catch(e){o(e)}}function c(e){e.done?r(e.value):i(e.value).then(s,a)}c((n=n.apply(e,t||[])).next())}))};var __generator=undefined&&undefined.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return c([e,t])}}function c(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(s[0]===6&&r.label<o[1]){r.label=o[1];o=s;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(s);break}if(o[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];i=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var getSearchHistory=function(e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(t){return[2,e.api.get("/search/history").then((function(e){return e.data}))]}))}))};var DocumentIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"/></svg>';var verdocsSearchActivityCss='verdocs-search-activity{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-search-activity .container{display:-ms-flexbox;display:flex;width:240px;color:#ffffff;-ms-flex-direction:column;flex-direction:column;text-transform:uppercase;padding:10px 10px 20px 10px;background-color:var(--verdocs-background-dark)}verdocs-search-activity .title{font-size:22px;font-weight:700;line-height:30px}verdocs-search-activity .items{display:-ms-flexbox;display:flex;margin-top:20px;-ms-flex-direction:column;flex-direction:column}verdocs-search-activity .item{border:none;display:-ms-flexbox;display:flex;text-align:left;margin-bottom:20px;-ms-flex-direction:row;flex-direction:row;background:transparent}verdocs-search-activity .item:hover{cursor:pointer}verdocs-search-activity .icon{-ms-flex:0 0 22px;flex:0 0 22px;margin-right:14px}verdocs-search-activity .icon svg{fill:#707ae5;width:22px;height:22px}verdocs-search-activity .details{display:-ms-flexbox;display:flex;overflow:hidden;-ms-flex-direction:column;flex-direction:column}verdocs-search-activity .item-title{font-size:16px;font-weight:400;color:#ffffff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}verdocs-search-activity .info{font-size:14px;font-weight:500;line-height:23px;color:#aeb4bf}verdocs-search-activity .empty{text-transform:none;line-height:22px;color:#ccc}';var VerdocsSearchActivity=function(){function e(e){registerInstance(this,e);this.entrySelected=createEvent(this,"entrySelected",7);this.endpoint=VerdocsEndpoint.getDefault();this.type="recent";this.emptyMessage="You do not have any starred searches.";this.authFailure=false;this.title="Recent Searches";this.recent=[];this.saved=[];this.starred=[]}e.prototype.componentWillLoad=function(){var e=this;this.endpoint.loadSession();var t=function(t){var r;console.warn("[Verdocs/search-activity] Error getting search data",t);if(((r=t===null||t===void 0?void 0:t.response)===null||r===void 0?void 0:r.status)===401){e.authFailure=true}};switch(this.type){case"recent":this.title="Recent Searches";this.emptyMessage="You do not have any recent searches.";getSearchHistory(this.endpoint).then((function(t){return e.recent=t.recent})).catch(t);break;case"saved":this.title="Saved Searches";this.emptyMessage="You do not have any saved searches.";getSearchHistory(this.endpoint).then((function(t){return e.saved=t.saved})).catch(t);break;case"starred":this.title="My Starred items";this.emptyMessage="You do not have any starred templates.";getTemplates(this.endpoint,{is_starred:true}).then((function(t){return e.starred=t})).catch(t);break}};e.prototype.handleSelectEntry=function(e){this.entrySelected.emit(e)};e.prototype.computePagesText=function(e){if(e<2){return"".concat(e," Page")}else{return"".concat(e," Pages")}};e.prototype.computeRecipientsText=function(e){if(typeof e==="object"){return e.join(", ")}else if(e>1){return"".concat(e," Recipients")}else{return"".concat(e," Recipient")}};e.prototype.render=function(){var e=this;var t=this.recent.length<1&&this.saved.length<1&&this.starred.length<1;return h("div",{class:"container"},h("p",{class:"title"},this.title),h("div",{class:"items"},this.recent.map((function(t){return h("button",{class:"item",onClick:function(){return e.handleSelectEntry(t)}},h("div",{class:"icon",innerHTML:DocumentIcon}),h("div",{class:"details"},h("div",{class:"item-title"},t.params.q),h("div",{class:"info"},"Test")))})),this.saved.map((function(t){return h("button",{class:"item",onClick:function(){return e.handleSelectEntry(t)}},h("div",{class:"icon",innerHTML:DocumentIcon}),h("div",{class:"details"},h("div",{class:"item-title"},t.params.q),h("div",{class:"info"})))})),t&&h("div",{class:"empty"},this.authFailure?"Authentication required":this.emptyMessage)))};return e}();VerdocsSearchActivity.style=verdocsSearchActivityCss;var SearchIcon='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M23.4809 20.7176L17.9111 15.2536C19.0961 13.6368 19.727 11.6926 19.7128 9.70131C19.7201 7.53345 18.9846 5.42606 17.6244 3.71753C16.2642 2.009 14.3581 0.798456 12.2123 0.280282C10.0665 -0.237892 7.80552 -0.0336342 5.79227 0.86026C3.77902 1.75415 2.13038 3.28582 1.1111 5.20931C0.0918114 7.1328 -0.238985 9.33652 0.171813 11.4666C0.582612 13.5967 1.71117 15.5296 3.37628 16.9548C5.0414 18.3801 7.14646 19.2151 9.35344 19.3257C11.5604 19.4364 13.7413 18.8162 15.5458 17.5649L21.1372 23.05L21.1563 23.0663C21.4841 23.3487 21.9039 23.507 22.3401 23.5128C22.7823 23.5125 23.2063 23.3402 23.5191 23.0337V23.0337C23.6749 22.8812 23.7979 22.6995 23.8804 22.4993C23.963 22.2991 24.0036 22.0847 23.9997 21.8688C23.9959 21.6529 23.9477 21.44 23.858 21.2428C23.7683 21.0456 23.639 20.8682 23.4778 20.7212L23.4809 20.7176ZM14.5167 14.1975C13.4564 15.2349 12.0623 15.8797 10.5719 16.022C9.08145 16.1644 7.58681 15.7955 6.34249 14.9781C5.09816 14.1608 4.18109 12.9456 3.74751 11.5395C3.31393 10.1334 3.39064 8.6233 3.96455 7.26643C4.53846 5.90955 5.57409 4.7898 6.89507 4.09787C8.21606 3.40594 9.74071 3.18461 11.2093 3.4716C12.678 3.75858 13.9998 4.53612 14.9497 5.6718C15.8996 6.80748 16.4188 8.23105 16.4189 9.7001C16.4196 10.5357 16.2519 11.3632 15.9254 12.135C15.599 12.9069 15.1202 13.6078 14.5167 14.1975V14.1975Z" fill="white"/>\n</svg>\n';var CloseIcon='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M14.0739 11.7565L19.7127 6.23228C20.0875 5.85692 20.0875 5.25309 19.7127 4.87773L19.0213 4.20046C18.6382 3.82511 18.0219 3.82511 17.6387 4.20046L12 9.72472L6.36127 4.20046C5.97814 3.82511 5.36179 3.82511 4.97866 4.20046L4.28735 4.87773C3.90422 5.25309 3.90422 5.85692 4.28735 6.23228L9.92608 11.7565L4.28735 17.2808C3.90422 17.6561 3.90422 18.26 4.28735 18.6353L4.97866 19.3126C5.36179 19.688 5.97814 19.688 6.36127 19.3126L12 13.7883L17.6387 19.3126C18.0219 19.688 18.6382 19.688 19.0213 19.3126L19.7127 18.6353C20.0958 18.26 20.0958 17.6561 19.7127 17.2808L14.0739 11.7565Z" fill="white"/>\n</svg>\n';var verdocsSearchBoxCss='verdocs-search-box{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-search-box form{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:45px;-webkit-box-sizing:border-box;box-sizing:border-box;margin:5px 0 0;border-radius:5px;-ms-flex-align:center;align-items:center;background-color:#fff;padding:0 8px;border-width:1px;border-style:solid;border-color:var(--verdocs-container-border-color)}verdocs-search-box form input{-webkit-box-sizing:border-box;box-sizing:border-box;height:43px;width:100%;font-size:18px;border:none}verdocs-search-box form input:focus{outline:none}verdocs-search-box form button.search{cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:4px;border:none;width:100px;height:28px;font-weight:700;font-size:10px;letter-spacing:1px;background-color:#50be80;text-transform:uppercase;color:#fff}verdocs-search-box form .type{background-color:#707ae5;height:30px;display:-ms-inline-flexbox;display:inline-flex;padding:1px 0 2px 10px;font-size:13px;line-height:16px;border-radius:4px;-ms-flex-pack:center;justify-content:center;text-transform:uppercase;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;color:#fff;margin-right:10px}verdocs-search-box form .type button{border:none;color:#fff;margin:5px 0 0 8px;background:transparent}verdocs-search-box form svg{width:12px;height:12px;margin-right:6px}verdocs-search-box ::-webkit-input-placeholder{color:#aeb4bf}verdocs-search-box ::-moz-placeholder{color:#aeb4bf}verdocs-search-box :-ms-input-placeholder{color:#aeb4bf}verdocs-search-box ::-ms-input-placeholder{color:#aeb4bf}verdocs-search-box ::placeholder{color:#aeb4bf}';var VerdocsSearchBox=function(){function e(e){registerInstance(this,e);this.searchClicked=createEvent(this,"searchClicked",7);this.typeChanged=createEvent(this,"typeChanged",7);this.queryChanged=createEvent(this,"queryChanged",7);this.endpoint=VerdocsEndpoint.getDefault();this.placeholder="search documents, templates, people...";this.type="all";this.query=""}e.prototype.handleSearch=function(e){this.searchClicked.emit({type:this.type,query:this.query});e.preventDefault();return false};e.prototype.handleChange=function(e){this.queryChanged.emit(e.target.value)};e.prototype.handleClearFilter=function(){this.typeChanged.emit("all")};e.prototype.handleKeyUp=function(e){if(e.key==="Enter"){this.searchClicked.emit({type:this.type,query:this.query})}};e.prototype.render=function(){var e=this;return h("form",{onSubmit:function(t){return e.handleSearch(t)}},this.type!==undefined&&this.type!=="all"&&h("span",{class:"type"},this.type,"s ",h("button",{class:"remove",innerHTML:CloseIcon,onClick:function(){return e.handleClearFilter()}})),h("input",{type:"text",placeholder:this.placeholder,value:this.query,onInput:function(t){return e.handleChange(t)},onKeyUp:function(t){return e.handleKeyUp(t)}}),h("button",{onClick:function(t){return e.handleSearch(t)},class:"search"},h("span",{innerHTML:SearchIcon}),"Search"))};return e}();VerdocsSearchBox.style=verdocsSearchBoxCss;export{VerdocsSearchActivity as verdocs_search_activity,VerdocsSearchBox as verdocs_search_box};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h}from"./index-859bc689.js";var verdocsSearchTabsCss='verdocs-search-tabs{font-family:"
|
|
1
|
+
import{r as registerInstance,h}from"./index-859bc689.js";var verdocsSearchTabsCss='verdocs-search-tabs{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:block}';var VerdocsSearchTabs=function(){function e(e){registerInstance(this,e);this.selected="all"}e.prototype.render=function(){return h("div",null," ")};return e}();VerdocsSearchTabs.style=verdocsSearchTabsCss;export{VerdocsSearchTabs as verdocs_search_tabs};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as registerInstance,h}from"./index-859bc689.js";var verdocsSearchCss='verdocs-search{font-family:"
|
|
1
|
+
import{r as registerInstance,h}from"./index-859bc689.js";import{V as VerdocsEndpoint}from"./VerdocsEndpoint-30e1b6ec.js";var verdocsSearchCss='verdocs-search{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:-ms-flexbox;display:flex;background-color:#1e2031}verdocs-search search-box{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:20px 10px}verdocs-search .boxes{-ms-flex-wrap:wrap;flex-wrap:wrap;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;margin:20px 0}verdocs-search search-recent,verdocs-search search-saved,verdocs-search search-quick-functions,verdocs-search search-starred{display:-ms-flexbox;display:flex;margin:0 20px 20px 0}';var VerdocsSearch=function(){function e(e){registerInstance(this,e);this.endpoint=VerdocsEndpoint.getDefault()}e.prototype.render=function(){return h("div",{class:"container"},h("verdocs-search-box",{endpoint:this.endpoint}),h("div",{class:"boxes"},h("verdocs-search-activity",{type:"recent",endpoint:this.endpoint}),h("verdocs-search-activity",{type:"saved",endpoint:this.endpoint}),h("verdocs-search-activity",{type:"starred",endpoint:this.endpoint}),h("search-quick-functions",{endpoint:this.endpoint})))};return e}();VerdocsSearch.style=verdocsSearchCss;export{VerdocsSearch as verdocs_search};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,n,o){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function a(e){try{s(o.next(e))}catch(e){r(e)}}function c(e){try{s(o["throw"](e))}catch(e){r(e)}}function s(e){e.done?n(e.value):i(e.value).then(a,c)}s((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,i,r,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(e){return function(t){return s([e,t])}}function s(a){if(o)throw new TypeError("Generator is already executing.");while(n)try{if(o=1,i&&(r=a[0]&2?i["return"]:a[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;if(i=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){n.label=a[1];break}if(a[0]===6&&n.label<r[1]){n.label=r[1];r=a;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(a);break}if(r[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];i=0}finally{o=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host}from"./index-859bc689.js";import{g as getEndpoint,d as decodeAccessTokenBody,V as VerdocsEndpoint,s as setActiveEndpoint}from"./Token-a587e3ad.js";import{B as Buffer}from"./buffer-es6-136673c8.js";function getRGBA(e){switch(e%10){case 0:return e===0?"rgba(255, 193, 7, 0.4)":"rgba(134, 134, 134, 0.3)";case 1:return"rgba(156, 39, 176, .4)";case 2:return"rgba(33, 150, 243, .4)";case 3:return"rgba(220, 231, 117, 0.3)";case 4:return"rgba(121, 134, 203, 0.3)";case 5:return"rgba(77, 182, 172, 0.3)";case 6:return"rgba(255, 202, 165, 0.3)";case 7:return"rgba(2, 247, 190, 0.3)";case 8:return"rgba(255, 138, 101, 0.3)";case 9:return"rgba(82, 255, 79, 0.3)";default:return"rgba(229, 115, 155, 0.3)"}}function rescale(e,t){return e*t}var __assign=undefined&&undefined.__assign||function(){__assign=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return __assign.apply(this,arguments)};var __awaiter$1=undefined&&undefined.__awaiter||function(e,t,n,o){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function a(e){try{s(o.next(e))}catch(e){r(e)}}function c(e){try{s(o["throw"](e))}catch(e){r(e)}}function s(e){e.done?n(e.value):i(e.value).then(a,c)}s((o=o.apply(e,t||[])).next())}))};var __generator$1=undefined&&undefined.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,i,r,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(e){return function(t){return s([e,t])}}function s(a){if(o)throw new TypeError("Generator is already executing.");while(n)try{if(o=1,i&&(r=a[0]&2?i["return"]:a[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;if(i=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){n.label=a[1];break}if(a[0]===6&&n.label<r[1]){n.label=r[1];r=a;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(a);break}if(r[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];i=0}finally{o=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var updateRecipientStatus=function(e,t,n,o){return __awaiter$1(void 0,void 0,void 0,(function(){return __generator$1(this,(function(i){return[2,getEndpoint().api.put("/documents/".concat(e,"/recipients/").concat(t),__assign({role_name:t,action:n},o||{})).then((function(e){return e.data}))]}))}))};var e164Regex=new RegExp(/\+[1-9]\d{6,14}/g);function simpleE164Validator(e){return e!==null&&e.length<16&&e.length>6&&e164Regex.test(e)||e===""||e===null}var EmailRegEx=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;var isValidEmail=function(e){return EmailRegEx.test(e)};var isValidPhone=function(e){return simpleE164Validator(e)};var __awaiter=undefined&&undefined.__awaiter||function(e,t,n,o){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function a(e){try{s(o.next(e))}catch(e){r(e)}}function c(e){try{s(o["throw"](e))}catch(e){r(e)}}function s(e){e.done?n(e.value):i(e.value).then(a,c)}s((o=o.apply(e,t||[])).next())}))};var __generator=undefined&&undefined.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,i,r,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(e){return function(t){return s([e,t])}}function s(a){if(o)throw new TypeError("Generator is already executing.");while(n)try{if(o=1,i&&(r=a[0]&2?i["return"]:a[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;if(i=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){n.label=a[1];break}if(a[0]===6&&n.label<r[1]){n.label=r[1];r=a;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(a);break}if(r[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];i=0}finally{o=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var getSigningSession=function(e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(t){return[2,getEndpoint().api.get("/documents/".concat(e.documentId,"/recipients/").concat(encodeURIComponent(e.roleId),"/invitation/").concat(e.inviteCode)).then((function(e){var t,n;var o=((t=e.headers)===null||t===void 0?void 0:t.signer_token)||"";var i=decodeAccessTokenBody(o);getEndpoint().setAuthorization((n=e.headers)===null||n===void 0?void 0:n.signer_token);return{recipient:e.data,session:i,signerToken:o}}))]}))}))};var getDocument=function(e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(t){return[2,getEndpoint().api.get("/documents/".concat(e)).then((function(e){return e.data}))]}))}))};var getDocumentFile=function(e,t){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(n){return[2,getEndpoint().api.get("/documents/".concat(e,"/envelope_documents/").concat(t,"?file=true"),{responseType:"arraybuffer"}).then((function(e){return Buffer.from(e.data,"binary").toString("base64")}))]}))}))};var updateDocumentField=function(e,t,n){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(o){return[2,getEndpoint().api.put("/documents/".concat(e,"/fields/").concat(t),n).then((function(e){return e.data}))]}))}))};var verdocsSignCss='verdocs-sign{font-family:"Barlow", sans-serif;position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:600px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}verdocs-sign.storybook{max-height:600px}verdocs-sign div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign .header{-ms-flex:0 0 115px;flex:0 0 115px;z-index:1000;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);-webkit-transition:all 0.25s;transition:all 0.25s}verdocs-sign .intro{background-color:#ffffff;width:100%;margin:0 auto;padding:20px;max-width:1028px;color:rgba(0, 0, 0, 0.87)}verdocs-sign .toolbar{width:100%;margin:0 auto;padding:0 20px;max-width:1028px;position:relative}verdocs-sign .tools{width:100%;color:#fff;height:56px;padding:4px;display:-ms-flexbox;display:flex;font-size:12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;background-color:#33354c}verdocs-sign .cover{top:0;left:0;right:0;bottom:0;z-index:999;position:absolute;background:rgba(0, 0, 0, 0.5)}verdocs-sign .document{-ms-flex:1;flex:1;height:100%;position:relative;overflow-y:scroll}verdocs-sign .agree-checkbox{-ms-flex:0 0 20px;flex:0 0 20px;display:-ms-flexbox;display:flex;width:20px;height:20px;border-radius:3px;background:#ffffff;position:relative;margin:0 10px 0 30px}verdocs-sign .agree-checkbox label{left:2px;top:2px;width:16px;height:16px;cursor:pointer;position:absolute;background:#33354c;-webkit-box-shadow:inset 0 -1px 1px rgba(255, 255, 255, 0.8);box-shadow:inset 0 -1px 1px rgba(255, 255, 255, 0.8)}verdocs-sign .agree-checkbox label:after{top:2px;left:3px;width:8px;opacity:0;height:5px;content:"";position:absolute;background:transparent;filter:alpha(opacity=0);-webkit-transform:rotate(-45deg);transform:rotate(-45deg);border:2px solid #fcfff4;border-top:none;border-right:none}verdocs-sign .agree-checkbox label:hover::after{filter:alpha(opacity=30);opacity:0.3}verdocs-sign .agree-checkbox input[type=checkbox]:checked+label:after{filter:alpha(opacity=100);opacity:1}verdocs-sign.agreed .intro{display:none}verdocs-sign.agreed .header{-ms-flex:0 0 56px;flex:0 0 56px}verdocs-sign.agreed .agree-checkbox{background:#ccc}verdocs-sign.agreed .agree-checkbox label{cursor:default}verdocs-sign .page-controls{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:500}';var BASE_URL="https://stage-api.verdocs.com";var VerdocsSign=function(){function e(e){registerInstance(this,e);this.documentid=null;this.roleid=null;this.invitecode=null;this.endpoint=null;this.recipient=null;this.signerToken=null;this.pdfUrl=null;this.recipientIndex=-1;this.document=null;this.fields=[];this.hasSignature=false;this.nextButtonLabel="Start";this.focusedField=""}e.prototype.componentWillLoad=function(){var e=(new VerdocsEndpoint).setBaseURL(BASE_URL);setActiveEndpoint(e)};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,o,i,r;var a=this;return __generator(this,(function(c){switch(c.label){case 0:c.trys.push([0,3,,4]);console.log("[SIGN] Processing invite code",this.documentid,this.roleid,this.invitecode);return[4,getSigningSession({documentId:this.documentid,roleId:this.roleid,inviteCode:this.invitecode})];case 1:e=c.sent(),t=e.session,n=e.recipient,o=e.signerToken;console.log("[SIGN] Got signing session",t);console.log("[SIGN] Recipient",n);this.recipient=n;this.signerToken=o;getEndpoint().setSigningAuthorization(o);if(this.recipient.agreed){this.nextButtonLabel="Next"}return[4,getDocument(this.documentid)];case 2:i=c.sent();this.document=i;console.log("[SIGN] Document",i);this.pdfUrl="".concat(BASE_URL,"/documents/").concat(this.documentid,"/envelope_documents/").concat(i.envelope_document_id,"?file=true");this.recipientIndex=this.document.recipients.findIndex((function(e){return e.role_name==a.roleid}));if(this.recipientIndex>-1){console.log("Found recipient",this.document.recipients[this.recipientIndex])}this.fields=this.document.fields.filter((function(e){return e.recipient_role===a.roleid}));console.log("Loaded fields",this.fields);return[3,4];case 3:r=c.sent();console.log("Error with signing session",r);return[3,4];case 4:return[2]}}))}))};e.prototype.handleClickAgree=function(){var e=this;console.log("agree clicked");updateRecipientStatus(this.documentid,this.roleid,"update",{agreed:true}).then((function(t){console.log("update result",t);e.nextButtonLabel="Next";e.recipient=t})).catch((function(e){console.log("update failure",e)}))};e.prototype.savePDF=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,o;return __generator(this,(function(i){switch(i.label){case 0:e="".concat(this.document.name," - ").concat(this.document.updated_at.split("T")[0],".pdf");return[4,getDocumentFile(this.documentid,this.document.envelope_document_id)];case 1:t=i.sent();n=new XMLHttpRequest;n.responseType="blob";n.onload=function(){var t=document.createElement("a");t.href=window.URL.createObjectURL(n.response);t.download=e;t.style.display="none";document.body.appendChild(t);t.click();t.remove()};o="data:application/pdf;base64,".concat(t);console.log("url",o.length,o);n.open("GET","data:application/pdf;base64,".concat(t));n.send();return[2]}}))}))};e.prototype.handleOptionSelected=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(e.detail.id){case"later":if(!(window===null||window===void 0?void 0:window["STORYBOOK_ENV"])){window.alert("User intends to sign later.")}break;case"claim":break;case"decline":break;case"print":break;case"download":this.savePDF().catch((function(){}));break}return[2]}))}))};e.prototype.handleFieldChange=function(e,t,n){return __awaiter(this,void 0,void 0,(function(){var o;return __generator(this,(function(i){console.log("fieldChange",e,t.detail);switch(e.type){case"textbox":updateDocumentField(this.documentid,e.name,{prepared:false,value:t.detail}).then((function(e){return console.log("Update result",e)})).catch((function(e){return console.log("Error updating",e)}));break;case"checkbox_group":updateDocumentField(this.documentid,e.name,{prepared:false,value:{options:[{id:n,checked:t.detail}]}}).then((function(e){return console.log("Update result",e)})).catch((function(e){return console.log("Error updating",e)}));break;case"radio_button_group":o=e.settings.options.map((function(e){return{id:e.id,selected:n===e.id}}));updateDocumentField(this.documentid,e.name,{prepared:false,value:{options:o}}).then((function(e){return console.log("Update result",e)})).catch((function(e){return console.log("Error updating",e)}));break;case"dropdown":updateDocumentField(this.documentid,e.name,{prepared:false,value:t.detail}).then((function(e){return console.log("Update result",e)})).catch((function(e){return console.log("Error updating",e)}));break;case"initial":console.log("Got initial",t.detail);break;case"signature":console.log("Got signature",t.detail);break}return[2]}))}))};e.prototype.renderCheckboxGroupOption=function(e,t,n,o){var i=this;var r=rescale(e.xRatio,n.x);var a=rescale(e.yRatio,n.y);var c={left:"".concat(r,"px"),bottom:"".concat(a,"px"),position:"absolute",transform:"scale(".concat(e.xRatio,", ").concat(e.yRatio,")"),backgroundColor:getRGBA(this.recipientIndex)};return h("verdocs-field-checkbox",{style:c,order:o,value:n.checked,onFieldChange:function(e){return i.handleFieldChange(t,e,n.id)}})};e.prototype.renderRadioGroupOption=function(e,t,n,o){var i=this;var r=rescale(e.xRatio,n.x);var a=rescale(e.yRatio,n.y);var c={left:"".concat(r,"px"),bottom:"".concat(a,"px"),position:"absolute",transform:"scale(".concat(e.xRatio,", ").concat(e.yRatio,")"),backgroundColor:getRGBA(this.recipientIndex)};return h("verdocs-field-radio-button",{style:c,order:o,value:n.id,name:t.name,checked:n.selected,onFieldChange:function(e){return i.handleFieldChange(t,e,n.id)}})};e.prototype.renderField=function(e,t){var n=this;var o=e.required,i=o===void 0?false:o,r=e.settings,a=r===void 0?{}:r;var c=a.x,s=c===void 0?0:c,d=a.y,l=d===void 0?0:d,u=a.base64,p=u===void 0?"":u,f=a.placeholder,g=f===void 0?"":f,v=a.options,b=v===void 0?[]:v,x=a.value,m=x===void 0?"":x,y=a.result,w=y===void 0?"":y;var _=this.pdfPageInfo.pages.find((function(t){return t.pageNumber===e.page}));if(!_){console.log("Unable to render invalid field",e);return h("div",{class:"invalid-field"},"Invalid field.")}var k=rescale(_.xRatio,s);var R=rescale(_.yRatio,l);var S={left:"".concat(k,"px"),bottom:"".concat(R,"px"),position:"absolute",transform:"scale(".concat(_.xRatio,", ").concat(_.yRatio,")"),backgroundColor:e.settings.rgba||getRGBA(this.recipientIndex)};if(e.settings.height){S.height="".concat(e.settings.height,"px")}if(e.settings.width){S.width="".concat(e.settings.width,"px")}console.log("rendering field",e.type,e);var E="field-".concat(e.name);switch(e.type){case"signature":return h("verdocs-field-signature",{style:S,value:p,required:i,id:E});case"initial":return h("verdocs-field-initial",{style:S,required:i,id:E});case"textbox":return h("verdocs-field-textbox",{style:S,order:t,value:w||"",placeholder:g,id:E,onFieldChange:function(t){return n.handleFieldChange(e,t)}});case"textarea":return h("verdocs-field-textarea",{style:S,placeholder:g||"",id:E});case"date":return h("verdocs-field-date",{style:S,order:t,value:w||"",placeholder:g,required:i,id:E});case"dropdown":return h("verdocs-field-dropdown",{style:S,options:b,value:m,required:i,id:E,onFieldChange:function(t){return n.handleFieldChange(e,t)}});case"checkbox":return h("verdocs-field-checkbox",{style:S,value:w||"",id:E});case"checkbox_group":return e.settings.options.map((function(t,o){return n.renderCheckboxGroupOption(_,e,t,o)}));case"radio_button_group":return e.settings.options.map((function(t,o){return n.renderRadioGroupOption(_,e,t,o)}));case"attachment":return h("verdocs-field-attachment",{style:S,value:w||"",id:E});case"payment":return h("verdocs-field-payment",{style:S,field:e,id:E});default:console.log("[SIGN] Skipping unsupported field type",e)}return h("div",{style:{display:"none"}},'Unsupported field type "',e.type,'"')};e.prototype.isFieldValid=function(e){var t,n,o,i,r,a,c,s,d,l,u,p;switch(e.type){case"textbox":switch(((t=e.settings)===null||t===void 0?void 0:t.validator)||""){case"email":return isValidEmail(((n=e.settings)===null||n===void 0?void 0:n.result)||"");case"phone":return isValidPhone(((o=e.settings)===null||o===void 0?void 0:o.result)||"");default:return!!((i=e.settings)===null||i===void 0?void 0:i.result)}case"signature":case"initial":case"textarea":case"date":case"attachment":return!!((r=e.settings)===null||r===void 0?void 0:r.result);case"dropdown":return!!((a=e.settings)===null||a===void 0?void 0:a.value);case"checkbox_group":var f=(((s=(c=e.settings)===null||c===void 0?void 0:c.options)===null||s===void 0?void 0:s.filter((function(e){return e.checked})))||[]).length;return f>=(((d=e.settings)===null||d===void 0?void 0:d.minimum_checked)||0)&&f<=(((l=e.settings)===null||l===void 0?void 0:l.maximum_checked)||999);case"radio_button_group":return(((p=(u=e.settings)===null||u===void 0?void 0:u.options)===null||p===void 0?void 0:p.filter((function(e){return e.selected})))||[]).length>0;default:return false}};e.prototype.handleDocumentRendered=function(e){console.log("[SIGN] Document rendered",e.detail);this.pdfPageInfo=e.detail};e.prototype.handleNext=function(){var e=this;var t=this.fields.filter((function(e){return e.required}));console.log("required Fields",t);var n=t.findIndex((function(t){return t.name===e.focusedField}));console.log("focused Index",n);var o=n+1;if(o>=t.length){o=0}var i=t[o];console.log("next required fielod",i);if(i){var r=document.getElementById("field-".concat(i.name));r===null||r===void 0?void 0:r.focusField();this.focusedField=i.name}};e.prototype.render=function(){var e=this;var t,n,o,i,r;var a=[{id:"later",label:"Finish Later"},{id:"claim",label:"Claim the Document",disabled:true},{id:"decline",label:"Decline to Sign"},{id:"print",label:"Print Without Signing"},{id:"download",label:"Download"}];return h(Host,{class:{storybook:!!(window===null||window===void 0?void 0:window["STORYBOOK_ENV"]),agreed:(t=this.recipient)===null||t===void 0?void 0:t.agreed}},h("div",{class:"header"},h("div",{class:"intro"},"Please review and act on these documents."),h("div",{class:"toolbar"},h("div",{class:"tools"},h("verdocs-dropdown",{options:a,onOptionSelected:function(t){return e.handleOptionSelected(t)}}),!((n=this.recipient)===null||n===void 0?void 0:n.agreed)?h("div",{style:{flex:"1",flexDirection:"row",display:"flex",alignItems:"center"}},h("div",{class:"agree-checkbox"},h("input",{type:"checkbox",value:"None",id:"agree-checkbox-element",name:"agree",onChange:function(){return e.handleClickAgree()}}),h("label",{htmlFor:"agree-checkbox-element"})),"I agree to use electronic records and signatures."):h("div",{style:{flex:"1"}}),h("verdocs-button",{label:this.nextButtonLabel,disabled:!((o=this.recipient)===null||o===void 0?void 0:o.agreed),onClick:function(){return e.handleNext()}})))),!((i=this.recipient)===null||i===void 0?void 0:i.agreed)?h("div",{class:"cover"}):h("div",{style:{display:"none"}}),h("div",{class:"document"},this.pdfUrl?h("verdocs-view",{source:this.pdfUrl,token:this.signerToken,onDocumentRendered:function(t){return e.handleDocumentRendered(t)}}):h("verdocs-loader",null),(((r=this.pdfPageInfo)===null||r===void 0?void 0:r.pages)||[]).map((function(t){var n;return h("div",{class:"page-controls",style:{height:"".concat(t.height,"px"),width:"".concat(t.width,"px"),top:"".concat(t.canvasTop,"px"),margin:"0 auto"}},((n=e.pdfPageInfo)===null||n===void 0?void 0:n.numRendered)>0?e.fields.filter((function(e){return e.page===t.pageNumber})).map((function(t,n){return e.renderField(t,n)})):h("div",{style:{display:"none"}},"Waiting for PDF to render..."))}))))};return e}();VerdocsSign.style=verdocsSignCss;export{VerdocsSign as verdocs_sign};
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function a(e){try{d(i.next(e))}catch(e){r(e)}}function s(e){try{d(i["throw"](e))}catch(e){r(e)}}function d(e){e.done?n(e.value):o(e.value).then(a,s)}d((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,o,r,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return d([e,t])}}function d(a){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,o&&(r=a[0]&2?o["return"]:a[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;if(o=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;o=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){n.label=a[1];break}if(a[0]===6&&n.label<r[1]){n.label=r[1];r=a;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(a);break}if(r[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];o=0}finally{i=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,h,H as Host}from"./index-859bc689.js";import{V as VerdocsEndpoint,g as getSigningSession,a as getDocument,u as updateRecipientStatus,b as getDocumentFile,c as updateDocumentField}from"./VerdocsEndpoint-30e1b6ec.js";var e164Regex=new RegExp(/\+[1-9]\d{6,14}/g);function simpleE164Validator(e){return e!==null&&e.length<16&&e.length>6&&e164Regex.test(e)||e===""||e===null}var EmailRegEx=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;var isValidEmail=function(e){return EmailRegEx.test(e)};var isValidPhone=function(e){return simpleE164Validator(e)};function getRGBA(e){switch(e%10){case 0:return e===0?"rgba(255, 193, 7, 0.4)":"rgba(134, 134, 134, 0.3)";case 1:return"rgba(156, 39, 176, .4)";case 2:return"rgba(33, 150, 243, .4)";case 3:return"rgba(220, 231, 117, 0.3)";case 4:return"rgba(121, 134, 203, 0.3)";case 5:return"rgba(77, 182, 172, 0.3)";case 6:return"rgba(255, 202, 165, 0.3)";case 7:return"rgba(2, 247, 190, 0.3)";case 8:return"rgba(255, 138, 101, 0.3)";case 9:return"rgba(82, 255, 79, 0.3)";default:return"rgba(229, 115, 155, 0.3)"}}function rescale(e,t){return e*t}var verdocsSignCss='verdocs-sign{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:600px;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}verdocs-sign.storybook{max-height:600px}verdocs-sign div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-sign .header{-ms-flex:0 0 115px;flex:0 0 115px;z-index:1000;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);-webkit-transition:all 0.25s;transition:all 0.25s}verdocs-sign .intro{background-color:#ffffff;width:100%;margin:0 auto;padding:20px;max-width:1028px;color:rgba(0, 0, 0, 0.87)}verdocs-sign .toolbar{width:100%;margin:0 auto;padding:0 14px;max-width:1028px;position:relative}verdocs-sign .tools{width:100%;color:#fff;height:56px;padding:4px;display:-ms-flexbox;display:flex;font-size:12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;background-color:#33354c}verdocs-sign .cover{top:0;left:0;right:0;bottom:0;z-index:999;position:absolute;background:rgba(0, 0, 0, 0.5)}verdocs-sign .document{-ms-flex:1;flex:1;height:100%;position:relative;overflow-y:scroll}verdocs-sign .agree{-ms-flex:1;flex:1;-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-right:10px}verdocs-sign .agree .intro{display:none}verdocs-sign .agree .header{-ms-flex:0 0 56px;flex:0 0 56px}verdocs-sign .agree .agree-checkbox{background:#ccc;-ms-flex:0 0 20px;flex:0 0 20px;display:-ms-flexbox;display:flex;width:20px;height:20px;border-radius:3px;position:relative;margin:0 10px 0 14px}verdocs-sign .agree .agree-checkbox input[type=checkbox]:checked+label:after{filter:alpha(opacity=100);opacity:1}verdocs-sign .agree .agree-checkbox label{left:2px;top:2px;width:16px;height:16px;cursor:pointer;position:absolute;background:#33354c;-webkit-box-shadow:inset 0 -1px 1px rgba(255, 255, 255, 0.8);box-shadow:inset 0 -1px 1px rgba(255, 255, 255, 0.8)}verdocs-sign .agree .agree-checkbox label .agree-checkbox label:hover::after{filter:alpha(opacity=30);opacity:0.3}verdocs-sign .agree .agree-checkbox label:after{top:2px;left:3px;width:8px;opacity:0;height:5px;content:"";position:absolute;background:transparent;filter:alpha(opacity=0);-webkit-transform:rotate(-45deg);transform:rotate(-45deg);border:2px solid #fcfff4;border-top:none;border-right:none}verdocs-sign .page-controls{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:500}';var VerdocsSign=function(){function e(e){registerInstance(this,e);this.endpoint=VerdocsEndpoint.getDefault();this.documentid=null;this.roleid=null;this.invitecode=null;this.recipient=null;this.signerToken=null;this.pdfUrl=null;this.recipientIndex=-1;this.document=null;this.fields=[];this.hasSignature=false;this.nextButtonLabel="Start";this.focusedField=""}e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,i,o,r;var a=this;return __generator(this,(function(s){switch(s.label){case 0:s.trys.push([0,3,,4]);console.log("[SIGN] Processing invite code",this.documentid,this.roleid,this.invitecode);return[4,getSigningSession(this.endpoint,{documentId:this.documentid,roleId:this.roleid,inviteCode:this.invitecode})];case 1:e=s.sent(),t=e.session,n=e.recipient,i=e.signerToken;console.log("[SIGN] Got signing session",t);console.log("[SIGN] Recipient",n);this.recipient=n;this.signerToken=i;this.endpoint.setToken(i);if(this.recipient.agreed){this.nextButtonLabel="Next"}return[4,getDocument(this.endpoint,this.documentid)];case 2:o=s.sent();this.document=o;console.log("[SIGN] Document",o);this.pdfUrl="".concat(this.endpoint.getBaseURL(),"/documents/").concat(this.documentid,"/envelope_documents/").concat(o.envelope_document_id,"?file=true");this.recipientIndex=this.document.recipients.findIndex((function(e){return e.role_name==a.roleid}));if(this.recipientIndex>-1){console.log("Found recipient",this.document.recipients[this.recipientIndex])}this.fields=this.document.fields.filter((function(e){return e.recipient_role===a.roleid}));console.log("Loaded fields",this.fields);return[3,4];case 3:r=s.sent();console.log("Error with signing session",r);return[3,4];case 4:return[2]}}))}))};e.prototype.handleClickAgree=function(){var e=this;console.log("agree clicked");updateRecipientStatus(this.endpoint,this.documentid,this.roleid,"update",{agreed:true}).then((function(t){console.log("update result",t);e.nextButtonLabel="Next";e.recipient=t})).catch((function(e){console.log("update failure",e)}))};e.prototype.savePDF=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,i;return __generator(this,(function(o){switch(o.label){case 0:e="".concat(this.document.name," - ").concat(this.document.updated_at.split("T")[0],".pdf");return[4,getDocumentFile(this.endpoint,this.documentid,this.document.envelope_document_id)];case 1:t=o.sent();n=new XMLHttpRequest;n.responseType="blob";n.onload=function(){var t=document.createElement("a");t.href=window.URL.createObjectURL(n.response);t.download=e;t.style.display="none";document.body.appendChild(t);t.click();t.remove()};i="data:application/pdf;base64,".concat(t);console.log("url",i.length,i);n.open("GET","data:application/pdf;base64,".concat(t));n.send();return[2]}}))}))};e.prototype.handleOptionSelected=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(e.detail.id){case"later":if(!(window===null||window===void 0?void 0:window["STORYBOOK_ENV"])){window.alert("User intends to sign later.")}break;case"claim":break;case"decline":break;case"print":break;case"download":this.savePDF().catch((function(){}));break}return[2]}))}))};e.prototype.handleFieldChange=function(e,t,n){return __awaiter(this,void 0,void 0,(function(){var i;return __generator(this,(function(o){console.log("fieldChange",e,t.detail);switch(e.type){case"textbox":updateDocumentField(this.endpoint,this.documentid,e.name,{prepared:false,value:t.detail}).then((function(e){return console.log("Update result",e)})).catch((function(e){return console.log("Error updating",e)}));break;case"checkbox_group":updateDocumentField(this.endpoint,this.documentid,e.name,{prepared:false,value:{options:[{id:n,checked:t.detail}]}}).then((function(e){return console.log("Update result",e)})).catch((function(e){return console.log("Error updating",e)}));break;case"radio_button_group":i=e.settings.options.map((function(e){return{id:e.id,selected:n===e.id}}));updateDocumentField(this.endpoint,this.documentid,e.name,{prepared:false,value:{options:i}}).then((function(e){return console.log("Update result",e)})).catch((function(e){return console.log("Error updating",e)}));break;case"dropdown":updateDocumentField(this.endpoint,this.documentid,e.name,{prepared:false,value:t.detail}).then((function(e){return console.log("Update result",e)})).catch((function(e){return console.log("Error updating",e)}));break;case"initial":console.log("Got initial",t.detail);break;case"signature":console.log("Got signature",t.detail);break}return[2]}))}))};e.prototype.renderCheckboxGroupOption=function(e,t,n,i){var o=this;var r=rescale(e.xRatio,n.x);var a=rescale(e.yRatio,n.y);var s={left:"".concat(r,"px"),bottom:"".concat(a,"px"),position:"absolute",transform:"scale(".concat(e.xRatio,", ").concat(e.yRatio,")"),backgroundColor:getRGBA(this.recipientIndex)};return h("verdocs-field-checkbox",{style:s,order:i,value:n.checked,onFieldChange:function(e){return o.handleFieldChange(t,e,n.id)}})};e.prototype.renderRadioGroupOption=function(e,t,n,i){var o=this;var r=rescale(e.xRatio,n.x);var a=rescale(e.yRatio,n.y);var s={left:"".concat(r,"px"),bottom:"".concat(a,"px"),position:"absolute",transform:"scale(".concat(e.xRatio,", ").concat(e.yRatio,")"),backgroundColor:getRGBA(this.recipientIndex)};return h("verdocs-field-radio-button",{style:s,order:i,value:n.id,name:t.name,checked:n.selected,onFieldChange:function(e){return o.handleFieldChange(t,e,n.id)}})};e.prototype.renderField=function(e,t){var n=this;var i=e.required,o=i===void 0?false:i,r=e.settings,a=r===void 0?{}:r;var s=a.x,d=s===void 0?0:s,l=a.y,c=l===void 0?0:l,u=a.base64,p=u===void 0?"":u,g=a.placeholder,f=g===void 0?"":g,v=a.options,x=v===void 0?[]:v,b=a.value,m=b===void 0?"":b,y=a.result,w=y===void 0?"":y;var k=this.pdfPageInfo.pages.find((function(t){return t.pageNumber===e.page}));if(!k){console.log("Unable to render invalid field",e);return h("div",{class:"invalid-field"},"Invalid field.")}var _=rescale(k.xRatio,d);var R=rescale(k.yRatio,c);var F={left:"".concat(_,"px"),bottom:"".concat(R,"px"),position:"absolute",transform:"scale(".concat(k.xRatio,", ").concat(k.yRatio,")"),backgroundColor:e.settings.rgba||getRGBA(this.recipientIndex)};if(e.settings.height){F.height="".concat(e.settings.height,"px")}if(e.settings.width){F.width="".concat(e.settings.width,"px")}console.log("rendering field",e.type,e);var S="field-".concat(e.name);switch(e.type){case"signature":return h("verdocs-field-signature",{style:F,value:p,required:o,id:S});case"initial":return h("verdocs-field-initial",{style:F,required:o,id:S});case"textbox":return h("verdocs-field-textbox",{style:F,order:t,value:w||"",placeholder:f,id:S,onFieldChange:function(t){return n.handleFieldChange(e,t)}});case"textarea":return h("verdocs-field-textarea",{style:F,placeholder:f||"",id:S});case"date":return h("verdocs-field-date",{style:F,order:t,value:w||"",placeholder:f,required:o,id:S});case"dropdown":return h("verdocs-field-dropdown",{style:F,options:x,value:m,required:o,id:S,onFieldChange:function(t){return n.handleFieldChange(e,t)}});case"checkbox":return h("verdocs-field-checkbox",{style:F,value:w||"",id:S});case"checkbox_group":return e.settings.options.map((function(t,i){return n.renderCheckboxGroupOption(k,e,t,i)}));case"radio_button_group":return e.settings.options.map((function(t,i){return n.renderRadioGroupOption(k,e,t,i)}));case"attachment":return h("verdocs-field-attachment",{style:F,value:w||"",id:S});case"payment":return h("verdocs-field-payment",{style:F,field:e,id:S});default:console.log("[SIGN] Skipping unsupported field type",e)}return h("div",{style:{display:"none"}},'Unsupported field type "',e.type,'"')};e.prototype.isFieldValid=function(e){var t,n,i,o,r,a,s,d,l,c,u,p;switch(e.type){case"textbox":switch(((t=e.settings)===null||t===void 0?void 0:t.validator)||""){case"email":return isValidEmail(((n=e.settings)===null||n===void 0?void 0:n.result)||"");case"phone":return isValidPhone(((i=e.settings)===null||i===void 0?void 0:i.result)||"");default:return!!((o=e.settings)===null||o===void 0?void 0:o.result)}case"signature":case"initial":case"textarea":case"date":case"attachment":return!!((r=e.settings)===null||r===void 0?void 0:r.result);case"dropdown":return!!((a=e.settings)===null||a===void 0?void 0:a.value);case"checkbox_group":var h=(((d=(s=e.settings)===null||s===void 0?void 0:s.options)===null||d===void 0?void 0:d.filter((function(e){return e.checked})))||[]).length;return h>=(((l=e.settings)===null||l===void 0?void 0:l.minimum_checked)||0)&&h<=(((c=e.settings)===null||c===void 0?void 0:c.maximum_checked)||999);case"radio_button_group":return(((p=(u=e.settings)===null||u===void 0?void 0:u.options)===null||p===void 0?void 0:p.filter((function(e){return e.selected})))||[]).length>0;default:return false}};e.prototype.handleDocumentRendered=function(e){console.log("[SIGN] Document rendered",e.detail);this.pdfPageInfo=e.detail};e.prototype.handleNext=function(){var e=this;var t=this.fields.filter((function(e){return e.required}));console.log("required Fields",t);var n=t.findIndex((function(t){return t.name===e.focusedField}));console.log("focused Index",n);var i=n+1;if(i>=t.length){i=0}var o=t[i];console.log("next required fielod",o);if(o){var r=document.getElementById("field-".concat(o.name));r===null||r===void 0?void 0:r.focusField();this.focusedField=o.name}};e.prototype.render=function(){var e=this;var t,n,i,o,r;var a=[{id:"later",label:"Finish Later"},{id:"claim",label:"Claim the Document",disabled:true},{id:"decline",label:"Decline to Sign"},{id:"print",label:"Print Without Signing"},{id:"download",label:"Download"}];return h(Host,{class:{storybook:!!(window===null||window===void 0?void 0:window["STORYBOOK_ENV"]),agreed:(t=this.recipient)===null||t===void 0?void 0:t.agreed}},h("div",{class:"header"},h("div",{class:"intro"},"Please review and act on these documents."),h("div",{class:"toolbar"},h("div",{class:"tools"},h("verdocs-dropdown",{options:a,onOptionSelected:function(t){return e.handleOptionSelected(t)}}),!((n=this.recipient)===null||n===void 0?void 0:n.agreed)?h("div",{class:"agree"},h("div",{class:"agree-checkbox"},h("input",{type:"checkbox",value:"None",id:"agree-checkbox-element",name:"agree",onChange:function(){return e.handleClickAgree()}}),h("label",{htmlFor:"agree-checkbox-element"})),h("span",null,"I agree to use electronic records and signatures.")):h("div",{style:{flex:"1"}}),h("verdocs-button",{size:"small",label:this.nextButtonLabel,disabled:!((i=this.recipient)===null||i===void 0?void 0:i.agreed),onClick:function(){return e.handleNext()}})))),!((o=this.recipient)===null||o===void 0?void 0:o.agreed)?h("div",{class:"cover"}):h("div",{style:{display:"none"}}),h("div",{class:"document"},this.pdfUrl?h("verdocs-view",{source:this.pdfUrl,token:this.signerToken,onDocumentRendered:function(t){return e.handleDocumentRendered(t)}}):h("verdocs-loader",null),(((r=this.pdfPageInfo)===null||r===void 0?void 0:r.pages)||[]).map((function(t){var n;return h("div",{class:"page-controls",style:{height:"".concat(t.height,"px"),width:"".concat(t.width,"px"),top:"".concat(t.canvasTop,"px"),margin:"0 auto"}},((n=e.pdfPageInfo)===null||n===void 0?void 0:n.numRendered)>0?e.fields.filter((function(e){return e.page===t.pageNumber})).map((function(t,n){return e.renderField(t,n)})):h("div",{style:{display:"none"}},"Waiting for PDF to render..."))}))))};return e}();VerdocsSign.style=verdocsSignCss;export{VerdocsSign as verdocs_sign};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as promiseResolve,b as bootstrapLazy}from"./index-859bc689.js";var patchBrowser=function(){var e=import.meta.url;var d={};if(e!==""){d.resourcesUrl=new URL(".",e).href}return promiseResolve(d)};patchBrowser().then((function(e){return bootstrapLazy([["verdocs-sign",[[0,"verdocs-sign",{documentid:[1],roleid:[1],invitecode:[1],
|
|
1
|
+
import{p as promiseResolve,b as bootstrapLazy}from"./index-859bc689.js";var patchBrowser=function(){var e=import.meta.url;var d={};if(e!==""){d.resourcesUrl=new URL(".",e).href}return promiseResolve(d)};patchBrowser().then((function(e){return bootstrapLazy([["verdocs-sign",[[0,"verdocs-sign",{endpoint:[16],documentid:[1],roleid:[1],invitecode:[1],recipient:[32],signerToken:[32],pdfUrl:[32],recipientIndex:[32],document:[32],fields:[32],pdfPageInfo:[32],hasSignature:[32],nextButtonLabel:[32],focusedField:[32]}]]],["verdocs-auth",[[0,"verdocs-auth",{endpoint:[16],visible:[4],logo:[1],debug:[4],isAuthenticated:[32],displayMode:[32],username:[32],password:[32],loggingIn:[32],activeSession:[32],loginError:[32]}]]],["verdocs-search",[[0,"verdocs-search",{endpoint:[16]}]]],["verdocs-kba-dialog",[[0,"verdocs-kba-dialog",{step:[2],steps:[2],helptitle:[1],helptext:[1],mode:[1],label:[1],placeholder:[1],choices:[16],open:[4],response:[32]}]]],["verdocs-organization-card",[[0,"verdocs-organization-card",{organization:[16]}]]],["verdocs-quick-functions",[[0,"verdocs-quick-functions",{endpoint:[16]}]]],["verdocs-search-tabs",[[0,"verdocs-search-tabs",{selected:[32]}]]],["verdocs-status-indicator",[[0,"verdocs-status-indicator",{size:[1],theme:[1],status:[1],document:[16],isOpen:[32],recipientStatusIcons:[32]}]]],["verdocs-template-card",[[0,"verdocs-template-card",{template:[16]}]]],["verdocs-template-tags",[[0,"verdocs-template-tags",{tags:[16]}]]],["verdocs-toggle",[[0,"verdocs-toggle",{options:[16],theme:[1]},[[6,"click","handleClick"]]]]],["verdocs-button_2",[[0,"verdocs-text-input",{value:[1],label:[1],placeholder:[1],autocomplete:[1],type:[1],disabled:[4],_value:[32]}],[0,"verdocs-button",{label:[1],startIcon:[1,"start-icon"],endIcon:[1,"end-icon"],size:[1],type:[1],variant:[1],disabled:[4]}]]],["verdocs-ok-dialog",[[0,"verdocs-ok-dialog",{heading:[1],message:[1],open:[4],cancel:[4]}]]],["verdocs-initial-dialog",[[0,"verdocs-initial-dialog",{fullname:[1],open:[4],fontLoaded:[32],enteredInitials:[32],mode:[32]}]]],["verdocs-signature-dialog",[[0,"verdocs-signature-dialog",{fullname:[1],open:[4],fontLoaded:[32],enteredName:[32],mode:[32]}]]],["verdocs-upload-dialog",[[0,"verdocs-upload-dialog",{open:[4],draggingOver:[32],decodedFiles:[32]}]]],["verdocs-search-activity_2",[[0,"verdocs-search-activity",{endpoint:[16],type:[1],options:[8],emptyMessage:[32],authFailure:[32],title:[32],recent:[32],saved:[32],starred:[32]}],[0,"verdocs-search-box",{endpoint:[16],placeholder:[1],type:[1],query:[1]}]]],["verdocs-loader",[[0,"verdocs-loader"]]],["verdocs-dropdown_12",[[0,"verdocs-field-initial",{required:[4],fullName:[1,"full-name"],value:[1],focusField:[64]}],[0,"verdocs-field-signature",{required:[4],fullName:[1,"full-name"],value:[1],focusField:[64]}],[0,"verdocs-field-attachment",{order:[2],value:[1],required:[4],disabled:[4],focusField:[64]}],[0,"verdocs-view",{endpoint:[16],rotation:[2],source:[1],token:[1],loadProgress:[32]}],[0,"verdocs-dropdown",{options:[16],open:[4],isOpen:[32]}],[0,"verdocs-field-checkbox",{order:[2],value:[4],required:[4],disabled:[4]}],[0,"verdocs-field-date",{placeholder:[1],order:[2],value:[1],required:[4],disabled:[4],focused:[32],focusField:[64]}],[0,"verdocs-field-dropdown",{options:[16],required:[4],order:[2],disabled:[4],value:[1],focused:[32],focusField:[64]}],[0,"verdocs-field-payment",{field:[16],fields:[16],pageNum:[2,"page-num"],roleName:[1,"role-name"],fieldId:[1,"field-id"],recipients:[8],selectedRoleName:[1,"selected-role-name"],pdfPages:[16],currentSignature:[1,"current-signature"],currentSignatureId:[1,"current-signature-id"],currentInitial:[1,"current-initial"],currentInitialId:[1,"current-initial-id"],focused:[4],signed:[4],preparedMessage:[32],signatureUrl:[32]}],[0,"verdocs-field-radio-button",{order:[2],checked:[4],value:[1],name:[1],required:[4],disabled:[4]}],[0,"verdocs-field-textarea",{placeholder:[1],order:[2],value:[1],required:[4],disabled:[4],focused:[32],focusField:[64]}],[0,"verdocs-field-textbox",{placeholder:[1],order:[2],value:[1],required:[4],disabled:[4],focused:[32],focusField:[64]}]]]],e)}));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { VerdocsEndpoint } from '@verdocs/js-sdk';
|
|
1
2
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
3
|
/**
|
|
3
4
|
* Display quick-function buttons for creating templates and documents.
|
|
@@ -6,6 +7,10 @@ import { EventEmitter } from '../../../stencil-public-runtime';
|
|
|
6
7
|
* embed. This Element will reuse the same session produced by logging in via that Embed.
|
|
7
8
|
*/
|
|
8
9
|
export declare class VerdocsQuickFunctions {
|
|
10
|
+
/**
|
|
11
|
+
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
12
|
+
*/
|
|
13
|
+
endpoint: VerdocsEndpoint;
|
|
9
14
|
/**
|
|
10
15
|
* Event fired when an entry is clicked.
|
|
11
16
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ITemplate } from '@verdocs/js-sdk/Templates/Types';
|
|
2
2
|
import { IRecentSearch, ISavedSearch } from '@verdocs/js-sdk/Search/Types';
|
|
3
3
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
4
|
+
import { VerdocsEndpoint } from '@verdocs/js-sdk';
|
|
4
5
|
/**
|
|
5
6
|
* Display a list of starred items.
|
|
6
7
|
*
|
|
@@ -8,6 +9,10 @@ import { EventEmitter } from '../../../stencil-public-runtime';
|
|
|
8
9
|
* embed. This Element will reuse the same session produced by logging in via that Embed.
|
|
9
10
|
*/
|
|
10
11
|
export declare class VerdocsSearchActivity {
|
|
12
|
+
/**
|
|
13
|
+
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
14
|
+
*/
|
|
15
|
+
endpoint: VerdocsEndpoint;
|
|
11
16
|
type: 'recent' | 'saved' | 'starred';
|
|
12
17
|
options: any;
|
|
13
18
|
/**
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { VerdocsEndpoint } from '@verdocs/js-sdk';
|
|
1
2
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
3
|
export declare type TContentType = 'all' | 'document' | 'template' | 'organization';
|
|
3
4
|
export interface ISearchEvent {
|
|
@@ -11,6 +12,10 @@ export interface ISearchEvent {
|
|
|
11
12
|
* embed. This Element will reuse the same session produced by logging in via that Embed.
|
|
12
13
|
*/
|
|
13
14
|
export declare class VerdocsSearchBox {
|
|
15
|
+
/**
|
|
16
|
+
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
17
|
+
*/
|
|
18
|
+
endpoint: VerdocsEndpoint;
|
|
14
19
|
/**
|
|
15
20
|
* The placeholder to display in the input field.
|
|
16
21
|
*/
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { IActiveSession } from '@verdocs/js-sdk/Users/Types';
|
|
2
1
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
import { VerdocsEndpoint, TSession } from '@verdocs/js-sdk';
|
|
3
3
|
export interface IAuthStatus {
|
|
4
4
|
authenticated: boolean;
|
|
5
|
-
session:
|
|
5
|
+
session: TSession;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* Display an authentication dialog that allows the user to login or sign up. Callbacks are provided for events that
|
|
9
9
|
* occur during the process (especially successful completion). The success callback will be fired immediately if the
|
|
10
|
-
* user is already authenticated with a valid session, so this component may not always display visibly.
|
|
11
|
-
*
|
|
10
|
+
* user is already authenticated with a valid session, so this component may not always display visibly.
|
|
11
|
+
*
|
|
12
|
+
* To simplify some types of authentication flows, a visibility flag can force this component to never display. This
|
|
13
|
+
* allows you to susbcribe to notifications from the
|
|
12
14
|
*
|
|
13
15
|
* This embed is responsive / mobile-friendly, but the calling application should provide at least a 300px wide
|
|
14
16
|
* container to allow sufficient space for the required forms.
|
|
@@ -31,6 +33,10 @@ export interface IAuthStatus {
|
|
|
31
33
|
* ```
|
|
32
34
|
*/
|
|
33
35
|
export declare class VerdocsAuth {
|
|
36
|
+
/**
|
|
37
|
+
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
38
|
+
*/
|
|
39
|
+
endpoint: VerdocsEndpoint;
|
|
34
40
|
/**
|
|
35
41
|
* Normally, if the user has a valid session, this embed will be invisible, otherwise it will display
|
|
36
42
|
* login / signup forms. If this is set to false, this embed will be invisible in both cases. Apps may
|
|
@@ -58,9 +64,8 @@ export declare class VerdocsAuth {
|
|
|
58
64
|
username: string;
|
|
59
65
|
password: string;
|
|
60
66
|
loggingIn: boolean;
|
|
61
|
-
activeSession:
|
|
67
|
+
activeSession: TSession;
|
|
62
68
|
loginError: string | null;
|
|
63
|
-
componentWillLoad(): void;
|
|
64
69
|
componentDidLoad(): void;
|
|
65
70
|
handleLogin(): void;
|
|
66
71
|
handleLogout(): void;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VerdocsEndpoint } from '@verdocs/js-sdk';
|
|
2
2
|
import { IPDFPageInfo, IPDFRenderEvent } from '../verdocs-view/verdocs-view';
|
|
3
|
+
import { IDocument, IDocumentField } from '@verdocs/js-sdk/Documents/Documents';
|
|
3
4
|
/**
|
|
4
5
|
* Display a document signing experience.
|
|
5
6
|
*/
|
|
6
7
|
export declare class VerdocsSign {
|
|
8
|
+
/**
|
|
9
|
+
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
10
|
+
*/
|
|
11
|
+
endpoint: VerdocsEndpoint;
|
|
7
12
|
/**
|
|
8
13
|
* If `source` is set to `verdocs-sign`, this should be set to a valid invitation code to activate a
|
|
9
14
|
* signing session.
|
|
@@ -19,7 +24,6 @@ export declare class VerdocsSign {
|
|
|
19
24
|
* signing session.
|
|
20
25
|
*/
|
|
21
26
|
invitecode: string | null;
|
|
22
|
-
endpoint: any;
|
|
23
27
|
recipient: any;
|
|
24
28
|
signerToken: any;
|
|
25
29
|
pdfUrl: any;
|
|
@@ -30,7 +34,6 @@ export declare class VerdocsSign {
|
|
|
30
34
|
hasSignature: boolean;
|
|
31
35
|
nextButtonLabel: string;
|
|
32
36
|
focusedField: string;
|
|
33
|
-
componentWillLoad(): void;
|
|
34
37
|
componentDidLoad(): Promise<void>;
|
|
35
38
|
handleClickAgree(): void;
|
|
36
39
|
savePDF(): Promise<void>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { VerdocsEndpoint } from '@verdocs/js-sdk';
|
|
1
2
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
3
|
import { OnProgressParameters } from 'pdfjs-dist/types/src/display/api';
|
|
3
4
|
export interface IPDFPageInfo {
|
|
@@ -25,6 +26,10 @@ export declare class VerdocsView {
|
|
|
25
26
|
private pdfContainer;
|
|
26
27
|
private numPages;
|
|
27
28
|
private fingerprint;
|
|
29
|
+
/**
|
|
30
|
+
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
31
|
+
*/
|
|
32
|
+
endpoint: VerdocsEndpoint;
|
|
28
33
|
/**
|
|
29
34
|
* Rotate the PDF in degrees
|
|
30
35
|
*/
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
import { VerdocsEndpoint } from "@verdocs/js-sdk";
|
|
8
9
|
import { IAuthStatus } from "./components/embeds/verdocs-auth/verdocs-auth";
|
|
9
10
|
import { IMenuOption } from "./components/controls/verdocs-dropdown/verdocs-dropdown";
|
|
10
11
|
import { IDocument, IDocumentField, TDocumentStatus, TRecipientStatus } from "@verdocs/js-sdk/Documents/Documents";
|
|
@@ -21,6 +22,10 @@ export namespace Components {
|
|
|
21
22
|
* If the user is authenticated, this embed will normally render invisibly. If debug is set true, a summary if the user's session details will be displayed instead. This may be useful while debugging authentication flows in new applications.
|
|
22
23
|
*/
|
|
23
24
|
"debug": boolean;
|
|
25
|
+
/**
|
|
26
|
+
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
27
|
+
*/
|
|
28
|
+
"endpoint": VerdocsEndpoint;
|
|
24
29
|
/**
|
|
25
30
|
* By default, a Verdocs logo will be displayed above the login/signup forms. This may be used to override its source. (Alternatively, you may simply hide it via CSS overrides.) Logos should be in SVG format for best results.
|
|
26
31
|
*/
|
|
@@ -349,14 +354,30 @@ export namespace Components {
|
|
|
349
354
|
"organization": IOrganization;
|
|
350
355
|
}
|
|
351
356
|
interface VerdocsQuickFunctions {
|
|
357
|
+
/**
|
|
358
|
+
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
359
|
+
*/
|
|
360
|
+
"endpoint": VerdocsEndpoint;
|
|
352
361
|
}
|
|
353
362
|
interface VerdocsSearch {
|
|
363
|
+
/**
|
|
364
|
+
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
365
|
+
*/
|
|
366
|
+
"endpoint": VerdocsEndpoint;
|
|
354
367
|
}
|
|
355
368
|
interface VerdocsSearchActivity {
|
|
369
|
+
/**
|
|
370
|
+
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
371
|
+
*/
|
|
372
|
+
"endpoint": VerdocsEndpoint;
|
|
356
373
|
"options": any;
|
|
357
374
|
"type": 'recent' | 'saved' | 'starred';
|
|
358
375
|
}
|
|
359
376
|
interface VerdocsSearchBox {
|
|
377
|
+
/**
|
|
378
|
+
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
379
|
+
*/
|
|
380
|
+
"endpoint": VerdocsEndpoint;
|
|
360
381
|
/**
|
|
361
382
|
* The placeholder to display in the input field.
|
|
362
383
|
*/
|
|
@@ -377,6 +398,10 @@ export namespace Components {
|
|
|
377
398
|
* If `source` is set to `verdocs-sign`, this should be set to a valid invitation code to activate a signing session.
|
|
378
399
|
*/
|
|
379
400
|
"documentid": string | null;
|
|
401
|
+
/**
|
|
402
|
+
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
403
|
+
*/
|
|
404
|
+
"endpoint": VerdocsEndpoint;
|
|
380
405
|
/**
|
|
381
406
|
* If `source` is set to `verdocs-sign`, this should be set to a valid invitation code to activate a signing session.
|
|
382
407
|
*/
|
|
@@ -469,6 +494,10 @@ export namespace Components {
|
|
|
469
494
|
"open": boolean;
|
|
470
495
|
}
|
|
471
496
|
interface VerdocsView {
|
|
497
|
+
/**
|
|
498
|
+
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
499
|
+
*/
|
|
500
|
+
"endpoint": VerdocsEndpoint;
|
|
472
501
|
/**
|
|
473
502
|
* Rotate the PDF in degrees
|
|
474
503
|
*/
|
|
@@ -809,6 +838,10 @@ declare namespace LocalJSX {
|
|
|
809
838
|
* If the user is authenticated, this embed will normally render invisibly. If debug is set true, a summary if the user's session details will be displayed instead. This may be useful while debugging authentication flows in new applications.
|
|
810
839
|
*/
|
|
811
840
|
"debug"?: boolean;
|
|
841
|
+
/**
|
|
842
|
+
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
843
|
+
*/
|
|
844
|
+
"endpoint"?: VerdocsEndpoint;
|
|
812
845
|
/**
|
|
813
846
|
* By default, a Verdocs logo will be displayed above the login/signup forms. This may be used to override its source. (Alternatively, you may simply hide it via CSS overrides.) Logos should be in SVG format for best results.
|
|
814
847
|
*/
|
|
@@ -1252,6 +1285,10 @@ declare namespace LocalJSX {
|
|
|
1252
1285
|
"organization"?: IOrganization;
|
|
1253
1286
|
}
|
|
1254
1287
|
interface VerdocsQuickFunctions {
|
|
1288
|
+
/**
|
|
1289
|
+
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
1290
|
+
*/
|
|
1291
|
+
"endpoint"?: VerdocsEndpoint;
|
|
1255
1292
|
/**
|
|
1256
1293
|
* Event fired when an entry is clicked.
|
|
1257
1294
|
*/
|
|
@@ -1262,8 +1299,16 @@ declare namespace LocalJSX {
|
|
|
1262
1299
|
"onCreateTemplate"?: (event: VerdocsQuickFunctionsCustomEvent<any>) => void;
|
|
1263
1300
|
}
|
|
1264
1301
|
interface VerdocsSearch {
|
|
1302
|
+
/**
|
|
1303
|
+
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
1304
|
+
*/
|
|
1305
|
+
"endpoint"?: VerdocsEndpoint;
|
|
1265
1306
|
}
|
|
1266
1307
|
interface VerdocsSearchActivity {
|
|
1308
|
+
/**
|
|
1309
|
+
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
1310
|
+
*/
|
|
1311
|
+
"endpoint"?: VerdocsEndpoint;
|
|
1267
1312
|
/**
|
|
1268
1313
|
* Event fired when an entry is clicked.
|
|
1269
1314
|
*/
|
|
@@ -1272,6 +1317,10 @@ declare namespace LocalJSX {
|
|
|
1272
1317
|
"type"?: 'recent' | 'saved' | 'starred';
|
|
1273
1318
|
}
|
|
1274
1319
|
interface VerdocsSearchBox {
|
|
1320
|
+
/**
|
|
1321
|
+
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
1322
|
+
*/
|
|
1323
|
+
"endpoint"?: VerdocsEndpoint;
|
|
1275
1324
|
/**
|
|
1276
1325
|
* Event fired when the user changes the query string.
|
|
1277
1326
|
*/
|
|
@@ -1304,6 +1353,10 @@ declare namespace LocalJSX {
|
|
|
1304
1353
|
* If `source` is set to `verdocs-sign`, this should be set to a valid invitation code to activate a signing session.
|
|
1305
1354
|
*/
|
|
1306
1355
|
"documentid"?: string | null;
|
|
1356
|
+
/**
|
|
1357
|
+
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
1358
|
+
*/
|
|
1359
|
+
"endpoint"?: VerdocsEndpoint;
|
|
1307
1360
|
/**
|
|
1308
1361
|
* If `source` is set to `verdocs-sign`, this should be set to a valid invitation code to activate a signing session.
|
|
1309
1362
|
*/
|
|
@@ -1424,6 +1477,10 @@ declare namespace LocalJSX {
|
|
|
1424
1477
|
"open"?: boolean;
|
|
1425
1478
|
}
|
|
1426
1479
|
interface VerdocsView {
|
|
1480
|
+
/**
|
|
1481
|
+
* The endpoint to use to communicate with Verdocs. If not set, the default endpoint will be used.
|
|
1482
|
+
*/
|
|
1483
|
+
"endpoint"?: VerdocsEndpoint;
|
|
1427
1484
|
/**
|
|
1428
1485
|
* Fired when the document has completed rendered. The event will include the rendered page count.
|
|
1429
1486
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as i,h as s,F as o,H as l}from"./p-2bc58746.js";const t=class{constructor(s){e(this,s),this.cancel=i(this,"cancel",7),this.done=i(this,"done",7),this.step=1,this.steps=3,this.helptitle="One Time Code",this.helptext="Please check your text messages for a security code, and enter the code below.",this.mode="choice",this.label="PIN",this.placeholder="Enter your PIN...",this.choices=["553 Arbor Dr","18 Lacey Ln","23A Ball Ct","2375 Cavallo Blvd","23-1 RR-7","151 Boulder Rd"],this.open=!1,this.response=""}handleCancel(){this.cancel.emit(),this.open=!1}handleDismiss(e){"background-overlay"===e.target.className&&(e.preventDefault(),this.handleCancel())}handleDone(){this.done.emit(this.response),this.open=!1}render(){return s(l,{style:{display:this.open?"block":"none"}},s("div",{class:"background-overlay",onClick:e=>this.handleDismiss(e)},s("div",{class:"dialog"},s("div",{class:"heading"},"Confirm Your Identity",this.steps>1?s("span",{class:"step"},"(",this.step,"/",this.steps,")"):s(o,null)),s("div",{class:"help-box"},s("div",{class:"help-icon",innerHTML:'<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M20 0C8.95313 0 0 8.95313 0 20C0 31.0469 8.95313 40 20 40C31.0469 40 40 31.0469 40 20C40 8.95313 31.0469 0 20 0ZM20 36.25C11.0391 36.25 3.75 28.9602 3.75 20C3.75 11.0398 11.0391 3.75 20 3.75C28.9609 3.75 36.25 11.0398 36.25 20C36.25 28.9602 28.9609 36.25 20 36.25Z" fill="white"/>\n<path d="M20 26.25C18.5938 26.25 17.5 27.3438 17.5 28.75C17.5 30.1562 18.5234 31.25 20 31.25C21.3359 31.25 22.5 30.1562 22.5 28.75C22.5 27.3438 21.3359 26.25 20 26.25ZM22.5859 10H18.5938C15.5469 10 13.125 12.4219 13.125 15.4688C13.125 16.4844 13.9844 17.3438 15 17.3438C16.0156 17.3438 16.875 16.4844 16.875 15.4688C16.875 14.5312 17.5859 13.75 18.5234 13.75H22.5156C23.5234 13.75 24.375 14.5312 24.375 15.4688C24.375 16.0938 24.0625 16.5703 23.5156 16.8828L19.0625 19.6094C18.4375 20 18.125 20.625 18.125 21.25V22.5C18.125 23.5156 18.9844 24.375 20 24.375C21.0156 24.375 21.875 23.5156 21.875 22.5V22.3438L25.3984 20.1562C27.0391 19.1406 28.0547 17.3438 28.0547 15.4688C28.125 12.4219 25.7031 10 22.5859 10Z" fill="#E7E7E7"/>\n</svg>\n'}),s("div",{class:"help-details"},s("div",{class:"help-title"},this.helptitle),s("div",{class:"help-text"},this.helptext))),"choice"===this.mode?s("div",{class:"choices"},this.choices.map((e=>s("div",{class:"choice "+(e===this.response?"selected":""),onClick:()=>{this.response=e}},e)))):s("div",{class:"input"},s("label",{htmlFor:"verdocs-kba-input"},this.label),s("input",{type:"text",id:"verdocs-kba-input",name:"verdocs-kba-input",placeholder:this.placeholder})),s("div",{class:"buttons"},s("verdocs-button",{label:"Cancel",variant:"outline",onPress:()=>this.handleCancel()}),s("verdocs-button",{label:"Done",onPress:()=>this.handleDone(),disabled:!this.response})))))}};t.style='verdocs-kba-dialog{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-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-kba-dialog .dialog{width:440px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#fff;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-kba-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-kba-dialog .step{margin-left:6px;color:#666}verdocs-kba-dialog .help-box{background-color:#707ae5;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;margin:14px 0;padding:14px;-ms-flex-align:center;align-items:center;color:white}verdocs-kba-dialog .help-details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:15px;font-size:14px}verdocs-kba-dialog .help-icon{width:40px;height:40px}verdocs-kba-dialog .help-title{font-weight:600;margin-bottom:4px}verdocs-kba-dialog .help-text{font-weight:400}verdocs-kba-dialog .choices{display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));margin:0 0 15px 0}verdocs-kba-dialog .choice{border
|
|
1
|
+
import{r as e,c as i,h as s,F as o,H as l}from"./p-2bc58746.js";const t=class{constructor(s){e(this,s),this.cancel=i(this,"cancel",7),this.done=i(this,"done",7),this.step=1,this.steps=3,this.helptitle="One Time Code",this.helptext="Please check your text messages for a security code, and enter the code below.",this.mode="choice",this.label="PIN",this.placeholder="Enter your PIN...",this.choices=["553 Arbor Dr","18 Lacey Ln","23A Ball Ct","2375 Cavallo Blvd","23-1 RR-7","151 Boulder Rd"],this.open=!1,this.response=""}handleCancel(){this.cancel.emit(),this.open=!1}handleDismiss(e){"background-overlay"===e.target.className&&(e.preventDefault(),this.handleCancel())}handleDone(){this.done.emit(this.response),this.open=!1}render(){return s(l,{style:{display:this.open?"block":"none"}},s("div",{class:"background-overlay",onClick:e=>this.handleDismiss(e)},s("div",{class:"dialog"},s("div",{class:"heading"},"Confirm Your Identity",this.steps>1?s("span",{class:"step"},"(",this.step,"/",this.steps,")"):s(o,null)),s("div",{class:"help-box"},s("div",{class:"help-icon",innerHTML:'<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M20 0C8.95313 0 0 8.95313 0 20C0 31.0469 8.95313 40 20 40C31.0469 40 40 31.0469 40 20C40 8.95313 31.0469 0 20 0ZM20 36.25C11.0391 36.25 3.75 28.9602 3.75 20C3.75 11.0398 11.0391 3.75 20 3.75C28.9609 3.75 36.25 11.0398 36.25 20C36.25 28.9602 28.9609 36.25 20 36.25Z" fill="white"/>\n<path d="M20 26.25C18.5938 26.25 17.5 27.3438 17.5 28.75C17.5 30.1562 18.5234 31.25 20 31.25C21.3359 31.25 22.5 30.1562 22.5 28.75C22.5 27.3438 21.3359 26.25 20 26.25ZM22.5859 10H18.5938C15.5469 10 13.125 12.4219 13.125 15.4688C13.125 16.4844 13.9844 17.3438 15 17.3438C16.0156 17.3438 16.875 16.4844 16.875 15.4688C16.875 14.5312 17.5859 13.75 18.5234 13.75H22.5156C23.5234 13.75 24.375 14.5312 24.375 15.4688C24.375 16.0938 24.0625 16.5703 23.5156 16.8828L19.0625 19.6094C18.4375 20 18.125 20.625 18.125 21.25V22.5C18.125 23.5156 18.9844 24.375 20 24.375C21.0156 24.375 21.875 23.5156 21.875 22.5V22.3438L25.3984 20.1562C27.0391 19.1406 28.0547 17.3438 28.0547 15.4688C28.125 12.4219 25.7031 10 22.5859 10Z" fill="#E7E7E7"/>\n</svg>\n'}),s("div",{class:"help-details"},s("div",{class:"help-title"},this.helptitle),s("div",{class:"help-text"},this.helptext))),"choice"===this.mode?s("div",{class:"choices"},this.choices.map((e=>s("div",{class:"choice "+(e===this.response?"selected":""),onClick:()=>{this.response=e}},e)))):s("div",{class:"input"},s("label",{htmlFor:"verdocs-kba-input"},this.label),s("input",{type:"text",id:"verdocs-kba-input",name:"verdocs-kba-input",placeholder:this.placeholder})),s("div",{class:"buttons"},s("verdocs-button",{label:"Cancel",variant:"outline",onPress:()=>this.handleCancel()}),s("verdocs-button",{label:"Done",onPress:()=>this.handleDone(),disabled:!this.response})))))}};t.style='verdocs-kba-dialog{font-family:"Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-kba-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-kba-dialog .dialog{width:440px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-radius:4px;overflow:hidden;background:#fff;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-kba-dialog .heading{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;font-size:20px;font-weight:500}verdocs-kba-dialog .step{margin-left:6px;color:#666}verdocs-kba-dialog .help-box{background-color:#707ae5;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;margin:14px 0;padding:14px;-ms-flex-align:center;align-items:center;color:white}verdocs-kba-dialog .help-details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin-left:15px;font-size:14px}verdocs-kba-dialog .help-icon{width:40px;height:40px}verdocs-kba-dialog .help-title{font-weight:600;margin-bottom:4px}verdocs-kba-dialog .help-text{font-weight:400}verdocs-kba-dialog .choices{display:grid;gap:15px;grid-template-columns:repeat(auto-fill, minmax(100px, 1fr));margin:0 0 15px 0}verdocs-kba-dialog .choice{border:1px solid #707ae5;border-radius:5px;display:-ms-flexbox;display:flex;height:60px;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;text-align:center;color:#5c6575;cursor:pointer}verdocs-kba-dialog .choice.selected{background-color:#707ae5;color:#ffffff}verdocs-kba-dialog .buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}verdocs-kba-dialog .buttons verdocs-button{margin-left:16px}';export{t as verdocs_kba_dialog}
|