@verdocs/web-sdk 6.9.9 → 6.9.12
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/verdocs-contact-picker.cjs.entry.js +121 -15
- package/dist/cjs/verdocs-contact-picker.cjs.entry.js.map +1 -1
- package/dist/components/{p-D_8TNtkM.js → p-Bpe5Awxh.js} +2 -2
- package/dist/components/p-DeQsR41s.js +3 -0
- package/dist/components/p-DeQsR41s.js.map +1 -0
- package/dist/components/verdocs-build.js +1 -1
- package/dist/components/verdocs-contact-picker.js +1 -1
- package/dist/components/verdocs-send.js +1 -1
- package/dist/esm/verdocs-contact-picker.entry.js +121 -15
- package/dist/esm/verdocs-contact-picker.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-contact-picker.entry.js +2 -2
- package/dist/esm-es5/verdocs-contact-picker.entry.js.map +1 -1
- package/dist/verdocs-web-sdk/p-3a542ed0.system.entry.js +4 -0
- package/dist/verdocs-web-sdk/p-3a542ed0.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-BdZ5Ghsa.system.js +1 -1
- package/dist/verdocs-web-sdk/p-ae4290c6.entry.js +3 -0
- package/dist/verdocs-web-sdk/p-ae4290c6.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +2 -2
- package/dist/components/p-CT0DHyPw.js +0 -3
- package/dist/components/p-CT0DHyPw.js.map +0 -1
- package/dist/verdocs-web-sdk/p-1e8f1ce4.system.entry.js +0 -4
- package/dist/verdocs-web-sdk/p-1e8f1ce4.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-b464b598.entry.js +0 -3
- package/dist/verdocs-web-sdk/p-b464b598.entry.js.map +0 -1
- /package/dist/components/{p-D_8TNtkM.js.map → p-Bpe5Awxh.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e,H as s,c as t,h as o,d as r,t as i}from"./p-yZBlG3YQ.js";import{VerdocsEndpoint as d,getTemplate as a}from"@verdocs/js-sdk";import{S as l}from"./p-C1sRVZWv.js";import{S as c}from"./p-C7hFgM52.js";import{d as n}from"./p-Bdf8pPWm.js";import{d as m}from"./p-REnrt0JM.js";import{d as p}from"./p-CyDWJAOZ.js";import{d as f}from"./p-CT0DHyPw.js";import{d as v}from"./p-DT0LGcPi.js";import{d as h}from"./p-BT8wzCXz.js";import{d as u}from"./p-BasWFMeN.js";import{d as b}from"./p-DwPH0TQ4.js";import{d as x}from"./p-BwEGkh_6.js";import{d as k}from"./p-DXLcCG08.js";import{d as w}from"./p-B845hxhl.js";import{d as E}from"./p-5E7bNT3k.js";import{d as g}from"./p-Cfiprngx.js";import{d as j}from"./p-pyA5cdVX.js";import{d as y}from"./p-DhO1wfh-.js";import{d as C}from"./p-CLxwSMOV.js";import{d as D}from"./p-wUsR0Dpa.js";import{d as I}from"./p-CioaaWeS.js";import{d as U}from"./p-B-_kYJtC.js";import{d as B}from"./p-BhtYCb5T.js";import{d as T}from"./p-D3qUITiS.js";import{d as L}from"./p-DQTI8vRX.js";import{d as S}from"./p-DjOTs59Z.js";import{d as N}from"./p-2bW-AL6b.js";import{d as O}from"./p-BXGNkmyr.js";import{d as R}from"./p-D_8TNtkM.js";import{d as W}from"./p-BXQO5Vza.js";import{d as X}from"./p-CFEw4Xbi.js";import{d as G}from"./p-Dm9oOnhq.js";import{d as M}from"./p-DVGumEtx.js";import{d as V}from"./p-D3ohABOv.js";import{d as Y}from"./p-Yxa93LOl.js";import{d as z}from"./p-Dtndevf4.js";import{d as A}from"./p-CDMCVJys.js";import{d as J}from"./p-DYtSnUj9.js";import{d as P}from"./p-Bxmki12o.js";import{d as Q}from"./p-u16vefxk.js";const Z=()=>`verdocs-build{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif)}verdocs-build .content{-ms-flex:1;flex:1;gap:20px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column}verdocs-build verdocs-template-attachments,verdocs-build verdocs-template-roles{display:block;width:500px;max-width:95%;-webkit-box-sizing:border-box;box-sizing:border-box;margin:20px}verdocs-build verdocs-template-fields{border-top:1px solid #777777}verdocs-build verdocs-template-attachments{padding:20px;background:#ffffff}verdocs-build verdocs-template-fields{width:100%}verdocs-build verdocs-preview{-ms-flex:1;flex:1}verdocs-build .preview-container{-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex;width:100%;background-color:#eeeeee;max-height:100%}@media all and (max-width: 450px){verdocs-build .preview-container{-ms-flex-direction:column;flex-direction:column}}verdocs-build .preview-send-wrapper{display:-ms-flexbox;display:flex;-ms-flex:0 0 300px;flex:0 0 300px;background-color:#ffffff;-webkit-box-shadow:1px 1px 6px -2px rgba(0, 0, 0, 0.4980392157);box-shadow:1px 1px 6px -2px rgba(0, 0, 0, 0.4980392157)}@media all and (max-width: 450px){verdocs-build .preview-send-wrapper{-ms-flex:0;flex:0}}verdocs-build .preview-preview-wrapper{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-pack:center;justify-content:center;overflow-y:scroll}`;const F=e(class e extends s{constructor(e){super();if(e!==false){this.__registerHost()}this.cancel=t(this,"cancel");this.sdkError=t(this,"sdkError");this.stepChanged=t(this,"stepChanged");this.send=t(this,"send");this.templateUpdated=t(this,"templateUpdated");this.templateCreated=t(this,"templateCreated");this.rolesUpdated=t(this,"rolesUpdated");this.templateListenerId=null;this.endpoint=d.getDefault();this.templateId=null;this.step="preview";this.loading=true;this.template=null}onTemplateIdChanged(e,s){if(!s&&e&&this.step==="attachments"){this.step="preview"}this.loadTemplate(e).catch((e=>console.log("Unknown Error",e)))}onStepChanged(){this.loadTemplate(this.templateId).catch((e=>console.log("Unknown Error",e)))}async componentWillLoad(){var e,s,t,o,r,i;try{this.endpoint.loadSession();if(!this.endpoint.session){console.log("[BUILD] Unable to start builder session, must be authenticated");return}if(!this.templateId){console.log(`[BUILD] No template ID, activating upload mode`);this.step="attachments";this.loading=false;return}try{this.loadTemplate(this.templateId).catch((e=>console.log("[BUILD] Unable to load template",e)))}catch(o){console.log("[BUILD] Error loading template",o);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new l(o.message,(s=o.response)===null||s===void 0?void 0:s.status,(t=o.response)===null||t===void 0?void 0:t.data))}}catch(e){console.log("[BUILD] Error with builder session",e);(o=this.sdkError)===null||o===void 0?void 0:o.emit(new l(e.message,(r=e.response)===null||r===void 0?void 0:r.status,(i=e.response)===null||i===void 0?void 0:i.data))}}async loadTemplate(e){if(e){c.subscribe("templates",this.templateId,(()=>a(this.endpoint,this.templateId)),false,(e=>{this.template=e;this.loading=false}))}}disconnectedCallback(){console.log("[BUILD] Disconnected");this.unlistenToTemplate()}unlistenToTemplate(){if(this.templateListenerId){c.store.delListener(this.templateListenerId);this.templateListenerId=null}}handleCancel(){var e;this.step="preview";(e=this.cancel)===null||e===void 0?void 0:e.emit()}async handleTemplateCreated(e){var s;await this.loadTemplate(e);this.templateId=e;this.step="roles";(s=this.stepChanged)===null||s===void 0?void 0:s.emit("roles")}async handleRolesUpdated(e){var s;console.log("[BUILD] Roloes updated",e);(s=this.templateUpdated)===null||s===void 0?void 0:s.emit(e.detail)}async handleTemplateUpdated(e){var s;console.log("[BUILD] Template updated",e);(s=this.templateUpdated)===null||s===void 0?void 0:s.emit(e.detail)}handleAttachmentsNext(){var e;this.step="roles";(e=this.stepChanged)===null||e===void 0?void 0:e.emit("roles")}handleRolesNext(){var e;this.step="fields";(e=this.stepChanged)===null||e===void 0?void 0:e.emit("fields")}handleStepChanged(e){var s;this.step=e;(s=this.stepChanged)===null||s===void 0?void 0:s.emit(e)}render(){if(this.loading){return o(r,{class:"loading"},o("verdocs-loader",null))}if(!this.endpoint.session){return o(r,null,o("verdocs-component-error",{message:"You must be authenticated to use this module."}))}return o(r,null,o("div",{class:"content"},o("verdocs-template-build-tabs",{endpoint:this.endpoint,templateId:this.templateId,step:this.step,onSdkError:e=>{var s;return(s=this.sdkError)===null||s===void 0?void 0:s.emit(e.detail)},onStepChanged:e=>this.handleStepChanged(e.detail)}),this.step==="attachments"&&o("verdocs-template-attachments",{templateId:this.templateId,endpoint:this.endpoint,onExit:()=>this.handleCancel(),onNext:()=>this.handleAttachmentsNext(),onTemplateUpdated:e=>this.handleTemplateUpdated(e)}),this.step==="roles"&&o("verdocs-template-roles",{templateId:this.templateId,endpoint:this.endpoint,onExit:()=>this.handleCancel(),onNext:()=>this.handleRolesNext(),onRolesUpdated:e=>this.handleRolesUpdated(e)}),this.step==="fields"&&o("verdocs-template-fields",{templateId:this.templateId,endpoint:this.endpoint,onTemplateUpdated:e=>this.handleTemplateUpdated(e)}),this.step==="preview"&&o("div",{class:"preview-container"},o("div",{class:"preview-send-wrapper"},o("verdocs-send",{templateId:this.templateId,endpoint:this.endpoint,onSend:e=>{var s;return(s=this.send)===null||s===void 0?void 0:s.emit(e.detail)},style:{width:"100%"}})),o("div",{class:"preview-preview-wrapper"},o("verdocs-preview",{templateId:this.templateId,endpoint:this.endpoint,style:{display:"flex",flex:"1",maxWidth:"1000px"}})))))}get el(){return this}static get watchers(){return{templateId:[{onTemplateIdChanged:0}],step:[{onStepChanged:0}]}}static get style(){return Z()}},[0,"verdocs-build",{endpoint:[16],templateId:[1537,"template-id"],step:[1537],loading:[32],template:[32]},undefined,{templateId:[{onTemplateIdChanged:0}],step:[{onStepChanged:0}]}]);function _(){if(typeof customElements==="undefined"){return}const e=["verdocs-build","verdocs-button","verdocs-checkbox","verdocs-component-error","verdocs-contact-picker","verdocs-dialog","verdocs-field-attachment","verdocs-field-checkbox","verdocs-field-date","verdocs-field-dropdown","verdocs-field-initial","verdocs-field-radio","verdocs-field-signature","verdocs-field-textarea","verdocs-field-textbox","verdocs-field-timestamp","verdocs-file-chooser","verdocs-flag","verdocs-help-icon","verdocs-loader","verdocs-menu-panel","verdocs-ok-dialog","verdocs-portal","verdocs-preview","verdocs-progress-bar","verdocs-select-input","verdocs-send","verdocs-spinner","verdocs-template-attachments","verdocs-template-build-tabs","verdocs-template-document-page","verdocs-template-field-properties","verdocs-template-fields","verdocs-template-role-properties","verdocs-template-roles","verdocs-text-input","verdocs-toolbar-icon","verdocs-upload-dialog"];e.forEach((e=>{switch(e){case"verdocs-build":if(!customElements.get(i(e))){customElements.define(i(e),F)}break;case"verdocs-button":if(!customElements.get(i(e))){n()}break;case"verdocs-checkbox":if(!customElements.get(i(e))){m()}break;case"verdocs-component-error":if(!customElements.get(i(e))){p()}break;case"verdocs-contact-picker":if(!customElements.get(i(e))){f()}break;case"verdocs-dialog":if(!customElements.get(i(e))){v()}break;case"verdocs-field-attachment":if(!customElements.get(i(e))){h()}break;case"verdocs-field-checkbox":if(!customElements.get(i(e))){u()}break;case"verdocs-field-date":if(!customElements.get(i(e))){b()}break;case"verdocs-field-dropdown":if(!customElements.get(i(e))){x()}break;case"verdocs-field-initial":if(!customElements.get(i(e))){k()}break;case"verdocs-field-radio":if(!customElements.get(i(e))){w()}break;case"verdocs-field-signature":if(!customElements.get(i(e))){E()}break;case"verdocs-field-textarea":if(!customElements.get(i(e))){g()}break;case"verdocs-field-textbox":if(!customElements.get(i(e))){j()}break;case"verdocs-field-timestamp":if(!customElements.get(i(e))){y()}break;case"verdocs-file-chooser":if(!customElements.get(i(e))){C()}break;case"verdocs-flag":if(!customElements.get(i(e))){D()}break;case"verdocs-help-icon":if(!customElements.get(i(e))){I()}break;case"verdocs-loader":if(!customElements.get(i(e))){U()}break;case"verdocs-menu-panel":if(!customElements.get(i(e))){B()}break;case"verdocs-ok-dialog":if(!customElements.get(i(e))){T()}break;case"verdocs-portal":if(!customElements.get(i(e))){L()}break;case"verdocs-preview":if(!customElements.get(i(e))){S()}break;case"verdocs-progress-bar":if(!customElements.get(i(e))){N()}break;case"verdocs-select-input":if(!customElements.get(i(e))){O()}break;case"verdocs-send":if(!customElements.get(i(e))){R()}break;case"verdocs-spinner":if(!customElements.get(i(e))){W()}break;case"verdocs-template-attachments":if(!customElements.get(i(e))){X()}break;case"verdocs-template-build-tabs":if(!customElements.get(i(e))){G()}break;case"verdocs-template-document-page":if(!customElements.get(i(e))){M()}break;case"verdocs-template-field-properties":if(!customElements.get(i(e))){V()}break;case"verdocs-template-fields":if(!customElements.get(i(e))){Y()}break;case"verdocs-template-role-properties":if(!customElements.get(i(e))){z()}break;case"verdocs-template-roles":if(!customElements.get(i(e))){A()}break;case"verdocs-text-input":if(!customElements.get(i(e))){J()}break;case"verdocs-toolbar-icon":if(!customElements.get(i(e))){P()}break;case"verdocs-upload-dialog":if(!customElements.get(i(e))){Q()}break}}))}const q=F;const H=_;export{q as VerdocsBuild,H as defineCustomElement};
|
|
1
|
+
import{p as e,H as s,c as t,h as o,d as r,t as i}from"./p-yZBlG3YQ.js";import{VerdocsEndpoint as d,getTemplate as a}from"@verdocs/js-sdk";import{S as l}from"./p-C1sRVZWv.js";import{S as c}from"./p-C7hFgM52.js";import{d as n}from"./p-Bdf8pPWm.js";import{d as m}from"./p-REnrt0JM.js";import{d as p}from"./p-CyDWJAOZ.js";import{d as f}from"./p-DeQsR41s.js";import{d as v}from"./p-DT0LGcPi.js";import{d as h}from"./p-BT8wzCXz.js";import{d as u}from"./p-BasWFMeN.js";import{d as b}from"./p-DwPH0TQ4.js";import{d as x}from"./p-BwEGkh_6.js";import{d as k}from"./p-DXLcCG08.js";import{d as w}from"./p-B845hxhl.js";import{d as E}from"./p-5E7bNT3k.js";import{d as g}from"./p-Cfiprngx.js";import{d as j}from"./p-pyA5cdVX.js";import{d as y}from"./p-DhO1wfh-.js";import{d as C}from"./p-CLxwSMOV.js";import{d as D}from"./p-wUsR0Dpa.js";import{d as I}from"./p-CioaaWeS.js";import{d as B}from"./p-B-_kYJtC.js";import{d as U}from"./p-BhtYCb5T.js";import{d as T}from"./p-D3qUITiS.js";import{d as L}from"./p-DQTI8vRX.js";import{d as S}from"./p-DjOTs59Z.js";import{d as R}from"./p-2bW-AL6b.js";import{d as N}from"./p-BXGNkmyr.js";import{d as O}from"./p-Bpe5Awxh.js";import{d as W}from"./p-BXQO5Vza.js";import{d as X}from"./p-CFEw4Xbi.js";import{d as A}from"./p-Dm9oOnhq.js";import{d as G}from"./p-DVGumEtx.js";import{d as V}from"./p-D3ohABOv.js";import{d as Y}from"./p-Yxa93LOl.js";import{d as z}from"./p-Dtndevf4.js";import{d as M}from"./p-CDMCVJys.js";import{d as Q}from"./p-DYtSnUj9.js";import{d as J}from"./p-Bxmki12o.js";import{d as Z}from"./p-u16vefxk.js";const F=()=>`verdocs-build{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;font-family:var(--verdocs-primary-font, "Inter", "Barlow", sans-serif)}verdocs-build .content{-ms-flex:1;flex:1;gap:20px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column}verdocs-build verdocs-template-attachments,verdocs-build verdocs-template-roles{display:block;width:500px;max-width:95%;-webkit-box-sizing:border-box;box-sizing:border-box;margin:20px}verdocs-build verdocs-template-fields{border-top:1px solid #777777}verdocs-build verdocs-template-attachments{padding:20px;background:#ffffff}verdocs-build verdocs-template-fields{width:100%}verdocs-build verdocs-preview{-ms-flex:1;flex:1}verdocs-build .preview-container{-ms-flex-direction:row;flex-direction:row;display:-ms-flexbox;display:flex;width:100%;background-color:#eeeeee;max-height:100%}@media all and (max-width: 450px){verdocs-build .preview-container{-ms-flex-direction:column;flex-direction:column}}verdocs-build .preview-send-wrapper{display:-ms-flexbox;display:flex;-ms-flex:0 0 300px;flex:0 0 300px;background-color:#ffffff;-webkit-box-shadow:1px 1px 6px -2px rgba(0, 0, 0, 0.4980392157);box-shadow:1px 1px 6px -2px rgba(0, 0, 0, 0.4980392157)}@media all and (max-width: 450px){verdocs-build .preview-send-wrapper{-ms-flex:0;flex:0}}verdocs-build .preview-preview-wrapper{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-pack:center;justify-content:center;overflow-y:scroll}`;const P=e(class e extends s{constructor(e){super();if(e!==false){this.__registerHost()}this.cancel=t(this,"cancel");this.sdkError=t(this,"sdkError");this.stepChanged=t(this,"stepChanged");this.send=t(this,"send");this.templateUpdated=t(this,"templateUpdated");this.templateCreated=t(this,"templateCreated");this.rolesUpdated=t(this,"rolesUpdated");this.templateListenerId=null;this.endpoint=d.getDefault();this.templateId=null;this.step="preview";this.loading=true;this.template=null}onTemplateIdChanged(e,s){if(!s&&e&&this.step==="attachments"){this.step="preview"}this.loadTemplate(e).catch((e=>console.log("Unknown Error",e)))}onStepChanged(){this.loadTemplate(this.templateId).catch((e=>console.log("Unknown Error",e)))}async componentWillLoad(){var e,s,t,o,r,i;try{this.endpoint.loadSession();if(!this.endpoint.session){console.log("[BUILD] Unable to start builder session, must be authenticated");return}if(!this.templateId){console.log(`[BUILD] No template ID, activating upload mode`);this.step="attachments";this.loading=false;return}try{this.loadTemplate(this.templateId).catch((e=>console.log("[BUILD] Unable to load template",e)))}catch(o){console.log("[BUILD] Error loading template",o);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new l(o.message,(s=o.response)===null||s===void 0?void 0:s.status,(t=o.response)===null||t===void 0?void 0:t.data))}}catch(e){console.log("[BUILD] Error with builder session",e);(o=this.sdkError)===null||o===void 0?void 0:o.emit(new l(e.message,(r=e.response)===null||r===void 0?void 0:r.status,(i=e.response)===null||i===void 0?void 0:i.data))}}async loadTemplate(e){if(e){c.subscribe("templates",this.templateId,(()=>a(this.endpoint,this.templateId)),false,(e=>{this.template=e;this.loading=false}))}}disconnectedCallback(){console.log("[BUILD] Disconnected");this.unlistenToTemplate()}unlistenToTemplate(){if(this.templateListenerId){c.store.delListener(this.templateListenerId);this.templateListenerId=null}}handleCancel(){var e;this.step="preview";(e=this.cancel)===null||e===void 0?void 0:e.emit()}async handleTemplateCreated(e){var s;await this.loadTemplate(e);this.templateId=e;this.step="roles";(s=this.stepChanged)===null||s===void 0?void 0:s.emit("roles")}async handleRolesUpdated(e){var s;console.log("[BUILD] Roloes updated",e);(s=this.templateUpdated)===null||s===void 0?void 0:s.emit(e.detail)}async handleTemplateUpdated(e){var s;console.log("[BUILD] Template updated",e);(s=this.templateUpdated)===null||s===void 0?void 0:s.emit(e.detail)}handleAttachmentsNext(){var e;this.step="roles";(e=this.stepChanged)===null||e===void 0?void 0:e.emit("roles")}handleRolesNext(){var e;this.step="fields";(e=this.stepChanged)===null||e===void 0?void 0:e.emit("fields")}handleStepChanged(e){var s;this.step=e;(s=this.stepChanged)===null||s===void 0?void 0:s.emit(e)}render(){if(this.loading){return o(r,{class:"loading"},o("verdocs-loader",null))}if(!this.endpoint.session){return o(r,null,o("verdocs-component-error",{message:"You must be authenticated to use this module."}))}return o(r,null,o("div",{class:"content"},o("verdocs-template-build-tabs",{endpoint:this.endpoint,templateId:this.templateId,step:this.step,onSdkError:e=>{var s;return(s=this.sdkError)===null||s===void 0?void 0:s.emit(e.detail)},onStepChanged:e=>this.handleStepChanged(e.detail)}),this.step==="attachments"&&o("verdocs-template-attachments",{templateId:this.templateId,endpoint:this.endpoint,onExit:()=>this.handleCancel(),onNext:()=>this.handleAttachmentsNext(),onTemplateUpdated:e=>this.handleTemplateUpdated(e)}),this.step==="roles"&&o("verdocs-template-roles",{templateId:this.templateId,endpoint:this.endpoint,onExit:()=>this.handleCancel(),onNext:()=>this.handleRolesNext(),onRolesUpdated:e=>this.handleRolesUpdated(e)}),this.step==="fields"&&o("verdocs-template-fields",{templateId:this.templateId,endpoint:this.endpoint,onTemplateUpdated:e=>this.handleTemplateUpdated(e)}),this.step==="preview"&&o("div",{class:"preview-container"},o("div",{class:"preview-send-wrapper"},o("verdocs-send",{templateId:this.templateId,endpoint:this.endpoint,onSend:e=>{var s;return(s=this.send)===null||s===void 0?void 0:s.emit(e.detail)},style:{width:"100%"}})),o("div",{class:"preview-preview-wrapper"},o("verdocs-preview",{templateId:this.templateId,endpoint:this.endpoint,style:{display:"flex",flex:"1",maxWidth:"1000px"}})))))}get el(){return this}static get watchers(){return{templateId:[{onTemplateIdChanged:0}],step:[{onStepChanged:0}]}}static get style(){return F()}},[0,"verdocs-build",{endpoint:[16],templateId:[1537,"template-id"],step:[1537],loading:[32],template:[32]},undefined,{templateId:[{onTemplateIdChanged:0}],step:[{onStepChanged:0}]}]);function q(){if(typeof customElements==="undefined"){return}const e=["verdocs-build","verdocs-button","verdocs-checkbox","verdocs-component-error","verdocs-contact-picker","verdocs-dialog","verdocs-field-attachment","verdocs-field-checkbox","verdocs-field-date","verdocs-field-dropdown","verdocs-field-initial","verdocs-field-radio","verdocs-field-signature","verdocs-field-textarea","verdocs-field-textbox","verdocs-field-timestamp","verdocs-file-chooser","verdocs-flag","verdocs-help-icon","verdocs-loader","verdocs-menu-panel","verdocs-ok-dialog","verdocs-portal","verdocs-preview","verdocs-progress-bar","verdocs-select-input","verdocs-send","verdocs-spinner","verdocs-template-attachments","verdocs-template-build-tabs","verdocs-template-document-page","verdocs-template-field-properties","verdocs-template-fields","verdocs-template-role-properties","verdocs-template-roles","verdocs-text-input","verdocs-toolbar-icon","verdocs-upload-dialog"];e.forEach((e=>{switch(e){case"verdocs-build":if(!customElements.get(i(e))){customElements.define(i(e),P)}break;case"verdocs-button":if(!customElements.get(i(e))){n()}break;case"verdocs-checkbox":if(!customElements.get(i(e))){m()}break;case"verdocs-component-error":if(!customElements.get(i(e))){p()}break;case"verdocs-contact-picker":if(!customElements.get(i(e))){f()}break;case"verdocs-dialog":if(!customElements.get(i(e))){v()}break;case"verdocs-field-attachment":if(!customElements.get(i(e))){h()}break;case"verdocs-field-checkbox":if(!customElements.get(i(e))){u()}break;case"verdocs-field-date":if(!customElements.get(i(e))){b()}break;case"verdocs-field-dropdown":if(!customElements.get(i(e))){x()}break;case"verdocs-field-initial":if(!customElements.get(i(e))){k()}break;case"verdocs-field-radio":if(!customElements.get(i(e))){w()}break;case"verdocs-field-signature":if(!customElements.get(i(e))){E()}break;case"verdocs-field-textarea":if(!customElements.get(i(e))){g()}break;case"verdocs-field-textbox":if(!customElements.get(i(e))){j()}break;case"verdocs-field-timestamp":if(!customElements.get(i(e))){y()}break;case"verdocs-file-chooser":if(!customElements.get(i(e))){C()}break;case"verdocs-flag":if(!customElements.get(i(e))){D()}break;case"verdocs-help-icon":if(!customElements.get(i(e))){I()}break;case"verdocs-loader":if(!customElements.get(i(e))){B()}break;case"verdocs-menu-panel":if(!customElements.get(i(e))){U()}break;case"verdocs-ok-dialog":if(!customElements.get(i(e))){T()}break;case"verdocs-portal":if(!customElements.get(i(e))){L()}break;case"verdocs-preview":if(!customElements.get(i(e))){S()}break;case"verdocs-progress-bar":if(!customElements.get(i(e))){R()}break;case"verdocs-select-input":if(!customElements.get(i(e))){N()}break;case"verdocs-send":if(!customElements.get(i(e))){O()}break;case"verdocs-spinner":if(!customElements.get(i(e))){W()}break;case"verdocs-template-attachments":if(!customElements.get(i(e))){X()}break;case"verdocs-template-build-tabs":if(!customElements.get(i(e))){A()}break;case"verdocs-template-document-page":if(!customElements.get(i(e))){G()}break;case"verdocs-template-field-properties":if(!customElements.get(i(e))){V()}break;case"verdocs-template-fields":if(!customElements.get(i(e))){Y()}break;case"verdocs-template-role-properties":if(!customElements.get(i(e))){z()}break;case"verdocs-template-roles":if(!customElements.get(i(e))){M()}break;case"verdocs-text-input":if(!customElements.get(i(e))){Q()}break;case"verdocs-toolbar-icon":if(!customElements.get(i(e))){J()}break;case"verdocs-upload-dialog":if(!customElements.get(i(e))){Z()}break}}))}const _=P;const H=q;export{_ as VerdocsBuild,H as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=verdocs-build.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{V as
|
|
1
|
+
import{V as s,d as o}from"./p-DeQsR41s.js";const t=s;const p=o;export{t as VerdocsContactPicker,p as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=verdocs-contact-picker.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{V as o,d as s}from"./p-
|
|
1
|
+
import{V as o,d as s}from"./p-Bpe5Awxh.js";const p=o;const t=s;export{p as VerdocsSend,t as defineCustomElement};
|
|
2
2
|
//# sourceMappingURL=verdocs-send.js.map
|
|
@@ -6,7 +6,7 @@ import { f as convertToE164 } from './utils-D9l-GFdv.js';
|
|
|
6
6
|
import './index-BglCURB-.js';
|
|
7
7
|
import './Types-CIxfEdV7.js';
|
|
8
8
|
|
|
9
|
-
/*! Axios v1.
|
|
9
|
+
/*! Axios v1.17.0 Copyright (c) 2026 Matt Zabriskie and contributors */
|
|
10
10
|
|
|
11
11
|
var axios_1;
|
|
12
12
|
var hasRequiredAxios;
|
|
@@ -438,7 +438,9 @@ function requireAxios () {
|
|
|
438
438
|
return;
|
|
439
439
|
}
|
|
440
440
|
|
|
441
|
-
|
|
441
|
+
// findKey lowercases the key, so caseless lookup only applies to strings —
|
|
442
|
+
// symbol keys are identity-matched.
|
|
443
|
+
const targetKey = (caseless && typeof key === 'string' && findKey(result, key)) || key;
|
|
442
444
|
// Read via own-prop only — a bare `result[targetKey]` walks the prototype
|
|
443
445
|
// chain, so a polluted Object.prototype value could surface here and get
|
|
444
446
|
// copied into the merged result.
|
|
@@ -455,7 +457,24 @@ function requireAxios () {
|
|
|
455
457
|
};
|
|
456
458
|
|
|
457
459
|
for (let i = 0, l = objs.length; i < l; i++) {
|
|
458
|
-
|
|
460
|
+
const source = objs[i];
|
|
461
|
+
if (!source || isBuffer(source)) {
|
|
462
|
+
continue;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
forEach(source, assignValue);
|
|
466
|
+
|
|
467
|
+
if (typeof source !== 'object' || isArray(source)) {
|
|
468
|
+
continue;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
const symbols = Object.getOwnPropertySymbols(source);
|
|
472
|
+
for (let j = 0; j < symbols.length; j++) {
|
|
473
|
+
const symbol = symbols[j];
|
|
474
|
+
if (propertyIsEnumerable.call(source, symbol)) {
|
|
475
|
+
assignValue(source[symbol], symbol);
|
|
476
|
+
}
|
|
477
|
+
}
|
|
459
478
|
}
|
|
460
479
|
return result;
|
|
461
480
|
}
|
|
@@ -684,6 +703,8 @@ function requireAxios () {
|
|
|
684
703
|
hasOwnProperty.call(obj, prop)
|
|
685
704
|
)(Object.prototype);
|
|
686
705
|
|
|
706
|
+
const { propertyIsEnumerable } = Object.prototype;
|
|
707
|
+
|
|
687
708
|
/**
|
|
688
709
|
* Determine if a value is a RegExp object
|
|
689
710
|
*
|
|
@@ -1165,7 +1186,7 @@ function requireAxios () {
|
|
|
1165
1186
|
const lHeader = normalizeHeader(_header);
|
|
1166
1187
|
|
|
1167
1188
|
if (!lHeader) {
|
|
1168
|
-
|
|
1189
|
+
return;
|
|
1169
1190
|
}
|
|
1170
1191
|
|
|
1171
1192
|
const key = utils$1.findKey(self, lHeader);
|
|
@@ -1193,7 +1214,7 @@ function requireAxios () {
|
|
|
1193
1214
|
key;
|
|
1194
1215
|
for (const entry of header) {
|
|
1195
1216
|
if (!utils$1.isArray(entry)) {
|
|
1196
|
-
throw TypeError('Object iterator must return a key-value pair');
|
|
1217
|
+
throw new TypeError('Object iterator must return a key-value pair');
|
|
1197
1218
|
}
|
|
1198
1219
|
|
|
1199
1220
|
obj[(key = entry[0])] = (dest = obj[key])
|
|
@@ -1808,7 +1829,7 @@ function requireAxios () {
|
|
|
1808
1829
|
}
|
|
1809
1830
|
|
|
1810
1831
|
if (stack.indexOf(value) !== -1) {
|
|
1811
|
-
throw Error('Circular reference detected in ' + path.join('.'));
|
|
1832
|
+
throw new Error('Circular reference detected in ' + path.join('.'));
|
|
1812
1833
|
}
|
|
1813
1834
|
|
|
1814
1835
|
stack.push(value);
|
|
@@ -2025,6 +2046,7 @@ function requireAxios () {
|
|
|
2025
2046
|
forcedJSONParsing: true,
|
|
2026
2047
|
clarifyTimeoutError: false,
|
|
2027
2048
|
legacyInterceptorReqResOrdering: true,
|
|
2049
|
+
advertiseZstdAcceptEncoding: false,
|
|
2028
2050
|
};
|
|
2029
2051
|
|
|
2030
2052
|
var URLSearchParams$1 = typeof URLSearchParams !== 'undefined' ? URLSearchParams : AxiosURLSearchParams;
|
|
@@ -2859,12 +2881,12 @@ function requireAxios () {
|
|
|
2859
2881
|
*
|
|
2860
2882
|
* @returns {string} UTF-8 bytes as a Latin-1 string
|
|
2861
2883
|
*/
|
|
2862
|
-
const encodeUTF8 = (str) =>
|
|
2884
|
+
const encodeUTF8$1 = (str) =>
|
|
2863
2885
|
encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) =>
|
|
2864
2886
|
String.fromCharCode(parseInt(hex, 16))
|
|
2865
2887
|
);
|
|
2866
2888
|
|
|
2867
|
-
|
|
2889
|
+
function resolveConfig(config) {
|
|
2868
2890
|
const newConfig = mergeConfig({}, config);
|
|
2869
2891
|
|
|
2870
2892
|
// Read only own properties to prevent prototype pollution gadgets
|
|
@@ -2885,8 +2907,8 @@ function requireAxios () {
|
|
|
2885
2907
|
|
|
2886
2908
|
newConfig.url = buildURL(
|
|
2887
2909
|
buildFullPath(baseURL, url, allowAbsoluteUrls),
|
|
2888
|
-
|
|
2889
|
-
|
|
2910
|
+
own('params'),
|
|
2911
|
+
own('paramsSerializer')
|
|
2890
2912
|
);
|
|
2891
2913
|
|
|
2892
2914
|
// HTTP basic authentication
|
|
@@ -2894,13 +2916,17 @@ function requireAxios () {
|
|
|
2894
2916
|
headers.set(
|
|
2895
2917
|
'Authorization',
|
|
2896
2918
|
'Basic ' +
|
|
2897
|
-
btoa((auth.username || '') + ':' + (auth.password ? encodeUTF8(auth.password) : ''))
|
|
2919
|
+
btoa((auth.username || '') + ':' + (auth.password ? encodeUTF8$1(auth.password) : ''))
|
|
2898
2920
|
);
|
|
2899
2921
|
}
|
|
2900
2922
|
|
|
2901
2923
|
if (utils$1.isFormData(data)) {
|
|
2902
|
-
if (
|
|
2903
|
-
|
|
2924
|
+
if (
|
|
2925
|
+
platform.hasStandardBrowserEnv ||
|
|
2926
|
+
platform.hasStandardBrowserWebWorkerEnv ||
|
|
2927
|
+
utils$1.isReactNative(data)
|
|
2928
|
+
) {
|
|
2929
|
+
headers.setContentType(undefined); // browser/web worker/RN handles it
|
|
2904
2930
|
} else if (utils$1.isFunction(data.getHeaders)) {
|
|
2905
2931
|
// Node.js FormData (like form-data package)
|
|
2906
2932
|
setFormDataHeaders(headers, data.getHeaders(), own('formDataHeaderPolicy'));
|
|
@@ -2932,7 +2958,7 @@ function requireAxios () {
|
|
|
2932
2958
|
}
|
|
2933
2959
|
|
|
2934
2960
|
return newConfig;
|
|
2935
|
-
}
|
|
2961
|
+
}
|
|
2936
2962
|
|
|
2937
2963
|
const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
|
2938
2964
|
|
|
@@ -3393,12 +3419,41 @@ function requireAxios () {
|
|
|
3393
3419
|
return bytes;
|
|
3394
3420
|
}
|
|
3395
3421
|
|
|
3396
|
-
const VERSION = "1.
|
|
3422
|
+
const VERSION = "1.17.0";
|
|
3397
3423
|
|
|
3398
3424
|
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
|
3399
3425
|
|
|
3400
3426
|
const { isFunction } = utils$1;
|
|
3401
3427
|
|
|
3428
|
+
/**
|
|
3429
|
+
* Encode a UTF-8 string to a Latin-1 byte string for use with btoa().
|
|
3430
|
+
* This is a modern replacement for the deprecated unescape(encodeURIComponent(str)) pattern.
|
|
3431
|
+
*
|
|
3432
|
+
* @param {string} str The string to encode
|
|
3433
|
+
*
|
|
3434
|
+
* @returns {string} UTF-8 bytes as a Latin-1 string
|
|
3435
|
+
*/
|
|
3436
|
+
const encodeUTF8 = (str) =>
|
|
3437
|
+
encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) =>
|
|
3438
|
+
String.fromCharCode(parseInt(hex, 16))
|
|
3439
|
+
);
|
|
3440
|
+
|
|
3441
|
+
// Node's WHATWG URL parser returns `username` and `password` percent-encoded.
|
|
3442
|
+
// Decode before composing the `auth` option so credentials such as
|
|
3443
|
+
// `my%40email.com:pass` are sent as `my@email.com:pass`. Falls back to the
|
|
3444
|
+
// original value for malformed input so a bad encoding never throws.
|
|
3445
|
+
const decodeURIComponentSafe = (value) => {
|
|
3446
|
+
if (!utils$1.isString(value)) {
|
|
3447
|
+
return value;
|
|
3448
|
+
}
|
|
3449
|
+
|
|
3450
|
+
try {
|
|
3451
|
+
return decodeURIComponent(value);
|
|
3452
|
+
} catch (error) {
|
|
3453
|
+
return value;
|
|
3454
|
+
}
|
|
3455
|
+
};
|
|
3456
|
+
|
|
3402
3457
|
const test = (fn, ...args) => {
|
|
3403
3458
|
try {
|
|
3404
3459
|
return !!fn(...args);
|
|
@@ -3407,6 +3462,15 @@ function requireAxios () {
|
|
|
3407
3462
|
}
|
|
3408
3463
|
};
|
|
3409
3464
|
|
|
3465
|
+
const maybeWithAuthCredentials = (url) => {
|
|
3466
|
+
const protocolIndex = url.indexOf('://');
|
|
3467
|
+
let urlToCheck = url;
|
|
3468
|
+
if (protocolIndex !== -1) {
|
|
3469
|
+
urlToCheck = urlToCheck.slice(protocolIndex + 3);
|
|
3470
|
+
}
|
|
3471
|
+
return urlToCheck.includes('@') || urlToCheck.includes(':');
|
|
3472
|
+
};
|
|
3473
|
+
|
|
3410
3474
|
const factory = (env) => {
|
|
3411
3475
|
const globalObject =
|
|
3412
3476
|
utils$1.global !== undefined && utils$1.global !== null
|
|
@@ -3554,6 +3618,7 @@ function requireAxios () {
|
|
|
3554
3618
|
|
|
3555
3619
|
const hasMaxContentLength = utils$1.isNumber(maxContentLength) && maxContentLength > -1;
|
|
3556
3620
|
const hasMaxBodyLength = utils$1.isNumber(maxBodyLength) && maxBodyLength > -1;
|
|
3621
|
+
const own = (key) => (utils$1.hasOwnProp(config, key) ? config[key] : undefined);
|
|
3557
3622
|
|
|
3558
3623
|
let _fetch = envFetch || fetch;
|
|
3559
3624
|
|
|
@@ -3576,6 +3641,46 @@ function requireAxios () {
|
|
|
3576
3641
|
let requestContentLength;
|
|
3577
3642
|
|
|
3578
3643
|
try {
|
|
3644
|
+
// HTTP basic authentication
|
|
3645
|
+
let auth = undefined;
|
|
3646
|
+
const configAuth = own('auth');
|
|
3647
|
+
|
|
3648
|
+
if (configAuth) {
|
|
3649
|
+
const username = configAuth.username || '';
|
|
3650
|
+
const password = configAuth.password || '';
|
|
3651
|
+
auth = {
|
|
3652
|
+
username,
|
|
3653
|
+
password
|
|
3654
|
+
};
|
|
3655
|
+
}
|
|
3656
|
+
|
|
3657
|
+
if (maybeWithAuthCredentials(url)) {
|
|
3658
|
+
const parsedURL = new URL(url, platform.origin);
|
|
3659
|
+
|
|
3660
|
+
if (!auth && (parsedURL.username || parsedURL.password)) {
|
|
3661
|
+
const urlUsername = decodeURIComponentSafe(parsedURL.username);
|
|
3662
|
+
const urlPassword = decodeURIComponentSafe(parsedURL.password);
|
|
3663
|
+
auth = {
|
|
3664
|
+
username: urlUsername,
|
|
3665
|
+
password: urlPassword
|
|
3666
|
+
};
|
|
3667
|
+
}
|
|
3668
|
+
|
|
3669
|
+
if (parsedURL.username || parsedURL.password) {
|
|
3670
|
+
parsedURL.username = '';
|
|
3671
|
+
parsedURL.password = '';
|
|
3672
|
+
url = parsedURL.href;
|
|
3673
|
+
}
|
|
3674
|
+
}
|
|
3675
|
+
|
|
3676
|
+
if (auth) {
|
|
3677
|
+
headers.delete('authorization');
|
|
3678
|
+
headers.set(
|
|
3679
|
+
'Authorization',
|
|
3680
|
+
'Basic ' + btoa(encodeUTF8((auth.username || '') + ':' + (auth.password || '')))
|
|
3681
|
+
);
|
|
3682
|
+
}
|
|
3683
|
+
|
|
3579
3684
|
// Enforce maxContentLength for data: URLs up-front so we never materialize
|
|
3580
3685
|
// an oversized payload. The HTTP adapter applies the same check (see http.js
|
|
3581
3686
|
// "if (protocol === 'data:')" branch).
|
|
@@ -4257,6 +4362,7 @@ function requireAxios () {
|
|
|
4257
4362
|
forcedJSONParsing: validators.transitional(validators.boolean),
|
|
4258
4363
|
clarifyTimeoutError: validators.transitional(validators.boolean),
|
|
4259
4364
|
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean),
|
|
4365
|
+
advertiseZstdAcceptEncoding: validators.transitional(validators.boolean),
|
|
4260
4366
|
},
|
|
4261
4367
|
false
|
|
4262
4368
|
);
|