@verdocs/web-sdk 5.0.62 → 5.0.63
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/loader.cjs.js +1 -1
- package/dist/cjs/verdocs-contact-picker.verdocs-multiselect.entry.cjs.js.map +1 -1
- package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +4 -3
- package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-sign.cjs.entry.js +20 -3
- package/dist/cjs/verdocs-sign.cjs.entry.js.map +1 -1
- package/dist/cjs/verdocs-sign.entry.cjs.js.map +1 -1
- package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
- package/dist/collection/components/controls/verdocs-multiselect/verdocs-multiselect.css +0 -3
- package/dist/collection/components/controls/verdocs-multiselect/verdocs-multiselect.js +3 -2
- package/dist/collection/components/controls/verdocs-multiselect/verdocs-multiselect.js.map +1 -1
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js +21 -3
- package/dist/collection/components/embeds/verdocs-sign/verdocs-sign.js.map +1 -1
- package/dist/components/{p-BUyPoeJ0.js → p-B7NhLmjo.js} +6 -5
- package/dist/components/p-B7NhLmjo.js.map +1 -0
- package/dist/components/{p-Bc1sQ7yk.js → p-CpKJA02w.js} +3 -3
- package/dist/components/{p-Bc1sQ7yk.js.map → p-CpKJA02w.js.map} +1 -1
- package/dist/components/{p-C9AwoGJV.js → p-DZitGWV-.js} +4 -4
- package/dist/components/{p-C9AwoGJV.js.map → p-DZitGWV-.js.map} +1 -1
- package/dist/components/verdocs-build.js +3 -3
- package/dist/components/verdocs-contact-picker.js +1 -1
- package/dist/components/verdocs-multiselect.js +1 -1
- package/dist/components/verdocs-send.js +1 -1
- package/dist/components/verdocs-sign.js +21 -3
- package/dist/components/verdocs-sign.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/verdocs-contact-picker.verdocs-multiselect.entry.js.map +1 -1
- package/dist/esm/verdocs-contact-picker_2.entry.js +4 -3
- package/dist/esm/verdocs-contact-picker_2.entry.js.map +1 -1
- package/dist/esm/verdocs-sign.entry.js +20 -3
- package/dist/esm/verdocs-sign.entry.js.map +1 -1
- package/dist/esm/verdocs-web-sdk.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/verdocs-contact-picker.verdocs-multiselect.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-contact-picker_2.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js.map +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/embeds/verdocs-sign/verdocs-sign.d.ts +1 -0
- package/dist/verdocs-web-sdk/{p-7739c9cf.entry.js → p-0809c039.entry.js} +3 -3
- package/dist/verdocs-web-sdk/p-0809c039.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-79f49387.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-79f49387.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-CMNrFz4K.system.js +1 -1
- package/dist/verdocs-web-sdk/p-Clpmakje.system.js.map +1 -0
- package/dist/verdocs-web-sdk/{p-vsmVMR-0.system.js.map → p-CpvNCe6p.system.js.map} +1 -1
- package/dist/verdocs-web-sdk/{p-ac708ccf.system.entry.js → p-b1c64b2d.system.entry.js} +2 -2
- package/dist/verdocs-web-sdk/p-b1c64b2d.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/p-fcd8d3d5.system.entry.js +2 -0
- package/dist/verdocs-web-sdk/p-fcd8d3d5.system.entry.js.map +1 -0
- package/dist/verdocs-web-sdk/verdocs-contact-picker.verdocs-multiselect.entry.esm.js.map +1 -1
- package/dist/verdocs-web-sdk/verdocs-sign.entry.esm.js.map +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +2 -2
- package/dist/components/p-BUyPoeJ0.js.map +0 -1
- package/dist/verdocs-web-sdk/p-1f2d45f4.system.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-1f2d45f4.system.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-5ae1f0ae.entry.js +0 -2
- package/dist/verdocs-web-sdk/p-5ae1f0ae.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-7739c9cf.entry.js.map +0 -1
- package/dist/verdocs-web-sdk/p-U8oNx9P0.system.js.map +0 -1
- package/dist/verdocs-web-sdk/p-ac708ccf.system.entry.js.map +0 -1
@@ -1,2 +1,2 @@
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,t,o,a){function i(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,n){function d(e){try{l(a.next(e))}catch(e){n(e)}}function s(e){try{l(a["throw"](e))}catch(e){n(e)}}function l(e){e.done?o(e.value):i(e.value).then(d,s)}l((a=a.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var o={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},a,i,n,d;return d={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(d[Symbol.iterator]=function(){return this}),d;function s(e){return function(t){return l([e,t])}}function l(s){if(a)throw new TypeError("Generator is already executing.");while(d&&(d=0,s[0]&&(o=0)),o)try{if(a=1,i&&(n=s[0]&2?i["return"]:s[0]?i["throw"]||((n=i["return"])&&n.call(i),0):i.next)&&!(n=n.call(i,s[1])).done)return n;if(i=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:o.label++;return{value:s[1],done:false};case 5:o.label++;i=s[1];s=[0];continue;case 7:s=o.ops.pop();o.trys.pop();continue;default:if(!(n=o.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){o=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){o.label=s[1];break}if(s[0]===6&&o.label<n[1]){o.label=n[1];n=s;break}if(n&&o.label<n[2]){o.label=n[2];o.ops.push(s);break}if(n[2])o.ops.pop();o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e];i=0}finally{a=n=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{p as promiseResolve,b as bootstrapLazy}from"./index-C1erT8T2.js";export{s as setNonce}from"./index-C1erT8T2.js";import{g as globalScripts}from"./app-globals-DQuL1Twl.js";var patchBrowser=function(){var e=import.meta.url;var t={};if(e!==""){t.resourcesUrl=new URL(".",e).href}return promiseResolve(t)};patchBrowser().then((function(e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,globalScripts()];case 1:t.sent();return[2,bootstrapLazy(JSON.parse('[["verdocs-build",[[0,"verdocs-build",{"endpoint":[16],"templateId":[1537,"template-id"],"step":[1537],"loading":[32],"template":[32]},null,{"templateId":["onTemplateIdChanged"],"step":["onStepChanged"]}]]],["verdocs-sign",[[0,"verdocs-sign",{"endpoint":[1040],"envelopeId":[513,"envelope-id"],"roleId":[513,"role-id"],"inviteCode":[513,"invite-code"],"headerTargetId":[1,"header-target-id"],"recipient":[32],"hasSignature":[32],"nextButtonLabel":[32],"nextSubmits":[32],"fatalErrorHeader":[32],"fatalErrorMessage":[32],"focusedField":[32],"submitting":[32],"submitted":[32],"isDone":[32],"showDone":[32],"showLoadError":[32],"finishLater":[32],"showFinishLater":[32],"agreed":[32],"documentsSingularPlural":[32],"authStep":[32],"authMethodStates":[32],"kbaQuestions":[32],"showSpinner":[32],"kbaChoices":[32],"loading":[32],"envelope":[32]}]]],["verdocs-envelopes-list",[[0,"verdocs-envelopes-list",{"endpoint":[16],"view":[1537],"status":[1537],"sort":[1537],"match":[1537],"showPagination":[4,"show-pagination"],"rowsPerPage":[2,"rows-per-page"],"selectedPage":[2,"selected-page"],"count":[32],"initiallyLoaded":[32],"loading":[32],"selectedEnvelopes":[32],"envelopes":[32]},null,{"view":["handleViewUpdated"],"status":["handleStatusUpdated"],"sort":["handleSortUpdated"],"match":["handleMatchUpdated"],"selectedPage":["handlePageUpdated"]}]]],["verdocs-templates-list",[[0,"verdocs-templates-list",{"endpoint":[16],"visibility":[1537],"starred":[1537],"sort":[1537],"name":[1537],"allowedActions":[1040,"allowed-actions"],"showPagination":[4,"show-pagination"],"rowsPerPage":[2,"rows-per-page"],"selectedPage":[2,"selected-page"],"count":[32],"initiallyLoaded":[32],"loading":[32],"confirmDelete":[32],"templates":[32],"localNameFilter":[32]},null,{"sharing":["handleSharingUpdated"],"starred":["handleStarredUpdated"],"sort":["handleSortUpdated"],"name":["handleNameUpdated"],"selectedPage":["handlePageUpdated"]}]]],["verdocs-field-payment",[[0,"verdocs-field-payment",{"source":[513],"sourceid":[513],"fieldname":[513],"field":[16],"disabled":[516],"done":[516],"editable":[516],"moveable":[516],"xscale":[514],"yscale":[514],"pagenumber":[514],"fields":[16],"pageNum":[2,"page-num"],"roleName":[1,"role-name"],"fieldId":[1,"field-id"],"recipients":[8],"selectedRoleName":[1,"selected-role-name"],"pdfPages":[16,"pdf-pages"],"currentSignature":[1,"current-signature"],"currentSignatureId":[1,"current-signature-id"],"currentInitial":[1,"current-initial"],"currentInitialId":[1,"current-initial-id"],"signed":[4],"roleindex":[2],"showingProperties":[32],"focused":[32],"preparedMessage":[32],"signatureUrl":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["verdocs-envelope-sidebar",[[0,"verdocs-envelope-sidebar",{"endpoint":[16],"envelopeId":[1,"envelope-id"],"activeTab":[32],"panelOpen":[32],"showRecipientDialog":[32],"showCancelDialog":[32],"showReinviteDialog":[32],"remindersEnabled":[32],"updatingReminders":[32],"initialReminder":[32],"followupReminders":[32],"loading":[32],"envelope":[32]}]]],["verdocs-template-create",[[0,"verdocs-template-create",{"endpoint":[16],"maxSize":[1026,"max-size"],"file":[32],"creating":[32],"progressLabel":[32],"progressPercent":[32],"errorMessage":[32]}]]],["verdocs-auth",[[0,"verdocs-auth",{"endpoint":[16],"visible":[4],"logo":[1],"displayMode":[1025,"display-mode"],"org_name":[32],"first_name":[32],"last_name":[32],"email":[32],"verificationCode":[32],"newPassword":[32],"password":[32],"confirmpass":[32],"submitting":[32],"resendDisabled":[32],"session":[32],"profile":[32]}]]],["verdocs-date-input",[[0,"verdocs-date-input",{"value":[1537],"label":[1],"placeholder":[1],"helpText":[1,"help-text"],"disabled":[4],"required":[4],"showingPw":[32],"focused":[32],"containerId":[32],"focusField":[64]}]]],["verdocs-envelope-recipient-summary",[[0,"verdocs-envelope-recipient-summary",{"endpoint":[16],"envelopeId":[1,"envelope-id"],"canSendAnother":[4,"can-send-another"],"canView":[4,"can-view"],"canDone":[4,"can-done"],"isOpen":[32],"recipientStatusIcons":[32],"containerId":[32],"gettingLinks":[32],"links":[32],"loading":[32],"envelope":[32]}]]],["verdocs-dialog",[[4,"verdocs-dialog"]]],["verdocs-quick-functions",[[0,"verdocs-quick-functions",{"endpoint":[16]}]]],["verdocs-radio-button",[[0,"verdocs-radio-button",{"checked":[4],"name":[1],"value":[1],"disabled":[4]}]]],["verdocs-search-box",[[0,"verdocs-search-box",{"endpoint":[16],"placeholder":[1],"type":[1],"query":[1],"grabsFocus":[4,"grabs-focus"],"focusField":[64]}]]],["verdocs-search-tabs",[[0,"verdocs-search-tabs",{"selected":[32]}]]],["verdocs-table",[[0,"verdocs-table",{"columns":[16],"data":[16]}]]],["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],"selectedOption":[32]}]]],["verdocs-toggle-button",[[0,"verdocs-toggle-button",{"active":[4],"icon":[1],"label":[1],"size":[1],"_active":[32]}]]],["verdocs-envelope-recipient-link",[[0,"verdocs-envelope-recipient-link",{"endpoint":[16],"envelopeId":[1,"envelope-id"],"roleName":[1,"role-name"],"isOpen":[32],"gettingLink":[32],"link":[32],"loading":[32],"envelope":[32],"recipient":[32]}]]],["verdocs-status-indicator",[[0,"verdocs-status-indicator",{"size":[1],"theme":[1],"status":[1],"envelope":[16],"isOpen":[32],"containerId":[32]}]]],["verdocs-template-star",[[0,"verdocs-template-star",{"endpoint":[16],"template":[1040],"updating":[32]}]]],["verdocs-envelope-document-page",[[0,"verdocs-envelope-document-page",{"endpoint":[16],"envelopeId":[1,"envelope-id"],"documentId":[1,"document-id"],"pageNumber":[2,"page-number"],"virtualWidth":[2,"virtual-width"],"virtualHeight":[1026,"virtual-height"],"layers":[16],"type":[1],"containerId":[32],"renderedWidth":[32],"renderedHeight":[32],"naturalWidth":[32],"naturalHeight":[32],"aspectRatio":[32],"skipFirstNotification":[32],"pageDisplayUri":[32]}]]],["verdocs-switch",[[0,"verdocs-switch",{"checked":[1028],"theme":[1],"disabled":[4]}]]],["verdocs-menu-panel_2",[[0,"verdocs-template-role-properties",{"endpoint":[16],"templateId":[1,"template-id"],"roleName":[1,"role-name"],"dirty":[32],"saving":[32],"name":[32],"type":[32],"first_name":[32],"last_name":[32],"email":[32],"phone":[32],"delegator":[32],"loading":[32],"template":[32]}],[4,"verdocs-menu-panel",{"side":[1],"overlay":[4],"width":[2]},[[4,"click","handleClick"]]]]],["verdocs-button-panel_2",[[4,"verdocs-button-panel",{"icon":[1],"showPanel":[64],"hidePanel":[64],"toggle":[64]}],[4,"verdocs-tabs",{"tabs":[16],"selectedTab":[2,"selected-tab"]}]]],["verdocs-pagination_2",[[0,"verdocs-pagination",{"selectedPage":[1538,"selected-page"],"itemCount":[2,"item-count"],"perPage":[2,"per-page"]}],[0,"verdocs-quick-filter",{"options":[16],"label":[1],"value":[1537],"placeholder":[1],"open":[32]}]]],["verdocs-button_2",[[0,"verdocs-help-icon",{"text":[1],"icon":[1],"containerId":[32]}],[0,"verdocs-button",{"label":[1],"startIcon":[1,"start-icon"],"endIcon":[1,"end-icon"],"size":[1],"type":[1],"variant":[1],"disabled":[4]}]]],["verdocs-file-chooser_2",[[0,"verdocs-file-chooser",{"endpoint":[16],"file":[32]}],[0,"verdocs-progress-bar",{"label":[1],"showPercent":[4,"show-percent"],"percent":[2]}]]],["verdocs-organization-card_2",[[0,"verdocs-organization-card",{"organization":[16],"hovered":[32]},[[1,"mouseover","onMouseOver"],[1,"mouseout","onMouseOut"]]],[4,"verdocs-portal",{"anchor":[1],"voffset":[2]},[[11,"scroll","handleScroll"],[9,"resize","handleResize"],[4,"click","handleClick"]]]]],["verdocs-checkbox_6",[[0,"verdocs-template-field-properties",{"endpoint":[16],"templateId":[1,"template-id"],"fieldName":[1025,"field-name"],"helpText":[1,"help-text"],"dirty":[32],"label":[32],"type":[32],"name":[32],"required":[32],"roleName":[32],"group":[32],"fieldType":[32],"options":[32],"placeholder":[32],"defaultValue":[32],"showingHelp":[32],"loading":[32],"template":[32]}],[0,"verdocs-checkbox",{"checked":[4],"name":[1],"label":[1],"value":[1],"theme":[1],"size":[1],"disabled":[4]}],[0,"verdocs-select-input",{"value":[1],"label":[1],"options":[16],"disabled":[4]}],[0,"verdocs-component-error",{"message":[1]}],[0,"verdocs-loader"],[0,"verdocs-text-input",{"value":[1537],"label":[1],"placeholder":[1],"autocomplete":[1],"helpText":[1,"help-text"],"clearable":[4],"copyable":[4],"type":[1],"disabled":[4],"required":[4],"showingPw":[32]}]]],["verdocs-kba-dialog_3",[[0,"verdocs-view",{"endpoint":[16],"envelopeId":[1,"envelope-id"],"headerTargetId":[1,"header-target-id"],"canceling":[32],"showCancelDone":[32],"showLoadError":[32],"loading":[32],"envelope":[32]}],[0,"verdocs-kba-dialog",{"step":[2],"steps":[2],"helptitle":[1],"helptext":[1],"mode":[1],"label":[1],"placeholder":[1],"recipient":[16],"choices":[16],"response":[32],"updatedRecipient":[32],"dobContainerId":[32]}],[0,"verdocs-otp-dialog",{"endpoint":[1040],"method":[1],"recipient":[16],"resendDisabled":[32],"response":[32]}]]],["verdocs-template-document-page_2",[[0,"verdocs-toolbar-icon",{"text":[1],"icon":[1],"placement":[1],"containerId":[32]}],[0,"verdocs-template-document-page",{"endpoint":[16],"editable":[4],"disabled":[4],"done":[4],"templateId":[1,"template-id"],"documentId":[1,"document-id"],"pageNumber":[2,"page-number"],"virtualWidth":[2,"virtual-width"],"virtualHeight":[1026,"virtual-height"],"layers":[16],"containerId":[32],"renderedWidth":[32],"renderedHeight":[32],"naturalWidth":[32],"naturalHeight":[32],"aspectRatio":[32],"skipFirstNotification":[32],"pageDisplayUri":[32],"xScale":[32],"yScale":[32],"loading":[32],"template":[32]}]]],["verdocs-contact-picker_2",[[0,"verdocs-contact-picker",{"endpoint":[16],"templateRole":[16,"template-role"],"contactSuggestions":[16,"contact-suggestions"],"first_name":[32],"last_name":[32],"email":[32],"phone":[32],"zip":[32],"address":[32],"message":[32],"showSuggestions":[32],"showMessage":[32],"delegator":[32],"auth_methods":[32],"passcode":[32],"firstNameFieldId":[32],"lastNameFieldId":[32],"emailFieldId":[32],"phoneFieldId":[32],"featureFlags":[32],"activeEntitlements":[32]}],[0,"verdocs-multiselect",{"label":[1],"placeholder":[1],"options":[16],"selectedOptions":[16,"selected-options"],"showPicker":[32]}]]],["verdocs-dropdown",[[0,"verdocs-dropdown",{"options":[16],"containerId":[32],"showPicker":[32]}]]],["verdocs-spinner",[[0,"verdocs-spinner",{"size":[2],"mode":[1]}]]],["verdocs-ok-dialog",[[0,"verdocs-ok-dialog",{"heading":[1],"message":[1],"buttonLabel":[1,"button-label"],"showCancel":[4,"show-cancel"],"closed":[32]}]]],["verdocs-field-attachment_13",[[0,"verdocs-field-attachment",{"source":[513],"sourceid":[513],"fieldname":[513],"field":[16],"disabled":[516],"editable":[516],"moveable":[516],"done":[516],"xscale":[514],"yscale":[514],"pagenumber":[514],"showingProperties":[32],"dialogOpen":[32],"selectedFile":[32],"focused":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}],[0,"verdocs-field-initial",{"source":[513],"sourceid":[513],"fieldname":[513],"field":[16],"disabled":[516],"initials":[513],"editable":[516],"moveable":[516],"done":[516],"xscale":[514],"yscale":[514],"pagenumber":[514],"showingProperties":[32],"focused":[32],"tempInitials":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}],[0,"verdocs-field-signature",{"source":[513],"sourceid":[513],"fieldname":[513],"field":[16],"name":[513],"disabled":[516],"editable":[516],"moveable":[516],"done":[516],"xscale":[514],"yscale":[514],"pagenumber":[514],"showingProperties":[32],"focused":[32],"tempSignature":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}],[0,"verdocs-field-checkbox",{"source":[513],"sourceid":[513],"fieldname":[513],"field":[16],"disabled":[516],"done":[516],"editable":[516],"moveable":[516],"xscale":[514],"yscale":[514],"pagenumber":[514],"showingProperties":[32],"focused":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}],[0,"verdocs-field-date",{"source":[513],"sourceid":[513],"fieldname":[513],"disabled":[516],"editable":[516],"moveable":[516],"done":[516],"xscale":[514],"yscale":[514],"pagenumber":[514],"field":[16],"containerId":[32],"showingProperties":[32],"focused":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}],[0,"verdocs-field-dropdown",{"source":[513],"sourceid":[513],"fieldname":[513],"field":[16],"disabled":[516],"editable":[516],"moveable":[516],"done":[516],"xscale":[514],"yscale":[514],"pagenumber":[514],"showingProperties":[32],"focused":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}],[0,"verdocs-field-radio",{"source":[513],"sourceid":[513],"fieldname":[513],"field":[16],"disabled":[516],"required":[516],"done":[516],"editable":[516],"moveable":[516],"xscale":[514],"yscale":[514],"pagenumber":[514],"showingProperties":[32],"focused":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}],[0,"verdocs-field-textarea",{"endpoint":[16],"source":[513],"sourceid":[513],"fieldname":[513],"field":[16],"disabled":[516],"editable":[516],"moveable":[516],"done":[516],"xscale":[514],"yscale":[514],"pagenumber":[514],"showingProperties":[32],"focused":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}],[0,"verdocs-field-textbox",{"source":[513],"sourceid":[513],"fieldname":[513],"field":[16],"disabled":[516],"multiline":[516],"editable":[516],"moveable":[516],"done":[516],"xscale":[514],"yscale":[514],"pagenumber":[514],"showingProperties":[32],"focused":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}],[0,"verdocs-field-timestamp",{"source":[513],"sourceid":[513],"fieldname":[513],"field":[16],"disabled":[516],"editable":[516],"moveable":[516],"done":[516],"xscale":[514],"yscale":[514],"pagenumber":[2],"showingProperties":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}],[0,"verdocs-initial-dialog",{"initials":[1],"fontLoaded":[32],"enteredInitials":[32],"mode":[32]}],[0,"verdocs-signature-dialog",{"name":[1],"fontLoaded":[32],"enteredName":[32],"mode":[32]}],[0,"verdocs-upload-dialog",{"maxSize":[1026,"max-size"],"existingFile":[1032,"existing-file"],"draggingOver":[32],"confirmDelete":[32],"selectedFiles":[32],"errorMessage":[32]}]]],["verdocs-preview_7",[[0,"verdocs-template-fields",{"endpoint":[16],"templateId":[1537,"template-id"],"toolbarTargetId":[1,"toolbar-target-id"],"placing":[32],"showMustSelectRole":[32],"selectedRoleName":[32],"loading":[32],"template":[32]},[[4,"keydown","handleKeyDown"]],{"templateId":["onTemplateIdChanged"]}],[0,"verdocs-preview",{"endpoint":[16],"templateId":[1,"template-id"],"loading":[32],"template":[32]},null,{"templateId":["onTemplateIdChanged"]}],[0,"verdocs-send",{"endpoint":[16],"templateId":[513,"template-id"],"environment":[1],"containerId":[32],"showPickerForId":[32],"sessionContacts":[32],"sending":[32],"rolesCompleted":[32],"loading":[32],"template":[32],"reset":[64]},null,{"templateId":["onTemplateIdChanged"]}],[0,"verdocs-template-roles",{"endpoint":[16],"templateId":[1,"template-id"],"showingRoleDialog":[32],"sender":[32],"dragging":[32],"loading":[32],"template":[32]}],[0,"verdocs-template-settings",{"endpoint":[16],"templateId":[1,"template-id"],"name":[32],"visibility":[32],"sender":[32],"sendReminders":[32],"initialReminder":[32],"followupReminders":[32],"dirty":[32],"loading":[32],"template":[32]}],[0,"verdocs-template-attachments",{"endpoint":[16],"templateId":[1,"template-id"],"uploading":[32],"progressLabel":[32],"progressPercent":[32],"showDeleteError":[32],"confirmDeleteDocument":[32],"loading":[32],"template":[32]}],[0,"verdocs-template-build-tabs",{"endpoint":[16],"templateId":[1537,"template-id"],"step":[1537],"loading":[32],"template":[32]},null,{"templateId":["onTemplateIdChanged"],"step":["onStepChanged"]}]]]]'),e)]}}))}))}));
|
1
|
+
var __awaiter=this&&this.__awaiter||function(e,t,o,a){function i(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,d){function n(e){try{l(a.next(e))}catch(e){d(e)}}function s(e){try{l(a["throw"](e))}catch(e){d(e)}}function l(e){e.done?o(e.value):i(e.value).then(n,s)}l((a=a.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var o={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},a,i,d,n;return n={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function s(e){return function(t){return l([e,t])}}function l(s){if(a)throw new TypeError("Generator is already executing.");while(n&&(n=0,s[0]&&(o=0)),o)try{if(a=1,i&&(d=s[0]&2?i["return"]:s[0]?i["throw"]||((d=i["return"])&&d.call(i),0):i.next)&&!(d=d.call(i,s[1])).done)return d;if(i=0,d)s=[s[0]&2,d.value];switch(s[0]){case 0:case 1:d=s;break;case 4:o.label++;return{value:s[1],done:false};case 5:o.label++;i=s[1];s=[0];continue;case 7:s=o.ops.pop();o.trys.pop();continue;default:if(!(d=o.trys,d=d.length>0&&d[d.length-1])&&(s[0]===6||s[0]===2)){o=0;continue}if(s[0]===3&&(!d||s[1]>d[0]&&s[1]<d[3])){o.label=s[1];break}if(s[0]===6&&o.label<d[1]){o.label=d[1];d=s;break}if(d&&o.label<d[2]){o.label=d[2];o.ops.push(s);break}if(d[2])o.ops.pop();o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e];i=0}finally{a=d=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};import{p as promiseResolve,b as bootstrapLazy}from"./index-C1erT8T2.js";export{s as setNonce}from"./index-C1erT8T2.js";import{g as globalScripts}from"./app-globals-DQuL1Twl.js";var patchBrowser=function(){var e=import.meta.url;var t={};if(e!==""){t.resourcesUrl=new URL(".",e).href}return promiseResolve(t)};patchBrowser().then((function(e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,globalScripts()];case 1:t.sent();return[2,bootstrapLazy(JSON.parse('[["verdocs-build",[[0,"verdocs-build",{"endpoint":[16],"templateId":[1537,"template-id"],"step":[1537],"loading":[32],"template":[32]},null,{"templateId":["onTemplateIdChanged"],"step":["onStepChanged"]}]]],["verdocs-sign",[[0,"verdocs-sign",{"endpoint":[1040],"envelopeId":[513,"envelope-id"],"roleId":[513,"role-id"],"inviteCode":[513,"invite-code"],"headerTargetId":[1,"header-target-id"],"recipient":[32],"hasSignature":[32],"nextButtonLabel":[32],"nextSubmits":[32],"fatalErrorHeader":[32],"fatalErrorMessage":[32],"focusedField":[32],"disclosure":[32],"submitting":[32],"submitted":[32],"isDone":[32],"showDone":[32],"showLoadError":[32],"finishLater":[32],"showFinishLater":[32],"agreed":[32],"documentsSingularPlural":[32],"authStep":[32],"authMethodStates":[32],"kbaQuestions":[32],"showSpinner":[32],"kbaChoices":[32],"loading":[32],"envelope":[32]}]]],["verdocs-envelopes-list",[[0,"verdocs-envelopes-list",{"endpoint":[16],"view":[1537],"status":[1537],"sort":[1537],"match":[1537],"showPagination":[4,"show-pagination"],"rowsPerPage":[2,"rows-per-page"],"selectedPage":[2,"selected-page"],"count":[32],"initiallyLoaded":[32],"loading":[32],"selectedEnvelopes":[32],"envelopes":[32]},null,{"view":["handleViewUpdated"],"status":["handleStatusUpdated"],"sort":["handleSortUpdated"],"match":["handleMatchUpdated"],"selectedPage":["handlePageUpdated"]}]]],["verdocs-templates-list",[[0,"verdocs-templates-list",{"endpoint":[16],"visibility":[1537],"starred":[1537],"sort":[1537],"name":[1537],"allowedActions":[1040,"allowed-actions"],"showPagination":[4,"show-pagination"],"rowsPerPage":[2,"rows-per-page"],"selectedPage":[2,"selected-page"],"count":[32],"initiallyLoaded":[32],"loading":[32],"confirmDelete":[32],"templates":[32],"localNameFilter":[32]},null,{"sharing":["handleSharingUpdated"],"starred":["handleStarredUpdated"],"sort":["handleSortUpdated"],"name":["handleNameUpdated"],"selectedPage":["handlePageUpdated"]}]]],["verdocs-field-payment",[[0,"verdocs-field-payment",{"source":[513],"sourceid":[513],"fieldname":[513],"field":[16],"disabled":[516],"done":[516],"editable":[516],"moveable":[516],"xscale":[514],"yscale":[514],"pagenumber":[514],"fields":[16],"pageNum":[2,"page-num"],"roleName":[1,"role-name"],"fieldId":[1,"field-id"],"recipients":[8],"selectedRoleName":[1,"selected-role-name"],"pdfPages":[16,"pdf-pages"],"currentSignature":[1,"current-signature"],"currentSignatureId":[1,"current-signature-id"],"currentInitial":[1,"current-initial"],"currentInitialId":[1,"current-initial-id"],"signed":[4],"roleindex":[2],"showingProperties":[32],"focused":[32],"preparedMessage":[32],"signatureUrl":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["verdocs-envelope-sidebar",[[0,"verdocs-envelope-sidebar",{"endpoint":[16],"envelopeId":[1,"envelope-id"],"activeTab":[32],"panelOpen":[32],"showRecipientDialog":[32],"showCancelDialog":[32],"showReinviteDialog":[32],"remindersEnabled":[32],"updatingReminders":[32],"initialReminder":[32],"followupReminders":[32],"loading":[32],"envelope":[32]}]]],["verdocs-template-create",[[0,"verdocs-template-create",{"endpoint":[16],"maxSize":[1026,"max-size"],"file":[32],"creating":[32],"progressLabel":[32],"progressPercent":[32],"errorMessage":[32]}]]],["verdocs-auth",[[0,"verdocs-auth",{"endpoint":[16],"visible":[4],"logo":[1],"displayMode":[1025,"display-mode"],"org_name":[32],"first_name":[32],"last_name":[32],"email":[32],"verificationCode":[32],"newPassword":[32],"password":[32],"confirmpass":[32],"submitting":[32],"resendDisabled":[32],"session":[32],"profile":[32]}]]],["verdocs-date-input",[[0,"verdocs-date-input",{"value":[1537],"label":[1],"placeholder":[1],"helpText":[1,"help-text"],"disabled":[4],"required":[4],"showingPw":[32],"focused":[32],"containerId":[32],"focusField":[64]}]]],["verdocs-envelope-recipient-summary",[[0,"verdocs-envelope-recipient-summary",{"endpoint":[16],"envelopeId":[1,"envelope-id"],"canSendAnother":[4,"can-send-another"],"canView":[4,"can-view"],"canDone":[4,"can-done"],"isOpen":[32],"recipientStatusIcons":[32],"containerId":[32],"gettingLinks":[32],"links":[32],"loading":[32],"envelope":[32]}]]],["verdocs-dialog",[[4,"verdocs-dialog"]]],["verdocs-quick-functions",[[0,"verdocs-quick-functions",{"endpoint":[16]}]]],["verdocs-radio-button",[[0,"verdocs-radio-button",{"checked":[4],"name":[1],"value":[1],"disabled":[4]}]]],["verdocs-search-box",[[0,"verdocs-search-box",{"endpoint":[16],"placeholder":[1],"type":[1],"query":[1],"grabsFocus":[4,"grabs-focus"],"focusField":[64]}]]],["verdocs-search-tabs",[[0,"verdocs-search-tabs",{"selected":[32]}]]],["verdocs-table",[[0,"verdocs-table",{"columns":[16],"data":[16]}]]],["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],"selectedOption":[32]}]]],["verdocs-toggle-button",[[0,"verdocs-toggle-button",{"active":[4],"icon":[1],"label":[1],"size":[1],"_active":[32]}]]],["verdocs-envelope-recipient-link",[[0,"verdocs-envelope-recipient-link",{"endpoint":[16],"envelopeId":[1,"envelope-id"],"roleName":[1,"role-name"],"isOpen":[32],"gettingLink":[32],"link":[32],"loading":[32],"envelope":[32],"recipient":[32]}]]],["verdocs-status-indicator",[[0,"verdocs-status-indicator",{"size":[1],"theme":[1],"status":[1],"envelope":[16],"isOpen":[32],"containerId":[32]}]]],["verdocs-template-star",[[0,"verdocs-template-star",{"endpoint":[16],"template":[1040],"updating":[32]}]]],["verdocs-envelope-document-page",[[0,"verdocs-envelope-document-page",{"endpoint":[16],"envelopeId":[1,"envelope-id"],"documentId":[1,"document-id"],"pageNumber":[2,"page-number"],"virtualWidth":[2,"virtual-width"],"virtualHeight":[1026,"virtual-height"],"layers":[16],"type":[1],"containerId":[32],"renderedWidth":[32],"renderedHeight":[32],"naturalWidth":[32],"naturalHeight":[32],"aspectRatio":[32],"skipFirstNotification":[32],"pageDisplayUri":[32]}]]],["verdocs-switch",[[0,"verdocs-switch",{"checked":[1028],"theme":[1],"disabled":[4]}]]],["verdocs-menu-panel_2",[[0,"verdocs-template-role-properties",{"endpoint":[16],"templateId":[1,"template-id"],"roleName":[1,"role-name"],"dirty":[32],"saving":[32],"name":[32],"type":[32],"first_name":[32],"last_name":[32],"email":[32],"phone":[32],"delegator":[32],"loading":[32],"template":[32]}],[4,"verdocs-menu-panel",{"side":[1],"overlay":[4],"width":[2]},[[4,"click","handleClick"]]]]],["verdocs-button-panel_2",[[4,"verdocs-button-panel",{"icon":[1],"showPanel":[64],"hidePanel":[64],"toggle":[64]}],[4,"verdocs-tabs",{"tabs":[16],"selectedTab":[2,"selected-tab"]}]]],["verdocs-pagination_2",[[0,"verdocs-pagination",{"selectedPage":[1538,"selected-page"],"itemCount":[2,"item-count"],"perPage":[2,"per-page"]}],[0,"verdocs-quick-filter",{"options":[16],"label":[1],"value":[1537],"placeholder":[1],"open":[32]}]]],["verdocs-button_2",[[0,"verdocs-help-icon",{"text":[1],"icon":[1],"containerId":[32]}],[0,"verdocs-button",{"label":[1],"startIcon":[1,"start-icon"],"endIcon":[1,"end-icon"],"size":[1],"type":[1],"variant":[1],"disabled":[4]}]]],["verdocs-file-chooser_2",[[0,"verdocs-file-chooser",{"endpoint":[16],"file":[32]}],[0,"verdocs-progress-bar",{"label":[1],"showPercent":[4,"show-percent"],"percent":[2]}]]],["verdocs-organization-card_2",[[0,"verdocs-organization-card",{"organization":[16],"hovered":[32]},[[1,"mouseover","onMouseOver"],[1,"mouseout","onMouseOut"]]],[4,"verdocs-portal",{"anchor":[1],"voffset":[2]},[[11,"scroll","handleScroll"],[9,"resize","handleResize"],[4,"click","handleClick"]]]]],["verdocs-checkbox_6",[[0,"verdocs-template-field-properties",{"endpoint":[16],"templateId":[1,"template-id"],"fieldName":[1025,"field-name"],"helpText":[1,"help-text"],"dirty":[32],"label":[32],"type":[32],"name":[32],"required":[32],"roleName":[32],"group":[32],"fieldType":[32],"options":[32],"placeholder":[32],"defaultValue":[32],"showingHelp":[32],"loading":[32],"template":[32]}],[0,"verdocs-checkbox",{"checked":[4],"name":[1],"label":[1],"value":[1],"theme":[1],"size":[1],"disabled":[4]}],[0,"verdocs-select-input",{"value":[1],"label":[1],"options":[16],"disabled":[4]}],[0,"verdocs-component-error",{"message":[1]}],[0,"verdocs-loader"],[0,"verdocs-text-input",{"value":[1537],"label":[1],"placeholder":[1],"autocomplete":[1],"helpText":[1,"help-text"],"clearable":[4],"copyable":[4],"type":[1],"disabled":[4],"required":[4],"showingPw":[32]}]]],["verdocs-kba-dialog_3",[[0,"verdocs-view",{"endpoint":[16],"envelopeId":[1,"envelope-id"],"headerTargetId":[1,"header-target-id"],"canceling":[32],"showCancelDone":[32],"showLoadError":[32],"loading":[32],"envelope":[32]}],[0,"verdocs-kba-dialog",{"step":[2],"steps":[2],"helptitle":[1],"helptext":[1],"mode":[1],"label":[1],"placeholder":[1],"recipient":[16],"choices":[16],"response":[32],"updatedRecipient":[32],"dobContainerId":[32]}],[0,"verdocs-otp-dialog",{"endpoint":[1040],"method":[1],"recipient":[16],"resendDisabled":[32],"response":[32]}]]],["verdocs-template-document-page_2",[[0,"verdocs-toolbar-icon",{"text":[1],"icon":[1],"placement":[1],"containerId":[32]}],[0,"verdocs-template-document-page",{"endpoint":[16],"editable":[4],"disabled":[4],"done":[4],"templateId":[1,"template-id"],"documentId":[1,"document-id"],"pageNumber":[2,"page-number"],"virtualWidth":[2,"virtual-width"],"virtualHeight":[1026,"virtual-height"],"layers":[16],"containerId":[32],"renderedWidth":[32],"renderedHeight":[32],"naturalWidth":[32],"naturalHeight":[32],"aspectRatio":[32],"skipFirstNotification":[32],"pageDisplayUri":[32],"xScale":[32],"yScale":[32],"loading":[32],"template":[32]}]]],["verdocs-contact-picker_2",[[0,"verdocs-contact-picker",{"endpoint":[16],"templateRole":[16,"template-role"],"contactSuggestions":[16,"contact-suggestions"],"first_name":[32],"last_name":[32],"email":[32],"phone":[32],"zip":[32],"address":[32],"message":[32],"showSuggestions":[32],"showMessage":[32],"delegator":[32],"auth_methods":[32],"passcode":[32],"firstNameFieldId":[32],"lastNameFieldId":[32],"emailFieldId":[32],"phoneFieldId":[32],"featureFlags":[32],"activeEntitlements":[32]}],[0,"verdocs-multiselect",{"label":[1],"placeholder":[1],"options":[16],"selectedOptions":[16,"selected-options"],"showPicker":[32]}]]],["verdocs-dropdown",[[0,"verdocs-dropdown",{"options":[16],"containerId":[32],"showPicker":[32]}]]],["verdocs-spinner",[[0,"verdocs-spinner",{"size":[2],"mode":[1]}]]],["verdocs-ok-dialog",[[0,"verdocs-ok-dialog",{"heading":[1],"message":[1],"buttonLabel":[1,"button-label"],"showCancel":[4,"show-cancel"],"closed":[32]}]]],["verdocs-field-attachment_13",[[0,"verdocs-field-attachment",{"source":[513],"sourceid":[513],"fieldname":[513],"field":[16],"disabled":[516],"editable":[516],"moveable":[516],"done":[516],"xscale":[514],"yscale":[514],"pagenumber":[514],"showingProperties":[32],"dialogOpen":[32],"selectedFile":[32],"focused":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}],[0,"verdocs-field-initial",{"source":[513],"sourceid":[513],"fieldname":[513],"field":[16],"disabled":[516],"initials":[513],"editable":[516],"moveable":[516],"done":[516],"xscale":[514],"yscale":[514],"pagenumber":[514],"showingProperties":[32],"focused":[32],"tempInitials":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}],[0,"verdocs-field-signature",{"source":[513],"sourceid":[513],"fieldname":[513],"field":[16],"name":[513],"disabled":[516],"editable":[516],"moveable":[516],"done":[516],"xscale":[514],"yscale":[514],"pagenumber":[514],"showingProperties":[32],"focused":[32],"tempSignature":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}],[0,"verdocs-field-checkbox",{"source":[513],"sourceid":[513],"fieldname":[513],"field":[16],"disabled":[516],"done":[516],"editable":[516],"moveable":[516],"xscale":[514],"yscale":[514],"pagenumber":[514],"showingProperties":[32],"focused":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}],[0,"verdocs-field-date",{"source":[513],"sourceid":[513],"fieldname":[513],"disabled":[516],"editable":[516],"moveable":[516],"done":[516],"xscale":[514],"yscale":[514],"pagenumber":[514],"field":[16],"containerId":[32],"showingProperties":[32],"focused":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}],[0,"verdocs-field-dropdown",{"source":[513],"sourceid":[513],"fieldname":[513],"field":[16],"disabled":[516],"editable":[516],"moveable":[516],"done":[516],"xscale":[514],"yscale":[514],"pagenumber":[514],"showingProperties":[32],"focused":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}],[0,"verdocs-field-radio",{"source":[513],"sourceid":[513],"fieldname":[513],"field":[16],"disabled":[516],"required":[516],"done":[516],"editable":[516],"moveable":[516],"xscale":[514],"yscale":[514],"pagenumber":[514],"showingProperties":[32],"focused":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}],[0,"verdocs-field-textarea",{"endpoint":[16],"source":[513],"sourceid":[513],"fieldname":[513],"field":[16],"disabled":[516],"editable":[516],"moveable":[516],"done":[516],"xscale":[514],"yscale":[514],"pagenumber":[514],"showingProperties":[32],"focused":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}],[0,"verdocs-field-textbox",{"source":[513],"sourceid":[513],"fieldname":[513],"field":[16],"disabled":[516],"multiline":[516],"editable":[516],"moveable":[516],"done":[516],"xscale":[514],"yscale":[514],"pagenumber":[514],"showingProperties":[32],"focused":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}],[0,"verdocs-field-timestamp",{"source":[513],"sourceid":[513],"fieldname":[513],"field":[16],"disabled":[516],"editable":[516],"moveable":[516],"done":[516],"xscale":[514],"yscale":[514],"pagenumber":[2],"showingProperties":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}],[0,"verdocs-initial-dialog",{"initials":[1],"fontLoaded":[32],"enteredInitials":[32],"mode":[32]}],[0,"verdocs-signature-dialog",{"name":[1],"fontLoaded":[32],"enteredName":[32],"mode":[32]}],[0,"verdocs-upload-dialog",{"maxSize":[1026,"max-size"],"existingFile":[1032,"existing-file"],"draggingOver":[32],"confirmDelete":[32],"selectedFiles":[32],"errorMessage":[32]}]]],["verdocs-preview_7",[[0,"verdocs-template-fields",{"endpoint":[16],"templateId":[1537,"template-id"],"toolbarTargetId":[1,"toolbar-target-id"],"placing":[32],"showMustSelectRole":[32],"selectedRoleName":[32],"loading":[32],"template":[32]},[[4,"keydown","handleKeyDown"]],{"templateId":["onTemplateIdChanged"]}],[0,"verdocs-preview",{"endpoint":[16],"templateId":[1,"template-id"],"loading":[32],"template":[32]},null,{"templateId":["onTemplateIdChanged"]}],[0,"verdocs-send",{"endpoint":[16],"templateId":[513,"template-id"],"environment":[1],"containerId":[32],"showPickerForId":[32],"sessionContacts":[32],"sending":[32],"rolesCompleted":[32],"loading":[32],"template":[32],"reset":[64]},null,{"templateId":["onTemplateIdChanged"]}],[0,"verdocs-template-roles",{"endpoint":[16],"templateId":[1,"template-id"],"showingRoleDialog":[32],"sender":[32],"dragging":[32],"loading":[32],"template":[32]}],[0,"verdocs-template-settings",{"endpoint":[16],"templateId":[1,"template-id"],"name":[32],"visibility":[32],"sender":[32],"sendReminders":[32],"initialReminder":[32],"followupReminders":[32],"dirty":[32],"loading":[32],"template":[32]}],[0,"verdocs-template-attachments",{"endpoint":[16],"templateId":[1,"template-id"],"uploading":[32],"progressLabel":[32],"progressPercent":[32],"showDeleteError":[32],"confirmDeleteDocument":[32],"loading":[32],"template":[32]}],[0,"verdocs-template-build-tabs",{"endpoint":[16],"templateId":[1537,"template-id"],"step":[1537],"loading":[32],"template":[32]},null,{"templateId":["onTemplateIdChanged"],"step":["onStepChanged"]}]]]]'),e)]}}))}))}));
|
2
2
|
//# sourceMappingURL=verdocs-web-sdk.js.map
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import{r as e,c as t,h as n,F as o,H as i}from"./p-C1erT8T2.js";import{VerdocsEndpoint as r,formatFullName as s,getActiveEntitlements as
|
2
|
-
/*! Axios v1.8.4 Copyright (c) 2025 Matt Zabriskie and contributors */var p;var m;function b(){if(m)return p;m=1;function e(e,t){return function n(){return e.apply(t,arguments)}}const{toString:t}=Object.prototype;const{getPrototypeOf:n}=Object;const o=(e=>n=>{const o=t.call(n);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null));const i=e=>{e=e.toLowerCase();return t=>o(t)===e};const r=e=>t=>typeof t===e;const{isArray:s}=Array;const a=r("undefined");function c(e){return e!==null&&!a(e)&&e.constructor!==null&&!a(e.constructor)&&h(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const l=i("ArrayBuffer");function f(e){let t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&l(e.buffer)}return t}const d=r("string");const h=r("function");const b=r("number");const g=e=>e!==null&&typeof e==="object";const w=e=>e===true||e===false;const v=e=>{if(o(e)!=="object"){return false}const t=n(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)};const y=i("Date");const x=i("File");const k=i("Blob");const R=i("FileList");const O=e=>g(e)&&h(e.pipe);const S=e=>{let t;return e&&(typeof FormData==="function"&&e instanceof FormData||h(e.append)&&((t=o(e))==="formdata"||t==="object"&&h(e.toString)&&e.toString()==="[object FormData]"))};const E=i("URLSearchParams");const[T,C,A,j]=["ReadableStream","Request","Response","Headers"].map(i);const N=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function F(e,t,{allOwnKeys:n=false}={}){if(e===null||typeof e==="undefined"){return}let o;let i;if(typeof e!=="object"){e=[e]}if(s(e)){for(o=0,i=e.length;o<i;o++){t.call(null,e[o],o,e)}}else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e);const r=i.length;let s;for(o=0;o<r;o++){s=i[o];t.call(null,e[s],s,e)}}}function P(e,t){t=t.toLowerCase();const n=Object.keys(e);let o=n.length;let i;while(o-- >0){i=n[o];if(t===i.toLowerCase()){return i}}return null}const U=(()=>{if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:u})();const B=e=>!a(e)&&e!==U;function z(){const{caseless:e}=B(this)&&this||{};const t={};const n=(n,o)=>{const i=e&&P(t,o)||o;if(v(t[i])&&v(n)){t[i]=z(t[i],n)}else if(v(n)){t[i]=z({},n)}else if(s(n)){t[i]=n.slice()}else{t[i]=n}};for(let e=0,t=arguments.length;e<t;e++){arguments[e]&&F(arguments[e],n)}return t}const I=(t,n,o,{allOwnKeys:i}={})=>{F(n,((n,i)=>{if(o&&h(n)){t[i]=e(n,o)}else{t[i]=n}}),{allOwnKeys:i});return t};const _=e=>{if(e.charCodeAt(0)===65279){e=e.slice(1)}return e};const D=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o);e.prototype.constructor=e;Object.defineProperty(e,"super",{value:t.prototype});n&&Object.assign(e.prototype,n)};const L=(e,t,o,i)=>{let r;let s;let a;const c={};t=t||{};if(e==null)return t;do{r=Object.getOwnPropertyNames(e);s=r.length;while(s-- >0){a=r[s];if((!i||i(a,e,t))&&!c[a]){t[a]=e[a];c[a]=true}}e=o!==false&&n(e)}while(e&&(!o||o(e,t))&&e!==Object.prototype);return t};const q=(e,t,n)=>{e=String(e);if(n===undefined||n>e.length){n=e.length}n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n};const M=e=>{if(!e)return null;if(s(e))return e;let t=e.length;if(!b(t))return null;const n=new Array(t);while(t-- >0){n[t]=e[t]}return n};const H=(e=>t=>e&&t instanceof e)(typeof Uint8Array!=="undefined"&&n(Uint8Array));const $=(e,t)=>{const n=e&&e[Symbol.iterator];const o=n.call(e);let i;while((i=o.next())&&!i.done){const n=i.value;t.call(e,n[0],n[1])}};const K=(e,t)=>{let n;const o=[];while((n=e.exec(t))!==null){o.push(n)}return o};const J=i("HTMLFormElement");const X=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function e(t,n,o){return n.toUpperCase()+o}));const V=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype);const W=i("RegExp");const G=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e);const o={};F(n,((n,i)=>{let r;if((r=t(n,i,e))!==false){o[i]=r||n}}));Object.defineProperties(e,o)};const Z=e=>{G(e,((t,n)=>{if(h(e)&&["arguments","caller","callee"].indexOf(n)!==-1){return false}const o=e[n];if(!h(o))return;t.enumerable=false;if("writable"in t){t.writable=false;return}if(!t.set){t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}}}))};const Q=(e,t)=>{const n={};const o=e=>{e.forEach((e=>{n[e]=true}))};s(e)?o(e):o(String(e).split(t));return n};const Y=()=>{};const ee=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function te(e){return!!(e&&h(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const ne=e=>{const t=new Array(10);const n=(e,o)=>{if(g(e)){if(t.indexOf(e)>=0){return}if(!("toJSON"in e)){t[o]=e;const i=s(e)?[]:{};F(e,((e,t)=>{const r=n(e,o+1);!a(r)&&(i[t]=r)}));t[o]=undefined;return i}}return e};return n(e,0)};const oe=i("AsyncFunction");const ie=e=>e&&(g(e)||h(e))&&h(e.then)&&h(e.catch);const re=((e,t)=>{if(e){return setImmediate}return t?((e,t)=>{U.addEventListener("message",(({source:n,data:o})=>{if(n===U&&o===e){t.length&&t.shift()()}}),false);return n=>{t.push(n);U.postMessage(e,"*")}})(`axios@${Math.random()}`,[]):e=>setTimeout(e)})(typeof setImmediate==="function",h(U.postMessage));const se=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(U):typeof process!=="undefined"&&process.nextTick||re;var ae={isArray:s,isArrayBuffer:l,isBuffer:c,isFormData:S,isArrayBufferView:f,isString:d,isNumber:b,isBoolean:w,isObject:g,isPlainObject:v,isReadableStream:T,isRequest:C,isResponse:A,isHeaders:j,isUndefined:a,isDate:y,isFile:x,isBlob:k,isRegExp:W,isFunction:h,isStream:O,isURLSearchParams:E,isTypedArray:H,isFileList:R,forEach:F,merge:z,extend:I,trim:N,stripBOM:_,inherits:D,toFlatObject:L,kindOf:o,kindOfTest:i,endsWith:q,toArray:M,forEachEntry:$,matchAll:K,isHTMLForm:J,hasOwnProperty:V,hasOwnProp:V,reduceDescriptors:G,freezeMethods:Z,toObjectSet:Q,toCamelCase:X,noop:Y,toFiniteNumber:ee,findKey:P,global:U,isContextDefined:B,isSpecCompliantForm:te,toJSONObject:ne,isAsyncFn:oe,isThenable:ie,setImmediate:re,asap:se};function ce(e,t,n,o,i){Error.call(this);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack}this.message=e;this.name="AxiosError";t&&(this.code=t);n&&(this.config=n);o&&(this.request=o);if(i){this.response=i;this.status=i.status?i.status:null}}ae.inherits(ce,Error,{toJSON:function e(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ae.toJSONObject(this.config),code:this.code,status:this.status}}});const le=ce.prototype;const ue={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{ue[e]={value:e}}));Object.defineProperties(ce,ue);Object.defineProperty(le,"isAxiosError",{value:true});ce.from=(e,t,n,o,i,r)=>{const s=Object.create(le);ae.toFlatObject(e,s,(function e(t){return t!==Error.prototype}),(e=>e!=="isAxiosError"));ce.call(s,e.message,t,n,o,i);s.cause=e;s.name=e.name;r&&Object.assign(s,r);return s};var fe=null;function de(e){return ae.isPlainObject(e)||ae.isArray(e)}function he(e){return ae.endsWith(e,"[]")?e.slice(0,-2):e}function pe(e,t,n){if(!e)return t;return e.concat(t).map((function e(t,o){t=he(t);return!n&&o?"["+t+"]":t})).join(n?".":"")}function me(e){return ae.isArray(e)&&!e.some(de)}const be=ae.toFlatObject(ae,{},null,(function e(t){return/^is[A-Z]/.test(t)}));function ge(e,t,n){if(!ae.isObject(e)){throw new TypeError("target must be an object")}t=t||new FormData;n=ae.toFlatObject(n,{metaTokens:true,dots:false,indexes:false},false,(function e(t,n){return!ae.isUndefined(n[t])}));const o=n.metaTokens;const i=n.visitor||u;const r=n.dots;const s=n.indexes;const a=n.Blob||typeof Blob!=="undefined"&&Blob;const c=a&&ae.isSpecCompliantForm(t);if(!ae.isFunction(i)){throw new TypeError("visitor must be a function")}function l(e){if(e===null)return"";if(ae.isDate(e)){return e.toISOString()}if(!c&&ae.isBlob(e)){throw new ce("Blob is not supported. Use a Buffer instead.")}if(ae.isArrayBuffer(e)||ae.isTypedArray(e)){return c&&typeof Blob==="function"?new Blob([e]):Buffer.from(e)}return e}function u(e,n,i){let a=e;if(e&&!i&&typeof e==="object"){if(ae.endsWith(n,"{}")){n=o?n:n.slice(0,-2);e=JSON.stringify(e)}else if(ae.isArray(e)&&me(e)||(ae.isFileList(e)||ae.endsWith(n,"[]"))&&(a=ae.toArray(e))){n=he(n);a.forEach((function e(o,i){!(ae.isUndefined(o)||o===null)&&t.append(s===true?pe([n],i,r):s===null?n:n+"[]",l(o))}));return false}}if(de(e)){return true}t.append(pe(i,n,r),l(e));return false}const f=[];const d=Object.assign(be,{defaultVisitor:u,convertValue:l,isVisitable:de});function h(e,n){if(ae.isUndefined(e))return;if(f.indexOf(e)!==-1){throw Error("Circular reference detected in "+n.join("."))}f.push(e);ae.forEach(e,(function e(o,r){const s=!(ae.isUndefined(o)||o===null)&&i.call(t,o,ae.isString(r)?r.trim():r,n,d);if(s===true){h(o,n?n.concat(r):[r])}}));f.pop()}if(!ae.isObject(e)){throw new TypeError("data must be an object")}h(e);return t}function we(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function e(n){return t[n]}))}function ve(e,t){this._pairs=[];e&&ge(e,this,t)}const ye=ve.prototype;ye.append=function e(t,n){this._pairs.push([t,n])};ye.toString=function e(t){const n=t?function(e){return t.call(this,e,we)}:we;return this._pairs.map((function e(t){return n(t[0])+"="+n(t[1])}),"").join("&")};function xe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ke(e,t,n){if(!t){return e}const o=n&&n.encode||xe;if(ae.isFunction(n)){n={serialize:n}}const i=n&&n.serialize;let r;if(i){r=i(t,n)}else{r=ae.isURLSearchParams(t)?t.toString():new ve(t,n).toString(o)}if(r){const t=e.indexOf("#");if(t!==-1){e=e.slice(0,t)}e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class Re{constructor(){this.handlers=[]}use(e,t,n){this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:false,runWhen:n?n.runWhen:null});return this.handlers.length-1}eject(e){if(this.handlers[e]){this.handlers[e]=null}}clear(){if(this.handlers){this.handlers=[]}}forEach(e){ae.forEach(this.handlers,(function t(n){if(n!==null){e(n)}}))}}var Oe=Re;var Se={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false};var Ee=typeof URLSearchParams!=="undefined"?URLSearchParams:ve;var Te=typeof FormData!=="undefined"?FormData:null;var Ce=typeof Blob!=="undefined"?Blob:null;var Ae={isBrowser:true,classes:{URLSearchParams:Ee,FormData:Te,Blob:Ce},protocols:["http","https","file","blob","url","data"]};const je=typeof window!=="undefined"&&typeof document!=="undefined";const Ne=typeof navigator==="object"&&navigator||undefined;const Fe=je&&(!Ne||["ReactNative","NativeScript","NS"].indexOf(Ne.product)<0);const Pe=(()=>typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function")();const Ue=je&&window.location.href||"http://localhost";var Be=Object.freeze({__proto__:null,hasBrowserEnv:je,hasStandardBrowserWebWorkerEnv:Pe,hasStandardBrowserEnv:Fe,navigator:Ne,origin:Ue});var ze={...Be,...Ae};function Ie(e,t){return ge(e,new ze.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,o){if(ze.isNode&&ae.isBuffer(e)){this.append(t,e.toString("base64"));return false}return o.defaultVisitor.apply(this,arguments)}},t))}function _e(e){return ae.matchAll(/\w+|\[(\w*)]/g,e).map((e=>e[0]==="[]"?"":e[1]||e[0]))}function De(e){const t={};const n=Object.keys(e);let o;const i=n.length;let r;for(o=0;o<i;o++){r=n[o];t[r]=e[r]}return t}function Le(e){function t(e,n,o,i){let r=e[i++];if(r==="__proto__")return true;const s=Number.isFinite(+r);const a=i>=e.length;r=!r&&ae.isArray(o)?o.length:r;if(a){if(ae.hasOwnProp(o,r)){o[r]=[o[r],n]}else{o[r]=n}return!s}if(!o[r]||!ae.isObject(o[r])){o[r]=[]}const c=t(e,n,o[r],i);if(c&&ae.isArray(o[r])){o[r]=De(o[r])}return!s}if(ae.isFormData(e)&&ae.isFunction(e.entries)){const n={};ae.forEachEntry(e,((e,o)=>{t(_e(e),o,n,0)}));return n}return null}function qe(e,t,n){if(ae.isString(e)){try{(0,JSON.parse)(e);return ae.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(n||JSON.stringify)(e)}const Me={transitional:Se,adapter:["xhr","http","fetch"],transformRequest:[function e(t,n){const o=n.getContentType()||"";const i=o.indexOf("application/json")>-1;const r=ae.isObject(t);if(r&&ae.isHTMLForm(t)){t=new FormData(t)}const s=ae.isFormData(t);if(s){return i?JSON.stringify(Le(t)):t}if(ae.isArrayBuffer(t)||ae.isBuffer(t)||ae.isStream(t)||ae.isFile(t)||ae.isBlob(t)||ae.isReadableStream(t)){return t}if(ae.isArrayBufferView(t)){return t.buffer}if(ae.isURLSearchParams(t)){n.setContentType("application/x-www-form-urlencoded;charset=utf-8",false);return t.toString()}let a;if(r){if(o.indexOf("application/x-www-form-urlencoded")>-1){return Ie(t,this.formSerializer).toString()}if((a=ae.isFileList(t))||o.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return ge(a?{"files[]":t}:t,e&&new e,this.formSerializer)}}if(r||i){n.setContentType("application/json",false);return qe(t)}return t}],transformResponse:[function e(t){const n=this.transitional||Me.transitional;const o=n&&n.forcedJSONParsing;const i=this.responseType==="json";if(ae.isResponse(t)||ae.isReadableStream(t)){return t}if(t&&ae.isString(t)&&(o&&!this.responseType||i)){const e=n&&n.silentJSONParsing;const o=!e&&i;try{return JSON.parse(t)}catch(e){if(o){if(e.name==="SyntaxError"){throw ce.from(e,ce.ERR_BAD_RESPONSE,this,null,this.response)}throw e}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ze.classes.FormData,Blob:ze.classes.Blob},validateStatus:function e(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":undefined}}};ae.forEach(["delete","get","head","post","put","patch"],(e=>{Me.headers[e]={}}));var He=Me;const $e=ae.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var Ke=e=>{const t={};let n;let o;let i;e&&e.split("\n").forEach((function e(r){i=r.indexOf(":");n=r.substring(0,i).trim().toLowerCase();o=r.substring(i+1).trim();if(!n||t[n]&&$e[n]){return}if(n==="set-cookie"){if(t[n]){t[n].push(o)}else{t[n]=[o]}}else{t[n]=t[n]?t[n]+", "+o:o}}));return t};const Je=Symbol("internals");function Xe(e){return e&&String(e).trim().toLowerCase()}function Ve(e){if(e===false||e==null){return e}return ae.isArray(e)?e.map(Ve):String(e)}function We(e){const t=Object.create(null);const n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;while(o=n.exec(e)){t[o[1]]=o[2]}return t}const Ge=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ze(e,t,n,o,i){if(ae.isFunction(o)){return o.call(this,t,n)}if(i){t=n}if(!ae.isString(t))return;if(ae.isString(o)){return t.indexOf(o)!==-1}if(ae.isRegExp(o)){return o.test(t)}}function Qe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function Ye(e,t){const n=ae.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+n,{value:function(e,n,i){return this[o].call(this,t,e,n,i)},configurable:true})}))}class et{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function i(e,t,n){const i=Xe(t);if(!i){throw new Error("header name must be a non-empty string")}const r=ae.findKey(o,i);if(!r||o[r]===undefined||n===true||n===undefined&&o[r]!==false){o[r||t]=Ve(e)}}const r=(e,t)=>ae.forEach(e,((e,n)=>i(e,n,t)));if(ae.isPlainObject(e)||e instanceof this.constructor){r(e,t)}else if(ae.isString(e)&&(e=e.trim())&&!Ge(e)){r(Ke(e),t)}else if(ae.isHeaders(e)){for(const[t,o]of e.entries()){i(o,t,n)}}else{e!=null&&i(t,e,n)}return this}get(e,t){e=Xe(e);if(e){const n=ae.findKey(this,e);if(n){const e=this[n];if(!t){return e}if(t===true){return We(e)}if(ae.isFunction(t)){return t.call(this,e,n)}if(ae.isRegExp(t)){return t.exec(e)}throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){e=Xe(e);if(e){const n=ae.findKey(this,e);return!!(n&&this[n]!==undefined&&(!t||Ze(this,this[n],n,t)))}return false}delete(e,t){const n=this;let o=false;function i(e){e=Xe(e);if(e){const i=ae.findKey(n,e);if(i&&(!t||Ze(n,n[i],i,t))){delete n[i];o=true}}}if(ae.isArray(e)){e.forEach(i)}else{i(e)}return o}clear(e){const t=Object.keys(this);let n=t.length;let o=false;while(n--){const i=t[n];if(!e||Ze(this,this[i],i,e,true)){delete this[i];o=true}}return o}normalize(e){const t=this;const n={};ae.forEach(this,((o,i)=>{const r=ae.findKey(n,i);if(r){t[r]=Ve(o);delete t[i];return}const s=e?Qe(i):String(i).trim();if(s!==i){delete t[i]}t[s]=Ve(o);n[s]=true}));return this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);ae.forEach(this,((n,o)=>{n!=null&&n!==false&&(t[o]=e&&ae.isArray(n)?n.join(", "):n)}));return t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);t.forEach((e=>n.set(e)));return n}static accessor(e){const t=this[Je]=this[Je]={accessors:{}};const n=t.accessors;const o=this.prototype;function i(e){const t=Xe(e);if(!n[t]){Ye(o,e);n[t]=true}}ae.isArray(e)?e.forEach(i):i(e);return this}}et.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ae.reduceDescriptors(et.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}));ae.freezeMethods(et);var tt=et;function nt(e,t){const n=this||He;const o=t||n;const i=tt.from(o.headers);let r=o.data;ae.forEach(e,(function e(o){r=o.call(n,r,i.normalize(),t?t.status:undefined)}));i.normalize();return r}function ot(e){return!!(e&&e.__CANCEL__)}function it(e,t,n){ce.call(this,e==null?"canceled":e,ce.ERR_CANCELED,t,n);this.name="CanceledError"}ae.inherits(it,ce,{__CANCEL__:true});function rt(e,t,n){const o=n.config.validateStatus;if(!n.status||!o||o(n.status)){e(n)}else{t(new ce("Request failed with status code "+n.status,[ce.ERR_BAD_REQUEST,ce.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}}function st(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function at(e,t){e=e||10;const n=new Array(e);const o=new Array(e);let i=0;let r=0;let s;t=t!==undefined?t:1e3;return function a(c){const l=Date.now();const u=o[r];if(!s){s=l}n[i]=c;o[i]=l;let f=r;let d=0;while(f!==i){d+=n[f++];f=f%e}i=(i+1)%e;if(i===r){r=(r+1)%e}if(l-s<t){return}const h=u&&l-u;return h?Math.round(d*1e3/h):undefined}}function ct(e,t){let n=0;let o=1e3/t;let i;let r;const s=(t,o=Date.now())=>{n=o;i=null;if(r){clearTimeout(r);r=null}e.apply(null,t)};const a=(...e)=>{const t=Date.now();const a=t-n;if(a>=o){s(e,t)}else{i=e;if(!r){r=setTimeout((()=>{r=null;s(i)}),o-a)}}};const c=()=>i&&s(i);return[a,c]}const lt=(e,t,n=3)=>{let o=0;const i=at(50,250);return ct((n=>{const r=n.loaded;const s=n.lengthComputable?n.total:undefined;const a=r-o;const c=i(a);const l=r<=s;o=r;const u={loaded:r,total:s,progress:s?r/s:undefined,bytes:a,rate:c?c:undefined,estimated:c&&s&&l?(s-r)/c:undefined,event:n,lengthComputable:s!=null,[t?"download":"upload"]:true};e(u)}),n)};const ut=(e,t)=>{const n=e!=null;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]};const ft=e=>(...t)=>ae.asap((()=>e(...t)));var dt=ze.hasStandardBrowserEnv?((e,t)=>n=>{n=new URL(n,ze.origin);return e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)})(new URL(ze.origin),ze.navigator&&/(msie|trident)/i.test(ze.navigator.userAgent)):()=>true;var ht=ze.hasStandardBrowserEnv?{write(e,t,n,o,i,r){const s=[e+"="+encodeURIComponent(t)];ae.isNumber(n)&&s.push("expires="+new Date(n).toGMTString());ae.isString(o)&&s.push("path="+o);ae.isString(i)&&s.push("domain="+i);r===true&&s.push("secure");document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function pt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function mt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function bt(e,t,n){let o=!pt(t);if(e&&(o||n==false)){return mt(e,t)}return t}const gt=e=>e instanceof tt?{...e}:e;function wt(e,t){t=t||{};const n={};function o(e,t,n,o){if(ae.isPlainObject(e)&&ae.isPlainObject(t)){return ae.merge.call({caseless:o},e,t)}else if(ae.isPlainObject(t)){return ae.merge({},t)}else if(ae.isArray(t)){return t.slice()}return t}function i(e,t,n,i){if(!ae.isUndefined(t)){return o(e,t,n,i)}else if(!ae.isUndefined(e)){return o(undefined,e,n,i)}}function r(e,t){if(!ae.isUndefined(t)){return o(undefined,t)}}function s(e,t){if(!ae.isUndefined(t)){return o(undefined,t)}else if(!ae.isUndefined(e)){return o(undefined,e)}}function a(n,i,r){if(r in t){return o(n,i)}else if(r in e){return o(undefined,n)}}const c={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t,n)=>i(gt(e),gt(t),n,true)};ae.forEach(Object.keys(Object.assign({},e,t)),(function o(r){const s=c[r]||i;const l=s(e[r],t[r],r);ae.isUndefined(l)&&s!==a||(n[r]=l)}));return n}var vt=e=>{const t=wt({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:r,headers:s,auth:a}=t;t.headers=s=tt.from(s);t.url=ke(bt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer);if(a){s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")))}let c;if(ae.isFormData(n)){if(ze.hasStandardBrowserEnv||ze.hasStandardBrowserWebWorkerEnv){s.setContentType(undefined)}else if((c=s.getContentType())!==false){const[e,...t]=c?c.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}}if(ze.hasStandardBrowserEnv){o&&ae.isFunction(o)&&(o=o(t));if(o||o!==false&&dt(t.url)){const e=i&&r&&ht.read(r);if(e){s.set(i,e)}}}return t};const yt=typeof XMLHttpRequest!=="undefined";var xt=yt&&function(e){return new Promise((function t(n,o){const i=vt(e);let r=i.data;const s=tt.from(i.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:l}=i;let u;let f,d;let h,p;function m(){h&&h();p&&p();i.cancelToken&&i.cancelToken.unsubscribe(u);i.signal&&i.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(i.method.toUpperCase(),i.url,true);b.timeout=i.timeout;function g(){if(!b){return}const t=tt.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());const i=!a||a==="text"||a==="json"?b.responseText:b.response;const r={data:i,status:b.status,statusText:b.statusText,headers:t,config:e,request:b};rt((function e(t){n(t);m()}),(function e(t){o(t);m()}),r);b=null}if("onloadend"in b){b.onloadend=g}else{b.onreadystatechange=function e(){if(!b||b.readyState!==4){return}if(b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)){return}setTimeout(g)}}b.onabort=function t(){if(!b){return}o(new ce("Request aborted",ce.ECONNABORTED,e,b));b=null};b.onerror=function t(){o(new ce("Network Error",ce.ERR_NETWORK,e,b));b=null};b.ontimeout=function t(){let n=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const r=i.transitional||Se;if(i.timeoutErrorMessage){n=i.timeoutErrorMessage}o(new ce(n,r.clarifyTimeoutError?ce.ETIMEDOUT:ce.ECONNABORTED,e,b));b=null};r===undefined&&s.setContentType(null);if("setRequestHeader"in b){ae.forEach(s.toJSON(),(function e(t,n){b.setRequestHeader(n,t)}))}if(!ae.isUndefined(i.withCredentials)){b.withCredentials=!!i.withCredentials}if(a&&a!=="json"){b.responseType=i.responseType}if(l){[d,p]=lt(l,true);b.addEventListener("progress",d)}if(c&&b.upload){[f,h]=lt(c);b.upload.addEventListener("progress",f);b.upload.addEventListener("loadend",h)}if(i.cancelToken||i.signal){u=t=>{if(!b){return}o(!t||t.type?new it(null,e,b):t);b.abort();b=null};i.cancelToken&&i.cancelToken.subscribe(u);if(i.signal){i.signal.aborted?u():i.signal.addEventListener("abort",u)}}const w=st(i.url);if(w&&ze.protocols.indexOf(w)===-1){o(new ce("Unsupported protocol "+w+":",ce.ERR_BAD_REQUEST,e));return}b.send(r||null)}))};const kt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n=new AbortController;let o;const i=function(e){if(!o){o=true;s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof ce?t:new it(t instanceof Error?t.message:t))}};let r=t&&setTimeout((()=>{r=null;i(new ce(`timeout ${t} of ms exceeded`,ce.ETIMEDOUT))}),t);const s=()=>{if(e){r&&clearTimeout(r);r=null;e.forEach((e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}));e=null}};e.forEach((e=>e.addEventListener("abort",i)));const{signal:a}=n;a.unsubscribe=()=>ae.asap(s);return a}};var Rt=kt;const Ot=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let o=0;let i;while(o<n){i=o+t;yield e.slice(o,i);o=i}};const St=async function*(e,t){for await(const n of Et(e)){yield*Ot(n,t)}};const Et=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e){break}yield n}}finally{await t.cancel()}};const Tt=(e,t,n,o)=>{const i=St(e,t);let r=0;let s;let a=e=>{if(!s){s=true;o&&o(e)}};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await i.next();if(t){a();e.close();return}let s=o.byteLength;if(n){let e=r+=s;n(e)}e.enqueue(new Uint8Array(o))}catch(e){a(e);throw e}},cancel(e){a(e);return i.return()}},{highWaterMark:2})};const Ct=typeof fetch==="function"&&typeof Request==="function"&&typeof Response==="function";const At=Ct&&typeof ReadableStream==="function";const jt=Ct&&(typeof TextEncoder==="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer()));const Nt=(e,...t)=>{try{return!!e(...t)}catch(e){return false}};const Ft=At&&Nt((()=>{let e=false;const t=new Request(ze.origin,{body:new ReadableStream,method:"POST",get duplex(){e=true;return"half"}}).headers.has("Content-Type");return e&&!t}));const Pt=64*1024;const Ut=At&&Nt((()=>ae.isReadableStream(new Response("").body)));const Bt={stream:Ut&&(e=>e.body)};Ct&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!Bt[t]&&(Bt[t]=ae.isFunction(e[t])?e=>e[t]():(e,n)=>{throw new ce(`Response type '${t}' is not supported`,ce.ERR_NOT_SUPPORT,n)})}))})(new Response);const zt=async e=>{if(e==null){return 0}if(ae.isBlob(e)){return e.size}if(ae.isSpecCompliantForm(e)){const t=new Request(ze.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}if(ae.isArrayBufferView(e)||ae.isArrayBuffer(e)){return e.byteLength}if(ae.isURLSearchParams(e)){e=e+""}if(ae.isString(e)){return(await jt(e)).byteLength}};const It=async(e,t)=>{const n=ae.toFiniteNumber(e.getContentLength());return n==null?zt(t):n};var _t=Ct&&(async e=>{let{url:t,method:n,data:o,signal:i,cancelToken:r,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:l,headers:u,withCredentials:f="same-origin",fetchOptions:d}=vt(e);l=l?(l+"").toLowerCase():"text";let h=Rt([i,r&&r.toAbortSignal()],s);let p;const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let b;try{if(c&&Ft&&n!=="get"&&n!=="head"&&(b=await It(u,o))!==0){let e=new Request(t,{method:"POST",body:o,duplex:"half"});let n;if(ae.isFormData(o)&&(n=e.headers.get("content-type"))){u.setContentType(n)}if(e.body){const[t,n]=ut(b,lt(ft(c)));o=Tt(e.body,Pt,t,n)}}if(!ae.isString(f)){f=f?"include":"omit"}const i="credentials"in Request.prototype;p=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:o,duplex:"half",credentials:i?f:undefined});let r=await fetch(p);const s=Ut&&(l==="stream"||l==="response");if(Ut&&(a||s&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=r[t]}));const t=ae.toFiniteNumber(r.headers.get("content-length"));const[n,o]=a&&ut(t,lt(ft(a),true))||[];r=new Response(Tt(r.body,Pt,n,(()=>{o&&o();m&&m()})),e)}l=l||"text";let g=await Bt[ae.findKey(Bt,l)||"text"](r,e);!s&&m&&m();return await new Promise(((t,n)=>{rt(t,n,{data:g,headers:tt.from(r.headers),status:r.status,statusText:r.statusText,config:e,request:p})}))}catch(t){m&&m();if(t&&t.name==="TypeError"&&/fetch/i.test(t.message)){throw Object.assign(new ce("Network Error",ce.ERR_NETWORK,e,p),{cause:t.cause||t})}throw ce.from(t,t&&t.code,e,p)}});const Dt={http:fe,xhr:xt,fetch:_t};ae.forEach(Dt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Lt=e=>`- ${e}`;const qt=e=>ae.isFunction(e)||e===null||e===false;var Mt={getAdapter:e=>{e=ae.isArray(e)?e:[e];const{length:t}=e;let n;let o;const i={};for(let r=0;r<t;r++){n=e[r];let t;o=n;if(!qt(n)){o=Dt[(t=String(n)).toLowerCase()];if(o===undefined){throw new ce(`Unknown adapter '${t}'`)}}if(o){break}i[t||"#"+r]=o}if(!o){const e=Object.entries(i).map((([e,t])=>`adapter ${e} `+(t===false?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(Lt).join("\n"):" "+Lt(e[0]):"as no adapter specified";throw new ce(`There is no suitable adapter to dispatch the request `+n,"ERR_NOT_SUPPORT")}return o},adapters:Dt};function Ht(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new it(null,e)}}function $t(e){Ht(e);e.headers=tt.from(e.headers);e.data=nt.call(e,e.transformRequest);if(["post","put","patch"].indexOf(e.method)!==-1){e.headers.setContentType("application/x-www-form-urlencoded",false)}const t=Mt.getAdapter(e.adapter||He.adapter);return t(e).then((function t(n){Ht(e);n.data=nt.call(e,e.transformResponse,n);n.headers=tt.from(n.headers);return n}),(function t(n){if(!ot(n)){Ht(e);if(n&&n.response){n.response.data=nt.call(e,e.transformResponse,n.response);n.response.headers=tt.from(n.response.headers)}}return Promise.reject(n)}))}const Kt="1.8.4";const Jt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Jt[e]=function n(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}}));const Xt={};Jt.transitional=function e(t,n,o){function i(e,t){return"[Axios v"+Kt+"] Transitional option '"+e+"'"+t+(o?". "+o:"")}return(e,o,r)=>{if(t===false){throw new ce(i(o," has been removed"+(n?" in "+n:"")),ce.ERR_DEPRECATED)}if(n&&!Xt[o]){Xt[o]=true;console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))}return t?t(e,o,r):true}};Jt.spelling=function e(t){return(e,n)=>{console.warn(`${n} is likely a misspelling of ${t}`);return true}};function Vt(e,t,n){if(typeof e!=="object"){throw new ce("options must be an object",ce.ERR_BAD_OPTION_VALUE)}const o=Object.keys(e);let i=o.length;while(i-- >0){const r=o[i];const s=t[r];if(s){const t=e[r];const n=t===undefined||s(t,r,e);if(n!==true){throw new ce("option "+r+" must be "+n,ce.ERR_BAD_OPTION_VALUE)}continue}if(n!==true){throw new ce("Unknown option "+r,ce.ERR_BAD_OPTION)}}}var Wt={assertOptions:Vt,validators:Jt};const Gt=Wt.validators;class Zt{constructor(e){this.defaults=e;this.interceptors={request:new Oe,response:new Oe}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{if(!e.stack){e.stack=n}else if(n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))){e.stack+="\n"+n}}catch(e){}}throw e}}_request(e,t){if(typeof e==="string"){t=t||{};t.url=e}else{t=e||{}}t=wt(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:i}=t;if(n!==undefined){Wt.assertOptions(n,{silentJSONParsing:Gt.transitional(Gt.boolean),forcedJSONParsing:Gt.transitional(Gt.boolean),clarifyTimeoutError:Gt.transitional(Gt.boolean)},false)}if(o!=null){if(ae.isFunction(o)){t.paramsSerializer={serialize:o}}else{Wt.assertOptions(o,{encode:Gt.function,serialize:Gt.function},true)}}if(t.allowAbsoluteUrls!==undefined);else if(this.defaults.allowAbsoluteUrls!==undefined){t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls}else{t.allowAbsoluteUrls=true}Wt.assertOptions(t,{baseUrl:Gt.spelling("baseURL"),withXsrfToken:Gt.spelling("withXSRFToken")},true);t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=i&&ae.merge(i.common,i[t.method]);i&&ae.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]}));t.headers=tt.concat(r,i);const s=[];let a=true;this.interceptors.request.forEach((function e(n){if(typeof n.runWhen==="function"&&n.runWhen(t)===false){return}a=a&&n.synchronous;s.unshift(n.fulfilled,n.rejected)}));const c=[];this.interceptors.response.forEach((function e(t){c.push(t.fulfilled,t.rejected)}));let l;let u=0;let f;if(!a){const e=[$t.bind(this),undefined];e.unshift.apply(e,s);e.push.apply(e,c);f=e.length;l=Promise.resolve(t);while(u<f){l=l.then(e[u++],e[u++])}return l}f=s.length;let d=t;u=0;while(u<f){const e=s[u++];const t=s[u++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=$t.call(this,d)}catch(e){return Promise.reject(e)}u=0;f=c.length;while(u<f){l=l.then(c[u++],c[u++])}return l}getUri(e){e=wt(this.defaults,e);const t=bt(e.baseURL,e.url,e.allowAbsoluteUrls);return ke(t,e.params,e.paramsSerializer)}}ae.forEach(["delete","get","head","options"],(function e(t){Zt.prototype[t]=function(e,n){return this.request(wt(n||{},{method:t,url:e,data:(n||{}).data}))}}));ae.forEach(["post","put","patch"],(function e(t){function n(e){return function n(o,i,r){return this.request(wt(r||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}Zt.prototype[t]=n();Zt.prototype[t+"Form"]=n(true)}));var Qt=Zt;class Yt{constructor(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}let t;this.promise=new Promise((function e(n){t=n}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;while(t-- >0){n._listeners[t](e)}n._listeners=null}));this.promise.then=e=>{let t;const o=new Promise((e=>{n.subscribe(e);t=e})).then(e);o.cancel=function e(){n.unsubscribe(t)};return o};e((function e(o,i,r){if(n.reason){return}n.reason=new it(o,i,r);t(n.reason)}))}throwIfRequested(){if(this.reason){throw this.reason}}subscribe(e){if(this.reason){e(this.reason);return}if(this._listeners){this._listeners.push(e)}else{this._listeners=[e]}}unsubscribe(e){if(!this._listeners){return}const t=this._listeners.indexOf(e);if(t!==-1){this._listeners.splice(t,1)}}toAbortSignal(){const e=new AbortController;const t=t=>{e.abort(t)};this.subscribe(t);e.signal.unsubscribe=()=>this.unsubscribe(t);return e.signal}static source(){let e;const t=new Yt((function t(n){e=n}));return{token:t,cancel:e}}}var en=Yt;function tn(e){return function t(n){return e.apply(null,n)}}function nn(e){return ae.isObject(e)&&e.isAxiosError===true}const on={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(on).forEach((([e,t])=>{on[t]=e}));var rn=on;function sn(t){const n=new Qt(t);const o=e(Qt.prototype.request,n);ae.extend(o,Qt.prototype,n,{allOwnKeys:true});ae.extend(o,n,null,{allOwnKeys:true});o.create=function e(n){return sn(wt(t,n))};return o}const an=sn(He);an.Axios=Qt;an.CanceledError=it;an.CancelToken=en;an.isCancel=ot;an.VERSION=Kt;an.toFormData=ge;an.AxiosError=ce;an.Cancel=an.CanceledError;an.all=function e(t){return Promise.all(t)};an.spread=tn;an.isAxiosError=nn;an.mergeConfig=wt;an.AxiosHeaders=tt;an.formToJSON=e=>Le(ae.isHTMLForm(e)?new FormData(e):e);an.getAdapter=Mt.getAdapter;an.HttpStatusCode=rn;an.default=an;p=an;return p}var g=b();var w=f(g);const v=d.includes(window.location.origin)?"default:development.6348f953f52485d19daf03992f2123a36e9eae59c5ca7f8736dc2b67":"default:production.4808a77b2a149e1796391b480b4fb501d73aa1e11123f60e07809ced";const y=()=>w.get("https://unleash.verdocs.com/api/frontend",{headers:{Accept:"application/json",Authorization:v}}).then((e=>e.data)).catch((e=>{console.log("Unleash: Unable to fetch feature flags",e);throw e}));const x='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-contact-picker{display:block;border:1px solid #ebebeb;background-color:#ffffff;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}verdocs-contact-picker form{gap:12px;width:300px;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#f5f5fa}verdocs-contact-picker form .row{gap:8px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}verdocs-contact-picker form .names-row{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .names-row>input{font-size:14px;width:88px}verdocs-contact-picker form .pin-code{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .pin-code>input{-ms-flex:0 0 197px;flex:0 0 197px;font-size:14px}verdocs-contact-picker form .address{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .address>input{-ms-flex:1;flex:1;font-size:14px}verdocs-contact-picker form .zip-code{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .zip-code>input{-ms-flex:1;flex:1;font-size:14px}verdocs-contact-picker form label{display:-ms-flexbox;display:flex;-ms-flex:0 0 80px;flex:0 0 80px;font-size:13px;font-weight:500;color:#5c6575}verdocs-contact-picker form .row.message textarea{width:100%;padding:5px 7px;border-radius:4px;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-contact-picker form input{-ms-flex:1;flex:1;padding:6px;font-size:14px;border-radius:3px;border:1px solid rgba(112, 122, 229, 0.3725490196)}verdocs-contact-picker form input:focus{outline:none}verdocs-contact-picker .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:6px;-moz-column-gap:6px;column-gap:6px;margin-top:16px;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-contact-picker ::-webkit-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-moz-placeholder{color:#aaaaaa}verdocs-contact-picker :-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::placeholder{color:#aaaaaa}verdocs-contact-picker [data-lastpass-icon-root]{display:none !important}#verdocs-contact-picker-suggestions .dropdown{max-height:225px;overflow-y:scroll;background:#ffffff;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}#verdocs-contact-picker-suggestions .dropdown .suggestion{display:-ms-flexbox;display:flex;padding:6px 12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-contact-picker-suggestions .dropdown .suggestion svg{width:32px;height:32px}#verdocs-contact-picker-suggestions .dropdown .suggestion .avatar{width:32px;height:32px;-ms-flex:0 0 32px;flex:0 0 32px;margin-right:8px;border-radius:100%}#verdocs-contact-picker-suggestions .dropdown .suggestion .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}#verdocs-contact-picker-suggestions .dropdown .suggestion .name{font-size:16px;font-weight:500;margin-bottom:3px;color:#092c4c}#verdocs-contact-picker-suggestions .dropdown .suggestion .destination{font-size:14px;margin-bottom:3px;color:#33364b}#verdocs-contact-picker-suggestions .dropdown .suggestion:hover{background:#eee;cursor:pointer}';const k=`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-user"><path d="M15 13a3 3 0 1 0-6 0"/><path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"/><circle cx="12" cy="8" r="2"/></svg>`;const R=class{constructor(n){e(this,n);this.searchContacts=t(this,"searchContacts");this.exit=t(this,"exit");this.next=t(this,"next");this.endpoint=r.getDefault();this.templateRole=null;this.contactSuggestions=[];this.showSuggestions=false;this.showMessage=false;this.delegator=false;this.auth_methods=[];this.passcode="";this.firstNameFieldId=`verdocs-contact-picker-firstname-${Math.random().toString(36).substring(2,11)}`;this.lastNameFieldId=`verdocs-contact-picker-lastname-${Math.random().toString(36).substring(2,11)}`;this.emailFieldId=`verdocs-contact-picker-email-${Math.random().toString(36).substring(2,11)}`;this.phoneFieldId=`verdocs-contact-picker-phone-${Math.random().toString(36).substring(2,11)}`;this.featureFlags=null;this.activeEntitlements={}}componentWillLoad(){this.endpoint.loadSession();if(this.templateRole){const e=s(this.templateRole);const t=e.split(" ");const n=this.templateRole.first_name||t.shift()||"";const o=this.templateRole.last_name||t.join(" ")||"";this.first_name=n;this.last_name=o;this.email=this.templateRole.email||"";this.phone=this.templateRole.phone||"";this.delegator=this.templateRole.delegator||false;this.message=this.templateRole.message||"";this.showMessage=this.message!=="";this.auth_methods=this.templateRole.auth_methods||[];this.passcode=this.templateRole.passcode||""}a(this.endpoint).then((e=>{this.activeEntitlements=e;console.log("[CONTACT PICKER] Loaded entitlements",e)})).catch((e=>console.log("[CONTACT PICKER] Error loading entitlements, some features may be disabled.",e)));y().then((e=>{this.featureFlags=e;console.log("[CONTACT PICKER] Loaded feature flags",e)})).catch((e=>{console.log("[CONTACT PICKER] Unable to fetch feature flags, some features may be disabled.",e)}))}handleFirstNameChange(e){var t;this.first_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.first_name})}handleLastNameChange(e){var t;this.last_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.last_name})}handleCancel(e){var t;e.stopPropagation();this.showSuggestions=false;(t=this.exit)===null||t===void 0?void 0:t.emit()}handleSubmit(e){var t;e.stopPropagation();this.showSuggestions=false;(t=this.next)===null||t===void 0?void 0:t.emit({first_name:this.first_name,last_name:this.last_name,email:this.email,phone:this.phone,message:this.message,delegator:this.delegator,auth_methods:this.auth_methods,passcode:this.passcode,address:this.address,zip:this.zip})}handleSelectSuggestion(e,t){e.stopPropagation();this.first_name=t.first_name;this.last_name=t.last_name;this.email=t.email;this.phone=t.phone;this.showSuggestions=false}render(){var e,t,i,r,a,l,u,f,d,p,m,b,g,w,v,y,x,R;const O=this.first_name&&this.last_name&&c(this.email);const S=!this.auth_methods.length||this.auth_methods.includes("passcode")&&!!this.passcode||this.auth_methods.includes("kba")&&!!this.first_name&&!!this.last_name||this.auth_methods.includes("email")&&!!this.email||this.auth_methods.includes("sms")&&!!this.phone;const E=O&&S;const T=((i=(t=(e=this.featureFlags)===null||e===void 0?void 0:e.toggles)===null||t===void 0?void 0:t.find((e=>e.name==="sms")))===null||i===void 0?void 0:i.enabled)===true;const C=[];if(((l=(a=(r=this.featureFlags)===null||r===void 0?void 0:r.toggles)===null||a===void 0?void 0:a.find((e=>e.name==="passcode-verification")))===null||l===void 0?void 0:l.enabled)===true){C.push({label:"Passcode",value:"passcode"})}if(((d=(f=(u=this.featureFlags)===null||u===void 0?void 0:u.toggles)===null||f===void 0?void 0:f.find((e=>e.name==="email-verification")))===null||d===void 0?void 0:d.enabled)===true){C.push({label:"Email",value:"email"})}if(T&&((b=(m=(p=this.featureFlags)===null||p===void 0?void 0:p.toggles)===null||m===void 0?void 0:m.find((e=>e.name==="sms-verification")))===null||b===void 0?void 0:b.enabled)===true&&!!this.activeEntitlements.sms_auth){C.push({label:"SMS (One-Time Code)",value:"sms"})}if(((v=(w=(g=this.featureFlags)===null||g===void 0?void 0:g.toggles)===null||w===void 0?void 0:w.find((e=>e.name==="kba-verification")))===null||v===void 0?void 0:v.enabled)===true&&!!this.activeEntitlements.kba_auth){C.push({label:"Knowledge-Based (KBA)",value:"kba"})}if(((R=(x=(y=this.featureFlags)===null||y===void 0?void 0:y.toggles)===null||x===void 0?void 0:x.find((e=>e.name==="id-verification")))===null||R===void 0?void 0:R.enabled)===true&&!!this.activeEntitlements.id_auth){C.push({label:"ID Check",value:"id"})}return n("form",{key:"cba230aed78c493105a007d965938ef36c0676c5",onSubmit:e=>e.preventDefault(),onClick:e=>e.stopPropagation(),autocomplete:"off"},n("div",{key:"436c7454a56df0f535f3aefdfff577a88dafa22c",class:"row"},n("label",{key:"b281d4c25f7b940d50700f808cdc9e7c3e235c63",htmlFor:this.firstNameFieldId},"Name:"),n("div",{key:"ef6316233086a5b6f7d5230e64134d3d4d370401",class:"names-row"},n("input",{key:"bb1114f98ee766c4da332c635e9aabfddb0ea0c5",id:this.firstNameFieldId,name:this.firstNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.first_name,placeholder:"First...",onFocus:()=>{setTimeout((()=>{var e;this.showSuggestions=((e=this.contactSuggestions)===null||e===void 0?void 0:e.length)>0}),100)},onInput:e=>this.handleFirstNameChange(e)}),n("input",{key:"8165b6a10ccec8cc699965a0e457c4984ba7e6d9",id:this.lastNameFieldId,name:this.lastNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.last_name,placeholder:"Last...",onFocus:()=>{setTimeout((()=>{var e;this.showSuggestions=((e=this.contactSuggestions)===null||e===void 0?void 0:e.length)>0}),100)},onInput:e=>this.handleLastNameChange(e)})),this.showSuggestions&&n("verdocs-portal",{key:"50bb3ba19b9ebedaf5dc6b42ab9ee56b49baf316",anchor:this.firstNameFieldId,onClickAway:()=>this.showSuggestions=false,id:"verdocs-contact-picker-suggestions"},n("div",{key:"06d909db8340e219f56520cba088f39d024e23c9",class:"dropdown"},this.contactSuggestions.filter((e=>!this.first_name||e.first_name.toLowerCase().includes(this.first_name.toLowerCase()))).map((e=>{var t;return n("div",{key:(t=e.id)!==null&&t!==void 0?t:e.email,class:"suggestion",onClick:t=>this.handleSelectSuggestion(t,e)},e.picture?n("img",{alt:"Avatar",class:"avatar",src:e.picture}):n("div",{class:"avatar",innerHTML:k}),n("div",{class:"details"},n("div",{class:"name"},s(e)),e.email&&n("div",{class:"destination"},e.email),e.phone&&n("div",{class:"destination"},e.phone)))}))))),n("div",{key:"0fd66b40717c81b65a301ced6b6bf4b6ff7b6626",class:"row"},n("label",{key:"70956784b72087d8c1868595ec40dfbdee34ca87",htmlFor:this.emailFieldId},"Email:"),n("input",{key:"35582c90e48b6f532fc75cc51525ca06162ebcc8",id:this.emailFieldId,name:this.emailFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.email,placeholder:"Invite/verify via email...",onFocus:()=>this.showSuggestions=false,onInput:e=>this.email=e.target.value})),T&&n("div",{key:"626950e0213dbc8fab07af0ac7682db19638c73c",class:"row"},n("label",{key:"12cfdd054564af5cc3573785d884c87b7b50bae4",htmlFor:this.phoneFieldId},"Phone:"),n("input",{key:"8ecb757d6ee8acf6041c75f4fc0621ece470fcdf",id:this.phoneFieldId,name:this.phoneFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.phone,placeholder:"Invite/verify via SMS...",onFocus:()=>this.showSuggestions=false,onInput:e=>{this.phone=h(e.target.value)}})),n(o,{key:"2023b0c925497df85590f0294597c38bde90b1da"},C.length>0&&n("div",{key:"eb16a51636c12027f228714283bc3a045b04f364",class:"row"},n("label",{key:"c53d976fa49aa4ff32d6e176aed1a425a19befca"},"Recipient Verification:"),n("verdocs-multiselect",{key:"6b84fd7b99c4b4f9e21242d444ead7238d3b12ec",label:"",placeholder:"None",options:C,selectedOptions:this.auth_methods,onSelectionChanged:e=>{this.auth_methods=e.detail.selectedOptions}})),this.auth_methods.includes("passcode")&&n("div",{key:"6e5059ea257eef3f44090348d5b264a0d4fca331",class:"row pin-code"},n("label",{key:"3c38728d9833d750e097c96b1df655d2c624cbaf",htmlFor:this.phoneFieldId},"Passcode:"),n("input",{key:"c067ad0b5e64554869d382b30034ad06f3f2287c",id:"verdocs-passcode",name:"verdocs-passcode",type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.passcode,placeholder:"4-8 digits recommended...",onFocus:()=>this.showSuggestions=false,onInput:e=>this.passcode=e.target.value}))),n("div",{key:"aea4f4504c415602990370c74b8cbc4888cdb9c4",class:"row message"},n("label",{key:"293b04061121e45a161299a7c67742b35450f73e",htmlFor:"verdocs-contact-picker-message"},"Message:"),n("textarea",{key:"27b597556563377a843865cfa1205d28c5a35440",id:"verdocs-contact-picker-message",name:"verdocs-contact-picker-message","data-lpignore":"true",autocomplete:"blocked",placeholder:"Optional message to include in invitation...",onFocus:()=>this.showSuggestions=false,onInput:e=>this.message=e.target.value},this.message)),n("div",{key:"cd57ffae6c1fdb990b5cee5d2f93315b1e431ae2",class:"buttons"},n("div",{key:"229c636cd7d61eaeece868f1d64a787465913223",class:"flex-fill"}),n("verdocs-button",{key:"0014bda0bcef66e26df9cfad2e4ca09bad08419a",variant:"outline",label:"Cancel",size:"small",onClick:e=>this.handleCancel(e)}),n("verdocs-button",{key:"cc2456cc0e493b0449750e3950e28c6c3aa69fa2",label:"OK",size:"small",disabled:!E,onClick:!E?()=>{}:e=>this.handleSubmit(e)})))}};R.style=x;const O='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-multiselect{width:100%;display:block;margin:0 0 10px 0;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", "Barlow", sans-serif}verdocs-multiselect .input-wrapper{width:100%;position:relative}verdocs-multiselect .input-wrapper .icon{top:6px;right:6px;width:18px;height:18px;z-index:10;position:absolute}verdocs-multiselect.open .input-wrapper .icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}verdocs-multiselect .trigger{gap:3px;width:100%;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%;border-radius:4px;-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;padding:5px 32px 5px 7px;background:#ffffff;border:1px solid #707ae5}verdocs-multiselect .trigger::-webkit-input-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger::-moz-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger:-ms-input-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger::-ms-input-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger::placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .selected-option{color:white;font-size:12px;padding:2px 6px;border-radius:3px;display:inline-block;background:#46497d}verdocs-multiselect .input-label{display:block;font-weight:700;font-size:14px;margin:0 0 4px 0;color:#555570}#verdocs-multiselect-menu-items{width:200px;z-index:10000;position:absolute;border-radius:5px;font-family:"Inter", "Barlow", sans-serif;background:#ffffff;border:1px solid #654dcb}#verdocs-multiselect-menu-items .option{display:-ms-flexbox;display:flex;gap:4px;padding:5px 8px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-multiselect-menu-items label{font-size:13px}';const S=`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6"><path stroke-linecap="round" stroke-linejoin="round" d="m19.5 8.25-7.5 7.5-7.5-7.5" /></svg>`;const E=class{constructor(n){e(this,n);this.selectionChanged=t(this,"selectionChanged");this.label="";this.placeholder="Select...";this.selectedOptions=[];this.showPicker=false}handleToggleOption(e,t){var n;if(e.target.checked){this.selectedOptions=[...this.selectedOptions,t.value]}else{this.selectedOptions=this.selectedOptions.filter((e=>e!==t.value))}(n=this.selectionChanged)===null||n===void 0?void 0:n.emit({selectedOptions:this.selectedOptions})}render(){const e=`verdocs-dropdown-${l(8)}`;return n(i,{key:"7fa4d31d423894e8caa3dffd1fb46752b7b87ee5",class:this.showPicker?"open":"closed"},n("label",{key:"891a7d7ee2867d598f2f3ea6609148a47a9a7166"},this.label?n("div",{class:"input-label"},this.label+":"):n("div",null),n("div",{key:"c165f68315aec9d1aca6e9f2214ece090f496363",class:"input-wrapper"},n("button",{key:"2297bfb9c84abd5da4c73dfcbae15fe2f5f04c1c",id:e,class:"trigger",value:"",onClick:()=>this.showPicker=true},this.selectedOptions.length===0?n("span",{class:"placeholder"},this.placeholder):this.selectedOptions.map((e=>{var t;return n("span",{class:"selected-option"},((t=this.options.find((t=>t.value===e)))===null||t===void 0?void 0:t.label)||"Unknown")}))),n("div",{key:"e4929befc449d9be400305ee3e0aeb1c171583fd",class:"icon",innerHTML:S}),this.showPicker&&n("verdocs-portal",{key:"42016ae18aa4acd4c5aac8f2ea3a7d6126116aa6",anchor:e,voffset:2,onClickAway:()=>this.showPicker=false,id:"verdocs-multiselect-menu-items"},this.options.map(((e,t)=>n("div",{class:"option",onClick:()=>this.showPicker=false},n("verdocs-checkbox",{size:"small",id:`verdocs-multi-select-opt-${t}`,value:e.value,checked:this.selectedOptions.includes(e.value),onInput:t=>this.handleToggleOption(t,e)}),n("label",{htmlFor:`verdocs-multi-select-option-${t}`},e.label))))))))}};E.style=O;export{R as verdocs_contact_picker,E as verdocs_multiselect};
|
3
|
-
//# sourceMappingURL=p-
|
1
|
+
import{r as e,c as t,h as n,F as o,H as i}from"./p-C1erT8T2.js";import{VerdocsEndpoint as r,formatFullName as s,getActiveEntitlements as c,isValidEmail as a,randomString as l}from"@verdocs/js-sdk";import{c as u,g as f}from"./p-BFTU3MAI.js";import{B as d}from"./p-C_Xku1v2.js";import{d as h}from"./p-Bf-kinKl.js";import"./p-dzBXqXlK.js";import"./p-Dl7Xw8F0.js";
|
2
|
+
/*! Axios v1.8.4 Copyright (c) 2025 Matt Zabriskie and contributors */var p;var m;function b(){if(m)return p;m=1;function e(e,t){return function n(){return e.apply(t,arguments)}}const{toString:t}=Object.prototype;const{getPrototypeOf:n}=Object;const o=(e=>n=>{const o=t.call(n);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null));const i=e=>{e=e.toLowerCase();return t=>o(t)===e};const r=e=>t=>typeof t===e;const{isArray:s}=Array;const c=r("undefined");function a(e){return e!==null&&!c(e)&&e.constructor!==null&&!c(e.constructor)&&h(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const l=i("ArrayBuffer");function f(e){let t;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){t=ArrayBuffer.isView(e)}else{t=e&&e.buffer&&l(e.buffer)}return t}const d=r("string");const h=r("function");const b=r("number");const g=e=>e!==null&&typeof e==="object";const w=e=>e===true||e===false;const v=e=>{if(o(e)!=="object"){return false}const t=n(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)};const y=i("Date");const x=i("File");const k=i("Blob");const R=i("FileList");const O=e=>g(e)&&h(e.pipe);const S=e=>{let t;return e&&(typeof FormData==="function"&&e instanceof FormData||h(e.append)&&((t=o(e))==="formdata"||t==="object"&&h(e.toString)&&e.toString()==="[object FormData]"))};const E=i("URLSearchParams");const[T,C,A,j]=["ReadableStream","Request","Response","Headers"].map(i);const N=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function F(e,t,{allOwnKeys:n=false}={}){if(e===null||typeof e==="undefined"){return}let o;let i;if(typeof e!=="object"){e=[e]}if(s(e)){for(o=0,i=e.length;o<i;o++){t.call(null,e[o],o,e)}}else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e);const r=i.length;let s;for(o=0;o<r;o++){s=i[o];t.call(null,e[s],s,e)}}}function P(e,t){t=t.toLowerCase();const n=Object.keys(e);let o=n.length;let i;while(o-- >0){i=n[o];if(t===i.toLowerCase()){return i}}return null}const U=(()=>{if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:u})();const B=e=>!c(e)&&e!==U;function z(){const{caseless:e}=B(this)&&this||{};const t={};const n=(n,o)=>{const i=e&&P(t,o)||o;if(v(t[i])&&v(n)){t[i]=z(t[i],n)}else if(v(n)){t[i]=z({},n)}else if(s(n)){t[i]=n.slice()}else{t[i]=n}};for(let e=0,t=arguments.length;e<t;e++){arguments[e]&&F(arguments[e],n)}return t}const I=(t,n,o,{allOwnKeys:i}={})=>{F(n,((n,i)=>{if(o&&h(n)){t[i]=e(n,o)}else{t[i]=n}}),{allOwnKeys:i});return t};const _=e=>{if(e.charCodeAt(0)===65279){e=e.slice(1)}return e};const D=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o);e.prototype.constructor=e;Object.defineProperty(e,"super",{value:t.prototype});n&&Object.assign(e.prototype,n)};const L=(e,t,o,i)=>{let r;let s;let c;const a={};t=t||{};if(e==null)return t;do{r=Object.getOwnPropertyNames(e);s=r.length;while(s-- >0){c=r[s];if((!i||i(c,e,t))&&!a[c]){t[c]=e[c];a[c]=true}}e=o!==false&&n(e)}while(e&&(!o||o(e,t))&&e!==Object.prototype);return t};const q=(e,t,n)=>{e=String(e);if(n===undefined||n>e.length){n=e.length}n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n};const M=e=>{if(!e)return null;if(s(e))return e;let t=e.length;if(!b(t))return null;const n=new Array(t);while(t-- >0){n[t]=e[t]}return n};const H=(e=>t=>e&&t instanceof e)(typeof Uint8Array!=="undefined"&&n(Uint8Array));const $=(e,t)=>{const n=e&&e[Symbol.iterator];const o=n.call(e);let i;while((i=o.next())&&!i.done){const n=i.value;t.call(e,n[0],n[1])}};const K=(e,t)=>{let n;const o=[];while((n=e.exec(t))!==null){o.push(n)}return o};const J=i("HTMLFormElement");const X=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function e(t,n,o){return n.toUpperCase()+o}));const V=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype);const W=i("RegExp");const G=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e);const o={};F(n,((n,i)=>{let r;if((r=t(n,i,e))!==false){o[i]=r||n}}));Object.defineProperties(e,o)};const Z=e=>{G(e,((t,n)=>{if(h(e)&&["arguments","caller","callee"].indexOf(n)!==-1){return false}const o=e[n];if(!h(o))return;t.enumerable=false;if("writable"in t){t.writable=false;return}if(!t.set){t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}}}))};const Q=(e,t)=>{const n={};const o=e=>{e.forEach((e=>{n[e]=true}))};s(e)?o(e):o(String(e).split(t));return n};const Y=()=>{};const ee=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function te(e){return!!(e&&h(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const ne=e=>{const t=new Array(10);const n=(e,o)=>{if(g(e)){if(t.indexOf(e)>=0){return}if(!("toJSON"in e)){t[o]=e;const i=s(e)?[]:{};F(e,((e,t)=>{const r=n(e,o+1);!c(r)&&(i[t]=r)}));t[o]=undefined;return i}}return e};return n(e,0)};const oe=i("AsyncFunction");const ie=e=>e&&(g(e)||h(e))&&h(e.then)&&h(e.catch);const re=((e,t)=>{if(e){return setImmediate}return t?((e,t)=>{U.addEventListener("message",(({source:n,data:o})=>{if(n===U&&o===e){t.length&&t.shift()()}}),false);return n=>{t.push(n);U.postMessage(e,"*")}})(`axios@${Math.random()}`,[]):e=>setTimeout(e)})(typeof setImmediate==="function",h(U.postMessage));const se=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(U):typeof process!=="undefined"&&process.nextTick||re;var ce={isArray:s,isArrayBuffer:l,isBuffer:a,isFormData:S,isArrayBufferView:f,isString:d,isNumber:b,isBoolean:w,isObject:g,isPlainObject:v,isReadableStream:T,isRequest:C,isResponse:A,isHeaders:j,isUndefined:c,isDate:y,isFile:x,isBlob:k,isRegExp:W,isFunction:h,isStream:O,isURLSearchParams:E,isTypedArray:H,isFileList:R,forEach:F,merge:z,extend:I,trim:N,stripBOM:_,inherits:D,toFlatObject:L,kindOf:o,kindOfTest:i,endsWith:q,toArray:M,forEachEntry:$,matchAll:K,isHTMLForm:J,hasOwnProperty:V,hasOwnProp:V,reduceDescriptors:G,freezeMethods:Z,toObjectSet:Q,toCamelCase:X,noop:Y,toFiniteNumber:ee,findKey:P,global:U,isContextDefined:B,isSpecCompliantForm:te,toJSONObject:ne,isAsyncFn:oe,isThenable:ie,setImmediate:re,asap:se};function ae(e,t,n,o,i){Error.call(this);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack}this.message=e;this.name="AxiosError";t&&(this.code=t);n&&(this.config=n);o&&(this.request=o);if(i){this.response=i;this.status=i.status?i.status:null}}ce.inherits(ae,Error,{toJSON:function e(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ce.toJSONObject(this.config),code:this.code,status:this.status}}});const le=ae.prototype;const ue={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{ue[e]={value:e}}));Object.defineProperties(ae,ue);Object.defineProperty(le,"isAxiosError",{value:true});ae.from=(e,t,n,o,i,r)=>{const s=Object.create(le);ce.toFlatObject(e,s,(function e(t){return t!==Error.prototype}),(e=>e!=="isAxiosError"));ae.call(s,e.message,t,n,o,i);s.cause=e;s.name=e.name;r&&Object.assign(s,r);return s};var fe=null;function de(e){return ce.isPlainObject(e)||ce.isArray(e)}function he(e){return ce.endsWith(e,"[]")?e.slice(0,-2):e}function pe(e,t,n){if(!e)return t;return e.concat(t).map((function e(t,o){t=he(t);return!n&&o?"["+t+"]":t})).join(n?".":"")}function me(e){return ce.isArray(e)&&!e.some(de)}const be=ce.toFlatObject(ce,{},null,(function e(t){return/^is[A-Z]/.test(t)}));function ge(e,t,n){if(!ce.isObject(e)){throw new TypeError("target must be an object")}t=t||new FormData;n=ce.toFlatObject(n,{metaTokens:true,dots:false,indexes:false},false,(function e(t,n){return!ce.isUndefined(n[t])}));const o=n.metaTokens;const i=n.visitor||u;const r=n.dots;const s=n.indexes;const c=n.Blob||typeof Blob!=="undefined"&&Blob;const a=c&&ce.isSpecCompliantForm(t);if(!ce.isFunction(i)){throw new TypeError("visitor must be a function")}function l(e){if(e===null)return"";if(ce.isDate(e)){return e.toISOString()}if(!a&&ce.isBlob(e)){throw new ae("Blob is not supported. Use a Buffer instead.")}if(ce.isArrayBuffer(e)||ce.isTypedArray(e)){return a&&typeof Blob==="function"?new Blob([e]):Buffer.from(e)}return e}function u(e,n,i){let c=e;if(e&&!i&&typeof e==="object"){if(ce.endsWith(n,"{}")){n=o?n:n.slice(0,-2);e=JSON.stringify(e)}else if(ce.isArray(e)&&me(e)||(ce.isFileList(e)||ce.endsWith(n,"[]"))&&(c=ce.toArray(e))){n=he(n);c.forEach((function e(o,i){!(ce.isUndefined(o)||o===null)&&t.append(s===true?pe([n],i,r):s===null?n:n+"[]",l(o))}));return false}}if(de(e)){return true}t.append(pe(i,n,r),l(e));return false}const f=[];const d=Object.assign(be,{defaultVisitor:u,convertValue:l,isVisitable:de});function h(e,n){if(ce.isUndefined(e))return;if(f.indexOf(e)!==-1){throw Error("Circular reference detected in "+n.join("."))}f.push(e);ce.forEach(e,(function e(o,r){const s=!(ce.isUndefined(o)||o===null)&&i.call(t,o,ce.isString(r)?r.trim():r,n,d);if(s===true){h(o,n?n.concat(r):[r])}}));f.pop()}if(!ce.isObject(e)){throw new TypeError("data must be an object")}h(e);return t}function we(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function e(n){return t[n]}))}function ve(e,t){this._pairs=[];e&&ge(e,this,t)}const ye=ve.prototype;ye.append=function e(t,n){this._pairs.push([t,n])};ye.toString=function e(t){const n=t?function(e){return t.call(this,e,we)}:we;return this._pairs.map((function e(t){return n(t[0])+"="+n(t[1])}),"").join("&")};function xe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ke(e,t,n){if(!t){return e}const o=n&&n.encode||xe;if(ce.isFunction(n)){n={serialize:n}}const i=n&&n.serialize;let r;if(i){r=i(t,n)}else{r=ce.isURLSearchParams(t)?t.toString():new ve(t,n).toString(o)}if(r){const t=e.indexOf("#");if(t!==-1){e=e.slice(0,t)}e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class Re{constructor(){this.handlers=[]}use(e,t,n){this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:false,runWhen:n?n.runWhen:null});return this.handlers.length-1}eject(e){if(this.handlers[e]){this.handlers[e]=null}}clear(){if(this.handlers){this.handlers=[]}}forEach(e){ce.forEach(this.handlers,(function t(n){if(n!==null){e(n)}}))}}var Oe=Re;var Se={silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false};var Ee=typeof URLSearchParams!=="undefined"?URLSearchParams:ve;var Te=typeof FormData!=="undefined"?FormData:null;var Ce=typeof Blob!=="undefined"?Blob:null;var Ae={isBrowser:true,classes:{URLSearchParams:Ee,FormData:Te,Blob:Ce},protocols:["http","https","file","blob","url","data"]};const je=typeof window!=="undefined"&&typeof document!=="undefined";const Ne=typeof navigator==="object"&&navigator||undefined;const Fe=je&&(!Ne||["ReactNative","NativeScript","NS"].indexOf(Ne.product)<0);const Pe=(()=>typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function")();const Ue=je&&window.location.href||"http://localhost";var Be=Object.freeze({__proto__:null,hasBrowserEnv:je,hasStandardBrowserWebWorkerEnv:Pe,hasStandardBrowserEnv:Fe,navigator:Ne,origin:Ue});var ze={...Be,...Ae};function Ie(e,t){return ge(e,new ze.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,o){if(ze.isNode&&ce.isBuffer(e)){this.append(t,e.toString("base64"));return false}return o.defaultVisitor.apply(this,arguments)}},t))}function _e(e){return ce.matchAll(/\w+|\[(\w*)]/g,e).map((e=>e[0]==="[]"?"":e[1]||e[0]))}function De(e){const t={};const n=Object.keys(e);let o;const i=n.length;let r;for(o=0;o<i;o++){r=n[o];t[r]=e[r]}return t}function Le(e){function t(e,n,o,i){let r=e[i++];if(r==="__proto__")return true;const s=Number.isFinite(+r);const c=i>=e.length;r=!r&&ce.isArray(o)?o.length:r;if(c){if(ce.hasOwnProp(o,r)){o[r]=[o[r],n]}else{o[r]=n}return!s}if(!o[r]||!ce.isObject(o[r])){o[r]=[]}const a=t(e,n,o[r],i);if(a&&ce.isArray(o[r])){o[r]=De(o[r])}return!s}if(ce.isFormData(e)&&ce.isFunction(e.entries)){const n={};ce.forEachEntry(e,((e,o)=>{t(_e(e),o,n,0)}));return n}return null}function qe(e,t,n){if(ce.isString(e)){try{(0,JSON.parse)(e);return ce.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(n||JSON.stringify)(e)}const Me={transitional:Se,adapter:["xhr","http","fetch"],transformRequest:[function e(t,n){const o=n.getContentType()||"";const i=o.indexOf("application/json")>-1;const r=ce.isObject(t);if(r&&ce.isHTMLForm(t)){t=new FormData(t)}const s=ce.isFormData(t);if(s){return i?JSON.stringify(Le(t)):t}if(ce.isArrayBuffer(t)||ce.isBuffer(t)||ce.isStream(t)||ce.isFile(t)||ce.isBlob(t)||ce.isReadableStream(t)){return t}if(ce.isArrayBufferView(t)){return t.buffer}if(ce.isURLSearchParams(t)){n.setContentType("application/x-www-form-urlencoded;charset=utf-8",false);return t.toString()}let c;if(r){if(o.indexOf("application/x-www-form-urlencoded")>-1){return Ie(t,this.formSerializer).toString()}if((c=ce.isFileList(t))||o.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return ge(c?{"files[]":t}:t,e&&new e,this.formSerializer)}}if(r||i){n.setContentType("application/json",false);return qe(t)}return t}],transformResponse:[function e(t){const n=this.transitional||Me.transitional;const o=n&&n.forcedJSONParsing;const i=this.responseType==="json";if(ce.isResponse(t)||ce.isReadableStream(t)){return t}if(t&&ce.isString(t)&&(o&&!this.responseType||i)){const e=n&&n.silentJSONParsing;const o=!e&&i;try{return JSON.parse(t)}catch(e){if(o){if(e.name==="SyntaxError"){throw ae.from(e,ae.ERR_BAD_RESPONSE,this,null,this.response)}throw e}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ze.classes.FormData,Blob:ze.classes.Blob},validateStatus:function e(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":undefined}}};ce.forEach(["delete","get","head","post","put","patch"],(e=>{Me.headers[e]={}}));var He=Me;const $e=ce.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var Ke=e=>{const t={};let n;let o;let i;e&&e.split("\n").forEach((function e(r){i=r.indexOf(":");n=r.substring(0,i).trim().toLowerCase();o=r.substring(i+1).trim();if(!n||t[n]&&$e[n]){return}if(n==="set-cookie"){if(t[n]){t[n].push(o)}else{t[n]=[o]}}else{t[n]=t[n]?t[n]+", "+o:o}}));return t};const Je=Symbol("internals");function Xe(e){return e&&String(e).trim().toLowerCase()}function Ve(e){if(e===false||e==null){return e}return ce.isArray(e)?e.map(Ve):String(e)}function We(e){const t=Object.create(null);const n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;while(o=n.exec(e)){t[o[1]]=o[2]}return t}const Ge=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ze(e,t,n,o,i){if(ce.isFunction(o)){return o.call(this,t,n)}if(i){t=n}if(!ce.isString(t))return;if(ce.isString(o)){return t.indexOf(o)!==-1}if(ce.isRegExp(o)){return o.test(t)}}function Qe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}function Ye(e,t){const n=ce.toCamelCase(" "+t);["get","set","has"].forEach((o=>{Object.defineProperty(e,o+n,{value:function(e,n,i){return this[o].call(this,t,e,n,i)},configurable:true})}))}class et{constructor(e){e&&this.set(e)}set(e,t,n){const o=this;function i(e,t,n){const i=Xe(t);if(!i){throw new Error("header name must be a non-empty string")}const r=ce.findKey(o,i);if(!r||o[r]===undefined||n===true||n===undefined&&o[r]!==false){o[r||t]=Ve(e)}}const r=(e,t)=>ce.forEach(e,((e,n)=>i(e,n,t)));if(ce.isPlainObject(e)||e instanceof this.constructor){r(e,t)}else if(ce.isString(e)&&(e=e.trim())&&!Ge(e)){r(Ke(e),t)}else if(ce.isHeaders(e)){for(const[t,o]of e.entries()){i(o,t,n)}}else{e!=null&&i(t,e,n)}return this}get(e,t){e=Xe(e);if(e){const n=ce.findKey(this,e);if(n){const e=this[n];if(!t){return e}if(t===true){return We(e)}if(ce.isFunction(t)){return t.call(this,e,n)}if(ce.isRegExp(t)){return t.exec(e)}throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){e=Xe(e);if(e){const n=ce.findKey(this,e);return!!(n&&this[n]!==undefined&&(!t||Ze(this,this[n],n,t)))}return false}delete(e,t){const n=this;let o=false;function i(e){e=Xe(e);if(e){const i=ce.findKey(n,e);if(i&&(!t||Ze(n,n[i],i,t))){delete n[i];o=true}}}if(ce.isArray(e)){e.forEach(i)}else{i(e)}return o}clear(e){const t=Object.keys(this);let n=t.length;let o=false;while(n--){const i=t[n];if(!e||Ze(this,this[i],i,e,true)){delete this[i];o=true}}return o}normalize(e){const t=this;const n={};ce.forEach(this,((o,i)=>{const r=ce.findKey(n,i);if(r){t[r]=Ve(o);delete t[i];return}const s=e?Qe(i):String(i).trim();if(s!==i){delete t[i]}t[s]=Ve(o);n[s]=true}));return this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);ce.forEach(this,((n,o)=>{n!=null&&n!==false&&(t[o]=e&&ce.isArray(n)?n.join(", "):n)}));return t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);t.forEach((e=>n.set(e)));return n}static accessor(e){const t=this[Je]=this[Je]={accessors:{}};const n=t.accessors;const o=this.prototype;function i(e){const t=Xe(e);if(!n[t]){Ye(o,e);n[t]=true}}ce.isArray(e)?e.forEach(i):i(e);return this}}et.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ce.reduceDescriptors(et.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}));ce.freezeMethods(et);var tt=et;function nt(e,t){const n=this||He;const o=t||n;const i=tt.from(o.headers);let r=o.data;ce.forEach(e,(function e(o){r=o.call(n,r,i.normalize(),t?t.status:undefined)}));i.normalize();return r}function ot(e){return!!(e&&e.__CANCEL__)}function it(e,t,n){ae.call(this,e==null?"canceled":e,ae.ERR_CANCELED,t,n);this.name="CanceledError"}ce.inherits(it,ae,{__CANCEL__:true});function rt(e,t,n){const o=n.config.validateStatus;if(!n.status||!o||o(n.status)){e(n)}else{t(new ae("Request failed with status code "+n.status,[ae.ERR_BAD_REQUEST,ae.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}}function st(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ct(e,t){e=e||10;const n=new Array(e);const o=new Array(e);let i=0;let r=0;let s;t=t!==undefined?t:1e3;return function c(a){const l=Date.now();const u=o[r];if(!s){s=l}n[i]=a;o[i]=l;let f=r;let d=0;while(f!==i){d+=n[f++];f=f%e}i=(i+1)%e;if(i===r){r=(r+1)%e}if(l-s<t){return}const h=u&&l-u;return h?Math.round(d*1e3/h):undefined}}function at(e,t){let n=0;let o=1e3/t;let i;let r;const s=(t,o=Date.now())=>{n=o;i=null;if(r){clearTimeout(r);r=null}e.apply(null,t)};const c=(...e)=>{const t=Date.now();const c=t-n;if(c>=o){s(e,t)}else{i=e;if(!r){r=setTimeout((()=>{r=null;s(i)}),o-c)}}};const a=()=>i&&s(i);return[c,a]}const lt=(e,t,n=3)=>{let o=0;const i=ct(50,250);return at((n=>{const r=n.loaded;const s=n.lengthComputable?n.total:undefined;const c=r-o;const a=i(c);const l=r<=s;o=r;const u={loaded:r,total:s,progress:s?r/s:undefined,bytes:c,rate:a?a:undefined,estimated:a&&s&&l?(s-r)/a:undefined,event:n,lengthComputable:s!=null,[t?"download":"upload"]:true};e(u)}),n)};const ut=(e,t)=>{const n=e!=null;return[o=>t[0]({lengthComputable:n,total:e,loaded:o}),t[1]]};const ft=e=>(...t)=>ce.asap((()=>e(...t)));var dt=ze.hasStandardBrowserEnv?((e,t)=>n=>{n=new URL(n,ze.origin);return e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)})(new URL(ze.origin),ze.navigator&&/(msie|trident)/i.test(ze.navigator.userAgent)):()=>true;var ht=ze.hasStandardBrowserEnv?{write(e,t,n,o,i,r){const s=[e+"="+encodeURIComponent(t)];ce.isNumber(n)&&s.push("expires="+new Date(n).toGMTString());ce.isString(o)&&s.push("path="+o);ce.isString(i)&&s.push("domain="+i);r===true&&s.push("secure");document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function pt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function mt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function bt(e,t,n){let o=!pt(t);if(e&&(o||n==false)){return mt(e,t)}return t}const gt=e=>e instanceof tt?{...e}:e;function wt(e,t){t=t||{};const n={};function o(e,t,n,o){if(ce.isPlainObject(e)&&ce.isPlainObject(t)){return ce.merge.call({caseless:o},e,t)}else if(ce.isPlainObject(t)){return ce.merge({},t)}else if(ce.isArray(t)){return t.slice()}return t}function i(e,t,n,i){if(!ce.isUndefined(t)){return o(e,t,n,i)}else if(!ce.isUndefined(e)){return o(undefined,e,n,i)}}function r(e,t){if(!ce.isUndefined(t)){return o(undefined,t)}}function s(e,t){if(!ce.isUndefined(t)){return o(undefined,t)}else if(!ce.isUndefined(e)){return o(undefined,e)}}function c(n,i,r){if(r in t){return o(n,i)}else if(r in e){return o(undefined,n)}}const a={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c,headers:(e,t,n)=>i(gt(e),gt(t),n,true)};ce.forEach(Object.keys(Object.assign({},e,t)),(function o(r){const s=a[r]||i;const l=s(e[r],t[r],r);ce.isUndefined(l)&&s!==c||(n[r]=l)}));return n}var vt=e=>{const t=wt({},e);let{data:n,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:r,headers:s,auth:c}=t;t.headers=s=tt.from(s);t.url=ke(bt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer);if(c){s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")))}let a;if(ce.isFormData(n)){if(ze.hasStandardBrowserEnv||ze.hasStandardBrowserWebWorkerEnv){s.setContentType(undefined)}else if((a=s.getContentType())!==false){const[e,...t]=a?a.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}}if(ze.hasStandardBrowserEnv){o&&ce.isFunction(o)&&(o=o(t));if(o||o!==false&&dt(t.url)){const e=i&&r&&ht.read(r);if(e){s.set(i,e)}}}return t};const yt=typeof XMLHttpRequest!=="undefined";var xt=yt&&function(e){return new Promise((function t(n,o){const i=vt(e);let r=i.data;const s=tt.from(i.headers).normalize();let{responseType:c,onUploadProgress:a,onDownloadProgress:l}=i;let u;let f,d;let h,p;function m(){h&&h();p&&p();i.cancelToken&&i.cancelToken.unsubscribe(u);i.signal&&i.signal.removeEventListener("abort",u)}let b=new XMLHttpRequest;b.open(i.method.toUpperCase(),i.url,true);b.timeout=i.timeout;function g(){if(!b){return}const t=tt.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders());const i=!c||c==="text"||c==="json"?b.responseText:b.response;const r={data:i,status:b.status,statusText:b.statusText,headers:t,config:e,request:b};rt((function e(t){n(t);m()}),(function e(t){o(t);m()}),r);b=null}if("onloadend"in b){b.onloadend=g}else{b.onreadystatechange=function e(){if(!b||b.readyState!==4){return}if(b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)){return}setTimeout(g)}}b.onabort=function t(){if(!b){return}o(new ae("Request aborted",ae.ECONNABORTED,e,b));b=null};b.onerror=function t(){o(new ae("Network Error",ae.ERR_NETWORK,e,b));b=null};b.ontimeout=function t(){let n=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const r=i.transitional||Se;if(i.timeoutErrorMessage){n=i.timeoutErrorMessage}o(new ae(n,r.clarifyTimeoutError?ae.ETIMEDOUT:ae.ECONNABORTED,e,b));b=null};r===undefined&&s.setContentType(null);if("setRequestHeader"in b){ce.forEach(s.toJSON(),(function e(t,n){b.setRequestHeader(n,t)}))}if(!ce.isUndefined(i.withCredentials)){b.withCredentials=!!i.withCredentials}if(c&&c!=="json"){b.responseType=i.responseType}if(l){[d,p]=lt(l,true);b.addEventListener("progress",d)}if(a&&b.upload){[f,h]=lt(a);b.upload.addEventListener("progress",f);b.upload.addEventListener("loadend",h)}if(i.cancelToken||i.signal){u=t=>{if(!b){return}o(!t||t.type?new it(null,e,b):t);b.abort();b=null};i.cancelToken&&i.cancelToken.subscribe(u);if(i.signal){i.signal.aborted?u():i.signal.addEventListener("abort",u)}}const w=st(i.url);if(w&&ze.protocols.indexOf(w)===-1){o(new ae("Unsupported protocol "+w+":",ae.ERR_BAD_REQUEST,e));return}b.send(r||null)}))};const kt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n=new AbortController;let o;const i=function(e){if(!o){o=true;s();const t=e instanceof Error?e:this.reason;n.abort(t instanceof ae?t:new it(t instanceof Error?t.message:t))}};let r=t&&setTimeout((()=>{r=null;i(new ae(`timeout ${t} of ms exceeded`,ae.ETIMEDOUT))}),t);const s=()=>{if(e){r&&clearTimeout(r);r=null;e.forEach((e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}));e=null}};e.forEach((e=>e.addEventListener("abort",i)));const{signal:c}=n;c.unsubscribe=()=>ce.asap(s);return c}};var Rt=kt;const Ot=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let o=0;let i;while(o<n){i=o+t;yield e.slice(o,i);o=i}};const St=async function*(e,t){for await(const n of Et(e)){yield*Ot(n,t)}};const Et=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e){break}yield n}}finally{await t.cancel()}};const Tt=(e,t,n,o)=>{const i=St(e,t);let r=0;let s;let c=e=>{if(!s){s=true;o&&o(e)}};return new ReadableStream({async pull(e){try{const{done:t,value:o}=await i.next();if(t){c();e.close();return}let s=o.byteLength;if(n){let e=r+=s;n(e)}e.enqueue(new Uint8Array(o))}catch(e){c(e);throw e}},cancel(e){c(e);return i.return()}},{highWaterMark:2})};const Ct=typeof fetch==="function"&&typeof Request==="function"&&typeof Response==="function";const At=Ct&&typeof ReadableStream==="function";const jt=Ct&&(typeof TextEncoder==="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer()));const Nt=(e,...t)=>{try{return!!e(...t)}catch(e){return false}};const Ft=At&&Nt((()=>{let e=false;const t=new Request(ze.origin,{body:new ReadableStream,method:"POST",get duplex(){e=true;return"half"}}).headers.has("Content-Type");return e&&!t}));const Pt=64*1024;const Ut=At&&Nt((()=>ce.isReadableStream(new Response("").body)));const Bt={stream:Ut&&(e=>e.body)};Ct&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach((t=>{!Bt[t]&&(Bt[t]=ce.isFunction(e[t])?e=>e[t]():(e,n)=>{throw new ae(`Response type '${t}' is not supported`,ae.ERR_NOT_SUPPORT,n)})}))})(new Response);const zt=async e=>{if(e==null){return 0}if(ce.isBlob(e)){return e.size}if(ce.isSpecCompliantForm(e)){const t=new Request(ze.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}if(ce.isArrayBufferView(e)||ce.isArrayBuffer(e)){return e.byteLength}if(ce.isURLSearchParams(e)){e=e+""}if(ce.isString(e)){return(await jt(e)).byteLength}};const It=async(e,t)=>{const n=ce.toFiniteNumber(e.getContentLength());return n==null?zt(t):n};var _t=Ct&&(async e=>{let{url:t,method:n,data:o,signal:i,cancelToken:r,timeout:s,onDownloadProgress:c,onUploadProgress:a,responseType:l,headers:u,withCredentials:f="same-origin",fetchOptions:d}=vt(e);l=l?(l+"").toLowerCase():"text";let h=Rt([i,r&&r.toAbortSignal()],s);let p;const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let b;try{if(a&&Ft&&n!=="get"&&n!=="head"&&(b=await It(u,o))!==0){let e=new Request(t,{method:"POST",body:o,duplex:"half"});let n;if(ce.isFormData(o)&&(n=e.headers.get("content-type"))){u.setContentType(n)}if(e.body){const[t,n]=ut(b,lt(ft(a)));o=Tt(e.body,Pt,t,n)}}if(!ce.isString(f)){f=f?"include":"omit"}const i="credentials"in Request.prototype;p=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:o,duplex:"half",credentials:i?f:undefined});let r=await fetch(p);const s=Ut&&(l==="stream"||l==="response");if(Ut&&(c||s&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=r[t]}));const t=ce.toFiniteNumber(r.headers.get("content-length"));const[n,o]=c&&ut(t,lt(ft(c),true))||[];r=new Response(Tt(r.body,Pt,n,(()=>{o&&o();m&&m()})),e)}l=l||"text";let g=await Bt[ce.findKey(Bt,l)||"text"](r,e);!s&&m&&m();return await new Promise(((t,n)=>{rt(t,n,{data:g,headers:tt.from(r.headers),status:r.status,statusText:r.statusText,config:e,request:p})}))}catch(t){m&&m();if(t&&t.name==="TypeError"&&/fetch/i.test(t.message)){throw Object.assign(new ae("Network Error",ae.ERR_NETWORK,e,p),{cause:t.cause||t})}throw ae.from(t,t&&t.code,e,p)}});const Dt={http:fe,xhr:xt,fetch:_t};ce.forEach(Dt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Lt=e=>`- ${e}`;const qt=e=>ce.isFunction(e)||e===null||e===false;var Mt={getAdapter:e=>{e=ce.isArray(e)?e:[e];const{length:t}=e;let n;let o;const i={};for(let r=0;r<t;r++){n=e[r];let t;o=n;if(!qt(n)){o=Dt[(t=String(n)).toLowerCase()];if(o===undefined){throw new ae(`Unknown adapter '${t}'`)}}if(o){break}i[t||"#"+r]=o}if(!o){const e=Object.entries(i).map((([e,t])=>`adapter ${e} `+(t===false?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(Lt).join("\n"):" "+Lt(e[0]):"as no adapter specified";throw new ae(`There is no suitable adapter to dispatch the request `+n,"ERR_NOT_SUPPORT")}return o},adapters:Dt};function Ht(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}if(e.signal&&e.signal.aborted){throw new it(null,e)}}function $t(e){Ht(e);e.headers=tt.from(e.headers);e.data=nt.call(e,e.transformRequest);if(["post","put","patch"].indexOf(e.method)!==-1){e.headers.setContentType("application/x-www-form-urlencoded",false)}const t=Mt.getAdapter(e.adapter||He.adapter);return t(e).then((function t(n){Ht(e);n.data=nt.call(e,e.transformResponse,n);n.headers=tt.from(n.headers);return n}),(function t(n){if(!ot(n)){Ht(e);if(n&&n.response){n.response.data=nt.call(e,e.transformResponse,n.response);n.response.headers=tt.from(n.response.headers)}}return Promise.reject(n)}))}const Kt="1.8.4";const Jt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Jt[e]=function n(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}}));const Xt={};Jt.transitional=function e(t,n,o){function i(e,t){return"[Axios v"+Kt+"] Transitional option '"+e+"'"+t+(o?". "+o:"")}return(e,o,r)=>{if(t===false){throw new ae(i(o," has been removed"+(n?" in "+n:"")),ae.ERR_DEPRECATED)}if(n&&!Xt[o]){Xt[o]=true;console.warn(i(o," has been deprecated since v"+n+" and will be removed in the near future"))}return t?t(e,o,r):true}};Jt.spelling=function e(t){return(e,n)=>{console.warn(`${n} is likely a misspelling of ${t}`);return true}};function Vt(e,t,n){if(typeof e!=="object"){throw new ae("options must be an object",ae.ERR_BAD_OPTION_VALUE)}const o=Object.keys(e);let i=o.length;while(i-- >0){const r=o[i];const s=t[r];if(s){const t=e[r];const n=t===undefined||s(t,r,e);if(n!==true){throw new ae("option "+r+" must be "+n,ae.ERR_BAD_OPTION_VALUE)}continue}if(n!==true){throw new ae("Unknown option "+r,ae.ERR_BAD_OPTION)}}}var Wt={assertOptions:Vt,validators:Jt};const Gt=Wt.validators;class Zt{constructor(e){this.defaults=e;this.interceptors={request:new Oe,response:new Oe}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{if(!e.stack){e.stack=n}else if(n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))){e.stack+="\n"+n}}catch(e){}}throw e}}_request(e,t){if(typeof e==="string"){t=t||{};t.url=e}else{t=e||{}}t=wt(this.defaults,t);const{transitional:n,paramsSerializer:o,headers:i}=t;if(n!==undefined){Wt.assertOptions(n,{silentJSONParsing:Gt.transitional(Gt.boolean),forcedJSONParsing:Gt.transitional(Gt.boolean),clarifyTimeoutError:Gt.transitional(Gt.boolean)},false)}if(o!=null){if(ce.isFunction(o)){t.paramsSerializer={serialize:o}}else{Wt.assertOptions(o,{encode:Gt.function,serialize:Gt.function},true)}}if(t.allowAbsoluteUrls!==undefined);else if(this.defaults.allowAbsoluteUrls!==undefined){t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls}else{t.allowAbsoluteUrls=true}Wt.assertOptions(t,{baseUrl:Gt.spelling("baseURL"),withXsrfToken:Gt.spelling("withXSRFToken")},true);t.method=(t.method||this.defaults.method||"get").toLowerCase();let r=i&&ce.merge(i.common,i[t.method]);i&&ce.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]}));t.headers=tt.concat(r,i);const s=[];let c=true;this.interceptors.request.forEach((function e(n){if(typeof n.runWhen==="function"&&n.runWhen(t)===false){return}c=c&&n.synchronous;s.unshift(n.fulfilled,n.rejected)}));const a=[];this.interceptors.response.forEach((function e(t){a.push(t.fulfilled,t.rejected)}));let l;let u=0;let f;if(!c){const e=[$t.bind(this),undefined];e.unshift.apply(e,s);e.push.apply(e,a);f=e.length;l=Promise.resolve(t);while(u<f){l=l.then(e[u++],e[u++])}return l}f=s.length;let d=t;u=0;while(u<f){const e=s[u++];const t=s[u++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=$t.call(this,d)}catch(e){return Promise.reject(e)}u=0;f=a.length;while(u<f){l=l.then(a[u++],a[u++])}return l}getUri(e){e=wt(this.defaults,e);const t=bt(e.baseURL,e.url,e.allowAbsoluteUrls);return ke(t,e.params,e.paramsSerializer)}}ce.forEach(["delete","get","head","options"],(function e(t){Zt.prototype[t]=function(e,n){return this.request(wt(n||{},{method:t,url:e,data:(n||{}).data}))}}));ce.forEach(["post","put","patch"],(function e(t){function n(e){return function n(o,i,r){return this.request(wt(r||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:o,data:i}))}}Zt.prototype[t]=n();Zt.prototype[t+"Form"]=n(true)}));var Qt=Zt;class Yt{constructor(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}let t;this.promise=new Promise((function e(n){t=n}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;while(t-- >0){n._listeners[t](e)}n._listeners=null}));this.promise.then=e=>{let t;const o=new Promise((e=>{n.subscribe(e);t=e})).then(e);o.cancel=function e(){n.unsubscribe(t)};return o};e((function e(o,i,r){if(n.reason){return}n.reason=new it(o,i,r);t(n.reason)}))}throwIfRequested(){if(this.reason){throw this.reason}}subscribe(e){if(this.reason){e(this.reason);return}if(this._listeners){this._listeners.push(e)}else{this._listeners=[e]}}unsubscribe(e){if(!this._listeners){return}const t=this._listeners.indexOf(e);if(t!==-1){this._listeners.splice(t,1)}}toAbortSignal(){const e=new AbortController;const t=t=>{e.abort(t)};this.subscribe(t);e.signal.unsubscribe=()=>this.unsubscribe(t);return e.signal}static source(){let e;const t=new Yt((function t(n){e=n}));return{token:t,cancel:e}}}var en=Yt;function tn(e){return function t(n){return e.apply(null,n)}}function nn(e){return ce.isObject(e)&&e.isAxiosError===true}const on={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(on).forEach((([e,t])=>{on[t]=e}));var rn=on;function sn(t){const n=new Qt(t);const o=e(Qt.prototype.request,n);ce.extend(o,Qt.prototype,n,{allOwnKeys:true});ce.extend(o,n,null,{allOwnKeys:true});o.create=function e(n){return sn(wt(t,n))};return o}const cn=sn(He);cn.Axios=Qt;cn.CanceledError=it;cn.CancelToken=en;cn.isCancel=ot;cn.VERSION=Kt;cn.toFormData=ge;cn.AxiosError=ae;cn.Cancel=cn.CanceledError;cn.all=function e(t){return Promise.all(t)};cn.spread=tn;cn.isAxiosError=nn;cn.mergeConfig=wt;cn.AxiosHeaders=tt;cn.formToJSON=e=>Le(ce.isHTMLForm(e)?new FormData(e):e);cn.getAdapter=Mt.getAdapter;cn.HttpStatusCode=rn;cn.default=cn;p=cn;return p}var g=b();var w=f(g);const v=d.includes(window.location.origin)?"default:development.6348f953f52485d19daf03992f2123a36e9eae59c5ca7f8736dc2b67":"default:production.4808a77b2a149e1796391b480b4fb501d73aa1e11123f60e07809ced";const y=()=>w.get("https://unleash.verdocs.com/api/frontend",{headers:{Accept:"application/json",Authorization:v}}).then((e=>e.data)).catch((e=>{console.log("Unleash: Unable to fetch feature flags",e);throw e}));const x='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-contact-picker{display:block;border:1px solid #ebebeb;background-color:#ffffff;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}verdocs-contact-picker form{gap:12px;width:300px;padding:12px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background-color:#f5f5fa}verdocs-contact-picker form .row{gap:8px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}verdocs-contact-picker form .names-row{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .names-row>input{font-size:14px;width:88px}verdocs-contact-picker form .pin-code{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .pin-code>input{-ms-flex:0 0 197px;flex:0 0 197px;font-size:14px}verdocs-contact-picker form .address{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .address>input{-ms-flex:1;flex:1;font-size:14px}verdocs-contact-picker form .zip-code{gap:8px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker form .zip-code>input{-ms-flex:1;flex:1;font-size:14px}verdocs-contact-picker form label{display:-ms-flexbox;display:flex;-ms-flex:0 0 80px;flex:0 0 80px;font-size:13px;font-weight:500;color:#5c6575}verdocs-contact-picker form .row.message textarea{width:100%;padding:5px 7px;border-radius:4px;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-contact-picker form input{-ms-flex:1;flex:1;padding:6px;font-size:14px;border-radius:3px;border:1px solid rgba(112, 122, 229, 0.3725490196)}verdocs-contact-picker form input:focus{outline:none}verdocs-contact-picker .buttons{display:-ms-flexbox;display:flex;-webkit-column-gap:6px;-moz-column-gap:6px;column-gap:6px;margin-top:16px;-ms-flex-direction:row;flex-direction:row}verdocs-contact-picker .buttons .flex-fill{-ms-flex:1;flex:1}verdocs-contact-picker ::-webkit-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-moz-placeholder{color:#aaaaaa}verdocs-contact-picker :-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::-ms-input-placeholder{color:#aaaaaa}verdocs-contact-picker ::placeholder{color:#aaaaaa}verdocs-contact-picker [data-lastpass-icon-root]{display:none !important}#verdocs-contact-picker-suggestions .dropdown{max-height:225px;overflow-y:scroll;background:#ffffff;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;-webkit-box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1);box-shadow:0 0 15px 0 rgba(0, 0, 0, 0.1)}#verdocs-contact-picker-suggestions .dropdown .suggestion{display:-ms-flexbox;display:flex;padding:6px 12px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-contact-picker-suggestions .dropdown .suggestion svg{width:32px;height:32px}#verdocs-contact-picker-suggestions .dropdown .suggestion .avatar{width:32px;height:32px;-ms-flex:0 0 32px;flex:0 0 32px;margin-right:8px;border-radius:100%}#verdocs-contact-picker-suggestions .dropdown .suggestion .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}#verdocs-contact-picker-suggestions .dropdown .suggestion .name{font-size:16px;font-weight:500;margin-bottom:3px;color:#092c4c}#verdocs-contact-picker-suggestions .dropdown .suggestion .destination{font-size:14px;margin-bottom:3px;color:#33364b}#verdocs-contact-picker-suggestions .dropdown .suggestion:hover{background:#eee;cursor:pointer}';const k=`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-book-user"><path d="M15 13a3 3 0 1 0-6 0"/><path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20"/><circle cx="12" cy="8" r="2"/></svg>`;const R=class{constructor(n){e(this,n);this.searchContacts=t(this,"searchContacts");this.exit=t(this,"exit");this.next=t(this,"next");this.endpoint=r.getDefault();this.templateRole=null;this.contactSuggestions=[];this.showSuggestions=false;this.showMessage=false;this.delegator=false;this.auth_methods=[];this.passcode="";this.firstNameFieldId=`verdocs-contact-picker-firstname-${Math.random().toString(36).substring(2,11)}`;this.lastNameFieldId=`verdocs-contact-picker-lastname-${Math.random().toString(36).substring(2,11)}`;this.emailFieldId=`verdocs-contact-picker-email-${Math.random().toString(36).substring(2,11)}`;this.phoneFieldId=`verdocs-contact-picker-phone-${Math.random().toString(36).substring(2,11)}`;this.featureFlags=null;this.activeEntitlements={}}componentWillLoad(){this.endpoint.loadSession();if(this.templateRole){const e=s(this.templateRole);const t=e.split(" ");const n=this.templateRole.first_name||t.shift()||"";const o=this.templateRole.last_name||t.join(" ")||"";this.first_name=n;this.last_name=o;this.email=this.templateRole.email||"";this.phone=this.templateRole.phone||"";this.delegator=this.templateRole.delegator||false;this.message=this.templateRole.message||"";this.showMessage=this.message!=="";this.auth_methods=this.templateRole.auth_methods||[];this.passcode=this.templateRole.passcode||""}c(this.endpoint).then((e=>{this.activeEntitlements=e;console.log("[CONTACT PICKER] Loaded entitlements",e)})).catch((e=>console.log("[CONTACT PICKER] Error loading entitlements, some features may be disabled.",e)));y().then((e=>{this.featureFlags=e;console.log("[CONTACT PICKER] Loaded feature flags",e)})).catch((e=>{console.log("[CONTACT PICKER] Unable to fetch feature flags, some features may be disabled.",e)}))}handleFirstNameChange(e){var t;this.first_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.first_name})}handleLastNameChange(e){var t;this.last_name=e.target.value;(t=this.searchContacts)===null||t===void 0?void 0:t.emit({query:this.last_name})}handleCancel(e){var t;e.stopPropagation();this.showSuggestions=false;(t=this.exit)===null||t===void 0?void 0:t.emit()}handleSubmit(e){var t;e.stopPropagation();this.showSuggestions=false;(t=this.next)===null||t===void 0?void 0:t.emit({first_name:this.first_name,last_name:this.last_name,email:this.email,phone:this.phone,message:this.message,delegator:this.delegator,auth_methods:this.auth_methods,passcode:this.passcode,address:this.address,zip:this.zip})}handleSelectSuggestion(e,t){e.stopPropagation();this.first_name=t.first_name;this.last_name=t.last_name;this.email=t.email;this.phone=t.phone;this.showSuggestions=false}render(){var e,t,i,r,c,l,u,f,d,p,m,b,g,w,v,y,x,R;const O=this.first_name&&this.last_name&&a(this.email);const S=!this.auth_methods.length||this.auth_methods.includes("passcode")&&!!this.passcode||this.auth_methods.includes("kba")&&!!this.first_name&&!!this.last_name||this.auth_methods.includes("email")&&!!this.email||this.auth_methods.includes("sms")&&!!this.phone;const E=O&&S;const T=((i=(t=(e=this.featureFlags)===null||e===void 0?void 0:e.toggles)===null||t===void 0?void 0:t.find((e=>e.name==="sms")))===null||i===void 0?void 0:i.enabled)===true;const C=[];if(((l=(c=(r=this.featureFlags)===null||r===void 0?void 0:r.toggles)===null||c===void 0?void 0:c.find((e=>e.name==="passcode-verification")))===null||l===void 0?void 0:l.enabled)===true){C.push({label:"Passcode",value:"passcode"})}if(((d=(f=(u=this.featureFlags)===null||u===void 0?void 0:u.toggles)===null||f===void 0?void 0:f.find((e=>e.name==="email-verification")))===null||d===void 0?void 0:d.enabled)===true){C.push({label:"Email",value:"email"})}if(T&&((b=(m=(p=this.featureFlags)===null||p===void 0?void 0:p.toggles)===null||m===void 0?void 0:m.find((e=>e.name==="sms-verification")))===null||b===void 0?void 0:b.enabled)===true&&!!this.activeEntitlements.sms_auth){C.push({label:"SMS (One-Time Code)",value:"sms"})}if(((v=(w=(g=this.featureFlags)===null||g===void 0?void 0:g.toggles)===null||w===void 0?void 0:w.find((e=>e.name==="kba-verification")))===null||v===void 0?void 0:v.enabled)===true&&!!this.activeEntitlements.kba_auth){C.push({label:"Knowledge-Based (KBA)",value:"kba"})}if(((R=(x=(y=this.featureFlags)===null||y===void 0?void 0:y.toggles)===null||x===void 0?void 0:x.find((e=>e.name==="id-verification")))===null||R===void 0?void 0:R.enabled)===true&&!!this.activeEntitlements.id_auth){C.push({label:"ID Check",value:"id"})}return n("form",{key:"cba230aed78c493105a007d965938ef36c0676c5",onSubmit:e=>e.preventDefault(),onClick:e=>e.stopPropagation(),autocomplete:"off"},n("div",{key:"436c7454a56df0f535f3aefdfff577a88dafa22c",class:"row"},n("label",{key:"b281d4c25f7b940d50700f808cdc9e7c3e235c63",htmlFor:this.firstNameFieldId},"Name:"),n("div",{key:"ef6316233086a5b6f7d5230e64134d3d4d370401",class:"names-row"},n("input",{key:"bb1114f98ee766c4da332c635e9aabfddb0ea0c5",id:this.firstNameFieldId,name:this.firstNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.first_name,placeholder:"First...",onFocus:()=>{setTimeout((()=>{var e;this.showSuggestions=((e=this.contactSuggestions)===null||e===void 0?void 0:e.length)>0}),100)},onInput:e=>this.handleFirstNameChange(e)}),n("input",{key:"8165b6a10ccec8cc699965a0e457c4984ba7e6d9",id:this.lastNameFieldId,name:this.lastNameFieldId,type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.last_name,placeholder:"Last...",onFocus:()=>{setTimeout((()=>{var e;this.showSuggestions=((e=this.contactSuggestions)===null||e===void 0?void 0:e.length)>0}),100)},onInput:e=>this.handleLastNameChange(e)})),this.showSuggestions&&n("verdocs-portal",{key:"50bb3ba19b9ebedaf5dc6b42ab9ee56b49baf316",anchor:this.firstNameFieldId,onClickAway:()=>this.showSuggestions=false,id:"verdocs-contact-picker-suggestions"},n("div",{key:"06d909db8340e219f56520cba088f39d024e23c9",class:"dropdown"},this.contactSuggestions.filter((e=>!this.first_name||e.first_name.toLowerCase().includes(this.first_name.toLowerCase()))).map((e=>{var t;return n("div",{key:(t=e.id)!==null&&t!==void 0?t:e.email,class:"suggestion",onClick:t=>this.handleSelectSuggestion(t,e)},e.picture?n("img",{alt:"Avatar",class:"avatar",src:e.picture}):n("div",{class:"avatar",innerHTML:k}),n("div",{class:"details"},n("div",{class:"name"},s(e)),e.email&&n("div",{class:"destination"},e.email),e.phone&&n("div",{class:"destination"},e.phone)))}))))),n("div",{key:"0fd66b40717c81b65a301ced6b6bf4b6ff7b6626",class:"row"},n("label",{key:"70956784b72087d8c1868595ec40dfbdee34ca87",htmlFor:this.emailFieldId},"Email:"),n("input",{key:"35582c90e48b6f532fc75cc51525ca06162ebcc8",id:this.emailFieldId,name:this.emailFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.email,placeholder:"Invite/verify via email...",onFocus:()=>this.showSuggestions=false,onInput:e=>this.email=e.target.value})),T&&n("div",{key:"626950e0213dbc8fab07af0ac7682db19638c73c",class:"row"},n("label",{key:"12cfdd054564af5cc3573785d884c87b7b50bae4",htmlFor:this.phoneFieldId},"Phone:"),n("input",{key:"8ecb757d6ee8acf6041c75f4fc0621ece470fcdf",id:this.phoneFieldId,name:this.phoneFieldId,type:"text","data-lpignore":"true",autoComplete:"blocked","aria-autocomplete":"none",value:this.phone,placeholder:"Invite/verify via SMS...",onFocus:()=>this.showSuggestions=false,onInput:e=>{this.phone=h(e.target.value)}})),n(o,{key:"2023b0c925497df85590f0294597c38bde90b1da"},C.length>0&&n("div",{key:"eb16a51636c12027f228714283bc3a045b04f364",class:"row"},n("label",{key:"c53d976fa49aa4ff32d6e176aed1a425a19befca"},"Recipient Verification:"),n("verdocs-multiselect",{key:"6b84fd7b99c4b4f9e21242d444ead7238d3b12ec",label:"",placeholder:"None",options:C,selectedOptions:this.auth_methods,onSelectionChanged:e=>{this.auth_methods=e.detail.selectedOptions}})),this.auth_methods.includes("passcode")&&n("div",{key:"6e5059ea257eef3f44090348d5b264a0d4fca331",class:"row pin-code"},n("label",{key:"3c38728d9833d750e097c96b1df655d2c624cbaf",htmlFor:this.phoneFieldId},"Passcode:"),n("input",{key:"c067ad0b5e64554869d382b30034ad06f3f2287c",id:"verdocs-passcode",name:"verdocs-passcode",type:"text","data-lpignore":"true",autocomplete:"blocked","aria-autocomplete":"none",value:this.passcode,placeholder:"4-8 digits recommended...",onFocus:()=>this.showSuggestions=false,onInput:e=>this.passcode=e.target.value}))),n("div",{key:"aea4f4504c415602990370c74b8cbc4888cdb9c4",class:"row message"},n("label",{key:"293b04061121e45a161299a7c67742b35450f73e",htmlFor:"verdocs-contact-picker-message"},"Message:"),n("textarea",{key:"27b597556563377a843865cfa1205d28c5a35440",id:"verdocs-contact-picker-message",name:"verdocs-contact-picker-message","data-lpignore":"true",autocomplete:"blocked",placeholder:"Optional message to include in invitation...",onFocus:()=>this.showSuggestions=false,onInput:e=>this.message=e.target.value},this.message)),n("div",{key:"cd57ffae6c1fdb990b5cee5d2f93315b1e431ae2",class:"buttons"},n("div",{key:"229c636cd7d61eaeece868f1d64a787465913223",class:"flex-fill"}),n("verdocs-button",{key:"0014bda0bcef66e26df9cfad2e4ca09bad08419a",variant:"outline",label:"Cancel",size:"small",onClick:e=>this.handleCancel(e)}),n("verdocs-button",{key:"cc2456cc0e493b0449750e3950e28c6c3aa69fa2",label:"OK",size:"small",disabled:!E,onClick:!E?()=>{}:e=>this.handleSubmit(e)})))}};R.style=x;const O='@-webkit-keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}@keyframes verdocs-field-pulse{0%{background-color:rgba(0, 0, 0, 0.35)}50%{background-color:rgba(0, 0, 0, 0)}100%{background-color:rgba(0, 0, 0, 0.35)}}verdocs-multiselect{width:100%;display:block;margin:0 0 10px 0;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:"Inter", "Barlow", sans-serif}verdocs-multiselect .input-wrapper{width:100%;position:relative}verdocs-multiselect .input-wrapper .icon{top:6px;right:6px;width:18px;height:18px;z-index:10;position:absolute}verdocs-multiselect .trigger{gap:3px;width:100%;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%;border-radius:4px;-ms-flex-direction:row;flex-direction:row;-webkit-box-sizing:border-box;box-sizing:border-box;padding:5px 32px 5px 7px;background:#ffffff;border:1px solid #707ae5}verdocs-multiselect .trigger::-webkit-input-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger::-moz-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger:-ms-input-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger::-ms-input-placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .trigger::placeholder{opacity:1;color:#aaaaaa}verdocs-multiselect .selected-option{color:white;font-size:12px;padding:2px 6px;border-radius:3px;display:inline-block;background:#46497d}verdocs-multiselect .input-label{display:block;font-weight:700;font-size:14px;margin:0 0 4px 0;color:#555570}#verdocs-multiselect-menu-items{width:200px;z-index:10000;position:absolute;border-radius:5px;font-family:"Inter", "Barlow", sans-serif;background:#ffffff;border:1px solid #654dcb}#verdocs-multiselect-menu-items .option{display:-ms-flexbox;display:flex;gap:4px;padding:5px 8px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}#verdocs-multiselect-menu-items label{font-size:13px}';const S=`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="m19.5 8.25-7.5 7.5-7.5-7.5" /></svg>`;const E=`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="m4.5 15.75 7.5-7.5 7.5 7.5" /></svg>`;const T=class{constructor(n){e(this,n);this.selectionChanged=t(this,"selectionChanged");this.label="";this.placeholder="Select...";this.selectedOptions=[];this.showPicker=false}handleToggleOption(e,t){var n;if(e.target.checked){this.selectedOptions=[...this.selectedOptions,t.value]}else{this.selectedOptions=this.selectedOptions.filter((e=>e!==t.value))}(n=this.selectionChanged)===null||n===void 0?void 0:n.emit({selectedOptions:this.selectedOptions})}render(){const e=`verdocs-dropdown-${l(8)}`;return n(i,{key:"eafa54e1dae78058303d3b80391745f85cd3eae1",class:this.showPicker?"open":"closed"},n("label",{key:"a584b5df194714f0ac33cba4c249f5360ba61985"},this.label?n("div",{class:"input-label"},this.label+":"):n("div",null),n("div",{key:"ba8d22afa9a3b561906fc5866c7644ef8c6c9054",class:"input-wrapper"},n("button",{key:"517b669dc1a5a95cae442f316678068862e287b2",id:e,class:"trigger",value:"",onClick:()=>this.showPicker=!this.showPicker},this.selectedOptions.length===0?n("span",{class:"placeholder"},this.placeholder):this.selectedOptions.map((e=>{var t;return n("span",{class:"selected-option"},((t=this.options.find((t=>t.value===e)))===null||t===void 0?void 0:t.label)||"Unknown")}))),n("div",{key:"aee9c3f227a6637e4589cfb858e9219548c57661",class:"icon",innerHTML:this.showPicker?E:S}),this.showPicker&&n("verdocs-portal",{key:"be42fed554514dd62147525a96e790a37e8bf67c",anchor:e,voffset:2,onClickAway:()=>this.showPicker=false,id:"verdocs-multiselect-menu-items"},this.options.map(((e,t)=>n("div",{class:"option",onClick:()=>this.showPicker=false},n("verdocs-checkbox",{size:"small",id:`verdocs-multi-select-opt-${t}`,value:e.value,checked:this.selectedOptions.includes(e.value),onInput:t=>this.handleToggleOption(t,e)}),n("label",{htmlFor:`verdocs-multi-select-option-${t}`},e.label))))))))}};T.style=O;export{R as verdocs_contact_picker,T as verdocs_multiselect};
|
3
|
+
//# sourceMappingURL=p-0809c039.entry.js.map
|