@verdocs/web-sdk 2.1.2 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/dist/cjs/Profiles-244e8254.js +95 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/verdocs-auth.cjs.entry.js +27 -54
  4. package/dist/cjs/verdocs-button_2.cjs.entry.js +65 -0
  5. package/dist/cjs/{verdocs-checkbox_5.cjs.entry.js → verdocs-checkbox_4.cjs.entry.js} +0 -38
  6. package/dist/cjs/verdocs-settings-organization_2.cjs.entry.js +4383 -0
  7. package/dist/cjs/verdocs-settings.cjs.entry.js +42 -0
  8. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  9. package/dist/collection/collection-manifest.json +3 -0
  10. package/dist/collection/components/controls/verdocs-help-icon/verdocs-help-icon.css +0 -3
  11. package/dist/collection/components/controls/verdocs-help-icon/verdocs-help-icon.js +24 -5
  12. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.css +7 -0
  13. package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +26 -11
  14. package/dist/collection/components/embeds/verdocs-settings/verdocs-settings.css +29 -0
  15. package/dist/collection/components/embeds/verdocs-settings/verdocs-settings.js +98 -0
  16. package/dist/collection/components/embeds/verdocs-settings/verdocs-settings.stories.js +10 -0
  17. package/dist/collection/components/settings/verdocs-settings-organization/TimeZones.js +144 -0
  18. package/dist/collection/components/settings/verdocs-settings-organization/verdocs-settings-organization.css +33 -0
  19. package/dist/collection/components/settings/verdocs-settings-organization/verdocs-settings-organization.js +226 -0
  20. package/dist/collection/components/settings/verdocs-settings-organization/verdocs-settings-organization.stories.js +13 -0
  21. package/dist/collection/components/settings/verdocs-settings-profile/verdocs-settings-profile.css +33 -0
  22. package/dist/collection/components/settings/verdocs-settings-profile/verdocs-settings-profile.js +187 -0
  23. package/dist/collection/components/settings/verdocs-settings-profile/verdocs-settings-profile.stories.js +13 -0
  24. package/dist/components/EnvelopeStore.js +1 -1
  25. package/dist/components/Organizations.js +32 -0
  26. package/dist/components/Profiles.js +57 -0
  27. package/dist/components/TemplateStore.js +1 -1
  28. package/dist/components/index.d.ts +3 -0
  29. package/dist/components/index.js +3 -0
  30. package/dist/components/index3.js +3979 -168
  31. package/dist/components/index4.js +194 -0
  32. package/dist/components/verdocs-auth.js +41 -60
  33. package/dist/components/verdocs-help-icon2.js +8 -6
  34. package/dist/components/verdocs-settings-organization.d.ts +11 -0
  35. package/dist/components/verdocs-settings-organization.js +6 -0
  36. package/dist/components/verdocs-settings-organization2.js +331 -0
  37. package/dist/components/verdocs-settings-profile.d.ts +11 -0
  38. package/dist/components/verdocs-settings-profile.js +6 -0
  39. package/dist/components/verdocs-settings-profile2.js +142 -0
  40. package/dist/components/verdocs-settings.d.ts +11 -0
  41. package/dist/components/verdocs-settings.js +101 -0
  42. package/dist/custom-elements.json +1975 -0
  43. package/dist/docs.json +263 -1
  44. package/dist/esm/Profiles-7645e6f1.js +88 -0
  45. package/dist/esm/loader.js +1 -1
  46. package/dist/esm/verdocs-auth.entry.js +26 -53
  47. package/dist/esm/verdocs-button_2.entry.js +60 -0
  48. package/dist/esm/{verdocs-checkbox_5.entry.js → verdocs-checkbox_4.entry.js} +1 -38
  49. package/dist/esm/verdocs-settings-organization_2.entry.js +4378 -0
  50. package/dist/esm/verdocs-settings.entry.js +38 -0
  51. package/dist/esm/verdocs-web-sdk.js +1 -1
  52. package/dist/esm-es5/Profiles-7645e6f1.js +1 -0
  53. package/dist/esm-es5/loader.js +1 -1
  54. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  55. package/dist/esm-es5/verdocs-button_2.entry.js +1 -0
  56. package/dist/esm-es5/verdocs-checkbox_4.entry.js +1 -0
  57. package/dist/esm-es5/verdocs-settings-organization_2.entry.js +1 -0
  58. package/dist/esm-es5/verdocs-settings.entry.js +1 -0
  59. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  60. package/dist/types/components/controls/verdocs-help-icon/verdocs-help-icon.d.ts +6 -2
  61. package/dist/types/components/embeds/verdocs-auth/verdocs-auth.d.ts +2 -1
  62. package/dist/types/components/embeds/verdocs-settings/verdocs-settings.d.ts +22 -0
  63. package/dist/types/components/embeds/verdocs-settings/verdocs-settings.stories.d.ts +4 -0
  64. package/dist/types/components/settings/verdocs-settings-organization/TimeZones.d.ts +1 -0
  65. package/dist/types/components/settings/verdocs-settings-organization/verdocs-settings-organization.d.ts +42 -0
  66. package/dist/types/components/settings/verdocs-settings-organization/verdocs-settings-organization.stories.d.ts +6 -0
  67. package/dist/types/components/settings/verdocs-settings-profile/verdocs-settings-profile.d.ts +38 -0
  68. package/dist/types/components/settings/verdocs-settings-profile/verdocs-settings-profile.stories.d.ts +6 -0
  69. package/dist/types/components.d.ts +104 -0
  70. package/dist/types/utils/utils.d.ts +1 -1
  71. package/dist/verdocs-web-sdk/p-075dc36d.js +1 -0
  72. package/dist/verdocs-web-sdk/p-0fecb805.entry.js +1 -0
  73. package/dist/verdocs-web-sdk/p-144d4ed1.system.entry.js +1 -0
  74. package/dist/verdocs-web-sdk/p-229a6849.entry.js +1 -0
  75. package/dist/verdocs-web-sdk/p-40361f22.entry.js +1 -0
  76. package/dist/verdocs-web-sdk/p-4821f318.system.entry.js +1 -0
  77. package/dist/verdocs-web-sdk/p-647cdb84.system.js +1 -1
  78. package/dist/verdocs-web-sdk/p-888adbc2.system.entry.js +1 -0
  79. package/dist/verdocs-web-sdk/p-cbebc039.system.js +1 -0
  80. package/dist/verdocs-web-sdk/p-ce22913a.entry.js +1 -0
  81. package/dist/verdocs-web-sdk/p-de192808.system.entry.js +1 -0
  82. package/dist/verdocs-web-sdk/p-e9d2b68a.entry.js +1 -0
  83. package/dist/verdocs-web-sdk/p-febebe69.system.entry.js +1 -0
  84. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  85. package/package.json +4 -3
  86. package/dist/cjs/verdocs-button.cjs.entry.js +0 -26
  87. package/dist/esm/verdocs-button.entry.js +0 -22
  88. package/dist/esm-es5/verdocs-button.entry.js +0 -1
  89. package/dist/esm-es5/verdocs-checkbox_5.entry.js +0 -1
  90. package/dist/verdocs-web-sdk/p-28b22c54.system.entry.js +0 -1
  91. package/dist/verdocs-web-sdk/p-450d6648.system.entry.js +0 -1
  92. package/dist/verdocs-web-sdk/p-606e0405.entry.js +0 -1
  93. package/dist/verdocs-web-sdk/p-9964cc5e.entry.js +0 -1
  94. package/dist/verdocs-web-sdk/p-c391fa41.entry.js +0 -1
  95. package/dist/verdocs-web-sdk/p-fbabbcea.system.entry.js +0 -1
