@verdocs/web-sdk 2.2.6 → 2.2.8

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 (132) hide show
  1. package/dist/cjs/{Primitives-be5088cb.js → Primitives-a59870a2.js} +20 -0
  2. package/dist/cjs/{Profiles-244e8254.js → Profiles-54271244.js} +15 -0
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/verdocs-activity-box.cjs.entry.js +1 -1
  5. package/dist/cjs/verdocs-auth.cjs.entry.js +1 -1
  6. package/dist/cjs/{verdocs-button_2.cjs.entry.js → verdocs-button_3.cjs.entry.js} +48 -0
  7. package/dist/cjs/verdocs-checkbox_3.cjs.entry.js +56 -0
  8. package/dist/cjs/{verdocs-dialog_2.cjs.entry.js → verdocs-dialog_3.cjs.entry.js} +26 -2
  9. package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +2 -2
  10. package/dist/cjs/verdocs-pagination_3.cjs.entry.js +1 -1
  11. package/dist/cjs/verdocs-settings-api-keys_4.cjs.entry.js +160 -27
  12. package/dist/cjs/verdocs-sign.cjs.entry.js +1 -1
  13. package/dist/cjs/verdocs-template-fields_4.cjs.entry.js +1 -1
  14. package/dist/cjs/verdocs-templates-list.cjs.entry.js +2 -2
  15. package/dist/cjs/verdocs-view.cjs.entry.js +1 -1
  16. package/dist/cjs/verdocs-web-sdk.cjs.js +1 -1
  17. package/dist/collection/collection-manifest.json +1 -0
  18. package/dist/collection/components/controls/verdocs-table/verdocs-table.css +9 -8
  19. package/dist/collection/components/controls/verdocs-tabs/verdocs-tabs.css +33 -0
  20. package/dist/collection/components/controls/verdocs-tabs/verdocs-tabs.js +102 -0
  21. package/dist/collection/components/controls/verdocs-tabs/verdocs-tabs.stories.js +25 -0
  22. package/dist/collection/components/dialogs/verdocs-dialog/verdocs-dialog.js +0 -1
  23. package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.css +1 -1
  24. package/dist/collection/components/settings/verdocs-settings-api-keys/verdocs-settings-api-keys.js +8 -11
  25. package/dist/collection/components/settings/verdocs-settings-members/verdocs-settings-members.css +31 -7
  26. package/dist/collection/components/settings/verdocs-settings-members/verdocs-settings-members.js +137 -10
  27. package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.css +11 -0
  28. package/dist/components/{Strings.js → Members.js} +6 -6
  29. package/dist/components/Primitives.js +18 -1
  30. package/dist/components/Profiles.js +15 -1
  31. package/dist/components/index.d.ts +1 -0
  32. package/dist/components/index.js +1 -0
  33. package/dist/components/verdocs-dialog2.js +0 -1
  34. package/dist/components/verdocs-envelopes-list.js +1 -1
  35. package/dist/components/verdocs-settings-api-keys2.js +9 -11
  36. package/dist/components/verdocs-settings-members2.js +193 -15
  37. package/dist/components/verdocs-settings-profile2.js +1 -1
  38. package/dist/components/verdocs-settings.js +26 -20
  39. package/dist/components/verdocs-table2.js +1 -1
  40. package/dist/components/verdocs-tabs.d.ts +11 -0
  41. package/dist/components/verdocs-tabs.js +6 -0
  42. package/dist/components/verdocs-tabs2.js +46 -0
  43. package/dist/components/verdocs-templates-list.js +1 -1
  44. package/dist/docs.json +100 -5
  45. package/dist/esm/Primitives-8fe93caf.js +37 -0
  46. package/dist/esm/{Profiles-7645e6f1.js → Profiles-4cc942ef.js} +15 -1
  47. package/dist/esm/loader.js +1 -1
  48. package/dist/esm/verdocs-activity-box.entry.js +1 -1
  49. package/dist/esm/verdocs-auth.entry.js +1 -1
  50. package/dist/esm/{verdocs-button_2.entry.js → verdocs-button_3.entry.js} +49 -2
  51. package/dist/esm/verdocs-checkbox_3.entry.js +50 -0
  52. package/dist/esm/{verdocs-dialog_2.entry.js → verdocs-dialog_3.entry.js} +26 -3
  53. package/dist/esm/verdocs-envelopes-list.entry.js +2 -2
  54. package/dist/esm/verdocs-pagination_3.entry.js +1 -1
  55. package/dist/esm/verdocs-settings-api-keys_4.entry.js +160 -27
  56. package/dist/esm/verdocs-sign.entry.js +1 -1
  57. package/dist/esm/verdocs-template-fields_4.entry.js +1 -1
  58. package/dist/esm/verdocs-templates-list.entry.js +2 -2
  59. package/dist/esm/verdocs-view.entry.js +1 -1
  60. package/dist/esm/verdocs-web-sdk.js +1 -1
  61. package/dist/esm-es5/Primitives-8fe93caf.js +1 -0
  62. package/dist/esm-es5/Profiles-4cc942ef.js +1 -0
  63. package/dist/esm-es5/loader.js +1 -1
  64. package/dist/esm-es5/verdocs-activity-box.entry.js +1 -1
  65. package/dist/esm-es5/verdocs-auth.entry.js +1 -1
  66. package/dist/esm-es5/verdocs-button_3.entry.js +1 -0
  67. package/dist/esm-es5/verdocs-checkbox_3.entry.js +1 -0
  68. package/dist/esm-es5/verdocs-dialog_3.entry.js +1 -0
  69. package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
  70. package/dist/esm-es5/verdocs-pagination_3.entry.js +1 -1
  71. package/dist/esm-es5/verdocs-settings-api-keys_4.entry.js +1 -1
  72. package/dist/esm-es5/verdocs-sign.entry.js +1 -1
  73. package/dist/esm-es5/verdocs-template-fields_4.entry.js +1 -1
  74. package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
  75. package/dist/esm-es5/verdocs-view.entry.js +1 -1
  76. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  77. package/dist/types/components/controls/verdocs-tabs/verdocs-tabs.d.ts +31 -0
  78. package/dist/types/components/controls/verdocs-tabs/verdocs-tabs.stories.d.ts +7 -0
  79. package/dist/types/components/settings/verdocs-settings-members/verdocs-settings-members.d.ts +17 -1
  80. package/dist/types/components.d.ts +38 -0
  81. package/dist/verdocs-web-sdk/{p-68487ce7.system.entry.js → p-02bbfba3.system.entry.js} +1 -1
  82. package/dist/verdocs-web-sdk/p-0578c85b.system.entry.js +1 -0
  83. package/dist/verdocs-web-sdk/p-19a0fdf2.entry.js +1 -0
  84. package/dist/verdocs-web-sdk/p-3a0c5966.system.entry.js +1 -0
  85. package/dist/verdocs-web-sdk/p-3bcd86ea.system.js +1 -0
  86. package/dist/verdocs-web-sdk/p-4f8dbb97.entry.js +1 -0
  87. package/dist/verdocs-web-sdk/p-5e808a0b.js +1 -0
  88. package/dist/verdocs-web-sdk/p-647cdb84.system.js +1 -1
  89. package/dist/verdocs-web-sdk/p-6572cc71.system.entry.js +1 -0
  90. package/dist/verdocs-web-sdk/{p-0d590026.entry.js → p-7967b361.entry.js} +1 -1
  91. package/dist/verdocs-web-sdk/{p-dd5460ea.entry.js → p-7dd4ffcc.entry.js} +1 -1
  92. package/dist/verdocs-web-sdk/{p-dfcbcf0b.entry.js → p-803924f3.entry.js} +1 -1
  93. package/dist/verdocs-web-sdk/p-937cd171.system.entry.js +1 -0
  94. package/dist/verdocs-web-sdk/{p-a1eb425e.system.entry.js → p-96ca789b.system.entry.js} +1 -1
  95. package/dist/verdocs-web-sdk/{p-075dc36d.js → p-983da2f6.js} +1 -1
  96. package/dist/verdocs-web-sdk/{p-e9d2b68a.entry.js → p-a2b83969.entry.js} +1 -1
  97. package/dist/verdocs-web-sdk/{p-043eab3f.system.entry.js → p-c556a377.system.entry.js} +1 -1
  98. package/dist/verdocs-web-sdk/{p-690a485e.system.entry.js → p-c9e66410.system.entry.js} +1 -1
  99. package/dist/verdocs-web-sdk/p-cb9985fe.entry.js +1 -0
  100. package/dist/verdocs-web-sdk/p-cea9f0ba.system.entry.js +1 -0
  101. package/dist/verdocs-web-sdk/p-cfead4df.entry.js +1 -0
  102. package/dist/verdocs-web-sdk/p-dc6e47a4.entry.js +1 -0
  103. package/dist/verdocs-web-sdk/{p-b3e0db4b.system.entry.js → p-e0a212a1.system.entry.js} +1 -1
  104. package/dist/verdocs-web-sdk/{p-b4ac7a21.entry.js → p-ed38d3d2.entry.js} +1 -1
  105. package/dist/verdocs-web-sdk/p-f65a1b9e.system.js +1 -0
  106. package/dist/verdocs-web-sdk/{p-986f78e3.entry.js → p-f7fecffd.entry.js} +1 -1
  107. package/dist/verdocs-web-sdk/{p-1d7846c9.entry.js → p-fb609f37.entry.js} +1 -1
  108. package/dist/verdocs-web-sdk/{p-bf8bded0.system.entry.js → p-fb71f28a.system.entry.js} +1 -1
  109. package/dist/verdocs-web-sdk/{p-febebe69.system.entry.js → p-ff850808.system.entry.js} +1 -1
  110. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  111. package/package.json +2 -2
  112. package/dist/cjs/verdocs-checkbox_4.cjs.entry.js +0 -104
  113. package/dist/esm/Primitives-054bc6e5.js +0 -20
  114. package/dist/esm/verdocs-checkbox_4.entry.js +0 -97
  115. package/dist/esm-es5/Primitives-054bc6e5.js +0 -1
  116. package/dist/esm-es5/Profiles-7645e6f1.js +0 -1
  117. package/dist/esm-es5/verdocs-button_2.entry.js +0 -1
  118. package/dist/esm-es5/verdocs-checkbox_4.entry.js +0 -1
  119. package/dist/esm-es5/verdocs-dialog_2.entry.js +0 -1
  120. package/dist/verdocs-web-sdk/p-0fecb805.entry.js +0 -1
  121. package/dist/verdocs-web-sdk/p-13585ecc.system.entry.js +0 -1
  122. package/dist/verdocs-web-sdk/p-4821f318.system.entry.js +0 -1
  123. package/dist/verdocs-web-sdk/p-4c9d9cd6.entry.js +0 -1
  124. package/dist/verdocs-web-sdk/p-4f0c253e.system.entry.js +0 -1
  125. package/dist/verdocs-web-sdk/p-7291906c.js +0 -1
  126. package/dist/verdocs-web-sdk/p-77f04115.entry.js +0 -1
  127. package/dist/verdocs-web-sdk/p-8a77db15.entry.js +0 -1
  128. package/dist/verdocs-web-sdk/p-96c4637b.system.entry.js +0 -1
  129. package/dist/verdocs-web-sdk/p-bc442f6c.system.entry.js +0 -1
  130. package/dist/verdocs-web-sdk/p-c9ac0d2f.entry.js +0 -1
  131. package/dist/verdocs-web-sdk/p-cbebc039.system.js +0 -1
  132. package/dist/verdocs-web-sdk/p-d50523fd.system.js +0 -1
