@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,104 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-1d5fc518.js');
6
- const Toast = require('./Toast-06880504.js');
7
-
8
- const verdocsCheckboxCss = "@charset \"UTF-8\";verdocs-checkbox{line-height:18px;font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-checkbox label>input[type=checkbox]{display:none}verdocs-checkbox label>input[type=checkbox]+*::before{content:\"\";width:20px;height:20px;-ms-flex-negative:0;flex-shrink:0;margin-right:8px;line-height:20px;border-radius:2px;border-style:solid;border-width:0.1rem;display:inline-block;vertical-align:bottom;border-color:#aeb4bf}verdocs-checkbox label>input[type=checkbox]:checked+*{color:#55bc81}verdocs-checkbox label>input[type=checkbox]:checked+*::before{content:\"✓\";color:white;text-align:center;background:#55bc81;border-color:#55bc81}verdocs-checkbox.dark label>input[type=checkbox]+*::before{border-color:#ffffff}verdocs-checkbox.dark label>input[type=checkbox]:checked+*::before{background:#55bc81;border-color:#55bc81}";
9
-
10
- const VerdocsCheckbox = class {
11
- constructor(hostRef) {
12
- index.registerInstance(this, hostRef);
13
- this.checked = false;
14
- this.name = '';
15
- this.label = '';
16
- this.value = '';
17
- this.theme = 'light';
18
- this.disabled = false;
19
- }
20
- render() {
21
- return (index.h(index.Host, { class: { disabled: this.disabled, [this.theme]: true } }, index.h("label", null, index.h("input", { type: "checkbox", value: this.value, name: this.name, checked: this.checked, disabled: this.disabled }), index.h("span", null, this.label))));
22
- }
23
- };
24
- VerdocsCheckbox.style = verdocsCheckboxCss;
25
-
26
- const verdocsComponentErrorCss = "verdocs-component-error{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;display:-ms-flexbox;display:flex;padding:15px;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-component-error .inner{-ms-flex:1;flex:1;height:300px;display:-ms-flexbox;display:flex;font-size:18px;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 20px;background:#ffffff;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}";
27
-
28
- const VerdocsComponentError = class {
29
- constructor(hostRef) {
30
- index.registerInstance(this, hostRef);
31
- this.message = '';
32
- }
33
- render() {
34
- return (index.h(index.Host, null, index.h("div", { class: "inner" }, this.message)));
35
- }
36
- };
37
- VerdocsComponentError.style = verdocsComponentErrorCss;
38
-
39
- const verdocsSelectInputCss = "verdocs-select-input{font-family:\"Inter\", \"Barlow\", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 0 10px 0;display:block}verdocs-select-input .input-element{-webkit-box-sizing:border-box;box-sizing:border-box;background:#ffffff;border:1px solid #cccccc;border-radius:4px;background:#ffffff;color:#092c4c;width:100%;font-size:16px;height:28px;padding:2px 8px}verdocs-select-input .input-element::-webkit-input-placeholder{color:#aaaaaa;opacity:1}verdocs-select-input .input-element::-moz-placeholder{color:#aaaaaa;opacity:1}verdocs-select-input .input-element:-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-select-input .input-element::-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-select-input .input-element::placeholder{color:#aaaaaa;opacity:1}verdocs-select-input .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0}";
40
-
41
- const VerdocsSelectInput = class {
42
- constructor(hostRef) {
43
- index.registerInstance(this, hostRef);
44
- this.value = '';
45
- this.label = '';
46
- this.options = undefined;
47
- this.disabled = false;
48
- }
49
- render() {
50
- return (index.h(index.Host, { class: "input-field" }, index.h("label", null, this.label ? index.h("div", { class: "input-label" }, this.label + ':') : index.h("div", null), index.h("select", { class: "input-element", disabled: this.disabled }, this.options.map(option => (index.h("option", { value: option.value, selected: option.value === this.value }, option.label)))))));
51
- }
52
- };
53
- VerdocsSelectInput.style = verdocsSelectInputCss;
54
-
55
- const verdocsTextInputCss = "verdocs-text-input{font-family:\"Inter\", \"Barlow\", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 0 10px 0;display:block}verdocs-text-input .input-element{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:16px;height:28px;padding:4px 12px;outline:none}verdocs-text-input .input-element:disabled{border:1px solid #aeb4bf;background:#f5f5fa}verdocs-text-input .input-element::-webkit-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-moz-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:focus{outline:1px solid #7d88ff}verdocs-text-input .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0}verdocs-text-input .required{color:red;margin-left:2px;display:inline-block}verdocs-text-input [data-lastpass-icon-root]{display:none !important}verdocs-text-input .input-container{position:relative}verdocs-text-input .clear{top:7px;right:5px;width:18px;height:18px;fill:#cccccc;position:absolute}verdocs-text-input .clear:hover{fill:#720101;cursor:pointer}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}";
56
-
57
- const ClearIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.881 122.88"><g><path fill-rule="evenodd" clip-rule="evenodd" d="M61.44,0c33.933,0,61.441,27.507,61.441,61.439 c0,33.933-27.508,61.44-61.441,61.44C27.508,122.88,0,95.372,0,61.439C0,27.507,27.508,0,61.44,0L61.44,0z M81.719,36.226 c1.363-1.363,3.572-1.363,4.936,0c1.363,1.363,1.363,3.573,0,4.936L66.375,61.439l20.279,20.278c1.363,1.363,1.363,3.573,0,4.937 c-1.363,1.362-3.572,1.362-4.936,0L61.44,66.376L41.162,86.654c-1.362,1.362-3.573,1.362-4.936,0c-1.363-1.363-1.363-3.573,0-4.937 l20.278-20.278L36.226,41.162c-1.363-1.363-1.363-3.573,0-4.936c1.363-1.363,3.573-1.363,4.936,0L61.44,56.504L81.719,36.226 L81.719,36.226z"/></g></svg>`;
58
- const CopyIcon = `<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>`;
59
- const VerdocsTextInput = class {
60
- constructor(hostRef) {
61
- index.registerInstance(this, hostRef);
62
- this.value = '';
63
- this.label = '';
64
- this.placeholder = '';
65
- this.autocomplete = '';
66
- this.helpText = '';
67
- this.clearable = false;
68
- this.copyable = false;
69
- this.type = 'text';
70
- this.disabled = false;
71
- this.required = false;
72
- }
73
- copyToClipboard() {
74
- this.inputEl.select();
75
- navigator.clipboard
76
- .writeText(this.value)
77
- .then(() => Toast.VerdocsToast('Copied!'))
78
- .catch(e => console.log('Error copying to clipboard', e));
79
- }
80
- render() {
81
- return (index.h(index.Host, { class: `input-field ${this.clearable ? 'clearable' : ''} ${this.copyable ? 'copyable' : ''}` }, index.h("label", null, this.label && (index.h("div", { class: "input-label" }, this.label + ':', this.required && index.h("span", { class: "required" }, "*"))), index.h("div", { class: "input-container" }, index.h("input", { type: this.type, value: this.value, required: this.required, class: "input-element", "data-lpignore": "true", disabled: this.disabled, placeholder: this.placeholder, autoComplete: this.autocomplete, ref: el => (this.inputEl = el), onInput: (e) => (this.value = e.target.value) }), this.clearable && this.value && (index.h("span", { innerHTML: ClearIcon, class: "clear", onClick: () => {
82
- // We need to allow the onInput event to fire first in case
83
- // the user was focused on this field before clicking clear.
84
- setTimeout(() => {
85
- var _a;
86
- this.value = '';
87
- (_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.setAttribute('value', '');
88
- // We need to allow the value to "settle"
89
- setTimeout(() => {
90
- var _a, _b;
91
- (_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.dispatchEvent(new Event('focusout'));
92
- (_b = this.inputEl) === null || _b === void 0 ? void 0 : _b.blur();
93
- }, 50);
94
- }, 50);
95
- } })), !this.clearable && this.copyable && this.value && index.h("span", { innerHTML: CopyIcon, class: "copy", onClick: () => this.copyToClipboard() })), this.helpText && index.h("verdocs-help-icon", { text: this.helpText }))));
96
- }
97
- get hostEl() { return index.getElement(this); }
98
- };
99
- VerdocsTextInput.style = verdocsTextInputCss;
100
-
101
- exports.verdocs_checkbox = VerdocsCheckbox;
102
- exports.verdocs_component_error = VerdocsComponentError;
103
- exports.verdocs_select_input = VerdocsSelectInput;
104
- exports.verdocs_text_input = VerdocsTextInput;
@@ -1,20 +0,0 @@
1
- /**
2
- * Create an array containing a sequence of integers, e.g. [START, START+1, START+2, ...] This is frequently useful
3
- * in rendering operations when there is no source array to .map() across.
4
- */
5
- var integerSequence = function (start, count) {
6
- return Array(count)
7
- .fill(1)
8
- .map(function (_, index) { return index + start; });
9
- };
10
- /**
11
- * Generate suggested initials for a full name, e.g. "John Doe" will yield "JD".
12
- */
13
- var fullNameToInitials = function (name) {
14
- return name
15
- .split(' ')
16
- .map(function (word) { return word[0]; })
17
- .join('');
18
- };
19
-
20
- export { fullNameToInitials as f, integerSequence as i };
@@ -1,97 +0,0 @@
1
- import { r as registerInstance, h, H as Host, a as getElement } from './index-151c0874.js';
2
- import { V as VerdocsToast } from './Toast-f3b8fd46.js';
3
-
4
- const verdocsCheckboxCss = "@charset \"UTF-8\";verdocs-checkbox{line-height:18px;font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif}verdocs-checkbox label>input[type=checkbox]{display:none}verdocs-checkbox label>input[type=checkbox]+*::before{content:\"\";width:20px;height:20px;-ms-flex-negative:0;flex-shrink:0;margin-right:8px;line-height:20px;border-radius:2px;border-style:solid;border-width:0.1rem;display:inline-block;vertical-align:bottom;border-color:#aeb4bf}verdocs-checkbox label>input[type=checkbox]:checked+*{color:#55bc81}verdocs-checkbox label>input[type=checkbox]:checked+*::before{content:\"✓\";color:white;text-align:center;background:#55bc81;border-color:#55bc81}verdocs-checkbox.dark label>input[type=checkbox]+*::before{border-color:#ffffff}verdocs-checkbox.dark label>input[type=checkbox]:checked+*::before{background:#55bc81;border-color:#55bc81}";
5
-
6
- const VerdocsCheckbox = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- this.checked = false;
10
- this.name = '';
11
- this.label = '';
12
- this.value = '';
13
- this.theme = 'light';
14
- this.disabled = false;
15
- }
16
- render() {
17
- return (h(Host, { class: { disabled: this.disabled, [this.theme]: true } }, h("label", null, h("input", { type: "checkbox", value: this.value, name: this.name, checked: this.checked, disabled: this.disabled }), h("span", null, this.label))));
18
- }
19
- };
20
- VerdocsCheckbox.style = verdocsCheckboxCss;
21
-
22
- const verdocsComponentErrorCss = "verdocs-component-error{font-family:\"Inter\", -apple-system, \"Segoe UI\", \"Roboto\", \"Helvetica Neue\", sans-serif;display:-ms-flexbox;display:flex;padding:15px;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-component-error .inner{-ms-flex:1;flex:1;height:300px;display:-ms-flexbox;display:flex;font-size:18px;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 20px;background:#ffffff;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}";
23
-
24
- const VerdocsComponentError = class {
25
- constructor(hostRef) {
26
- registerInstance(this, hostRef);
27
- this.message = '';
28
- }
29
- render() {
30
- return (h(Host, null, h("div", { class: "inner" }, this.message)));
31
- }
32
- };
33
- VerdocsComponentError.style = verdocsComponentErrorCss;
34
-
35
- const verdocsSelectInputCss = "verdocs-select-input{font-family:\"Inter\", \"Barlow\", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 0 10px 0;display:block}verdocs-select-input .input-element{-webkit-box-sizing:border-box;box-sizing:border-box;background:#ffffff;border:1px solid #cccccc;border-radius:4px;background:#ffffff;color:#092c4c;width:100%;font-size:16px;height:28px;padding:2px 8px}verdocs-select-input .input-element::-webkit-input-placeholder{color:#aaaaaa;opacity:1}verdocs-select-input .input-element::-moz-placeholder{color:#aaaaaa;opacity:1}verdocs-select-input .input-element:-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-select-input .input-element::-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-select-input .input-element::placeholder{color:#aaaaaa;opacity:1}verdocs-select-input .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0}";
36
-
37
- const VerdocsSelectInput = class {
38
- constructor(hostRef) {
39
- registerInstance(this, hostRef);
40
- this.value = '';
41
- this.label = '';
42
- this.options = undefined;
43
- this.disabled = false;
44
- }
45
- render() {
46
- return (h(Host, { class: "input-field" }, h("label", null, this.label ? h("div", { class: "input-label" }, this.label + ':') : h("div", null), h("select", { class: "input-element", disabled: this.disabled }, this.options.map(option => (h("option", { value: option.value, selected: option.value === this.value }, option.label)))))));
47
- }
48
- };
49
- VerdocsSelectInput.style = verdocsSelectInputCss;
50
-
51
- const verdocsTextInputCss = "verdocs-text-input{font-family:\"Inter\", \"Barlow\", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 0 10px 0;display:block}verdocs-text-input .input-element{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:16px;height:28px;padding:4px 12px;outline:none}verdocs-text-input .input-element:disabled{border:1px solid #aeb4bf;background:#f5f5fa}verdocs-text-input .input-element::-webkit-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-moz-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:focus{outline:1px solid #7d88ff}verdocs-text-input .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0}verdocs-text-input .required{color:red;margin-left:2px;display:inline-block}verdocs-text-input [data-lastpass-icon-root]{display:none !important}verdocs-text-input .input-container{position:relative}verdocs-text-input .clear{top:7px;right:5px;width:18px;height:18px;fill:#cccccc;position:absolute}verdocs-text-input .clear:hover{fill:#720101;cursor:pointer}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}";
52
-
53
- const ClearIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.881 122.88"><g><path fill-rule="evenodd" clip-rule="evenodd" d="M61.44,0c33.933,0,61.441,27.507,61.441,61.439 c0,33.933-27.508,61.44-61.441,61.44C27.508,122.88,0,95.372,0,61.439C0,27.507,27.508,0,61.44,0L61.44,0z M81.719,36.226 c1.363-1.363,3.572-1.363,4.936,0c1.363,1.363,1.363,3.573,0,4.936L66.375,61.439l20.279,20.278c1.363,1.363,1.363,3.573,0,4.937 c-1.363,1.362-3.572,1.362-4.936,0L61.44,66.376L41.162,86.654c-1.362,1.362-3.573,1.362-4.936,0c-1.363-1.363-1.363-3.573,0-4.937 l20.278-20.278L36.226,41.162c-1.363-1.363-1.363-3.573,0-4.936c1.363-1.363,3.573-1.363,4.936,0L61.44,56.504L81.719,36.226 L81.719,36.226z"/></g></svg>`;
54
- const CopyIcon = `<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>`;
55
- const VerdocsTextInput = class {
56
- constructor(hostRef) {
57
- registerInstance(this, hostRef);
58
- this.value = '';
59
- this.label = '';
60
- this.placeholder = '';
61
- this.autocomplete = '';
62
- this.helpText = '';
63
- this.clearable = false;
64
- this.copyable = false;
65
- this.type = 'text';
66
- this.disabled = false;
67
- this.required = false;
68
- }
69
- copyToClipboard() {
70
- this.inputEl.select();
71
- navigator.clipboard
72
- .writeText(this.value)
73
- .then(() => VerdocsToast('Copied!'))
74
- .catch(e => console.log('Error copying to clipboard', e));
75
- }
76
- render() {
77
- return (h(Host, { class: `input-field ${this.clearable ? 'clearable' : ''} ${this.copyable ? 'copyable' : ''}` }, h("label", null, this.label && (h("div", { class: "input-label" }, this.label + ':', this.required && h("span", { class: "required" }, "*"))), h("div", { class: "input-container" }, h("input", { type: this.type, value: this.value, required: this.required, class: "input-element", "data-lpignore": "true", disabled: this.disabled, placeholder: this.placeholder, autoComplete: this.autocomplete, ref: el => (this.inputEl = el), onInput: (e) => (this.value = e.target.value) }), this.clearable && this.value && (h("span", { innerHTML: ClearIcon, class: "clear", onClick: () => {
78
- // We need to allow the onInput event to fire first in case
79
- // the user was focused on this field before clicking clear.
80
- setTimeout(() => {
81
- var _a;
82
- this.value = '';
83
- (_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.setAttribute('value', '');
84
- // We need to allow the value to "settle"
85
- setTimeout(() => {
86
- var _a, _b;
87
- (_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.dispatchEvent(new Event('focusout'));
88
- (_b = this.inputEl) === null || _b === void 0 ? void 0 : _b.blur();
89
- }, 50);
90
- }, 50);
91
- } })), !this.clearable && this.copyable && this.value && h("span", { innerHTML: CopyIcon, class: "copy", onClick: () => this.copyToClipboard() })), this.helpText && h("verdocs-help-icon", { text: this.helpText }))));
92
- }
93
- get hostEl() { return getElement(this); }
94
- };
95
- VerdocsTextInput.style = verdocsTextInputCss;
96
-
97
- export { VerdocsCheckbox as verdocs_checkbox, VerdocsComponentError as verdocs_component_error, VerdocsSelectInput as verdocs_select_input, VerdocsTextInput as verdocs_text_input };
@@ -1 +0,0 @@
1
- var integerSequence=function(n,e){return Array(e).fill(1).map((function(e,r){return r+n}))};var fullNameToInitials=function(n){return n.split(" ").map((function(n){return n[0]})).join("")};export{fullNameToInitials as f,integerSequence as i};
@@ -1 +0,0 @@
1
- var getOrganization=function(n,t){return n.api.get("/organizations/".concat(t)).then((function(n){return n.data}))};var updateOrganization=function(n,t,a){return n.api.patch("/organizations/".concat(t),a).then((function(n){return n.data}))};var isOrgAvailable=function(n,t){return n.api.post("/organizations/check-availability",{name:t},{baseURL:n.getBaseURLv2()}).then((function(n){return n.data}))};var getCurrentProfile=function(n){return n.api.get("/profiles").then((function(n){return(n.data||[]).find((function(n){return n.current}))}))};var updateProfile=function(n,t,a){return n.api.put("/profiles/".concat(t),a).then((function(n){return n.data}))};var createBusinessAccount=function(n,t){return n.api.post("/user/business",t).then((function(n){return n.data}))};export{getCurrentProfile as a,updateProfile as b,createBusinessAccount as c,getOrganization as g,isOrgAvailable as i,updateOrganization as u};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host}from"./index-151c0874.js";import{c as createPopper}from"./popper-15e448b4.js";var verdocsButtonCss='verdocs-button button{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;text-transform:uppercase;-ms-flex-pack:center;justify-content:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;font-weight:700;cursor:pointer;margin:0}verdocs-button button:disabled{cursor:inherit;pointer-events:none}verdocs-button button .icon{margin:0 12px}verdocs-button button .icon svg{fill:#ffffff;display:block}verdocs-button button .button-label{padding:0 12px}verdocs-button button.small{height:34px;font-size:13px}verdocs-button button.small .icon{margin:0 4px}verdocs-button button.small .icon svg{margin:2px 0 0 0;height:20px}verdocs-button button.small .button-label{padding:0 4px}verdocs-button button.normal{height:44px;font-size:14px}verdocs-button button.normal .icon.start{margin:0 4px 0 8px}verdocs-button button.normal .icon.end{margin:0 8px 0 4px}verdocs-button button.normal .icon svg{margin:2px 0 0 0;height:22px}verdocs-button button.normal .button-label{padding:0 10px}verdocs-button button.medium{height:52px;font-size:16px}verdocs-button button.medium .icon.start{margin:0 0 0 18px}verdocs-button button.medium .icon.end{margin:0 18px 0 0}verdocs-button button.medium .icon svg{margin:2px 0 0 0;height:26px}verdocs-button button.medium .button-label{padding:0 20px}verdocs-button button.large{height:60px;font-size:20px}verdocs-button button.large .icon.start{margin:0 0 0 24px}verdocs-button button.large .icon.end{margin:0 24px 0 0}verdocs-button button.large .icon svg{margin:2px 0 0 0;height:32px}verdocs-button button.large .button-label{padding:0 34px}verdocs-button button.standard{background:#55bc81;border-radius:4px;outline:none;border:none;color:white}verdocs-button button.standard:disabled{background-color:#999999;cursor:default}verdocs-button button.standard:active:not([disabled]){-webkit-filter:brightness(110%);filter:brightness(110%)}verdocs-button button.text{color:#4c56cb;background:transparent;font-weight:500;padding:0 4px;outline:none;border:none}verdocs-button button.text:disabled{color:#999999}verdocs-button button.text:active:not([disabled]){-webkit-filter:brightness(130%);filter:brightness(130%)}verdocs-button button.text .icon svg{fill:#4c56cb}verdocs-button button.outline{border:1px solid #4c56cb;color:#4c56cb;outline:none;background:transparent;border-radius:4px;padding:0 20px}verdocs-button button.outline:disabled{color:#999999;border:1px solid #999999}verdocs-button button.outline:active{background:#4c56cb;color:white}verdocs-button button.outline .icon svg{fill:#4c56cb}';var VerdocsButton=function(){function t(t){registerInstance(this,t);this.label=undefined;this.startIcon=null;this.endIcon=null;this.size="normal";this.type="button";this.variant="standard";this.disabled=false}t.prototype.render=function(){return h("button",{disabled:this.disabled,type:this.type,class:"".concat(this.variant," ").concat(this.size," ").concat(this.type)},this.startIcon?h("span",{class:"icon start",innerHTML:this.startIcon}):null,h("span",{class:"button-label"},this.label),this.endIcon?h("span",{class:"icon end",innerHTML:this.endIcon}):null)};return t}();VerdocsButton.style=verdocsButtonCss;var verdocsHelpIconCss='verdocs-help-icon{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:inline-block;opacity:0.3;position:relative}verdocs-help-icon:hover{opacity:1}verdocs-help-icon .icon{display:inline-block}verdocs-help-icon .tooltip{display:none;min-width:200px;-webkit-box-shadow:0 0 10px 1px #999999;box-shadow:0 0 10px 1px #999999;background:#ffffff;color:#33364b;max-width:240px;font-weight:bold;position:absolute;padding:5px 10px;font-size:13px;border-radius:4px;z-index:10000}verdocs-help-icon .tooltip .arrow,verdocs-help-icon .tooltip .arrow::before{position:absolute;width:8px;height:8px;background:inherit}verdocs-help-icon .tooltip .arrow{visibility:hidden;top:-4px}verdocs-help-icon .tooltip .arrow::before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}verdocs-help-icon .tooltip[data-show]{display:block}verdocs-help-icon .tooltip[data-popper-placement^=top]>.arrow{bottom:-4px}verdocs-help-icon .tooltip[data-popper-placement^=bottom]>.arrow{top:-4px}verdocs-help-icon .tooltip[data-popper-placement^=left]>.arrow{right:-4px}verdocs-help-icon .tooltip[data-popper-placement^=right]>.arrow{left:-4px}';var helpIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" 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 VerdocsHelpIcon=function(){function t(t){registerInstance(this,t);this.text="";this.icon=helpIcon;this.containerId="verdocs-help-icon-".concat(Math.random().toString(36).substring(2,11))}t.prototype.componentDidLoad=function(){this.popperInstance=createPopper(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 h(Host,{class:{}},h("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}}),h("div",{id:this.containerId,role:"tooltip",class:"tooltip","data-popper-placement":"bottom",ref:function(o){return t.tooltipEl=o}},h("span",{innerHTML:this.text}),h("div",{"data-popper-arrow":"true",class:"arrow"})))};return t}();VerdocsHelpIcon.style=verdocsHelpIconCss;export{VerdocsButton as verdocs_button,VerdocsHelpIcon as verdocs_help_icon};
@@ -1 +0,0 @@
1
- import{r as registerInstance,h,H as Host,a as getElement}from"./index-151c0874.js";import{V as VerdocsToast}from"./Toast-f3b8fd46.js";var verdocsCheckboxCss='@charset "UTF-8";verdocs-checkbox{line-height:18px;font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif}verdocs-checkbox label>input[type=checkbox]{display:none}verdocs-checkbox label>input[type=checkbox]+*::before{content:"";width:20px;height:20px;-ms-flex-negative:0;flex-shrink:0;margin-right:8px;line-height:20px;border-radius:2px;border-style:solid;border-width:0.1rem;display:inline-block;vertical-align:bottom;border-color:#aeb4bf}verdocs-checkbox label>input[type=checkbox]:checked+*{color:#55bc81}verdocs-checkbox label>input[type=checkbox]:checked+*::before{content:"✓";color:white;text-align:center;background:#55bc81;border-color:#55bc81}verdocs-checkbox.dark label>input[type=checkbox]+*::before{border-color:#ffffff}verdocs-checkbox.dark label>input[type=checkbox]:checked+*::before{background:#55bc81;border-color:#55bc81}';var VerdocsCheckbox=function(){function e(e){registerInstance(this,e);this.checked=false;this.name="";this.label="";this.value="";this.theme="light";this.disabled=false}e.prototype.render=function(){var e;return h(Host,{class:(e={disabled:this.disabled},e[this.theme]=true,e)},h("label",null,h("input",{type:"checkbox",value:this.value,name:this.name,checked:this.checked,disabled:this.disabled}),h("span",null,this.label)))};return e}();VerdocsCheckbox.style=verdocsCheckboxCss;var verdocsComponentErrorCss='verdocs-component-error{font-family:"Inter", -apple-system, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;display:-ms-flexbox;display:flex;padding:15px;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}verdocs-component-error .inner{-ms-flex:1;flex:1;height:300px;display:-ms-flexbox;display:flex;font-size:18px;-webkit-box-sizing:border-box;box-sizing:border-box;padding:0 20px;background:#ffffff;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}';var VerdocsComponentError=function(){function e(e){registerInstance(this,e);this.message=""}e.prototype.render=function(){return h(Host,null,h("div",{class:"inner"},this.message))};return e}();VerdocsComponentError.style=verdocsComponentErrorCss;var verdocsSelectInputCss='verdocs-select-input{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 0 10px 0;display:block}verdocs-select-input .input-element{-webkit-box-sizing:border-box;box-sizing:border-box;background:#ffffff;border:1px solid #cccccc;border-radius:4px;background:#ffffff;color:#092c4c;width:100%;font-size:16px;height:28px;padding:2px 8px}verdocs-select-input .input-element::-webkit-input-placeholder{color:#aaaaaa;opacity:1}verdocs-select-input .input-element::-moz-placeholder{color:#aaaaaa;opacity:1}verdocs-select-input .input-element:-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-select-input .input-element::-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-select-input .input-element::placeholder{color:#aaaaaa;opacity:1}verdocs-select-input .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0}';var VerdocsSelectInput=function(){function e(e){registerInstance(this,e);this.value="";this.label="";this.options=undefined;this.disabled=false}e.prototype.render=function(){var e=this;return h(Host,{class:"input-field"},h("label",null,this.label?h("div",{class:"input-label"},this.label+":"):h("div",null),h("select",{class:"input-element",disabled:this.disabled},this.options.map((function(t){return h("option",{value:t.value,selected:t.value===e.value},t.label)})))))};return e}();VerdocsSelectInput.style=verdocsSelectInputCss;var verdocsTextInputCss='verdocs-text-input{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 0 10px 0;display:block}verdocs-text-input .input-element{-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #707ae5;border-radius:4px;background:#ffffff;color:#000;width:100%;font-size:16px;height:28px;padding:4px 12px;outline:none}verdocs-text-input .input-element:disabled{border:1px solid #aeb4bf;background:#f5f5fa}verdocs-text-input .input-element::-webkit-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-moz-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::-ms-input-placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element::placeholder{color:#aaaaaa;opacity:1}verdocs-text-input .input-element:focus{outline:1px solid #7d88ff}verdocs-text-input .input-label{display:block;color:#555570;font-weight:700;font-size:14px;margin:0 0 4px 0}verdocs-text-input .required{color:red;margin-left:2px;display:inline-block}verdocs-text-input [data-lastpass-icon-root]{display:none !important}verdocs-text-input .input-container{position:relative}verdocs-text-input .clear{top:7px;right:5px;width:18px;height:18px;fill:#cccccc;position:absolute}verdocs-text-input .clear:hover{fill:#720101;cursor:pointer}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}';var ClearIcon='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 122.881 122.88"><g><path fill-rule="evenodd" clip-rule="evenodd" d="M61.44,0c33.933,0,61.441,27.507,61.441,61.439 c0,33.933-27.508,61.44-61.441,61.44C27.508,122.88,0,95.372,0,61.439C0,27.507,27.508,0,61.44,0L61.44,0z M81.719,36.226 c1.363-1.363,3.572-1.363,4.936,0c1.363,1.363,1.363,3.573,0,4.936L66.375,61.439l20.279,20.278c1.363,1.363,1.363,3.573,0,4.937 c-1.363,1.362-3.572,1.362-4.936,0L61.44,66.376L41.162,86.654c-1.362,1.362-3.573,1.362-4.936,0c-1.363-1.363-1.363-3.573,0-4.937 l20.278-20.278L36.226,41.162c-1.363-1.363-1.363-3.573,0-4.936c1.363-1.363,3.573-1.363,4.936,0L61.44,56.504L81.719,36.226 L81.719,36.226z"/></g></svg>';var CopyIcon='<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>';var VerdocsTextInput=function(){function e(e){registerInstance(this,e);this.value="";this.label="";this.placeholder="";this.autocomplete="";this.helpText="";this.clearable=false;this.copyable=false;this.type="text";this.disabled=false;this.required=false}e.prototype.copyToClipboard=function(){this.inputEl.select();navigator.clipboard.writeText(this.value).then((function(){return VerdocsToast("Copied!")})).catch((function(e){return console.log("Error copying to clipboard",e)}))};e.prototype.render=function(){var e=this;return h(Host,{class:"input-field ".concat(this.clearable?"clearable":""," ").concat(this.copyable?"copyable":"")},h("label",null,this.label&&h("div",{class:"input-label"},this.label+":",this.required&&h("span",{class:"required"},"*")),h("div",{class:"input-container"},h("input",{type:this.type,value:this.value,required:this.required,class:"input-element","data-lpignore":"true",disabled:this.disabled,placeholder:this.placeholder,autoComplete:this.autocomplete,ref:function(t){return e.inputEl=t},onInput:function(t){return e.value=t.target.value}}),this.clearable&&this.value&&h("span",{innerHTML:ClearIcon,class:"clear",onClick:function(){setTimeout((function(){var t;e.value="";(t=e.inputEl)===null||t===void 0?void 0:t.setAttribute("value","");setTimeout((function(){var t,o;(t=e.inputEl)===null||t===void 0?void 0:t.dispatchEvent(new Event("focusout"));(o=e.inputEl)===null||o===void 0?void 0:o.blur()}),50)}),50)}}),!this.clearable&&this.copyable&&this.value&&h("span",{innerHTML:CopyIcon,class:"copy",onClick:function(){return e.copyToClipboard()}})),this.helpText&&h("verdocs-help-icon",{text:this.helpText})))};Object.defineProperty(e.prototype,"hostEl",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();VerdocsTextInput.style=verdocsTextInputCss;export{VerdocsCheckbox as verdocs_checkbox,VerdocsComponentError as verdocs_component_error,VerdocsSelectInput as verdocs_select_input,VerdocsTextInput as verdocs_text_input};
@@ -1 +0,0 @@
1
- import{r as registerInstance,c as createEvent,h,H as Host}from"./index-151c0874.js";var verdocsDialogCss='verdocs-dialog{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-dialog div{-webkit-box-sizing:border-box;box-sizing:border-box}verdocs-dialog .background-overlay{top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;z-index:10000;position:absolute;-ms-flex-align:center;align-items:center;background:#0000007f;-ms-flex-pack:center;justify-content:center}verdocs-dialog .dialog{width:420px;display:-ms-flexbox;display:flex;max-width:100%;overflow:hidden;border-radius:4px;-ms-flex-direction:column;flex-direction:column;background:#ffffff;-webkit-box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4);box-shadow:3px 3px 5px 1px rgba(40, 40, 40, 0.4)}verdocs-dialog .heading{display:-ms-flexbox;display:flex;font-size:16px;font-weight:500;padding:8px 16px;-ms-flex-direction:row;flex-direction:row;color:#ffffff;background:#46497d}verdocs-dialog .content{padding:16px}verdocs-dialog .content p{margin:0 0 1em 0}verdocs-dialog .buttons{gap:14px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}';var VerdocsDialog=function(){function e(e){registerInstance(this,e);this.exit=createEvent(this,"exit",7)}e.prototype.handleDismiss=function(e){var o;console.log("e",e.target.className);if(e.target.className==="background-overlay"){e.preventDefault();(o=this.exit)===null||o===void 0?void 0:o.emit()}};e.prototype.render=function(){var e=this;return h(Host,null,h("div",{class:"background-overlay",onClick:function(o){return e.handleDismiss(o)}},h("div",{class:"dialog"},h("slot",{name:"title"},h("div",{class:"heading"},"Please Confirm")),h("slot",null,h("div",{class:"content"})))))};return e}();VerdocsDialog.style=verdocsDialogCss;var verdocsTableCss='verdocs-table{font-family:"Inter", "Barlow", sans-serif;-webkit-box-sizing:border-box;box-sizing:border-box;margin:0 0 10px 0;display:block;width:100%}verdocs-table .table-wrapper{margin:10px 0;padding:0}verdocs-table .table{width:100%;border:none}verdocs-table .row.data-row{border:1px solid #cccccc;background-color:#ffffff}verdocs-table .header-col{text-align:left;padding:8px 16px;font-weight:600;color:#5c6575}verdocs-table .data-col{padding:8px 16px;font-weight:400}';var VerdocsTable=function(){function e(e){registerInstance(this,e);this.columns=[];this.data=[]}e.prototype.render=function(){var e=this;return h(Host,{class:"table-wrapper"},h("table",{class:"table"},h("thead",null,h("tr",{class:"row header-row"},this.columns.map((function(e,o){return h("th",{class:"col header-col col-".concat(o," col-").concat(e.id),innerHTML:e.renderHeader?e.renderHeader(e):e.header||e.id})})))),h("tbody",null,this.data.map((function(o){return h("tr",{class:"row data-row"},e.columns.map((function(e,r){var t;return h("td",{class:"col data-col col-".concat(r," col-").concat(e.id)},((t=e.renderCell)===null||t===void 0?void 0:t.call(e,e,o))||o[e.id])})))})))))};return e}();VerdocsTable.style=verdocsTableCss;export{VerdocsDialog as verdocs_dialog,VerdocsTable as verdocs_table};
@@ -1 +0,0 @@
1
- import{r as t,h as o,H as n}from"./p-6d3e0994.js";import{c as e}from"./p-7c0dcd00.js";const i=class{constructor(o){t(this,o),this.label=void 0,this.startIcon=null,this.endIcon=null,this.size="normal",this.type="button",this.variant="standard",this.disabled=!1}render(){return o("button",{disabled:this.disabled,type:this.type,class:`${this.variant} ${this.size} ${this.type}`},this.startIcon?o("span",{class:"icon start",innerHTML:this.startIcon}):null,o("span",{class:"button-label"},this.label),this.endIcon?o("span",{class:"icon end",innerHTML:this.endIcon}):null)}};i.style='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}';const s=class{constructor(o){t(this,o),this.text="",this.icon='<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>',this.containerId=`verdocs-help-icon-${Math.random().toString(36).substring(2,11)}`}componentDidLoad(){this.popperInstance=e(this.iconEl,this.tooltipEl,{})}disconnectedCallback(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)}show(){var t,o;null===(t=this.tooltipEl)||void 0===t||t.setAttribute("data-show",""),null===(o=this.popperInstance)||void 0===o||o.update().catch((()=>{}))}hide(){var t;null===(t=this.tooltipEl)||void 0===t||t.removeAttribute("data-show")}render(){return o(n,{class:{}},o("div",{"aria-describedby":this.containerId,class:"icon",innerHTML:this.icon,onMouseEnter:()=>this.show(),onFocus:()=>this.show(),onMouseLeave:()=>this.hide(),onBlur:()=>this.hide(),ref:t=>this.iconEl=t}),o("div",{id:this.containerId,role:"tooltip",class:"tooltip","data-popper-placement":"bottom",ref:t=>this.tooltipEl=t},o("span",{innerHTML:this.text}),o("div",{"data-popper-arrow":"true",class:"arrow"})))}};s.style='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}';export{i as verdocs_button,s as verdocs_help_icon}