@@ -0,0 +1 @@
1
+ var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function s(e){try{u(n.next(e))}catch(e){i(e)}}function o(e){try{u(n["throw"](e))}catch(e){i(e)}}function u(e){e.done?r(e.value):a(e.value).then(s,o)}u((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return u([e,t])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=s[0]&2?a["return"]:s[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;if(a=0,i)s=[s[0]&2,i.value];switch(s[0]){case 0:case 1:i=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(s[0]===6&&r.label<i[1]){r.label=i[1];i=s;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(s);break}if(i[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];a=0}finally{n=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++){if(i||!(n in t)){if(!i)i=Array.prototype.slice.call(t,0,n);i[n]=t[n]}}return e.concat(i||Array.prototype.slice.call(t))};System.register(["./p-2dbc05c6.system.js","./p-54498887.system.js","./p-cbebc039.system.js","./p-4422958b.system.js","./p-169fa979.system.js","./p-ca13070e.system.js","./p-bbee73c8.system.js","./p-11e34f77.system.js","./p-327858f0.system.js","./p-7fd7152d.system.js","./p-dc9c4361.system.js"],(function(e){"use strict";var t,r,n,a,i,s,o,u,c,d,l;return{setters:[function(e){t=e.r;r=e.c;n=e.h;a=e.H},function(){},function(e){i=e.g;s=e.u;o=e.a;u=e.b},function(e){c=e.V},function(e){d=e.d},function(e){l=e.V},function(){},function(){},function(){},function(){},function(){}],execute:function(){var p;(function(e){e.assertEqual=function(e){return e};function t(e){}e.assertIs=t;function r(e){throw new Error}e.assertNever=r;e.arrayToEnum=function(e){var t={};for(var r=0,n=e;r<n.length;r++){var a=n[r];t[a]=a}return t};e.getValidEnumValues=function(t){var r=e.objectKeys(t).filter((function(e){return typeof t[t[e]]!=="number"}));var n={};for(var a=0,i=r;a<i.length;a++){var s=i[a];n[s]=t[s]}return e.objectValues(n)};e.objectValues=function(t){return e.objectKeys(t).map((function(e){return t[e]}))};e.objectKeys=typeof Object.keys==="function"?function(e){return Object.keys(e)}:function(e){var t=[];for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r)){t.push(r)}}return t};e.find=function(e,t){for(var r=0,n=e;r<n.length;r++){var a=n[r];if(t(a))return a}return undefined};e.isInteger=typeof Number.isInteger==="function"?function(e){return Number.isInteger(e)}:function(e){return typeof e==="number"&&isFinite(e)&&Math.floor(e)===e};function n(e,t){if(t===void 0){t=" | "}return e.map((function(e){return typeof e==="string"?"'".concat(e,"'"):e})).join(t)}e.joinValues=n;e.jsonStringifyReplacer=function(e,t){if(typeof t==="bigint"){return t.toString()}return t}})(p||(p={}));var f;(function(e){e.mergeShapes=function(e,t){return __assign(__assign({},e),t)}})(f||(f={}));var h=p.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);var v=function(e){var t=typeof e;switch(t){case"undefined":return h.undefined;case"string":return h.string;case"number":return isNaN(e)?h.nan:h.number;case"boolean":return h.boolean;case"function":return h.function;case"bigint":return h.bigint;case"symbol":return h.symbol;case"object":if(Array.isArray(e)){return h.array}if(e===null){return h.null}if(e.then&&typeof e.then==="function"&&e.catch&&typeof e.catch==="function"){return h.promise}if(typeof Map!=="undefined"&&e instanceof Map){return h.map}if(typeof Set!=="undefined"&&e instanceof Set){return h.set}if(typeof Date!=="undefined"&&e instanceof Date){return h.date}return h.object;default:return h.unknown}};var _=p.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);var m=function(e){var t=JSON.stringify(e,null,2);return t.replace(/"([^"]+)":/g,"$1:")};var y=function(e){__extends(t,e);function t(t){var r=this.constructor;var n=e.call(this)||this;n.issues=[];n.addIssue=function(e){n.issues=__spreadArray(__spreadArray([],n.issues,true),[e],false)};n.addIssues=function(e){if(e===void 0){e=[]}n.issues=__spreadArray(__spreadArray([],n.issues,true),e,true)};var a=r.prototype;if(Object.setPrototypeOf){Object.setPrototypeOf(n,a)}else{n.__proto__=a}n.name="ZodError";n.issues=t;return n}Object.defineProperty(t.prototype,"errors",{get:function(){return this.issues},enumerable:false,configurable:true});t.prototype.format=function(e){var t=e||function(e){return e.message};var r={_errors:[]};var n=function(e){for(var a=0,i=e.issues;a<i.length;a++){var s=i[a];if(s.code==="invalid_union"){s.unionErrors.map(n)}else if(s.code==="invalid_return_type"){n(s.returnTypeError)}else if(s.code==="invalid_arguments"){n(s.argumentsError)}else if(s.path.length===0){r._errors.push(t(s))}else{var o=r;var u=0;while(u<s.path.length){var c=s.path[u];var d=u===s.path.length-1;if(!d){o[c]=o[c]||{_errors:[]}}else{o[c]=o[c]||{_errors:[]};o[c]._errors.push(t(s))}o=o[c];u++}}}};n(this);return r};t.prototype.toString=function(){return this.message};Object.defineProperty(t.prototype,"message",{get:function(){return JSON.stringify(this.issues,p.jsonStringifyReplacer,2)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isEmpty",{get:function(){return this.issues.length===0},enumerable:false,configurable:true});t.prototype.flatten=function(e){if(e===void 0){e=function(e){return e.message}}var t={};var r=[];for(var n=0,a=this.issues;n<a.length;n++){var i=a[n];if(i.path.length>0){t[i.path[0]]=t[i.path[0]]||[];t[i.path[0]].push(e(i))}else{r.push(e(i))}}return{formErrors:r,fieldErrors:t}};Object.defineProperty(t.prototype,"formErrors",{get:function(){return this.flatten()},enumerable:false,configurable:true});return t}(Error);y.create=function(e){var t=new y(e);return t};var g=function(e,t){var r;switch(e.code){case _.invalid_type:if(e.received===h.undefined){r="Required"}else{r="Expected ".concat(e.expected,", received ").concat(e.received)}break;case _.invalid_literal:r="Invalid literal value, expected ".concat(JSON.stringify(e.expected,p.jsonStringifyReplacer));break;case _.unrecognized_keys:r="Unrecognized key(s) in object: ".concat(p.joinValues(e.keys,", "));break;case _.invalid_union:r="Invalid input";break;case _.invalid_union_discriminator:r="Invalid discriminator value. Expected ".concat(p.joinValues(e.options));break;case _.invalid_enum_value:r="Invalid enum value. Expected ".concat(p.joinValues(e.options),", received '").concat(e.received,"'");break;case _.invalid_arguments:r="Invalid function arguments";break;case _.invalid_return_type:r="Invalid function return type";break;case _.invalid_date:r="Invalid date";break;case _.invalid_string:if(typeof e.validation==="object"){if("includes"in e.validation){r='Invalid input: must include "'.concat(e.validation.includes,'"');if(typeof e.validation.position==="number"){r="".concat(r," at one or more positions greater than or equal to ").concat(e.validation.position)}}else if("startsWith"in e.validation){r='Invalid input: must start with "'.concat(e.validation.startsWith,'"')}else if("endsWith"in e.validation){r='Invalid input: must end with "'.concat(e.validation.endsWith,'"')}else{p.assertNever(e.validation)}}else if(e.validation!=="regex"){r="Invalid ".concat(e.validation)}else{r="Invalid"}break;case _.too_small:if(e.type==="array")r="Array must contain ".concat(e.exact?"exactly":e.inclusive?"at least":"more than"," ").concat(e.minimum," element(s)");else if(e.type==="string")r="String must contain ".concat(e.exact?"exactly":e.inclusive?"at least":"over"," ").concat(e.minimum," character(s)");else if(e.type==="number")r="Number must be ".concat(e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than ").concat(e.minimum);else if(e.type==="date")r="Date must be ".concat(e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than ").concat(new Date(Number(e.minimum)));else r="Invalid input";break;case _.too_big:if(e.type==="array")r="Array must contain ".concat(e.exact?"exactly":e.inclusive?"at most":"less than"," ").concat(e.maximum," element(s)");else if(e.type==="string")r="String must contain ".concat(e.exact?"exactly":e.inclusive?"at most":"under"," ").concat(e.maximum," character(s)");else if(e.type==="number")r="Number must be ".concat(e.exact?"exactly":e.inclusive?"less than or equal to":"less than"," ").concat(e.maximum);else if(e.type==="bigint")r="BigInt must be ".concat(e.exact?"exactly":e.inclusive?"less than or equal to":"less than"," ").concat(e.maximum);else if(e.type==="date")r="Date must be ".concat(e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"," ").concat(new Date(Number(e.maximum)));else r="Invalid input";break;case _.custom:r="Invalid input";break;case _.invalid_intersection_types:r="Intersection results could not be merged";break;case _.not_multiple_of:r="Number must be a multiple of ".concat(e.multipleOf);break;case _.not_finite:r="Number must be finite";break;default:r=t.defaultError;p.assertNever(e)}return{message:r}};var b=g;function T(e){b=e}function M(){return b}var x=function(e){var t=e.data,r=e.path,n=e.errorMaps,a=e.issueData;var i=__spreadArray(__spreadArray([],r,true),a.path||[],true);var s=__assign(__assign({},a),{path:i});var o="";var u=n.filter((function(e){return!!e})).slice().reverse();for(var c=0,d=u;c<d.length;c++){var l=d[c];o=l(s,{data:t,defaultError:o}).message}return __assign(__assign({},a),{path:i,message:a.message||o})};var k=[];function G(e,t){var r=x({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,M(),g].filter((function(e){return!!e}))});e.common.issues.push(r)}var w=function(){function e(){this.value="valid"}e.prototype.dirty=function(){if(this.value==="valid")this.value="dirty"};e.prototype.abort=function(){if(this.value!=="aborted")this.value="aborted"};e.mergeArray=function(e,t){var r=[];for(var n=0,a=t;n<a.length;n++){var i=a[n];if(i.status==="aborted")return S;if(i.status==="dirty")e.dirty();r.push(i.value)}return{status:e.value,value:r}};e.mergeObjectAsync=function(t,r){return __awaiter(this,void 0,void 0,(function(){var n,a,i,s,o,u;var c;return __generator(this,(function(d){switch(d.label){case 0:n=[];a=0,i=r;d.label=1;case 1:if(!(a<i.length))return[3,5];s=i[a];u=(o=n).push;c={};return[4,s.key];case 2:c.key=d.sent();return[4,s.value];case 3:u.apply(o,[(c.value=d.sent(),c)]);d.label=4;case 4:a++;return[3,1];case 5:return[2,e.mergeObjectSync(t,n)]}}))}))};e.mergeObjectSync=function(e,t){var r={};for(var n=0,a=t;n<a.length;n++){var i=a[n];var s=i.key,o=i.value;if(s.status==="aborted")return S;if(o.status==="aborted")return S;if(s.status==="dirty")e.dirty();if(o.status==="dirty")e.dirty();if(s.value!=="__proto__"&&(typeof o.value!=="undefined"||i.alwaysSet)){r[s.value]=o.value}}return{status:e.value,value:r}};return e}();var S=Object.freeze({status:"aborted"});var Z=function(e){return{status:"dirty",value:e}};var O=function(e){return{status:"valid",value:e}};var j=function(e){return e.status==="aborted"};var P=function(e){return e.status==="dirty"};var C=function(e){return e.status==="valid"};var A=function(e){return typeof Promise!=="undefined"&&e instanceof Promise};var N;(function(e){e.errToObj=function(e){return typeof e==="string"?{message:e}:e||{}};e.toString=function(e){return typeof e==="string"?e:e===null||e===void 0?void 0:e.message}})(N||(N={}));var E=function(){function e(e,t,r,n){this._cachedPath=[];this.parent=e;this.data=t;this._path=r;this._key=n}Object.defineProperty(e.prototype,"path",{get:function(){var e,t;if(!this._cachedPath.length){if(this._key instanceof Array){(e=this._cachedPath).push.apply(e,__spreadArray(__spreadArray([],this._path,false),this._key,false))}else{(t=this._cachedPath).push.apply(t,__spreadArray(__spreadArray([],this._path,false),[this._key],false))}}return this._cachedPath},enumerable:false,configurable:true});return e}();var I=function(e,t){if(C(t)){return{success:true,data:t.value}}else{if(!e.common.issues.length){throw new Error("Validation failed but no issues detected.")}return{success:false,get error(){if(this._error)return this._error;var t=new y(e.common.issues);this._error=t;return this._error}}}};function R(e){if(!e)return{};var t=e.errorMap,r=e.invalid_type_error,n=e.required_error,a=e.description;if(t&&(r||n)){throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.')}if(t)return{errorMap:t,description:a};var i=function(e,t){if(e.code!=="invalid_type")return{message:t.defaultError};if(typeof t.data==="undefined"){return{message:n!==null&&n!==void 0?n:t.defaultError}}return{message:r!==null&&r!==void 0?r:t.defaultError}};return{errorMap:i,description:a}}var z=function(){function e(e){this.spa=this.safeParseAsync;this._def=e;this.parse=this.parse.bind(this);this.safeParse=this.safeParse.bind(this);this.parseAsync=this.parseAsync.bind(this);this.safeParseAsync=this.safeParseAsync.bind(this);this.spa=this.spa.bind(this);this.refine=this.refine.bind(this);this.refinement=this.refinement.bind(this);this.superRefine=this.superRefine.bind(this);this.optional=this.optional.bind(this);this.nullable=this.nullable.bind(this);this.nullish=this.nullish.bind(this);this.array=this.array.bind(this);this.promise=this.promise.bind(this);this.or=this.or.bind(this);this.and=this.and.bind(this);this.transform=this.transform.bind(this);this.brand=this.brand.bind(this);this.default=this.default.bind(this);this.catch=this.catch.bind(this);this.describe=this.describe.bind(this);this.pipe=this.pipe.bind(this);this.readonly=this.readonly.bind(this);this.isNullable=this.isNullable.bind(this);this.isOptional=this.isOptional.bind(this)}Object.defineProperty(e.prototype,"description",{get:function(){return this._def.description},enumerable:false,configurable:true});e.prototype._getType=function(e){return v(e.data)};e.prototype._getOrReturnCtx=function(e,t){return t||{common:e.parent.common,data:e.data,parsedType:v(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}};e.prototype._processInputParams=function(e){return{status:new w,ctx:{common:e.parent.common,data:e.data,parsedType:v(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}};e.prototype._parseSync=function(e){var t=this._parse(e);if(A(t)){throw new Error("Synchronous parse encountered promise.")}return t};e.prototype._parseAsync=function(e){var t=this._parse(e);return Promise.resolve(t)};e.prototype.parse=function(e,t){var r=this.safeParse(e,t);if(r.success)return r.data;throw r.error};e.prototype.safeParse=function(e,t){var r;var n={common:{issues:[],async:(r=t===null||t===void 0?void 0:t.async)!==null&&r!==void 0?r:false,contextualErrorMap:t===null||t===void 0?void 0:t.errorMap},path:(t===null||t===void 0?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:v(e)};var a=this._parseSync({data:e,path:n.path,parent:n});return I(n,a)};e.prototype.parseAsync=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r;return __generator(this,(function(n){switch(n.label){case 0:return[4,this.safeParseAsync(e,t)];case 1:r=n.sent();if(r.success)return[2,r.data];throw r.error}}))}))};e.prototype.safeParseAsync=function(e,t){return __awaiter(this,void 0,void 0,(function(){var r,n,a;return __generator(this,(function(i){switch(i.label){case 0:r={common:{issues:[],contextualErrorMap:t===null||t===void 0?void 0:t.errorMap,async:true},path:(t===null||t===void 0?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:v(e)};n=this._parse({data:e,path:r.path,parent:r});return[4,A(n)?n:Promise.resolve(n)];case 1:a=i.sent();return[2,I(r,a)]}}))}))};e.prototype.refine=function(e,t){var r=function(e){if(typeof t==="string"||typeof t==="undefined"){return{message:t}}else if(typeof t==="function"){return t(e)}else{return t}};return this._refinement((function(t,n){var a=e(t);var i=function(){return n.addIssue(__assign({code:_.custom},r(t)))};if(typeof Promise!=="undefined"&&a instanceof Promise){return a.then((function(e){if(!e){i();return false}else{return true}}))}if(!a){i();return false}else{return true}}))};e.prototype.refinement=function(e,t){return this._refinement((function(r,n){if(!e(r)){n.addIssue(typeof t==="function"?t(r,n):t);return false}else{return true}}))};e.prototype._refinement=function(e){return new Se({schema:this,typeName:Le.ZodEffects,effect:{type:"refinement",refinement:e}})};e.prototype.superRefine=function(e){return this._refinement(e)};e.prototype.optional=function(){return Ze.create(this,this._def)};e.prototype.nullable=function(){return Oe.create(this,this._def)};e.prototype.nullish=function(){return this.nullable().optional()};e.prototype.array=function(){return ue.create(this,this._def)};e.prototype.promise=function(){return we.create(this,this._def)};e.prototype.or=function(e){return le.create([this,e],this._def)};e.prototype.and=function(e){return ve.create(this,e,this._def)};e.prototype.transform=function(e){return new Se(__assign(__assign({},R(this._def)),{schema:this,typeName:Le.ZodEffects,effect:{type:"transform",transform:e}}))};e.prototype.default=function(e){var t=typeof e==="function"?e:function(){return e};return new je(__assign(__assign({},R(this._def)),{innerType:this,defaultValue:t,typeName:Le.ZodDefault}))};e.prototype.brand=function(){return new Ne(__assign({typeName:Le.ZodBranded,type:this},R(this._def)))};e.prototype.catch=function(e){var t=typeof e==="function"?e:function(){return e};return new Pe(__assign(__assign({},R(this._def)),{innerType:this,catchValue:t,typeName:Le.ZodCatch}))};e.prototype.describe=function(e){var t=this.constructor;return new t(__assign(__assign({},this._def),{description:e}))};e.prototype.pipe=function(e){return Ee.create(this,e)};e.prototype.readonly=function(){return Ie.create(this)};e.prototype.isOptional=function(){return this.safeParse(undefined).success};e.prototype.isNullable=function(){return this.safeParse(null).success};return e}();var L=/^c[^\s-]{8,}$/i;var D=/^[a-z][a-z0-9]*$/;var U=/[0-9A-HJKMNP-TV-Z]{26}/;var B=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i;var F=/^([A-Z0-9_+-]+\.?)*[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;var V=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u;var K=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/;var q=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/;var W=function(e){if(e.precision){if(e.offset){return new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{".concat(e.precision,"}(([+-]\\d{2}(:?\\d{2})?)|Z)$"))}else{return new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{".concat(e.precision,"}Z$"))}}else if(e.precision===0){if(e.offset){return new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$")}else{return new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$")}}else{if(e.offset){return new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$")}else{return new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$")}}};function H(e,t){if((t==="v4"||!t)&&K.test(e)){return true}if((t==="v6"||!t)&&q.test(e)){return true}return false}var $=function(e){__extends(t,e);function t(){var r=e.apply(this,arguments)||this;r._regex=function(e,t,n){return r.refinement((function(t){return e.test(t)}),__assign({validation:t,code:_.invalid_string},N.errToObj(n)))};r.nonempty=function(e){return r.min(1,N.errToObj(e))};r.trim=function(){return new t(__assign(__assign({},r._def),{checks:__spreadArray(__spreadArray([],r._def.checks,true),[{kind:"trim"}],false)}))};r.toLowerCase=function(){return new t(__assign(__assign({},r._def),{checks:__spreadArray(__spreadArray([],r._def.checks,true),[{kind:"toLowerCase"}],false)}))};r.toUpperCase=function(){return new t(__assign(__assign({},r._def),{checks:__spreadArray(__spreadArray([],r._def.checks,true),[{kind:"toUpperCase"}],false)}))};return r}t.prototype._parse=function(e){if(this._def.coerce){e.data=String(e.data)}var t=this._getType(e);if(t!==h.string){var r=this._getOrReturnCtx(e);G(r,{code:_.invalid_type,expected:h.string,received:r.parsedType});return S}var n=new w;var a=undefined;for(var i=0,s=this._def.checks;i<s.length;i++){var o=s[i];if(o.kind==="min"){if(e.data.length<o.value){a=this._getOrReturnCtx(e,a);G(a,{code:_.too_small,minimum:o.value,type:"string",inclusive:true,exact:false,message:o.message});n.dirty()}}else if(o.kind==="max"){if(e.data.length>o.value){a=this._getOrReturnCtx(e,a);G(a,{code:_.too_big,maximum:o.value,type:"string",inclusive:true,exact:false,message:o.message});n.dirty()}}else if(o.kind==="length"){var u=e.data.length>o.value;var c=e.data.length<o.value;if(u||c){a=this._getOrReturnCtx(e,a);if(u){G(a,{code:_.too_big,maximum:o.value,type:"string",inclusive:true,exact:true,message:o.message})}else if(c){G(a,{code:_.too_small,minimum:o.value,type:"string",inclusive:true,exact:true,message:o.message})}n.dirty()}}else if(o.kind==="email"){if(!F.test(e.data)){a=this._getOrReturnCtx(e,a);G(a,{validation:"email",code:_.invalid_string,message:o.message});n.dirty()}}else if(o.kind==="emoji"){if(!V.test(e.data)){a=this._getOrReturnCtx(e,a);G(a,{validation:"emoji",code:_.invalid_string,message:o.message});n.dirty()}}else if(o.kind==="uuid"){if(!B.test(e.data)){a=this._getOrReturnCtx(e,a);G(a,{validation:"uuid",code:_.invalid_string,message:o.message});n.dirty()}}else if(o.kind==="cuid"){if(!L.test(e.data)){a=this._getOrReturnCtx(e,a);G(a,{validation:"cuid",code:_.invalid_string,message:o.message});n.dirty()}}else if(o.kind==="cuid2"){if(!D.test(e.data)){a=this._getOrReturnCtx(e,a);G(a,{validation:"cuid2",code:_.invalid_string,message:o.message});n.dirty()}}else if(o.kind==="ulid"){if(!U.test(e.data)){a=this._getOrReturnCtx(e,a);G(a,{validation:"ulid",code:_.invalid_string,message:o.message});n.dirty()}}else if(o.kind==="url"){try{new URL(e.data)}catch(t){a=this._getOrReturnCtx(e,a);G(a,{validation:"url",code:_.invalid_string,message:o.message});n.dirty()}}else if(o.kind==="regex"){o.regex.lastIndex=0;var d=o.regex.test(e.data);if(!d){a=this._getOrReturnCtx(e,a);G(a,{validation:"regex",code:_.invalid_string,message:o.message});n.dirty()}}else if(o.kind==="trim"){e.data=e.data.trim()}else if(o.kind==="includes"){if(!e.data.includes(o.value,o.position)){a=this._getOrReturnCtx(e,a);G(a,{code:_.invalid_string,validation:{includes:o.value,position:o.position},message:o.message});n.dirty()}}else if(o.kind==="toLowerCase"){e.data=e.data.toLowerCase()}else if(o.kind==="toUpperCase"){e.data=e.data.toUpperCase()}else if(o.kind==="startsWith"){if(!e.data.startsWith(o.value)){a=this._getOrReturnCtx(e,a);G(a,{code:_.invalid_string,validation:{startsWith:o.value},message:o.message});n.dirty()}}else if(o.kind==="endsWith"){if(!e.data.endsWith(o.value)){a=this._getOrReturnCtx(e,a);G(a,{code:_.invalid_string,validation:{endsWith:o.value},message:o.message});n.dirty()}}else if(o.kind==="datetime"){var l=W(o);if(!l.test(e.data)){a=this._getOrReturnCtx(e,a);G(a,{code:_.invalid_string,validation:"datetime",message:o.message});n.dirty()}}else if(o.kind==="ip"){if(!H(e.data,o.version)){a=this._getOrReturnCtx(e,a);G(a,{validation:"ip",code:_.invalid_string,message:o.message});n.dirty()}}else{p.assertNever(o)}}return{status:n.value,value:e.data}};t.prototype._addCheck=function(e){return new t(__assign(__assign({},this._def),{checks:__spreadArray(__spreadArray([],this._def.checks,true),[e],false)}))};t.prototype.email=function(e){return this._addCheck(__assign({kind:"email"},N.errToObj(e)))};t.prototype.url=function(e){return this._addCheck(__assign({kind:"url"},N.errToObj(e)))};t.prototype.emoji=function(e){return this._addCheck(__assign({kind:"emoji"},N.errToObj(e)))};t.prototype.uuid=function(e){return this._addCheck(__assign({kind:"uuid"},N.errToObj(e)))};t.prototype.cuid=function(e){return this._addCheck(__assign({kind:"cuid"},N.errToObj(e)))};t.prototype.cuid2=function(e){return this._addCheck(__assign({kind:"cuid2"},N.errToObj(e)))};t.prototype.ulid=function(e){return this._addCheck(__assign({kind:"ulid"},N.errToObj(e)))};t.prototype.ip=function(e){return this._addCheck(__assign({kind:"ip"},N.errToObj(e)))};t.prototype.datetime=function(e){var t;if(typeof e==="string"){return this._addCheck({kind:"datetime",precision:null,offset:false,message:e})}return this._addCheck(__assign({kind:"datetime",precision:typeof(e===null||e===void 0?void 0:e.precision)==="undefined"?null:e===null||e===void 0?void 0:e.precision,offset:(t=e===null||e===void 0?void 0:e.offset)!==null&&t!==void 0?t:false},N.errToObj(e===null||e===void 0?void 0:e.message)))};t.prototype.regex=function(e,t){return this._addCheck(__assign({kind:"regex",regex:e},N.errToObj(t)))};t.prototype.includes=function(e,t){return this._addCheck(__assign({kind:"includes",value:e,position:t===null||t===void 0?void 0:t.position},N.errToObj(t===null||t===void 0?void 0:t.message)))};t.prototype.startsWith=function(e,t){return this._addCheck(__assign({kind:"startsWith",value:e},N.errToObj(t)))};t.prototype.endsWith=function(e,t){return this._addCheck(__assign({kind:"endsWith",value:e},N.errToObj(t)))};t.prototype.min=function(e,t){return this._addCheck(__assign({kind:"min",value:e},N.errToObj(t)))};t.prototype.max=function(e,t){return this._addCheck(__assign({kind:"max",value:e},N.errToObj(t)))};t.prototype.length=function(e,t){return this._addCheck(__assign({kind:"length",value:e},N.errToObj(t)))};Object.defineProperty(t.prototype,"isDatetime",{get:function(){return!!this._def.checks.find((function(e){return e.kind==="datetime"}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isEmail",{get:function(){return!!this._def.checks.find((function(e){return e.kind==="email"}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isURL",{get:function(){return!!this._def.checks.find((function(e){return e.kind==="url"}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isEmoji",{get:function(){return!!this._def.checks.find((function(e){return e.kind==="emoji"}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isUUID",{get:function(){return!!this._def.checks.find((function(e){return e.kind==="uuid"}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isCUID",{get:function(){return!!this._def.checks.find((function(e){return e.kind==="cuid"}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isCUID2",{get:function(){return!!this._def.checks.find((function(e){return e.kind==="cuid2"}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isULID",{get:function(){return!!this._def.checks.find((function(e){return e.kind==="ulid"}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isIP",{get:function(){return!!this._def.checks.find((function(e){return e.kind==="ip"}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"minLength",{get:function(){var e=null;for(var t=0,r=this._def.checks;t<r.length;t++){var n=r[t];if(n.kind==="min"){if(e===null||n.value>e)e=n.value}}return e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"maxLength",{get:function(){var e=null;for(var t=0,r=this._def.checks;t<r.length;t++){var n=r[t];if(n.kind==="max"){if(e===null||n.value<e)e=n.value}}return e},enumerable:false,configurable:true});return t}(z);$.create=function(e){var t;return new $(__assign({checks:[],typeName:Le.ZodString,coerce:(t=e===null||e===void 0?void 0:e.coerce)!==null&&t!==void 0?t:false},R(e)))};function J(e,t){var r=(e.toString().split(".")[1]||"").length;var n=(t.toString().split(".")[1]||"").length;var a=r>n?r:n;var i=parseInt(e.toFixed(a).replace(".",""));var s=parseInt(t.toFixed(a).replace(".",""));return i%s/Math.pow(10,a)}var Y=function(e){__extends(t,e);function t(){var t=e.apply(this,arguments)||this;t.min=t.gte;t.max=t.lte;t.step=t.multipleOf;return t}t.prototype._parse=function(e){if(this._def.coerce){e.data=Number(e.data)}var t=this._getType(e);if(t!==h.number){var r=this._getOrReturnCtx(e);G(r,{code:_.invalid_type,expected:h.number,received:r.parsedType});return S}var n=undefined;var a=new w;for(var i=0,s=this._def.checks;i<s.length;i++){var o=s[i];if(o.kind==="int"){if(!p.isInteger(e.data)){n=this._getOrReturnCtx(e,n);G(n,{code:_.invalid_type,expected:"integer",received:"float",message:o.message});a.dirty()}}else if(o.kind==="min"){var u=o.inclusive?e.data<o.value:e.data<=o.value;if(u){n=this._getOrReturnCtx(e,n);G(n,{code:_.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:false,message:o.message});a.dirty()}}else if(o.kind==="max"){var c=o.inclusive?e.data>o.value:e.data>=o.value;if(c){n=this._getOrReturnCtx(e,n);G(n,{code:_.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:false,message:o.message});a.dirty()}}else if(o.kind==="multipleOf"){if(J(e.data,o.value)!==0){n=this._getOrReturnCtx(e,n);G(n,{code:_.not_multiple_of,multipleOf:o.value,message:o.message});a.dirty()}}else if(o.kind==="finite"){if(!Number.isFinite(e.data)){n=this._getOrReturnCtx(e,n);G(n,{code:_.not_finite,message:o.message});a.dirty()}}else{p.assertNever(o)}}return{status:a.value,value:e.data}};t.prototype.gte=function(e,t){return this.setLimit("min",e,true,N.toString(t))};t.prototype.gt=function(e,t){return this.setLimit("min",e,false,N.toString(t))};t.prototype.lte=function(e,t){return this.setLimit("max",e,true,N.toString(t))};t.prototype.lt=function(e,t){return this.setLimit("max",e,false,N.toString(t))};t.prototype.setLimit=function(e,r,n,a){return new t(__assign(__assign({},this._def),{checks:__spreadArray(__spreadArray([],this._def.checks,true),[{kind:e,value:r,inclusive:n,message:N.toString(a)}],false)}))};t.prototype._addCheck=function(e){return new t(__assign(__assign({},this._def),{checks:__spreadArray(__spreadArray([],this._def.checks,true),[e],false)}))};t.prototype.int=function(e){return this._addCheck({kind:"int",message:N.toString(e)})};t.prototype.positive=function(e){return this._addCheck({kind:"min",value:0,inclusive:false,message:N.toString(e)})};t.prototype.negative=function(e){return this._addCheck({kind:"max",value:0,inclusive:false,message:N.toString(e)})};t.prototype.nonpositive=function(e){return this._addCheck({kind:"max",value:0,inclusive:true,message:N.toString(e)})};t.prototype.nonnegative=function(e){return this._addCheck({kind:"min",value:0,inclusive:true,message:N.toString(e)})};t.prototype.multipleOf=function(e,t){return this._addCheck({kind:"multipleOf",value:e,message:N.toString(t)})};t.prototype.finite=function(e){return this._addCheck({kind:"finite",message:N.toString(e)})};t.prototype.safe=function(e){return this._addCheck({kind:"min",inclusive:true,value:Number.MIN_SAFE_INTEGER,message:N.toString(e)})._addCheck({kind:"max",inclusive:true,value:Number.MAX_SAFE_INTEGER,message:N.toString(e)})};Object.defineProperty(t.prototype,"minValue",{get:function(){var e=null;for(var t=0,r=this._def.checks;t<r.length;t++){var n=r[t];if(n.kind==="min"){if(e===null||n.value>e)e=n.value}}return e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"maxValue",{get:function(){var e=null;for(var t=0,r=this._def.checks;t<r.length;t++){var n=r[t];if(n.kind==="max"){if(e===null||n.value<e)e=n.value}}return e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isInt",{get:function(){return!!this._def.checks.find((function(e){return e.kind==="int"||e.kind==="multipleOf"&&p.isInteger(e.value)}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isFinite",{get:function(){var e=null,t=null;for(var r=0,n=this._def.checks;r<n.length;r++){var a=n[r];if(a.kind==="finite"||a.kind==="int"||a.kind==="multipleOf"){return true}else if(a.kind==="min"){if(t===null||a.value>t)t=a.value}else if(a.kind==="max"){if(e===null||a.value<e)e=a.value}}return Number.isFinite(t)&&Number.isFinite(e)},enumerable:false,configurable:true});return t}(z);Y.create=function(e){return new Y(__assign({checks:[],typeName:Le.ZodNumber,coerce:(e===null||e===void 0?void 0:e.coerce)||false},R(e)))};var Q=function(e){__extends(t,e);function t(){var t=e.apply(this,arguments)||this;t.min=t.gte;t.max=t.lte;return t}t.prototype._parse=function(e){if(this._def.coerce){e.data=BigInt(e.data)}var t=this._getType(e);if(t!==h.bigint){var r=this._getOrReturnCtx(e);G(r,{code:_.invalid_type,expected:h.bigint,received:r.parsedType});return S}var n=undefined;var a=new w;for(var i=0,s=this._def.checks;i<s.length;i++){var o=s[i];if(o.kind==="min"){var u=o.inclusive?e.data<o.value:e.data<=o.value;if(u){n=this._getOrReturnCtx(e,n);G(n,{code:_.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message});a.dirty()}}else if(o.kind==="max"){var c=o.inclusive?e.data>o.value:e.data>=o.value;if(c){n=this._getOrReturnCtx(e,n);G(n,{code:_.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message});a.dirty()}}else if(o.kind==="multipleOf"){if(e.data%o.value!==BigInt(0)){n=this._getOrReturnCtx(e,n);G(n,{code:_.not_multiple_of,multipleOf:o.value,message:o.message});a.dirty()}}else{p.assertNever(o)}}return{status:a.value,value:e.data}};t.prototype.gte=function(e,t){return this.setLimit("min",e,true,N.toString(t))};t.prototype.gt=function(e,t){return this.setLimit("min",e,false,N.toString(t))};t.prototype.lte=function(e,t){return this.setLimit("max",e,true,N.toString(t))};t.prototype.lt=function(e,t){return this.setLimit("max",e,false,N.toString(t))};t.prototype.setLimit=function(e,r,n,a){return new t(__assign(__assign({},this._def),{checks:__spreadArray(__spreadArray([],this._def.checks,true),[{kind:e,value:r,inclusive:n,message:N.toString(a)}],false)}))};t.prototype._addCheck=function(e){return new t(__assign(__assign({},this._def),{checks:__spreadArray(__spreadArray([],this._def.checks,true),[e],false)}))};t.prototype.positive=function(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:false,message:N.toString(e)})};t.prototype.negative=function(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:false,message:N.toString(e)})};t.prototype.nonpositive=function(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:true,message:N.toString(e)})};t.prototype.nonnegative=function(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:true,message:N.toString(e)})};t.prototype.multipleOf=function(e,t){return this._addCheck({kind:"multipleOf",value:e,message:N.toString(t)})};Object.defineProperty(t.prototype,"minValue",{get:function(){var e=null;for(var t=0,r=this._def.checks;t<r.length;t++){var n=r[t];if(n.kind==="min"){if(e===null||n.value>e)e=n.value}}return e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"maxValue",{get:function(){var e=null;for(var t=0,r=this._def.checks;t<r.length;t++){var n=r[t];if(n.kind==="max"){if(e===null||n.value<e)e=n.value}}return e},enumerable:false,configurable:true});return t}(z);Q.create=function(e){var t;return new Q(__assign({checks:[],typeName:Le.ZodBigInt,coerce:(t=e===null||e===void 0?void 0:e.coerce)!==null&&t!==void 0?t:false},R(e)))};var X=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){if(this._def.coerce){e.data=Boolean(e.data)}var t=this._getType(e);if(t!==h.boolean){var r=this._getOrReturnCtx(e);G(r,{code:_.invalid_type,expected:h.boolean,received:r.parsedType});return S}return O(e.data)};return t}(z);X.create=function(e){return new X(__assign({typeName:Le.ZodBoolean,coerce:(e===null||e===void 0?void 0:e.coerce)||false},R(e)))};var ee=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){if(this._def.coerce){e.data=new Date(e.data)}var t=this._getType(e);if(t!==h.date){var r=this._getOrReturnCtx(e);G(r,{code:_.invalid_type,expected:h.date,received:r.parsedType});return S}if(isNaN(e.data.getTime())){var n=this._getOrReturnCtx(e);G(n,{code:_.invalid_date});return S}var a=new w;var i=undefined;for(var s=0,o=this._def.checks;s<o.length;s++){var u=o[s];if(u.kind==="min"){if(e.data.getTime()<u.value){i=this._getOrReturnCtx(e,i);G(i,{code:_.too_small,message:u.message,inclusive:true,exact:false,minimum:u.value,type:"date"});a.dirty()}}else if(u.kind==="max"){if(e.data.getTime()>u.value){i=this._getOrReturnCtx(e,i);G(i,{code:_.too_big,message:u.message,inclusive:true,exact:false,maximum:u.value,type:"date"});a.dirty()}}else{p.assertNever(u)}}return{status:a.value,value:new Date(e.data.getTime())}};t.prototype._addCheck=function(e){return new t(__assign(__assign({},this._def),{checks:__spreadArray(__spreadArray([],this._def.checks,true),[e],false)}))};t.prototype.min=function(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:N.toString(t)})};t.prototype.max=function(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:N.toString(t)})};Object.defineProperty(t.prototype,"minDate",{get:function(){var e=null;for(var t=0,r=this._def.checks;t<r.length;t++){var n=r[t];if(n.kind==="min"){if(e===null||n.value>e)e=n.value}}return e!=null?new Date(e):null},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"maxDate",{get:function(){var e=null;for(var t=0,r=this._def.checks;t<r.length;t++){var n=r[t];if(n.kind==="max"){if(e===null||n.value<e)e=n.value}}return e!=null?new Date(e):null},enumerable:false,configurable:true});return t}(z);ee.create=function(e){return new ee(__assign({checks:[],coerce:(e===null||e===void 0?void 0:e.coerce)||false,typeName:Le.ZodDate},R(e)))};var te=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._getType(e);if(t!==h.symbol){var r=this._getOrReturnCtx(e);G(r,{code:_.invalid_type,expected:h.symbol,received:r.parsedType});return S}return O(e.data)};return t}(z);te.create=function(e){return new te(__assign({typeName:Le.ZodSymbol},R(e)))};var re=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._getType(e);if(t!==h.undefined){var r=this._getOrReturnCtx(e);G(r,{code:_.invalid_type,expected:h.undefined,received:r.parsedType});return S}return O(e.data)};return t}(z);re.create=function(e){return new re(__assign({typeName:Le.ZodUndefined},R(e)))};var ne=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._getType(e);if(t!==h.null){var r=this._getOrReturnCtx(e);G(r,{code:_.invalid_type,expected:h.null,received:r.parsedType});return S}return O(e.data)};return t}(z);ne.create=function(e){return new ne(__assign({typeName:Le.ZodNull},R(e)))};var ae=function(e){__extends(t,e);function t(){var t=e.apply(this,arguments)||this;t._any=true;return t}t.prototype._parse=function(e){return O(e.data)};return t}(z);ae.create=function(e){return new ae(__assign({typeName:Le.ZodAny},R(e)))};var ie=function(e){__extends(t,e);function t(){var t=e.apply(this,arguments)||this;t._unknown=true;return t}t.prototype._parse=function(e){return O(e.data)};return t}(z);ie.create=function(e){return new ie(__assign({typeName:Le.ZodUnknown},R(e)))};var se=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._getOrReturnCtx(e);G(t,{code:_.invalid_type,expected:h.never,received:t.parsedType});return S};return t}(z);se.create=function(e){return new se(__assign({typeName:Le.ZodNever},R(e)))};var oe=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._getType(e);if(t!==h.undefined){var r=this._getOrReturnCtx(e);G(r,{code:_.invalid_type,expected:h.void,received:r.parsedType});return S}return O(e.data)};return t}(z);oe.create=function(e){return new oe(__assign({typeName:Le.ZodVoid},R(e)))};var ue=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._processInputParams(e),r=t.ctx,n=t.status;var a=this._def;if(r.parsedType!==h.array){G(r,{code:_.invalid_type,expected:h.array,received:r.parsedType});return S}if(a.exactLength!==null){var i=r.data.length>a.exactLength.value;var s=r.data.length<a.exactLength.value;if(i||s){G(r,{code:i?_.too_big:_.too_small,minimum:s?a.exactLength.value:undefined,maximum:i?a.exactLength.value:undefined,type:"array",inclusive:true,exact:true,message:a.exactLength.message});n.dirty()}}if(a.minLength!==null){if(r.data.length<a.minLength.value){G(r,{code:_.too_small,minimum:a.minLength.value,type:"array",inclusive:true,exact:false,message:a.minLength.message});n.dirty()}}if(a.maxLength!==null){if(r.data.length>a.maxLength.value){G(r,{code:_.too_big,maximum:a.maxLength.value,type:"array",inclusive:true,exact:false,message:a.maxLength.message});n.dirty()}}if(r.common.async){return Promise.all(__spreadArray([],r.data,true).map((function(e,t){return a.type._parseAsync(new E(r,e,r.path,t))}))).then((function(e){return w.mergeArray(n,e)}))}var o=__spreadArray([],r.data,true).map((function(e,t){return a.type._parseSync(new E(r,e,r.path,t))}));return w.mergeArray(n,o)};Object.defineProperty(t.prototype,"element",{get:function(){return this._def.type},enumerable:false,configurable:true});t.prototype.min=function(e,r){return new t(__assign(__assign({},this._def),{minLength:{value:e,message:N.toString(r)}}))};t.prototype.max=function(e,r){return new t(__assign(__assign({},this._def),{maxLength:{value:e,message:N.toString(r)}}))};t.prototype.length=function(e,r){return new t(__assign(__assign({},this._def),{exactLength:{value:e,message:N.toString(r)}}))};t.prototype.nonempty=function(e){return this.min(1,e)};return t}(z);ue.create=function(e,t){return new ue(__assign({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Le.ZodArray},R(t)))};function ce(e){if(e instanceof de){var t={};for(var r in e.shape){var n=e.shape[r];t[r]=Ze.create(ce(n))}return new de(__assign(__assign({},e._def),{shape:function(){return t}}))}else if(e instanceof ue){return new ue(__assign(__assign({},e._def),{type:ce(e.element)}))}else if(e instanceof Ze){return Ze.create(ce(e.unwrap()))}else if(e instanceof Oe){return Oe.create(ce(e.unwrap()))}else if(e instanceof _e){return _e.create(e.items.map((function(e){return ce(e)})))}else{return e}}var de=function(e){__extends(t,e);function t(){var t=e.apply(this,arguments)||this;t._cached=null;t.nonstrict=t.passthrough;t.augment=t.extend;return t}t.prototype._getCached=function(){if(this._cached!==null)return this._cached;var e=this._def.shape();var t=p.objectKeys(e);return this._cached={shape:e,keys:t}};t.prototype._parse=function(e){var t=this;var r=this._getType(e);if(r!==h.object){var n=this._getOrReturnCtx(e);G(n,{code:_.invalid_type,expected:h.object,received:n.parsedType});return S}var a=this._processInputParams(e),i=a.status,s=a.ctx;var o=this._getCached(),u=o.shape,c=o.keys;var d=[];if(!(this._def.catchall instanceof se&&this._def.unknownKeys==="strip")){for(var l in s.data){if(!c.includes(l)){d.push(l)}}}var p=[];for(var f=0,v=c;f<v.length;f++){var l=v[f];var m=u[l];var y=s.data[l];p.push({key:{status:"valid",value:l},value:m._parse(new E(s,y,s.path,l)),alwaysSet:l in s.data})}if(this._def.catchall instanceof se){var g=this._def.unknownKeys;if(g==="passthrough"){for(var b=0,T=d;b<T.length;b++){var l=T[b];p.push({key:{status:"valid",value:l},value:{status:"valid",value:s.data[l]}})}}else if(g==="strict"){if(d.length>0){G(s,{code:_.unrecognized_keys,keys:d});i.dirty()}}else if(g==="strip");else{throw new Error("Internal ZodObject error: invalid unknownKeys value.")}}else{var M=this._def.catchall;for(var x=0,k=d;x<k.length;x++){var l=k[x];var y=s.data[l];p.push({key:{status:"valid",value:l},value:M._parse(new E(s,y,s.path,l)),alwaysSet:l in s.data})}}if(s.common.async){return Promise.resolve().then((function(){return __awaiter(t,void 0,void 0,(function(){var e,t,r,n,a,i,s;var o;return __generator(this,(function(u){switch(u.label){case 0:e=[];t=0,r=p;u.label=1;case 1:if(!(t<r.length))return[3,5];n=r[t];return[4,n.key];case 2:a=u.sent();s=(i=e).push;o={key:a};return[4,n.value];case 3:s.apply(i,[(o.value=u.sent(),o.alwaysSet=n.alwaysSet,o)]);u.label=4;case 4:t++;return[3,1];case 5:return[2,e]}}))}))})).then((function(e){return w.mergeObjectSync(i,e)}))}else{return w.mergeObjectSync(i,p)}};Object.defineProperty(t.prototype,"shape",{get:function(){return this._def.shape()},enumerable:false,configurable:true});t.prototype.strict=function(e){var r=this;return new t(__assign(__assign(__assign({},this._def),{unknownKeys:"strict"}),e!==undefined?{errorMap:function(t,n){var a,i,s,o;var u=(s=(i=(a=r._def).errorMap)===null||i===void 0?void 0:i.call(a,t,n).message)!==null&&s!==void 0?s:n.defaultError;if(t.code==="unrecognized_keys")return{message:(o=N.errToObj(e).message)!==null&&o!==void 0?o:u};return{message:u}}}:{}))};t.prototype.strip=function(){return new t(__assign(__assign({},this._def),{unknownKeys:"strip"}))};t.prototype.passthrough=function(){return new t(__assign(__assign({},this._def),{unknownKeys:"passthrough"}))};t.prototype.extend=function(e){var r=this;return new t(__assign(__assign({},this._def),{shape:function(){return __assign(__assign({},r._def.shape()),e)}}))};t.prototype.merge=function(e){var r=this;var n=new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:function(){return __assign(__assign({},r._def.shape()),e._def.shape())},typeName:Le.ZodObject});return n};t.prototype.setKey=function(e,t){var r;return this.augment((r={},r[e]=t,r))};t.prototype.catchall=function(e){return new t(__assign(__assign({},this._def),{catchall:e}))};t.prototype.pick=function(e){var r=this;var n={};p.objectKeys(e).forEach((function(t){if(e[t]&&r.shape[t]){n[t]=r.shape[t]}}));return new t(__assign(__assign({},this._def),{shape:function(){return n}}))};t.prototype.omit=function(e){var r=this;var n={};p.objectKeys(this.shape).forEach((function(t){if(!e[t]){n[t]=r.shape[t]}}));return new t(__assign(__assign({},this._def),{shape:function(){return n}}))};t.prototype.deepPartial=function(){return ce(this)};t.prototype.partial=function(e){var r=this;var n={};p.objectKeys(this.shape).forEach((function(t){var a=r.shape[t];if(e&&!e[t]){n[t]=a}else{n[t]=a.optional()}}));return new t(__assign(__assign({},this._def),{shape:function(){return n}}))};t.prototype.required=function(e){var r=this;var n={};p.objectKeys(this.shape).forEach((function(t){if(e&&!e[t]){n[t]=r.shape[t]}else{var a=r.shape[t];var i=a;while(i instanceof Ze){i=i._def.innerType}n[t]=i}}));return new t(__assign(__assign({},this._def),{shape:function(){return n}}))};t.prototype.keyof=function(){return xe(p.objectKeys(this.shape))};return t}(z);de.create=function(e,t){return new de(__assign({shape:function(){return e},unknownKeys:"strip",catchall:se.create(),typeName:Le.ZodObject},R(t)))};de.strictCreate=function(e,t){return new de(__assign({shape:function(){return e},unknownKeys:"strict",catchall:se.create(),typeName:Le.ZodObject},R(t)))};de.lazycreate=function(e,t){return new de(__assign({shape:e,unknownKeys:"strip",catchall:se.create(),typeName:Le.ZodObject},R(t)))};var le=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t;var r=this;var n=this._processInputParams(e).ctx;var a=this._def.options;function i(e){var t;for(var r=0,a=e;r<a.length;r++){var i=a[r];if(i.result.status==="valid"){return i.result}}for(var s=0,o=e;s<o.length;s++){var i=o[s];if(i.result.status==="dirty"){(t=n.common.issues).push.apply(t,i.ctx.common.issues);return i.result}}var u=e.map((function(e){return new y(e.ctx.common.issues)}));G(n,{code:_.invalid_union,unionErrors:u});return S}if(n.common.async){return Promise.all(a.map((function(e){return __awaiter(r,void 0,void 0,(function(){var t;var r;return __generator(this,(function(a){switch(a.label){case 0:t=__assign(__assign({},n),{common:__assign(__assign({},n.common),{issues:[]}),parent:null});r={};return[4,e._parseAsync({data:n.data,path:n.path,parent:t})];case 1:return[2,(r.result=a.sent(),r.ctx=t,r)]}}))}))}))).then(i)}else{var s=undefined;var o=[];for(var u=0,c=a;u<c.length;u++){var d=c[u];var l=__assign(__assign({},n),{common:__assign(__assign({},n.common),{issues:[]}),parent:null});var p=d._parseSync({data:n.data,path:n.path,parent:l});if(p.status==="valid"){return p}else if(p.status==="dirty"&&!s){s={result:p,ctx:l}}if(l.common.issues.length){o.push(l.common.issues)}}if(s){(t=n.common.issues).push.apply(t,s.ctx.common.issues);return s.result}var f=o.map((function(e){return new y(e)}));G(n,{code:_.invalid_union,unionErrors:f});return S}};Object.defineProperty(t.prototype,"options",{get:function(){return this._def.options},enumerable:false,configurable:true});return t}(z);le.create=function(e,t){return new le(__assign({options:e,typeName:Le.ZodUnion},R(t)))};var pe=function(e){if(e instanceof Te){return pe(e.schema)}else if(e instanceof Se){return pe(e.innerType())}else if(e instanceof Me){return[e.value]}else if(e instanceof ke){return e.options}else if(e instanceof Ge){return Object.keys(e.enum)}else if(e instanceof je){return pe(e._def.innerType)}else if(e instanceof re){return[undefined]}else if(e instanceof ne){return[null]}else{return null}};var fe=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._processInputParams(e).ctx;if(t.parsedType!==h.object){G(t,{code:_.invalid_type,expected:h.object,received:t.parsedType});return S}var r=this.discriminator;var n=t.data[r];var a=this.optionsMap.get(n);if(!a){G(t,{code:_.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]});return S}if(t.common.async){return a._parseAsync({data:t.data,path:t.path,parent:t})}else{return a._parseSync({data:t.data,path:t.path,parent:t})}};Object.defineProperty(t.prototype,"discriminator",{get:function(){return this._def.discriminator},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"options",{get:function(){return this._def.options},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"optionsMap",{get:function(){return this._def.optionsMap},enumerable:false,configurable:true});t.create=function(e,r,n){var a=new Map;for(var i=0,s=r;i<s.length;i++){var o=s[i];var u=pe(o.shape[e]);if(!u){throw new Error("A discriminator value for key `".concat(e,"` could not be extracted from all schema options"))}for(var c=0,d=u;c<d.length;c++){var l=d[c];if(a.has(l)){throw new Error("Discriminator property ".concat(String(e)," has duplicate value ").concat(String(l)))}a.set(l,o)}}return new t(__assign({typeName:Le.ZodDiscriminatedUnion,discriminator:e,options:r,optionsMap:a},R(n)))};return t}(z);function he(e,t){var r=v(e);var n=v(t);if(e===t){return{valid:true,data:e}}else if(r===h.object&&n===h.object){var a=p.objectKeys(t);var i=p.objectKeys(e).filter((function(e){return a.indexOf(e)!==-1}));var s=__assign(__assign({},e),t);for(var o=0,u=i;o<u.length;o++){var c=u[o];var d=he(e[c],t[c]);if(!d.valid){return{valid:false}}s[c]=d.data}return{valid:true,data:s}}else if(r===h.array&&n===h.array){if(e.length!==t.length){return{valid:false}}var l=[];for(var f=0;f<e.length;f++){var _=e[f];var m=t[f];var d=he(_,m);if(!d.valid){return{valid:false}}l.push(d.data)}return{valid:true,data:l}}else if(r===h.date&&n===h.date&&+e===+t){return{valid:true,data:e}}else{return{valid:false}}}var ve=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._processInputParams(e),r=t.status,n=t.ctx;var a=function(e,t){if(j(e)||j(t)){return S}var a=he(e.value,t.value);if(!a.valid){G(n,{code:_.invalid_intersection_types});return S}if(P(e)||P(t)){r.dirty()}return{status:r.value,value:a.data}};if(n.common.async){return Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then((function(e){var t=e[0],r=e[1];return a(t,r)}))}else{return a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};return t}(z);ve.create=function(e,t,r){return new ve(__assign({left:e,right:t,typeName:Le.ZodIntersection},R(r)))};var _e=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this;var r=this._processInputParams(e),n=r.status,a=r.ctx;if(a.parsedType!==h.array){G(a,{code:_.invalid_type,expected:h.array,received:a.parsedType});return S}if(a.data.length<this._def.items.length){G(a,{code:_.too_small,minimum:this._def.items.length,inclusive:true,exact:false,type:"array"});return S}var i=this._def.rest;if(!i&&a.data.length>this._def.items.length){G(a,{code:_.too_big,maximum:this._def.items.length,inclusive:true,exact:false,type:"array"});n.dirty()}var s=__spreadArray([],a.data,true).map((function(e,r){var n=t._def.items[r]||t._def.rest;if(!n)return null;return n._parse(new E(a,e,a.path,r))})).filter((function(e){return!!e}));if(a.common.async){return Promise.all(s).then((function(e){return w.mergeArray(n,e)}))}else{return w.mergeArray(n,s)}};Object.defineProperty(t.prototype,"items",{get:function(){return this._def.items},enumerable:false,configurable:true});t.prototype.rest=function(e){return new t(__assign(__assign({},this._def),{rest:e}))};return t}(z);_e.create=function(e,t){if(!Array.isArray(e)){throw new Error("You must pass an array of schemas to z.tuple([ ... ])")}return new _e(__assign({items:e,typeName:Le.ZodTuple,rest:null},R(t)))};var me=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(t.prototype,"keySchema",{get:function(){return this._def.keyType},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"valueSchema",{get:function(){return this._def.valueType},enumerable:false,configurable:true});t.prototype._parse=function(e){var t=this._processInputParams(e),r=t.status,n=t.ctx;if(n.parsedType!==h.object){G(n,{code:_.invalid_type,expected:h.object,received:n.parsedType});return S}var a=[];var i=this._def.keyType;var s=this._def.valueType;for(var o in n.data){a.push({key:i._parse(new E(n,o,n.path,o)),value:s._parse(new E(n,n.data[o],n.path,o))})}if(n.common.async){return w.mergeObjectAsync(r,a)}else{return w.mergeObjectSync(r,a)}};Object.defineProperty(t.prototype,"element",{get:function(){return this._def.valueType},enumerable:false,configurable:true});t.create=function(e,r,n){if(r instanceof z){return new t(__assign({keyType:e,valueType:r,typeName:Le.ZodRecord},R(n)))}return new t(__assign({keyType:$.create(),valueType:e,typeName:Le.ZodRecord},R(r)))};return t}(z);var ye=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(t.prototype,"keySchema",{get:function(){return this._def.keyType},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"valueSchema",{get:function(){return this._def.valueType},enumerable:false,configurable:true});t.prototype._parse=function(e){var t=this;var r=this._processInputParams(e),n=r.status,a=r.ctx;if(a.parsedType!==h.map){G(a,{code:_.invalid_type,expected:h.map,received:a.parsedType});return S}var i=this._def.keyType;var s=this._def.valueType;var o=__spreadArray([],a.data.entries(),true).map((function(e,t){var r=e[0],n=e[1];return{key:i._parse(new E(a,r,a.path,[t,"key"])),value:s._parse(new E(a,n,a.path,[t,"value"]))}}));if(a.common.async){var u=new Map;return Promise.resolve().then((function(){return __awaiter(t,void 0,void 0,(function(){var e,t,r,a,i;return __generator(this,(function(s){switch(s.label){case 0:e=0,t=o;s.label=1;case 1:if(!(e<t.length))return[3,5];r=t[e];return[4,r.key];case 2:a=s.sent();return[4,r.value];case 3:i=s.sent();if(a.status==="aborted"||i.status==="aborted"){return[2,S]}if(a.status==="dirty"||i.status==="dirty"){n.dirty()}u.set(a.value,i.value);s.label=4;case 4:e++;return[3,1];case 5:return[2,{status:n.value,value:u}]}}))}))}))}else{var c=new Map;for(var d=0,l=o;d<l.length;d++){var p=l[d];var f=p.key;var v=p.value;if(f.status==="aborted"||v.status==="aborted"){return S}if(f.status==="dirty"||v.status==="dirty"){n.dirty()}c.set(f.value,v.value)}return{status:n.value,value:c}}};return t}(z);ye.create=function(e,t,r){return new ye(__assign({valueType:t,keyType:e,typeName:Le.ZodMap},R(r)))};var ge=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._processInputParams(e),r=t.status,n=t.ctx;if(n.parsedType!==h.set){G(n,{code:_.invalid_type,expected:h.set,received:n.parsedType});return S}var a=this._def;if(a.minSize!==null){if(n.data.size<a.minSize.value){G(n,{code:_.too_small,minimum:a.minSize.value,type:"set",inclusive:true,exact:false,message:a.minSize.message});r.dirty()}}if(a.maxSize!==null){if(n.data.size>a.maxSize.value){G(n,{code:_.too_big,maximum:a.maxSize.value,type:"set",inclusive:true,exact:false,message:a.maxSize.message});r.dirty()}}var i=this._def.valueType;function s(e){var t=new Set;for(var n=0,a=e;n<a.length;n++){var i=a[n];if(i.status==="aborted")return S;if(i.status==="dirty")r.dirty();t.add(i.value)}return{status:r.value,value:t}}var o=__spreadArray([],n.data.values(),true).map((function(e,t){return i._parse(new E(n,e,n.path,t))}));if(n.common.async){return Promise.all(o).then((function(e){return s(e)}))}else{return s(o)}};t.prototype.min=function(e,r){return new t(__assign(__assign({},this._def),{minSize:{value:e,message:N.toString(r)}}))};t.prototype.max=function(e,r){return new t(__assign(__assign({},this._def),{maxSize:{value:e,message:N.toString(r)}}))};t.prototype.size=function(e,t){return this.min(e,t).max(e,t)};t.prototype.nonempty=function(e){return this.min(1,e)};return t}(z);ge.create=function(e,t){return new ge(__assign({valueType:e,minSize:null,maxSize:null,typeName:Le.ZodSet},R(t)))};var be=function(e){__extends(t,e);function t(){var t=e.apply(this,arguments)||this;t.validate=t.implement;return t}t.prototype._parse=function(e){var t=this._processInputParams(e).ctx;if(t.parsedType!==h.function){G(t,{code:_.invalid_type,expected:h.function,received:t.parsedType});return S}function r(e,r){return x({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,M(),g].filter((function(e){return!!e})),issueData:{code:_.invalid_arguments,argumentsError:r}})}function n(e,r){return x({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,M(),g].filter((function(e){return!!e})),issueData:{code:_.invalid_return_type,returnTypeError:r}})}var a={errorMap:t.common.contextualErrorMap};var i=t.data;if(this._def.returns instanceof we){var s=this;return O((function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return __awaiter(this,void 0,void 0,(function(){var t,o,u,c;return __generator(this,(function(d){switch(d.label){case 0:t=new y([]);return[4,s._def.args.parseAsync(e,a).catch((function(n){t.addIssue(r(e,n));throw t}))];case 1:o=d.sent();return[4,Reflect.apply(i,this,o)];case 2:u=d.sent();return[4,s._def.returns._def.type.parseAsync(u,a).catch((function(e){t.addIssue(n(u,e));throw t}))];case 3:c=d.sent();return[2,c]}}))}))}))}else{var o=this;return O((function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var s=o._def.args.safeParse(e,a);if(!s.success){throw new y([r(e,s.error)])}var u=Reflect.apply(i,this,s.data);var c=o._def.returns.safeParse(u,a);if(!c.success){throw new y([n(u,c.error)])}return c.data}))}};t.prototype.parameters=function(){return this._def.args};t.prototype.returnType=function(){return this._def.returns};t.prototype.args=function(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}return new t(__assign(__assign({},this._def),{args:_e.create(e).rest(ie.create())}))};t.prototype.returns=function(e){return new t(__assign(__assign({},this._def),{returns:e}))};t.prototype.implement=function(e){var t=this.parse(e);return t};t.prototype.strictImplement=function(e){var t=this.parse(e);return t};t.create=function(e,r,n){return new t(__assign({args:e?e:_e.create([]).rest(ie.create()),returns:r||ie.create(),typeName:Le.ZodFunction},R(n)))};return t}(z);var Te=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(t.prototype,"schema",{get:function(){return this._def.getter()},enumerable:false,configurable:true});t.prototype._parse=function(e){var t=this._processInputParams(e).ctx;var r=this._def.getter();return r._parse({data:t.data,path:t.path,parent:t})};return t}(z);Te.create=function(e,t){return new Te(__assign({getter:e,typeName:Le.ZodLazy},R(t)))};var Me=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){if(e.data!==this._def.value){var t=this._getOrReturnCtx(e);G(t,{received:t.data,code:_.invalid_literal,expected:this._def.value});return S}return{status:"valid",value:e.data}};Object.defineProperty(t.prototype,"value",{get:function(){return this._def.value},enumerable:false,configurable:true});return t}(z);Me.create=function(e,t){return new Me(__assign({value:e,typeName:Le.ZodLiteral},R(t)))};function xe(e,t){return new ke(__assign({values:e,typeName:Le.ZodEnum},R(t)))}var ke=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){if(typeof e.data!=="string"){var t=this._getOrReturnCtx(e);var r=this._def.values;G(t,{expected:p.joinValues(r),received:t.parsedType,code:_.invalid_type});return S}if(this._def.values.indexOf(e.data)===-1){var t=this._getOrReturnCtx(e);var r=this._def.values;G(t,{received:t.data,code:_.invalid_enum_value,options:r});return S}return O(e.data)};Object.defineProperty(t.prototype,"options",{get:function(){return this._def.values},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"enum",{get:function(){var e={};for(var t=0,r=this._def.values;t<r.length;t++){var n=r[t];e[n]=n}return e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"Values",{get:function(){var e={};for(var t=0,r=this._def.values;t<r.length;t++){var n=r[t];e[n]=n}return e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"Enum",{get:function(){var e={};for(var t=0,r=this._def.values;t<r.length;t++){var n=r[t];e[n]=n}return e},enumerable:false,configurable:true});t.prototype.extract=function(e){return t.create(e)};t.prototype.exclude=function(e){return t.create(this.options.filter((function(t){return!e.includes(t)})))};return t}(z);ke.create=xe;var Ge=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=p.getValidEnumValues(this._def.values);var r=this._getOrReturnCtx(e);if(r.parsedType!==h.string&&r.parsedType!==h.number){var n=p.objectValues(t);G(r,{expected:p.joinValues(n),received:r.parsedType,code:_.invalid_type});return S}if(t.indexOf(e.data)===-1){var n=p.objectValues(t);G(r,{received:r.data,code:_.invalid_enum_value,options:n});return S}return O(e.data)};Object.defineProperty(t.prototype,"enum",{get:function(){return this._def.values},enumerable:false,configurable:true});return t}(z);Ge.create=function(e,t){return new Ge(__assign({values:e,typeName:Le.ZodNativeEnum},R(t)))};var we=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.unwrap=function(){return this._def.type};t.prototype._parse=function(e){var t=this;var r=this._processInputParams(e).ctx;if(r.parsedType!==h.promise&&r.common.async===false){G(r,{code:_.invalid_type,expected:h.promise,received:r.parsedType});return S}var n=r.parsedType===h.promise?r.data:Promise.resolve(r.data);return O(n.then((function(e){return t._def.type.parseAsync(e,{path:r.path,errorMap:r.common.contextualErrorMap})})))};return t}(z);we.create=function(e,t){return new we(__assign({type:e,typeName:Le.ZodPromise},R(t)))};var Se=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.innerType=function(){return this._def.schema};t.prototype.sourceType=function(){return this._def.schema._def.typeName===Le.ZodEffects?this._def.schema.sourceType():this._def.schema};t.prototype._parse=function(e){var t=this;var r=this._processInputParams(e),n=r.status,a=r.ctx;var i=this._def.effect||null;var s={addIssue:function(e){G(a,e);if(e.fatal){n.abort()}else{n.dirty()}},get path(){return a.path}};s.addIssue=s.addIssue.bind(s);if(i.type==="preprocess"){var o=i.transform(a.data,s);if(a.common.issues.length){return{status:"dirty",value:a.data}}if(a.common.async){return Promise.resolve(o).then((function(e){return t._def.schema._parseAsync({data:e,path:a.path,parent:a})}))}else{return this._def.schema._parseSync({data:o,path:a.path,parent:a})}}if(i.type==="refinement"){var u=function(e){var t=i.refinement(e,s);if(a.common.async){return Promise.resolve(t)}if(t instanceof Promise){throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.")}return e};if(a.common.async===false){var c=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(c.status==="aborted")return S;if(c.status==="dirty")n.dirty();u(c.value);return{status:n.value,value:c.value}}else{return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then((function(e){if(e.status==="aborted")return S;if(e.status==="dirty")n.dirty();return u(e.value).then((function(){return{status:n.value,value:e.value}}))}))}}if(i.type==="transform"){if(a.common.async===false){var d=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!C(d))return d;var l=i.transform(d.value,s);if(l instanceof Promise){throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.")}return{status:n.value,value:l}}else{return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then((function(e){if(!C(e))return e;return Promise.resolve(i.transform(e.value,s)).then((function(e){return{status:n.value,value:e}}))}))}}p.assertNever(i)};return t}(z);Se.create=function(e,t,r){return new Se(__assign({schema:e,typeName:Le.ZodEffects,effect:t},R(r)))};Se.createWithPreprocess=function(e,t,r){return new Se(__assign({schema:t,effect:{type:"preprocess",transform:e},typeName:Le.ZodEffects},R(r)))};var Ze=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._getType(e);if(t===h.undefined){return O(undefined)}return this._def.innerType._parse(e)};t.prototype.unwrap=function(){return this._def.innerType};return t}(z);Ze.create=function(e,t){return new Ze(__assign({innerType:e,typeName:Le.ZodOptional},R(t)))};var Oe=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._getType(e);if(t===h.null){return O(null)}return this._def.innerType._parse(e)};t.prototype.unwrap=function(){return this._def.innerType};return t}(z);Oe.create=function(e,t){return new Oe(__assign({innerType:e,typeName:Le.ZodNullable},R(t)))};var je=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._processInputParams(e).ctx;var r=t.data;if(t.parsedType===h.undefined){r=this._def.defaultValue()}return this._def.innerType._parse({data:r,path:t.path,parent:t})};t.prototype.removeDefault=function(){return this._def.innerType};return t}(z);je.create=function(e,t){return new je(__assign({innerType:e,typeName:Le.ZodDefault,defaultValue:typeof t.default==="function"?t.default:function(){return t.default}},R(t)))};var Pe=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this;var r=this._processInputParams(e).ctx;var n=__assign(__assign({},r),{common:__assign(__assign({},r.common),{issues:[]})});var a=this._def.innerType._parse({data:n.data,path:n.path,parent:__assign({},n)});if(A(a)){return a.then((function(e){return{status:"valid",value:e.status==="valid"?e.value:t._def.catchValue({get error(){return new y(n.common.issues)},input:n.data})}}))}else{return{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new y(n.common.issues)},input:n.data})}}};t.prototype.removeCatch=function(){return this._def.innerType};return t}(z);Pe.create=function(e,t){return new Pe(__assign({innerType:e,typeName:Le.ZodCatch,catchValue:typeof t.catch==="function"?t.catch:function(){return t.catch}},R(t)))};var Ce=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._getType(e);if(t!==h.nan){var r=this._getOrReturnCtx(e);G(r,{code:_.invalid_type,expected:h.nan,received:r.parsedType});return S}return{status:"valid",value:e.data}};return t}(z);Ce.create=function(e){return new Ce(__assign({typeName:Le.ZodNaN},R(e)))};var Ae=Symbol("zod_brand");var Ne=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._processInputParams(e).ctx;var r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})};t.prototype.unwrap=function(){return this._def.type};return t}(z);var Ee=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this;var r=this._processInputParams(e),n=r.status,a=r.ctx;if(a.common.async){var i=function(){return __awaiter(t,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,this._def.in._parseAsync({data:a.data,path:a.path,parent:a})];case 1:e=t.sent();if(e.status==="aborted")return[2,S];if(e.status==="dirty"){n.dirty();return[2,Z(e.value)]}else{return[2,this._def.out._parseAsync({data:e.value,path:a.path,parent:a})]}return[2]}}))}))};return i()}else{var s=this._def.in._parseSync({data:a.data,path:a.path,parent:a});if(s.status==="aborted")return S;if(s.status==="dirty"){n.dirty();return{status:"dirty",value:s.value}}else{return this._def.out._parseSync({data:s.value,path:a.path,parent:a})}}};t.create=function(e,r){return new t({in:e,out:r,typeName:Le.ZodPipeline})};return t}(z);var Ie=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this._def.innerType._parse(e);if(C(t)){t.value=Object.freeze(t.value)}return t};return t}(z);Ie.create=function(e,t){return new Ie(__assign({innerType:e,typeName:Le.ZodReadonly},R(t)))};var Re=function(e,t,r){if(t===void 0){t={}}if(e)return ae.create().superRefine((function(n,a){var i,s;if(!e(n)){var o=typeof t==="function"?t(n):typeof t==="string"?{message:t}:t;var u=(s=(i=o.fatal)!==null&&i!==void 0?i:r)!==null&&s!==void 0?s:true;var c=typeof o==="string"?{message:o}:o;a.addIssue(__assign(__assign({code:"custom"},c),{fatal:u}))}}));return ae.create()};var ze={object:de.lazycreate};var Le;(function(e){e["ZodString"]="ZodString";e["ZodNumber"]="ZodNumber";e["ZodNaN"]="ZodNaN";e["ZodBigInt"]="ZodBigInt";e["ZodBoolean"]="ZodBoolean";e["ZodDate"]="ZodDate";e["ZodSymbol"]="ZodSymbol";e["ZodUndefined"]="ZodUndefined";e["ZodNull"]="ZodNull";e["ZodAny"]="ZodAny";e["ZodUnknown"]="ZodUnknown";e["ZodNever"]="ZodNever";e["ZodVoid"]="ZodVoid";e["ZodArray"]="ZodArray";e["ZodObject"]="ZodObject";e["ZodUnion"]="ZodUnion";e["ZodDiscriminatedUnion"]="ZodDiscriminatedUnion";e["ZodIntersection"]="ZodIntersection";e["ZodTuple"]="ZodTuple";e["ZodRecord"]="ZodRecord";e["ZodMap"]="ZodMap";e["ZodSet"]="ZodSet";e["ZodFunction"]="ZodFunction";e["ZodLazy"]="ZodLazy";e["ZodLiteral"]="ZodLiteral";e["ZodEnum"]="ZodEnum";e["ZodEffects"]="ZodEffects";e["ZodNativeEnum"]="ZodNativeEnum";e["ZodOptional"]="ZodOptional";e["ZodNullable"]="ZodNullable";e["ZodDefault"]="ZodDefault";e["ZodCatch"]="ZodCatch";e["ZodPromise"]="ZodPromise";e["ZodBranded"]="ZodBranded";e["ZodPipeline"]="ZodPipeline";e["ZodReadonly"]="ZodReadonly"})(Le||(Le={}));var De=function(e,t){if(t===void 0){t={message:"Input not instance of ".concat(e.name)}}return Re((function(t){return t instanceof e}),t)};var Ue=$.create;var Be=Y.create;var Fe=Ce.create;var Ve=Q.create;var Ke=X.create;var qe=ee.create;var We=te.create;var He=re.create;var $e=ne.create;var Je=ae.create;var Ye=ie.create;var Qe=se.create;var Xe=oe.create;var et=ue.create;var tt=de.create;var rt=de.strictCreate;var nt=le.create;var at=fe.create;var it=ve.create;var st=_e.create;var ot=me.create;var ut=ye.create;var ct=ge.create;var dt=be.create;var lt=Te.create;var pt=Me.create;var ft=ke.create;var ht=Ge.create;var vt=we.create;var _t=Se.create;var mt=Ze.create;var yt=Oe.create;var gt=Se.createWithPreprocess;var bt=Ee.create;var Tt=function(){return Ue().optional()};var Mt=function(){return Be().optional()};var xt=function(){return Ke().optional()};var kt={string:function(e){return $.create(__assign(__assign({},e),{coerce:true}))},number:function(e){return Y.create(__assign(__assign({},e),{coerce:true}))},boolean:function(e){return X.create(__assign(__assign({},e),{coerce:true}))},bigint:function(e){return Q.create(__assign(__assign({},e),{coerce:true}))},date:function(e){return ee.create(__assign(__assign({},e),{coerce:true}))}};var Gt=S;var wt=Object.freeze({__proto__:null,defaultErrorMap:g,setErrorMap:T,getErrorMap:M,makeIssue:x,EMPTY_PATH:k,addIssueToContext:G,ParseStatus:w,INVALID:S,DIRTY:Z,OK:O,isAborted:j,isDirty:P,isValid:C,isAsync:A,get util(){return p},get objectUtil(){return f},ZodParsedType:h,getParsedType:v,ZodType:z,ZodString:$,ZodNumber:Y,ZodBigInt:Q,ZodBoolean:X,ZodDate:ee,ZodSymbol:te,ZodUndefined:re,ZodNull:ne,ZodAny:ae,ZodUnknown:ie,ZodNever:se,ZodVoid:oe,ZodArray:ue,ZodObject:de,ZodUnion:le,ZodDiscriminatedUnion:fe,ZodIntersection:ve,ZodTuple:_e,ZodRecord:me,ZodMap:ye,ZodSet:ge,ZodFunction:be,ZodLazy:Te,ZodLiteral:Me,ZodEnum:ke,ZodNativeEnum:Ge,ZodPromise:we,ZodEffects:Se,ZodTransformer:Se,ZodOptional:Ze,ZodNullable:Oe,ZodDefault:je,ZodCatch:Pe,ZodNaN:Ce,BRAND:Ae,ZodBranded:Ne,ZodPipeline:Ee,ZodReadonly:Ie,custom:Re,Schema:z,ZodSchema:z,late:ze,get ZodFirstPartyTypeKind(){return Le},coerce:kt,any:Je,array:et,bigint:Ve,boolean:Ke,date:qe,discriminatedUnion:at,effect:_t,enum:ft,function:dt,instanceof:De,intersection:it,lazy:lt,literal:pt,map:ut,nan:Fe,nativeEnum:ht,never:Qe,null:$e,nullable:yt,number:Be,object:tt,oboolean:xt,onumber:Mt,optional:mt,ostring:Tt,pipeline:bt,preprocess:gt,promise:vt,record:ot,set:ct,strictObject:rt,string:Ue,symbol:We,transformer:_t,tuple:st,undefined:He,union:nt,unknown:Ye,void:Xe,NEVER:Gt,ZodIssueCode:_,quotelessJson:m,ZodError:y});var St=[["International Date Line West","GMT-11:00","(GMT-11:00) International Date Line West"],["Midway Island","GMT-11:00","(GMT-11:00) Midway Island"],["Samoa","GMT-11:00","(GMT-11:00) Samoa"],["Hawaii","GMT-10:00","(GMT-10:00) Hawaii"],["Alaska","GMT-09:00","(GMT-09:00) Alaska"],["Pacific Time (US & Canada)","GMT-08:00","(GMT-08:00) Pacific Time (US & Canada)"],["Tijuana","GMT-08:00","(GMT-08:00) Tijuana"],["Arizona","GMT-07:00","(GMT-07:00) Arizona"],["Chihuahua","GMT-07:00","(GMT-07:00) Chihuahua"],["Mazatlan","GMT-07:00","(GMT-07:00) Mazatlan"],["Mountain Time (US & Canada)","GMT-07:00","(GMT-07:00) Mountain Time (US & Canada)"],["Central America","GMT-06:00","(GMT-06:00) Central America"],["Central Time (US & Canada)","GMT-06:00","(GMT-06:00) Central Time (US & Canada)"],["Guadalajara","GMT-06:00","(GMT-06:00) Guadalajara"],["Mexico City","GMT-06:00","(GMT-06:00) Mexico City"],["Monterrey","GMT-06:00","(GMT-06:00) Monterrey"],["Saskatchewan","GMT-06:00","(GMT-06:00) Saskatchewan"],["Bogota","GMT-05:00","(GMT-05:00) Bogota"],["Eastern Time (US & Canada)","GMT-05:00","(GMT-05:00) Eastern Time (US & Canada)"],["Indiana (East)","GMT-05:00","(GMT-05:00) Indiana (East)"],["Lima","GMT-05:00","(GMT-05:00) Lima"],["Quito","GMT-05:00","(GMT-05:00) Quito"],["Caracas","GMT-04:30","(GMT-04:30) Caracas"],["Atlantic Time (Canada)","GMT-04:00","(GMT-04:00) Atlantic Time (Canada)"],["Georgetown","GMT-04:00","(GMT-04:00) Georgetown"],["La Paz","GMT-04:00","(GMT-04:00) La Paz"],["Santiago","GMT-04:00","(GMT-04:00) Santiago"],["Newfoundland","GMT-03:30","(GMT-03:30) Newfoundland"],["Brasilia","GMT-03:00","(GMT-03:00) Brasilia"],["Buenos Aires","GMT-03:00","(GMT-03:00) Buenos Aires"],["Greenland","GMT-03:00","(GMT-03:00) Greenland"],["Mid-Atlantic","GMT-02:00","(GMT-02:00) Mid-Atlantic"],["Azores","GMT-01:00","(GMT-01:00) Azores"],["Cape Verde Is.","GMT-01:00","(GMT-01:00) Cape Verde Is."],["Casablanca","GMT+00:00","(GMT+00:00) Casablanca"],["Dublin","GMT+00:00","(GMT+00:00) Dublin"],["Edinburgh","GMT+00:00","(GMT+00:00) Edinburgh"],["Lisbon","GMT+00:00","(GMT+00:00) Lisbon"],["London","GMT+00:00","(GMT+00:00) London"],["Monrovia","GMT+00:00","(GMT+00:00) Monrovia"],["UTC","GMT+00:00","(GMT+00:00) UTC"],["Amsterdam","GMT+01:00","(GMT+01:00) Amsterdam"],["Belgrade","GMT+01:00","(GMT+01:00) Belgrade"],["Berlin","GMT+01:00","(GMT+01:00) Berlin"],["Bern","GMT+01:00","(GMT+01:00) Bern"],["Bratislava","GMT+01:00","(GMT+01:00) Bratislava"],["Brussels","GMT+01:00","(GMT+01:00) Brussels"],["Budapest","GMT+01:00","(GMT+01:00) Budapest"],["Copenhagen","GMT+01:00","(GMT+01:00) Copenhagen"],["Ljubljana","GMT+01:00","(GMT+01:00) Ljubljana"],["Madrid","GMT+01:00","(GMT+01:00) Madrid"],["Paris","GMT+01:00","(GMT+01:00) Paris"],["Prague","GMT+01:00","(GMT+01:00) Prague"],["Rome","GMT+01:00","(GMT+01:00) Rome"],["Sarajevo","GMT+01:00","(GMT+01:00) Sarajevo"],["Skopje","GMT+01:00","(GMT+01:00) Skopje"],["Stockholm","GMT+01:00","(GMT+01:00) Stockholm"],["Vienna","GMT+01:00","(GMT+01:00) Vienna"],["Warsaw","GMT+01:00","(GMT+01:00) Warsaw"],["West Central Africa","(GMT+01:00","(GMT+01:00) West Central Africa"],["Zagreb","GMT+01:00","(GMT+01:00) Zagreb"],["Athens","GMT+02:00","(GMT+02:00) Athens"],["Bucharest","GMT+02:00","(GMT+02:00) Bucharest"],["Cairo","GMT+02:00","(GMT+02:00) Cairo"],["Harare","GMT+02:00","(GMT+02:00) Harare"],["Helsinki","GMT+02:00","(GMT+02:00) Helsinki"],["Istanbul","GMT+02:00","(GMT+02:00) Istanbul"],["Jerusalem","GMT+02:00","(GMT+02:00) Jerusalem"],["Kyiv","GMT+02:00","(GMT+02:00) Kyiv"],["Minsk","GMT+02:00","(GMT+02:00) Minsk"],["Pretoria","GMT+02:00","(GMT+02:00) Pretoria"],["Riga","GMT+02:00","(GMT+02:00) Riga"],["Sofia","GMT+02:00","(GMT+02:00) Sofia"],["Tallinn","GMT+02:00","(GMT+02:00) Tallinn"],["Vilnius","GMT+02:00","(GMT+02:00) Vilnius"],["Baghdad","GMT+03:00","(GMT+03:00) Baghdad"],["Kuwait","GMT+03:00","(GMT+03:00) Kuwait"],["Moscow","GMT+03:00","(GMT+03:00) Moscow"],["Nairobi","GMT+03:00","(GMT+03:00) Nairobi"],["Riyadh","GMT+03:00","(GMT+03:00) Riyadh"],["St. Petersburg","GMT+03:00","(GMT+03:00) St. Petersburg"],["Volgograd","GMT+03:00","(GMT+03:00) Volgograd"],["Tehran","GMT+03:30","(GMT+03:30) Tehran"],["Abu Dhabi","GMT+04:00","(GMT+04:00) Abu Dhabi"],["Baku","GMT+04:00","(GMT+04:00) Baku"],["Muscat","GMT+04:00","(GMT+04:00) Muscat"],["Tbilisi","GMT+04:00","(GMT+04:00) Tbilisi"],["Yerevan","GMT+04:00","(GMT+04:00) Yerevan"],["Kabul","GMT+04:30","(GMT+04:30) Kabul"],["Ekaterinburg","GMT+05:00","(GMT+05:00) Ekaterinburg"],["Islamabad","GMT+05:00","(GMT+05:00) Islamabad"],["Karachi","GMT+05:00","(GMT+05:00) Karachi"],["Tashkent","GMT+05:00","(GMT+05:00) Tashkent"],["Chennai","GMT+05:30","(GMT+05:30) Chennai"],["Kolkata","GMT+05:30","(GMT+05:30) Kolkata"],["Mumbai","GMT+05:30","(GMT+05:30) Mumbai"],["New Delhi","GMT+05:30","(GMT+05:30) New Delhi"],["Sri Jayawardenepura","GMT+05:30","(GMT+05:30) Sri Jayawardenepura"],["Kathmandu","GMT+05:45","(GMT+05:45) Kathmandu"],["Almaty","GMT+06:00","(GMT+06:00) Almaty"],["Astana","GMT+06:00","(GMT+06:00) Astana"],["Dhaka","GMT+06:00","(GMT+06:00) Dhaka"],["Novosibirsk","GMT+06:00","(GMT+06:00) Novosibirsk"],["Rangoon","GMT+06:30","(GMT+06:30) Rangoon"],["Bangkok","GMT+07:00","(GMT+07:00) Bangkok"],["Hanoi","GMT+07:00","(GMT+07:00) Hanoi"],["Jakarta","GMT+07:00","(GMT+07:00) Jakarta"],["Krasnoyarsk","GMT+07:00","(GMT+07:00) Krasnoyarsk"],["Beijing","GMT+08:00","(GMT+08:00) Beijing"],["Chongqing","GMT+08:00","(GMT+08:00) Chongqing"],["Hong Kong","GMT+08:00","(GMT+08:00) Hong Kong"],["Irkutsk","GMT+08:00","(GMT+08:00) Irkutsk"],["Kuala Lumpur","GMT+08:00","(GMT+08:00) Kuala Lumpur"],["Perth","GMT+08:00","(GMT+08:00) Perth"],["Singapore","GMT+08:00","(GMT+08:00) Singapore"],["Taipei","GMT+08:00","(GMT+08:00) Taipei"],["Ulaan Bataar","GMT+08:00","(GMT+08:00) Ulaan Bataar"],["Urumqi","GMT+08:00","(GMT+08:00) Urumqi"],["Osaka","GMT+09:00","(GMT+09:00) Osaka"],["Sapporo","GMT+09:00","(GMT+09:00) Sapporo"],["Seoul","GMT+09:00","(GMT+09:00) Seoul"],["Tokyo","GMT+09:00","(GMT+09:00) Tokyo"],["Yakutsk","GMT+09:00","(GMT+09:00) Yakutsk"],["Adelaide","GMT+09:30","(GMT+09:30) Adelaide"],["Darwin","GMT+09:30","(GMT+09:30) Darwin"],["Brisbane","GMT+10:00","(GMT+10:00) Brisbane"],["Canberra","GMT+10:00","(GMT+10:00) Canberra"],["Guam","GMT+10:00","(GMT+10:00) Guam"],["Hobart","GMT+10:00","(GMT+10:00) Hobart"],["Melbourne","GMT+10:00","(GMT+10:00) Melbourne"],["Port Moresby","GMT+10:00","(GMT+10:00) Port Moresby"],["Sydney","GMT+10:00","(GMT+10:00) Sydney"],["Vladivostok","GMT+10:00","(GMT+10:00) Vladivostok"],["Kamchatka","GMT+11:00","(GMT+11:00) Kamchatka"],["Magadan","GMT+11:00","(GMT+11:00) Magadan"],["New Caledonia","GMT+11:00","(GMT+11:00) New Caledonia"],["Solomon Is.","GMT+11:00","(GMT+11:00) Solomon Is."],["Auckland","GMT+12:00","(GMT+12:00) Auckland"],["Fiji","GMT+12:00","(GMT+12:00) Fiji"],["Marshall Is.","GMT+12:00","(GMT+12:00) Marshall Is."],["Wellington","GMT+12:00","(GMT+12:00) Wellington"],["Nuku'alofa","GMT+13:00","(GMT+13:00) Nuku'alofa"]];var Zt='verdocs-settings-organization{display:-ms-flexbox;display:flex;padding:10px;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-direction:column;flex-direction:column;font-family:"Inter", "Barlow", sans-serif}verdocs-settings-organization .columns{gap:20px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-direction:row;flex-direction:row}verdocs-settings-organization .column{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-settings-organization verdocs-text-input{margin:10px 0}verdocs-settings-organization verdocs-text-input input{height:32px}@media screen and (max-width: 600px){verdocs-settings-organization .columns{gap:0;-ms-flex-direction:column;flex-direction:column}}';var Ot=St.map((function(e){return{value:e[2],label:e[2]}}));var jt=wt.object({name:wt.string().trim().min(1,"Name is required").max(30),business_name:wt.string().trim().max(30).optional(),contact_email:wt.string().trim().email("Invalid email").optional().or(wt.literal("")),phone:wt.preprocess((function(e){return d(String(e).trim())}),wt.string().optional()),address:wt.string().trim().max(30).optional(),address2:wt.string().trim().max(30).optional(),timezone:wt.string().trim().optional(),url:wt.string().trim().optional()});var Pt=e("verdocs_settings_organization",function(){function e(e){t(this,e);this.sdkError=r(this,"sdkError",7);this.organizationUpdated=r(this,"organizationUpdated",7);this.endpoint=c.getDefault();this.valid=false;this.dirty=false;this.submitting=false;this.name="";this.business_name="";this.contact_email="";this.phone="";this.address="";this.address2="";this.timezone="";this.url=""}e.prototype.componentWillLoad=function(){this.endpoint.loadSession();if(!this.endpoint.session){console.log("[SETTINGS] Must be authenticated");return}};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,i(this.endpoint,this.endpoint.session.organization_id)];case 1:e=t.sent();console.log("[SETTINGS] Loaded organization",e);this.resetForm(e);return[2]}}))}))};e.prototype.resetForm=function(e){this.name=e.name;this.business_name=e.business_name;this.contact_email=e.contact_email;this.phone=e.phone;this.address=e.address;this.address2=e.address2;this.timezone=e.timezone;this.url=e.url;this.dirty=false;this.valid=true};e.prototype.handleSubmit=function(e){var t=this;e.preventDefault();e.stopPropagation();s(c.getDefault(),this.endpoint.session.organization_id,{name:this.name,business_name:this.business_name,contact_email:this.contact_email,phone:this.phone,address:this.address,address2:this.address2,timezone:this.timezone,url:this.url}).then((function(e){var r;console.log("[SETTINGS] Update result",e);(r=t.organizationUpdated)===null||r===void 0?void 0:r.emit({endpoint:t.endpoint,organization:e});t.resetForm(e)})).catch((function(e){return l("Error updating organization: ".concat(e.message),{style:"error"})}))};e.prototype.processFields=function(){var e=jt.safeParse({name:this.name,business_name:this.business_name,contact_email:this.contact_email,phone:this.phone,address:this.address,address2:this.address2,timezone:this.timezone,url:this.url});console.log("[SETTINGS] Validation result",e);this.valid=e.success;this.dirty=true};e.prototype.render=function(){var e=this;if(!this.endpoint.session){console.log("[SETTINGS] Must be authenticated");return n(a,{class:"authentication-required"},"Must be authenticated")}return n(a,null,n("h1",null,"Organization Profile"),n("form",{onSubmit:function(t){return e.handleSubmit(t)}},n("div",{class:"columns"},n("div",{class:"column"},n("verdocs-text-input",{id:"verdocs-organization-name",value:this.name,autocomplete:"off",label:"Name",required:true,placeholder:"Enter your organization's name...",onInput:function(t){return e.name=t.target.value},onFocusout:function(t){e.name=t.target.value.trim();e.processFields()}}),n("verdocs-text-input",{id:"verdocs-organization-business-name",value:this.business_name,autocomplete:"off",label:"d/b/a",placeholder:"Enter your d/b/a, if any...",onInput:function(t){return e.business_name=t.target.value},onFocusout:function(t){e.business_name=t.target.value.trim();e.processFields()}}),n("verdocs-text-input",{id:"verdocs-organization-url",value:this.url,autocomplete:"off",label:"Web URL",placeholder:"Enter your Web URL...",onInput:function(t){return e.url=t.target.value},onFocusout:function(t){e.url=t.target.value.trim();e.processFields()}}),n("verdocs-text-input",{id:"verdocs-organization-phone",value:this.phone,autocomplete:"off",label:"Phone Number",placeholder:"Enter your phone number...",onInput:function(t){return e.phone=t.target.value},onFocusout:function(t){e.phone=t.target.value.trim();e.processFields()}})),n("div",{class:"column"},n("verdocs-text-input",{id:"verdocs-organization-address",value:this.address,autocomplete:"off",label:"Address",required:true,placeholder:"Enter your address...",onInput:function(t){return e.address=t.target.value},onFocusout:function(t){e.address=t.target.value.trim();e.processFields()}}),n("verdocs-text-input",{id:"verdocs-organization-address",value:this.address2,autocomplete:"off",label:"Address 2",required:true,placeholder:"Address line 2...",onInput:function(t){return e.address2=t.target.value},onFocusout:function(t){e.address2=t.target.value.trim();e.processFields()}}),n("verdocs-text-input",{id:"verdocs-organization-address2",value:this.address2,clearable:true,autocomplete:"off",label:"Address 2",placeholder:"Enter your address...",onInput:function(t){return e.address2=t.target.value},onFocusout:function(t){e.address2=t.target.value.trim();e.processFields()}}),n("verdocs-text-input",{id:"verdocs-organization-email",value:this.contact_email,clearable:true,autocomplete:"off",label:"Contact Email",placeholder:"Enter your contact email address...",onInput:function(t){return e.contact_email=t.target.value},onFocusout:function(t){e.contact_email=t.target.value.trim();e.processFields()}}),n("verdocs-select-input",{options:Ot,value:this.timezone,label:"Time Zone"}))),n("verdocs-button",{type:"submit",label:"Save",size:"normal",disabled:this.submitting||!this.dirty})))};return e}());Pt.style=Zt;var Ct='verdocs-settings-profile{display:-ms-flexbox;display:flex;padding:10px;font-size:18px;-ms-flex-wrap:nowrap;flex-wrap:nowrap;border-radius:6px;color:#33364b;-ms-flex-direction:column;flex-direction:column;font-family:"Inter", "Barlow", sans-serif}verdocs-settings-profile .columns{gap:20px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-direction:row;flex-direction:row}verdocs-settings-profile .column{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}verdocs-settings-profile verdocs-text-input{margin:10px 0}verdocs-settings-profile verdocs-text-input input{height:32px}@media screen and (max-width: 600px){verdocs-settings-profile .columns{gap:0;-ms-flex-direction:column;flex-direction:column}}';var At=wt.object({first_name:wt.string().trim().min(1,"First name is required").max(30),last_name:wt.string().trim().min(1,"Last name is required").max(30),email:wt.string().trim().email("Invalid email").min(1,"Email is required"),phone:wt.preprocess((function(e){return d(String(e).trim())}),wt.string())});var Nt=e("verdocs_settings_profile",function(){function e(e){t(this,e);this.sdkError=r(this,"sdkError",7);this.profileUpdated=r(this,"profileUpdated",7);this.endpoint=c.getDefault();this.valid=false;this.dirty=false;this.submitting=false;this.first_name="";this.last_name="";this.email="";this.phone=""}e.prototype.componentWillLoad=function(){this.endpoint.loadSession();if(!this.endpoint.session){console.log("[SETTINGS] Must be authenticated");return}};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:return[4,o(this.endpoint)];case 1:e=t.sent();console.log("[SETTINGS] Loaded profile",e);this.resetForm(e);return[2]}}))}))};e.prototype.resetForm=function(e){this.first_name=e.first_name;this.last_name=e.last_name;this.email=e.email;this.phone=e.phone;this.dirty=false;this.valid=true};e.prototype.handleSubmit=function(e){var t=this;e.preventDefault();e.stopPropagation();u(c.getDefault(),this.endpoint.session.profile_id,{first_name:this.first_name,last_name:this.last_name,phone:this.phone}).then((function(e){var r;console.log("[SETTINGS] Update result",e);(r=t.profileUpdated)===null||r===void 0?void 0:r.emit({endpoint:t.endpoint,profile:e});t.resetForm(e)})).catch((function(e){return l("Error updating profile: ".concat(e.message),{style:"error"})}))};e.prototype.processFields=function(){var e=At.safeParse({first_name:this.first_name,last_name:this.last_name,email:this.email,phone:this.phone});console.log("[SETTINGS] Validation result",e);this.valid=e.success;this.dirty=true};e.prototype.render=function(){var e=this;if(!this.endpoint.session){console.log("[SETTINGS] Must be authenticated");return n(a,{class:"authentication-required"},"Must be authenticated")}return n(a,null,n("h1",null,"My Profile"),n("form",{onSubmit:function(t){return e.handleSubmit(t)}},n("div",{class:"columns"},n("div",{class:"column"},n("verdocs-text-input",{id:"verdocs-profile-first-name",value:this.first_name,autocomplete:"off",label:"First Name",required:true,placeholder:"Enter your first name...",onInput:function(t){return e.first_name=t.target.value},onFocusout:function(t){e.first_name=t.target.value.trim();e.processFields()}}),n("verdocs-text-input",{id:"verdocs-profile-last-name",value:this.last_name,autocomplete:"off",label:"Last Name",required:true,placeholder:"Enter your last name...",onInput:function(t){return e.last_name=t.target.value},onFocusout:function(t){e.last_name=t.target.value.trim();e.processFields()}})),n("div",{class:"column"},n("verdocs-text-input",{id:"verdocs-profile-email",value:this.email,autocomplete:"off",label:"Email Address",required:true,disabled:true,placeholder:"Enter your email address...",onInput:function(t){return e.email=t.target.value},onFocusout:function(t){e.email=t.target.value.trim();e.processFields()}}),n("verdocs-text-input",{id:"verdocs-profile-phone",value:this.phone,clearable:true,autocomplete:"off",label:"Phone Number",placeholder:"Enter your phone number...",onInput:function(t){return e.phone=t.target.value},onFocusout:function(t){e.phone=t.target.value.trim();e.processFields()}}))),n("verdocs-button",{type:"submit",label:"Save",size:"normal",disabled:this.submitting||!this.dirty})))};return e}());Nt.style=Ct}}}));
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as i}from"./p-6d3e0994.js";import{d as s}from"./p-05788c2b.js";import{c as l,i as o}from"./p-075dc36d.js";import{V as a}from"./p-af048fad.js";import{V as n}from"./p-ed416acf.js";import{S as r}from"./p-7a1b2643.js";const u=[{value:"",label:""},{value:"Accounting & Tax",label:"Accounting & Tax"},{value:"Business Services / Consulting",label:"Business Services / Consulting"},{value:"Construction",label:"Construction"},{value:"Education",label:"Education"},{value:"Financial Services",label:"Financial Services"},{value:"Government",label:"Government"},{value:"Healthcare - Health Plans & Payers",label:"Healthcare - Health Plans & Payers"},{value:"Healthcare - Providers",label:"Healthcare - Providers"},{value:"Insurance",label:"Insurance"},{value:"Legal",label:"Legal"},{value:"Life Sciences",label:"Life Sciences"},{value:"Manufacturing",label:"Manufacturing"},{value:"Mortgage",label:"Mortgage"},{value:"Not For Profit",label:"Not For Profit"},{value:"Real Estate - Commercial",label:"Real Estate - Commercial"},{value:"Real Estate - Residential",label:"Real Estate - Residential"},{value:"Retail",label:"Retail"},{value:"Technology",label:"Technology"},{value:"Other",label:"Other"}],h=[{value:"",label:""},{value:"I want to send a document for signature.",label:"I want to send a document for signature."},{value:"I just need to sign a document today.",label:"I just need to sign a document today."},{value:"I'm evaluating it for my business.",label:"I'm evaluating it for my business."},{value:"I'm evaluating it for my personal use.",label:"I'm evaluating it for my personal use."},{value:"I'm a developer building an integration.",label:"I'm a developer building an integration."}],d=[{value:"",label:""},{value:"Solo",label:"Solo"},{value:"2-10",label:"2-10"},{value:"11-50",label:"11-50"},{value:"51-200",label:"51-200"},{value:"201-500",label:"201-500"},{value:"501-1000",label:"501-1000"},{value:"1000+",label:"1000+"}],c=class{constructor(i){e(this,i),this.authenticated=t(this,"authenticated",7),this.sdkError=t(this,"sdkError",7),this.recheckTimer=null,this.resendDisabledTimer=null,this.accessTokenForVerification=null,this.endpoint=a.getDefault(),this.visible=!0,this.logo="https://app.verdocs.com/assets/blue-logo.svg",this.isAuthenticated=!1,this.displayMode="login",this.orgname="",this.orgAvailable="UNKNOWN",this.first="",this.last="",this.username="",this.phone="",this.password="",this.submitting=!1,this.activeSession=null,this.accountType="org",this.howHear="",this.industry="",this.companySize="",this.reason="",this.signupStep=1,this.resendDisabled=!1,this.checkingOrg=!1}componentWillLoad(){var e,t;this.endpoint.loadSession(),this.endpoint.session?(console.log("[AUTH] Authenticated"),this.isAuthenticated=!0,this.activeSession=this.endpoint.session,null===(e=this.authenticated)||void 0===e||e.emit({authenticated:!0,session:this.endpoint.session})):(console.log("[AUTH] Anonymous"),null===(t=this.authenticated)||void 0===t||t.emit({authenticated:!1,session:null}))}disconnectedCallback(){this.cancelRecheckTimer()}cancelRecheckTimer(){if(this.recheckTimer){try{clearTimeout(this.recheckTimer)}catch(e){}this.recheckTimer=null}if(this.resendDisabledTimer){try{clearTimeout(this.resendDisabledTimer)}catch(e){}this.resendDisabledTimer=null}}handleSignup(){this.submitting=!0,this.accessTokenForVerification=null,l(this.endpoint,{email:this.username,password:this.password,firstName:this.first,lastName:this.last,orgName:this.orgname,industry:this.industry,size:this.companySize,reason:this.reason,hearabout:this.howHear}).then((e=>{console.log("Result",e),console.log("[AUTH] Created profile",e.profile),console.log("[AUTH] Created organization",e.organization),this.loginAndCheckVerification()})).catch((e=>{var t,i,s,l,o;console.log("[AUTH] Signup error",e.response,JSON.stringify(e)),this.submitting=!1,this.activeSession=null,null===(t=this.authenticated)||void 0===t||t.emit({authenticated:!1,session:null}),null===(i=this.sdkError)||void 0===i||i.emit(new r(e.message,null===(s=e.response)||void 0===s?void 0:s.status,null===(l=e.response)||void 0===l?void 0:l.data)),n("Signup failed: "+(null===(o=e.response)||void 0===o?void 0:o.data),{style:"error"})}))}loginAndCheckVerification(){var e,t;this.submitting=!0,this.accessTokenForVerification=null,(e=this.endpoint,t={username:this.username,password:this.password},e.api.post("/authentication/login",t).then((function(e){return e.data}))).then((e=>{var t;this.cancelRecheckTimer(),this.submitting=!1;const i=s(e.accessToken);console.log("[AUTH] Got access token body",i),(null==i?void 0:i.email_verified)?(console.log("[AUTH] Email address is verified, completing login"),this.displayMode="login",this.accessTokenForVerification=null,this.endpoint.setToken(e.accessToken),this.activeSession=this.endpoint.session,this.isAuthenticated=!0,null===(t=this.authenticated)||void 0===t||t.emit({authenticated:!0,session:this.endpoint.session})):(console.log("[AUTH] Logged in, pending email address verification"),this.displayMode="verify",this.accessTokenForVerification=e.accessToken,this.recheckTimer=setTimeout((()=>this.loginAndCheckVerification()),5e3))})).catch((e=>{var t,i,s,l;this.cancelRecheckTimer(),console.log("[AUTH] Authentication error",e.response,JSON.stringify(e)),this.displayMode="login",this.submitting=!1,this.activeSession=null,null===(t=this.authenticated)||void 0===t||t.emit({authenticated:!1,session:null}),null===(i=this.sdkError)||void 0===i||i.emit(new r(e.message,null===(s=e.response)||void 0===s?void 0:s.status,null===(l=e.response)||void 0===l?void 0:l.data)),n("Login failed. Please check your username and password and try again.",{style:"error"})}))}handleLogout(){var e;this.endpoint.clearSession(),this.isAuthenticated=!1,this.accessTokenForVerification=null,null===(e=this.authenticated)||void 0===e||e.emit({authenticated:!1,session:null})}handleResend(){var e,t;this.resendDisabled=!0,this.resendDisabledTimer=setTimeout((()=>{this.resendDisabled=!1,this.resendDisabledTimer=null}),3e4),(e=this.endpoint,t=this.accessTokenForVerification,e.api.post("/user/email_verification",{},t?{headers:{Authorization:"Bearer ".concat(t)}}:{}).then((function(e){return e.data}))).then((e=>{console.log("[AUTH] Verification request resent",e),n("Please check your email for a message with verification instructions.",{style:"info"})})).catch((e=>{console.log("[AUTH] Unable to resend verification",e)}))}handleReset(){var e,t;this.submitting=!0,(e=this.endpoint,t={email:this.username},e.api.post("/user/reset_password",t).then((function(e){return e.data}))).then((e=>{console.log("[AUTH] Reset sent",e),this.submitting=!1,this.displayMode="login",n("If your email address is registered, you will receive instructions on resetting your password shortly.",{style:"info"})})).catch((e=>{console.log("[AUTH] Unable to reset password",e),this.submitting=!1}))}async checkAvailability(e){this.checkingOrg=!0;try{this.orgname=e;const t=await o(this.endpoint,e);this.orgAvailable=t.result,console.log("response",this.orgAvailable)}catch(e){this.orgAvailable="UNKNOWN"}this.checkingOrg=!1}render(){if(!this.visible)return i("div",{style:{display:"none"}},"Authenticated");if(this.isAuthenticated)return i("verdocs-button",{label:"Sign Out",disabled:this.submitting,onClick:()=>this.handleLogout(),style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}});if("signup"===this.displayMode){const e=this.submitting||!this.first||!this.last||!this.username||!this.password||!this.orgname||"AVAILABLE"!==this.orgAvailable;return i("div",{class:"form"},i("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),i("h3",null,"Sign up for a trial account"),i("h4",null,"Already have an account?",i("verdocs-button",{label:"Log In",variant:"text",onClick:()=>this.displayMode="login",disabled:this.submitting})),1===this.signupStep&&i("form",{onSubmit:()=>this.handleSignup()},i("div",{style:{display:"flex",flexDirection:"row",columnGap:"20px"}},i("verdocs-text-input",{label:"First Name",autocomplete:"first",required:!0,value:this.first,onInput:e=>this.first=e.target.value,disabled:this.submitting}),i("verdocs-text-input",{label:"Last Name",autocomplete:"last",required:!0,value:this.last,onInput:e=>this.last=e.target.value,disabled:this.submitting})),i("verdocs-text-input",{label:"Email",autocomplete:"email",required:!0,value:this.username,onInput:e=>this.username=e.target.value,disabled:this.submitting}),i("verdocs-text-input",{label:"Phone #",autocomplete:"phone",value:this.phone,onInput:e=>this.phone=e.target.value,disabled:this.submitting}),i("verdocs-text-input",{label:"Password",type:"password",required:!0,autocomplete:"current-password",value:this.password,onInput:e=>this.password=e.target.value,disabled:this.submitting}),i("div",{style:{display:"flex",flexDirection:"row",gap:"10px",alignItems:"center"}},i("verdocs-text-input",{label:"Organization Name",autocomplete:"org",required:!0,value:this.orgname,onInput:e=>this.checkAvailability(e.target.value),disabled:this.submitting,style:{flex:"1"},onBlur:()=>{console.log("blur")}}),!this.checkingOrg&&"AVAILABLE"===this.orgAvailable&&i("verdocs-help-icon",{icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="green"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z" clip-rule="evenodd" /></svg>',text:"Organization name is available."}),!this.checkingOrg&&"TAKEN"===this.orgAvailable&&i("verdocs-help-icon",{icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="red"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z" clip-rule="evenodd" /></svg>',text:"Organization already registered."}),!this.checkingOrg&&"UNKNOWN"===this.orgAvailable&&i("verdocs-help-icon",{icon:'<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="#4a4a4a"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm11.378-3.917c-.89-.777-2.366-.777-3.255 0a.75.75 0 01-.988-1.129c1.454-1.272 3.776-1.272 5.23 0 1.513 1.324 1.513 3.518 0 4.842a3.75 3.75 0 01-.837.552c-.676.328-1.028.774-1.028 1.152v.75a.75.75 0 01-1.5 0v-.75c0-1.279 1.06-2.107 1.875-2.502.182-.088.351-.199.503-.331.83-.727.83-1.857 0-2.584zM12 18a.75.75 0 100-1.5.75.75 0 000 1.5z" clip-rule="evenodd" /></svg>',text:"Organization name must be unique."}),this.checkingOrg&&i("verdocs-spinner",{mode:"dark",size:24})),i("div",{style:{marginTop:"30px"}}),i("verdocs-button",{label:"Next",disabled:e,onClick:()=>this.signupStep=2,style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}})),2===this.signupStep&&i("form",{onSubmit:()=>this.handleSignup()},i("verdocs-text-input",{label:"How did you hear about Verdocs?",value:this.howHear,onInput:e=>this.howHear=e.target.value,disabled:this.submitting}),i("verdocs-select-input",{label:"Your Industry",options:u,value:this.industry,onInput:e=>this.industry=e.target.value,disabled:this.submitting}),i("verdocs-select-input",{label:"Company Size",options:d,value:this.companySize,onInput:e=>this.companySize=e.target.value,disabled:this.submitting}),i("verdocs-select-input",{label:"Purpose",options:h,value:this.reason,onInput:e=>this.reason=e.target.value,disabled:this.submitting}),i("div",{style:{marginTop:"30px"}}),i("verdocs-button",{label:"Create Account",disabled:this.submitting,onClick:()=>this.handleSignup(),style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}})),3===this.signupStep&&i("form",{onSubmit:()=>this.handleSignup()},i("p",null,"Please check your e-mail inbox for a verification code and follow the instructions provided."),i("p",null,i("em",null,"Verification messages may take up to 1 hour to arrive. If you do not receive the invitation, ",i("a",{href:"#"},"Click Here")," to resend it. Be sure to check your spam folder.")),i("div",{style:{display:"flex",flexDirection:"row",gap:"20px"}},i("verdocs-button",{label:"Back",disabled:this.submitting,onClick:()=>{this.signupStep=2},style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}}),i("verdocs-button",{label:"Go to Dashboard",disabled:!0,onClick:()=>this.handleSignup(),style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}}))))}return"forgot"===this.displayMode?i("div",{class:"form"},i("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),i("h3",null,"Forgot your password?"),i("p",null,"Enter your e-mail address below, and reset instructions will be sent to your Inbox."),i("p",null,i("em",null,"Please allow up to 24 hours for delivery, and check your spam folder if you do not receive the message. ")),i("form",{onSubmit:()=>this.handleSignup()},i("verdocs-text-input",{label:"Email",autocomplete:"email",required:!0,value:this.username,onInput:e=>this.username=e.target.value,disabled:this.submitting}),i("div",{style:{marginTop:"30px"}}),i("div",{class:"buttons"},i("verdocs-button",{label:"Cancel",variant:"outline",disabled:this.submitting,onClick:()=>this.displayMode="login"}),i("verdocs-button",{label:"Reset",disabled:this.submitting,onClick:()=>this.handleReset()})))):"verify"===this.displayMode?i("div",{class:"form"},i("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),i("h3",null,"Please Verify your Email Address"),i("p",null,"Check your e-mail inbox for a verification email, and follow the instructions provided."),i("p",null,i("em",null,"Please allow up to 24 hours for delivery, and check your spam folder if you do not receive the message. ")),i("div",{class:"buttons"},i("verdocs-button",{label:"Sign Out",variant:"outline",disabled:this.submitting,onClick:()=>{this.username="",this.password="",this.cancelRecheckTimer(),this.displayMode="login"}}),i("verdocs-button",{label:"Resend Email",disabled:this.resendDisabled,onClick:()=>this.handleResend()}))):i("div",{class:"form"},i("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),i("h3",null,"Log in to your account"),i("h4",null,"Don't have an account?",i("verdocs-button",{label:"Sign Up",variant:"text",onClick:()=>{this.displayMode="signup",this.signupStep=1},disabled:this.submitting})),i("form",{onSubmit:()=>this.loginAndCheckVerification()},i("verdocs-text-input",{label:"Email",autocomplete:"username",value:this.username,onInput:e=>this.username=e.target.value,disabled:this.submitting}),i("verdocs-text-input",{label:"Password",type:"password",autocomplete:"current-password",value:this.password,onInput:e=>this.password=e.target.value,disabled:this.submitting}),i("verdocs-button",{label:"Forgot Your Password?",variant:"text",onClick:()=>this.displayMode="forgot",disabled:this.submitting,style:{display:"flex",justifyContent:"center",margin:"10px auto 20px"}}),i("verdocs-button",{label:"Login",disabled:this.submitting,onClick:()=>this.loginAndCheckVerification(),style:{display:"flex",justifyContent:"center",margin:"10px auto 0"}})))}};c.style='verdocs-auth{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-auth .form{background:#ffffff;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;display:-ms-flexbox;display:flex;padding:20px;width:300px;max-width:100%}verdocs-auth .logo{margin:20px 0 30px;width:128px;max-width:100%}verdocs-auth h3{text-align:center;font-weight:400;font-size:16px;line-height:1.75;margin:0}verdocs-auth h4{text-align:center;font-weight:400;font-size:14px;line-height:1.43;margin:0}verdocs-auth h4 verdocs-button button.normal .button-label{padding:0}verdocs-auth .buttons{gap:20px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-auth .status-result{display:none}verdocs-auth .status-result.debug{white-space:pre-wrap;font-size:14px;background:#fff;padding:10px;display:block;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-auth form{width:100%}verdocs-auth verdocs-text-input{margin-bottom:10px}verdocs-auth .account-option{gap:8px;margin:20px 0 8px 0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-auth p+p{margin-top:0}verdocs-auth verdocs-help-icon{margin-top:18px;display:-ms-flexbox;display:flex;width:32px;height:32px;-ms-flex:0 0 32px;flex:0 0 32px}';export{c as verdocs_auth}
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(e,t,i,n){function s(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,o){function a(e){try{r(n.next(e))}catch(e){o(e)}}function l(e){try{r(n["throw"](e))}catch(e){o(e)}}function r(e){e.done?i(e.value):s(e.value).then(a,l)}r((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,s,o,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(e){return function(t){return r([e,t])}}function r(a){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,s&&(o=a[0]&2?s["return"]:a[0]?s["throw"]||((o=s["return"])&&o.call(s),0):s.next)&&!(o=o.call(s,a[1])).done)return o;if(s=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;s=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(a[0]===6&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e];s=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-2dbc05c6.system.js","./p-54498887.system.js","./p-cbebc039.system.js","./p-4422958b.system.js","./p-ca13070e.system.js","./p-187b20b7.system.js"],(function(e){"use strict";var t,i,n,s,o,a,l,r,u;return{setters:[function(e){t=e.r;i=e.c;n=e.h},function(e){s=e.d},function(e){o=e.c;a=e.i},function(e){l=e.V},function(e){r=e.V},function(e){u=e.S}],execute:function(){var c=function(e,t){return e.api.post("/authentication/login",t).then((function(e){return e.data}))};var d=function(e,t){return e.api.post("/user/reset_password",t).then((function(e){return e.data}))};var h=function(e,t){return e.api.post("/user/email_verification",{},t?{headers:{Authorization:"Bearer ".concat(t)}}:{}).then((function(e){return e.data}))};var p='verdocs-auth{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-auth .form{background:#ffffff;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;display:-ms-flexbox;display:flex;padding:20px;width:300px;max-width:100%}verdocs-auth .logo{margin:20px 0 30px;width:128px;max-width:100%}verdocs-auth h3{text-align:center;font-weight:400;font-size:16px;line-height:1.75;margin:0}verdocs-auth h4{text-align:center;font-weight:400;font-size:14px;line-height:1.43;margin:0}verdocs-auth h4 verdocs-button button.normal .button-label{padding:0}verdocs-auth .buttons{gap:20px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-auth .status-result{display:none}verdocs-auth .status-result.debug{white-space:pre-wrap;font-size:14px;background:#fff;padding:10px;display:block;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center}verdocs-auth form{width:100%}verdocs-auth verdocs-text-input{margin-bottom:10px}verdocs-auth .account-option{gap:8px;margin:20px 0 8px 0;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}verdocs-auth p+p{margin-top:0}verdocs-auth verdocs-help-icon{margin-top:18px;display:-ms-flexbox;display:flex;width:32px;height:32px;-ms-flex:0 0 32px;flex:0 0 32px}';var f=5e3;var g='<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="green"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm13.36-1.814a.75.75 0 10-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 00-1.06 1.06l2.25 2.25a.75.75 0 001.14-.094l3.75-5.25z" clip-rule="evenodd" /></svg>';var v='<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="red"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z" clip-rule="evenodd" /></svg>';var m='<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="#4a4a4a"><path fill-rule="evenodd" d="M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12zm11.378-3.917c-.89-.777-2.366-.777-3.255 0a.75.75 0 01-.988-1.129c1.454-1.272 3.776-1.272 5.23 0 1.513 1.324 1.513 3.518 0 4.842a3.75 3.75 0 01-.837.552c-.676.328-1.028.774-1.028 1.152v.75a.75.75 0 01-1.5 0v-.75c0-1.279 1.06-2.107 1.875-2.502.182-.088.351-.199.503-.331.83-.727.83-1.857 0-2.584zM12 18a.75.75 0 100-1.5.75.75 0 000 1.5z" clip-rule="evenodd" /></svg>';var b=[{value:"",label:""},{value:"Accounting & Tax",label:"Accounting & Tax"},{value:"Business Services / Consulting",label:"Business Services / Consulting"},{value:"Construction",label:"Construction"},{value:"Education",label:"Education"},{value:"Financial Services",label:"Financial Services"},{value:"Government",label:"Government"},{value:"Healthcare - Health Plans & Payers",label:"Healthcare - Health Plans & Payers"},{value:"Healthcare - Providers",label:"Healthcare - Providers"},{value:"Insurance",label:"Insurance"},{value:"Legal",label:"Legal"},{value:"Life Sciences",label:"Life Sciences"},{value:"Manufacturing",label:"Manufacturing"},{value:"Mortgage",label:"Mortgage"},{value:"Not For Profit",label:"Not For Profit"},{value:"Real Estate - Commercial",label:"Real Estate - Commercial"},{value:"Real Estate - Residential",label:"Real Estate - Residential"},{value:"Retail",label:"Retail"},{value:"Technology",label:"Technology"},{value:"Other",label:"Other"}];var y=[{value:"",label:""},{value:"I want to send a document for signature.",label:"I want to send a document for signature."},{value:"I just need to sign a document today.",label:"I just need to sign a document today."},{value:"I'm evaluating it for my business.",label:"I'm evaluating it for my business."},{value:"I'm evaluating it for my personal use.",label:"I'm evaluating it for my personal use."},{value:"I'm a developer building an integration.",label:"I'm a developer building an integration."}];var x=[{value:"",label:""},{value:"Solo",label:"Solo"},{value:"2-10",label:"2-10"},{value:"11-50",label:"11-50"},{value:"51-200",label:"51-200"},{value:"201-500",label:"201-500"},{value:"501-1000",label:"501-1000"},{value:"1000+",label:"1000+"}];var w=e("verdocs_auth",function(){function e(e){t(this,e);this.authenticated=i(this,"authenticated",7);this.sdkError=i(this,"sdkError",7);this.recheckTimer=null;this.resendDisabledTimer=null;this.accessTokenForVerification=null;this.endpoint=l.getDefault();this.visible=true;this.logo="https://app.verdocs.com/assets/blue-logo.svg";this.isAuthenticated=false;this.displayMode="login";this.orgname="";this.orgAvailable="UNKNOWN";this.first="";this.last="";this.username="";this.phone="";this.password="";this.submitting=false;this.activeSession=null;this.accountType="org";this.howHear="";this.industry="";this.companySize="";this.reason="";this.signupStep=1;this.resendDisabled=false;this.checkingOrg=false}e.prototype.componentWillLoad=function(){var e,t;this.endpoint.loadSession();if(this.endpoint.session){console.log("[AUTH] Authenticated");this.isAuthenticated=true;this.activeSession=this.endpoint.session;(e=this.authenticated)===null||e===void 0?void 0:e.emit({authenticated:true,session:this.endpoint.session})}else{console.log("[AUTH] Anonymous");(t=this.authenticated)===null||t===void 0?void 0:t.emit({authenticated:false,session:null})}};e.prototype.disconnectedCallback=function(){this.cancelRecheckTimer()};e.prototype.cancelRecheckTimer=function(){if(this.recheckTimer){try{clearTimeout(this.recheckTimer)}catch(e){}this.recheckTimer=null}if(this.resendDisabledTimer){try{clearTimeout(this.resendDisabledTimer)}catch(e){}this.resendDisabledTimer=null}};e.prototype.handleSignup=function(){var e=this;this.submitting=true;this.accessTokenForVerification=null;o(this.endpoint,{email:this.username,password:this.password,firstName:this.first,lastName:this.last,orgName:this.orgname,industry:this.industry,size:this.companySize,reason:this.reason,hearabout:this.howHear}).then((function(t){console.log("Result",t);console.log("[AUTH] Created profile",t.profile);console.log("[AUTH] Created organization",t.organization);e.loginAndCheckVerification()})).catch((function(t){var i,n,s,o,a;console.log("[AUTH] Signup error",t.response,JSON.stringify(t));e.submitting=false;e.activeSession=null;(i=e.authenticated)===null||i===void 0?void 0:i.emit({authenticated:false,session:null});(n=e.sdkError)===null||n===void 0?void 0:n.emit(new u(t.message,(s=t.response)===null||s===void 0?void 0:s.status,(o=t.response)===null||o===void 0?void 0:o.data));r("Signup failed: "+((a=t.response)===null||a===void 0?void 0:a.data),{style:"error"})}))};e.prototype.loginAndCheckVerification=function(){var e=this;this.submitting=true;this.accessTokenForVerification=null;c(this.endpoint,{username:this.username,password:this.password}).then((function(t){var i;e.cancelRecheckTimer();e.submitting=false;var n=s(t.accessToken);console.log("[AUTH] Got access token body",n);if(n===null||n===void 0?void 0:n.email_verified){console.log("[AUTH] Email address is verified, completing login");e.displayMode="login";e.accessTokenForVerification=null;e.endpoint.setToken(t.accessToken);e.activeSession=e.endpoint.session;e.isAuthenticated=true;(i=e.authenticated)===null||i===void 0?void 0:i.emit({authenticated:true,session:e.endpoint.session})}else{console.log("[AUTH] Logged in, pending email address verification");e.displayMode="verify";e.accessTokenForVerification=t.accessToken;e.recheckTimer=setTimeout((function(){return e.loginAndCheckVerification()}),f)}})).catch((function(t){var i,n,s,o;e.cancelRecheckTimer();console.log("[AUTH] Authentication error",t.response,JSON.stringify(t));e.displayMode="login";e.submitting=false;e.activeSession=null;(i=e.authenticated)===null||i===void 0?void 0:i.emit({authenticated:false,session:null});(n=e.sdkError)===null||n===void 0?void 0:n.emit(new u(t.message,(s=t.response)===null||s===void 0?void 0:s.status,(o=t.response)===null||o===void 0?void 0:o.data));r("Login failed. Please check your username and password and try again.",{style:"error"})}))};e.prototype.handleLogout=function(){var e;this.endpoint.clearSession();this.isAuthenticated=false;this.accessTokenForVerification=null;(e=this.authenticated)===null||e===void 0?void 0:e.emit({authenticated:false,session:null})};e.prototype.handleResend=function(){var e=this;this.resendDisabled=true;this.resendDisabledTimer=setTimeout((function(){e.resendDisabled=false;e.resendDisabledTimer=null}),3e4);h(this.endpoint,this.accessTokenForVerification).then((function(e){console.log("[AUTH] Verification request resent",e);r("Please check your email for a message with verification instructions.",{style:"info"})})).catch((function(e){console.log("[AUTH] Unable to resend verification",e)}))};e.prototype.handleReset=function(){var e=this;this.submitting=true;d(this.endpoint,{email:this.username}).then((function(t){console.log("[AUTH] Reset sent",t);e.submitting=false;e.displayMode="login";r("If your email address is registered, you will receive instructions on resetting your password shortly.",{style:"info"})})).catch((function(t){console.log("[AUTH] Unable to reset password",t);e.submitting=false}))};e.prototype.checkAvailability=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(n){switch(n.label){case 0:this.checkingOrg=true;n.label=1;case 1:n.trys.push([1,3,,4]);this.orgname=e;return[4,a(this.endpoint,e)];case 2:t=n.sent();this.orgAvailable=t.result;console.log("response",this.orgAvailable);return[3,4];case 3:i=n.sent();this.orgAvailable="UNKNOWN";return[3,4];case 4:this.checkingOrg=false;return[2]}}))}))};e.prototype.render=function(){var e=this;if(!this.visible){return n("div",{style:{display:"none"}},"Authenticated")}if(this.isAuthenticated){return n("verdocs-button",{label:"Sign Out",disabled:this.submitting,onClick:function(){return e.handleLogout()},style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}})}if(this.displayMode==="signup"){var t=this.submitting||!this.first||!this.last||!this.username||!this.password||!this.orgname||this.orgAvailable!=="AVAILABLE";return n("div",{class:"form"},n("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),n("h3",null,"Sign up for a trial account"),n("h4",null,"Already have an account?",n("verdocs-button",{label:"Log In",variant:"text",onClick:function(){return e.displayMode="login"},disabled:this.submitting})),this.signupStep===1&&n("form",{onSubmit:function(){return e.handleSignup()}},n("div",{style:{display:"flex",flexDirection:"row",columnGap:"20px"}},n("verdocs-text-input",{label:"First Name",autocomplete:"first",required:true,value:this.first,onInput:function(t){return e.first=t.target.value},disabled:this.submitting}),n("verdocs-text-input",{label:"Last Name",autocomplete:"last",required:true,value:this.last,onInput:function(t){return e.last=t.target.value},disabled:this.submitting})),n("verdocs-text-input",{label:"Email",autocomplete:"email",required:true,value:this.username,onInput:function(t){return e.username=t.target.value},disabled:this.submitting}),n("verdocs-text-input",{label:"Phone #",autocomplete:"phone",value:this.phone,onInput:function(t){return e.phone=t.target.value},disabled:this.submitting}),n("verdocs-text-input",{label:"Password",type:"password",required:true,autocomplete:"current-password",value:this.password,onInput:function(t){return e.password=t.target.value},disabled:this.submitting}),n("div",{style:{display:"flex",flexDirection:"row",gap:"10px",alignItems:"center"}},n("verdocs-text-input",{label:"Organization Name",autocomplete:"org",required:true,value:this.orgname,onInput:function(t){return e.checkAvailability(t.target.value)},disabled:this.submitting,style:{flex:"1"},onBlur:function(){console.log("blur")}}),!this.checkingOrg&&this.orgAvailable==="AVAILABLE"&&n("verdocs-help-icon",{icon:g,text:"Organization name is available."}),!this.checkingOrg&&this.orgAvailable==="TAKEN"&&n("verdocs-help-icon",{icon:v,text:"Organization already registered."}),!this.checkingOrg&&this.orgAvailable==="UNKNOWN"&&n("verdocs-help-icon",{icon:m,text:"Organization name must be unique."}),this.checkingOrg&&n("verdocs-spinner",{mode:"dark",size:24})),n("div",{style:{marginTop:"30px"}}),n("verdocs-button",{label:"Next",disabled:t,onClick:function(){return e.signupStep=2},style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}})),this.signupStep===2&&n("form",{onSubmit:function(){return e.handleSignup()}},n("verdocs-text-input",{label:"How did you hear about Verdocs?",value:this.howHear,onInput:function(t){return e.howHear=t.target.value},disabled:this.submitting}),n("verdocs-select-input",{label:"Your Industry",options:b,value:this.industry,onInput:function(t){return e.industry=t.target.value},disabled:this.submitting}),n("verdocs-select-input",{label:"Company Size",options:x,value:this.companySize,onInput:function(t){return e.companySize=t.target.value},disabled:this.submitting}),n("verdocs-select-input",{label:"Purpose",options:y,value:this.reason,onInput:function(t){return e.reason=t.target.value},disabled:this.submitting}),n("div",{style:{marginTop:"30px"}}),n("verdocs-button",{label:"Create Account",disabled:this.submitting,onClick:function(){return e.handleSignup()},style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}})),this.signupStep===3&&n("form",{onSubmit:function(){return e.handleSignup()}},n("p",null,"Please check your e-mail inbox for a verification code and follow the instructions provided."),n("p",null,n("em",null,"Verification messages may take up to 1 hour to arrive. If you do not receive the invitation, ",n("a",{href:"#"},"Click Here")," to resend it. Be sure to check your spam folder.")),n("div",{style:{display:"flex",flexDirection:"row",gap:"20px"}},n("verdocs-button",{label:"Back",disabled:this.submitting,onClick:function(){e.signupStep=2},style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}}),n("verdocs-button",{label:"Go to Dashboard",disabled:true,onClick:function(){return e.handleSignup()},style:{display:"flex",justifyContent:"center",margin:"30px auto 0"}}))))}if(this.displayMode==="forgot"){return n("div",{class:"form"},n("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),n("h3",null,"Forgot your password?"),n("p",null,"Enter your e-mail address below, and reset instructions will be sent to your Inbox."),n("p",null,n("em",null,"Please allow up to 24 hours for delivery, and check your spam folder if you do not receive the message. ")),n("form",{onSubmit:function(){return e.handleSignup()}},n("verdocs-text-input",{label:"Email",autocomplete:"email",required:true,value:this.username,onInput:function(t){return e.username=t.target.value},disabled:this.submitting}),n("div",{style:{marginTop:"30px"}}),n("div",{class:"buttons"},n("verdocs-button",{label:"Cancel",variant:"outline",disabled:this.submitting,onClick:function(){return e.displayMode="login"}}),n("verdocs-button",{label:"Reset",disabled:this.submitting,onClick:function(){return e.handleReset()}}))))}if(this.displayMode==="verify"){return n("div",{class:"form"},n("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),n("h3",null,"Please Verify your Email Address"),n("p",null,"Check your e-mail inbox for a verification email, and follow the instructions provided."),n("p",null,n("em",null,"Please allow up to 24 hours for delivery, and check your spam folder if you do not receive the message. ")),n("div",{class:"buttons"},n("verdocs-button",{label:"Sign Out",variant:"outline",disabled:this.submitting,onClick:function(){e.username="";e.password="";e.cancelRecheckTimer();e.displayMode="login"}}),n("verdocs-button",{label:"Resend Email",disabled:this.resendDisabled,onClick:function(){return e.handleResend()}})))}return n("div",{class:"form"},n("img",{src:this.logo,alt:"Verdocs Logo",class:"logo"}),n("h3",null,"Log in to your account"),n("h4",null,"Don't have an account?",n("verdocs-button",{label:"Sign Up",variant:"text",onClick:function(){e.displayMode="signup";e.signupStep=1},disabled:this.submitting})),n("form",{onSubmit:function(){return e.loginAndCheckVerification()}},n("verdocs-text-input",{label:"Email",autocomplete:"username",value:this.username,onInput:function(t){return e.username=t.target.value},disabled:this.submitting}),n("verdocs-text-input",{label:"Password",type:"password",autocomplete:"current-password",value:this.password,onInput:function(t){return e.password=t.target.value},disabled:this.submitting}),n("verdocs-button",{label:"Forgot Your Password?",variant:"text",onClick:function(){return e.displayMode="forgot"},disabled:this.submitting,style:{display:"flex",justifyContent:"center",margin:"10px auto 20px"}}),n("verdocs-button",{label:"Login",disabled:this.submitting,onClick:function(){return e.loginAndCheckVerification()},style:{display:"flex",justifyContent:"center",margin:"10px auto 0"}})))};return e}());w.style=p}}}));
@@ -1 +1 @@
1
- import{p as e,b as t}from"./p-6d3e0994.js";(()=>{const t=import.meta.url,d={};return""!==t&&(d.resourcesUrl=new URL(".",t).href),e(d)})().then((e=>t(JSON.parse('[["p-f164307e",[[0,"verdocs-build",{"endpoint":[16],"templateId":[1,"template-id"],"step":[513],"template":[32]}]]],["p-5080cdfc",[[0,"ipc-test",{"endpoint":[16],"templateId":[1,"template-id"]}]]],["p-dd5460ea",[[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]}]]],["p-a00ea81e",[[0,"verdocs-field-attachment",{"templateid":[1],"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"xscale":[2],"yscale":[2],"rerender":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-b48a2f14",[[0,"verdocs-field-initial",{"templateid":[1],"field":[16],"disabled":[4],"initials":[1],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"rerender":[2],"tempInitials":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-cef5dd3e",[[0,"verdocs-field-signature",{"templateid":[1],"field":[16],"name":[1],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"rerender":[2],"tempSignature":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-4c9d9cd6",[[0,"verdocs-templates-list",{"endpoint":[16],"sharing":[1537],"starred":[1537],"sort":[1537],"name":[1537],"allowedActions":[1040],"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]}]]],["p-42efc13c",[[0,"verdocs-field-checkbox",{"templateid":[1],"field":[16],"option":[2],"disabled":[4],"done":[4],"roleindex":[2],"editable":[4],"moveable":[4],"rerender":[2],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-e2d0d0cc",[[0,"verdocs-field-date",{"templateid":[1],"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"rerender":[2],"containerId":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-675c95e8",[[0,"verdocs-field-dropdown",{"templateid":[1],"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"rerender":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-8e83ea1e",[[0,"verdocs-field-radio-button",{"templateid":[1],"field":[16],"option":[2],"disabled":[4],"done":[4],"roleindex":[2],"editable":[4],"moveable":[4],"rerender":[2],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-2ea70113",[[0,"verdocs-field-textarea",{"endpoint":[16],"templateid":[1],"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"xscale":[2],"yscale":[2],"rerender":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-4b0a633d",[[0,"verdocs-field-textbox",{"endpoint":[16],"templateid":[1],"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"xscale":[2],"yscale":[2],"rerender":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-7d6c3d5b",[[0,"verdocs-field-timestamp",{"templateid":[1],"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"rerender":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-986f78e3",[[0,"verdocs-sign",{"envelopeId":[1,"envelope-id"],"roleId":[1,"role-id"],"inviteCode":[1,"invite-code"],"headerTargetId":[1,"header-target-id"],"envelope":[32],"roleNames":[32],"sortedRecipients":[32],"recipient":[32],"signerToken":[32],"hasSignature":[32],"nextButtonLabel":[32],"nextSubmits":[32],"errorMessage":[32],"focusedField":[32],"submitting":[32],"isDone":[32],"showDone":[32],"finishLater":[32],"showFinishLater":[32],"agreed":[32],"documentsSingularPlural":[32]}]]],["p-07dac402",[[0,"verdocs-template-reminders",{"endpoint":[16],"templateId":[1,"template-id"],"showPlanBlocker":[32],"sendReminders":[32],"firstReminderDays":[32],"reminderDays":[32],"dirty":[32]}]]],["p-3a7d47ba",[[0,"verdocs-envelope-recipient-link",{"endpoint":[16],"envelopeId":[1,"envelope-id"],"roleName":[1,"role-name"],"isOpen":[32],"loading":[32],"gettingLink":[32],"link":[32]}],[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],"loading":[32],"recipientStatusIcons":[32],"containerId":[32],"gettingLinks":[32],"links":[32]}]]],["p-4911d1f9",[[0,"verdocs-envelope-sidebar",{"endpoint":[16],"envelopeId":[1,"envelope-id"],"activeTab":[32],"panelOpen":[32],"showManageDialog":[32],"showRecipientDialog":[32],"showCancelDialog":[32],"loading":[32]}]]],["p-17d27ba8",[[0,"verdocs-template-name",{"endpoint":[16],"templateId":[1,"template-id"],"name":[32],"dirty":[32]}]]],["p-9964cc5e",[[0,"verdocs-auth",{"endpoint":[16],"visible":[4],"logo":[1],"isAuthenticated":[32],"displayMode":[32],"orgname":[32],"orgAvailable":[32],"first":[32],"last":[32],"username":[32],"phone":[32],"password":[32],"submitting":[32],"activeSession":[32],"accountType":[32],"howHear":[32],"industry":[32],"companySize":[32],"reason":[32],"signupStep":[32],"resendDisabled":[32]}]]],["p-c98bb9f4",[[0,"verdocs-search",{"endpoint":[16]}]]],["p-0331a582",[[0,"verdocs-send",{"endpoint":[16],"templateId":[1,"template-id"],"containerId":[32],"rolesAtLevel":[32],"showPickerForId":[32],"sessionContacts":[32],"rolesCompleted":[32],"reset":[64]}]]],["p-ebe13a66",[[0,"verdocs-template-visibility",{"endpoint":[16],"templateId":[1,"template-id"],"dirty":[32],"personal":[32],"public":[32]}]]],["p-752fe35b",[[0,"verdocs-preview",{"endpoint":[16],"templateId":[1,"template-id"]}]]],["p-1d7846c9",[[0,"verdocs-activity-box",{"endpoint":[16],"items":[2],"view":[1],"header":[1],"title":[32],"count":[32],"loading":[32],"entries":[32]}]]],["p-511d7177",[[0,"verdocs-floating-menu",{"options":[16]}]]],["p-3eacc51e",[[0,"verdocs-kba-dialog",{"step":[2],"steps":[2],"helptitle":[1],"helptext":[1],"mode":[1],"label":[1],"placeholder":[1],"choices":[16],"response":[32]}]]],["p-cd92a456",[[0,"verdocs-field-payment",{"templateid":[1],"field":[16],"disabled":[4],"fields":[16],"pageNum":[2,"page-num"],"roleName":[1,"role-name"],"fieldId":[1,"field-id"],"recipients":[8],"selectedRoleName":[1,"selected-role-name"],"pdfPages":[16],"currentSignature":[1,"current-signature"],"currentSignatureId":[1,"current-signature-id"],"currentInitial":[1,"current-initial"],"currentInitialId":[1,"current-initial-id"],"focused":[4],"signed":[4],"rerender":[2],"roleindex":[2],"preparedMessage":[32],"signatureUrl":[32],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-70a1cb8d",[[0,"verdocs-organization-card",{"organization":[16]}]]],["p-e2fa3015",[[0,"verdocs-search-tabs",{"selected":[32]}]]],["p-dbfa7aea",[[0,"verdocs-template-card",{"template":[16]}]]],["p-460b9fab",[[0,"verdocs-template-tags",{"tags":[16]}]]],["p-966f84ec",[[0,"verdocs-toggle",{"options":[16],"theme":[1],"selectedOption":[32]}]]],["p-606e0405",[[0,"verdocs-button",{"label":[1],"startIcon":[1,"start-icon"],"endIcon":[1,"end-icon"],"size":[1],"type":[1],"variant":[1],"disabled":[4]}]]],["p-f8a2988e",[[0,"verdocs-view",{"endpoint":[16],"envelopeId":[1,"envelope-id"],"headerTargetId":[1,"header-target-id"],"canceling":[32],"envelope":[32],"roleNames":[32],"showCancelDone":[32]}]]],["p-c3f5b07e",[[0,"verdocs-initial-dialog",{"initials":[1],"fontLoaded":[32],"enteredInitials":[32],"mode":[32]}]]],["p-9d2b75ac",[[0,"verdocs-signature-dialog",{"name":[1],"fontLoaded":[32],"enteredName":[32],"mode":[32]}]]],["p-fd059523",[[0,"verdocs-contact-picker",{"endpoint":[16],"templateRole":[16],"contactSuggestions":[16],"name":[32],"email":[32],"phone":[32],"message":[32],"showSuggestions":[32],"showMessage":[32],"delegator":[32],"nameFieldId":[32],"emailFieldId":[32],"phoneFieldId":[32]}]]],["p-c3c0376a",[[0,"verdocs-upload-dialog",{"draggingOver":[32],"decodedFiles":[32]}]]],["p-a8cf70dd",[[0,"verdocs-status-indicator",{"size":[1],"theme":[1],"status":[1],"envelope":[16],"isOpen":[32],"containerId":[32]}]]],["p-3dcf8e41",[[0,"verdocs-template-star",{"endpoint":[16],"template":[1040],"updating":[32]}]]],["p-c391fa41",[[0,"verdocs-select-input",{"value":[1],"label":[1],"options":[16],"disabled":[4]}],[0,"verdocs-checkbox",{"checked":[4],"name":[1],"label":[1],"value":[1],"theme":[1],"disabled":[4]}],[0,"verdocs-component-error",{"message":[1]}],[0,"verdocs-text-input",{"value":[1537],"label":[1],"placeholder":[1],"autocomplete":[1],"helpText":[1,"help-text"],"clearable":[4],"type":[1],"disabled":[4],"required":[4]}],[0,"verdocs-help-icon",{"text":[1],"containerId":[32]}]]],["p-b49e1610",[[0,"verdocs-template-attachments",{"endpoint":[16],"templateId":[1,"template-id"],"uploading":[32],"progressLabel":[32],"progressPercent":[32],"showDeleteError":[32],"confirmDeleteDocument":[32],"store":[32]}],[0,"verdocs-template-create",{"endpoint":[16],"file":[32],"creating":[32],"progressLabel":[32],"progressPercent":[32]}]]],["p-607a2dfe",[[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]}]]],["p-bad42f2d",[[0,"verdocs-toggle-button",{"active":[4],"icon":[1],"label":[1],"size":[1],"_active":[32]}]]],["p-1fea7a7e",[[0,"verdocs-quick-functions",{"endpoint":[16]}],[0,"verdocs-search-activity",{"endpoint":[16],"type":[1],"options":[8],"emptyMessage":[32],"authFailure":[32],"title":[32],"recent":[32],"saved":[32],"starred":[32]}],[0,"verdocs-search-box",{"endpoint":[16],"placeholder":[1],"type":[1],"query":[1],"grabsFocus":[4,"grabs-focus"],"focusField":[64]}]]],["p-fea16530",[[0,"verdocs-radio-button",{"checked":[4],"name":[1],"value":[1],"disabled":[4]}]]],["p-453bb85d",[[0,"verdocs-file-chooser",{"endpoint":[16],"file":[32]}],[0,"verdocs-progress-bar",{"label":[1],"showPercent":[4,"show-percent"],"percent":[2]}]]],["p-0378a336",[[0,"verdocs-dropdown",{"options":[16],"open":[32]}]]],["p-b4ac7a21",[[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]}],[0,"verdocs-spinner",{"size":[2],"mode":[1]}]]],["p-aac295bd",[[0,"verdocs-template-document-page",{"endpoint":[16],"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]}],[0,"verdocs-toolbar-icon",{"text":[1],"icon":[1],"placement":[1],"containerId":[32]}]]],["p-b35f33a8",[[0,"verdocs-ok-dialog",{"heading":[1],"message":[1],"showCancel":[4,"show-cancel"],"closed":[32]}]]],["p-5f57ec68",[[0,"verdocs-loader"]]],["p-0d590026",[[0,"verdocs-template-roles",{"endpoint":[16],"templateId":[1,"template-id"],"showingRoleDialog":[32],"showingSenderDialog":[32],"sender":[32]}],[0,"verdocs-template-fields",{"endpoint":[16],"templateId":[1,"template-id"],"toolbarTargetId":[1,"toolbar-target-id"],"placing":[32],"showMustSelectRole":[32],"selectedRoleName":[32],"rerender":[32]},[[4,"keydown","handleKeyDown"]]],[0,"verdocs-template-role-properties",{"endpoint":[16],"templateId":[1,"template-id"],"roleName":[1,"role-name"],"sender":[1],"dirty":[32],"saving":[32],"name":[32],"type":[32],"fullName":[32],"email":[32],"phone":[32],"allowDelegation":[32]}],[0,"verdocs-template-sender",{"endpoint":[16],"templateId":[1,"template-id"],"sender":[1],"saving":[32]}]]],["p-bc943a21",[[0,"verdocs-template-field-properties",{"endpoint":[16],"templateId":[1,"template-id"],"fieldName":[1,"field-name"],"helpText":[1,"help-text"],"dirty":[32],"loading":[32],"type":[32],"setting":[32],"name":[32],"roleName":[32],"group":[32],"fieldType":[32],"required":[32],"options":[32],"placeholder":[32],"value":[32],"leading":[32],"showingHelp":[32]}],[4,"verdocs-button-panel",{"icon":[1],"showPanel":[64],"hidePanel":[64],"toggle":[64]}]]]]'),e)));
1
+ import{p as e,b as t}from"./p-6d3e0994.js";(()=>{const t=import.meta.url,d={};return""!==t&&(d.resourcesUrl=new URL(".",t).href),e(d)})().then((e=>t(JSON.parse('[["p-0fecb805",[[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]}]]],["p-f164307e",[[0,"verdocs-build",{"endpoint":[16],"templateId":[1,"template-id"],"step":[513],"template":[32]}]]],["p-5080cdfc",[[0,"ipc-test",{"endpoint":[16],"templateId":[1,"template-id"]}]]],["p-dd5460ea",[[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]}]]],["p-a00ea81e",[[0,"verdocs-field-attachment",{"templateid":[1],"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"xscale":[2],"yscale":[2],"rerender":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-b48a2f14",[[0,"verdocs-field-initial",{"templateid":[1],"field":[16],"disabled":[4],"initials":[1],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"rerender":[2],"tempInitials":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-cef5dd3e",[[0,"verdocs-field-signature",{"templateid":[1],"field":[16],"name":[1],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"rerender":[2],"tempSignature":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-4c9d9cd6",[[0,"verdocs-templates-list",{"endpoint":[16],"sharing":[1537],"starred":[1537],"sort":[1537],"name":[1537],"allowedActions":[1040],"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]}]]],["p-42efc13c",[[0,"verdocs-field-checkbox",{"templateid":[1],"field":[16],"option":[2],"disabled":[4],"done":[4],"roleindex":[2],"editable":[4],"moveable":[4],"rerender":[2],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-e2d0d0cc",[[0,"verdocs-field-date",{"templateid":[1],"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"rerender":[2],"containerId":[32],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-675c95e8",[[0,"verdocs-field-dropdown",{"templateid":[1],"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"rerender":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-8e83ea1e",[[0,"verdocs-field-radio-button",{"templateid":[1],"field":[16],"option":[2],"disabled":[4],"done":[4],"roleindex":[2],"editable":[4],"moveable":[4],"rerender":[2],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-2ea70113",[[0,"verdocs-field-textarea",{"endpoint":[16],"templateid":[1],"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"xscale":[2],"yscale":[2],"rerender":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-4b0a633d",[[0,"verdocs-field-textbox",{"endpoint":[16],"templateid":[1],"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"xscale":[2],"yscale":[2],"rerender":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-7d6c3d5b",[[0,"verdocs-field-timestamp",{"templateid":[1],"field":[16],"disabled":[4],"editable":[4],"moveable":[4],"done":[4],"roleindex":[2],"rerender":[2],"focusField":[64],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-ce22913a",[[0,"verdocs-settings",{"endpoint":[16],"tab":[32]}]]],["p-986f78e3",[[0,"verdocs-sign",{"envelopeId":[1,"envelope-id"],"roleId":[1,"role-id"],"inviteCode":[1,"invite-code"],"headerTargetId":[1,"header-target-id"],"envelope":[32],"roleNames":[32],"sortedRecipients":[32],"recipient":[32],"signerToken":[32],"hasSignature":[32],"nextButtonLabel":[32],"nextSubmits":[32],"errorMessage":[32],"focusedField":[32],"submitting":[32],"isDone":[32],"showDone":[32],"finishLater":[32],"showFinishLater":[32],"agreed":[32],"documentsSingularPlural":[32]}]]],["p-07dac402",[[0,"verdocs-template-reminders",{"endpoint":[16],"templateId":[1,"template-id"],"showPlanBlocker":[32],"sendReminders":[32],"firstReminderDays":[32],"reminderDays":[32],"dirty":[32]}]]],["p-e9d2b68a",[[0,"verdocs-auth",{"endpoint":[16],"visible":[4],"logo":[1],"isAuthenticated":[32],"displayMode":[32],"orgname":[32],"orgAvailable":[32],"first":[32],"last":[32],"username":[32],"phone":[32],"password":[32],"submitting":[32],"activeSession":[32],"accountType":[32],"howHear":[32],"industry":[32],"companySize":[32],"reason":[32],"signupStep":[32],"resendDisabled":[32],"checkingOrg":[32]}]]],["p-4911d1f9",[[0,"verdocs-envelope-sidebar",{"endpoint":[16],"envelopeId":[1,"envelope-id"],"activeTab":[32],"panelOpen":[32],"showManageDialog":[32],"showRecipientDialog":[32],"showCancelDialog":[32],"loading":[32]}]]],["p-17d27ba8",[[0,"verdocs-template-name",{"endpoint":[16],"templateId":[1,"template-id"],"name":[32],"dirty":[32]}]]],["p-c98bb9f4",[[0,"verdocs-search",{"endpoint":[16]}]]],["p-0331a582",[[0,"verdocs-send",{"endpoint":[16],"templateId":[1,"template-id"],"containerId":[32],"rolesAtLevel":[32],"showPickerForId":[32],"sessionContacts":[32],"rolesCompleted":[32],"reset":[64]}]]],["p-ebe13a66",[[0,"verdocs-template-visibility",{"endpoint":[16],"templateId":[1,"template-id"],"dirty":[32],"personal":[32],"public":[32]}]]],["p-752fe35b",[[0,"verdocs-preview",{"endpoint":[16],"templateId":[1,"template-id"]}]]],["p-1d7846c9",[[0,"verdocs-activity-box",{"endpoint":[16],"items":[2],"view":[1],"header":[1],"title":[32],"count":[32],"loading":[32],"entries":[32]}]]],["p-0378a336",[[0,"verdocs-dropdown",{"options":[16],"open":[32]}]]],["p-aac295bd",[[0,"verdocs-template-document-page",{"endpoint":[16],"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]}],[0,"verdocs-toolbar-icon",{"text":[1],"icon":[1],"placement":[1],"containerId":[32]}]]],["p-511d7177",[[0,"verdocs-floating-menu",{"options":[16]}]]],["p-3eacc51e",[[0,"verdocs-kba-dialog",{"step":[2],"steps":[2],"helptitle":[1],"helptext":[1],"mode":[1],"label":[1],"placeholder":[1],"choices":[16],"response":[32]}]]],["p-cd92a456",[[0,"verdocs-field-payment",{"templateid":[1],"field":[16],"disabled":[4],"fields":[16],"pageNum":[2,"page-num"],"roleName":[1,"role-name"],"fieldId":[1,"field-id"],"recipients":[8],"selectedRoleName":[1,"selected-role-name"],"pdfPages":[16],"currentSignature":[1,"current-signature"],"currentSignatureId":[1,"current-signature-id"],"currentInitial":[1,"current-initial"],"currentInitialId":[1,"current-initial-id"],"focused":[4],"signed":[4],"rerender":[2],"roleindex":[2],"preparedMessage":[32],"signatureUrl":[32],"showSettingsPanel":[64],"hideSettingsPanel":[64]}]]],["p-70a1cb8d",[[0,"verdocs-organization-card",{"organization":[16]}]]],["p-e2fa3015",[[0,"verdocs-search-tabs",{"selected":[32]}]]],["p-dbfa7aea",[[0,"verdocs-template-card",{"template":[16]}]]],["p-460b9fab",[[0,"verdocs-template-tags",{"tags":[16]}]]],["p-966f84ec",[[0,"verdocs-toggle",{"options":[16],"theme":[1],"selectedOption":[32]}]]],["p-607a2dfe",[[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]}]]],["p-f8a2988e",[[0,"verdocs-view",{"endpoint":[16],"envelopeId":[1,"envelope-id"],"headerTargetId":[1,"header-target-id"],"canceling":[32],"envelope":[32],"roleNames":[32],"showCancelDone":[32]}]]],["p-c3f5b07e",[[0,"verdocs-initial-dialog",{"initials":[1],"fontLoaded":[32],"enteredInitials":[32],"mode":[32]}]]],["p-9d2b75ac",[[0,"verdocs-signature-dialog",{"name":[1],"fontLoaded":[32],"enteredName":[32],"mode":[32]}]]],["p-fd059523",[[0,"verdocs-contact-picker",{"endpoint":[16],"templateRole":[16],"contactSuggestions":[16],"name":[32],"email":[32],"phone":[32],"message":[32],"showSuggestions":[32],"showMessage":[32],"delegator":[32],"nameFieldId":[32],"emailFieldId":[32],"phoneFieldId":[32]}]]],["p-c3c0376a",[[0,"verdocs-upload-dialog",{"draggingOver":[32],"decodedFiles":[32]}]]],["p-a8cf70dd",[[0,"verdocs-status-indicator",{"size":[1],"theme":[1],"status":[1],"envelope":[16],"isOpen":[32],"containerId":[32]}]]],["p-3dcf8e41",[[0,"verdocs-template-star",{"endpoint":[16],"template":[1040],"updating":[32]}]]],["p-b49e1610",[[0,"verdocs-template-attachments",{"endpoint":[16],"templateId":[1,"template-id"],"uploading":[32],"progressLabel":[32],"progressPercent":[32],"showDeleteError":[32],"confirmDeleteDocument":[32],"store":[32]}],[0,"verdocs-template-create",{"endpoint":[16],"file":[32],"creating":[32],"progressLabel":[32],"progressPercent":[32]}]]],["p-229a6849",[[0,"verdocs-settings-organization",{"endpoint":[16],"valid":[32],"dirty":[32],"submitting":[32],"name":[32],"business_name":[32],"contact_email":[32],"phone":[32],"address":[32],"address2":[32],"timezone":[32],"url":[32]}],[0,"verdocs-settings-profile",{"endpoint":[16],"valid":[32],"dirty":[32],"submitting":[32],"first_name":[32],"last_name":[32],"email":[32],"phone":[32]}]]],["p-3a7d47ba",[[0,"verdocs-envelope-recipient-link",{"endpoint":[16],"envelopeId":[1,"envelope-id"],"roleName":[1,"role-name"],"isOpen":[32],"loading":[32],"gettingLink":[32],"link":[32]}],[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],"loading":[32],"recipientStatusIcons":[32],"containerId":[32],"gettingLinks":[32],"links":[32]}]]],["p-bad42f2d",[[0,"verdocs-toggle-button",{"active":[4],"icon":[1],"label":[1],"size":[1],"_active":[32]}]]],["p-1fea7a7e",[[0,"verdocs-quick-functions",{"endpoint":[16]}],[0,"verdocs-search-activity",{"endpoint":[16],"type":[1],"options":[8],"emptyMessage":[32],"authFailure":[32],"title":[32],"recent":[32],"saved":[32],"starred":[32]}],[0,"verdocs-search-box",{"endpoint":[16],"placeholder":[1],"type":[1],"query":[1],"grabsFocus":[4,"grabs-focus"],"focusField":[64]}]]],["p-fea16530",[[0,"verdocs-radio-button",{"checked":[4],"name":[1],"value":[1],"disabled":[4]}]]],["p-453bb85d",[[0,"verdocs-file-chooser",{"endpoint":[16],"file":[32]}],[0,"verdocs-progress-bar",{"label":[1],"showPercent":[4,"show-percent"],"percent":[2]}]]],["p-b4ac7a21",[[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]}],[0,"verdocs-spinner",{"size":[2],"mode":[1]}]]],["p-b35f33a8",[[0,"verdocs-ok-dialog",{"heading":[1],"message":[1],"showCancel":[4,"show-cancel"],"closed":[32]}]]],["p-5f57ec68",[[0,"verdocs-loader"]]],["p-40361f22",[[0,"verdocs-checkbox",{"checked":[4],"name":[1],"label":[1],"value":[1],"theme":[1],"disabled":[4]}],[0,"verdocs-select-input",{"value":[1],"label":[1],"options":[16],"disabled":[4]}],[0,"verdocs-component-error",{"message":[1]}],[0,"verdocs-text-input",{"value":[1537],"label":[1],"placeholder":[1],"autocomplete":[1],"helpText":[1,"help-text"],"clearable":[4],"type":[1],"disabled":[4],"required":[4]}]]],["p-0d590026",[[0,"verdocs-template-roles",{"endpoint":[16],"templateId":[1,"template-id"],"showingRoleDialog":[32],"showingSenderDialog":[32],"sender":[32]}],[0,"verdocs-template-fields",{"endpoint":[16],"templateId":[1,"template-id"],"toolbarTargetId":[1,"toolbar-target-id"],"placing":[32],"showMustSelectRole":[32],"selectedRoleName":[32],"rerender":[32]},[[4,"keydown","handleKeyDown"]]],[0,"verdocs-template-role-properties",{"endpoint":[16],"templateId":[1,"template-id"],"roleName":[1,"role-name"],"sender":[1],"dirty":[32],"saving":[32],"name":[32],"type":[32],"fullName":[32],"email":[32],"phone":[32],"allowDelegation":[32]}],[0,"verdocs-template-sender",{"endpoint":[16],"templateId":[1,"template-id"],"sender":[1],"saving":[32]}]]],["p-bc943a21",[[0,"verdocs-template-field-properties",{"endpoint":[16],"templateId":[1,"template-id"],"fieldName":[1,"field-name"],"helpText":[1,"help-text"],"dirty":[32],"loading":[32],"type":[32],"setting":[32],"name":[32],"roleName":[32],"group":[32],"fieldType":[32],"required":[32],"options":[32],"placeholder":[32],"value":[32],"leading":[32],"showingHelp":[32]}],[4,"verdocs-button-panel",{"icon":[1],"showPanel":[64],"hidePanel":[64],"toggle":[64]}]]]]'),e)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdocs/web-sdk",
3
- "version": "2.1.2",
3
+ "version": "2.2.0",
4
4
  "private": false,
5
5
  "description": "Verdocs Web SDK",
6
6
  "license": "MIT",
@@ -33,7 +33,7 @@
33
33
  "@stencil/core": "2.20.0",
34
34
  "@stencil/store": "^2.0.4",
35
35
  "@svgdotjs/svg.js": "^3.2.0",
36
- "@verdocs/js-sdk": "^3.9.6",
36
+ "@verdocs/js-sdk": "^3.9.7",
37
37
  "choices.js": "^10.2.0",
38
38
  "date-fns": "^2.30.0",
39
39
  "flatpickr": "^4.6.13",
@@ -41,7 +41,8 @@
41
41
  "jszip": "^3.10.1",
42
42
  "patch-package": "^6.5.1",
43
43
  "uuid": "^9.0.1",
44
- "workflow-svg.js": "^3.0.2"
44
+ "workflow-svg.js": "^3.0.2",
45
+ "zod": "^3.22.2"
45
46
  },
46
47
  "devDependencies": {
47
48
  "@babel/core": "^7.20.12",
@@ -1,26 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-1d5fc518.js');
6
-
7
- const verdocsButtonCss = "verdocs-button button{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;text-transform:uppercase;-ms-flex-pack:center;justify-content:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;font-weight:700;cursor:pointer;margin:0}verdocs-button button:disabled{cursor:inherit;pointer-events:none}verdocs-button button .icon{margin:0 12px}verdocs-button button .icon svg{fill:#ffffff;display:block}verdocs-button button .button-label{padding:0 12px}verdocs-button button.small{height:34px;font-size:13px}verdocs-button button.small .icon{margin:0 4px}verdocs-button button.small .icon svg{margin:2px 0 0 0;height:20px}verdocs-button button.small .button-label{padding:0 4px}verdocs-button button.normal{height:44px;font-size:14px}verdocs-button button.normal .icon.start{margin:0 4px 0 8px}verdocs-button button.normal .icon.end{margin:0 8px 0 4px}verdocs-button button.normal .icon svg{margin:2px 0 0 0;height:22px}verdocs-button button.normal .button-label{padding:0 10px}verdocs-button button.medium{height:52px;font-size:16px}verdocs-button button.medium .icon.start{margin:0 0 0 18px}verdocs-button button.medium .icon.end{margin:0 18px 0 0}verdocs-button button.medium .icon svg{margin:2px 0 0 0;height:26px}verdocs-button button.medium .button-label{padding:0 20px}verdocs-button button.large{height:60px;font-size:20px}verdocs-button button.large .icon.start{margin:0 0 0 24px}verdocs-button button.large .icon.end{margin:0 24px 0 0}verdocs-button button.large .icon svg{margin:2px 0 0 0;height:32px}verdocs-button button.large .button-label{padding:0 34px}verdocs-button button.standard{background:#55bc81;border-radius:4px;outline:none;border:none;color:white}verdocs-button button.standard:disabled{background-color:#999999;cursor:default}verdocs-button button.standard:active:not([disabled]){-webkit-filter:brightness(110%);filter:brightness(110%)}verdocs-button button.text{color:#4c56cb;background:transparent;font-weight:500;padding:0 4px;outline:none;border:none}verdocs-button button.text:disabled{color:#999999}verdocs-button button.text:active:not([disabled]){-webkit-filter:brightness(130%);filter:brightness(130%)}verdocs-button button.text .icon svg{fill:#4c56cb}verdocs-button button.outline{border:1px solid #4c56cb;color:#4c56cb;outline:none;background:transparent;border-radius:4px;padding:0 20px}verdocs-button button.outline:disabled{color:#999999;border:1px solid #999999}verdocs-button button.outline:active{background:#4c56cb;color:white}verdocs-button button.outline .icon svg{fill:#4c56cb}";
8
-
9
- const VerdocsButton = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- this.label = undefined;
13
- this.startIcon = null;
14
- this.endIcon = null;
15
- this.size = 'normal';
16
- this.type = 'button';
17
- this.variant = 'standard';
18
- this.disabled = false;
19
- }
20
- render() {
21
- return (index.h("button", { disabled: this.disabled, type: this.type, class: `${this.variant} ${this.size} ${this.type}` }, this.startIcon ? index.h("span", { class: "icon start", innerHTML: this.startIcon }) : null, index.h("span", { class: "button-label" }, this.label), this.endIcon ? index.h("span", { class: "icon end", innerHTML: this.endIcon }) : null));
22
- }
23
- };
24
- VerdocsButton.style = verdocsButtonCss;
25
-
26
- exports.verdocs_button = VerdocsButton;
@@ -1,22 +0,0 @@
1
- import { r as registerInstance, h } from './index-151c0874.js';
2
-
3
- const verdocsButtonCss = "verdocs-button button{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;text-transform:uppercase;-ms-flex-pack:center;justify-content:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;font-weight:700;cursor:pointer;margin:0}verdocs-button button:disabled{cursor:inherit;pointer-events:none}verdocs-button button .icon{margin:0 12px}verdocs-button button .icon svg{fill:#ffffff;display:block}verdocs-button button .button-label{padding:0 12px}verdocs-button button.small{height:34px;font-size:13px}verdocs-button button.small .icon{margin:0 4px}verdocs-button button.small .icon svg{margin:2px 0 0 0;height:20px}verdocs-button button.small .button-label{padding:0 4px}verdocs-button button.normal{height:44px;font-size:14px}verdocs-button button.normal .icon.start{margin:0 4px 0 8px}verdocs-button button.normal .icon.end{margin:0 8px 0 4px}verdocs-button button.normal .icon svg{margin:2px 0 0 0;height:22px}verdocs-button button.normal .button-label{padding:0 10px}verdocs-button button.medium{height:52px;font-size:16px}verdocs-button button.medium .icon.start{margin:0 0 0 18px}verdocs-button button.medium .icon.end{margin:0 18px 0 0}verdocs-button button.medium .icon svg{margin:2px 0 0 0;height:26px}verdocs-button button.medium .button-label{padding:0 20px}verdocs-button button.large{height:60px;font-size:20px}verdocs-button button.large .icon.start{margin:0 0 0 24px}verdocs-button button.large .icon.end{margin:0 24px 0 0}verdocs-button button.large .icon svg{margin:2px 0 0 0;height:32px}verdocs-button button.large .button-label{padding:0 34px}verdocs-button button.standard{background:#55bc81;border-radius:4px;outline:none;border:none;color:white}verdocs-button button.standard:disabled{background-color:#999999;cursor:default}verdocs-button button.standard:active:not([disabled]){-webkit-filter:brightness(110%);filter:brightness(110%)}verdocs-button button.text{color:#4c56cb;background:transparent;font-weight:500;padding:0 4px;outline:none;border:none}verdocs-button button.text:disabled{color:#999999}verdocs-button button.text:active:not([disabled]){-webkit-filter:brightness(130%);filter:brightness(130%)}verdocs-button button.text .icon svg{fill:#4c56cb}verdocs-button button.outline{border:1px solid #4c56cb;color:#4c56cb;outline:none;background:transparent;border-radius:4px;padding:0 20px}verdocs-button button.outline:disabled{color:#999999;border:1px solid #999999}verdocs-button button.outline:active{background:#4c56cb;color:white}verdocs-button button.outline .icon svg{fill:#4c56cb}";
4
-
5
- const VerdocsButton = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- this.label = undefined;
9
- this.startIcon = null;
10
- this.endIcon = null;
11
- this.size = 'normal';
12
- this.type = 'button';
13
- this.variant = 'standard';
14
- this.disabled = false;
15
- }
16
- render() {
17
- return (h("button", { disabled: this.disabled, type: this.type, class: `${this.variant} ${this.size} ${this.type}` }, this.startIcon ? h("span", { class: "icon start", innerHTML: this.startIcon }) : null, h("span", { class: "button-label" }, this.label), this.endIcon ? h("span", { class: "icon end", innerHTML: this.endIcon }) : null));
18
- }
19
- };
20
- VerdocsButton.style = verdocsButtonCss;
21
-
22
- export { VerdocsButton as verdocs_button };
@@ -1 +0,0 @@
1
- import{r as registerInstance,h}from"./index-151c0874.js";var verdocsButtonCss='verdocs-button button{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;text-transform:uppercase;-ms-flex-pack:center;justify-content:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;font-weight:700;cursor:pointer;margin:0}verdocs-button button:disabled{cursor:inherit;pointer-events:none}verdocs-button button .icon{margin:0 12px}verdocs-button button .icon svg{fill:#ffffff;display:block}verdocs-button button .button-label{padding:0 12px}verdocs-button button.small{height:34px;font-size:13px}verdocs-button button.small .icon{margin:0 4px}verdocs-button button.small .icon svg{margin:2px 0 0 0;height:20px}verdocs-button button.small .button-label{padding:0 4px}verdocs-button button.normal{height:44px;font-size:14px}verdocs-button button.normal .icon.start{margin:0 4px 0 8px}verdocs-button button.normal .icon.end{margin:0 8px 0 4px}verdocs-button button.normal .icon svg{margin:2px 0 0 0;height:22px}verdocs-button button.normal .button-label{padding:0 10px}verdocs-button button.medium{height:52px;font-size:16px}verdocs-button button.medium .icon.start{margin:0 0 0 18px}verdocs-button button.medium .icon.end{margin:0 18px 0 0}verdocs-button button.medium .icon svg{margin:2px 0 0 0;height:26px}verdocs-button button.medium .button-label{padding:0 20px}verdocs-button button.large{height:60px;font-size:20px}verdocs-button button.large .icon.start{margin:0 0 0 24px}verdocs-button button.large .icon.end{margin:0 24px 0 0}verdocs-button button.large .icon svg{margin:2px 0 0 0;height:32px}verdocs-button button.large .button-label{padding:0 34px}verdocs-button button.standard{background:#55bc81;border-radius:4px;outline:none;border:none;color:white}verdocs-button button.standard:disabled{background-color:#999999;cursor:default}verdocs-button button.standard:active:not([disabled]){-webkit-filter:brightness(110%);filter:brightness(110%)}verdocs-button button.text{color:#4c56cb;background:transparent;font-weight:500;padding:0 4px;outline:none;border:none}verdocs-button button.text:disabled{color:#999999}verdocs-button button.text:active:not([disabled]){-webkit-filter:brightness(130%);filter:brightness(130%)}verdocs-button button.text .icon svg{fill:#4c56cb}verdocs-button button.outline{border:1px solid #4c56cb;color:#4c56cb;outline:none;background:transparent;border-radius:4px;padding:0 20px}verdocs-button button.outline:disabled{color:#999999;border:1px solid #999999}verdocs-button button.outline:active{background:#4c56cb;color:white}verdocs-button button.outline .icon svg{fill:#4c56cb}';var VerdocsButton=function(){function t(t){registerInstance(this,t);this.label=undefined;this.startIcon=null;this.endIcon=null;this.size="normal";this.type="button";this.variant="standard";this.disabled=false}t.prototype.render=function(){return h("button",{disabled:this.disabled,type:this.type,class:"".concat(this.variant," ").concat(this.size," ").concat(this.type)},this.startIcon?h("span",{class:"icon start",innerHTML:this.startIcon}):null,h("span",{class:"button-label"},this.label),this.endIcon?h("span",{class:"icon end",innerHTML:this.endIcon}):null)};return t}();VerdocsButton.style=verdocsButtonCss;export{VerdocsButton as verdocs_button};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host,a as getElement}from"./index-151c0874.js";import{c as createPopper}from"./popper-15e448b4.js";var verdocsCheckboxCss='@charset "UTF-8";verdocs-checkbox{line-height:18px;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-checkbox label>input[type=checkbox]{display:none}verdocs-checkbox label>input[type=checkbox]+*::before{content:"";width:20px;height:20px;-ms-flex-negative:0;flex-shrink:0;margin-right:8px;line-height:20px;border-radius:2px;border-style:solid;border-width:0.1rem;display:inline-block;vertical-align:bottom;border-color:#aeb4bf}verdocs-checkbox label>input[type=checkbox]:checked+*{color:#55bc81}verdocs-checkbox label>input[type=checkbox]:checked+*::before{content:"✓";color:white;text-align:center;background:#55bc81;border-color:#55bc81}verdocs-checkbox.dark label>input[type=checkbox]+*::before{border-color:#ffffff}verdocs-checkbox.dark label>input[type=checkbox]:checked+*::before{background:#55bc81;border-color:#55bc81}';var VerdocsCheckbox=function(){function e(e){registerInstance(this,e);this.checked=false;this.name="";this.label="";this.value="";this.theme="light";this.disabled=false}e.prototype.render=function(){var e;return h(Host,{class:(e={disabled:this.disabled},e[this.theme]=true,e)},h("label",null,h("input",{type:"checkbox",value:this.value,name:this.name,checked:this.checked,disabled:this.disabled}),h("span",null,this.label)))};return e}();VerdocsCheckbox.style=verdocsCheckboxCss;var verdocsComponentErrorCss='verdocs-component-error{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:-ms-flexbox;display:flex;padding:15px;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-component-error .inner{-ms-flex:1;flex:1;height:300px;display:-ms-flexbox;display:flex;font-size:18px;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 20px;background:#ffffff;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}';var VerdocsComponentError=function(){function e(e){registerInstance(this,e);this.message=""}e.prototype.render=function(){return h(Host,null,h("div",{class:"inner"},this.message))};return e}();VerdocsComponentError.style=verdocsComponentErrorCss;var verdocsHelpIconCss='verdocs-help-icon{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:inline-block;opacity:0.3;position:relative}verdocs-help-icon:hover{opacity:1}verdocs-help-icon .icon{display:inline-block}verdocs-help-icon .icon svg{fill:#5c6575}verdocs-help-icon .tooltip{display:none;min-width:200px;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;background:#ffffff;color:#33364b;max-width:240px;font-weight:bold;position:absolute;padding:5px 10px;font-size:13px;border-radius:4px;z-index:10000}verdocs-help-icon .tooltip .arrow,verdocs-help-icon .tooltip .arrow::before{position:absolute;width:8px;height:8px;background:inherit}verdocs-help-icon .tooltip .arrow{visibility:hidden;top:-4px}verdocs-help-icon .tooltip .arrow::before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}verdocs-help-icon .tooltip[data-show]{display:block}verdocs-help-icon .tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}verdocs-help-icon .tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}verdocs-help-icon .tooltip[data-popper-placement^=left]>.arrow{right:-4px}verdocs-help-icon .tooltip[data-popper-placement^=right]>.arrow{left:-4px}';var helpIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path d="M11.925 18q.55 0 .938-.387.387-.388.387-.938 0-.55-.387-.925-.388-.375-.938-.375-.55 0-.925.375t-.375.925q0 .55.375.938.375.387.925.387Zm-.95-3.85h1.95q0-.8.2-1.287.2-.488 1.025-1.288.65-.625 1.025-1.213.375-.587.375-1.437 0-1.425-1.025-2.175Q13.5 6 12.1 6q-1.425 0-2.35.775t-1.275 1.85l1.775.7q.125-.45.55-.975.425-.525 1.275-.525.725 0 1.1.412.375.413.375.888 0 .475-.287.9-.288.425-.713.775-1.075.95-1.325 1.475-.25.525-.25 1.875ZM12 22.2q-2.125 0-3.988-.8-1.862-.8-3.237-2.175Q3.4 17.85 2.6 15.988 1.8 14.125 1.8 12t.8-3.988q.8-1.862 2.175-3.237Q6.15 3.4 8.012 2.6 9.875 1.8 12 1.8t3.988.8q1.862.8 3.237 2.175Q20.6 6.15 21.4 8.012q.8 1.863.8 3.988t-.8 3.988q-.8 1.862-2.175 3.237Q17.85 20.6 15.988 21.4q-1.863.8-3.988.8Zm0-2.275q3.325 0 5.625-2.3t2.3-5.625q0-3.325-2.3-5.625T12 4.075q-3.325 0-5.625 2.3T4.075 12q0 3.325 2.3 5.625t5.625 2.3ZM12 12Z"/></svg>';var VerdocsHelpIcon=function(){function e(e){registerInstance(this,e);this.text="";this.containerId="verdocs-help-icon-".concat(Math.random().toString(36).substring(2,11))}e.prototype.componentDidLoad=function(){this.popperInstance=createPopper(this.icon,this.tooltip,{})};e.prototype.disconnectedCallback=function(){if(this.popperInstance){this.popperInstance.destroy();this.popperInstance=null}};e.prototype.show=function(){var e,t;(e=this.tooltip)===null||e===void 0?void 0:e.setAttribute("data-show","");(t=this.popperInstance)===null||t===void 0?void 0:t.update().catch((function(){}))};e.prototype.hide=function(){var e;(e=this.tooltip)===null||e===void 0?void 0:e.removeAttribute("data-show")};e.prototype.render=function(){var e=this;return h(Host,{class:{}},h("div",{"aria-describedby":this.containerId,class:"icon",innerHTML:helpIcon,onMouseEnter:function(){return e.show()},onFocus:function(){return e.show()},onMouseLeave:function(){return e.hide()},onBlur:function(){return e.hide()},ref:function(t){return e.icon=t}}),h("div",{id:this.containerId,role:"tooltip",class:"tooltip","data-popper-placement":"bottom",ref:function(t){return e.tooltip=t}},h("span",{innerHTML:this.text}),h("div",{"data-popper-arrow":"true",class:"arrow"})))};return e}();VerdocsHelpIcon.style=verdocsHelpIconCss;var verdocsSelectInputCss='verdocs-select-input{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 0 10px 0;display:block}verdocs-select-input .input-element{-webkit-box-sizing:border-box;box-sizing:border-box;background:#ffffff;border:1px solid #cccccc;border-radius:4px;background:#ffffff;color:#092c4c;width:100%;font-size:16px;height:28px;padding:2px 8px}verdocs-select-input .input-element::-webkit-input-placeholder{color:#aaaaaa;opacity:1}verdocs-select-input .input-element::-moz-placeholder{color:#aaaaaa;opacity:1}verdocs-select-input .input-element:-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-select-input .input-element::-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-select-input .input-element::placeholder{color:#aaaaaa;opacity:1}verdocs-select-input .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0}';var VerdocsSelectInput=function(){function e(e){registerInstance(this,e);this.value="";this.label="";this.options=undefined;this.disabled=false}e.prototype.render=function(){var e=this;return h(Host,{class:"input-field"},h("label",null,this.label?h("div",{class:"input-label"},this.label+":"):h("div",null),h("select",{class:"input-element",disabled:this.disabled},this.options.map((function(t){return h("option",{value:t.value,selected:t.value===e.value},t.label)})))))};return e}();VerdocsSelectInput.style=verdocsSelectInputCss;var verdocsTextInputCss='verdocs-text-input{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 0 10px 0;display:block}verdocs-text-input .input-element{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:16px;height:28px;padding:4px 12px;outline:none}verdocs-text-input .input-element:disabled{border:1px solid #aeb4bf;background:#f5f5fa}verdocs-text-input .input-element::-webkit-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-moz-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:focus{outline:1px solid #7d88ff}verdocs-text-input .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0}verdocs-text-input .required{color:red;margin-left:2px;display:inline-block}verdocs-text-input [data-lastpass-icon-root]{display:none !important}verdocs-text-input .input-container{position:relative}verdocs-text-input .clear{top:7px;right:5px;width:18px;height:18px;fill:#cccccc;position:absolute}verdocs-text-input .clear:hover{fill:#720101;cursor:pointer}';var ClearIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.881 122.88"><g><path fill-rule="evenodd" clip-rule="evenodd" d="M61.44,0c33.933,0,61.441,27.507,61.441,61.439 c0,33.933-27.508,61.44-61.441,61.44C27.508,122.88,0,95.372,0,61.439C0,27.507,27.508,0,61.44,0L61.44,0z M81.719,36.226 c1.363-1.363,3.572-1.363,4.936,0c1.363,1.363,1.363,3.573,0,4.936L66.375,61.439l20.279,20.278c1.363,1.363,1.363,3.573,0,4.937 c-1.363,1.362-3.572,1.362-4.936,0L61.44,66.376L41.162,86.654c-1.362,1.362-3.573,1.362-4.936,0c-1.363-1.363-1.363-3.573,0-4.937 l20.278-20.278L36.226,41.162c-1.363-1.363-1.363-3.573,0-4.936c1.363-1.363,3.573-1.363,4.936,0L61.44,56.504L81.719,36.226 L81.719,36.226z"/></g></svg>';var VerdocsTextInput=function(){function e(e){registerInstance(this,e);this.value="";this.label="";this.placeholder="";this.autocomplete="";this.helpText="";this.clearable=false;this.type="text";this.disabled=false;this.required=false}e.prototype.render=function(){var e=this;return h(Host,{class:"input-field"},h("label",null,this.label&&h("div",{class:"input-label"},this.label+":",this.required&&h("span",{class:"required"},"*")),h("div",{class:"input-container"},h("input",{type:this.type,value:this.value,required:this.required,class:"input-element","data-lpignore":"true",disabled:this.disabled,placeholder:this.placeholder,autoComplete:this.autocomplete,ref:function(t){return e.inputEl=t},onInput:function(t){return e.value=t.target.value}}),this.clearable&&this.value&&h("span",{innerHTML:ClearIcon,class:"clear",onClick:function(){setTimeout((function(){var t;e.value="";(t=e.inputEl)===null||t===void 0?void 0:t.setAttribute("value","");setTimeout((function(){var t,o;(t=e.inputEl)===null||t===void 0?void 0:t.dispatchEvent(new Event("focusout"));(o=e.inputEl)===null||o===void 0?void 0:o.blur()}),50)}),50)}})),this.helpText&&h("verdocs-help-icon",{text:this.helpText})))};Object.defineProperty(e.prototype,"hostEl",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();VerdocsTextInput.style=verdocsTextInputCss;export{VerdocsCheckbox as verdocs_checkbox,VerdocsComponentError as verdocs_component_error,VerdocsHelpIcon as verdocs_help_icon,VerdocsSelectInput as verdocs_select_input,VerdocsTextInput as verdocs_text_input};