@@ -1 +0,0 @@
1
- var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];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,n,r){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function s(e){try{u(r.next(e))}catch(e){i(e)}}function o(e){try{u(r["throw"](e))}catch(e){i(e)}}function u(e){e.done?n(e.value):a(e.value).then(s,o)}u((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,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(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=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:n.label++;return{value:s[1],done:false};case 5:n.label++;a=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){n.label=s[1];break}if(s[0]===6&&n.label<i[1]){n.label=i[1];i=s;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(s);break}if(i[2])n.ops.pop();n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e];a=0}finally{r=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,i;r<a;r++){if(i||!(r in t)){if(!i)i=Array.prototype.slice.call(t,0,r);i[r]=t[r]}}return e.concat(i||Array.prototype.slice.call(t))};System.register(["./p-2dbc05c6.system.js","./p-54498887.system.js","./p-4422958b.system.js","./p-ca13070e.system.js","./p-187b20b7.system.js","./p-cbebc039.system.js","./p-169fa979.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,n,r,a,i,s,o,u,l,c,d,f;return{setters:[function(e){t=e.r;n=e.c;r=e.h;a=e.H},function(){},function(e){i=e.V},function(e){s=e.V},function(e){o=e.S},function(e){u=e.g;l=e.u;c=e.a;d=e.b},function(e){f=e.d},function(){},function(){},function(){},function(){},function(){}],execute:function(){var p=function(e,t){return e.api.get("/organizations/".concat(t,"/api_key")).then((function(e){return e.data}))};var h=function(e,t,n){return e.api.post("/organizations/".concat(t,"/api_key"),n).then((function(e){return e.data}))};var v=function(e,t,n){return e.api.put("/organizations/".concat(t,"/api_key/").concat(n,"/rotate")).then((function(e){return e.data}))};var m=function(e,t,n){return e.api.delete("/organizations/".concat(t,"/api_key/").concat(n)).then((function(e){return e.data}))};var _=function(e,t){return e.api.get("/organizations/".concat(t,"/profiles")).then((function(e){return e.data}))};var y=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};var g='verdocs-settings-api-keys{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-api-keys .table{margin:12px 0}verdocs-settings-api-keys .data-col div{gap:12px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-settings-api-keys .data-col svg{width:24px;height:24px}verdocs-settings-api-keys .col-name svg,verdocs-settings-api-keys .col-client_id svg,verdocs-settings-api-keys .col-profile_id svg{fill:#a1a1aa}verdocs-settings-api-keys .col-actions svg{fill:#ffffff;stroke:#a1a1aa}verdocs-settings-api-keys .col-actions svg:hover{cursor:pointer;stroke:red}verdocs-settings-api-keys .col-actions>div{-ms-flex-pack:center;justify-content:center}verdocs-settings-api-keys .header-col.col-actions{text-align:center}verdocs-settings-api-keys verdocs-dialog p{font-size:16px;line-height:18px;margin:0 0 1em 0}';var b='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zM12.75 6a.75.75 0 00-1.5 0v6c0 .414.336.75.75.75h4.5a.75.75 0 000-1.5h-3.75V6z" clip-rule="evenodd" /></svg>';var T='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M5.5 3A2.5 2.5 0 003 5.5v2.879a2.5 2.5 0 00.732 1.767l6.5 6.5a2.5 2.5 0 003.536 0l2.878-2.878a2.5 2.5 0 000-3.536l-6.5-6.5A2.5 2.5 0 008.38 3H5.5zM6 7a1 1 0 100-2 1 1 0 000 2z" clip-rule="evenodd" /></svg>';var x='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-5.5-2.5a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zM10 12a5.99 5.99 0 00-4.793 2.39A6.483 6.483 0 0010 16.5a6.483 6.483 0 004.793-2.11A5.99 5.99 0 0010 12z" clip-rule="evenodd" /></svg>';var M='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0" /></svg>';var k='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99" /></svg>';var w=e("verdocs_settings_api_keys",function(){function e(e){t(this,e);this.sdkError=n(this,"sdkError",7);this.memberInvited=n(this,"memberInvited",7);this.memberUpdated=n(this,"memberUpdated",7);this.memberRemoved=n(this,"memberRemoved",7);this.endpoint=i.getDefault();this.keys=[];this.creatingKey=false;this.createdKey=null;this.deletingKey=null;this.rotatingKey=null;this.newApiKeyName="";this.newApiKeyProfileId="";this.members=[]}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=this;return __generator(this,(function(t){this.newApiKeyProfileId=this.endpoint.session.profile_id;_(this.endpoint,this.endpoint.session.organization_id).then((function(t){e.members=t})).catch((function(t){var n,r,a;console.log("[SETTINGS] Error loading organization members",t);(n=e.sdkError)===null||n===void 0?void 0:n.emit(new o(t.message,(r=t.response)===null||r===void 0?void 0:r.status,(a=t.response)===null||a===void 0?void 0:a.data));s("Unable to load API keys. Please try again later",{style:"error"})}));this.loadKeys();return[2]}))}))};e.prototype.loadKeys=function(){var e=this;p(this.endpoint,this.endpoint.session.organization_id).then((function(t){e.keys=t})).catch((function(t){var n,r,a;console.log("[SETTINGS] Unable to load API keys",t);(n=e.sdkError)===null||n===void 0?void 0:n.emit(new o(t.message,(r=t.response)===null||r===void 0?void 0:r.status,(a=t.response)===null||a===void 0?void 0:a.data));s("Unable to load API keys. Please try again later",{style:"error"})}))};e.prototype.handleDeleteKey=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){m(this.endpoint,this.deletingKey.organization_id,this.deletingKey.client_id).then((function(){e.deletingKey=null;s("API key deleted",{style:"success"});e.loadKeys()})).catch((function(t){var n,r,a;e.deletingKey=null;console.log("[SETTINGS] Unable to delete API key",t);(n=e.sdkError)===null||n===void 0?void 0:n.emit(new o(t.message,(r=t.response)===null||r===void 0?void 0:r.status,(a=t.response)===null||a===void 0?void 0:a.data));s("Unable to delete API key. Please try again later",{style:"error"})}));return[2]}))}))};e.prototype.handleRotateKey=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){v(this.endpoint,this.rotatingKey.organization_id,this.rotatingKey.client_id).then((function(t){e.rotatingKey=null;s("API key rotated",{style:"success"});e.loadKeys();e.createdKey=t})).catch((function(t){var n,r,a;e.rotatingKey=null;console.log("[SETTINGS] Unable to rotate API key",t);(n=e.sdkError)===null||n===void 0?void 0:n.emit(new o(t.message,(r=t.response)===null||r===void 0?void 0:r.status,(a=t.response)===null||a===void 0?void 0:a.data));s("Unable to rotate API key. Please try again later",{style:"error"})}));return[2]}))}))};e.prototype.handleCreateKey=function(){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(t){h(this.endpoint,this.endpoint.session.organization_id,{name:this.newApiKeyName,profile_id:this.newApiKeyProfileId}).then((function(t){e.creatingKey=false;e.createdKey=t;s("API key created",{style:"success"});e.loadKeys()})).catch((function(t){var n,r,a;e.creatingKey=false;console.log("[SETTINGS] Unable to create API key",t);(n=e.sdkError)===null||n===void 0?void 0:n.emit(new o(t.message,(r=t.response)===null||r===void 0?void 0:r.status,(a=t.response)===null||a===void 0?void 0:a.data));s("Unable to create API key. Please try again later",{style:"error"})}));return[2]}))}))};e.prototype.render=function(){var e=this;var t,n,i,s,o,u,l;var c=this.members.map((function(e){return{label:"".concat(e.first_name," ").concat(e.last_name),value:e.id}}));if(!this.endpoint.session){console.log("[SETTINGS] Must be authenticated");return r(a,{class:"authentication-required"},"Must be authenticated")}return r(a,null,r("h1",null,"API Keys"),r("verdocs-table",{data:this.keys,columns:[{id:"name",header:"Name",renderCell:function(e,t){return r("div",null,r("div",{innerHTML:b}),r("div",null,t.name))}},{id:"client_id",header:"Client ID",renderCell:function(e,t){return r("div",null,r("div",{innerHTML:T}),r("div",null,t.client_id))}},{id:"profile_id",header:"Acts as",renderCell:function(e,t){var n,a;return r("div",null,r("div",{innerHTML:x}),r("div",null,y((n=t.profile)===null||n===void 0?void 0:n.first_name)," ",y((a=t.profile)===null||a===void 0?void 0:a.last_name)))}},{id:"actions",header:"Actions",renderCell:function(t,n){return r("div",null,r("div",{innerHTML:M,onClick:function(){return e.deletingKey=n}}),r("div",{innerHTML:k,onClick:function(){return e.rotatingKey=n}}))}}]}),r("verdocs-button",{label:"Add API Key",size:"normal",onClick:function(){return e.creatingKey=true}}),this.deletingKey&&r("verdocs-dialog",{onExit:function(){return e.deletingKey=null}},r("div",{slot:"title",class:"heading"},'Delete API key "',this.deletingKey.name,'"?'),r("div",{class:"content"},r("p",null,"Are you sure you want to delete this key? This action cannot be undone."),r("div",{class:"buttons"},r("verdocs-button",{variant:"outline",size:"small",label:"Cancel",onClick:function(){return e.deletingKey=null}}),r("verdocs-button",{size:"small",label:"OK",onClick:function(){return e.handleDeleteKey()}})))),this.rotatingKey&&r("verdocs-dialog",{onExit:function(){return e.rotatingKey=null}},r("div",{slot:"title",class:"heading"},'Rotate API key "',this.rotatingKey.name,'"?'),r("div",{class:"content"},r("p",null,"Are you sure you want to rotate this key? A new client secret will be generated, and the old value will become unusable. This action cannot be undone."),r("div",{class:"buttons"},r("verdocs-button",{variant:"outline",size:"small",label:"Cancel",onClick:function(){return e.rotatingKey=null}}),r("verdocs-button",{size:"small",label:"OK",onClick:function(){return e.handleRotateKey()}})))),this.creatingKey&&r("verdocs-dialog",{onExit:function(){return e.creatingKey=false}},r("div",{slot:"title",class:"heading"},"Create API Key"),r("div",{class:"content"},r("verdocs-text-input",{label:"Name",placeholder:"API key name...",id:"verdocs-api-key-name",value:this.newApiKeyName,autocomplete:"off",required:true,onInput:function(t){return e.newApiKeyName=t.target.value},onFocusout:function(t){e.newApiKeyName=t.target.value.trim()}}),r("p",null,'API keys must be associated with a profile. Actions performed via API calls using this key will "act as" this profile.'),r("verdocs-select-input",{options:c,label:"Act as Profile",onInput:function(t){e.newApiKeyProfileId=t.target.value}}),r("div",{class:"buttons"},r("verdocs-button",{variant:"outline",size:"small",label:"Cancel",onClick:function(){return e.creatingKey=false}}),r("verdocs-button",{size:"small",label:"OK",onClick:function(){return e.handleCreateKey()}})))),this.createdKey&&r("verdocs-dialog",{onExit:function(){return e.createdKey=null}},r("div",{slot:"title",class:"heading"},"API Key Details"),r("div",{class:"content"},r("verdocs-text-input",{label:"Name",disabled:true,value:(t=this.createdKey)===null||t===void 0?void 0:t.name}),r("verdocs-text-input",{label:"Profile",disabled:true,value:"".concat((i=(n=this.createdKey)===null||n===void 0?void 0:n.profile)===null||i===void 0?void 0:i.first_name," ").concat((o=(s=this.createdKey)===null||s===void 0?void 0:s.profile)===null||o===void 0?void 0:o.last_name)}),r("p",null,"Please save the Client ID and Secret below. Be sure to never expose your secret key in insecure (Web or mobile environments)!"),r("verdocs-text-input",{label:"Client ID",disabled:true,value:(u=this.createdKey)===null||u===void 0?void 0:u.client_id,copyable:true}),r("verdocs-text-input",{label:"Secret Key",disabled:true,value:(l=this.createdKey)===null||l===void 0?void 0:l.client_secret,copyable:true}),r("div",{class:"buttons"},r("verdocs-button",{size:"small",label:"Done",onClick:function(){return e.createdKey=null}})))))};return e}());w.style=g;var G='verdocs-settings-members{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-members .table{margin:12px 0}verdocs-settings-members .role{font-size:12px;width:32px;height:32px;border-radius:32px;background:#777777;color:#ffffff;font-weight:700;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-settings-members .col.col-actions{-ms-flex-align:center;align-items:center;text-align:center}verdocs-settings-members .col.col-actions svg{cursor:pointer;width:24px;height:24px;fill:#777777}verdocs-settings-members .col.col-actions svg:hover{fill:red}';var S='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke-width="1.5"><path stroke-linecap="round" stroke-linejoin="round" d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0" /></svg>';var A=function(e){if(e.find((function(e){return e.name==="owner"}))!==undefined)return"Owner";if(e.find((function(e){return e.name==="admin"}))!==undefined)return"Admin";if(e.find((function(e){return e.name==="member"}))!==undefined)return"Member";if(e.find((function(e){return e.name==="basic_user"}))!==undefined)return"Basic User";if(e.find((function(e){return e.name==="contact"}))!==undefined)return"Contact"};var P=function(e){if(e.find((function(e){return e.name==="owner"}))!==undefined)return"#9333ea";if(e.find((function(e){return e.name==="admin"}))!==undefined)return"#2563eb";if(e.find((function(e){return e.name==="member"}))!==undefined)return"#16a34a";if(e.find((function(e){return e.name==="basic_user"}))!==undefined)return"#ea580c";if(e.find((function(e){return e.name==="contact"}))!==undefined)return"#52525B"};var j=e("verdocs_settings_members",function(){function e(e){t(this,e);this.sdkError=n(this,"sdkError",7);this.memberInvited=n(this,"memberInvited",7);this.memberUpdated=n(this,"memberUpdated",7);this.memberRemoved=n(this,"memberRemoved",7);this.endpoint=i.getDefault();this.members=[]}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,t,n,r,a;return __generator(this,(function(i){switch(i.label){case 0:i.trys.push([0,2,,3]);r=this;return[4,_(this.endpoint,this.endpoint.session.organization_id)];case 1:r.members=i.sent();return[3,3];case 2:a=i.sent();(e=this.sdkError)===null||e===void 0?void 0:e.emit(new o(a.message,(t=a.response)===null||t===void 0?void 0:t.status,(n=a.response)===null||n===void 0?void 0:n.data));s("Unable to load members. Please try again later");return[3,3];case 3:return[2]}}))}))};e.prototype.render=function(){if(!this.endpoint.session){console.log("[SETTINGS] Must be authenticated");return r(a,{class:"authentication-required"},"Must be authenticated")}return r(a,null,r("h1",null,"Members"),r("verdocs-table",{data:this.members,columns:[{id:"name",renderHeader:function(){return"Member"},renderCell:function(e,t){return r("div",{style:{display:"flex",flexDirection:"row",gap:"10px",alignItems:"center"}},r("div",{class:"role",style:{backgroundColor:P(t.roles)}},t.first_name.charAt(0)," ",t.last_name.charAt(0)),r("span",null,y(t.first_name)," ",y(t.last_name)))}},{id:"email",header:"E-mail Address"},{id:"phone",header:"Phone Number"},{id:"roles",header:"Role",renderCell:function(e,t){return"".concat(A(t.roles))}},{id:"actions",header:"Actions",renderCell:function(){return r("span",{innerHTML:S,onClick:function(){}})}}]}),r("verdocs-button",{label:"Invite New Member",size:"normal",disabled:true}))};return e}());j.style=G;var Z;(function(e){e.assertEqual=function(e){return e};function t(e){}e.assertIs=t;function n(e){throw new Error}e.assertNever=n;e.arrayToEnum=function(e){var t={};for(var n=0,r=e;n<r.length;n++){var a=r[n];t[a]=a}return t};e.getValidEnumValues=function(t){var n=e.objectKeys(t).filter((function(e){return typeof t[t[e]]!=="number"}));var r={};for(var a=0,i=n;a<i.length;a++){var s=i[a];r[s]=t[s]}return e.objectValues(r)};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 n in e){if(Object.prototype.hasOwnProperty.call(e,n)){t.push(n)}}return t};e.find=function(e,t){for(var n=0,r=e;n<r.length;n++){var a=r[n];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 r(e,t){if(t===void 0){t=" | "}return e.map((function(e){return typeof e==="string"?"'".concat(e,"'"):e})).join(t)}e.joinValues=r;e.jsonStringifyReplacer=function(e,t){if(typeof t==="bigint"){return t.toString()}return t}})(Z||(Z={}));var C;(function(e){e.mergeShapes=function(e,t){return __assign(__assign({},e),t)}})(C||(C={}));var I=Z.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);var O=function(e){var t=typeof e;switch(t){case"undefined":return I.undefined;case"string":return I.string;case"number":return isNaN(e)?I.nan:I.number;case"boolean":return I.boolean;case"function":return I.function;case"bigint":return I.bigint;case"symbol":return I.symbol;case"object":if(Array.isArray(e)){return I.array}if(e===null){return I.null}if(e.then&&typeof e.then==="function"&&e.catch&&typeof e.catch==="function"){return I.promise}if(typeof Map!=="undefined"&&e instanceof Map){return I.map}if(typeof Set!=="undefined"&&e instanceof Set){return I.set}if(typeof Date!=="undefined"&&e instanceof Date){return I.date}return I.object;default:return I.unknown}};var E=Z.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 N=function(e){var t=JSON.stringify(e,null,2);return t.replace(/"([^"]+)":/g,"$1:")};var z=function(e){__extends(t,e);function t(t){var n=this.constructor;var r=e.call(this)||this;r.issues=[];r.addIssue=function(e){r.issues=__spreadArray(__spreadArray([],r.issues,true),[e],false)};r.addIssues=function(e){if(e===void 0){e=[]}r.issues=__spreadArray(__spreadArray([],r.issues,true),e,true)};var a=n.prototype;if(Object.setPrototypeOf){Object.setPrototypeOf(r,a)}else{r.__proto__=a}r.name="ZodError";r.issues=t;return r}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 n={_errors:[]};var r=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(r)}else if(s.code==="invalid_return_type"){r(s.returnTypeError)}else if(s.code==="invalid_arguments"){r(s.argumentsError)}else if(s.path.length===0){n._errors.push(t(s))}else{var o=n;var u=0;while(u<s.path.length){var l=s.path[u];var c=u===s.path.length-1;if(!c){o[l]=o[l]||{_errors:[]}}else{o[l]=o[l]||{_errors:[]};o[l]._errors.push(t(s))}o=o[l];u++}}}};r(this);return n};t.prototype.toString=function(){return this.message};Object.defineProperty(t.prototype,"message",{get:function(){return JSON.stringify(this.issues,Z.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 n=[];for(var r=0,a=this.issues;r<a.length;r++){var i=a[r];if(i.path.length>0){t[i.path[0]]=t[i.path[0]]||[];t[i.path[0]].push(e(i))}else{n.push(e(i))}}return{formErrors:n,fieldErrors:t}};Object.defineProperty(t.prototype,"formErrors",{get:function(){return this.flatten()},enumerable:false,configurable:true});return t}(Error);z.create=function(e){var t=new z(e);return t};var K=function(e,t){var n;switch(e.code){case E.invalid_type:if(e.received===I.undefined){n="Required"}else{n="Expected ".concat(e.expected,", received ").concat(e.received)}break;case E.invalid_literal:n="Invalid literal value, expected ".concat(JSON.stringify(e.expected,Z.jsonStringifyReplacer));break;case E.unrecognized_keys:n="Unrecognized key(s) in object: ".concat(Z.joinValues(e.keys,", "));break;case E.invalid_union:n="Invalid input";break;case E.invalid_union_discriminator:n="Invalid discriminator value. Expected ".concat(Z.joinValues(e.options));break;case E.invalid_enum_value:n="Invalid enum value. Expected ".concat(Z.joinValues(e.options),", received '").concat(e.received,"'");break;case E.invalid_arguments:n="Invalid function arguments";break;case E.invalid_return_type:n="Invalid function return type";break;case E.invalid_date:n="Invalid date";break;case E.invalid_string:if(typeof e.validation==="object"){if("includes"in e.validation){n='Invalid input: must include "'.concat(e.validation.includes,'"');if(typeof e.validation.position==="number"){n="".concat(n," at one or more positions greater than or equal to ").concat(e.validation.position)}}else if("startsWith"in e.validation){n='Invalid input: must start with "'.concat(e.validation.startsWith,'"')}else if("endsWith"in e.validation){n='Invalid input: must end with "'.concat(e.validation.endsWith,'"')}else{Z.assertNever(e.validation)}}else if(e.validation!=="regex"){n="Invalid ".concat(e.validation)}else{n="Invalid"}break;case E.too_small:if(e.type==="array")n="Array must contain ".concat(e.exact?"exactly":e.inclusive?"at least":"more than"," ").concat(e.minimum," element(s)");else if(e.type==="string")n="String must contain ".concat(e.exact?"exactly":e.inclusive?"at least":"over"," ").concat(e.minimum," character(s)");else if(e.type==="number")n="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")n="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 n="Invalid input";break;case E.too_big:if(e.type==="array")n="Array must contain ".concat(e.exact?"exactly":e.inclusive?"at most":"less than"," ").concat(e.maximum," element(s)");else if(e.type==="string")n="String must contain ".concat(e.exact?"exactly":e.inclusive?"at most":"under"," ").concat(e.maximum," character(s)");else if(e.type==="number")n="Number must be ".concat(e.exact?"exactly":e.inclusive?"less than or equal to":"less than"," ").concat(e.maximum);else if(e.type==="bigint")n="BigInt must be ".concat(e.exact?"exactly":e.inclusive?"less than or equal to":"less than"," ").concat(e.maximum);else if(e.type==="date")n="Date must be ".concat(e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"," ").concat(new Date(Number(e.maximum)));else n="Invalid input";break;case E.custom:n="Invalid input";break;case E.invalid_intersection_types:n="Intersection results could not be merged";break;case E.not_multiple_of:n="Number must be a multiple of ".concat(e.multipleOf);break;case E.not_finite:n="Number must be finite";break;default:n=t.defaultError;Z.assertNever(e)}return{message:n}};var R=K;function L(e){R=e}function D(){return R}var U=function(e){var t=e.data,n=e.path,r=e.errorMaps,a=e.issueData;var i=__spreadArray(__spreadArray([],n,true),a.path||[],true);var s=__assign(__assign({},a),{path:i});var o="";var u=r.filter((function(e){return!!e})).slice().reverse();for(var l=0,c=u;l<c.length;l++){var d=c[l];o=d(s,{data:t,defaultError:o}).message}return __assign(__assign({},a),{path:i,message:a.message||o})};var B=[];function F(e,t){var n=U({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,D(),K].filter((function(e){return!!e}))});e.common.issues.push(n)}var V=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 n=[];for(var r=0,a=t;r<a.length;r++){var i=a[r];if(i.status==="aborted")return q;if(i.status==="dirty")e.dirty();n.push(i.value)}return{status:e.value,value:n}};e.mergeObjectAsync=function(t,n){return __awaiter(this,void 0,void 0,(function(){var r,a,i,s,o,u;var l;return __generator(this,(function(c){switch(c.label){case 0:r=[];a=0,i=n;c.label=1;case 1:if(!(a<i.length))return[3,5];s=i[a];u=(o=r).push;l={};return[4,s.key];case 2:l.key=c.sent();return[4,s.value];case 3:u.apply(o,[(l.value=c.sent(),l)]);c.label=4;case 4:a++;return[3,1];case 5:return[2,e.mergeObjectSync(t,r)]}}))}))};e.mergeObjectSync=function(e,t){var n={};for(var r=0,a=t;r<a.length;r++){var i=a[r];var s=i.key,o=i.value;if(s.status==="aborted")return q;if(o.status==="aborted")return q;if(s.status==="dirty")e.dirty();if(o.status==="dirty")e.dirty();if(s.value!=="__proto__"&&(typeof o.value!=="undefined"||i.alwaysSet)){n[s.value]=o.value}}return{status:e.value,value:n}};return e}();var q=Object.freeze({status:"aborted"});var W=function(e){return{status:"dirty",value:e}};var H=function(e){return{status:"valid",value:e}};var $=function(e){return e.status==="aborted"};var J=function(e){return e.status==="dirty"};var Y=function(e){return e.status==="valid"};var Q=function(e){return typeof Promise!=="undefined"&&e instanceof Promise};var X;(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}})(X||(X={}));var ee=function(){function e(e,t,n,r){this._cachedPath=[];this.parent=e;this.data=t;this._path=n;this._key=r}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 te=function(e,t){if(Y(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 z(e.common.issues);this._error=t;return this._error}}}};function ne(e){if(!e)return{};var t=e.errorMap,n=e.invalid_type_error,r=e.required_error,a=e.description;if(t&&(n||r)){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:r!==null&&r!==void 0?r:t.defaultError}}return{message:n!==null&&n!==void 0?n:t.defaultError}};return{errorMap:i,description:a}}var re=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 O(e.data)};e.prototype._getOrReturnCtx=function(e,t){return t||{common:e.parent.common,data:e.data,parsedType:O(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}};e.prototype._processInputParams=function(e){return{status:new V,ctx:{common:e.parent.common,data:e.data,parsedType:O(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}};e.prototype._parseSync=function(e){var t=this._parse(e);if(Q(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 n=this.safeParse(e,t);if(n.success)return n.data;throw n.error};e.prototype.safeParse=function(e,t){var n;var r={common:{issues:[],async:(n=t===null||t===void 0?void 0:t.async)!==null&&n!==void 0?n: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:O(e)};var a=this._parseSync({data:e,path:r.path,parent:r});return te(r,a)};e.prototype.parseAsync=function(e,t){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(r){switch(r.label){case 0:return[4,this.safeParseAsync(e,t)];case 1:n=r.sent();if(n.success)return[2,n.data];throw n.error}}))}))};e.prototype.safeParseAsync=function(e,t){return __awaiter(this,void 0,void 0,(function(){var n,r,a;return __generator(this,(function(i){switch(i.label){case 0:n={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:O(e)};r=this._parse({data:e,path:n.path,parent:n});return[4,Q(r)?r:Promise.resolve(r)];case 1:a=i.sent();return[2,te(n,a)]}}))}))};e.prototype.refine=function(e,t){var n=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,r){var a=e(t);var i=function(){return r.addIssue(__assign({code:E.custom},n(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(n,r){if(!e(n)){r.addIssue(typeof t==="function"?t(n,r):t);return false}else{return true}}))};e.prototype._refinement=function(e){return new qe({schema:this,typeName:at.ZodEffects,effect:{type:"refinement",refinement:e}})};e.prototype.superRefine=function(e){return this._refinement(e)};e.prototype.optional=function(){return We.create(this,this._def)};e.prototype.nullable=function(){return He.create(this,this._def)};e.prototype.nullish=function(){return this.nullable().optional()};e.prototype.array=function(){return Se.create(this,this._def)};e.prototype.promise=function(){return Ve.create(this,this._def)};e.prototype.or=function(e){return je.create([this,e],this._def)};e.prototype.and=function(e){return Oe.create(this,e,this._def)};e.prototype.transform=function(e){return new qe(__assign(__assign({},ne(this._def)),{schema:this,typeName:at.ZodEffects,effect:{type:"transform",transform:e}}))};e.prototype.default=function(e){var t=typeof e==="function"?e:function(){return e};return new $e(__assign(__assign({},ne(this._def)),{innerType:this,defaultValue:t,typeName:at.ZodDefault}))};e.prototype.brand=function(){return new Xe(__assign({typeName:at.ZodBranded,type:this},ne(this._def)))};e.prototype.catch=function(e){var t=typeof e==="function"?e:function(){return e};return new Je(__assign(__assign({},ne(this._def)),{innerType:this,catchValue:t,typeName:at.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 et.create(this,e)};e.prototype.readonly=function(){return tt.create(this)};e.prototype.isOptional=function(){return this.safeParse(undefined).success};e.prototype.isNullable=function(){return this.safeParse(null).success};return e}();var ae=/^c[^\s-]{8,}$/i;var ie=/^[a-z][a-z0-9]*$/;var se=/[0-9A-HJKMNP-TV-Z]{26}/;var oe=/^[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 ue=/^([A-Z0-9_+-]+\.?)*[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i;var le=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u;var ce=/^(((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 de=/^(([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 fe=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 pe(e,t){if((t==="v4"||!t)&&ce.test(e)){return true}if((t==="v6"||!t)&&de.test(e)){return true}return false}var he=function(e){__extends(t,e);function t(){var n=e.apply(this,arguments)||this;n._regex=function(e,t,r){return n.refinement((function(t){return e.test(t)}),__assign({validation:t,code:E.invalid_string},X.errToObj(r)))};n.nonempty=function(e){return n.min(1,X.errToObj(e))};n.trim=function(){return new t(__assign(__assign({},n._def),{checks:__spreadArray(__spreadArray([],n._def.checks,true),[{kind:"trim"}],false)}))};n.toLowerCase=function(){return new t(__assign(__assign({},n._def),{checks:__spreadArray(__spreadArray([],n._def.checks,true),[{kind:"toLowerCase"}],false)}))};n.toUpperCase=function(){return new t(__assign(__assign({},n._def),{checks:__spreadArray(__spreadArray([],n._def.checks,true),[{kind:"toUpperCase"}],false)}))};return n}t.prototype._parse=function(e){if(this._def.coerce){e.data=String(e.data)}var t=this._getType(e);if(t!==I.string){var n=this._getOrReturnCtx(e);F(n,{code:E.invalid_type,expected:I.string,received:n.parsedType});return q}var r=new V;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);F(a,{code:E.too_small,minimum:o.value,type:"string",inclusive:true,exact:false,message:o.message});r.dirty()}}else if(o.kind==="max"){if(e.data.length>o.value){a=this._getOrReturnCtx(e,a);F(a,{code:E.too_big,maximum:o.value,type:"string",inclusive:true,exact:false,message:o.message});r.dirty()}}else if(o.kind==="length"){var u=e.data.length>o.value;var l=e.data.length<o.value;if(u||l){a=this._getOrReturnCtx(e,a);if(u){F(a,{code:E.too_big,maximum:o.value,type:"string",inclusive:true,exact:true,message:o.message})}else if(l){F(a,{code:E.too_small,minimum:o.value,type:"string",inclusive:true,exact:true,message:o.message})}r.dirty()}}else if(o.kind==="email"){if(!ue.test(e.data)){a=this._getOrReturnCtx(e,a);F(a,{validation:"email",code:E.invalid_string,message:o.message});r.dirty()}}else if(o.kind==="emoji"){if(!le.test(e.data)){a=this._getOrReturnCtx(e,a);F(a,{validation:"emoji",code:E.invalid_string,message:o.message});r.dirty()}}else if(o.kind==="uuid"){if(!oe.test(e.data)){a=this._getOrReturnCtx(e,a);F(a,{validation:"uuid",code:E.invalid_string,message:o.message});r.dirty()}}else if(o.kind==="cuid"){if(!ae.test(e.data)){a=this._getOrReturnCtx(e,a);F(a,{validation:"cuid",code:E.invalid_string,message:o.message});r.dirty()}}else if(o.kind==="cuid2"){if(!ie.test(e.data)){a=this._getOrReturnCtx(e,a);F(a,{validation:"cuid2",code:E.invalid_string,message:o.message});r.dirty()}}else if(o.kind==="ulid"){if(!se.test(e.data)){a=this._getOrReturnCtx(e,a);F(a,{validation:"ulid",code:E.invalid_string,message:o.message});r.dirty()}}else if(o.kind==="url"){try{new URL(e.data)}catch(t){a=this._getOrReturnCtx(e,a);F(a,{validation:"url",code:E.invalid_string,message:o.message});r.dirty()}}else if(o.kind==="regex"){o.regex.lastIndex=0;var c=o.regex.test(e.data);if(!c){a=this._getOrReturnCtx(e,a);F(a,{validation:"regex",code:E.invalid_string,message:o.message});r.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);F(a,{code:E.invalid_string,validation:{includes:o.value,position:o.position},message:o.message});r.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);F(a,{code:E.invalid_string,validation:{startsWith:o.value},message:o.message});r.dirty()}}else if(o.kind==="endsWith"){if(!e.data.endsWith(o.value)){a=this._getOrReturnCtx(e,a);F(a,{code:E.invalid_string,validation:{endsWith:o.value},message:o.message});r.dirty()}}else if(o.kind==="datetime"){var d=fe(o);if(!d.test(e.data)){a=this._getOrReturnCtx(e,a);F(a,{code:E.invalid_string,validation:"datetime",message:o.message});r.dirty()}}else if(o.kind==="ip"){if(!pe(e.data,o.version)){a=this._getOrReturnCtx(e,a);F(a,{validation:"ip",code:E.invalid_string,message:o.message});r.dirty()}}else{Z.assertNever(o)}}return{status:r.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"},X.errToObj(e)))};t.prototype.url=function(e){return this._addCheck(__assign({kind:"url"},X.errToObj(e)))};t.prototype.emoji=function(e){return this._addCheck(__assign({kind:"emoji"},X.errToObj(e)))};t.prototype.uuid=function(e){return this._addCheck(__assign({kind:"uuid"},X.errToObj(e)))};t.prototype.cuid=function(e){return this._addCheck(__assign({kind:"cuid"},X.errToObj(e)))};t.prototype.cuid2=function(e){return this._addCheck(__assign({kind:"cuid2"},X.errToObj(e)))};t.prototype.ulid=function(e){return this._addCheck(__assign({kind:"ulid"},X.errToObj(e)))};t.prototype.ip=function(e){return this._addCheck(__assign({kind:"ip"},X.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},X.errToObj(e===null||e===void 0?void 0:e.message)))};t.prototype.regex=function(e,t){return this._addCheck(__assign({kind:"regex",regex:e},X.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},X.errToObj(t===null||t===void 0?void 0:t.message)))};t.prototype.startsWith=function(e,t){return this._addCheck(__assign({kind:"startsWith",value:e},X.errToObj(t)))};t.prototype.endsWith=function(e,t){return this._addCheck(__assign({kind:"endsWith",value:e},X.errToObj(t)))};t.prototype.min=function(e,t){return this._addCheck(__assign({kind:"min",value:e},X.errToObj(t)))};t.prototype.max=function(e,t){return this._addCheck(__assign({kind:"max",value:e},X.errToObj(t)))};t.prototype.length=function(e,t){return this._addCheck(__assign({kind:"length",value:e},X.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,n=this._def.checks;t<n.length;t++){var r=n[t];if(r.kind==="min"){if(e===null||r.value>e)e=r.value}}return e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"maxLength",{get:function(){var e=null;for(var t=0,n=this._def.checks;t<n.length;t++){var r=n[t];if(r.kind==="max"){if(e===null||r.value<e)e=r.value}}return e},enumerable:false,configurable:true});return t}(re);he.create=function(e){var t;return new he(__assign({checks:[],typeName:at.ZodString,coerce:(t=e===null||e===void 0?void 0:e.coerce)!==null&&t!==void 0?t:false},ne(e)))};function ve(e,t){var n=(e.toString().split(".")[1]||"").length;var r=(t.toString().split(".")[1]||"").length;var a=n>r?n:r;var i=parseInt(e.toFixed(a).replace(".",""));var s=parseInt(t.toFixed(a).replace(".",""));return i%s/Math.pow(10,a)}var me=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!==I.number){var n=this._getOrReturnCtx(e);F(n,{code:E.invalid_type,expected:I.number,received:n.parsedType});return q}var r=undefined;var a=new V;for(var i=0,s=this._def.checks;i<s.length;i++){var o=s[i];if(o.kind==="int"){if(!Z.isInteger(e.data)){r=this._getOrReturnCtx(e,r);F(r,{code:E.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){r=this._getOrReturnCtx(e,r);F(r,{code:E.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:false,message:o.message});a.dirty()}}else if(o.kind==="max"){var l=o.inclusive?e.data>o.value:e.data>=o.value;if(l){r=this._getOrReturnCtx(e,r);F(r,{code:E.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:false,message:o.message});a.dirty()}}else if(o.kind==="multipleOf"){if(ve(e.data,o.value)!==0){r=this._getOrReturnCtx(e,r);F(r,{code:E.not_multiple_of,multipleOf:o.value,message:o.message});a.dirty()}}else if(o.kind==="finite"){if(!Number.isFinite(e.data)){r=this._getOrReturnCtx(e,r);F(r,{code:E.not_finite,message:o.message});a.dirty()}}else{Z.assertNever(o)}}return{status:a.value,value:e.data}};t.prototype.gte=function(e,t){return this.setLimit("min",e,true,X.toString(t))};t.prototype.gt=function(e,t){return this.setLimit("min",e,false,X.toString(t))};t.prototype.lte=function(e,t){return this.setLimit("max",e,true,X.toString(t))};t.prototype.lt=function(e,t){return this.setLimit("max",e,false,X.toString(t))};t.prototype.setLimit=function(e,n,r,a){return new t(__assign(__assign({},this._def),{checks:__spreadArray(__spreadArray([],this._def.checks,true),[{kind:e,value:n,inclusive:r,message:X.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:X.toString(e)})};t.prototype.positive=function(e){return this._addCheck({kind:"min",value:0,inclusive:false,message:X.toString(e)})};t.prototype.negative=function(e){return this._addCheck({kind:"max",value:0,inclusive:false,message:X.toString(e)})};t.prototype.nonpositive=function(e){return this._addCheck({kind:"max",value:0,inclusive:true,message:X.toString(e)})};t.prototype.nonnegative=function(e){return this._addCheck({kind:"min",value:0,inclusive:true,message:X.toString(e)})};t.prototype.multipleOf=function(e,t){return this._addCheck({kind:"multipleOf",value:e,message:X.toString(t)})};t.prototype.finite=function(e){return this._addCheck({kind:"finite",message:X.toString(e)})};t.prototype.safe=function(e){return this._addCheck({kind:"min",inclusive:true,value:Number.MIN_SAFE_INTEGER,message:X.toString(e)})._addCheck({kind:"max",inclusive:true,value:Number.MAX_SAFE_INTEGER,message:X.toString(e)})};Object.defineProperty(t.prototype,"minValue",{get:function(){var e=null;for(var t=0,n=this._def.checks;t<n.length;t++){var r=n[t];if(r.kind==="min"){if(e===null||r.value>e)e=r.value}}return e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"maxValue",{get:function(){var e=null;for(var t=0,n=this._def.checks;t<n.length;t++){var r=n[t];if(r.kind==="max"){if(e===null||r.value<e)e=r.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"&&Z.isInteger(e.value)}))},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isFinite",{get:function(){var e=null,t=null;for(var n=0,r=this._def.checks;n<r.length;n++){var a=r[n];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}(re);me.create=function(e){return new me(__assign({checks:[],typeName:at.ZodNumber,coerce:(e===null||e===void 0?void 0:e.coerce)||false},ne(e)))};var _e=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!==I.bigint){var n=this._getOrReturnCtx(e);F(n,{code:E.invalid_type,expected:I.bigint,received:n.parsedType});return q}var r=undefined;var a=new V;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){r=this._getOrReturnCtx(e,r);F(r,{code:E.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message});a.dirty()}}else if(o.kind==="max"){var l=o.inclusive?e.data>o.value:e.data>=o.value;if(l){r=this._getOrReturnCtx(e,r);F(r,{code:E.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)){r=this._getOrReturnCtx(e,r);F(r,{code:E.not_multiple_of,multipleOf:o.value,message:o.message});a.dirty()}}else{Z.assertNever(o)}}return{status:a.value,value:e.data}};t.prototype.gte=function(e,t){return this.setLimit("min",e,true,X.toString(t))};t.prototype.gt=function(e,t){return this.setLimit("min",e,false,X.toString(t))};t.prototype.lte=function(e,t){return this.setLimit("max",e,true,X.toString(t))};t.prototype.lt=function(e,t){return this.setLimit("max",e,false,X.toString(t))};t.prototype.setLimit=function(e,n,r,a){return new t(__assign(__assign({},this._def),{checks:__spreadArray(__spreadArray([],this._def.checks,true),[{kind:e,value:n,inclusive:r,message:X.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:X.toString(e)})};t.prototype.negative=function(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:false,message:X.toString(e)})};t.prototype.nonpositive=function(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:true,message:X.toString(e)})};t.prototype.nonnegative=function(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:true,message:X.toString(e)})};t.prototype.multipleOf=function(e,t){return this._addCheck({kind:"multipleOf",value:e,message:X.toString(t)})};Object.defineProperty(t.prototype,"minValue",{get:function(){var e=null;for(var t=0,n=this._def.checks;t<n.length;t++){var r=n[t];if(r.kind==="min"){if(e===null||r.value>e)e=r.value}}return e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"maxValue",{get:function(){var e=null;for(var t=0,n=this._def.checks;t<n.length;t++){var r=n[t];if(r.kind==="max"){if(e===null||r.value<e)e=r.value}}return e},enumerable:false,configurable:true});return t}(re);_e.create=function(e){var t;return new _e(__assign({checks:[],typeName:at.ZodBigInt,coerce:(t=e===null||e===void 0?void 0:e.coerce)!==null&&t!==void 0?t:false},ne(e)))};var ye=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!==I.boolean){var n=this._getOrReturnCtx(e);F(n,{code:E.invalid_type,expected:I.boolean,received:n.parsedType});return q}return H(e.data)};return t}(re);ye.create=function(e){return new ye(__assign({typeName:at.ZodBoolean,coerce:(e===null||e===void 0?void 0:e.coerce)||false},ne(e)))};var ge=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!==I.date){var n=this._getOrReturnCtx(e);F(n,{code:E.invalid_type,expected:I.date,received:n.parsedType});return q}if(isNaN(e.data.getTime())){var r=this._getOrReturnCtx(e);F(r,{code:E.invalid_date});return q}var a=new V;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);F(i,{code:E.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);F(i,{code:E.too_big,message:u.message,inclusive:true,exact:false,maximum:u.value,type:"date"});a.dirty()}}else{Z.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:X.toString(t)})};t.prototype.max=function(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:X.toString(t)})};Object.defineProperty(t.prototype,"minDate",{get:function(){var e=null;for(var t=0,n=this._def.checks;t<n.length;t++){var r=n[t];if(r.kind==="min"){if(e===null||r.value>e)e=r.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,n=this._def.checks;t<n.length;t++){var r=n[t];if(r.kind==="max"){if(e===null||r.value<e)e=r.value}}return e!=null?new Date(e):null},enumerable:false,configurable:true});return t}(re);ge.create=function(e){return new ge(__assign({checks:[],coerce:(e===null||e===void 0?void 0:e.coerce)||false,typeName:at.ZodDate},ne(e)))};var be=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!==I.symbol){var n=this._getOrReturnCtx(e);F(n,{code:E.invalid_type,expected:I.symbol,received:n.parsedType});return q}return H(e.data)};return t}(re);be.create=function(e){return new be(__assign({typeName:at.ZodSymbol},ne(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!==I.undefined){var n=this._getOrReturnCtx(e);F(n,{code:E.invalid_type,expected:I.undefined,received:n.parsedType});return q}return H(e.data)};return t}(re);Te.create=function(e){return new Te(__assign({typeName:at.ZodUndefined},ne(e)))};var xe=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!==I.null){var n=this._getOrReturnCtx(e);F(n,{code:E.invalid_type,expected:I.null,received:n.parsedType});return q}return H(e.data)};return t}(re);xe.create=function(e){return new xe(__assign({typeName:at.ZodNull},ne(e)))};var Me=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 H(e.data)};return t}(re);Me.create=function(e){return new Me(__assign({typeName:at.ZodAny},ne(e)))};var ke=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 H(e.data)};return t}(re);ke.create=function(e){return new ke(__assign({typeName:at.ZodUnknown},ne(e)))};var we=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);F(t,{code:E.invalid_type,expected:I.never,received:t.parsedType});return q};return t}(re);we.create=function(e){return new we(__assign({typeName:at.ZodNever},ne(e)))};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._getType(e);if(t!==I.undefined){var n=this._getOrReturnCtx(e);F(n,{code:E.invalid_type,expected:I.void,received:n.parsedType});return q}return H(e.data)};return t}(re);Ge.create=function(e){return new Ge(__assign({typeName:at.ZodVoid},ne(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._processInputParams(e),n=t.ctx,r=t.status;var a=this._def;if(n.parsedType!==I.array){F(n,{code:E.invalid_type,expected:I.array,received:n.parsedType});return q}if(a.exactLength!==null){var i=n.data.length>a.exactLength.value;var s=n.data.length<a.exactLength.value;if(i||s){F(n,{code:i?E.too_big:E.too_small,minimum:s?a.exactLength.value:undefined,maximum:i?a.exactLength.value:undefined,type:"array",inclusive:true,exact:true,message:a.exactLength.message});r.dirty()}}if(a.minLength!==null){if(n.data.length<a.minLength.value){F(n,{code:E.too_small,minimum:a.minLength.value,type:"array",inclusive:true,exact:false,message:a.minLength.message});r.dirty()}}if(a.maxLength!==null){if(n.data.length>a.maxLength.value){F(n,{code:E.too_big,maximum:a.maxLength.value,type:"array",inclusive:true,exact:false,message:a.maxLength.message});r.dirty()}}if(n.common.async){return Promise.all(__spreadArray([],n.data,true).map((function(e,t){return a.type._parseAsync(new ee(n,e,n.path,t))}))).then((function(e){return V.mergeArray(r,e)}))}var o=__spreadArray([],n.data,true).map((function(e,t){return a.type._parseSync(new ee(n,e,n.path,t))}));return V.mergeArray(r,o)};Object.defineProperty(t.prototype,"element",{get:function(){return this._def.type},enumerable:false,configurable:true});t.prototype.min=function(e,n){return new t(__assign(__assign({},this._def),{minLength:{value:e,message:X.toString(n)}}))};t.prototype.max=function(e,n){return new t(__assign(__assign({},this._def),{maxLength:{value:e,message:X.toString(n)}}))};t.prototype.length=function(e,n){return new t(__assign(__assign({},this._def),{exactLength:{value:e,message:X.toString(n)}}))};t.prototype.nonempty=function(e){return this.min(1,e)};return t}(re);Se.create=function(e,t){return new Se(__assign({type:e,minLength:null,maxLength:null,exactLength:null,typeName:at.ZodArray},ne(t)))};function Ae(e){if(e instanceof Pe){var t={};for(var n in e.shape){var r=e.shape[n];t[n]=We.create(Ae(r))}return new Pe(__assign(__assign({},e._def),{shape:function(){return t}}))}else if(e instanceof Se){return new Se(__assign(__assign({},e._def),{type:Ae(e.element)}))}else if(e instanceof We){return We.create(Ae(e.unwrap()))}else if(e instanceof He){return He.create(Ae(e.unwrap()))}else if(e instanceof Ee){return Ee.create(e.items.map((function(e){return Ae(e)})))}else{return e}}var Pe=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=Z.objectKeys(e);return this._cached={shape:e,keys:t}};t.prototype._parse=function(e){var t=this;var n=this._getType(e);if(n!==I.object){var r=this._getOrReturnCtx(e);F(r,{code:E.invalid_type,expected:I.object,received:r.parsedType});return q}var a=this._processInputParams(e),i=a.status,s=a.ctx;var o=this._getCached(),u=o.shape,l=o.keys;var c=[];if(!(this._def.catchall instanceof we&&this._def.unknownKeys==="strip")){for(var d in s.data){if(!l.includes(d)){c.push(d)}}}var f=[];for(var p=0,h=l;p<h.length;p++){var d=h[p];var v=u[d];var m=s.data[d];f.push({key:{status:"valid",value:d},value:v._parse(new ee(s,m,s.path,d)),alwaysSet:d in s.data})}if(this._def.catchall instanceof we){var _=this._def.unknownKeys;if(_==="passthrough"){for(var y=0,g=c;y<g.length;y++){var d=g[y];f.push({key:{status:"valid",value:d},value:{status:"valid",value:s.data[d]}})}}else if(_==="strict"){if(c.length>0){F(s,{code:E.unrecognized_keys,keys:c});i.dirty()}}else if(_==="strip");else{throw new Error("Internal ZodObject error: invalid unknownKeys value.")}}else{var b=this._def.catchall;for(var T=0,x=c;T<x.length;T++){var d=x[T];var m=s.data[d];f.push({key:{status:"valid",value:d},value:b._parse(new ee(s,m,s.path,d)),alwaysSet:d in s.data})}}if(s.common.async){return Promise.resolve().then((function(){return __awaiter(t,void 0,void 0,(function(){var e,t,n,r,a,i,s;var o;return __generator(this,(function(u){switch(u.label){case 0:e=[];t=0,n=f;u.label=1;case 1:if(!(t<n.length))return[3,5];r=n[t];return[4,r.key];case 2:a=u.sent();s=(i=e).push;o={key:a};return[4,r.value];case 3:s.apply(i,[(o.value=u.sent(),o.alwaysSet=r.alwaysSet,o)]);u.label=4;case 4:t++;return[3,1];case 5:return[2,e]}}))}))})).then((function(e){return V.mergeObjectSync(i,e)}))}else{return V.mergeObjectSync(i,f)}};Object.defineProperty(t.prototype,"shape",{get:function(){return this._def.shape()},enumerable:false,configurable:true});t.prototype.strict=function(e){var n=this;return new t(__assign(__assign(__assign({},this._def),{unknownKeys:"strict"}),e!==undefined?{errorMap:function(t,r){var a,i,s,o;var u=(s=(i=(a=n._def).errorMap)===null||i===void 0?void 0:i.call(a,t,r).message)!==null&&s!==void 0?s:r.defaultError;if(t.code==="unrecognized_keys")return{message:(o=X.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 n=this;return new t(__assign(__assign({},this._def),{shape:function(){return __assign(__assign({},n._def.shape()),e)}}))};t.prototype.merge=function(e){var n=this;var r=new t({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:function(){return __assign(__assign({},n._def.shape()),e._def.shape())},typeName:at.ZodObject});return r};t.prototype.setKey=function(e,t){var n;return this.augment((n={},n[e]=t,n))};t.prototype.catchall=function(e){return new t(__assign(__assign({},this._def),{catchall:e}))};t.prototype.pick=function(e){var n=this;var r={};Z.objectKeys(e).forEach((function(t){if(e[t]&&n.shape[t]){r[t]=n.shape[t]}}));return new t(__assign(__assign({},this._def),{shape:function(){return r}}))};t.prototype.omit=function(e){var n=this;var r={};Z.objectKeys(this.shape).forEach((function(t){if(!e[t]){r[t]=n.shape[t]}}));return new t(__assign(__assign({},this._def),{shape:function(){return r}}))};t.prototype.deepPartial=function(){return Ae(this)};t.prototype.partial=function(e){var n=this;var r={};Z.objectKeys(this.shape).forEach((function(t){var a=n.shape[t];if(e&&!e[t]){r[t]=a}else{r[t]=a.optional()}}));return new t(__assign(__assign({},this._def),{shape:function(){return r}}))};t.prototype.required=function(e){var n=this;var r={};Z.objectKeys(this.shape).forEach((function(t){if(e&&!e[t]){r[t]=n.shape[t]}else{var a=n.shape[t];var i=a;while(i instanceof We){i=i._def.innerType}r[t]=i}}));return new t(__assign(__assign({},this._def),{shape:function(){return r}}))};t.prototype.keyof=function(){return Ue(Z.objectKeys(this.shape))};return t}(re);Pe.create=function(e,t){return new Pe(__assign({shape:function(){return e},unknownKeys:"strip",catchall:we.create(),typeName:at.ZodObject},ne(t)))};Pe.strictCreate=function(e,t){return new Pe(__assign({shape:function(){return e},unknownKeys:"strict",catchall:we.create(),typeName:at.ZodObject},ne(t)))};Pe.lazycreate=function(e,t){return new Pe(__assign({shape:e,unknownKeys:"strip",catchall:we.create(),typeName:at.ZodObject},ne(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;var n=this;var r=this._processInputParams(e).ctx;var a=this._def.options;function i(e){var t;for(var n=0,a=e;n<a.length;n++){var i=a[n];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=r.common.issues).push.apply(t,i.ctx.common.issues);return i.result}}var u=e.map((function(e){return new z(e.ctx.common.issues)}));F(r,{code:E.invalid_union,unionErrors:u});return q}if(r.common.async){return Promise.all(a.map((function(e){return __awaiter(n,void 0,void 0,(function(){var t;var n;return __generator(this,(function(a){switch(a.label){case 0:t=__assign(__assign({},r),{common:__assign(__assign({},r.common),{issues:[]}),parent:null});n={};return[4,e._parseAsync({data:r.data,path:r.path,parent:t})];case 1:return[2,(n.result=a.sent(),n.ctx=t,n)]}}))}))}))).then(i)}else{var s=undefined;var o=[];for(var u=0,l=a;u<l.length;u++){var c=l[u];var d=__assign(__assign({},r),{common:__assign(__assign({},r.common),{issues:[]}),parent:null});var f=c._parseSync({data:r.data,path:r.path,parent:d});if(f.status==="valid"){return f}else if(f.status==="dirty"&&!s){s={result:f,ctx:d}}if(d.common.issues.length){o.push(d.common.issues)}}if(s){(t=r.common.issues).push.apply(t,s.ctx.common.issues);return s.result}var p=o.map((function(e){return new z(e)}));F(r,{code:E.invalid_union,unionErrors:p});return q}};Object.defineProperty(t.prototype,"options",{get:function(){return this._def.options},enumerable:false,configurable:true});return t}(re);je.create=function(e,t){return new je(__assign({options:e,typeName:at.ZodUnion},ne(t)))};var Ze=function(e){if(e instanceof Le){return Ze(e.schema)}else if(e instanceof qe){return Ze(e.innerType())}else if(e instanceof De){return[e.value]}else if(e instanceof Be){return e.options}else if(e instanceof Fe){return Object.keys(e.enum)}else if(e instanceof $e){return Ze(e._def.innerType)}else if(e instanceof Te){return[undefined]}else if(e instanceof xe){return[null]}else{return null}};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._processInputParams(e).ctx;if(t.parsedType!==I.object){F(t,{code:E.invalid_type,expected:I.object,received:t.parsedType});return q}var n=this.discriminator;var r=t.data[n];var a=this.optionsMap.get(r);if(!a){F(t,{code:E.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]});return q}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,n,r){var a=new Map;for(var i=0,s=n;i<s.length;i++){var o=s[i];var u=Ze(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 l=0,c=u;l<c.length;l++){var d=c[l];if(a.has(d)){throw new Error("Discriminator property ".concat(String(e)," has duplicate value ").concat(String(d)))}a.set(d,o)}}return new t(__assign({typeName:at.ZodDiscriminatedUnion,discriminator:e,options:n,optionsMap:a},ne(r)))};return t}(re);function Ie(e,t){var n=O(e);var r=O(t);if(e===t){return{valid:true,data:e}}else if(n===I.object&&r===I.object){var a=Z.objectKeys(t);var i=Z.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 l=u[o];var c=Ie(e[l],t[l]);if(!c.valid){return{valid:false}}s[l]=c.data}return{valid:true,data:s}}else if(n===I.array&&r===I.array){if(e.length!==t.length){return{valid:false}}var d=[];for(var f=0;f<e.length;f++){var p=e[f];var h=t[f];var c=Ie(p,h);if(!c.valid){return{valid:false}}d.push(c.data)}return{valid:true,data:d}}else if(n===I.date&&r===I.date&&+e===+t){return{valid:true,data:e}}else{return{valid:false}}}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._processInputParams(e),n=t.status,r=t.ctx;var a=function(e,t){if($(e)||$(t)){return q}var a=Ie(e.value,t.value);if(!a.valid){F(r,{code:E.invalid_intersection_types});return q}if(J(e)||J(t)){n.dirty()}return{status:n.value,value:a.data}};if(r.common.async){return Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then((function(e){var t=e[0],n=e[1];return a(t,n)}))}else{return a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}};return t}(re);Oe.create=function(e,t,n){return new Oe(__assign({left:e,right:t,typeName:at.ZodIntersection},ne(n)))};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 n=this._processInputParams(e),r=n.status,a=n.ctx;if(a.parsedType!==I.array){F(a,{code:E.invalid_type,expected:I.array,received:a.parsedType});return q}if(a.data.length<this._def.items.length){F(a,{code:E.too_small,minimum:this._def.items.length,inclusive:true,exact:false,type:"array"});return q}var i=this._def.rest;if(!i&&a.data.length>this._def.items.length){F(a,{code:E.too_big,maximum:this._def.items.length,inclusive:true,exact:false,type:"array"});r.dirty()}var s=__spreadArray([],a.data,true).map((function(e,n){var r=t._def.items[n]||t._def.rest;if(!r)return null;return r._parse(new ee(a,e,a.path,n))})).filter((function(e){return!!e}));if(a.common.async){return Promise.all(s).then((function(e){return V.mergeArray(r,e)}))}else{return V.mergeArray(r,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}(re);Ee.create=function(e,t){if(!Array.isArray(e)){throw new Error("You must pass an array of schemas to z.tuple([ ... ])")}return new Ee(__assign({items:e,typeName:at.ZodTuple,rest:null},ne(t)))};var Ne=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),n=t.status,r=t.ctx;if(r.parsedType!==I.object){F(r,{code:E.invalid_type,expected:I.object,received:r.parsedType});return q}var a=[];var i=this._def.keyType;var s=this._def.valueType;for(var o in r.data){a.push({key:i._parse(new ee(r,o,r.path,o)),value:s._parse(new ee(r,r.data[o],r.path,o))})}if(r.common.async){return V.mergeObjectAsync(n,a)}else{return V.mergeObjectSync(n,a)}};Object.defineProperty(t.prototype,"element",{get:function(){return this._def.valueType},enumerable:false,configurable:true});t.create=function(e,n,r){if(n instanceof re){return new t(__assign({keyType:e,valueType:n,typeName:at.ZodRecord},ne(r)))}return new t(__assign({keyType:he.create(),valueType:e,typeName:at.ZodRecord},ne(n)))};return t}(re);var ze=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 n=this._processInputParams(e),r=n.status,a=n.ctx;if(a.parsedType!==I.map){F(a,{code:E.invalid_type,expected:I.map,received:a.parsedType});return q}var i=this._def.keyType;var s=this._def.valueType;var o=__spreadArray([],a.data.entries(),true).map((function(e,t){var n=e[0],r=e[1];return{key:i._parse(new ee(a,n,a.path,[t,"key"])),value:s._parse(new ee(a,r,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,n,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];n=t[e];return[4,n.key];case 2:a=s.sent();return[4,n.value];case 3:i=s.sent();if(a.status==="aborted"||i.status==="aborted"){return[2,q]}if(a.status==="dirty"||i.status==="dirty"){r.dirty()}u.set(a.value,i.value);s.label=4;case 4:e++;return[3,1];case 5:return[2,{status:r.value,value:u}]}}))}))}))}else{var l=new Map;for(var c=0,d=o;c<d.length;c++){var f=d[c];var p=f.key;var h=f.value;if(p.status==="aborted"||h.status==="aborted"){return q}if(p.status==="dirty"||h.status==="dirty"){r.dirty()}l.set(p.value,h.value)}return{status:r.value,value:l}}};return t}(re);ze.create=function(e,t,n){return new ze(__assign({valueType:t,keyType:e,typeName:at.ZodMap},ne(n)))};var Ke=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),n=t.status,r=t.ctx;if(r.parsedType!==I.set){F(r,{code:E.invalid_type,expected:I.set,received:r.parsedType});return q}var a=this._def;if(a.minSize!==null){if(r.data.size<a.minSize.value){F(r,{code:E.too_small,minimum:a.minSize.value,type:"set",inclusive:true,exact:false,message:a.minSize.message});n.dirty()}}if(a.maxSize!==null){if(r.data.size>a.maxSize.value){F(r,{code:E.too_big,maximum:a.maxSize.value,type:"set",inclusive:true,exact:false,message:a.maxSize.message});n.dirty()}}var i=this._def.valueType;function s(e){var t=new Set;for(var r=0,a=e;r<a.length;r++){var i=a[r];if(i.status==="aborted")return q;if(i.status==="dirty")n.dirty();t.add(i.value)}return{status:n.value,value:t}}var o=__spreadArray([],r.data.values(),true).map((function(e,t){return i._parse(new ee(r,e,r.path,t))}));if(r.common.async){return Promise.all(o).then((function(e){return s(e)}))}else{return s(o)}};t.prototype.min=function(e,n){return new t(__assign(__assign({},this._def),{minSize:{value:e,message:X.toString(n)}}))};t.prototype.max=function(e,n){return new t(__assign(__assign({},this._def),{maxSize:{value:e,message:X.toString(n)}}))};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}(re);Ke.create=function(e,t){return new Ke(__assign({valueType:e,minSize:null,maxSize:null,typeName:at.ZodSet},ne(t)))};var Re=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!==I.function){F(t,{code:E.invalid_type,expected:I.function,received:t.parsedType});return q}function n(e,n){return U({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,D(),K].filter((function(e){return!!e})),issueData:{code:E.invalid_arguments,argumentsError:n}})}function r(e,n){return U({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,D(),K].filter((function(e){return!!e})),issueData:{code:E.invalid_return_type,returnTypeError:n}})}var a={errorMap:t.common.contextualErrorMap};var i=t.data;if(this._def.returns instanceof Ve){var s=this;return H((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,l;return __generator(this,(function(c){switch(c.label){case 0:t=new z([]);return[4,s._def.args.parseAsync(e,a).catch((function(r){t.addIssue(n(e,r));throw t}))];case 1:o=c.sent();return[4,Reflect.apply(i,this,o)];case 2:u=c.sent();return[4,s._def.returns._def.type.parseAsync(u,a).catch((function(e){t.addIssue(r(u,e));throw t}))];case 3:l=c.sent();return[2,l]}}))}))}))}else{var o=this;return H((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 z([n(e,s.error)])}var u=Reflect.apply(i,this,s.data);var l=o._def.returns.safeParse(u,a);if(!l.success){throw new z([r(u,l.error)])}return l.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 n=0;n<arguments.length;n++){e[n]=arguments[n]}return new t(__assign(__assign({},this._def),{args:Ee.create(e).rest(ke.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,n,r){return new t(__assign({args:e?e:Ee.create([]).rest(ke.create()),returns:n||ke.create(),typeName:at.ZodFunction},ne(r)))};return t}(re);var Le=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 n=this._def.getter();return n._parse({data:t.data,path:t.path,parent:t})};return t}(re);Le.create=function(e,t){return new Le(__assign({getter:e,typeName:at.ZodLazy},ne(t)))};var De=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);F(t,{received:t.data,code:E.invalid_literal,expected:this._def.value});return q}return{status:"valid",value:e.data}};Object.defineProperty(t.prototype,"value",{get:function(){return this._def.value},enumerable:false,configurable:true});return t}(re);De.create=function(e,t){return new De(__assign({value:e,typeName:at.ZodLiteral},ne(t)))};function Ue(e,t){return new Be(__assign({values:e,typeName:at.ZodEnum},ne(t)))}var Be=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 n=this._def.values;F(t,{expected:Z.joinValues(n),received:t.parsedType,code:E.invalid_type});return q}if(this._def.values.indexOf(e.data)===-1){var t=this._getOrReturnCtx(e);var n=this._def.values;F(t,{received:t.data,code:E.invalid_enum_value,options:n});return q}return H(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,n=this._def.values;t<n.length;t++){var r=n[t];e[r]=r}return e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"Values",{get:function(){var e={};for(var t=0,n=this._def.values;t<n.length;t++){var r=n[t];e[r]=r}return e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"Enum",{get:function(){var e={};for(var t=0,n=this._def.values;t<n.length;t++){var r=n[t];e[r]=r}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}(re);Be.create=Ue;var Fe=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=Z.getValidEnumValues(this._def.values);var n=this._getOrReturnCtx(e);if(n.parsedType!==I.string&&n.parsedType!==I.number){var r=Z.objectValues(t);F(n,{expected:Z.joinValues(r),received:n.parsedType,code:E.invalid_type});return q}if(t.indexOf(e.data)===-1){var r=Z.objectValues(t);F(n,{received:n.data,code:E.invalid_enum_value,options:r});return q}return H(e.data)};Object.defineProperty(t.prototype,"enum",{get:function(){return this._def.values},enumerable:false,configurable:true});return t}(re);Fe.create=function(e,t){return new Fe(__assign({values:e,typeName:at.ZodNativeEnum},ne(t)))};var Ve=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 n=this._processInputParams(e).ctx;if(n.parsedType!==I.promise&&n.common.async===false){F(n,{code:E.invalid_type,expected:I.promise,received:n.parsedType});return q}var r=n.parsedType===I.promise?n.data:Promise.resolve(n.data);return H(r.then((function(e){return t._def.type.parseAsync(e,{path:n.path,errorMap:n.common.contextualErrorMap})})))};return t}(re);Ve.create=function(e,t){return new Ve(__assign({type:e,typeName:at.ZodPromise},ne(t)))};var qe=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===at.ZodEffects?this._def.schema.sourceType():this._def.schema};t.prototype._parse=function(e){var t=this;var n=this._processInputParams(e),r=n.status,a=n.ctx;var i=this._def.effect||null;var s={addIssue:function(e){F(a,e);if(e.fatal){r.abort()}else{r.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 l=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(l.status==="aborted")return q;if(l.status==="dirty")r.dirty();u(l.value);return{status:r.value,value:l.value}}else{return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then((function(e){if(e.status==="aborted")return q;if(e.status==="dirty")r.dirty();return u(e.value).then((function(){return{status:r.value,value:e.value}}))}))}}if(i.type==="transform"){if(a.common.async===false){var c=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!Y(c))return c;var d=i.transform(c.value,s);if(d instanceof Promise){throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.")}return{status:r.value,value:d}}else{return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then((function(e){if(!Y(e))return e;return Promise.resolve(i.transform(e.value,s)).then((function(e){return{status:r.value,value:e}}))}))}}Z.assertNever(i)};return t}(re);qe.create=function(e,t,n){return new qe(__assign({schema:e,typeName:at.ZodEffects,effect:t},ne(n)))};qe.createWithPreprocess=function(e,t,n){return new qe(__assign({schema:t,effect:{type:"preprocess",transform:e},typeName:at.ZodEffects},ne(n)))};var We=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===I.undefined){return H(undefined)}return this._def.innerType._parse(e)};t.prototype.unwrap=function(){return this._def.innerType};return t}(re);We.create=function(e,t){return new We(__assign({innerType:e,typeName:at.ZodOptional},ne(t)))};var He=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===I.null){return H(null)}return this._def.innerType._parse(e)};t.prototype.unwrap=function(){return this._def.innerType};return t}(re);He.create=function(e,t){return new He(__assign({innerType:e,typeName:at.ZodNullable},ne(t)))};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._processInputParams(e).ctx;var n=t.data;if(t.parsedType===I.undefined){n=this._def.defaultValue()}return this._def.innerType._parse({data:n,path:t.path,parent:t})};t.prototype.removeDefault=function(){return this._def.innerType};return t}(re);$e.create=function(e,t){return new $e(__assign({innerType:e,typeName:at.ZodDefault,defaultValue:typeof t.default==="function"?t.default:function(){return t.default}},ne(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;var n=this._processInputParams(e).ctx;var r=__assign(__assign({},n),{common:__assign(__assign({},n.common),{issues:[]})});var a=this._def.innerType._parse({data:r.data,path:r.path,parent:__assign({},r)});if(Q(a)){return a.then((function(e){return{status:"valid",value:e.status==="valid"?e.value:t._def.catchValue({get error(){return new z(r.common.issues)},input:r.data})}}))}else{return{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new z(r.common.issues)},input:r.data})}}};t.prototype.removeCatch=function(){return this._def.innerType};return t}(re);Je.create=function(e,t){return new Je(__assign({innerType:e,typeName:at.ZodCatch,catchValue:typeof t.catch==="function"?t.catch:function(){return t.catch}},ne(t)))};var Ye=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!==I.nan){var n=this._getOrReturnCtx(e);F(n,{code:E.invalid_type,expected:I.nan,received:n.parsedType});return q}return{status:"valid",value:e.data}};return t}(re);Ye.create=function(e){return new Ye(__assign({typeName:at.ZodNaN},ne(e)))};var Qe=Symbol("zod_brand");var Xe=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 n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})};t.prototype.unwrap=function(){return this._def.type};return t}(re);var et=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype._parse=function(e){var t=this;var n=this._processInputParams(e),r=n.status,a=n.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,q];if(e.status==="dirty"){r.dirty();return[2,W(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 q;if(s.status==="dirty"){r.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,n){return new t({in:e,out:n,typeName:at.ZodPipeline})};return t}(re);var tt=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(Y(t)){t.value=Object.freeze(t.value)}return t};return t}(re);tt.create=function(e,t){return new tt(__assign({innerType:e,typeName:at.ZodReadonly},ne(t)))};var nt=function(e,t,n){if(t===void 0){t={}}if(e)return Me.create().superRefine((function(r,a){var i,s;if(!e(r)){var o=typeof t==="function"?t(r):typeof t==="string"?{message:t}:t;var u=(s=(i=o.fatal)!==null&&i!==void 0?i:n)!==null&&s!==void 0?s:true;var l=typeof o==="string"?{message:o}:o;a.addIssue(__assign(__assign({code:"custom"},l),{fatal:u}))}}));return Me.create()};var rt={object:Pe.lazycreate};var at;(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"})(at||(at={}));var it=function(e,t){if(t===void 0){t={message:"Input not instance of ".concat(e.name)}}return nt((function(t){return t instanceof e}),t)};var st=he.create;var ot=me.create;var ut=Ye.create;var lt=_e.create;var ct=ye.create;var dt=ge.create;var ft=be.create;var pt=Te.create;var ht=xe.create;var vt=Me.create;var mt=ke.create;var _t=we.create;var yt=Ge.create;var gt=Se.create;var bt=Pe.create;var Tt=Pe.strictCreate;var xt=je.create;var Mt=Ce.create;var kt=Oe.create;var wt=Ee.create;var Gt=Ne.create;var St=ze.create;var At=Ke.create;var Pt=Re.create;var jt=Le.create;var Zt=De.create;var Ct=Be.create;var It=Fe.create;var Ot=Ve.create;var Et=qe.create;var Nt=We.create;var zt=He.create;var Kt=qe.createWithPreprocess;var Rt=et.create;var Lt=function(){return st().optional()};var Dt=function(){return ot().optional()};var Ut=function(){return ct().optional()};var Bt={string:function(e){return he.create(__assign(__assign({},e),{coerce:true}))},number:function(e){return me.create(__assign(__assign({},e),{coerce:true}))},boolean:function(e){return ye.create(__assign(__assign({},e),{coerce:true}))},bigint:function(e){return _e.create(__assign(__assign({},e),{coerce:true}))},date:function(e){return ge.create(__assign(__assign({},e),{coerce:true}))}};var Ft=q;var Vt=Object.freeze({__proto__:null,defaultErrorMap:K,setErrorMap:L,getErrorMap:D,makeIssue:U,EMPTY_PATH:B,addIssueToContext:F,ParseStatus:V,INVALID:q,DIRTY:W,OK:H,isAborted:$,isDirty:J,isValid:Y,isAsync:Q,get util(){return Z},get objectUtil(){return C},ZodParsedType:I,getParsedType:O,ZodType:re,ZodString:he,ZodNumber:me,ZodBigInt:_e,ZodBoolean:ye,ZodDate:ge,ZodSymbol:be,ZodUndefined:Te,ZodNull:xe,ZodAny:Me,ZodUnknown:ke,ZodNever:we,ZodVoid:Ge,ZodArray:Se,ZodObject:Pe,ZodUnion:je,ZodDiscriminatedUnion:Ce,ZodIntersection:Oe,ZodTuple:Ee,ZodRecord:Ne,ZodMap:ze,ZodSet:Ke,ZodFunction:Re,ZodLazy:Le,ZodLiteral:De,ZodEnum:Be,ZodNativeEnum:Fe,ZodPromise:Ve,ZodEffects:qe,ZodTransformer:qe,ZodOptional:We,ZodNullable:He,ZodDefault:$e,ZodCatch:Je,ZodNaN:Ye,BRAND:Qe,ZodBranded:Xe,ZodPipeline:et,ZodReadonly:tt,custom:nt,Schema:re,ZodSchema:re,late:rt,get ZodFirstPartyTypeKind(){return at},coerce:Bt,any:vt,array:gt,bigint:lt,boolean:ct,date:dt,discriminatedUnion:Mt,effect:Et,enum:Ct,function:Pt,instanceof:it,intersection:kt,lazy:jt,literal:Zt,map:St,nan:ut,nativeEnum:It,never:_t,null:ht,nullable:zt,number:ot,object:bt,oboolean:Ut,onumber:Dt,optional:Nt,ostring:Lt,pipeline:Rt,preprocess:Kt,promise:Ot,record:Gt,set:At,strictObject:Tt,string:st,symbol:ft,transformer:Et,tuple:wt,undefined:pt,union:xt,unknown:mt,void:yt,NEVER:Ft,ZodIssueCode:E,quotelessJson:N,ZodError:z});var qt=[["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 Wt='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 Ht=qt.map((function(e){return{value:e[2],label:e[2]}}));var $t=Vt.object({name:Vt.string().trim().min(1,"Name is required").max(30),business_name:Vt.string().trim().max(30).optional(),contact_email:Vt.string().trim().email("Invalid email").optional().or(Vt.literal("")),phone:Vt.preprocess((function(e){return f(String(e).trim())}),Vt.string().optional()),address:Vt.string().trim().max(30).optional(),address2:Vt.string().trim().max(30).optional(),timezone:Vt.string().trim().optional(),url:Vt.string().trim().optional()});var Jt=e("verdocs_settings_organization",function(){function e(e){t(this,e);this.sdkError=n(this,"sdkError",7);this.organizationUpdated=n(this,"organizationUpdated",7);this.endpoint=i.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,u(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();l(i.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 n;console.log("[SETTINGS] Update result",e);(n=t.organizationUpdated)===null||n===void 0?void 0:n.emit({endpoint:t.endpoint,organization:e});t.resetForm(e)})).catch((function(e){return s("Error updating organization: ".concat(e.message),{style:"error"})}))};e.prototype.processFields=function(){var e=$t.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 r(a,{class:"authentication-required"},"Must be authenticated")}return r(a,null,r("h1",null,"Organization Profile"),r("form",{onSubmit:function(t){return e.handleSubmit(t)}},r("div",{class:"columns"},r("div",{class:"column"},r("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()}}),r("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()}}),r("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()}}),r("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()}})),r("div",{class:"column"},r("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()}}),r("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()}}),r("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()}}),r("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()}}),r("verdocs-select-input",{options:Ht,value:this.timezone,label:"Time Zone"}))),r("verdocs-button",{type:"submit",label:"Save",size:"normal",disabled:this.submitting||!this.dirty})))};return e}());Jt.style=Wt;var Yt='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 Qt=Vt.object({first_name:Vt.string().trim().min(1,"First name is required").max(30),last_name:Vt.string().trim().min(1,"Last name is required").max(30),email:Vt.string().trim().email("Invalid email").min(1,"Email is required"),phone:Vt.preprocess((function(e){return f(String(e).trim())}),Vt.string())});var Xt=e("verdocs_settings_profile",function(){function e(e){t(this,e);this.sdkError=n(this,"sdkError",7);this.profileUpdated=n(this,"profileUpdated",7);this.endpoint=i.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,c(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();d(i.getDefault(),this.endpoint.session.profile_id,{first_name:this.first_name,last_name:this.last_name,phone:this.phone}).then((function(e){var n;console.log("[SETTINGS] Update result",e);(n=t.profileUpdated)===null||n===void 0?void 0:n.emit({endpoint:t.endpoint,profile:e});t.resetForm(e)})).catch((function(e){return s("Error updating profile: ".concat(e.message),{style:"error"})}))};e.prototype.processFields=function(){var e=Qt.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 r(a,{class:"authentication-required"},"Must be authenticated")}return r(a,null,r("h1",null,"My Profile"),r("form",{onSubmit:function(t){return e.handleSubmit(t)}},r("div",{class:"columns"},r("div",{class:"column"},r("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()}}),r("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()}})),r("div",{class:"column"},r("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()}}),r("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()}}))),r("verdocs-button",{type:"submit",label:"Save",size:"normal",disabled:this.submitting||!this.dirty})))};return e}());Xt.style=Yt}}}));
@@ -1 +0,0 @@
1
- System.register(["./p-2dbc05c6.system.js","./p-9a5ff58c.system.js"],(function(t){"use strict";var o,n,e,i;return{setters:[function(t){o=t.r;n=t.h;e=t.H},function(t){i=t.c}],execute:function(){var r='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 s=t("verdocs_button",function(){function t(t){o(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 n("button",{disabled:this.disabled,type:this.type,class:"".concat(this.variant," ").concat(this.size," ").concat(this.type)},this.startIcon?n("span",{class:"icon start",innerHTML:this.startIcon}):null,n("span",{class:"button-label"},this.label),this.endIcon?n("span",{class:"icon end",innerHTML:this.endIcon}):null)};return t}());s.style=r;var c='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 .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 a='<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" fill="#5c6575"><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 l=t("verdocs_help_icon",function(){function t(t){o(this,t);this.text="";this.icon=a;this.containerId="verdocs-help-icon-".concat(Math.random().toString(36).substring(2,11))}t.prototype.componentDidLoad=function(){this.popperInstance=i(this.iconEl,this.tooltipEl,{})};t.prototype.disconnectedCallback=function(){if(this.popperInstance){this.popperInstance.destroy();this.popperInstance=null}};t.prototype.show=function(){var t,o;(t=this.tooltipEl)===null||t===void 0?void 0:t.setAttribute("data-show","");(o=this.popperInstance)===null||o===void 0?void 0:o.update().catch((function(){}))};t.prototype.hide=function(){var t;(t=this.tooltipEl)===null||t===void 0?void 0:t.removeAttribute("data-show")};t.prototype.render=function(){var t=this;return n(e,{class:{}},n("div",{"aria-describedby":this.containerId,class:"icon",innerHTML:this.icon,onMouseEnter:function(){return t.show()},onFocus:function(){return t.show()},onMouseLeave:function(){return t.hide()},onBlur:function(){return t.hide()},ref:function(o){return t.iconEl=o}}),n("div",{id:this.containerId,role:"tooltip",class:"tooltip","data-popper-placement":"bottom",ref:function(o){return t.tooltipEl=o}},n("span",{innerHTML:this.text}),n("div",{"data-popper-arrow":"true",class:"arrow"})))};return t}());l.style=c}}}));
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as s,H as l}from"./p-6d3e0994.js";import"./p-05788c2b.js";import{V as i,a}from"./p-af048fad.js";import{l as r,d as c}from"./p-976ec9e8.js";import{i as d}from"./p-7291906c.js";import{S as o}from"./p-7a1b2643.js";import{f as n}from"./p-c220af42.js";const h=[{value:"all",label:"All"},{value:"personal",label:"Personal"},{value:"shared",label:"Shared"},{value:"public",label:"Public"}],p=[{value:"all",label:"All"},{value:"starred",label:"Starred"},{value:"unstarred",label:"Not Starred"}],v=[{value:"name",label:"Name"},{value:"created_at",label:"Created"},{value:"updated_at",label:"Last Updated"},{value:"last_used_at",label:"Last Used"},{value:"counter",label:"Most Used"},{value:"star_counter",label:"Most Starred"}],m=class{constructor(s){e(this,s),this.sdkError=t(this,"sdkError",7),this.viewTemplate=t(this,"viewTemplate",7),this.signNow=t(this,"signNow",7),this.submittedData=t(this,"submittedData",7),this.editTemplate=t(this,"editTemplate",7),this.templateDeleted=t(this,"templateDeleted",7),this.changeSort=t(this,"changeSort",7),this.changeSharing=t(this,"changeSharing",7),this.changeStarred=t(this,"changeStarred",7),this.changeName=t(this,"changeName",7),this.handleOptionSelected=(e,t)=>{var s,l,i,a;"send"===e?null===(s=this.viewTemplate)||void 0===s||s.emit({endpoint:this.endpoint,template:t}):"signnow"===e?null===(l=this.signNow)||void 0===l||l.emit({endpoint:this.endpoint,template:t}):"submitted"===e?null===(i=this.submittedData)||void 0===i||i.emit({endpoint:this.endpoint,template:t}):"edit"===e?null===(a=this.editTemplate)||void 0===a||a.emit({endpoint:this.endpoint,template:t}):"delete"===e&&(this.confirmDelete=t)},this.endpoint=i.getDefault(),this.sharing="all",this.starred="all",this.sort="updated_at",this.name="",this.allowedActions=["send","submitted","link","edit","delete"],this.showPagination=!0,this.rowsPerPage=10,this.selectedPage=0,this.count=0,this.initiallyLoaded=!1,this.loading=!0,this.confirmDelete=null,this.templates=[],this.localNameFilter=""}handleSharingUpdated(){return this.queryTemplates()}handleStarredUpdated(){return this.queryTemplates()}handleSortUpdated(){return this.queryTemplates()}handleNameUpdated(){return this.queryTemplates()}handlePageUpdated(){return this.queryTemplates()}componentWillLoad(){this.endpoint.loadSession(),this.endpoint.session||console.log("[TEMPLATES] Must be authenticated")}async componentDidLoad(){await this.queryTemplates(),this.initiallyLoaded=!0}async queryTemplates(){var e,t,s;console.log("[TEMPLATES] Querying templates"),this.loading=!0;try{let e={sharing:this.sharing,starred:this.starred,page:this.selectedPage,sort:this.sort,rows:this.rowsPerPage};""!==this.name.trim()&&(e.name=this.name.trim());const t=await r(this.endpoint,e);this.templates=t.records,this.count=t.total,this.loading=!1}catch(l){this.loading=!1,console.log("[TEMPLATES] Error listing templates",l),null===(e=this.sdkError)||void 0===e||e.emit(new o(l.message,null===(t=l.response)||void 0===t?void 0:t.status,null===(s=l.response)||void 0===s?void 0:s.data))}}deleteTemplate(e){this.confirmDelete=null,c(this.endpoint,e.id).then((()=>{var t;return console.log("[TEMPLATES] Deleted template",e),null===(t=this.templateDeleted)||void 0===t||t.emit({endpoint:this.endpoint,template:e}),this.queryTemplates()})).catch((t=>{var s,l,i;console.log("[TEMPLATES] Error deleting template",e),null===(s=this.sdkError)||void 0===s||s.emit(new o(t.message,null===(l=t.response)||void 0===l?void 0:l.status,null===(i=t.response)||void 0===i?void 0:i.data))}))}render(){const e=this.localNameFilter?this.templates.filter((e=>e.name.toLowerCase().includes(this.localNameFilter.toLowerCase()))):this.templates;return s(l,null,s("div",{class:"header"},s("div",{class:"filter"},s("verdocs-text-input",{id:"verdocs-filter-name",value:this.name,clearable:!0,autocomplete:"off",placeholder:"Filter by Name...",onInput:e=>this.localNameFilter=e.target.value.trim(),onFocusout:e=>{var t;this.name=e.target.value.trim(),this.localNameFilter=e.target.value.trim(),null===(t=this.changeName)||void 0===t||t.emit(this.name)}})),s("verdocs-quick-filter",{label:"Sharing",value:this.sharing,options:h,onOptionSelected:e=>{var t;this.sharing=e.detail.value,null===(t=this.changeSharing)||void 0===t||t.emit(this.sharing)}}),s("verdocs-quick-filter",{label:"Starred",value:this.starred,options:p,onOptionSelected:e=>{var t;this.starred=e.detail.value,null===(t=this.changeStarred)||void 0===t||t.emit(this.starred)}}),s("verdocs-quick-filter",{label:"Sort By",value:this.sort,options:v,onOptionSelected:e=>{var t;this.sort=e.detail.value,null===(t=this.changeSort)||void 0===t||t.emit(this.sort)}}),this.loading&&s("verdocs-spinner",{mode:"dark",size:24}),s("div",{style:{display:"flex",flex:"1"}})),e.map((e=>{const t="created_at"===this.sort?"created_at":"updated_at"===this.sort?"updated_at":"last_used_at",l=e[t],i=[];return e.allowed_operations.includes(a.READ)&&this.allowedActions.includes("send")&&i.push({label:"Preview / Send",id:"send",disabled:!e.allowed_operations.includes(a.READ)}),e.allowed_operations.includes(a.CREATE_PERSONAL)&&this.allowedActions.includes("signnow")&&i.push({label:"Sign Now",id:"signnow",disabled:!0}),e.allowed_operations.includes(a.READ)&&this.allowedActions.includes("submitted")&&(i.push({label:""}),i.push({label:"Submissions",id:"submitted"})),(this.allowedActions.includes("link")||this.allowedActions.includes("edit")||this.allowedActions.includes("delete"))&&(i.push({label:""}),(this.allowedActions.includes("link")||this.allowedActions.includes("edit")||this.allowedActions.includes("delete"))&&i.push({label:"Edit",id:"edit",disabled:!e.allowed_operations.includes(a.WRITE)}),(this.allowedActions.includes("link")||this.allowedActions.includes("edit")||this.allowedActions.includes("delete"))&&i.push({label:"Delete",id:"delete",disabled:!e.allowed_operations.includes(a.DELETE)})),s("div",{class:"template",onClick:()=>{var t;null===(t=this.viewTemplate)||void 0===t||t.emit({endpoint:this.endpoint,template:e})}},s("div",{class:"inner"},s("verdocs-template-star",{template:e,endpoint:this.endpoint}),s("div",{class:"spacer icon-spacer"}),s("div",{class:"name"},e.name),s("div",{class:"spacer usage-spacer"}),s("div",{class:"usage"},s("span",{innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M21.75 6.75v10.5a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25m19.5 0v.243a2.25 2.25 0 01-1.07 1.916l-7.5 4.615a2.25 2.25 0 01-2.36 0L3.32 8.91a2.25 2.25 0 01-1.07-1.916V6.75" /></svg>',title:"Usage Counter"}),e.counter||"--"),s("div",{class:"spacer last-used-spacer"}),s("div",{class:"last-used"},"created_at"===t&&s("span",{innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.88 122.88"><g><path d="M81.61,4.73c0-2.61,2.58-4.73,5.77-4.73c3.19,0,5.77,2.12,5.77,4.73v20.72c0,2.61-2.58,4.73-5.77,4.73 c-3.19,0-5.77-2.12-5.77-4.73V4.73L81.61,4.73z M66.11,103.81c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2H81.9 c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H66.11L66.11,103.81z M15.85,67.09c-0.34,0-0.61-1.43-0.61-3.2 c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H15.85L15.85,67.09z M40.98,67.09 c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H40.98 L40.98,67.09z M66.11,67.09c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2H81.9c0.34,0,0.61,1.43,0.61,3.2 c0,1.77-0.27,3.2-0.61,3.2H66.11L66.11,67.09z M91.25,67.09c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79 c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H91.25L91.25,67.09z M15.85,85.45c-0.34,0-0.61-1.43-0.61-3.2 c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H15.85L15.85,85.45z M40.98,85.45 c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H40.98 L40.98,85.45z M66.11,85.45c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2H81.9c0.34,0,0.61,1.43,0.61,3.2 c0,1.77-0.27,3.2-0.61,3.2H66.11L66.11,85.45z M91.25,85.45c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79 c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H91.25L91.25,85.45z M15.85,103.81c-0.34,0-0.61-1.43-0.61-3.2 c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H15.85L15.85,103.81z M40.98,103.81 c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H40.98 L40.98,103.81z M29.61,4.73c0-2.61,2.58-4.73,5.77-4.73s5.77,2.12,5.77,4.73v20.72c0,2.61-2.58,4.73-5.77,4.73 s-5.77-2.12-5.77-4.73V4.73L29.61,4.73z M6.4,45.32h110.07V21.47c0-0.8-0.33-1.53-0.86-2.07c-0.53-0.53-1.26-0.86-2.07-0.86H103 c-1.77,0-3.2-1.43-3.2-3.2c0-1.77,1.43-3.2,3.2-3.2h10.55c2.57,0,4.9,1.05,6.59,2.74c1.69,1.69,2.74,4.02,2.74,6.59v27.06v65.03 c0,2.57-1.05,4.9-2.74,6.59c-1.69,1.69-4.02,2.74-6.59,2.74H9.33c-2.57,0-4.9-1.05-6.59-2.74C1.05,118.45,0,116.12,0,113.55V48.52 V21.47c0-2.57,1.05-4.9,2.74-6.59c1.69-1.69,4.02-2.74,6.59-2.74H20.6c1.77,0,3.2,1.43,3.2,3.2c0,1.77-1.43,3.2-3.2,3.2H9.33 c-0.8,0-1.53,0.33-2.07,0.86c-0.53,0.53-0.86,1.26-0.86,2.07V45.32L6.4,45.32z M116.48,51.73H6.4v61.82c0,0.8,0.33,1.53,0.86,2.07 c0.53,0.53,1.26,0.86,2.07,0.86h104.22c0.8,0,1.53-0.33,2.07-0.86c0.53-0.53,0.86-1.26,0.86-2.07V51.73L116.48,51.73z M50.43,18.54 c-1.77,0-3.2-1.43-3.2-3.2c0-1.77,1.43-3.2,3.2-3.2h21.49c1.77,0,3.2,1.43,3.2,3.2c0,1.77-1.43,3.2-3.2,3.2H50.43L50.43,18.54z"/></g></svg>',title:"Created"}),"updated_at"===t&&s("span",{innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 506.49"><path fill-rule="nonzero" d="m371.06 415.61-43.25 11.52 6.23-46.41 37.02 34.89zm6.76-177.5c36.98 0 70.56 15.04 94.83 39.35C496.96 301.7 512 335.25 512 372.31c0 37.02-15.02 70.61-39.3 94.88l-.68.64c-24.23 23.88-57.5 38.66-94.2 38.66-37.06 0-70.61-15.04-94.88-39.31l-.64-.69c-23.9-24.24-38.68-57.53-38.68-94.18 0-37.06 15.04-70.61 39.32-94.89 24.27-24.27 57.85-39.31 94.88-39.31zm78.74 55.41c-20.09-20.11-47.96-32.58-78.74-32.58-30.75 0-58.61 12.47-78.75 32.62-20.15 20.14-32.62 48-32.62 78.75 0 30.5 12.25 58.14 32.02 78.19l.6.55c20.14 20.14 48 32.61 78.75 32.61 30.48 0 58.12-12.25 78.21-32.02l.54-.58c20.15-20.15 32.61-48 32.61-78.75s-12.48-58.61-32.62-78.79zM294.24 17.11C294.24 7.69 303.52 0 315.1 0c11.57 0 20.87 7.64 20.87 17.11v74.85c0 9.42-9.3 17.11-20.87 17.11-11.58 0-20.86-7.65-20.86-17.11V17.11zM56.8 242.28c-1.17 0-2.23-5.2-2.23-11.57 0-6.38.92-11.53 2.23-11.53h56.94c1.18 0 2.24 5.2 2.24 11.53 0 6.39-.92 11.57-2.24 11.57H56.8zm90.77 0c-1.17 0-2.23-5.2-2.23-11.57 0-6.38.92-11.53 2.23-11.53h56.94c1.18 0 2.24 5.2 2.24 11.53 0 6.39-.92 11.57-2.24 11.57h-56.94zm90.77 0c-1.16 0-2.22-5.2-2.22-11.57 0-6.38.92-11.53 2.22-11.53h56.94c1.19 0 2.25 5.15 2.25 11.49-5.7 3.55-11.2 7.44-16.43 11.61h-42.76zm-181.4 66.24c-1.18 0-2.24-5.2-2.24-11.57 0-6.38.93-11.58 2.24-11.58h56.94c1.18 0 2.22 5.2 2.22 11.58 0 6.37-.91 11.57-2.22 11.57H56.94zm90.77 0c-1.18 0-2.24-5.2-2.24-11.57 0-6.38.93-11.58 2.24-11.58h56.94c1.18 0 2.23 5.2 2.23 11.58 0 6.37-.92 11.57-2.23 11.57h-56.94zM57.06 374.8c-1.18 0-2.24-5.2-2.24-11.59 0-6.36.94-11.56 2.24-11.56H114c1.19 0 2.24 5.2 2.24 11.56 0 6.39-.93 11.59-2.24 11.59H57.06zm90.78 0c-1.19 0-2.25-5.2-2.25-11.59 0-6.36.94-11.56 2.25-11.56h56.94c1.18 0 2.24 5.2 2.24 11.56 0 6.39-.94 11.59-2.24 11.59h-56.94zM106.83 17.11C106.83 7.69 116.1 0 127.69 0c11.57 0 20.86 7.64 20.86 17.11v74.85c0 9.42-9.34 17.11-20.86 17.11-11.59 0-20.86-7.65-20.86-17.11V17.11zM22.97 163.64h397.39V77.46c0-2.94-1.19-5.53-3.09-7.43-1.9-1.9-4.59-3.08-7.42-3.08h-38.1c-6.39 0-11.59-5.2-11.59-11.57 0-6.38 5.2-11.58 11.59-11.58h38.1c9.32 0 17.7 3.77 23.82 9.88 6.12 6.14 9.88 14.5 9.88 23.83v136.81c-7.61-2.62-15.41-4.73-23.44-6.29v-21.38h.25H22.97v223.17c0 2.94 1.18 5.52 3.08 7.42 1.91 1.9 4.61 3.08 7.44 3.08h188.85c2.16 8.02 4.86 15.84 8.11 23.36H33.71c-9.3 0-17.7-3.75-23.84-9.89C3.75 427.72 0 419.36 0 410.02V77.55c0-9.29 3.75-17.7 9.87-23.82 6.14-6.13 14.5-9.89 23.84-9.89h40.67c6.38 0 11.57 5.2 11.57 11.57C85.95 61.8 80.76 67 74.38 67H33.71c-2.96 0-5.54 1.18-7.44 3.08-1.9 1.9-3.09 4.59-3.09 7.43v86.16h-.21v-.03zm158.95-96.69c-6.39 0-11.57-5.2-11.57-11.57 0-6.38 5.18-11.58 11.57-11.58h77.55c6.39 0 11.57 5.2 11.57 11.58 0 6.37-5.18 11.57-11.57 11.57h-77.55zm161.66 303.24 45.37-51.33c.72-.84 1.78-1.34 2.85-1.36.69-.01 1.37.13 1.98.45l32.94 29.96c.66.59 1.05 1.46 1.06 2.35.02 1-.39 1.98-1.16 2.66l-46.15 52.16-36.95-34.89h.06z"/></svg>',title:"Last Updated"}),"last_used_at"===t&&s("span",{innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 410.2"><path d="M35.28 35.51h32.54v43.42c0 10.58 4.27 20.06 11.35 27.23 17.03 17.14 45.5 17.45 63.06.93 7.71-7.29 12.4-17.14 12.4-28.16V35.51h65.71v43.42c0 6.34 1.56 12.3 4.35 17.6 2.03 3.85 4.71 7.37 7.92 10.43l2.41 2.24c1.79 1.46 3.71 2.79 5.76 3.97l.31.18.07.04.25.13.16.1.15.08.27.14.05.03.32.17.05.03.27.13.15.08.17.09.26.12.07.04.32.16.03.01.31.15.12.06.2.09.24.11.1.05.33.14.34.16.1.04.23.1.21.09.13.05.31.13h.03l.34.14.08.04.27.1.18.07.16.06.3.11.05.02.34.12.06.02.3.11.16.05.19.07.26.09.09.03.35.12.02.01.34.1.13.04.22.07.25.07.11.03.36.11.36.1.11.03.25.07.22.06.14.04.34.09h.02l.37.1.08.02.29.06.19.05.17.03.32.08.05.01.37.08.06.01.31.06.17.04.21.03.28.06.09.02.37.07h.03l.35.06.14.03.23.03.27.04.11.02.38.06.38.05.12.01.26.04.23.03.15.01.35.05h.03l.39.04.08.01.3.02.21.02.17.02.34.02.05.01.39.03h.05l.34.02.18.01.21.01.3.02h.08l.39.01.03.01.36.01h.39l.28.01h.96l.33-.01h.39l.18-.01.2-.01.25-.01h.13l.32-.02h.07l.38-.02h.01l.37-.02.07-.01.32-.02.12-.01.26-.02.19-.02.19-.02.25-.02.13-.01.31-.04h.07l.37-.05h.01l.37-.04.06-.01.32-.04.12-.02.26-.03.18-.03.19-.03.24-.04.14-.02.3-.05.07-.01.36-.06h.01l.37-.07.05-.01.32-.06.12-.02.25-.05.18-.04.19-.04.23-.05.14-.03.29-.07.08-.01.35-.08.01-.01.36-.08.05-.02.31-.08.11-.02.25-.07.17-.04.2-.06.22-.05.14-.05.28-.08.07-.02.34-.09.02-.01.36-.11.03-.01.32-.1.1-.03.25-.08.16-.05.19-.07.22-.07.13-.04.28-.1.08-.03.32-.11.02-.01.35-.13.04-.01.3-.11.09-.04.26-.1.15-.06.19-.07.21-.09.13-.05.26-.11.08-.03.32-.13.02-.01.33-.14.04-.02.3-.13.09-.04.24-.11.14-.07.19-.08.19-.1.14-.06.25-.12.08-.03.3-.16h.03l.32-.17.03-.01.29-.16.09-.04.24-.12.13-.07.19-.1.18-.1.14-.07.23-.13.08-.05.29-.16.03-.01.31-.18c1.11-.64 2.17-1.31 3.2-2.03l2.71-1.95c4.36-3.56 7.92-7.88 10.43-12.76 2.73-5.26 4.25-11.19 4.25-17.5V35.51h33.97c9.68 0 18.5 3.98 24.91 10.38 6.4 6.37 10.38 15.2 10.38 24.9V192.9H365.1v-53.83H11.3v233.49c0 15.25 12.49 27.74 27.75 27.74h298.3c15.27 0 27.75-12.51 27.75-27.74V325.6h11.31v49.32c0 9.7-3.98 18.53-10.37 24.91-6.42 6.39-15.24 10.37-24.92 10.37H35.28c-9.68 0-18.49-3.97-24.89-10.37C3.97 393.41 0 384.59 0 374.92V70.79C0 61.12 3.97 52.3 10.36 45.9c6.43-6.42 15.25-10.39 24.92-10.39zm211.43-21.54c0-7.71 7.61-13.97 17.03-13.97 9.42 0 17.04 6.26 17.04 13.97v64.96c0 7.7-7.62 13.96-17.04 13.96-9.42 0-17.03-6.26-17.03-13.96V13.97zm-152.52 0C94.19 6.26 101.81 0 111.23 0c9.42 0 17.03 6.26 17.03 13.97v64.96c0 7.7-7.61 13.96-17.03 13.96-9.42 0-17.04-6.26-17.04-13.96V13.97zm311.37 327.72c1.48-14.79 2.69-32.45 3.59-46.5h-75.88v-71.88h77.43c-.39-14.06-1.17-31.75-2.35-46.58-.96-5.93 6.02-9.73 10.51-5.9l90.89 82.99c2.7 2.31 3.02 6.38.7 9.08l-.74.73-93.65 84.05c-4.6 3.89-11.47-.19-10.5-5.99zM63.51 286h50.56c3.53 0 6.43 2.91 6.43 6.44v42.06c0 3.52-2.91 6.44-6.43 6.44H63.51c-3.53 0-6.44-2.91-6.44-6.44v-42.06c0-3.54 2.9-6.44 6.44-6.44zm198.44-98.62h50.55c3.23 0 5.92 2.43 6.37 5.52h-16v49.42h-40.92c-3.53 0-6.45-2.9-6.45-6.45v-42.05c0-3.54 2.9-6.44 6.45-6.44zm0 98.62h40.92v39.6h16.07v8.9c0 3.52-2.92 6.44-6.44 6.44h-50.55c-3.53 0-6.45-2.91-6.45-6.44v-42.06c0-3.54 2.9-6.44 6.45-6.44zm-98.5-98.62h50.56c3.53 0 6.43 2.92 6.43 6.44v42.05c0 3.53-2.91 6.45-6.43 6.45h-50.56c-3.53 0-6.44-2.9-6.44-6.45v-42.05c0-3.54 2.9-6.44 6.44-6.44zm-99.94 0h50.56c3.53 0 6.43 2.92 6.43 6.44v42.05c0 3.53-2.91 6.45-6.43 6.45H63.51c-3.53 0-6.44-2.9-6.44-6.45v-42.05c0-3.54 2.9-6.44 6.44-6.44zM163.45 286h50.56c3.53 0 6.43 2.91 6.43 6.44v42.06c0 3.52-2.91 6.44-6.43 6.44h-50.56c-3.53 0-6.44-2.91-6.44-6.44v-42.06c0-3.54 2.9-6.44 6.44-6.44z"/></svg>',title:"Last Used"}),l?n(new Date(l),"P"):"Never"),s("div",{class:"spacer ownership-spacer"}),e.is_public&&s("div",{class:"ownership"},s("span",{innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M12 21a9.004 9.004 0 008.716-6.747M12 21a9.004 9.004 0 01-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 017.843 4.582M12 3a8.997 8.997 0 00-7.843 4.582m15.686 0A11.953 11.953 0 0112 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0121 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0112 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 013 12c0-1.605.42-3.113 1.157-4.418" /></svg>'})," Public"),!e.is_public&&!e.is_personal&&s("div",{class:"ownership"},s("span",{innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z" /></svg>'})," Private"),!e.is_public&&e.is_personal&&s("div",{class:"ownership"},s("span",{innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21" /></svg>'})," Shared"),s("verdocs-dropdown",{options:i,onOptionSelected:t=>this.handleOptionSelected(t.detail.id,e)})))})),!this.initiallyLoaded&&s("div",null,d(0,this.rowsPerPage).map((()=>s("div",{class:"template-placeholder"})))),this.initiallyLoaded&&!this.templates.length&&s("div",{class:"empty-text"},"No matching templates found. Please adjust your filters and try again."),this.initiallyLoaded&&this.templates.length&&this.showPagination?s("div",{style:{marginTop:"20px"}},s("verdocs-pagination",{selectedPage:this.selectedPage,perPage:this.rowsPerPage,itemCount:this.count,onSelectPage:e=>{this.selectedPage=e.detail.selectedPage}})):s("div",null),this.confirmDelete&&s("verdocs-ok-dialog",{heading:"Delete this Template?",message:"This operation cannot be undone.",onNext:()=>this.deleteTemplate(this.confirmDelete),onExit:()=>this.confirmDelete=null,showCancel:!0}))}static get watchers(){return{sharing:["handleSharingUpdated"],starred:["handleStarredUpdated"],sort:["handleSortUpdated"],name:["handleNameUpdated"],selectedPage:["handlePageUpdated"]}}};m.style='verdocs-templates-list{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-templates-list .header{width:100%;row-gap:4px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-column-gap:12px;-moz-column-gap:12px;column-gap:12px;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-templates-list .header .filter{width:150px}verdocs-templates-list .header verdocs-text-input{margin:0}verdocs-templates-list .header verdocs-text-input input{height:32px}verdocs-templates-list .filter{-ms-flex-align:center;align-items:center}verdocs-templates-list .template-placeholder{height:48px;-ms-flex:0 0 48px;flex:0 0 48px;margin:5px 0;border-radius:5px;background:#f5f5fa}verdocs-templates-list .template{width:100%;margin:3px 0;border:1px solid #ffffff;background:#ffffff}verdocs-templates-list .template:hover{cursor:pointer;background:#ededff;border:1px solid #a7a7f5}verdocs-templates-list .template .inner{gap:10px;display:-ms-flexbox;display:flex;padding:8px 14px;border-radius:5px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}verdocs-templates-list .template .inner svg{width:24px;height:24px}verdocs-templates-list .name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;color:black;font-size:16px;margin-left:10px}@media screen and (max-width: 1300px){verdocs-templates-list .name{font-size:16px}}verdocs-templates-list .spacer{margin:0;height:30px;-ms-flex:0 0 1px;flex:0 0 1px;display:-ms-flexbox;display:flex;border-right:1px solid #dad8dd}@media screen and (max-width: 800px){verdocs-templates-list .spacer{margin:12px 0;border-top:1px solid #dad8dd;border-right:none}}verdocs-templates-list .empty-text{font-size:20px;text-align:center;margin:16px 0 0 0;padding:80px 80px;border:2px solid #ccc}verdocs-templates-list .usage,verdocs-templates-list .ownership,verdocs-templates-list .last-used{gap:10px;color:#444;display:-ms-flexbox;display:flex;font-size:16px;margin:0 0 0 10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-templates-list .usage span,verdocs-templates-list .usage svg,verdocs-templates-list .ownership span,verdocs-templates-list .ownership svg,verdocs-templates-list .last-used span,verdocs-templates-list .last-used svg{width:24px;height:24px}verdocs-templates-list .usage span,verdocs-templates-list .ownership span,verdocs-templates-list .last-used span{display:block}verdocs-templates-list .ownership{-ms-flex:0 0 100px;flex:0 0 100px}verdocs-templates-list .last-used{-ms-flex:0 0 130px;flex:0 0 130px}verdocs-templates-list .usage{-ms-flex:0 0 60px;flex:0 0 60px}';export{m as verdocs_templates_list}
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,s,l){function i(e){return e instanceof s?e:new s((function(t){t(e)}))}return new(s||(s=Promise))((function(s,a){function n(e){try{o(l.next(e))}catch(e){a(e)}}function r(e){try{o(l["throw"](e))}catch(e){a(e)}}function o(e){e.done?s(e.value):i(e.value).then(n,r)}o((l=l.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},l,i,a,n;return n={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function r(e){return function(t){return o([e,t])}}function o(n){if(l)throw new TypeError("Generator is already executing.");while(s)try{if(l=1,i&&(a=n[0]&2?i["return"]:n[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,n[1])).done)return a;if(i=0,a)n=[n[0]&2,a.value];switch(n[0]){case 0:case 1:a=n;break;case 4:s.label++;return{value:n[1],done:false};case 5:s.label++;i=n[1];n=[0];continue;case 7:n=s.ops.pop();s.trys.pop();continue;default:if(!(a=s.trys,a=a.length>0&&a[a.length-1])&&(n[0]===6||n[0]===2)){s=0;continue}if(n[0]===3&&(!a||n[1]>a[0]&&n[1]<a[3])){s.label=n[1];break}if(n[0]===6&&s.label<a[1]){s.label=a[1];a=n;break}if(a&&s.label<a[2]){s.label=a[2];s.ops.push(n);break}if(a[2])s.ops.pop();s.trys.pop();continue}n=t.call(e,s)}catch(e){n=[6,e];i=0}finally{l=a=0}if(n[0]&5)throw n[1];return{value:n[0]?n[1]:void 0,done:true}}};System.register(["./p-2dbc05c6.system.js","./p-54498887.system.js","./p-4422958b.system.js","./p-2fdb7348.system.js","./p-d50523fd.system.js","./p-187b20b7.system.js","./p-dc9c4361.system.js"],(function(e){"use strict";var t,s,l,i,a,n,r,o,c,d,p;return{setters:[function(e){t=e.r;s=e.c;l=e.h;i=e.H},function(){},function(e){a=e.V;n=e.a},function(e){r=e.l;o=e.d},function(e){c=e.i},function(e){d=e.S},function(e){p=e.f}],execute:function(){var h='verdocs-templates-list{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-templates-list .header{width:100%;row-gap:4px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-column-gap:12px;-moz-column-gap:12px;column-gap:12px;margin:0 0 10px 0;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-templates-list .header .filter{width:150px}verdocs-templates-list .header verdocs-text-input{margin:0}verdocs-templates-list .header verdocs-text-input input{height:32px}verdocs-templates-list .filter{-ms-flex-align:center;align-items:center}verdocs-templates-list .template-placeholder{height:48px;-ms-flex:0 0 48px;flex:0 0 48px;margin:5px 0;border-radius:5px;background:#f5f5fa}verdocs-templates-list .template{width:100%;margin:3px 0;border:1px solid #ffffff;background:#ffffff}verdocs-templates-list .template:hover{cursor:pointer;background:#ededff;border:1px solid #a7a7f5}verdocs-templates-list .template .inner{gap:10px;display:-ms-flexbox;display:flex;padding:8px 14px;border-radius:5px;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}verdocs-templates-list .template .inner svg{width:24px;height:24px}verdocs-templates-list .name{-ms-flex:1;flex:1;display:-ms-flexbox;display:flex;color:black;font-size:16px;margin-left:10px}@media screen and (max-width: 1300px){verdocs-templates-list .name{font-size:16px}}verdocs-templates-list .spacer{margin:0;height:30px;-ms-flex:0 0 1px;flex:0 0 1px;display:-ms-flexbox;display:flex;border-right:1px solid #dad8dd}@media screen and (max-width: 800px){verdocs-templates-list .spacer{margin:12px 0;border-top:1px solid #dad8dd;border-right:none}}verdocs-templates-list .empty-text{font-size:20px;text-align:center;margin:16px 0 0 0;padding:80px 80px;border:2px solid #ccc}verdocs-templates-list .usage,verdocs-templates-list .ownership,verdocs-templates-list .last-used{gap:10px;color:#444;display:-ms-flexbox;display:flex;font-size:16px;margin:0 0 0 10px;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row}verdocs-templates-list .usage span,verdocs-templates-list .usage svg,verdocs-templates-list .ownership span,verdocs-templates-list .ownership svg,verdocs-templates-list .last-used span,verdocs-templates-list .last-used svg{width:24px;height:24px}verdocs-templates-list .usage span,verdocs-templates-list .ownership span,verdocs-templates-list .last-used span{display:block}verdocs-templates-list .ownership{-ms-flex:0 0 100px;flex:0 0 100px}verdocs-templates-list .last-used{-ms-flex:0 0 130px;flex:0 0 130px}verdocs-templates-list .usage{-ms-flex:0 0 60px;flex:0 0 60px}';var u='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M12 21a9.004 9.004 0 008.716-6.747M12 21a9.004 9.004 0 01-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 017.843 4.582M12 3a8.997 8.997 0 00-7.843 4.582m15.686 0A11.953 11.953 0 0112 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0121 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0112 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 013 12c0-1.605.42-3.113 1.157-4.418" /></svg>';var m='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z" /></svg>';var v='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21" /></svg>';var f='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M21.75 6.75v10.5a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25m19.5 0v.243a2.25 2.25 0 01-1.07 1.916l-7.5 4.615a2.25 2.25 0 01-2.36 0L3.32 8.91a2.25 2.25 0 01-1.07-1.916V6.75" /></svg>';var g='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.88 122.88"><g><path d="M81.61,4.73c0-2.61,2.58-4.73,5.77-4.73c3.19,0,5.77,2.12,5.77,4.73v20.72c0,2.61-2.58,4.73-5.77,4.73 c-3.19,0-5.77-2.12-5.77-4.73V4.73L81.61,4.73z M66.11,103.81c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2H81.9 c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H66.11L66.11,103.81z M15.85,67.09c-0.34,0-0.61-1.43-0.61-3.2 c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H15.85L15.85,67.09z M40.98,67.09 c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H40.98 L40.98,67.09z M66.11,67.09c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2H81.9c0.34,0,0.61,1.43,0.61,3.2 c0,1.77-0.27,3.2-0.61,3.2H66.11L66.11,67.09z M91.25,67.09c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79 c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H91.25L91.25,67.09z M15.85,85.45c-0.34,0-0.61-1.43-0.61-3.2 c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H15.85L15.85,85.45z M40.98,85.45 c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H40.98 L40.98,85.45z M66.11,85.45c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2H81.9c0.34,0,0.61,1.43,0.61,3.2 c0,1.77-0.27,3.2-0.61,3.2H66.11L66.11,85.45z M91.25,85.45c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79 c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H91.25L91.25,85.45z M15.85,103.81c-0.34,0-0.61-1.43-0.61-3.2 c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H15.85L15.85,103.81z M40.98,103.81 c-0.34,0-0.61-1.43-0.61-3.2c0-1.77,0.27-3.2,0.61-3.2h15.79c0.34,0,0.61,1.43,0.61,3.2c0,1.77-0.27,3.2-0.61,3.2H40.98 L40.98,103.81z M29.61,4.73c0-2.61,2.58-4.73,5.77-4.73s5.77,2.12,5.77,4.73v20.72c0,2.61-2.58,4.73-5.77,4.73 s-5.77-2.12-5.77-4.73V4.73L29.61,4.73z M6.4,45.32h110.07V21.47c0-0.8-0.33-1.53-0.86-2.07c-0.53-0.53-1.26-0.86-2.07-0.86H103 c-1.77,0-3.2-1.43-3.2-3.2c0-1.77,1.43-3.2,3.2-3.2h10.55c2.57,0,4.9,1.05,6.59,2.74c1.69,1.69,2.74,4.02,2.74,6.59v27.06v65.03 c0,2.57-1.05,4.9-2.74,6.59c-1.69,1.69-4.02,2.74-6.59,2.74H9.33c-2.57,0-4.9-1.05-6.59-2.74C1.05,118.45,0,116.12,0,113.55V48.52 V21.47c0-2.57,1.05-4.9,2.74-6.59c1.69-1.69,4.02-2.74,6.59-2.74H20.6c1.77,0,3.2,1.43,3.2,3.2c0,1.77-1.43,3.2-3.2,3.2H9.33 c-0.8,0-1.53,0.33-2.07,0.86c-0.53,0.53-0.86,1.26-0.86,2.07V45.32L6.4,45.32z M116.48,51.73H6.4v61.82c0,0.8,0.33,1.53,0.86,2.07 c0.53,0.53,1.26,0.86,2.07,0.86h104.22c0.8,0,1.53-0.33,2.07-0.86c0.53-0.53,0.86-1.26,0.86-2.07V51.73L116.48,51.73z M50.43,18.54 c-1.77,0-3.2-1.43-3.2-3.2c0-1.77,1.43-3.2,3.2-3.2h21.49c1.77,0,3.2,1.43,3.2,3.2c0,1.77-1.43,3.2-3.2,3.2H50.43L50.43,18.54z"/></g></svg>';var w='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 410.2"><path d="M35.28 35.51h32.54v43.42c0 10.58 4.27 20.06 11.35 27.23 17.03 17.14 45.5 17.45 63.06.93 7.71-7.29 12.4-17.14 12.4-28.16V35.51h65.71v43.42c0 6.34 1.56 12.3 4.35 17.6 2.03 3.85 4.71 7.37 7.92 10.43l2.41 2.24c1.79 1.46 3.71 2.79 5.76 3.97l.31.18.07.04.25.13.16.1.15.08.27.14.05.03.32.17.05.03.27.13.15.08.17.09.26.12.07.04.32.16.03.01.31.15.12.06.2.09.24.11.1.05.33.14.34.16.1.04.23.1.21.09.13.05.31.13h.03l.34.14.08.04.27.1.18.07.16.06.3.11.05.02.34.12.06.02.3.11.16.05.19.07.26.09.09.03.35.12.02.01.34.1.13.04.22.07.25.07.11.03.36.11.36.1.11.03.25.07.22.06.14.04.34.09h.02l.37.1.08.02.29.06.19.05.17.03.32.08.05.01.37.08.06.01.31.06.17.04.21.03.28.06.09.02.37.07h.03l.35.06.14.03.23.03.27.04.11.02.38.06.38.05.12.01.26.04.23.03.15.01.35.05h.03l.39.04.08.01.3.02.21.02.17.02.34.02.05.01.39.03h.05l.34.02.18.01.21.01.3.02h.08l.39.01.03.01.36.01h.39l.28.01h.96l.33-.01h.39l.18-.01.2-.01.25-.01h.13l.32-.02h.07l.38-.02h.01l.37-.02.07-.01.32-.02.12-.01.26-.02.19-.02.19-.02.25-.02.13-.01.31-.04h.07l.37-.05h.01l.37-.04.06-.01.32-.04.12-.02.26-.03.18-.03.19-.03.24-.04.14-.02.3-.05.07-.01.36-.06h.01l.37-.07.05-.01.32-.06.12-.02.25-.05.18-.04.19-.04.23-.05.14-.03.29-.07.08-.01.35-.08.01-.01.36-.08.05-.02.31-.08.11-.02.25-.07.17-.04.2-.06.22-.05.14-.05.28-.08.07-.02.34-.09.02-.01.36-.11.03-.01.32-.1.1-.03.25-.08.16-.05.19-.07.22-.07.13-.04.28-.1.08-.03.32-.11.02-.01.35-.13.04-.01.3-.11.09-.04.26-.1.15-.06.19-.07.21-.09.13-.05.26-.11.08-.03.32-.13.02-.01.33-.14.04-.02.3-.13.09-.04.24-.11.14-.07.19-.08.19-.1.14-.06.25-.12.08-.03.3-.16h.03l.32-.17.03-.01.29-.16.09-.04.24-.12.13-.07.19-.1.18-.1.14-.07.23-.13.08-.05.29-.16.03-.01.31-.18c1.11-.64 2.17-1.31 3.2-2.03l2.71-1.95c4.36-3.56 7.92-7.88 10.43-12.76 2.73-5.26 4.25-11.19 4.25-17.5V35.51h33.97c9.68 0 18.5 3.98 24.91 10.38 6.4 6.37 10.38 15.2 10.38 24.9V192.9H365.1v-53.83H11.3v233.49c0 15.25 12.49 27.74 27.75 27.74h298.3c15.27 0 27.75-12.51 27.75-27.74V325.6h11.31v49.32c0 9.7-3.98 18.53-10.37 24.91-6.42 6.39-15.24 10.37-24.92 10.37H35.28c-9.68 0-18.49-3.97-24.89-10.37C3.97 393.41 0 384.59 0 374.92V70.79C0 61.12 3.97 52.3 10.36 45.9c6.43-6.42 15.25-10.39 24.92-10.39zm211.43-21.54c0-7.71 7.61-13.97 17.03-13.97 9.42 0 17.04 6.26 17.04 13.97v64.96c0 7.7-7.62 13.96-17.04 13.96-9.42 0-17.03-6.26-17.03-13.96V13.97zm-152.52 0C94.19 6.26 101.81 0 111.23 0c9.42 0 17.03 6.26 17.03 13.97v64.96c0 7.7-7.61 13.96-17.03 13.96-9.42 0-17.04-6.26-17.04-13.96V13.97zm311.37 327.72c1.48-14.79 2.69-32.45 3.59-46.5h-75.88v-71.88h77.43c-.39-14.06-1.17-31.75-2.35-46.58-.96-5.93 6.02-9.73 10.51-5.9l90.89 82.99c2.7 2.31 3.02 6.38.7 9.08l-.74.73-93.65 84.05c-4.6 3.89-11.47-.19-10.5-5.99zM63.51 286h50.56c3.53 0 6.43 2.91 6.43 6.44v42.06c0 3.52-2.91 6.44-6.43 6.44H63.51c-3.53 0-6.44-2.91-6.44-6.44v-42.06c0-3.54 2.9-6.44 6.44-6.44zm198.44-98.62h50.55c3.23 0 5.92 2.43 6.37 5.52h-16v49.42h-40.92c-3.53 0-6.45-2.9-6.45-6.45v-42.05c0-3.54 2.9-6.44 6.45-6.44zm0 98.62h40.92v39.6h16.07v8.9c0 3.52-2.92 6.44-6.44 6.44h-50.55c-3.53 0-6.45-2.91-6.45-6.44v-42.06c0-3.54 2.9-6.44 6.45-6.44zm-98.5-98.62h50.56c3.53 0 6.43 2.92 6.43 6.44v42.05c0 3.53-2.91 6.45-6.43 6.45h-50.56c-3.53 0-6.44-2.9-6.44-6.45v-42.05c0-3.54 2.9-6.44 6.44-6.44zm-99.94 0h50.56c3.53 0 6.43 2.92 6.43 6.44v42.05c0 3.53-2.91 6.45-6.43 6.45H63.51c-3.53 0-6.44-2.9-6.44-6.45v-42.05c0-3.54 2.9-6.44 6.44-6.44zM163.45 286h50.56c3.53 0 6.43 2.91 6.43 6.44v42.06c0 3.52-2.91 6.44-6.43 6.44h-50.56c-3.53 0-6.44-2.91-6.44-6.44v-42.06c0-3.54 2.9-6.44 6.44-6.44z"/></svg>';var x='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 506.49"><path fill-rule="nonzero" d="m371.06 415.61-43.25 11.52 6.23-46.41 37.02 34.89zm6.76-177.5c36.98 0 70.56 15.04 94.83 39.35C496.96 301.7 512 335.25 512 372.31c0 37.02-15.02 70.61-39.3 94.88l-.68.64c-24.23 23.88-57.5 38.66-94.2 38.66-37.06 0-70.61-15.04-94.88-39.31l-.64-.69c-23.9-24.24-38.68-57.53-38.68-94.18 0-37.06 15.04-70.61 39.32-94.89 24.27-24.27 57.85-39.31 94.88-39.31zm78.74 55.41c-20.09-20.11-47.96-32.58-78.74-32.58-30.75 0-58.61 12.47-78.75 32.62-20.15 20.14-32.62 48-32.62 78.75 0 30.5 12.25 58.14 32.02 78.19l.6.55c20.14 20.14 48 32.61 78.75 32.61 30.48 0 58.12-12.25 78.21-32.02l.54-.58c20.15-20.15 32.61-48 32.61-78.75s-12.48-58.61-32.62-78.79zM294.24 17.11C294.24 7.69 303.52 0 315.1 0c11.57 0 20.87 7.64 20.87 17.11v74.85c0 9.42-9.3 17.11-20.87 17.11-11.58 0-20.86-7.65-20.86-17.11V17.11zM56.8 242.28c-1.17 0-2.23-5.2-2.23-11.57 0-6.38.92-11.53 2.23-11.53h56.94c1.18 0 2.24 5.2 2.24 11.53 0 6.39-.92 11.57-2.24 11.57H56.8zm90.77 0c-1.17 0-2.23-5.2-2.23-11.57 0-6.38.92-11.53 2.23-11.53h56.94c1.18 0 2.24 5.2 2.24 11.53 0 6.39-.92 11.57-2.24 11.57h-56.94zm90.77 0c-1.16 0-2.22-5.2-2.22-11.57 0-6.38.92-11.53 2.22-11.53h56.94c1.19 0 2.25 5.15 2.25 11.49-5.7 3.55-11.2 7.44-16.43 11.61h-42.76zm-181.4 66.24c-1.18 0-2.24-5.2-2.24-11.57 0-6.38.93-11.58 2.24-11.58h56.94c1.18 0 2.22 5.2 2.22 11.58 0 6.37-.91 11.57-2.22 11.57H56.94zm90.77 0c-1.18 0-2.24-5.2-2.24-11.57 0-6.38.93-11.58 2.24-11.58h56.94c1.18 0 2.23 5.2 2.23 11.58 0 6.37-.92 11.57-2.23 11.57h-56.94zM57.06 374.8c-1.18 0-2.24-5.2-2.24-11.59 0-6.36.94-11.56 2.24-11.56H114c1.19 0 2.24 5.2 2.24 11.56 0 6.39-.93 11.59-2.24 11.59H57.06zm90.78 0c-1.19 0-2.25-5.2-2.25-11.59 0-6.36.94-11.56 2.25-11.56h56.94c1.18 0 2.24 5.2 2.24 11.56 0 6.39-.94 11.59-2.24 11.59h-56.94zM106.83 17.11C106.83 7.69 116.1 0 127.69 0c11.57 0 20.86 7.64 20.86 17.11v74.85c0 9.42-9.34 17.11-20.86 17.11-11.59 0-20.86-7.65-20.86-17.11V17.11zM22.97 163.64h397.39V77.46c0-2.94-1.19-5.53-3.09-7.43-1.9-1.9-4.59-3.08-7.42-3.08h-38.1c-6.39 0-11.59-5.2-11.59-11.57 0-6.38 5.2-11.58 11.59-11.58h38.1c9.32 0 17.7 3.77 23.82 9.88 6.12 6.14 9.88 14.5 9.88 23.83v136.81c-7.61-2.62-15.41-4.73-23.44-6.29v-21.38h.25H22.97v223.17c0 2.94 1.18 5.52 3.08 7.42 1.91 1.9 4.61 3.08 7.44 3.08h188.85c2.16 8.02 4.86 15.84 8.11 23.36H33.71c-9.3 0-17.7-3.75-23.84-9.89C3.75 427.72 0 419.36 0 410.02V77.55c0-9.29 3.75-17.7 9.87-23.82 6.14-6.13 14.5-9.89 23.84-9.89h40.67c6.38 0 11.57 5.2 11.57 11.57C85.95 61.8 80.76 67 74.38 67H33.71c-2.96 0-5.54 1.18-7.44 3.08-1.9 1.9-3.09 4.59-3.09 7.43v86.16h-.21v-.03zm158.95-96.69c-6.39 0-11.57-5.2-11.57-11.57 0-6.38 5.18-11.58 11.57-11.58h77.55c6.39 0 11.57 5.2 11.57 11.58 0 6.37-5.18 11.57-11.57 11.57h-77.55zm161.66 303.24 45.37-51.33c.72-.84 1.78-1.34 2.85-1.36.69-.01 1.37.13 1.98.45l32.94 29.96c.66.59 1.05 1.46 1.06 2.35.02 1-.39 1.98-1.16 2.66l-46.15 52.16-36.95-34.89h.06z"/></svg>';var b=[{value:"all",label:"All"},{value:"personal",label:"Personal"},{value:"shared",label:"Shared"},{value:"public",label:"Public"}];var y=[{value:"all",label:"All"},{value:"starred",label:"Starred"},{value:"unstarred",label:"Not Starred"}];var z=[{value:"name",label:"Name"},{value:"created_at",label:"Created"},{value:"updated_at",label:"Last Updated"},{value:"last_used_at",label:"Last Used"},{value:"counter",label:"Most Used"},{value:"star_counter",label:"Most Starred"}];var M=e("verdocs_templates_list",function(){function e(e){var l=this;t(this,e);this.sdkError=s(this,"sdkError",7);this.viewTemplate=s(this,"viewTemplate",7);this.signNow=s(this,"signNow",7);this.submittedData=s(this,"submittedData",7);this.editTemplate=s(this,"editTemplate",7);this.templateDeleted=s(this,"templateDeleted",7);this.changeSort=s(this,"changeSort",7);this.changeSharing=s(this,"changeSharing",7);this.changeStarred=s(this,"changeStarred",7);this.changeName=s(this,"changeName",7);this.handleOptionSelected=function(e,t){var s,i,a,n;if(e==="send"){(s=l.viewTemplate)===null||s===void 0?void 0:s.emit({endpoint:l.endpoint,template:t})}else if(e==="signnow"){(i=l.signNow)===null||i===void 0?void 0:i.emit({endpoint:l.endpoint,template:t})}else if(e==="submitted"){(a=l.submittedData)===null||a===void 0?void 0:a.emit({endpoint:l.endpoint,template:t})}else if(e==="edit"){(n=l.editTemplate)===null||n===void 0?void 0:n.emit({endpoint:l.endpoint,template:t})}else if(e==="delete"){l.confirmDelete=t}};this.endpoint=a.getDefault();this.sharing="all";this.starred="all";this.sort="updated_at";this.name="";this.allowedActions=["send","submitted","link","edit","delete"];this.showPagination=true;this.rowsPerPage=10;this.selectedPage=0;this.count=0;this.initiallyLoaded=false;this.loading=true;this.confirmDelete=null;this.templates=[];this.localNameFilter=""}e.prototype.handleSharingUpdated=function(){return this.queryTemplates()};e.prototype.handleStarredUpdated=function(){return this.queryTemplates()};e.prototype.handleSortUpdated=function(){return this.queryTemplates()};e.prototype.handleNameUpdated=function(){return this.queryTemplates()};e.prototype.handlePageUpdated=function(){return this.queryTemplates()};e.prototype.componentWillLoad=function(){this.endpoint.loadSession();if(!this.endpoint.session){console.log("[TEMPLATES] Must be authenticated");return}};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.queryTemplates()];case 1:e.sent();this.initiallyLoaded=true;return[2]}}))}))};e.prototype.queryTemplates=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,s,l,i,a;return __generator(this,(function(n){switch(n.label){case 0:console.log("[TEMPLATES] Querying templates");this.loading=true;n.label=1;case 1:n.trys.push([1,3,,4]);l={sharing:this.sharing,starred:this.starred,page:this.selectedPage,sort:this.sort,rows:this.rowsPerPage};if(this.name.trim()!==""){l.name=this.name.trim()}return[4,r(this.endpoint,l)];case 2:i=n.sent();this.templates=i.records;this.count=i.total;this.loading=false;return[3,4];case 3:a=n.sent();this.loading=false;console.log("[TEMPLATES] Error listing templates",a);(e=this.sdkError)===null||e===void 0?void 0:e.emit(new d(a.message,(t=a.response)===null||t===void 0?void 0:t.status,(s=a.response)===null||s===void 0?void 0:s.data));return[3,4];case 4:return[2]}}))}))};e.prototype.deleteTemplate=function(e){var t=this;this.confirmDelete=null;o(this.endpoint,e.id).then((function(){var s;console.log("[TEMPLATES] Deleted template",e);(s=t.templateDeleted)===null||s===void 0?void 0:s.emit({endpoint:t.endpoint,template:e});return t.queryTemplates()})).catch((function(s){var l,i,a;console.log("[TEMPLATES] Error deleting template",e);(l=t.sdkError)===null||l===void 0?void 0:l.emit(new d(s.message,(i=s.response)===null||i===void 0?void 0:i.status,(a=s.response)===null||a===void 0?void 0:a.data))}))};e.prototype.render=function(){var e=this;var t=!this.localNameFilter?this.templates:this.templates.filter((function(t){return t.name.toLowerCase().includes(e.localNameFilter.toLowerCase())}));return l(i,null,l("div",{class:"header"},l("div",{class:"filter"},l("verdocs-text-input",{id:"verdocs-filter-name",value:this.name,clearable:true,autocomplete:"off",placeholder:"Filter by Name...",onInput:function(t){return e.localNameFilter=t.target.value.trim()},onFocusout:function(t){var s;e.name=t.target.value.trim();e.localNameFilter=t.target.value.trim();(s=e.changeName)===null||s===void 0?void 0:s.emit(e.name)}})),l("verdocs-quick-filter",{label:"Sharing",value:this.sharing,options:b,onOptionSelected:function(t){var s;e.sharing=t.detail.value;(s=e.changeSharing)===null||s===void 0?void 0:s.emit(e.sharing)}}),l("verdocs-quick-filter",{label:"Starred",value:this.starred,options:y,onOptionSelected:function(t){var s;e.starred=t.detail.value;(s=e.changeStarred)===null||s===void 0?void 0:s.emit(e.starred)}}),l("verdocs-quick-filter",{label:"Sort By",value:this.sort,options:z,onOptionSelected:function(t){var s;e.sort=t.detail.value;(s=e.changeSort)===null||s===void 0?void 0:s.emit(e.sort)}}),this.loading&&l("verdocs-spinner",{mode:"dark",size:24}),l("div",{style:{display:"flex",flex:"1"}})),t.map((function(t){var s=e.sort==="created_at"?"created_at":e.sort==="updated_at"?"updated_at":"last_used_at";var i=t[s];var a=[];if(t.allowed_operations.includes(n.READ)&&e.allowedActions.includes("send")){a.push({label:"Preview / Send",id:"send",disabled:!t.allowed_operations.includes(n.READ)})}if(t.allowed_operations.includes(n.CREATE_PERSONAL)&&e.allowedActions.includes("signnow")){a.push({label:"Sign Now",id:"signnow",disabled:true})}if(t.allowed_operations.includes(n.READ)&&e.allowedActions.includes("submitted")){a.push({label:""});a.push({label:"Submissions",id:"submitted"})}if(e.allowedActions.includes("link")||e.allowedActions.includes("edit")||e.allowedActions.includes("delete")){a.push({label:""});if(e.allowedActions.includes("link")||e.allowedActions.includes("edit")||e.allowedActions.includes("delete")){a.push({label:"Edit",id:"edit",disabled:!t.allowed_operations.includes(n.WRITE)})}if(e.allowedActions.includes("link")||e.allowedActions.includes("edit")||e.allowedActions.includes("delete")){a.push({label:"Delete",id:"delete",disabled:!t.allowed_operations.includes(n.DELETE)})}}return l("div",{class:"template",onClick:function(){var s;(s=e.viewTemplate)===null||s===void 0?void 0:s.emit({endpoint:e.endpoint,template:t})}},l("div",{class:"inner"},l("verdocs-template-star",{template:t,endpoint:e.endpoint}),l("div",{class:"spacer icon-spacer"}),l("div",{class:"name"},t.name),l("div",{class:"spacer usage-spacer"}),l("div",{class:"usage"},l("span",{innerHTML:f,title:"Usage Counter"}),t.counter||"--"),l("div",{class:"spacer last-used-spacer"}),l("div",{class:"last-used"},s==="created_at"&&l("span",{innerHTML:g,title:"Created"}),s==="updated_at"&&l("span",{innerHTML:x,title:"Last Updated"}),s==="last_used_at"&&l("span",{innerHTML:w,title:"Last Used"}),i?p(new Date(i),"P"):"Never"),l("div",{class:"spacer ownership-spacer"}),t.is_public&&l("div",{class:"ownership"},l("span",{innerHTML:u})," Public"),!t.is_public&&!t.is_personal&&l("div",{class:"ownership"},l("span",{innerHTML:m})," Private"),!t.is_public&&t.is_personal&&l("div",{class:"ownership"},l("span",{innerHTML:v})," Shared"),l("verdocs-dropdown",{options:a,onOptionSelected:function(s){return e.handleOptionSelected(s.detail.id,t)}})))})),!this.initiallyLoaded&&l("div",null,c(0,this.rowsPerPage).map((function(){return l("div",{class:"template-placeholder"})}))),this.initiallyLoaded&&!this.templates.length&&l("div",{class:"empty-text"},"No matching templates found. Please adjust your filters and try again."),this.initiallyLoaded&&this.templates.length&&this.showPagination?l("div",{style:{marginTop:"20px"}},l("verdocs-pagination",{selectedPage:this.selectedPage,perPage:this.rowsPerPage,itemCount:this.count,onSelectPage:function(t){e.selectedPage=t.detail.selectedPage}})):l("div",null),this.confirmDelete&&l("verdocs-ok-dialog",{heading:"Delete this Template?",message:"This operation cannot be undone.",onNext:function(){return e.deleteTemplate(e.confirmDelete)},onExit:function(){return e.confirmDelete=null},showCancel:true}))};Object.defineProperty(e,"watchers",{get:function(){return{sharing:["handleSharingUpdated"],starred:["handleStarredUpdated"],sort:["handleSortUpdated"],name:["handleNameUpdated"],selectedPage:["handlePageUpdated"]}},enumerable:false,configurable:true});return e}());M.style=h}}}));
@@ -1 +0,0 @@
1
- var n=function(n,r){return Array(r).fill(1).map((function(r,t){return t+n}))},r=function(n){return n.split(" ").map((function(n){return n[0]})).join("")};export{r as f,n as i}
@@ -1 +0,0 @@
1
- import{r as e,h as t,H as i,a as o}from"./p-6d3e0994.js";import{V as s}from"./p-ed416acf.js";const c=class{constructor(t){e(this,t),this.checked=!1,this.name="",this.label="",this.value="",this.theme="light",this.disabled=!1}render(){return t(i,{class:{disabled:this.disabled,[this.theme]:!0}},t("label",null,t("input",{type:"checkbox",value:this.value,name:this.name,checked:this.checked,disabled:this.disabled}),t("span",null,this.label)))}};c.style='@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}';const r=class{constructor(t){e(this,t),this.message=""}render(){return t(i,null,t("div",{class:"inner"},this.message))}};r.style='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}';const l=class{constructor(t){e(this,t),this.value="",this.label="",this.options=void 0,this.disabled=!1}render(){return t(i,{class:"input-field"},t("label",null,this.label?t("div",{class:"input-label"},this.label+":"):t("div",null),t("select",{class:"input-element",disabled:this.disabled},this.options.map((e=>t("option",{value:e.value,selected:e.value===this.value},e.label))))))}};l.style='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}';const n=class{constructor(t){e(this,t),this.value="",this.label="",this.placeholder="",this.autocomplete="",this.helpText="",this.clearable=!1,this.copyable=!1,this.type="text",this.disabled=!1,this.required=!1}copyToClipboard(){this.inputEl.select(),navigator.clipboard.writeText(this.value).then((()=>s("Copied!"))).catch((e=>console.log("Error copying to clipboard",e)))}render(){return t(i,{class:`input-field ${this.clearable?"clearable":""} ${this.copyable?"copyable":""}`},t("label",null,this.label&&t("div",{class:"input-label"},this.label+":",this.required&&t("span",{class:"required"},"*")),t("div",{class:"input-container"},t("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:e=>this.inputEl=e,onInput:e=>this.value=e.target.value}),this.clearable&&this.value&&t("span",{innerHTML:'<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>',class:"clear",onClick:()=>{setTimeout((()=>{var e;this.value="",null===(e=this.inputEl)||void 0===e||e.setAttribute("value",""),setTimeout((()=>{var e,t;null===(e=this.inputEl)||void 0===e||e.dispatchEvent(new Event("focusout")),null===(t=this.inputEl)||void 0===t||t.blur()}),50)}),50)}}),!this.clearable&&this.copyable&&this.value&&t("span",{innerHTML:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M15.988 3.012A2.25 2.25 0 0118 5.25v6.5A2.25 2.25 0 0115.75 14H13.5V7A2.5 2.5 0 0011 4.5H8.128a2.252 2.252 0 011.884-1.488A2.25 2.25 0 0112.25 1h1.5a2.25 2.25 0 012.238 2.012zM11.5 3.25a.75.75 0 01.75-.75h1.5a.75.75 0 01.75.75v.25h-3v-.25z" clip-rule="evenodd" /><path fill-rule="evenodd" d="M2 7a1 1 0 011-1h8a1 1 0 011 1v10a1 1 0 01-1 1H3a1 1 0 01-1-1V7zm2 3.25a.75.75 0 01.75-.75h4.5a.75.75 0 010 1.5h-4.5a.75.75 0 01-.75-.75zm0 3.5a.75.75 0 01.75-.75h4.5a.75.75 0 010 1.5h-4.5a.75.75 0 01-.75-.75z" clip-rule="evenodd" /></svg>',class:"copy",onClick:()=>this.copyToClipboard()})),this.helpText&&t("verdocs-help-icon",{text:this.helpText})))}get hostEl(){return o(this)}};n.style='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}verdocs-text-input .copy{top:7px;right:5px;width:18px;height:18px;fill:#cccccc;position:absolute}verdocs-text-input .copy:hover{fill:#654dcb;cursor:pointer}verdocs-text-input.clearable .input-element,verdocs-text-input.copyable .input-element{padding-right:32px}';export{c as verdocs_checkbox,r as verdocs_component_error,l as verdocs_select_input,n as verdocs_text_input}