@verdocs/web-sdk 1.0.3 → 1.0.15

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 (160) hide show
  1. package/dist/cjs/{Content-a339b396.js → Content-986f7a13.js} +39 -6
  2. package/dist/cjs/document-status-indicator.cjs.entry.js +2 -2
  3. package/dist/cjs/dropdown-menu.cjs.entry.js +2 -2
  4. package/dist/cjs/{index-2293949e.js → index-e2fb537e.js} +359 -8
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/org-popup.cjs.entry.js +2 -2
  7. package/dist/cjs/pdf-viewer.cjs.entry.js +6 -2
  8. package/dist/cjs/search-box.cjs.entry.js +22 -3
  9. package/dist/cjs/search-embed.cjs.entry.js +1 -1
  10. package/dist/cjs/search-quick-functions.cjs.entry.js +2 -2
  11. package/dist/cjs/search-recent.cjs.entry.js +3 -3
  12. package/dist/cjs/search-saved.cjs.entry.js +3 -3
  13. package/dist/cjs/search-starred.cjs.entry.js +6 -5
  14. package/dist/cjs/search-tabs.cjs.entry.js +2 -1
  15. package/dist/cjs/tags-indicator.cjs.entry.js +2 -2
  16. package/dist/cjs/template-card.cjs.entry.js +2 -2
  17. package/dist/cjs/toggle-icon-buttons.cjs.entry.js +2 -2
  18. package/dist/cjs/verdocs-web-sdk.cjs.js +2 -2
  19. package/dist/collection/api/endpoint.js +1 -0
  20. package/dist/collection/collection-manifest.json +1 -1
  21. package/dist/collection/components/controls/document-status-indicator/document-status-indicator.css +10 -4
  22. package/dist/collection/components/controls/document-status-indicator/document-status-indicator.js +1 -2
  23. package/dist/collection/components/controls/dropdown-menu/dropdown-menu.css +23 -19
  24. package/dist/collection/components/controls/dropdown-menu/dropdown-menu.js +1 -2
  25. package/dist/collection/components/controls/tags-indicator/tags-indicator.css +8 -2
  26. package/dist/collection/components/controls/tags-indicator/tags-indicator.js +1 -2
  27. package/dist/collection/components/controls/toggle-icon-buttons/toggle-icon-buttons.css +18 -12
  28. package/dist/collection/components/controls/toggle-icon-buttons/toggle-icon-buttons.js +1 -2
  29. package/dist/collection/components/elements/org-popup/org-popup.css +17 -17
  30. package/dist/collection/components/elements/org-popup/org-popup.js +1 -2
  31. package/dist/collection/components/elements/search-box/close.svg +3 -0
  32. package/dist/collection/components/elements/search-box/search-box.css +70 -2
  33. package/dist/collection/components/elements/search-box/search-box.js +70 -4
  34. package/dist/collection/components/elements/search-box/search-box.stories.js +7 -9
  35. package/dist/collection/components/elements/search-box/search.svg +3 -0
  36. package/dist/collection/components/elements/search-quick-functions/search-quick-functions.css +10 -12
  37. package/dist/collection/components/elements/search-quick-functions/search-quick-functions.js +1 -2
  38. package/dist/collection/components/elements/search-recent/search-recent.css +15 -22
  39. package/dist/collection/components/elements/search-recent/search-recent.js +1 -2
  40. package/dist/collection/components/elements/search-saved/search-saved.css +14 -20
  41. package/dist/collection/components/elements/search-saved/search-saved.js +1 -2
  42. package/dist/collection/components/elements/search-starred/search-starred.css +22 -40
  43. package/dist/collection/components/elements/search-starred/search-starred.js +31 -8
  44. package/dist/collection/components/elements/search-starred/search-starred.stories.js +13 -15
  45. package/dist/collection/components/elements/search-tabs/search-tabs.css +1 -1
  46. package/dist/collection/components/elements/search-tabs/search-tabs.js +8 -3
  47. package/dist/collection/components/elements/template-card/template-card.css +21 -13
  48. package/dist/collection/components/elements/template-card/template-card.js +2 -3
  49. package/dist/collection/components/embeds/search-embed/search-embed.css +1 -1
  50. package/dist/collection/components/embeds/search-embed/search-embed.js +1 -1
  51. package/dist/collection/components/pdf-viewer/pdf-viewer.css +7 -4
  52. package/dist/collection/components/pdf-viewer/pdf-viewer.js +2 -3
  53. package/dist/custom-elements/index.js +94 -49
  54. package/dist/custom-elements.json +266 -0
  55. package/dist/docs.json +69 -18
  56. package/dist/esm/{Content-68a13fb0.js → Content-386637c8.js} +39 -6
  57. package/dist/esm/document-status-indicator.entry.js +2 -2
  58. package/dist/esm/dropdown-menu.entry.js +2 -2
  59. package/dist/esm/{index-69a4b693.js → index-183a8995.js} +359 -8
  60. package/dist/esm/loader.js +2 -2
  61. package/dist/esm/org-popup.entry.js +2 -2
  62. package/dist/esm/pdf-viewer.entry.js +6 -2
  63. package/dist/esm/search-box.entry.js +22 -3
  64. package/dist/esm/search-embed.entry.js +1 -1
  65. package/dist/esm/search-quick-functions.entry.js +2 -2
  66. package/dist/esm/search-recent.entry.js +3 -3
  67. package/dist/esm/search-saved.entry.js +3 -3
  68. package/dist/esm/search-starred.entry.js +6 -5
  69. package/dist/esm/search-tabs.entry.js +2 -1
  70. package/dist/esm/tags-indicator.entry.js +2 -2
  71. package/dist/esm/template-card.entry.js +2 -2
  72. package/dist/esm/toggle-icon-buttons.entry.js +2 -2
  73. package/dist/esm/verdocs-web-sdk.js +2 -2
  74. package/dist/esm-es5/{Content-68a13fb0.js → Content-386637c8.js} +1 -1
  75. package/dist/esm-es5/document-status-indicator.entry.js +1 -1
  76. package/dist/esm-es5/dropdown-menu.entry.js +1 -1
  77. package/dist/esm-es5/index-183a8995.js +1 -0
  78. package/dist/esm-es5/loader.js +1 -1
  79. package/dist/esm-es5/org-popup.entry.js +1 -1
  80. package/dist/esm-es5/pdf-viewer.entry.js +2 -2
  81. package/dist/esm-es5/search-box.entry.js +1 -1
  82. package/dist/esm-es5/search-embed.entry.js +1 -1
  83. package/dist/esm-es5/search-quick-functions.entry.js +1 -1
  84. package/dist/esm-es5/search-recent.entry.js +1 -1
  85. package/dist/esm-es5/search-saved.entry.js +1 -1
  86. package/dist/esm-es5/search-starred.entry.js +1 -1
  87. package/dist/esm-es5/search-tabs.entry.js +1 -1
  88. package/dist/esm-es5/tags-indicator.entry.js +1 -1
  89. package/dist/esm-es5/template-card.entry.js +1 -1
  90. package/dist/esm-es5/toggle-icon-buttons.entry.js +1 -1
  91. package/dist/esm-es5/verdocs-web-sdk.js +1 -1
  92. package/dist/types/api/endpoint.d.ts +1 -0
  93. package/dist/types/components/elements/search-box/search-box.d.ts +14 -0
  94. package/dist/types/components/elements/search-box/search-box.stories.d.ts +3 -2
  95. package/dist/types/components/elements/search-starred/search-starred.d.ts +10 -1
  96. package/dist/types/components/elements/search-starred/search-starred.stories.d.ts +2 -1
  97. package/dist/types/components/elements/search-tabs/search-tabs.d.ts +2 -0
  98. package/dist/types/components/elements/template-card/template-card.d.ts +1 -1
  99. package/dist/types/components.d.ts +13 -2
  100. package/dist/verdocs-web-sdk/p-153879ad.entry.js +1 -0
  101. package/dist/verdocs-web-sdk/{p-299c2e14.system.entry.js → p-1d1bc463.system.entry.js} +1 -1
  102. package/dist/verdocs-web-sdk/p-29cb7cbc.entry.js +1 -0
  103. package/dist/verdocs-web-sdk/{p-f6bd3c28.entry.js → p-2cec77cf.entry.js} +1 -1
  104. package/dist/verdocs-web-sdk/{p-79141dc5.entry.js → p-32a5788a.entry.js} +1 -1
  105. package/dist/verdocs-web-sdk/{p-ad0daf3f.system.js → p-33f73371.system.js} +1 -1
  106. package/dist/verdocs-web-sdk/p-349248f0.system.entry.js +1 -0
  107. package/dist/verdocs-web-sdk/{p-4ffe65f0.entry.js → p-36082c90.entry.js} +1 -1
  108. package/dist/verdocs-web-sdk/p-3a032151.entry.js +1 -0
  109. package/dist/verdocs-web-sdk/p-3cc8281f.system.entry.js +1 -0
  110. package/dist/verdocs-web-sdk/p-440d8a73.system.entry.js +1 -0
  111. package/dist/verdocs-web-sdk/{p-d498562e.system.entry.js → p-4d4e090f.system.entry.js} +1 -1
  112. package/dist/verdocs-web-sdk/p-55660c24.entry.js +1 -0
  113. package/dist/verdocs-web-sdk/p-63107dd5.system.entry.js +1 -0
  114. package/dist/verdocs-web-sdk/p-6b569aa1.system.entry.js +1 -0
  115. package/dist/verdocs-web-sdk/{p-4b97efc0.system.entry.js → p-6e033b90.system.entry.js} +1 -1
  116. package/dist/verdocs-web-sdk/p-6ee008ff.entry.js +1 -0
  117. package/dist/verdocs-web-sdk/p-7ab216be.system.entry.js +1 -0
  118. package/dist/verdocs-web-sdk/{p-ea92818e.system.entry.js → p-7d10b067.system.entry.js} +2 -2
  119. package/dist/verdocs-web-sdk/p-89be87e5.js +1 -0
  120. package/dist/verdocs-web-sdk/p-92e7863c.system.entry.js +1 -0
  121. package/dist/verdocs-web-sdk/p-99ebfee7.system.entry.js +1 -0
  122. package/dist/verdocs-web-sdk/p-9af63b8a.system.js +1 -0
  123. package/dist/verdocs-web-sdk/p-9da35744.entry.js +1 -0
  124. package/dist/verdocs-web-sdk/p-b3d5601a.entry.js +1 -0
  125. package/dist/verdocs-web-sdk/p-b466e003.entry.js +1 -0
  126. package/dist/verdocs-web-sdk/p-bb99a203.entry.js +1 -0
  127. package/dist/verdocs-web-sdk/p-cbc784a6.system.js +1 -0
  128. package/dist/verdocs-web-sdk/{p-ab5a12f2.js → p-cf030985.js} +1 -1
  129. package/dist/verdocs-web-sdk/{p-f8532ba9.entry.js → p-d73f486f.entry.js} +2 -2
  130. package/dist/verdocs-web-sdk/p-dea09611.entry.js +1 -0
  131. package/dist/verdocs-web-sdk/p-e34538bd.system.entry.js +1 -0
  132. package/dist/verdocs-web-sdk/p-e59eda0c.system.entry.js +1 -0
  133. package/dist/verdocs-web-sdk/verdocs-web-sdk.css +1 -0
  134. package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
  135. package/dist/verdocs-web-sdk/verdocs-web-sdk.js +1 -1
  136. package/package.json +4 -2
  137. package/dist/esm-es5/index-69a4b693.js +0 -1
  138. package/dist/verdocs-web-sdk/p-0851fc9a.entry.js +0 -1
  139. package/dist/verdocs-web-sdk/p-09a2b37a.system.entry.js +0 -1
  140. package/dist/verdocs-web-sdk/p-0c7f99e4.system.entry.js +0 -1
  141. package/dist/verdocs-web-sdk/p-10b8a992.system.entry.js +0 -1
  142. package/dist/verdocs-web-sdk/p-16920169.js +0 -1
  143. package/dist/verdocs-web-sdk/p-1d99fd7e.entry.js +0 -1
  144. package/dist/verdocs-web-sdk/p-20def3b4.system.entry.js +0 -1
  145. package/dist/verdocs-web-sdk/p-35c52a07.system.entry.js +0 -1
  146. package/dist/verdocs-web-sdk/p-58183d59.system.entry.js +0 -1
  147. package/dist/verdocs-web-sdk/p-64b6c2b3.entry.js +0 -1
  148. package/dist/verdocs-web-sdk/p-7427f970.entry.js +0 -1
  149. package/dist/verdocs-web-sdk/p-7b071b76.system.js +0 -1
  150. package/dist/verdocs-web-sdk/p-83fe27d7.entry.js +0 -1
  151. package/dist/verdocs-web-sdk/p-918d1153.system.js +0 -1
  152. package/dist/verdocs-web-sdk/p-943c181c.entry.js +0 -1
  153. package/dist/verdocs-web-sdk/p-a10f4a2a.system.entry.js +0 -1
  154. package/dist/verdocs-web-sdk/p-a415baa5.entry.js +0 -1
  155. package/dist/verdocs-web-sdk/p-acbc9fd7.system.entry.js +0 -1
  156. package/dist/verdocs-web-sdk/p-ad52e615.entry.js +0 -1
  157. package/dist/verdocs-web-sdk/p-af8bde91.entry.js +0 -1
  158. package/dist/verdocs-web-sdk/p-bab548fb.entry.js +0 -1
  159. package/dist/verdocs-web-sdk/p-cda6aa04.system.entry.js +0 -1
  160. package/dist/verdocs-web-sdk/p-eaee7c4a.system.entry.js +0 -1
@@ -1,10 +1,10 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-69a4b693.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-183a8995.js';
2
2
 
3
3
  const TemplateIcon = `<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><g><rect fill="none" height="24" width="24"/><g><path d="M19,5v14H5V5H19 M19,3H5C3.9,3,3,3.9,3,5v14c0,1.1,0.9,2,2,2h14c1.1,0,2-0.9,2-2V5C21,3.9,20.1,3,19,3L19,3z"/></g><path d="M14,17H7v-2h7V17z M17,13H7v-2h10V13z M17,9H7V7h10V9z"/></g></svg>`;
4
4
 
5
5
  const DocumentIcon = `<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"/></svg>`;
6
6
 
7
- const searchQuickFunctionsCss = ":host{display:block}.container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:240px;background-color:#1e2031;text-transform:uppercase;padding:10px 10px 20px 10px;font-family:sans-serif;color:#ffffff}.title{font-size:22px;font-weight:700;line-height:30px;margin:1em 0 40px 0}button{width:140px;height:40px;border:none;display:-ms-flexbox;display:flex;color:#ffffff;cursor:pointer;font-size:14px;font-weight:700;line-height:25px;-ms-flex-align:center;align-items:center;margin-bottom:20px;border-radius:5px;text-transform:uppercase;-ms-flex-pack:space-evenly;justify-content:space-evenly;background-color:#50be50}button svg{fill:#ffffff}";
7
+ const searchQuickFunctionsCss = "search-quick-functions{font-family:sans-serif;font-family:var(--verdocs-font)}search-quick-functions .container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:240px;background-color:var(--verdocs-background-dark);text-transform:uppercase;padding:10px 10px 20px 10px;font-family:sans-serif;color:#ffffff}search-quick-functions .title{font-size:22px;font-weight:700;line-height:30px;margin:1em 0 40px 0}search-quick-functions button{width:140px;height:40px;border:none;display:-ms-flexbox;display:flex;color:#ffffff;cursor:pointer;font-size:14px;font-weight:700;line-height:25px;-ms-flex-align:center;align-items:center;margin-bottom:20px;border-radius:5px;text-transform:uppercase;-ms-flex-pack:space-evenly;justify-content:space-evenly;background-color:#50be50}search-quick-functions button svg{fill:#ffffff}";
8
8
 
9
9
  let SearchQuickFunctions = class {
10
10
  constructor(hostRef) {
@@ -1,9 +1,9 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-69a4b693.js';
2
- import { g as getSearchHistory } from './Content-68a13fb0.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-183a8995.js';
2
+ import { g as getSearchHistory } from './Content-386637c8.js';
3
3
 
4
4
  const SearchIcon = `<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>`;
5
5
 
6
- const searchRecentCss = ":host{display:block}.container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:240px;background-color:#1e2031;text-transform:uppercase;padding:10px 10px 20px 10px;font-family:sans-serif;color:#ffffff}.title{font-size:22px;font-weight:700;line-height:30px}.items{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:start;align-items:flex-start;margin-top:20px}.button{background:transparent;border:none;height:20px;font-size:16px;font-family:sans-serif;color:#ffffff;line-height:26px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.button:hover{cursor:pointer}.button:not(:last-child){margin-bottom:36px}.button svg{fill:#707ae5;width:28px;height:28px;margin-right:26px}.pill{font-size:14px;display:-ms-inline-flexbox;display:inline-flex;padding:3px 8px;border-radius:6px;margin-right:8px;background-color:#999999;color:#333}.empty{text-transform:none;line-height:22px;color:#ccc}";
6
+ const searchRecentCss = "search-recent{font-family:sans-serif;font-family:var(--verdocs-font)}search-recent .container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:240px;background-color:var(--verdocs-background-dark);text-transform:uppercase;padding:10px 10px 20px 10px;font-family:sans-serif;color:#ffffff}search-recent .title{font-size:22px;font-weight:700;line-height:30px}search-recent .items{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:start;align-items:flex-start;margin-top:20px}search-recent .button{background:transparent;border:none;height:20px;font-size:16px;font-family:sans-serif;color:#ffffff;line-height:26px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}search-recent .button:hover{cursor:pointer}search-recent .button:not(:last-child){margin-bottom:36px}search-recent .button svg{fill:#707ae5;width:28px;height:28px;margin-right:26px}search-recent .pill{font-size:14px;display:-ms-inline-flexbox;display:inline-flex;padding:3px 8px;border-radius:6px;margin-right:8px;background-color:#999999;color:#333}search-recent .empty{text-transform:none;line-height:22px;color:#ccc}";
7
7
 
8
8
  let SearchRecent = class {
9
9
  constructor(hostRef) {
@@ -1,9 +1,9 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-69a4b693.js';
2
- import { g as getSearchHistory } from './Content-68a13fb0.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-183a8995.js';
2
+ import { g as getSearchHistory } from './Content-386637c8.js';
3
3
 
4
4
  const SearchIcon = `<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>`;
5
5
 
6
- const searchSavedCss = ":host{display:block}.container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:240px;background-color:#1e2031;text-transform:uppercase;padding:10px 10px 20px 10px;font-family:sans-serif;color:#ffffff}.title{font-size:22px;font-weight:700;line-height:30px}.items{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:start;align-items:flex-start;margin-top:20px}.button{background:transparent;border:none;height:20px;font-size:16px;font-family:sans-serif;color:#ffffff;line-height:26px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.button:hover{cursor:pointer}.button:not(:last-child){margin-bottom:36px}.button svg{fill:#707ae5;width:28px;height:28px;margin-right:26px}.empty{text-transform:none;line-height:22px;color:#ccc}";
6
+ const searchSavedCss = "search-saved{font-family:sans-serif;font-family:var(--verdocs-font)}search-saved .container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:240px;background-color:var(--verdocs-background-dark);text-transform:uppercase;padding:10px 10px 20px 10px;font-family:sans-serif;color:#ffffff}search-saved .title{font-size:22px;font-weight:700;line-height:30px}search-saved .items{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:start;align-items:flex-start;margin-top:20px}search-saved .button{background:transparent;border:none;height:20px;font-size:16px;font-family:sans-serif;color:#ffffff;line-height:26px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}search-saved .button:hover{cursor:pointer}search-saved .button:not(:last-child){margin-bottom:36px}search-saved .button svg{fill:#707ae5;width:28px;height:28px;margin-right:26px}search-saved .empty{text-transform:none;line-height:22px;color:#ccc}";
7
7
 
8
8
  let SearchSaved = class {
9
9
  constructor(hostRef) {
@@ -1,15 +1,16 @@
1
- import { r as registerInstance, h, H as Host } from './index-69a4b693.js';
1
+ import { r as registerInstance, c as createEvent, h, H as Host } from './index-183a8995.js';
2
2
 
3
3
  const DocumentIcon = `<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"/></svg>`;
4
4
 
5
- const searchStarredCss = ":host{display:block}.container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;width:240px;background-color:#1e2031;text-transform:uppercase;padding:10px 10px 20px 10px;font-family:sans-serif;color:#ffffff}.title{font-size:22px;font-weight:700;line-height:30px}.items{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;margin-top:20px}.item{border:none;display:-ms-flexbox;display:flex;text-align:left;margin-bottom:20px;-ms-flex-direction:row;flex-direction:row;background:transparent}.item:hover{cursor:pointer}.icon{-ms-flex:0;flex:0;margin-right:14px}.icon svg{fill:#707ae5;width:22px;height:22px}.details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:start;justify-content:flex-start}.item-title{font-size:16px;font-family:sans-serif;font-weight:400;color:#ffffff;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.info{font-size:14px;font-family:sans-serif;font-weight:500;line-height:23px;color:#aeb4bf;grid-column:2/10;grid-row:2}.empty{text-transform:none;line-height:22px;color:#ccc}";
5
+ const searchStarredCss = "search-starred{font-family:sans-serif;font-family:var(--verdocs-font)}search-starred .container{display:-ms-flexbox;display:flex;width:240px;color:#ffffff;-ms-flex-direction:column;flex-direction:column;text-transform:uppercase;padding:10px 10px 20px 10px;background-color:var(--verdocs-background-dark)}search-starred .title{font-size:22px;font-weight:700;line-height:30px}search-starred .items{display:-ms-flexbox;display:flex;margin-top:20px;-ms-flex-direction:column;flex-direction:column}search-starred .item{border:none;display:-ms-flexbox;display:flex;text-align:left;margin-bottom:20px;-ms-flex-direction:row;flex-direction:row;background:transparent}search-starred .item:hover{cursor:pointer}search-starred .icon{-ms-flex:0 0 22px;flex:0 0 22px;margin-right:14px}search-starred .icon svg{fill:#707ae5;width:22px;height:22px}search-starred .details{display:-ms-flexbox;display:flex;overflow:hidden;-ms-flex-direction:column;flex-direction:column}search-starred .item-title{font-size:16px;font-weight:400;color:#ffffff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}search-starred .info{font-size:14px;font-weight:500;line-height:23px;color:#aeb4bf}search-starred .empty{text-transform:none;line-height:22px;color:#ccc}";
6
6
 
7
7
  let SearchStarred = class {
8
8
  constructor(hostRef) {
9
9
  registerInstance(this, hostRef);
10
+ this.entrySelected = createEvent(this, "entrySelected", 7);
10
11
  }
11
- handleSelectOption(option) {
12
- console.log('option ', option, ' has been clicked!');
12
+ handleSelectEntry(entry) {
13
+ this.entrySelected.emit(entry);
13
14
  }
14
15
  computePagesText(pages) {
15
16
  if (pages < 2) {
@@ -33,7 +34,7 @@ let SearchStarred = class {
33
34
  render() {
34
35
  var _a, _b;
35
36
  return (h(Host, null, h("div", { class: "container" }, h("p", { class: "title" }, "My Starred Items"), h("div", { class: "items" }, (_a = this.options) === null || _a === void 0 ? void 0 :
36
- _a.map(option => (h("button", { class: "item", onClick: () => this.handleSelectOption(option) }, h("div", { class: "icon", innerHTML: DocumentIcon }), h("div", { class: "details" }, h("span", { class: "item-title" }, option.params.q), h("span", { class: "info" }, option.pages ? `${this.computePagesText(option.pages)} ` : '', option.recipients ? this.computeRecipientsText(option.recipients) : ''))))), (((_b = this.options) === null || _b === void 0 ? void 0 : _b.length) || []) < 1 && h("div", { class: "empty" }, "You do not have any starred items.")))));
37
+ _a.map(option => (h("button", { class: "item", onClick: () => this.handleSelectEntry(option) }, h("div", { class: "icon", innerHTML: DocumentIcon }), h("div", { class: "details" }, h("div", { class: "item-title" }, option.params.q), h("div", { class: "info" }, option.pages ? `${this.computePagesText(option.pages)} ` : '', option.recipients ? this.computeRecipientsText(option.recipients) : ''))))), (((_b = this.options) === null || _b === void 0 ? void 0 : _b.length) || []) < 1 && h("div", { class: "empty" }, "You do not have any starred items.")))));
37
38
  }
38
39
  };
39
40
  SearchStarred.style = searchStarredCss;
@@ -1,10 +1,11 @@
1
- import { r as registerInstance, h, H as Host } from './index-69a4b693.js';
1
+ import { r as registerInstance, h, H as Host } from './index-183a8995.js';
2
2
 
3
3
  const searchTabsCss = ":host{display:block}";
4
4
 
5
5
  let SearchTabs = class {
6
6
  constructor(hostRef) {
7
7
  registerInstance(this, hostRef);
8
+ this.selected = 'all';
8
9
  }
9
10
  render() {
10
11
  return (h(Host, null, h("slot", null)));
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, h } from './index-69a4b693.js';
1
+ import { r as registerInstance, h } from './index-183a8995.js';
2
2
 
3
- const tagsIndicatorCss = ".container{width:270px;height:35px;background-color:#33364b;font-family:sans-serif;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start}.tags{display:-ms-inline-flexbox;display:inline-flex;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-preferred-size:content;flex-basis:content;padding:7px 12px;margin:0 5px;height:28px;background-color:#f4f4f9;text-transform:uppercase;font-size:12px;font-weight:700;color:#33374a;border-radius:5px;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}";
3
+ const tagsIndicatorCss = "tags-indicator{font-family:sans-serif;font-family:var(--verdocs-font)}tags-indicator .container{width:270px;height:35px;background-color:#33364b;font-family:sans-serif;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:start;justify-content:flex-start}tags-indicator .tags{display:-ms-inline-flexbox;display:inline-flex;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-preferred-size:content;flex-basis:content;padding:7px 12px;margin:0 5px;height:28px;background-color:#f4f4f9;text-transform:uppercase;font-size:12px;font-weight:700;color:#33374a;border-radius:5px;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}";
4
4
 
5
5
  let TagsIndicator = class {
6
6
  constructor(hostRef) {
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, a as getAssetPath } from './index-69a4b693.js';
1
+ import { r as registerInstance, h, a as getAssetPath } from './index-183a8995.js';
2
2
 
3
3
  const EmailIcon = `<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6zm-2 0l-8 5-8-5h16zm0 12H4V8l8 5 8-5v10z"/></svg>`;
4
4
 
@@ -8,7 +8,7 @@ const PagesIcon = `<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox
8
8
 
9
9
  const StarIcon = `<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"/></svg>`;
10
10
 
11
- const templateCardCss = ".container{height:640px;width:645px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;background-color:#ffffff;-webkit-box-shadow:2px 2px 5px rgba(51, 54, 75, 0.05);box-shadow:2px 2px 5px rgba(51, 54, 75, 0.05);padding:52px 50px 20px 50px}.template-img{width:545px;height:315px;background-color:salmon;margin-bottom:22px}.template-name{font-size:28px;font-family:sans-serif;font-weight:700;margin-bottom:13px}.template-org-bname{font-size:24px;font-family:sans-serif;font-weight:700;margin-bottom:12px}.template-org-name{margin-bottom:34px}.template-org-name label{font-size:24px;font-family:sans-serif;font-weight:700;color:#666666}hr{width:100%;margin-bottom:17px;color:#aeb4bf}.template-controls{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:justify;justify-content:space-between;text-align:center;font-size:21px}.template-controls span:nth-child(-n+3){border-right:1px solid #adb6bd}.template-controls svg{fill:#adb6bd;height:30px;width:30px;margin-bottom:-8px;margin-right:18px}.additional-controls svg{margin-right:0}.additional-controls{-ms-flex:1;flex:1}.pages,.star-counter,.counter{-ms-flex:2;flex:2}";
11
+ const templateCardCss = "template-card{font-family:sans-serif;font-family:var(--verdocs-font)}template-card .container{height:640px;width:645px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;background-color:#ffffff;-webkit-box-shadow:2px 2px 5px rgba(51, 54, 75, 0.05);box-shadow:2px 2px 5px rgba(51, 54, 75, 0.05);padding:52px 50px 20px 50px}template-card .template-img{width:545px;height:315px;background-color:salmon;margin-bottom:22px}template-card .template-name{font-size:28px;font-family:sans-serif;font-weight:700;margin-bottom:13px}template-card .template-org-bname{font-size:24px;font-family:sans-serif;font-weight:700;margin-bottom:12px}template-card .template-org-name{margin-bottom:34px}template-card .template-org-name label{font-size:24px;font-family:sans-serif;font-weight:700;color:#666666}template-card hr{width:100%;margin-bottom:17px;color:#aeb4bf}template-card .template-controls{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:justify;justify-content:space-between;text-align:center;font-size:21px}template-card .template-controls span:nth-child(-n+3){border-right:1px solid #adb6bd}template-card .template-controls svg{fill:#adb6bd;height:30px;width:30px;margin-bottom:-8px;margin-right:18px}template-card .additional-controls svg{margin-right:0}template-card .additional-controls{-ms-flex:1;flex:1}template-card .pages,template-card .star-counter,template-card .counter{-ms-flex:2;flex:2}";
12
12
 
13
13
  let TemplateCard = class {
14
14
  constructor(hostRef) {
@@ -1,6 +1,6 @@
1
- import { r as registerInstance, h } from './index-69a4b693.js';
1
+ import { r as registerInstance, h } from './index-183a8995.js';
2
2
 
3
- const toggleIconButtonsCss = ".container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;background-color:#f2f5fa}.label{font-size:24px;font-weight:700;color:#33364b;-ms-flex-item-align:center;align-self:center;margin-right:27px;font-family:sans-serif}.buttons{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.buttons button{width:60px;height:60px;border:2px solid #654dcb;border-radius:5px;cursor:pointer}.buttons button:not(:last-child){margin-right:11px}.buttons svg{width:30px;height:30px}.buttons button:hover{background-color:#654dcb;-webkit-transition:0.25s;transition:0.25s}.buttons button:hover svg{fill:#f2f5fa;-webkit-transition:0.25s;transition:0.25s}.selected{background-color:#707ae5;-webkit-transition:0.25s;transition:0.25s}.selected svg{fill:#ffffff;-webkit-transition:0.25s;transition:0.25s}";
3
+ const toggleIconButtonsCss = "toggle-icon-buttons{font-family:sans-serif;font-family:var(--verdocs-font)}toggle-icon-buttons .container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;background-color:#f2f5fa}toggle-icon-buttons .label{font-size:24px;font-weight:700;color:#33364b;-ms-flex-item-align:center;align-self:center;margin-right:27px;font-family:sans-serif}toggle-icon-buttons .buttons{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap}toggle-icon-buttons .buttons button{width:60px;height:60px;border:2px solid #654dcb;border-radius:5px;cursor:pointer}toggle-icon-buttons .buttons button:not(:last-child){margin-right:11px}toggle-icon-buttons .buttons svg{width:30px;height:30px}toggle-icon-buttons .buttons button:hover{background-color:#654dcb;-webkit-transition:0.25s;transition:0.25s}toggle-icon-buttons .buttons button:hover svg{fill:#f2f5fa;-webkit-transition:0.25s;transition:0.25s}toggle-icon-buttons .selected{background-color:#707ae5;-webkit-transition:0.25s;transition:0.25s}toggle-icon-buttons .selected svg{fill:#ffffff;-webkit-transition:0.25s;transition:0.25s}";
4
4
 
5
5
  let ToggleIconButtons = class {
6
6
  constructor(hostRef) {
@@ -1,4 +1,4 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-69a4b693.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-183a8995.js';
2
2
 
3
3
  /*
4
4
  Stencil Client Patch Browser v2.9.0 | MIT Licensed | https://stenciljs.com
@@ -13,5 +13,5 @@ const patchBrowser = () => {
13
13
  };
14
14
 
15
15
  patchBrowser().then(options => {
16
- return bootstrapLazy([["document-status-indicator",[[1,"document-status-indicator",{"status":[1],"theme":[1]}]]],["dropdown-menu",[[1,"dropdown-menu",{"options":[16],"open":[4],"tall":[4],"isOpen":[32]}]]],["org-popup",[[1,"org-popup",{"organization":[8],"theme":[1]}]]],["pdf-viewer",[[1,"pdf-viewer",{"rotation":[2],"src":[1]}]]],["search-box",[[1,"search-box"]]],["search-embed",[[1,"search-embed"]]],["search-quick-functions",[[1,"search-quick-functions"]]],["search-recent",[[1,"search-recent",{"limit":[2],"recent":[32]}]]],["search-saved",[[1,"search-saved",{"limit":[2],"saved":[32]}]]],["search-starred",[[1,"search-starred",{"options":[8]}]]],["search-tabs",[[1,"search-tabs"]]],["tags-indicator",[[1,"tags-indicator",{"tags":[16],"theme":[1]}]]],["template-card",[[1,"template-card",{"template":[8],"theme":[1]}]]],["toggle-icon-buttons",[[1,"toggle-icon-buttons",{"options":[16],"theme":[1]},[[6,"click","handleClick"]]]]]], options);
16
+ return bootstrapLazy([["document-status-indicator",[[0,"document-status-indicator",{"status":[1],"theme":[1]}]]],["dropdown-menu",[[0,"dropdown-menu",{"options":[16],"open":[4],"tall":[4],"isOpen":[32]}]]],["org-popup",[[0,"org-popup",{"organization":[8],"theme":[1]}]]],["pdf-viewer",[[0,"pdf-viewer",{"rotation":[2],"src":[1]}]]],["search-box",[[0,"search-box",{"type":[1],"q":[32]}]]],["search-embed",[[1,"search-embed"]]],["search-quick-functions",[[0,"search-quick-functions"]]],["search-recent",[[0,"search-recent",{"limit":[2],"recent":[32]}]]],["search-saved",[[0,"search-saved",{"limit":[2],"saved":[32]}]]],["search-starred",[[0,"search-starred",{"options":[8]}]]],["search-tabs",[[4,"search-tabs",{"selected":[32]}]]],["tags-indicator",[[0,"tags-indicator",{"tags":[16],"theme":[1]}]]],["template-card",[[0,"template-card",{"template":[8],"theme":[1]}]]],["toggle-icon-buttons",[[0,"toggle-icon-buttons",{"options":[16],"theme":[1]},[[6,"click","handleClick"]]]]]], options);
17
17
  });
@@ -1 +1 @@
1
- var bind=function e(r,t){return function e(){var n=new Array(arguments.length);for(var i=0;i<n.length;i++){n[i]=arguments[i]}return r.apply(t,n)}};var toString=Object.prototype.toString;function isArray(e){return toString.call(e)==="[object Array]"}function isUndefined(e){return typeof e==="undefined"}function isBuffer(e){return e!==null&&!isUndefined(e)&&e.constructor!==null&&!isUndefined(e.constructor)&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}function isArrayBuffer(e){return toString.call(e)==="[object ArrayBuffer]"}function isFormData(e){return typeof FormData!=="undefined"&&e instanceof FormData}function isArrayBufferView(e){var r;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){r=ArrayBuffer.isView(e)}else{r=e&&e.buffer&&e.buffer instanceof ArrayBuffer}return r}function isString(e){return typeof e==="string"}function isNumber(e){return typeof e==="number"}function isObject(e){return e!==null&&typeof e==="object"}function isPlainObject(e){if(toString.call(e)!=="[object Object]"){return false}var r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}function isDate(e){return toString.call(e)==="[object Date]"}function isFile(e){return toString.call(e)==="[object File]"}function isBlob(e){return toString.call(e)==="[object Blob]"}function isFunction(e){return toString.call(e)==="[object Function]"}function isStream(e){return isObject(e)&&isFunction(e.pipe)}function isURLSearchParams(e){return typeof URLSearchParams!=="undefined"&&e instanceof URLSearchParams}function trim(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){if(typeof navigator!=="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")){return false}return typeof window!=="undefined"&&typeof document!=="undefined"}function forEach(e,r){if(e===null||typeof e==="undefined"){return}if(typeof e!=="object"){e=[e]}if(isArray(e)){for(var t=0,n=e.length;t<n;t++){r.call(null,e[t],t,e)}}else{for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i)){r.call(null,e[i],i,e)}}}}function merge(){var e={};function r(r,t){if(isPlainObject(e[t])&&isPlainObject(r)){e[t]=merge(e[t],r)}else if(isPlainObject(r)){e[t]=merge({},r)}else if(isArray(r)){e[t]=r.slice()}else{e[t]=r}}for(var t=0,n=arguments.length;t<n;t++){forEach(arguments[t],r)}return e}function extend(e,r,t){forEach(r,(function r(n,i){if(t&&typeof n==="function"){e[i]=bind(n,t)}else{e[i]=n}}));return e}function stripBOM(e){if(e.charCodeAt(0)===65279){e=e.slice(1)}return e}var utils={isArray:isArray,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isObject:isObject,isPlainObject:isPlainObject,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isFunction:isFunction,isStream:isStream,isURLSearchParams:isURLSearchParams,isStandardBrowserEnv:isStandardBrowserEnv,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM};function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var buildURL=function e(r,t,n){if(!t){return r}var i;if(n){i=n(t)}else if(utils.isURLSearchParams(t)){i=t.toString()}else{var a=[];utils.forEach(t,(function e(r,t){if(r===null||typeof r==="undefined"){return}if(utils.isArray(r)){t=t+"[]"}else{r=[r]}utils.forEach(r,(function e(r){if(utils.isDate(r)){r=r.toISOString()}else if(utils.isObject(r)){r=JSON.stringify(r)}a.push(encode(t)+"="+encode(r))}))}));i=a.join("&")}if(i){var s=r.indexOf("#");if(s!==-1){r=r.slice(0,s)}r+=(r.indexOf("?")===-1?"?":"&")+i}return r};function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function e(r,t,n){this.handlers.push({fulfilled:r,rejected:t,synchronous:n?n.synchronous:false,runWhen:n?n.runWhen:null});return this.handlers.length-1};InterceptorManager.prototype.eject=function e(r){if(this.handlers[r]){this.handlers[r]=null}};InterceptorManager.prototype.forEach=function e(r){utils.forEach(this.handlers,(function e(t){if(t!==null){r(t)}}))};var InterceptorManager_1=InterceptorManager;var normalizeHeaderName=function e(r,t){utils.forEach(r,(function e(n,i){if(i!==t&&i.toUpperCase()===t.toUpperCase()){r[t]=n;delete r[i]}}))};var enhanceError=function e(r,t,n,i,a){r.config=t;if(n){r.code=n}r.request=i;r.response=a;r.isAxiosError=true;r.toJSON=function e(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}};return r};var createError=function e(r,t,n,i,a){var s=new Error(r);return enhanceError(s,t,n,i,a)};var settle=function e(r,t,n){var i=n.config.validateStatus;if(!n.status||!i||i(n.status)){r(n)}else{t(createError("Request failed with status code "+n.status,n.config,null,n.request,n))}};var cookies=utils.isStandardBrowserEnv()?function e(){return{write:function e(r,t,n,i,a,s){var o=[];o.push(r+"="+encodeURIComponent(t));if(utils.isNumber(n)){o.push("expires="+new Date(n).toGMTString())}if(utils.isString(i)){o.push("path="+i)}if(utils.isString(a)){o.push("domain="+a)}if(s===true){o.push("secure")}document.cookie=o.join("; ")},read:function e(r){var t=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function e(r){this.write(r,"",Date.now()-864e5)}}}():function e(){return{write:function e(){},read:function e(){return null},remove:function e(){}}}();var isAbsoluteURL=function e(r){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(r)};var combineURLs=function e(r,t){return t?r.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):r};var buildFullPath=function e(r,t){if(r&&!isAbsoluteURL(t)){return combineURLs(r,t)}return t};var ignoreDuplicateOf=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];var parseHeaders=function e(r){var t={};var n;var i;var a;if(!r){return t}utils.forEach(r.split("\n"),(function e(r){a=r.indexOf(":");n=utils.trim(r.substr(0,a)).toLowerCase();i=utils.trim(r.substr(a+1));if(n){if(t[n]&&ignoreDuplicateOf.indexOf(n)>=0){return}if(n==="set-cookie"){t[n]=(t[n]?t[n]:[]).concat([i])}else{t[n]=t[n]?t[n]+", "+i:i}}}));return t};var isURLSameOrigin=utils.isStandardBrowserEnv()?function e(){var r=/(msie|trident)/i.test(navigator.userAgent);var t=document.createElement("a");var n;function i(e){var n=e;if(r){t.setAttribute("href",n);n=t.href}t.setAttribute("href",n);return{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}n=i(window.location.href);return function e(r){var t=utils.isString(r)?i(r):r;return t.protocol===n.protocol&&t.host===n.host}}():function e(){return function e(){return true}}();var xhr=function e(r){return new Promise((function e(t,n){var i=r.data;var a=r.headers;var s=r.responseType;if(utils.isFormData(i)){delete a["Content-Type"]}var o=new XMLHttpRequest;if(r.auth){var u=r.auth.username||"";var c=r.auth.password?unescape(encodeURIComponent(r.auth.password)):"";a.Authorization="Basic "+btoa(u+":"+c)}var f=buildFullPath(r.baseURL,r.url);o.open(r.method.toUpperCase(),buildURL(f,r.params,r.paramsSerializer),true);o.timeout=r.timeout;function l(){if(!o){return}var e="getAllResponseHeaders"in o?parseHeaders(o.getAllResponseHeaders()):null;var i=!s||s==="text"||s==="json"?o.responseText:o.response;var a={data:i,status:o.status,statusText:o.statusText,headers:e,config:r,request:o};settle(t,n,a);o=null}if("onloadend"in o){o.onloadend=l}else{o.onreadystatechange=function e(){if(!o||o.readyState!==4){return}if(o.status===0&&!(o.responseURL&&o.responseURL.indexOf("file:")===0)){return}setTimeout(l)}}o.onabort=function e(){if(!o){return}n(createError("Request aborted",r,"ECONNABORTED",o));o=null};o.onerror=function e(){n(createError("Network Error",r,null,o));o=null};o.ontimeout=function e(){var t="timeout of "+r.timeout+"ms exceeded";if(r.timeoutErrorMessage){t=r.timeoutErrorMessage}n(createError(t,r,r.transitional&&r.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",o));o=null};if(utils.isStandardBrowserEnv()){var d=(r.withCredentials||isURLSameOrigin(f))&&r.xsrfCookieName?cookies.read(r.xsrfCookieName):undefined;if(d){a[r.xsrfHeaderName]=d}}if("setRequestHeader"in o){utils.forEach(a,(function e(r,t){if(typeof i==="undefined"&&t.toLowerCase()==="content-type"){delete a[t]}else{o.setRequestHeader(t,r)}}))}if(!utils.isUndefined(r.withCredentials)){o.withCredentials=!!r.withCredentials}if(s&&s!=="json"){o.responseType=r.responseType}if(typeof r.onDownloadProgress==="function"){o.addEventListener("progress",r.onDownloadProgress)}if(typeof r.onUploadProgress==="function"&&o.upload){o.upload.addEventListener("progress",r.onUploadProgress)}if(r.cancelToken){r.cancelToken.promise.then((function e(r){if(!o){return}o.abort();n(r);o=null}))}if(!i){i=null}o.send(i)}))};var DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,r){if(!utils.isUndefined(e)&&utils.isUndefined(e["Content-Type"])){e["Content-Type"]=r}}function getDefaultAdapter(){var e;if(typeof XMLHttpRequest!=="undefined"){e=xhr}else if(typeof process!=="undefined"&&Object.prototype.toString.call(process)==="[object process]"){e=xhr}return e}function stringifySafely(e,r,t){if(utils.isString(e)){try{(r||JSON.parse)(e);return utils.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(t||JSON.stringify)(e)}var defaults={transitional:{silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false},adapter:getDefaultAdapter(),transformRequest:[function e(r,t){normalizeHeaderName(t,"Accept");normalizeHeaderName(t,"Content-Type");if(utils.isFormData(r)||utils.isArrayBuffer(r)||utils.isBuffer(r)||utils.isStream(r)||utils.isFile(r)||utils.isBlob(r)){return r}if(utils.isArrayBufferView(r)){return r.buffer}if(utils.isURLSearchParams(r)){setContentTypeIfUnset(t,"application/x-www-form-urlencoded;charset=utf-8");return r.toString()}if(utils.isObject(r)||t&&t["Content-Type"]==="application/json"){setContentTypeIfUnset(t,"application/json");return stringifySafely(r)}return r}],transformResponse:[function e(r){var t=this.transitional;var n=t&&t.silentJSONParsing;var i=t&&t.forcedJSONParsing;var a=!n&&this.responseType==="json";if(a||i&&utils.isString(r)&&r.length){try{return JSON.parse(r)}catch(e){if(a){if(e.name==="SyntaxError"){throw enhanceError(e,this,"E_JSON_PARSE")}throw e}}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function e(r){return r>=200&&r<300}};defaults.headers={common:{Accept:"application/json, text/plain, */*"}};utils.forEach(["delete","get","head"],(function e(r){defaults.headers[r]={}}));utils.forEach(["post","put","patch"],(function e(r){defaults.headers[r]=utils.merge(DEFAULT_CONTENT_TYPE)}));var defaults_1=defaults;var transformData=function e(r,t,n){var i=this||defaults_1;utils.forEach(n,(function e(n){r=n.call(i,r,t)}));return r};var isCancel=function e(r){return!!(r&&r.__CANCEL__)};function throwIfCancellationRequested(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}}var dispatchRequest=function e(r){throwIfCancellationRequested(r);r.headers=r.headers||{};r.data=transformData.call(r,r.data,r.headers,r.transformRequest);r.headers=utils.merge(r.headers.common||{},r.headers[r.method]||{},r.headers);utils.forEach(["delete","get","head","post","put","patch","common"],(function e(t){delete r.headers[t]}));var t=r.adapter||defaults_1.adapter;return t(r).then((function e(t){throwIfCancellationRequested(r);t.data=transformData.call(r,t.data,t.headers,r.transformResponse);return t}),(function e(t){if(!isCancel(t)){throwIfCancellationRequested(r);if(t&&t.response){t.response.data=transformData.call(r,t.response.data,t.response.headers,r.transformResponse)}}return Promise.reject(t)}))};var mergeConfig=function e(r,t){t=t||{};var n={};var i=["url","method","data"];var a=["headers","auth","proxy","params"];var s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"];var o=["validateStatus"];function u(e,r){if(utils.isPlainObject(e)&&utils.isPlainObject(r)){return utils.merge(e,r)}else if(utils.isPlainObject(r)){return utils.merge({},r)}else if(utils.isArray(r)){return r.slice()}return r}function c(e){if(!utils.isUndefined(t[e])){n[e]=u(r[e],t[e])}else if(!utils.isUndefined(r[e])){n[e]=u(undefined,r[e])}}utils.forEach(i,(function e(r){if(!utils.isUndefined(t[r])){n[r]=u(undefined,t[r])}}));utils.forEach(a,c);utils.forEach(s,(function e(i){if(!utils.isUndefined(t[i])){n[i]=u(undefined,t[i])}else if(!utils.isUndefined(r[i])){n[i]=u(undefined,r[i])}}));utils.forEach(o,(function e(i){if(i in t){n[i]=u(r[i],t[i])}else if(i in r){n[i]=u(undefined,r[i])}}));var f=i.concat(a).concat(s).concat(o);var l=Object.keys(r).concat(Object.keys(t)).filter((function e(r){return f.indexOf(r)===-1}));utils.forEach(l,c);return n};var _from="axios@^0.21.1";var _id="axios@0.21.4";var _inBundle=false;var _integrity="sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==";var _location="/axios";var _phantomChildren={};var _requested={type:"range",registry:true,raw:"axios@^0.21.1",name:"axios",escapedName:"axios",rawSpec:"^0.21.1",saveSpec:null,fetchSpec:"^0.21.1"};var _requiredBy=["/@verdocs/js-sdk"];var _resolved="https://registry.npmjs.org/axios/-/axios-0.21.4.tgz";var _shasum="c67b90dc0568e5c1cf2b0b858c43ba28e2eda575";var _spec="axios@^0.21.1";var _where="/Users/chad/projects/verdocs/web-sdk/verdocs-web-sdk/node_modules/@verdocs/js-sdk";var author={name:"Matt Zabriskie"};var browser={"./lib/adapters/http.js":"./lib/adapters/xhr.js"};var bugs={url:"https://github.com/axios/axios/issues"};var bundleDependencies=false;var bundlesize=[{path:"./dist/axios.min.js",threshold:"5kB"}];var dependencies={"follow-redirects":"^1.14.0"};var deprecated=false;var description="Promise based HTTP client for the browser and node.js";var devDependencies={coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"};var homepage="https://axios-http.com";var jsdelivr="dist/axios.min.js";var keywords=["xhr","http","ajax","promise","node"];var license="MIT";var main="index.js";var name="axios";var repository={type:"git",url:"git+https://github.com/axios/axios.git"};var scripts={build:"NODE_ENV=production grunt build",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",examples:"node ./examples/server.js",fix:"eslint --fix lib/**/*.js",postversion:"git push && git push --tags",preversion:"npm test",start:"node ./sandbox/server.js",test:"grunt test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"};var typings="./index.d.ts";var unpkg="dist/axios.min.js";var version="0.21.4";var pkg={_from:_from,_id:_id,_inBundle:_inBundle,_integrity:_integrity,_location:_location,_phantomChildren:_phantomChildren,_requested:_requested,_requiredBy:_requiredBy,_resolved:_resolved,_shasum:_shasum,_spec:_spec,_where:_where,author:author,browser:browser,bugs:bugs,bundleDependencies:bundleDependencies,bundlesize:bundlesize,dependencies:dependencies,deprecated:deprecated,description:description,devDependencies:devDependencies,homepage:homepage,jsdelivr:jsdelivr,keywords:keywords,license:license,main:main,name:name,repository:repository,scripts:scripts,typings:typings,unpkg:unpkg,version:version};var validators$1={};["object","boolean","number","function","string","symbol"].forEach((function(e,r){validators$1[e]=function t(n){return typeof n===e||"a"+(r<1?"n ":" ")+e}}));var deprecatedWarnings={};var currentVerArr=pkg.version.split(".");function isOlderVersion(e,r){var t=r?r.split("."):currentVerArr;var n=e.split(".");for(var i=0;i<3;i++){if(t[i]>n[i]){return true}else if(t[i]<n[i]){return false}}return false}validators$1.transitional=function e(r,t,n){var i=t&&isOlderVersion(t);function a(e,r){return"[Axios v"+pkg.version+"] Transitional option '"+e+"'"+r+(n?". "+n:"")}return function(e,n,s){if(r===false){throw new Error(a(n," has been removed in "+t))}if(i&&!deprecatedWarnings[n]){deprecatedWarnings[n]=true;console.warn(a(n," has been deprecated since v"+t+" and will be removed in the near future"))}return r?r(e,n,s):true}};function assertOptions(e,r,t){if(typeof e!=="object"){throw new TypeError("options must be an object")}var n=Object.keys(e);var i=n.length;while(i-- >0){var a=n[i];var s=r[a];if(s){var o=e[a];var u=o===undefined||s(o,a,e);if(u!==true){throw new TypeError("option "+a+" must be "+u)}continue}if(t!==true){throw Error("Unknown option "+a)}}}var validator={isOlderVersion:isOlderVersion,assertOptions:assertOptions,validators:validators$1};var validators=validator.validators;function Axios(e){this.defaults=e;this.interceptors={request:new InterceptorManager_1,response:new InterceptorManager_1}}Axios.prototype.request=function e(r){if(typeof r==="string"){r=arguments[1]||{};r.url=arguments[0]}else{r=r||{}}r=mergeConfig(this.defaults,r);if(r.method){r.method=r.method.toLowerCase()}else if(this.defaults.method){r.method=this.defaults.method.toLowerCase()}else{r.method="get"}var t=r.transitional;if(t!==undefined){validator.assertOptions(t,{silentJSONParsing:validators.transitional(validators.boolean,"1.0.0"),forcedJSONParsing:validators.transitional(validators.boolean,"1.0.0"),clarifyTimeoutError:validators.transitional(validators.boolean,"1.0.0")},false)}var n=[];var i=true;this.interceptors.request.forEach((function e(t){if(typeof t.runWhen==="function"&&t.runWhen(r)===false){return}i=i&&t.synchronous;n.unshift(t.fulfilled,t.rejected)}));var a=[];this.interceptors.response.forEach((function e(r){a.push(r.fulfilled,r.rejected)}));var s;if(!i){var o=[dispatchRequest,undefined];Array.prototype.unshift.apply(o,n);o=o.concat(a);s=Promise.resolve(r);while(o.length){s=s.then(o.shift(),o.shift())}return s}var u=r;while(n.length){var c=n.shift();var f=n.shift();try{u=c(u)}catch(e){f(e);break}}try{s=dispatchRequest(u)}catch(e){return Promise.reject(e)}while(a.length){s=s.then(a.shift(),a.shift())}return s};Axios.prototype.getUri=function e(r){r=mergeConfig(this.defaults,r);return buildURL(r.url,r.params,r.paramsSerializer).replace(/^\?/,"")};utils.forEach(["delete","get","head","options"],(function e(r){Axios.prototype[r]=function(e,t){return this.request(mergeConfig(t||{},{method:r,url:e,data:(t||{}).data}))}}));utils.forEach(["post","put","patch"],(function e(r){Axios.prototype[r]=function(e,t,n){return this.request(mergeConfig(n||{},{method:r,url:e,data:t}))}}));var Axios_1=Axios;function Cancel(e){this.message=e}Cancel.prototype.toString=function e(){return"Cancel"+(this.message?": "+this.message:"")};Cancel.prototype.__CANCEL__=true;var Cancel_1=Cancel;function CancelToken(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}var r;this.promise=new Promise((function e(t){r=t}));var t=this;e((function e(n){if(t.reason){return}t.reason=new Cancel_1(n);r(t.reason)}))}CancelToken.prototype.throwIfRequested=function e(){if(this.reason){throw this.reason}};CancelToken.source=function e(){var r;var t=new CancelToken((function e(t){r=t}));return{token:t,cancel:r}};var CancelToken_1=CancelToken;var spread=function e(r){return function e(t){return r.apply(null,t)}};var isAxiosError=function e(r){return typeof r==="object"&&r.isAxiosError===true};function createInstance(e){var r=new Axios_1(e);var t=bind(Axios_1.prototype.request,r);utils.extend(t,Axios_1.prototype,r);utils.extend(t,r);return t}var axios$1=createInstance(defaults_1);axios$1.Axios=Axios_1;axios$1.create=function e(r){return createInstance(mergeConfig(axios$1.defaults,r))};axios$1.Cancel=Cancel_1;axios$1.CancelToken=CancelToken_1;axios$1.isCancel=isCancel;axios$1.all=function e(r){return Promise.all(r)};axios$1.spread=spread;axios$1.isAxiosError=isAxiosError;var axios_1=axios$1;var _default=axios$1;axios_1.default=_default;var axios=axios_1;var Endpoint=axios.create({baseURL:"https://stage-api.verdocs.com/",timeout:3e3,headers:{"X-Client-ID":"NONE"}});var __awaiter=undefined&&undefined.__awaiter||function(e,r,t,n){function i(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,a){function s(e){try{u(n.next(e))}catch(e){a(e)}}function o(e){try{u(n["throw"](e))}catch(e){a(e)}}function u(e){e.done?t(e.value):i(e.value).then(s,o)}u((n=n.apply(e,r||[])).next())}))};var __generator=undefined&&undefined.__generator||function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,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(r){return u([e,r])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(t)try{if(n=1,i&&(a=s[0]&2?i["return"]:s[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;if(i=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:t.label++;return{value:s[1],done:false};case 5:t.label++;i=s[1];s=[0];continue;case 7:s=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){t.label=s[1];break}if(s[0]===6&&t.label<a[1]){t.label=a[1];a=s;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(s);break}if(a[2])t.ops.pop();t.trys.pop();continue}s=r.call(e,t)}catch(e){s=[6,e];i=0}finally{n=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var getSearchHistory=function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(e){return[2,Endpoint.get("/search/history").then((function(e){return e.data}))]}))}))};export{getSearchHistory as g};
1
+ var bind=function e(r,t){return function e(){var n=new Array(arguments.length);for(var i=0;i<n.length;i++){n[i]=arguments[i]}return r.apply(t,n)}};var toString=Object.prototype.toString;function isArray(e){return toString.call(e)==="[object Array]"}function isUndefined(e){return typeof e==="undefined"}function isBuffer(e){return e!==null&&!isUndefined(e)&&e.constructor!==null&&!isUndefined(e.constructor)&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}function isArrayBuffer(e){return toString.call(e)==="[object ArrayBuffer]"}function isFormData(e){return typeof FormData!=="undefined"&&e instanceof FormData}function isArrayBufferView(e){var r;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView){r=ArrayBuffer.isView(e)}else{r=e&&e.buffer&&e.buffer instanceof ArrayBuffer}return r}function isString(e){return typeof e==="string"}function isNumber(e){return typeof e==="number"}function isObject(e){return e!==null&&typeof e==="object"}function isPlainObject(e){if(toString.call(e)!=="[object Object]"){return false}var r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}function isDate(e){return toString.call(e)==="[object Date]"}function isFile(e){return toString.call(e)==="[object File]"}function isBlob(e){return toString.call(e)==="[object Blob]"}function isFunction(e){return toString.call(e)==="[object Function]"}function isStream(e){return isObject(e)&&isFunction(e.pipe)}function isURLSearchParams(e){return typeof URLSearchParams!=="undefined"&&e instanceof URLSearchParams}function trim(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){if(typeof navigator!=="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")){return false}return typeof window!=="undefined"&&typeof document!=="undefined"}function forEach(e,r){if(e===null||typeof e==="undefined"){return}if(typeof e!=="object"){e=[e]}if(isArray(e)){for(var t=0,n=e.length;t<n;t++){r.call(null,e[t],t,e)}}else{for(var i in e){if(Object.prototype.hasOwnProperty.call(e,i)){r.call(null,e[i],i,e)}}}}function merge(){var e={};function r(r,t){if(isPlainObject(e[t])&&isPlainObject(r)){e[t]=merge(e[t],r)}else if(isPlainObject(r)){e[t]=merge({},r)}else if(isArray(r)){e[t]=r.slice()}else{e[t]=r}}for(var t=0,n=arguments.length;t<n;t++){forEach(arguments[t],r)}return e}function extend(e,r,t){forEach(r,(function r(n,i){if(t&&typeof n==="function"){e[i]=bind(n,t)}else{e[i]=n}}));return e}function stripBOM(e){if(e.charCodeAt(0)===65279){e=e.slice(1)}return e}var utils={isArray:isArray,isArrayBuffer:isArrayBuffer,isBuffer:isBuffer,isFormData:isFormData,isArrayBufferView:isArrayBufferView,isString:isString,isNumber:isNumber,isObject:isObject,isPlainObject:isPlainObject,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isFunction:isFunction,isStream:isStream,isURLSearchParams:isURLSearchParams,isStandardBrowserEnv:isStandardBrowserEnv,forEach:forEach,merge:merge,extend:extend,trim:trim,stripBOM:stripBOM};function encode(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var buildURL=function e(r,t,n){if(!t){return r}var i;if(n){i=n(t)}else if(utils.isURLSearchParams(t)){i=t.toString()}else{var a=[];utils.forEach(t,(function e(r,t){if(r===null||typeof r==="undefined"){return}if(utils.isArray(r)){t=t+"[]"}else{r=[r]}utils.forEach(r,(function e(r){if(utils.isDate(r)){r=r.toISOString()}else if(utils.isObject(r)){r=JSON.stringify(r)}a.push(encode(t)+"="+encode(r))}))}));i=a.join("&")}if(i){var o=r.indexOf("#");if(o!==-1){r=r.slice(0,o)}r+=(r.indexOf("?")===-1?"?":"&")+i}return r};function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function e(r,t,n){this.handlers.push({fulfilled:r,rejected:t,synchronous:n?n.synchronous:false,runWhen:n?n.runWhen:null});return this.handlers.length-1};InterceptorManager.prototype.eject=function e(r){if(this.handlers[r]){this.handlers[r]=null}};InterceptorManager.prototype.forEach=function e(r){utils.forEach(this.handlers,(function e(t){if(t!==null){r(t)}}))};var InterceptorManager_1=InterceptorManager;var normalizeHeaderName=function e(r,t){utils.forEach(r,(function e(n,i){if(i!==t&&i.toUpperCase()===t.toUpperCase()){r[t]=n;delete r[i]}}))};var enhanceError=function e(r,t,n,i,a){r.config=t;if(n){r.code=n}r.request=i;r.response=a;r.isAxiosError=true;r.toJSON=function e(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}};return r};var createError=function e(r,t,n,i,a){var o=new Error(r);return enhanceError(o,t,n,i,a)};var settle=function e(r,t,n){var i=n.config.validateStatus;if(!n.status||!i||i(n.status)){r(n)}else{t(createError("Request failed with status code "+n.status,n.config,null,n.request,n))}};var cookies=utils.isStandardBrowserEnv()?function e(){return{write:function e(r,t,n,i,a,o){var s=[];s.push(r+"="+encodeURIComponent(t));if(utils.isNumber(n)){s.push("expires="+new Date(n).toGMTString())}if(utils.isString(i)){s.push("path="+i)}if(utils.isString(a)){s.push("domain="+a)}if(o===true){s.push("secure")}document.cookie=s.join("; ")},read:function e(r){var t=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function e(r){this.write(r,"",Date.now()-864e5)}}}():function e(){return{write:function e(){},read:function e(){return null},remove:function e(){}}}();var isAbsoluteURL=function e(r){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(r)};var combineURLs=function e(r,t){return t?r.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):r};var buildFullPath=function e(r,t){if(r&&!isAbsoluteURL(t)){return combineURLs(r,t)}return t};var ignoreDuplicateOf=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];var parseHeaders=function e(r){var t={};var n;var i;var a;if(!r){return t}utils.forEach(r.split("\n"),(function e(r){a=r.indexOf(":");n=utils.trim(r.substr(0,a)).toLowerCase();i=utils.trim(r.substr(a+1));if(n){if(t[n]&&ignoreDuplicateOf.indexOf(n)>=0){return}if(n==="set-cookie"){t[n]=(t[n]?t[n]:[]).concat([i])}else{t[n]=t[n]?t[n]+", "+i:i}}}));return t};var isURLSameOrigin=utils.isStandardBrowserEnv()?function e(){var r=/(msie|trident)/i.test(navigator.userAgent);var t=document.createElement("a");var n;function i(e){var n=e;if(r){t.setAttribute("href",n);n=t.href}t.setAttribute("href",n);return{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}n=i(window.location.href);return function e(r){var t=utils.isString(r)?i(r):r;return t.protocol===n.protocol&&t.host===n.host}}():function e(){return function e(){return true}}();var xhr=function e(r){return new Promise((function e(t,n){var i=r.data;var a=r.headers;var o=r.responseType;if(utils.isFormData(i)){delete a["Content-Type"]}var s=new XMLHttpRequest;if(r.auth){var u=r.auth.username||"";var c=r.auth.password?unescape(encodeURIComponent(r.auth.password)):"";a.Authorization="Basic "+btoa(u+":"+c)}var f=buildFullPath(r.baseURL,r.url);s.open(r.method.toUpperCase(),buildURL(f,r.params,r.paramsSerializer),true);s.timeout=r.timeout;function l(){if(!s){return}var e="getAllResponseHeaders"in s?parseHeaders(s.getAllResponseHeaders()):null;var i=!o||o==="text"||o==="json"?s.responseText:s.response;var a={data:i,status:s.status,statusText:s.statusText,headers:e,config:r,request:s};settle(t,n,a);s=null}if("onloadend"in s){s.onloadend=l}else{s.onreadystatechange=function e(){if(!s||s.readyState!==4){return}if(s.status===0&&!(s.responseURL&&s.responseURL.indexOf("file:")===0)){return}setTimeout(l)}}s.onabort=function e(){if(!s){return}n(createError("Request aborted",r,"ECONNABORTED",s));s=null};s.onerror=function e(){n(createError("Network Error",r,null,s));s=null};s.ontimeout=function e(){var t="timeout of "+r.timeout+"ms exceeded";if(r.timeoutErrorMessage){t=r.timeoutErrorMessage}n(createError(t,r,r.transitional&&r.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",s));s=null};if(utils.isStandardBrowserEnv()){var d=(r.withCredentials||isURLSameOrigin(f))&&r.xsrfCookieName?cookies.read(r.xsrfCookieName):undefined;if(d){a[r.xsrfHeaderName]=d}}if("setRequestHeader"in s){utils.forEach(a,(function e(r,t){if(typeof i==="undefined"&&t.toLowerCase()==="content-type"){delete a[t]}else{s.setRequestHeader(t,r)}}))}if(!utils.isUndefined(r.withCredentials)){s.withCredentials=!!r.withCredentials}if(o&&o!=="json"){s.responseType=r.responseType}if(typeof r.onDownloadProgress==="function"){s.addEventListener("progress",r.onDownloadProgress)}if(typeof r.onUploadProgress==="function"&&s.upload){s.upload.addEventListener("progress",r.onUploadProgress)}if(r.cancelToken){r.cancelToken.promise.then((function e(r){if(!s){return}s.abort();n(r);s=null}))}if(!i){i=null}s.send(i)}))};var DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(e,r){if(!utils.isUndefined(e)&&utils.isUndefined(e["Content-Type"])){e["Content-Type"]=r}}function getDefaultAdapter(){var e;if(typeof XMLHttpRequest!=="undefined"){e=xhr}else if(typeof process!=="undefined"&&Object.prototype.toString.call(process)==="[object process]"){e=xhr}return e}function stringifySafely(e,r,t){if(utils.isString(e)){try{(r||JSON.parse)(e);return utils.trim(e)}catch(e){if(e.name!=="SyntaxError"){throw e}}}return(t||JSON.stringify)(e)}var defaults={transitional:{silentJSONParsing:true,forcedJSONParsing:true,clarifyTimeoutError:false},adapter:getDefaultAdapter(),transformRequest:[function e(r,t){normalizeHeaderName(t,"Accept");normalizeHeaderName(t,"Content-Type");if(utils.isFormData(r)||utils.isArrayBuffer(r)||utils.isBuffer(r)||utils.isStream(r)||utils.isFile(r)||utils.isBlob(r)){return r}if(utils.isArrayBufferView(r)){return r.buffer}if(utils.isURLSearchParams(r)){setContentTypeIfUnset(t,"application/x-www-form-urlencoded;charset=utf-8");return r.toString()}if(utils.isObject(r)||t&&t["Content-Type"]==="application/json"){setContentTypeIfUnset(t,"application/json");return stringifySafely(r)}return r}],transformResponse:[function e(r){var t=this.transitional;var n=t&&t.silentJSONParsing;var i=t&&t.forcedJSONParsing;var a=!n&&this.responseType==="json";if(a||i&&utils.isString(r)&&r.length){try{return JSON.parse(r)}catch(e){if(a){if(e.name==="SyntaxError"){throw enhanceError(e,this,"E_JSON_PARSE")}throw e}}}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function e(r){return r>=200&&r<300}};defaults.headers={common:{Accept:"application/json, text/plain, */*"}};utils.forEach(["delete","get","head"],(function e(r){defaults.headers[r]={}}));utils.forEach(["post","put","patch"],(function e(r){defaults.headers[r]=utils.merge(DEFAULT_CONTENT_TYPE)}));var defaults_1=defaults;var transformData=function e(r,t,n){var i=this||defaults_1;utils.forEach(n,(function e(n){r=n.call(i,r,t)}));return r};var isCancel=function e(r){return!!(r&&r.__CANCEL__)};function throwIfCancellationRequested(e){if(e.cancelToken){e.cancelToken.throwIfRequested()}}var dispatchRequest=function e(r){throwIfCancellationRequested(r);r.headers=r.headers||{};r.data=transformData.call(r,r.data,r.headers,r.transformRequest);r.headers=utils.merge(r.headers.common||{},r.headers[r.method]||{},r.headers);utils.forEach(["delete","get","head","post","put","patch","common"],(function e(t){delete r.headers[t]}));var t=r.adapter||defaults_1.adapter;return t(r).then((function e(t){throwIfCancellationRequested(r);t.data=transformData.call(r,t.data,t.headers,r.transformResponse);return t}),(function e(t){if(!isCancel(t)){throwIfCancellationRequested(r);if(t&&t.response){t.response.data=transformData.call(r,t.response.data,t.response.headers,r.transformResponse)}}return Promise.reject(t)}))};var mergeConfig=function e(r,t){t=t||{};var n={};var i=["url","method","data"];var a=["headers","auth","proxy","params"];var o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"];var s=["validateStatus"];function u(e,r){if(utils.isPlainObject(e)&&utils.isPlainObject(r)){return utils.merge(e,r)}else if(utils.isPlainObject(r)){return utils.merge({},r)}else if(utils.isArray(r)){return r.slice()}return r}function c(e){if(!utils.isUndefined(t[e])){n[e]=u(r[e],t[e])}else if(!utils.isUndefined(r[e])){n[e]=u(undefined,r[e])}}utils.forEach(i,(function e(r){if(!utils.isUndefined(t[r])){n[r]=u(undefined,t[r])}}));utils.forEach(a,c);utils.forEach(o,(function e(i){if(!utils.isUndefined(t[i])){n[i]=u(undefined,t[i])}else if(!utils.isUndefined(r[i])){n[i]=u(undefined,r[i])}}));utils.forEach(s,(function e(i){if(i in t){n[i]=u(r[i],t[i])}else if(i in r){n[i]=u(undefined,r[i])}}));var f=i.concat(a).concat(o).concat(s);var l=Object.keys(r).concat(Object.keys(t)).filter((function e(r){return f.indexOf(r)===-1}));utils.forEach(l,c);return n};var _from="axios@^0.21.1";var _id="axios@0.21.4";var _inBundle=false;var _integrity="sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==";var _location="/axios";var _phantomChildren={};var _requested={type:"range",registry:true,raw:"axios@^0.21.1",name:"axios",escapedName:"axios",rawSpec:"^0.21.1",saveSpec:null,fetchSpec:"^0.21.1"};var _requiredBy=["/@verdocs/js-sdk"];var _resolved="https://registry.npmjs.org/axios/-/axios-0.21.4.tgz";var _shasum="c67b90dc0568e5c1cf2b0b858c43ba28e2eda575";var _spec="axios@^0.21.1";var _where="/Users/chad/projects/verdocs/web-sdk/verdocs-web-sdk/node_modules/@verdocs/js-sdk";var author={name:"Matt Zabriskie"};var browser={"./lib/adapters/http.js":"./lib/adapters/xhr.js"};var bugs={url:"https://github.com/axios/axios/issues"};var bundleDependencies=false;var bundlesize=[{path:"./dist/axios.min.js",threshold:"5kB"}];var dependencies={"follow-redirects":"^1.14.0"};var deprecated=false;var description="Promise based HTTP client for the browser and node.js";var devDependencies={coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"};var homepage="https://axios-http.com";var jsdelivr="dist/axios.min.js";var keywords=["xhr","http","ajax","promise","node"];var license="MIT";var main="index.js";var name="axios";var repository={type:"git",url:"git+https://github.com/axios/axios.git"};var scripts={build:"NODE_ENV=production grunt build",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",examples:"node ./examples/server.js",fix:"eslint --fix lib/**/*.js",postversion:"git push && git push --tags",preversion:"npm test",start:"node ./sandbox/server.js",test:"grunt test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"};var typings="./index.d.ts";var unpkg="dist/axios.min.js";var version="0.21.4";var pkg={_from:_from,_id:_id,_inBundle:_inBundle,_integrity:_integrity,_location:_location,_phantomChildren:_phantomChildren,_requested:_requested,_requiredBy:_requiredBy,_resolved:_resolved,_shasum:_shasum,_spec:_spec,_where:_where,author:author,browser:browser,bugs:bugs,bundleDependencies:bundleDependencies,bundlesize:bundlesize,dependencies:dependencies,deprecated:deprecated,description:description,devDependencies:devDependencies,homepage:homepage,jsdelivr:jsdelivr,keywords:keywords,license:license,main:main,name:name,repository:repository,scripts:scripts,typings:typings,unpkg:unpkg,version:version};var validators$1={};["object","boolean","number","function","string","symbol"].forEach((function(e,r){validators$1[e]=function t(n){return typeof n===e||"a"+(r<1?"n ":" ")+e}}));var deprecatedWarnings={};var currentVerArr=pkg.version.split(".");function isOlderVersion(e,r){var t=r?r.split("."):currentVerArr;var n=e.split(".");for(var i=0;i<3;i++){if(t[i]>n[i]){return true}else if(t[i]<n[i]){return false}}return false}validators$1.transitional=function e(r,t,n){var i=t&&isOlderVersion(t);function a(e,r){return"[Axios v"+pkg.version+"] Transitional option '"+e+"'"+r+(n?". "+n:"")}return function(e,n,o){if(r===false){throw new Error(a(n," has been removed in "+t))}if(i&&!deprecatedWarnings[n]){deprecatedWarnings[n]=true;console.warn(a(n," has been deprecated since v"+t+" and will be removed in the near future"))}return r?r(e,n,o):true}};function assertOptions(e,r,t){if(typeof e!=="object"){throw new TypeError("options must be an object")}var n=Object.keys(e);var i=n.length;while(i-- >0){var a=n[i];var o=r[a];if(o){var s=e[a];var u=s===undefined||o(s,a,e);if(u!==true){throw new TypeError("option "+a+" must be "+u)}continue}if(t!==true){throw Error("Unknown option "+a)}}}var validator={isOlderVersion:isOlderVersion,assertOptions:assertOptions,validators:validators$1};var validators=validator.validators;function Axios(e){this.defaults=e;this.interceptors={request:new InterceptorManager_1,response:new InterceptorManager_1}}Axios.prototype.request=function e(r){if(typeof r==="string"){r=arguments[1]||{};r.url=arguments[0]}else{r=r||{}}r=mergeConfig(this.defaults,r);if(r.method){r.method=r.method.toLowerCase()}else if(this.defaults.method){r.method=this.defaults.method.toLowerCase()}else{r.method="get"}var t=r.transitional;if(t!==undefined){validator.assertOptions(t,{silentJSONParsing:validators.transitional(validators.boolean,"1.0.0"),forcedJSONParsing:validators.transitional(validators.boolean,"1.0.0"),clarifyTimeoutError:validators.transitional(validators.boolean,"1.0.0")},false)}var n=[];var i=true;this.interceptors.request.forEach((function e(t){if(typeof t.runWhen==="function"&&t.runWhen(r)===false){return}i=i&&t.synchronous;n.unshift(t.fulfilled,t.rejected)}));var a=[];this.interceptors.response.forEach((function e(r){a.push(r.fulfilled,r.rejected)}));var o;if(!i){var s=[dispatchRequest,undefined];Array.prototype.unshift.apply(s,n);s=s.concat(a);o=Promise.resolve(r);while(s.length){o=o.then(s.shift(),s.shift())}return o}var u=r;while(n.length){var c=n.shift();var f=n.shift();try{u=c(u)}catch(e){f(e);break}}try{o=dispatchRequest(u)}catch(e){return Promise.reject(e)}while(a.length){o=o.then(a.shift(),a.shift())}return o};Axios.prototype.getUri=function e(r){r=mergeConfig(this.defaults,r);return buildURL(r.url,r.params,r.paramsSerializer).replace(/^\?/,"")};utils.forEach(["delete","get","head","options"],(function e(r){Axios.prototype[r]=function(e,t){return this.request(mergeConfig(t||{},{method:r,url:e,data:(t||{}).data}))}}));utils.forEach(["post","put","patch"],(function e(r){Axios.prototype[r]=function(e,t,n){return this.request(mergeConfig(n||{},{method:r,url:e,data:t}))}}));var Axios_1=Axios;function Cancel(e){this.message=e}Cancel.prototype.toString=function e(){return"Cancel"+(this.message?": "+this.message:"")};Cancel.prototype.__CANCEL__=true;var Cancel_1=Cancel;function CancelToken(e){if(typeof e!=="function"){throw new TypeError("executor must be a function.")}var r;this.promise=new Promise((function e(t){r=t}));var t=this;e((function e(n){if(t.reason){return}t.reason=new Cancel_1(n);r(t.reason)}))}CancelToken.prototype.throwIfRequested=function e(){if(this.reason){throw this.reason}};CancelToken.source=function e(){var r;var t=new CancelToken((function e(t){r=t}));return{token:t,cancel:r}};var CancelToken_1=CancelToken;var spread=function e(r){return function e(t){return r.apply(null,t)}};var isAxiosError=function e(r){return typeof r==="object"&&r.isAxiosError===true};function createInstance(e){var r=new Axios_1(e);var t=bind(Axios_1.prototype.request,r);utils.extend(t,Axios_1.prototype,r);utils.extend(t,r);return t}var axios$1=createInstance(defaults_1);axios$1.Axios=Axios_1;axios$1.create=function e(r){return createInstance(mergeConfig(axios$1.defaults,r))};axios$1.Cancel=Cancel_1;axios$1.CancelToken=CancelToken_1;axios$1.isCancel=isCancel;axios$1.all=function e(r){return Promise.all(r)};axios$1.spread=spread;axios$1.isAxiosError=isAxiosError;var axios_1=axios$1;var _default=axios$1;axios_1.default=_default;var axios=axios_1;var TRACE_ID=""+Math.floor(Math.random()*1e5);console.log("[JS-SDK Loaded]",TRACE_ID);var config={baseURL:"https://api.verdocs.com/",timeout:3e3,headers:{"X-Client-ID":"NONE"}};var recreateEndpoint=function(){endpoint=axios.create(config);endpoint.interceptors.request.use((function(e){console.log("[JS-SDK] "+TRACE_ID+" :: "+e.method.toUpperCase()+" "+e.url,JSON.stringify(e.data),JSON.stringify(e.headers));return e}))};var endpoint;recreateEndpoint();var getEndpoint=function(){if(!endpoint){recreateEndpoint()}return endpoint};var __awaiter=undefined&&undefined.__awaiter||function(e,r,t,n){function i(e){return e instanceof t?e:new t((function(r){r(e)}))}return new(t||(t=Promise))((function(t,a){function o(e){try{u(n.next(e))}catch(e){a(e)}}function s(e){try{u(n["throw"](e))}catch(e){a(e)}}function u(e){e.done?t(e.value):i(e.value).then(o,s)}u((n=n.apply(e,r||[])).next())}))};var __generator=undefined&&undefined.__generator||function(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(r){return u([e,r])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(t)try{if(n=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:t.label++;return{value:o[1],done:false};case 5:t.label++;i=o[1];o=[0];continue;case 7:o=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){t.label=o[1];break}if(o[0]===6&&t.label<a[1]){t.label=a[1];a=o;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(o);break}if(a[2])t.ops.pop();t.trys.pop();continue}o=r.call(e,t)}catch(e){o=[6,e];i=0}finally{n=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var getSearchHistory=function(){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(e){return[2,getEndpoint().get("/search/history").then((function(e){return e.data}))]}))}))};export{getSearchHistory as g};
@@ -1 +1 @@
1
- import{r as registerInstance,h}from"./index-69a4b693.js";var CancelledIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#ffffff"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8z"/></svg>';var DeclinedIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#ffffff"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>';var FinishedIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#ffffff"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/></svg>';var PendingIcon='<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#ffffff"><g><rect fill="none" height="24" width="24"/></g><g><g><path d="M12,2C6.48,2,2,6.48,2,12c0,5.52,4.48,10,10,10s10-4.48,10-10C22,6.48,17.52,2,12,2z M12,20c-4.42,0-8-3.58-8-8 c0-4.42,3.58-8,8-8s8,3.58,8,8C20,16.42,16.42,20,12,20z"/><circle cx="7" cy="12" r="1.5"/><circle cx="12" cy="12" r="1.5"/><circle cx="17" cy="12" r="1.5"/></g></g></svg>';var documentStatusIndicatorCss=".container{width:195px;height:72px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;background-color:#33364b;font-family:sans-serif;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;font-size:16px;color:#ffffff}.icon{margin-right:15px}svg{height:24px;width:24px}";var DocumentStatusIndicator=function(){function e(e){registerInstance(this,e)}e.prototype.render=function(){var e;var n;switch(this.status){case"finished":e=FinishedIcon;n="Complete";break;case"complete":e=FinishedIcon;n="Complete";break;case"in-progress":e=PendingIcon;n="In Progress";break;case"pending":e=PendingIcon;n="Pending";break;case"cancelled":e=CancelledIcon;n="Cancelled";break;case"declined":e=DeclinedIcon;n="Declined";break}return h("div",{class:"container"},h("span",{class:"icon",innerHTML:e}),h("span",{class:"content"},n))};return e}();DocumentStatusIndicator.style=documentStatusIndicatorCss;export{DocumentStatusIndicator as document_status_indicator};
1
+ import{r as registerInstance,h}from"./index-183a8995.js";var CancelledIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#ffffff"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8z"/></svg>';var DeclinedIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#ffffff"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>';var FinishedIcon='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#ffffff"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/></svg>';var PendingIcon='<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#ffffff"><g><rect fill="none" height="24" width="24"/></g><g><g><path d="M12,2C6.48,2,2,6.48,2,12c0,5.52,4.48,10,10,10s10-4.48,10-10C22,6.48,17.52,2,12,2z M12,20c-4.42,0-8-3.58-8-8 c0-4.42,3.58-8,8-8s8,3.58,8,8C20,16.42,16.42,20,12,20z"/><circle cx="7" cy="12" r="1.5"/><circle cx="12" cy="12" r="1.5"/><circle cx="17" cy="12" r="1.5"/></g></g></svg>';var documentStatusIndicatorCss="document-status-indicator{font-family:sans-serif;font-family:var(--verdocs-font)}document-status-indicator .container{width:195px;height:72px;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;background-color:#33364b;font-family:sans-serif;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;font-size:16px;color:#ffffff}document-status-indicator .icon{margin-right:15px}document-status-indicator svg{height:24px;width:24px}";var DocumentStatusIndicator=function(){function e(e){registerInstance(this,e)}e.prototype.render=function(){var e;var n;switch(this.status){case"finished":e=FinishedIcon;n="Complete";break;case"complete":e=FinishedIcon;n="Complete";break;case"in-progress":e=PendingIcon;n="In Progress";break;case"pending":e=PendingIcon;n="Pending";break;case"cancelled":e=CancelledIcon;n="Cancelled";break;case"declined":e=DeclinedIcon;n="Declined";break}return h("div",{class:"container"},h("span",{class:"icon",innerHTML:e}),h("span",{class:"content"},n))};return e}();DocumentStatusIndicator.style=documentStatusIndicatorCss;export{DocumentStatusIndicator as document_status_indicator};
@@ -1 +1 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]}return e};return __assign.apply(this,arguments)};var __spreadArray=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};import{r as registerInstance,c as createEvent,h}from"./index-69a4b693.js";var top="top";var bottom="bottom";var right="right";var left="left";var auto="auto";var basePlacements=[top,bottom,right,left];var start="start";var end="end";var clippingParents="clippingParents";var viewport="viewport";var popper="popper";var reference="reference";var variationPlacements=basePlacements.reduce((function(e,t){return e.concat([t+"-"+start,t+"-"+end])}),[]);var placements=[].concat(basePlacements,[auto]).reduce((function(e,t){return e.concat([t,t+"-"+start,t+"-"+end])}),[]);var beforeRead="beforeRead";var read="read";var afterRead="afterRead";var beforeMain="beforeMain";var main="main";var afterMain="afterMain";var beforeWrite="beforeWrite";var write="write";var afterWrite="afterWrite";var modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(e){return e?(e.nodeName||"").toLowerCase():null}function getWindow(e){if(e==null){return window}if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t?t.defaultView||window:window}return e}function isElement(e){var t=getWindow(e).Element;return e instanceof t||e instanceof Element}function isHTMLElement(e){var t=getWindow(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function isShadowRoot(e){if(typeof ShadowRoot==="undefined"){return false}var t=getWindow(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function applyStyles(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{};var n=t.attributes[e]||{};var o=t.elements[e];if(!isHTMLElement(o)||!getNodeName(o)){return}Object.assign(o.style,r);Object.keys(n).forEach((function(e){var t=n[e];if(t===false){o.removeAttribute(e)}else{o.setAttribute(e,t===true?"":t)}}))}))}function effect$2(e){var t=e.state;var r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper);t.styles=r;if(t.elements.arrow){Object.assign(t.elements.arrow.style,r.arrow)}return function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e];var o=t.attributes[e]||{};var a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]);var i=a.reduce((function(e,t){e[t]="";return e}),{});if(!isHTMLElement(n)||!getNodeName(n)){return}Object.assign(n.style,i);Object.keys(o).forEach((function(e){n.removeAttribute(e)}))}))}}var applyStyles$1={name:"applyStyles",enabled:true,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(e){return e.split("-")[0]}function getBoundingClientRect(e,t){var r=e.getBoundingClientRect();var n=1;var o=1;return{width:r.width/n,height:r.height/o,top:r.top/o,right:r.right/n,bottom:r.bottom/o,left:r.left/n,x:r.left/n,y:r.top/o}}function getLayoutRect(e){var t=getBoundingClientRect(e);var r=e.offsetWidth;var n=e.offsetHeight;if(Math.abs(t.width-r)<=1){r=t.width}if(Math.abs(t.height-n)<=1){n=t.height}return{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function contains(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t)){return true}else if(r&&isShadowRoot(r)){var n=t;do{if(n&&e.isSameNode(n)){return true}n=n.parentNode||n.host}while(n)}return false}function getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function isTableElement(e){return["table","td","th"].indexOf(getNodeName(e))>=0}function getDocumentElement(e){return((isElement(e)?e.ownerDocument:e.document)||window.document).documentElement}function getParentNode(e){if(getNodeName(e)==="html"){return e}return e.assignedSlot||e.parentNode||(isShadowRoot(e)?e.host:null)||getDocumentElement(e)}function getTrueOffsetParent(e){if(!isHTMLElement(e)||getComputedStyle(e).position==="fixed"){return null}return e.offsetParent}function getContainingBlock(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1;var r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&isHTMLElement(e)){var n=getComputedStyle(e);if(n.position==="fixed"){return null}}var o=getParentNode(e);while(isHTMLElement(o)&&["html","body"].indexOf(getNodeName(o))<0){var a=getComputedStyle(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none"){return o}else{o=o.parentNode}}return null}function getOffsetParent(e){var t=getWindow(e);var r=getTrueOffsetParent(e);while(r&&isTableElement(r)&&getComputedStyle(r).position==="static"){r=getTrueOffsetParent(r)}if(r&&(getNodeName(r)==="html"||getNodeName(r)==="body"&&getComputedStyle(r).position==="static")){return t}return r||getContainingBlock(e)||t}function getMainAxisFromPlacement(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var max=Math.max;var min=Math.min;var round=Math.round;function within(e,t,r){return max(e,min(t,r))}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(e){return Object.assign({},getFreshSideObject(),e)}function expandToHashMap(e,t){return t.reduce((function(t,r){t[r]=e;return t}),{})}var toPaddingObject=function e(t,r){t=typeof t==="function"?t(Object.assign({},r.rects,{placement:r.placement})):t;return mergePaddingObject(typeof t!=="number"?t:expandToHashMap(t,basePlacements))};function arrow(e){var t;var r=e.state,n=e.name,o=e.options;var a=r.elements.arrow;var i=r.modifiersData.popperOffsets;var s=getBasePlacement(r.placement);var f=getMainAxisFromPlacement(s);var l=[left,right].indexOf(s)>=0;var c=l?"height":"width";if(!a||!i){return}var p=toPaddingObject(o.padding,r);var d=getLayoutRect(a);var u=f==="y"?top:left;var v=f==="y"?bottom:right;var m=r.rects.reference[c]+r.rects.reference[f]-i[f]-r.rects.popper[c];var g=i[f]-r.rects.reference[f];var h=getOffsetParent(a);var b=h?f==="y"?h.clientHeight||0:h.clientWidth||0:0;var y=m/2-g/2;var w=p[u];var O=b-d[c]-p[v];var x=b/2-d[c]/2+y;var P=within(w,x,O);var S=f;r.modifiersData[n]=(t={},t[S]=P,t.centerOffset=P-x,t)}function effect$1(e){var t=e.state,r=e.options;var n=r.element,o=n===void 0?"[data-popper-arrow]":n;if(o==null){return}if(typeof o==="string"){o=t.elements.popper.querySelector(o);if(!o){return}}if(!contains(t.elements.popper,o)){return}t.elements.arrow=o}var arrow$1={name:"arrow",enabled:true,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(e){return e.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(e){var t=e.x,r=e.y;var n=window;var o=n.devicePixelRatio||1;return{x:round(round(t*o)/o)||0,y:round(round(r*o)/o)||0}}function mapToStyles(e){var t;var r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,f=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets;var p=c===true?roundOffsetsByDPR(i):typeof c==="function"?c(i):i,d=p.x,u=d===void 0?0:d,v=p.y,m=v===void 0?0:v;var g=i.hasOwnProperty("x");var h=i.hasOwnProperty("y");var b=left;var y=top;var w=window;if(l){var O=getOffsetParent(r);var x="clientHeight";var P="clientWidth";if(O===getWindow(r)){O=getDocumentElement(r);if(getComputedStyle(O).position!=="static"&&s==="absolute"){x="scrollHeight";P="scrollWidth"}}O=O;if(o===top||(o===left||o===right)&&a===end){y=bottom;m-=O[x]-n.height;m*=f?1:-1}if(o===left||(o===top||o===bottom)&&a===end){b=right;u-=O[P]-n.width;u*=f?1:-1}}var S=Object.assign({position:s},l&&unsetSides);if(f){var E;return Object.assign({},S,(E={},E[y]=h?"0":"",E[b]=g?"0":"",E.transform=(w.devicePixelRatio||1)<=1?"translate("+u+"px, "+m+"px)":"translate3d("+u+"px, "+m+"px, 0)",E))}return Object.assign({},S,(t={},t[y]=h?m+"px":"",t[b]=g?u+"px":"",t.transform="",t))}function computeStyles(e){var t=e.state,r=e.options;var n=r.gpuAcceleration,o=n===void 0?true:n,a=r.adaptive,i=a===void 0?true:a,s=r.roundOffsets,f=s===void 0?true:s;var l={placement:getBasePlacement(t.placement),variation:getVariation(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};if(t.modifiersData.popperOffsets!=null){t.styles.popper=Object.assign({},t.styles.popper,mapToStyles(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:f})))}if(t.modifiersData.arrow!=null){t.styles.arrow=Object.assign({},t.styles.arrow,mapToStyles(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:f})))}t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var computeStyles$1={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:true};function effect(e){var t=e.state,r=e.instance,n=e.options;var o=n.scroll,a=o===void 0?true:o,i=n.resize,s=i===void 0?true:i;var f=getWindow(t.elements.popper);var l=[].concat(t.scrollParents.reference,t.scrollParents.popper);if(a){l.forEach((function(e){e.addEventListener("scroll",r.update,passive)}))}if(s){f.addEventListener("resize",r.update,passive)}return function(){if(a){l.forEach((function(e){e.removeEventListener("scroll",r.update,passive)}))}if(s){f.removeEventListener("resize",r.update,passive)}}}var eventListeners={name:"eventListeners",enabled:true,phase:"write",fn:function e(){},effect:effect,data:{}};var hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,(function(e){return hash$1[e]}))}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(e){return e.replace(/start|end/g,(function(e){return hash[e]}))}function getWindowScroll(e){var t=getWindow(e);var r=t.pageXOffset;var n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function getWindowScrollBarX(e){return getBoundingClientRect(getDocumentElement(e)).left+getWindowScroll(e).scrollLeft}function getViewportRect(e){var t=getWindow(e);var r=getDocumentElement(e);var n=t.visualViewport;var o=r.clientWidth;var a=r.clientHeight;var i=0;var s=0;if(n){o=n.width;a=n.height;if(!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)){i=n.offsetLeft;s=n.offsetTop}}return{width:o,height:a,x:i+getWindowScrollBarX(e),y:s}}function getDocumentRect(e){var t;var r=getDocumentElement(e);var n=getWindowScroll(e);var o=(t=e.ownerDocument)==null?void 0:t.body;var a=max(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0);var i=max(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);var s=-n.scrollLeft+getWindowScrollBarX(e);var f=-n.scrollTop;if(getComputedStyle(o||r).direction==="rtl"){s+=max(r.clientWidth,o?o.clientWidth:0)-a}return{width:a,height:i,x:s,y:f}}function isScrollParent(e){var t=getComputedStyle(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function getScrollParent(e){if(["html","body","#document"].indexOf(getNodeName(e))>=0){return e.ownerDocument.body}if(isHTMLElement(e)&&isScrollParent(e)){return e}return getScrollParent(getParentNode(e))}function listScrollParents(e,t){var r;if(t===void 0){t=[]}var n=getScrollParent(e);var o=n===((r=e.ownerDocument)==null?void 0:r.body);var a=getWindow(n);var i=o?[a].concat(a.visualViewport||[],isScrollParent(n)?n:[]):n;var s=t.concat(i);return o?s:s.concat(listScrollParents(getParentNode(i)))}function rectToClientRect(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function getInnerBoundingClientRect(e){var t=getBoundingClientRect(e);t.top=t.top+e.clientTop;t.left=t.left+e.clientLeft;t.bottom=t.top+e.clientHeight;t.right=t.left+e.clientWidth;t.width=e.clientWidth;t.height=e.clientHeight;t.x=t.left;t.y=t.top;return t}function getClientRectFromMixedType(e,t){return t===viewport?rectToClientRect(getViewportRect(e)):isHTMLElement(t)?getInnerBoundingClientRect(t):rectToClientRect(getDocumentRect(getDocumentElement(e)))}function getClippingParents(e){var t=listScrollParents(getParentNode(e));var r=["absolute","fixed"].indexOf(getComputedStyle(e).position)>=0;var n=r&&isHTMLElement(e)?getOffsetParent(e):e;if(!isElement(n)){return[]}return t.filter((function(e){return isElement(e)&&contains(e,n)&&getNodeName(e)!=="body"}))}function getClippingRect(e,t,r){var n=t==="clippingParents"?getClippingParents(e):[].concat(t);var o=[].concat(n,[r]);var a=o[0];var i=o.reduce((function(t,r){var n=getClientRectFromMixedType(e,r);t.top=max(n.top,t.top);t.right=min(n.right,t.right);t.bottom=min(n.bottom,t.bottom);t.left=max(n.left,t.left);return t}),getClientRectFromMixedType(e,a));i.width=i.right-i.left;i.height=i.bottom-i.top;i.x=i.left;i.y=i.top;return i}function computeOffsets(e){var t=e.reference,r=e.element,n=e.placement;var o=n?getBasePlacement(n):null;var a=n?getVariation(n):null;var i=t.x+t.width/2-r.width/2;var s=t.y+t.height/2-r.height/2;var f;switch(o){case top:f={x:i,y:t.y-r.height};break;case bottom:f={x:i,y:t.y+t.height};break;case right:f={x:t.x+t.width,y:s};break;case left:f={x:t.x-r.width,y:s};break;default:f={x:t.x,y:t.y}}var l=o?getMainAxisFromPlacement(o):null;if(l!=null){var c=l==="y"?"height":"width";switch(a){case start:f[l]=f[l]-(t[c]/2-r[c]/2);break;case end:f[l]=f[l]+(t[c]/2-r[c]/2);break}}return f}function detectOverflow(e,t){if(t===void 0){t={}}var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.boundary,i=a===void 0?clippingParents:a,s=r.rootBoundary,f=s===void 0?viewport:s,l=r.elementContext,c=l===void 0?popper:l,p=r.altBoundary,d=p===void 0?false:p,u=r.padding,v=u===void 0?0:u;var m=mergePaddingObject(typeof v!=="number"?v:expandToHashMap(v,basePlacements));var g=c===popper?reference:popper;var h=e.rects.popper;var b=e.elements[d?g:c];var y=getClippingRect(isElement(b)?b:b.contextElement||getDocumentElement(e.elements.popper),i,f);var w=getBoundingClientRect(e.elements.reference);var O=computeOffsets({reference:w,element:h,strategy:"absolute",placement:o});var x=rectToClientRect(Object.assign({},h,O));var P=c===popper?x:w;var S={top:y.top-P.top+m.top,bottom:P.bottom-y.bottom+m.bottom,left:y.left-P.left+m.left,right:P.right-y.right+m.right};var E=e.modifiersData.offset;if(c===popper&&E){var M=E[o];Object.keys(S).forEach((function(e){var t=[right,bottom].indexOf(e)>=0?1:-1;var r=[top,bottom].indexOf(e)>=0?"y":"x";S[e]+=M[r]*t}))}return S}function computeAutoPlacement(e,t){if(t===void 0){t={}}var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,s=r.flipVariations,f=r.allowedAutoPlacements,l=f===void 0?placements:f;var c=getVariation(n);var p=c?s?variationPlacements:variationPlacements.filter((function(e){return getVariation(e)===c})):basePlacements;var d=p.filter((function(e){return l.indexOf(e)>=0}));if(d.length===0){d=p}var u=d.reduce((function(t,r){t[r]=detectOverflow(e,{placement:r,boundary:o,rootBoundary:a,padding:i})[getBasePlacement(r)];return t}),{});return Object.keys(u).sort((function(e,t){return u[e]-u[t]}))}function getExpandedFallbackPlacements(e){if(getBasePlacement(e)===auto){return[]}var t=getOppositePlacement(e);return[getOppositeVariationPlacement(e),t,getOppositeVariationPlacement(t)]}function flip(e){var t=e.state,r=e.options,n=e.name;if(t.modifiersData[n]._skip){return}var o=r.mainAxis,a=o===void 0?true:o,i=r.altAxis,s=i===void 0?true:i,f=r.fallbackPlacements,l=r.padding,c=r.boundary,p=r.rootBoundary,d=r.altBoundary,u=r.flipVariations,v=u===void 0?true:u,m=r.allowedAutoPlacements;var g=t.options.placement;var h=getBasePlacement(g);var b=h===g;var y=f||(b||!v?[getOppositePlacement(g)]:getExpandedFallbackPlacements(g));var w=[g].concat(y).reduce((function(e,r){return e.concat(getBasePlacement(r)===auto?computeAutoPlacement(t,{placement:r,boundary:c,rootBoundary:p,padding:l,flipVariations:v,allowedAutoPlacements:m}):r)}),[]);var O=t.rects.reference;var x=t.rects.popper;var P=new Map;var S=true;var E=w[0];for(var M=0;M<w.length;M++){var D=w[M];var T=getBasePlacement(D);var B=getVariation(D)===start;var C=[top,bottom].indexOf(T)>=0;var R=C?"width":"height";var L=detectOverflow(t,{placement:D,boundary:c,rootBoundary:p,altBoundary:d,padding:l});var j=C?B?right:left:B?bottom:top;if(O[R]>x[R]){j=getOppositePlacement(j)}var A=getOppositePlacement(j);var k=[];if(a){k.push(L[T]<=0)}if(s){k.push(L[j]<=0,L[A]<=0)}if(k.every((function(e){return e}))){E=D;S=false;break}P.set(D,k)}if(S){var W=v?3:1;var N=function e(t){var r=w.find((function(e){var r=P.get(e);if(r){return r.slice(0,t).every((function(e){return e}))}}));if(r){E=r;return"break"}};for(var H=W;H>0;H--){var _=N(H);if(_==="break")break}}if(t.placement!==E){t.modifiersData[n]._skip=true;t.placement=E;t.reset=true}}var flip$1={name:"flip",enabled:true,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:false}};function getSideOffsets(e,t,r){if(r===void 0){r={x:0,y:0}}return{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function isAnySideFullyClipped(e){return[top,right,bottom,left].some((function(t){return e[t]>=0}))}function hide(e){var t=e.state,r=e.name;var n=t.rects.reference;var o=t.rects.popper;var a=t.modifiersData.preventOverflow;var i=detectOverflow(t,{elementContext:"reference"});var s=detectOverflow(t,{altBoundary:true});var f=getSideOffsets(i,n);var l=getSideOffsets(s,o,a);var c=isAnySideFullyClipped(f);var p=isAnySideFullyClipped(l);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:p};t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":p})}var hide$1={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(e,t,r){var n=getBasePlacement(e);var o=[left,top].indexOf(n)>=0?-1:1;var a=typeof r==="function"?r(Object.assign({},t,{placement:e})):r,i=a[0],s=a[1];i=i||0;s=(s||0)*o;return[left,right].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function offset(e){var t=e.state,r=e.options,n=e.name;var o=r.offset,a=o===void 0?[0,0]:o;var i=placements.reduce((function(e,r){e[r]=distanceAndSkiddingToXY(r,t.rects,a);return e}),{});var s=i[t.placement],f=s.x,l=s.y;if(t.modifiersData.popperOffsets!=null){t.modifiersData.popperOffsets.x+=f;t.modifiersData.popperOffsets.y+=l}t.modifiersData[n]=i}var offset$1={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(e){var t=e.state,r=e.name;t.modifiersData[r]=computeOffsets({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var popperOffsets$1={name:"popperOffsets",enabled:true,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(e){return e==="x"?"y":"x"}function preventOverflow(e){var t=e.state,r=e.options,n=e.name;var o=r.mainAxis,a=o===void 0?true:o,i=r.altAxis,s=i===void 0?false:i,f=r.boundary,l=r.rootBoundary,c=r.altBoundary,p=r.padding,d=r.tether,u=d===void 0?true:d,v=r.tetherOffset,m=v===void 0?0:v;var g=detectOverflow(t,{boundary:f,rootBoundary:l,padding:p,altBoundary:c});var h=getBasePlacement(t.placement);var b=getVariation(t.placement);var y=!b;var w=getMainAxisFromPlacement(h);var O=getAltAxis(w);var x=t.modifiersData.popperOffsets;var P=t.rects.reference;var S=t.rects.popper;var E=typeof m==="function"?m(Object.assign({},t.rects,{placement:t.placement})):m;var M={x:0,y:0};if(!x){return}if(a||s){var D=w==="y"?top:left;var T=w==="y"?bottom:right;var B=w==="y"?"height":"width";var C=x[w];var R=x[w]+g[D];var L=x[w]-g[T];var j=u?-S[B]/2:0;var A=b===start?P[B]:S[B];var k=b===start?-S[B]:-P[B];var W=t.elements.arrow;var N=u&&W?getLayoutRect(W):{width:0,height:0};var H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:getFreshSideObject();var _=H[D];var V=H[T];var $=within(0,P[B],N[B]);var F=y?P[B]/2-j-$-_-E:A-$-_-E;var I=y?-P[B]/2+j+$+V+E:k+$+V+E;var q=t.elements.arrow&&getOffsetParent(t.elements.arrow);var X=q?w==="y"?q.clientTop||0:q.clientLeft||0:0;var U=t.modifiersData.offset?t.modifiersData.offset[t.placement][w]:0;var Y=x[w]+F-U-X;var z=x[w]+I-U;if(a){var G=within(u?min(R,Y):R,C,u?max(L,z):L);x[w]=G;M[w]=G-C}if(s){var J=w==="x"?top:left;var K=w==="x"?bottom:right;var Q=x[O];var Z=Q+g[J];var ee=Q-g[K];var te=within(u?min(Z,Y):Z,Q,u?max(ee,z):ee);x[O]=te;M[O]=te-Q}}t.modifiersData[n]=M}var preventOverflow$1={name:"preventOverflow",enabled:true,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function getNodeScroll(e){if(e===getWindow(e)||!isHTMLElement(e)){return getWindowScroll(e)}else{return getHTMLElementScroll(e)}}function isElementScaled(e){var t=e.getBoundingClientRect();var r=t.width/e.offsetWidth||1;var n=t.height/e.offsetHeight||1;return r!==1||n!==1}function getCompositeRect(e,t,r){if(r===void 0){r=false}var n=isHTMLElement(t);isHTMLElement(t)&&isElementScaled(t);var o=getDocumentElement(t);var a=getBoundingClientRect(e);var i={scrollLeft:0,scrollTop:0};var s={x:0,y:0};if(n||!n&&!r){if(getNodeName(t)!=="body"||isScrollParent(o)){i=getNodeScroll(t)}if(isHTMLElement(t)){s=getBoundingClientRect(t);s.x+=t.clientLeft;s.y+=t.clientTop}else if(o){s.x=getWindowScrollBarX(o)}}return{x:a.left+i.scrollLeft-s.x,y:a.top+i.scrollTop-s.y,width:a.width,height:a.height}}function order(e){var t=new Map;var r=new Set;var n=[];e.forEach((function(e){t.set(e.name,e)}));function o(e){r.add(e.name);var a=[].concat(e.requires||[],e.requiresIfExists||[]);a.forEach((function(e){if(!r.has(e)){var n=t.get(e);if(n){o(n)}}}));n.push(e)}e.forEach((function(e){if(!r.has(e.name)){o(e)}}));return n}function orderModifiers(e){var t=order(e);return modifierPhases.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}function debounce(e){var t;return function(){if(!t){t=new Promise((function(r){Promise.resolve().then((function(){t=undefined;r(e())}))}))}return t}}function mergeByName(e){var t=e.reduce((function(e,t){var r=e[t.name];e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t;return e}),{});return Object.keys(t).map((function(e){return t[e]}))}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++){t[r]=arguments[r]}return!t.some((function(e){return!(e&&typeof e.getBoundingClientRect==="function")}))}function popperGenerator(e){if(e===void 0){e={}}var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?DEFAULT_OPTIONS:o;return function e(t,r,o){if(o===void 0){o=a}var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,a),modifiersData:{},elements:{reference:t,popper:r},attributes:{},styles:{}};var s=[];var f=false;var l={state:i,setOptions:function e(o){var s=typeof o==="function"?o(i.options):o;p();i.options=Object.assign({},a,i.options,s);i.scrollParents={reference:isElement(t)?listScrollParents(t):t.contextElement?listScrollParents(t.contextElement):[],popper:listScrollParents(r)};var f=orderModifiers(mergeByName([].concat(n,i.options.modifiers)));i.orderedModifiers=f.filter((function(e){return e.enabled}));c();return l.update()},forceUpdate:function e(){if(f){return}var t=i.elements,r=t.reference,n=t.popper;if(!areValidElements(r,n)){return}i.rects={reference:getCompositeRect(r,getOffsetParent(n),i.options.strategy==="fixed"),popper:getLayoutRect(n)};i.reset=false;i.placement=i.options.placement;i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var o=0;o<i.orderedModifiers.length;o++){if(i.reset===true){i.reset=false;o=-1;continue}var a=i.orderedModifiers[o],s=a.fn,c=a.options,p=c===void 0?{}:c,d=a.name;if(typeof s==="function"){i=s({state:i,options:p,name:d,instance:l})||i}}},update:debounce((function(){return new Promise((function(e){l.forceUpdate();e(i)}))})),destroy:function e(){p();f=true}};if(!areValidElements(t,r)){return l}l.setOptions(o).then((function(e){if(!f&&o.onFirstUpdate){o.onFirstUpdate(e)}}));function c(){i.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=r===void 0?{}:r,o=e.effect;if(typeof o==="function"){var a=o({state:i,name:t,instance:l,options:n});var f=function e(){};s.push(a||f)}}))}function p(){s.forEach((function(e){return e()}));s=[]}return l}}var defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$1,flip$1,preventOverflow$1,arrow$1,hide$1];var createPopper=popperGenerator({defaultModifiers:defaultModifiers});var SortDown='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#50BE80"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M7 10l5 5 5-5H7z"/></svg>\n';var dropdownMenuCss=":host{display:block;position:relative}:host([tall]){height:160px}.arrow{width:32px;height:26px;background:#fff;border-radius:4px;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;border:1px solid #ccc;-ms-flex-pack:center;justify-content:center}.arrow svg{fill:#50be80;-webkit-transition:0.3s;transition:0.3s}.items{width:200px;display:none;border-radius:5px;background:#33364b;border:1px solid #654dcb}.items[data-show]{display:block}.option{width:100%;color:#fff;border:none;display:block;text-align:left;background:none;padding:10px 20px}.option:hover{cursor:pointer;background:#50be80}.option[disabled]{color:#aaa}.option[disabled]:hover{color:#aaa;cursor:inherit;background:transparent}.open .items{display:block}.open .arrow{background:#4c56cb;border:1px solid #707ae5}.open .arrow svg{-webkit-transform:scaleY(-1);transform:scaleY(-1);fill:#fff}";var DropdownMenu=function(){function e(e){registerInstance(this,e);this.optionSelected=createEvent(this,"optionSelected",7);this.options=[]}e.prototype.componentWillLoad=function(){this.isOpen=!!this.open};e.prototype.componentDidLoad=function(){this.popper=createPopper(this.dropdownButton,this.dropdownMenu,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,10]}}]})};e.prototype.handleSelectOption=function(e){this.isOpen=false;this.optionSelected.emit(e)};e.prototype.showDropdown=function(){var e,t;this.isOpen=true;this.dropdownMenu.setAttribute("data-show","");this.dropdownMenu.removeAttribute("aria-hidden");(e=this.popper)===null||e===void 0?void 0:e.setOptions((function(e){return __assign(__assign({},e),{modifiers:__spreadArray(__spreadArray([],e.modifiers),[{name:"eventListeners",enabled:true}])})}));(t=this.popper)===null||t===void 0?void 0:t.update()};e.prototype.hideDropdown=function(){var e;this.isOpen=false;this.dropdownMenu.removeAttribute("data-show");this.dropdownMenu.setAttribute("aria-hidden","true");(e=this.popper)===null||e===void 0?void 0:e.setOptions((function(e){return __assign(__assign({},e),{modifiers:__spreadArray(__spreadArray([],e.modifiers),[{name:"eventListeners",enabled:false}])})}))};e.prototype.toggleDropdown=function(){if(this.isOpen){this.hideDropdown()}else{this.showDropdown()}};e.prototype.render=function(){var e=this;var t;return h("div",{class:{open:!!this.isOpen}},h("button",{class:"arrow",innerHTML:SortDown,"aria-label":"Open Menu",onClick:function(){return e.toggleDropdown()},onBlur:function(){return e.hideDropdown()},ref:function(t){return e.dropdownButton=t}}),h("div",{class:"items","aria-hidden":!this.open,ref:function(t){return e.dropdownMenu=t}},(t=this.options)===null||t===void 0?void 0:t.map((function(t){return h("button",{onClick:function(){return e.handleSelectOption(t)},class:"option",disabled:t.disabled},t.label)}))))};return e}();DropdownMenu.style=dropdownMenuCss;export{DropdownMenu as dropdown_menu};
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]}return e};return __assign.apply(this,arguments)};var __spreadArray=this&&this.__spreadArray||function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};import{r as registerInstance,c as createEvent,h}from"./index-183a8995.js";var top="top";var bottom="bottom";var right="right";var left="left";var auto="auto";var basePlacements=[top,bottom,right,left];var start="start";var end="end";var clippingParents="clippingParents";var viewport="viewport";var popper="popper";var reference="reference";var variationPlacements=basePlacements.reduce((function(e,t){return e.concat([t+"-"+start,t+"-"+end])}),[]);var placements=[].concat(basePlacements,[auto]).reduce((function(e,t){return e.concat([t,t+"-"+start,t+"-"+end])}),[]);var beforeRead="beforeRead";var read="read";var afterRead="afterRead";var beforeMain="beforeMain";var main="main";var afterMain="afterMain";var beforeWrite="beforeWrite";var write="write";var afterWrite="afterWrite";var modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(e){return e?(e.nodeName||"").toLowerCase():null}function getWindow(e){if(e==null){return window}if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t?t.defaultView||window:window}return e}function isElement(e){var t=getWindow(e).Element;return e instanceof t||e instanceof Element}function isHTMLElement(e){var t=getWindow(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function isShadowRoot(e){if(typeof ShadowRoot==="undefined"){return false}var t=getWindow(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function applyStyles(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{};var n=t.attributes[e]||{};var o=t.elements[e];if(!isHTMLElement(o)||!getNodeName(o)){return}Object.assign(o.style,r);Object.keys(n).forEach((function(e){var t=n[e];if(t===false){o.removeAttribute(e)}else{o.setAttribute(e,t===true?"":t)}}))}))}function effect$2(e){var t=e.state;var r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper);t.styles=r;if(t.elements.arrow){Object.assign(t.elements.arrow.style,r.arrow)}return function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e];var o=t.attributes[e]||{};var a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]);var i=a.reduce((function(e,t){e[t]="";return e}),{});if(!isHTMLElement(n)||!getNodeName(n)){return}Object.assign(n.style,i);Object.keys(o).forEach((function(e){n.removeAttribute(e)}))}))}}var applyStyles$1={name:"applyStyles",enabled:true,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(e){return e.split("-")[0]}function getBoundingClientRect(e,t){var r=e.getBoundingClientRect();var n=1;var o=1;return{width:r.width/n,height:r.height/o,top:r.top/o,right:r.right/n,bottom:r.bottom/o,left:r.left/n,x:r.left/n,y:r.top/o}}function getLayoutRect(e){var t=getBoundingClientRect(e);var r=e.offsetWidth;var n=e.offsetHeight;if(Math.abs(t.width-r)<=1){r=t.width}if(Math.abs(t.height-n)<=1){n=t.height}return{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function contains(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t)){return true}else if(r&&isShadowRoot(r)){var n=t;do{if(n&&e.isSameNode(n)){return true}n=n.parentNode||n.host}while(n)}return false}function getComputedStyle(e){return getWindow(e).getComputedStyle(e)}function isTableElement(e){return["table","td","th"].indexOf(getNodeName(e))>=0}function getDocumentElement(e){return((isElement(e)?e.ownerDocument:e.document)||window.document).documentElement}function getParentNode(e){if(getNodeName(e)==="html"){return e}return e.assignedSlot||e.parentNode||(isShadowRoot(e)?e.host:null)||getDocumentElement(e)}function getTrueOffsetParent(e){if(!isHTMLElement(e)||getComputedStyle(e).position==="fixed"){return null}return e.offsetParent}function getContainingBlock(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1;var r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&isHTMLElement(e)){var n=getComputedStyle(e);if(n.position==="fixed"){return null}}var o=getParentNode(e);while(isHTMLElement(o)&&["html","body"].indexOf(getNodeName(o))<0){var a=getComputedStyle(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none"){return o}else{o=o.parentNode}}return null}function getOffsetParent(e){var t=getWindow(e);var r=getTrueOffsetParent(e);while(r&&isTableElement(r)&&getComputedStyle(r).position==="static"){r=getTrueOffsetParent(r)}if(r&&(getNodeName(r)==="html"||getNodeName(r)==="body"&&getComputedStyle(r).position==="static")){return t}return r||getContainingBlock(e)||t}function getMainAxisFromPlacement(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var max=Math.max;var min=Math.min;var round=Math.round;function within(e,t,r){return max(e,min(t,r))}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(e){return Object.assign({},getFreshSideObject(),e)}function expandToHashMap(e,t){return t.reduce((function(t,r){t[r]=e;return t}),{})}var toPaddingObject=function e(t,r){t=typeof t==="function"?t(Object.assign({},r.rects,{placement:r.placement})):t;return mergePaddingObject(typeof t!=="number"?t:expandToHashMap(t,basePlacements))};function arrow(e){var t;var r=e.state,n=e.name,o=e.options;var a=r.elements.arrow;var i=r.modifiersData.popperOffsets;var s=getBasePlacement(r.placement);var f=getMainAxisFromPlacement(s);var l=[left,right].indexOf(s)>=0;var p=l?"height":"width";if(!a||!i){return}var c=toPaddingObject(o.padding,r);var d=getLayoutRect(a);var u=f==="y"?top:left;var v=f==="y"?bottom:right;var m=r.rects.reference[p]+r.rects.reference[f]-i[f]-r.rects.popper[p];var g=i[f]-r.rects.reference[f];var h=getOffsetParent(a);var w=h?f==="y"?h.clientHeight||0:h.clientWidth||0:0;var b=m/2-g/2;var y=c[u];var O=w-d[p]-c[v];var x=w/2-d[p]/2+b;var P=within(y,x,O);var S=f;r.modifiersData[n]=(t={},t[S]=P,t.centerOffset=P-x,t)}function effect$1(e){var t=e.state,r=e.options;var n=r.element,o=n===void 0?"[data-popper-arrow]":n;if(o==null){return}if(typeof o==="string"){o=t.elements.popper.querySelector(o);if(!o){return}}if(!contains(t.elements.popper,o)){return}t.elements.arrow=o}var arrow$1={name:"arrow",enabled:true,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(e){return e.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(e){var t=e.x,r=e.y;var n=window;var o=n.devicePixelRatio||1;return{x:round(round(t*o)/o)||0,y:round(round(r*o)/o)||0}}function mapToStyles(e){var t;var r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,f=e.gpuAcceleration,l=e.adaptive,p=e.roundOffsets;var c=p===true?roundOffsetsByDPR(i):typeof p==="function"?p(i):i,d=c.x,u=d===void 0?0:d,v=c.y,m=v===void 0?0:v;var g=i.hasOwnProperty("x");var h=i.hasOwnProperty("y");var w=left;var b=top;var y=window;if(l){var O=getOffsetParent(r);var x="clientHeight";var P="clientWidth";if(O===getWindow(r)){O=getDocumentElement(r);if(getComputedStyle(O).position!=="static"&&s==="absolute"){x="scrollHeight";P="scrollWidth"}}O=O;if(o===top||(o===left||o===right)&&a===end){b=bottom;m-=O[x]-n.height;m*=f?1:-1}if(o===left||(o===top||o===bottom)&&a===end){w=right;u-=O[P]-n.width;u*=f?1:-1}}var S=Object.assign({position:s},l&&unsetSides);if(f){var E;return Object.assign({},S,(E={},E[b]=h?"0":"",E[w]=g?"0":"",E.transform=(y.devicePixelRatio||1)<=1?"translate("+u+"px, "+m+"px)":"translate3d("+u+"px, "+m+"px, 0)",E))}return Object.assign({},S,(t={},t[b]=h?m+"px":"",t[w]=g?u+"px":"",t.transform="",t))}function computeStyles(e){var t=e.state,r=e.options;var n=r.gpuAcceleration,o=n===void 0?true:n,a=r.adaptive,i=a===void 0?true:a,s=r.roundOffsets,f=s===void 0?true:s;var l={placement:getBasePlacement(t.placement),variation:getVariation(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};if(t.modifiersData.popperOffsets!=null){t.styles.popper=Object.assign({},t.styles.popper,mapToStyles(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:f})))}if(t.modifiersData.arrow!=null){t.styles.arrow=Object.assign({},t.styles.arrow,mapToStyles(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:f})))}t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var computeStyles$1={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:computeStyles,data:{}};var passive={passive:true};function effect(e){var t=e.state,r=e.instance,n=e.options;var o=n.scroll,a=o===void 0?true:o,i=n.resize,s=i===void 0?true:i;var f=getWindow(t.elements.popper);var l=[].concat(t.scrollParents.reference,t.scrollParents.popper);if(a){l.forEach((function(e){e.addEventListener("scroll",r.update,passive)}))}if(s){f.addEventListener("resize",r.update,passive)}return function(){if(a){l.forEach((function(e){e.removeEventListener("scroll",r.update,passive)}))}if(s){f.removeEventListener("resize",r.update,passive)}}}var eventListeners={name:"eventListeners",enabled:true,phase:"write",fn:function e(){},effect:effect,data:{}};var hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(e){return e.replace(/left|right|bottom|top/g,(function(e){return hash$1[e]}))}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(e){return e.replace(/start|end/g,(function(e){return hash[e]}))}function getWindowScroll(e){var t=getWindow(e);var r=t.pageXOffset;var n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function getWindowScrollBarX(e){return getBoundingClientRect(getDocumentElement(e)).left+getWindowScroll(e).scrollLeft}function getViewportRect(e){var t=getWindow(e);var r=getDocumentElement(e);var n=t.visualViewport;var o=r.clientWidth;var a=r.clientHeight;var i=0;var s=0;if(n){o=n.width;a=n.height;if(!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)){i=n.offsetLeft;s=n.offsetTop}}return{width:o,height:a,x:i+getWindowScrollBarX(e),y:s}}function getDocumentRect(e){var t;var r=getDocumentElement(e);var n=getWindowScroll(e);var o=(t=e.ownerDocument)==null?void 0:t.body;var a=max(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0);var i=max(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);var s=-n.scrollLeft+getWindowScrollBarX(e);var f=-n.scrollTop;if(getComputedStyle(o||r).direction==="rtl"){s+=max(r.clientWidth,o?o.clientWidth:0)-a}return{width:a,height:i,x:s,y:f}}function isScrollParent(e){var t=getComputedStyle(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function getScrollParent(e){if(["html","body","#document"].indexOf(getNodeName(e))>=0){return e.ownerDocument.body}if(isHTMLElement(e)&&isScrollParent(e)){return e}return getScrollParent(getParentNode(e))}function listScrollParents(e,t){var r;if(t===void 0){t=[]}var n=getScrollParent(e);var o=n===((r=e.ownerDocument)==null?void 0:r.body);var a=getWindow(n);var i=o?[a].concat(a.visualViewport||[],isScrollParent(n)?n:[]):n;var s=t.concat(i);return o?s:s.concat(listScrollParents(getParentNode(i)))}function rectToClientRect(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function getInnerBoundingClientRect(e){var t=getBoundingClientRect(e);t.top=t.top+e.clientTop;t.left=t.left+e.clientLeft;t.bottom=t.top+e.clientHeight;t.right=t.left+e.clientWidth;t.width=e.clientWidth;t.height=e.clientHeight;t.x=t.left;t.y=t.top;return t}function getClientRectFromMixedType(e,t){return t===viewport?rectToClientRect(getViewportRect(e)):isHTMLElement(t)?getInnerBoundingClientRect(t):rectToClientRect(getDocumentRect(getDocumentElement(e)))}function getClippingParents(e){var t=listScrollParents(getParentNode(e));var r=["absolute","fixed"].indexOf(getComputedStyle(e).position)>=0;var n=r&&isHTMLElement(e)?getOffsetParent(e):e;if(!isElement(n)){return[]}return t.filter((function(e){return isElement(e)&&contains(e,n)&&getNodeName(e)!=="body"}))}function getClippingRect(e,t,r){var n=t==="clippingParents"?getClippingParents(e):[].concat(t);var o=[].concat(n,[r]);var a=o[0];var i=o.reduce((function(t,r){var n=getClientRectFromMixedType(e,r);t.top=max(n.top,t.top);t.right=min(n.right,t.right);t.bottom=min(n.bottom,t.bottom);t.left=max(n.left,t.left);return t}),getClientRectFromMixedType(e,a));i.width=i.right-i.left;i.height=i.bottom-i.top;i.x=i.left;i.y=i.top;return i}function computeOffsets(e){var t=e.reference,r=e.element,n=e.placement;var o=n?getBasePlacement(n):null;var a=n?getVariation(n):null;var i=t.x+t.width/2-r.width/2;var s=t.y+t.height/2-r.height/2;var f;switch(o){case top:f={x:i,y:t.y-r.height};break;case bottom:f={x:i,y:t.y+t.height};break;case right:f={x:t.x+t.width,y:s};break;case left:f={x:t.x-r.width,y:s};break;default:f={x:t.x,y:t.y}}var l=o?getMainAxisFromPlacement(o):null;if(l!=null){var p=l==="y"?"height":"width";switch(a){case start:f[l]=f[l]-(t[p]/2-r[p]/2);break;case end:f[l]=f[l]+(t[p]/2-r[p]/2);break}}return f}function detectOverflow(e,t){if(t===void 0){t={}}var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.boundary,i=a===void 0?clippingParents:a,s=r.rootBoundary,f=s===void 0?viewport:s,l=r.elementContext,p=l===void 0?popper:l,c=r.altBoundary,d=c===void 0?false:c,u=r.padding,v=u===void 0?0:u;var m=mergePaddingObject(typeof v!=="number"?v:expandToHashMap(v,basePlacements));var g=p===popper?reference:popper;var h=e.rects.popper;var w=e.elements[d?g:p];var b=getClippingRect(isElement(w)?w:w.contextElement||getDocumentElement(e.elements.popper),i,f);var y=getBoundingClientRect(e.elements.reference);var O=computeOffsets({reference:y,element:h,strategy:"absolute",placement:o});var x=rectToClientRect(Object.assign({},h,O));var P=p===popper?x:y;var S={top:b.top-P.top+m.top,bottom:P.bottom-b.bottom+m.bottom,left:b.left-P.left+m.left,right:P.right-b.right+m.right};var E=e.modifiersData.offset;if(p===popper&&E){var M=E[o];Object.keys(S).forEach((function(e){var t=[right,bottom].indexOf(e)>=0?1:-1;var r=[top,bottom].indexOf(e)>=0?"y":"x";S[e]+=M[r]*t}))}return S}function computeAutoPlacement(e,t){if(t===void 0){t={}}var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,s=r.flipVariations,f=r.allowedAutoPlacements,l=f===void 0?placements:f;var p=getVariation(n);var c=p?s?variationPlacements:variationPlacements.filter((function(e){return getVariation(e)===p})):basePlacements;var d=c.filter((function(e){return l.indexOf(e)>=0}));if(d.length===0){d=c}var u=d.reduce((function(t,r){t[r]=detectOverflow(e,{placement:r,boundary:o,rootBoundary:a,padding:i})[getBasePlacement(r)];return t}),{});return Object.keys(u).sort((function(e,t){return u[e]-u[t]}))}function getExpandedFallbackPlacements(e){if(getBasePlacement(e)===auto){return[]}var t=getOppositePlacement(e);return[getOppositeVariationPlacement(e),t,getOppositeVariationPlacement(t)]}function flip(e){var t=e.state,r=e.options,n=e.name;if(t.modifiersData[n]._skip){return}var o=r.mainAxis,a=o===void 0?true:o,i=r.altAxis,s=i===void 0?true:i,f=r.fallbackPlacements,l=r.padding,p=r.boundary,c=r.rootBoundary,d=r.altBoundary,u=r.flipVariations,v=u===void 0?true:u,m=r.allowedAutoPlacements;var g=t.options.placement;var h=getBasePlacement(g);var w=h===g;var b=f||(w||!v?[getOppositePlacement(g)]:getExpandedFallbackPlacements(g));var y=[g].concat(b).reduce((function(e,r){return e.concat(getBasePlacement(r)===auto?computeAutoPlacement(t,{placement:r,boundary:p,rootBoundary:c,padding:l,flipVariations:v,allowedAutoPlacements:m}):r)}),[]);var O=t.rects.reference;var x=t.rects.popper;var P=new Map;var S=true;var E=y[0];for(var M=0;M<y.length;M++){var D=y[M];var T=getBasePlacement(D);var B=getVariation(D)===start;var C=[top,bottom].indexOf(T)>=0;var R=C?"width":"height";var L=detectOverflow(t,{placement:D,boundary:p,rootBoundary:c,altBoundary:d,padding:l});var j=C?B?right:left:B?bottom:top;if(O[R]>x[R]){j=getOppositePlacement(j)}var A=getOppositePlacement(j);var W=[];if(a){W.push(L[T]<=0)}if(s){W.push(L[j]<=0,L[A]<=0)}if(W.every((function(e){return e}))){E=D;S=false;break}P.set(D,W)}if(S){var k=v?3:1;var N=function e(t){var r=y.find((function(e){var r=P.get(e);if(r){return r.slice(0,t).every((function(e){return e}))}}));if(r){E=r;return"break"}};for(var H=k;H>0;H--){var _=N(H);if(_==="break")break}}if(t.placement!==E){t.modifiersData[n]._skip=true;t.placement=E;t.reset=true}}var flip$1={name:"flip",enabled:true,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:false}};function getSideOffsets(e,t,r){if(r===void 0){r={x:0,y:0}}return{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function isAnySideFullyClipped(e){return[top,right,bottom,left].some((function(t){return e[t]>=0}))}function hide(e){var t=e.state,r=e.name;var n=t.rects.reference;var o=t.rects.popper;var a=t.modifiersData.preventOverflow;var i=detectOverflow(t,{elementContext:"reference"});var s=detectOverflow(t,{altBoundary:true});var f=getSideOffsets(i,n);var l=getSideOffsets(s,o,a);var p=isAnySideFullyClipped(f);var c=isAnySideFullyClipped(l);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:l,isReferenceHidden:p,hasPopperEscaped:c};t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":c})}var hide$1={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(e,t,r){var n=getBasePlacement(e);var o=[left,top].indexOf(n)>=0?-1:1;var a=typeof r==="function"?r(Object.assign({},t,{placement:e})):r,i=a[0],s=a[1];i=i||0;s=(s||0)*o;return[left,right].indexOf(n)>=0?{x:s,y:i}:{x:i,y:s}}function offset(e){var t=e.state,r=e.options,n=e.name;var o=r.offset,a=o===void 0?[0,0]:o;var i=placements.reduce((function(e,r){e[r]=distanceAndSkiddingToXY(r,t.rects,a);return e}),{});var s=i[t.placement],f=s.x,l=s.y;if(t.modifiersData.popperOffsets!=null){t.modifiersData.popperOffsets.x+=f;t.modifiersData.popperOffsets.y+=l}t.modifiersData[n]=i}var offset$1={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(e){var t=e.state,r=e.name;t.modifiersData[r]=computeOffsets({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var popperOffsets$1={name:"popperOffsets",enabled:true,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(e){return e==="x"?"y":"x"}function preventOverflow(e){var t=e.state,r=e.options,n=e.name;var o=r.mainAxis,a=o===void 0?true:o,i=r.altAxis,s=i===void 0?false:i,f=r.boundary,l=r.rootBoundary,p=r.altBoundary,c=r.padding,d=r.tether,u=d===void 0?true:d,v=r.tetherOffset,m=v===void 0?0:v;var g=detectOverflow(t,{boundary:f,rootBoundary:l,padding:c,altBoundary:p});var h=getBasePlacement(t.placement);var w=getVariation(t.placement);var b=!w;var y=getMainAxisFromPlacement(h);var O=getAltAxis(y);var x=t.modifiersData.popperOffsets;var P=t.rects.reference;var S=t.rects.popper;var E=typeof m==="function"?m(Object.assign({},t.rects,{placement:t.placement})):m;var M={x:0,y:0};if(!x){return}if(a||s){var D=y==="y"?top:left;var T=y==="y"?bottom:right;var B=y==="y"?"height":"width";var C=x[y];var R=x[y]+g[D];var L=x[y]-g[T];var j=u?-S[B]/2:0;var A=w===start?P[B]:S[B];var W=w===start?-S[B]:-P[B];var k=t.elements.arrow;var N=u&&k?getLayoutRect(k):{width:0,height:0};var H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:getFreshSideObject();var _=H[D];var V=H[T];var $=within(0,P[B],N[B]);var F=b?P[B]/2-j-$-_-E:A-$-_-E;var I=b?-P[B]/2+j+$+V+E:W+$+V+E;var q=t.elements.arrow&&getOffsetParent(t.elements.arrow);var X=q?y==="y"?q.clientTop||0:q.clientLeft||0:0;var U=t.modifiersData.offset?t.modifiersData.offset[t.placement][y]:0;var Y=x[y]+F-U-X;var z=x[y]+I-U;if(a){var G=within(u?min(R,Y):R,C,u?max(L,z):L);x[y]=G;M[y]=G-C}if(s){var J=y==="x"?top:left;var K=y==="x"?bottom:right;var Q=x[O];var Z=Q+g[J];var ee=Q-g[K];var te=within(u?min(Z,Y):Z,Q,u?max(ee,z):ee);x[O]=te;M[O]=te-Q}}t.modifiersData[n]=M}var preventOverflow$1={name:"preventOverflow",enabled:true,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function getNodeScroll(e){if(e===getWindow(e)||!isHTMLElement(e)){return getWindowScroll(e)}else{return getHTMLElementScroll(e)}}function isElementScaled(e){var t=e.getBoundingClientRect();var r=t.width/e.offsetWidth||1;var n=t.height/e.offsetHeight||1;return r!==1||n!==1}function getCompositeRect(e,t,r){if(r===void 0){r=false}var n=isHTMLElement(t);isHTMLElement(t)&&isElementScaled(t);var o=getDocumentElement(t);var a=getBoundingClientRect(e);var i={scrollLeft:0,scrollTop:0};var s={x:0,y:0};if(n||!n&&!r){if(getNodeName(t)!=="body"||isScrollParent(o)){i=getNodeScroll(t)}if(isHTMLElement(t)){s=getBoundingClientRect(t);s.x+=t.clientLeft;s.y+=t.clientTop}else if(o){s.x=getWindowScrollBarX(o)}}return{x:a.left+i.scrollLeft-s.x,y:a.top+i.scrollTop-s.y,width:a.width,height:a.height}}function order(e){var t=new Map;var r=new Set;var n=[];e.forEach((function(e){t.set(e.name,e)}));function o(e){r.add(e.name);var a=[].concat(e.requires||[],e.requiresIfExists||[]);a.forEach((function(e){if(!r.has(e)){var n=t.get(e);if(n){o(n)}}}));n.push(e)}e.forEach((function(e){if(!r.has(e.name)){o(e)}}));return n}function orderModifiers(e){var t=order(e);return modifierPhases.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}function debounce(e){var t;return function(){if(!t){t=new Promise((function(r){Promise.resolve().then((function(){t=undefined;r(e())}))}))}return t}}function mergeByName(e){var t=e.reduce((function(e,t){var r=e[t.name];e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t;return e}),{});return Object.keys(t).map((function(e){return t[e]}))}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++){t[r]=arguments[r]}return!t.some((function(e){return!(e&&typeof e.getBoundingClientRect==="function")}))}function popperGenerator(e){if(e===void 0){e={}}var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?DEFAULT_OPTIONS:o;return function e(t,r,o){if(o===void 0){o=a}var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,a),modifiersData:{},elements:{reference:t,popper:r},attributes:{},styles:{}};var s=[];var f=false;var l={state:i,setOptions:function e(o){var s=typeof o==="function"?o(i.options):o;c();i.options=Object.assign({},a,i.options,s);i.scrollParents={reference:isElement(t)?listScrollParents(t):t.contextElement?listScrollParents(t.contextElement):[],popper:listScrollParents(r)};var f=orderModifiers(mergeByName([].concat(n,i.options.modifiers)));i.orderedModifiers=f.filter((function(e){return e.enabled}));p();return l.update()},forceUpdate:function e(){if(f){return}var t=i.elements,r=t.reference,n=t.popper;if(!areValidElements(r,n)){return}i.rects={reference:getCompositeRect(r,getOffsetParent(n),i.options.strategy==="fixed"),popper:getLayoutRect(n)};i.reset=false;i.placement=i.options.placement;i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var o=0;o<i.orderedModifiers.length;o++){if(i.reset===true){i.reset=false;o=-1;continue}var a=i.orderedModifiers[o],s=a.fn,p=a.options,c=p===void 0?{}:p,d=a.name;if(typeof s==="function"){i=s({state:i,options:c,name:d,instance:l})||i}}},update:debounce((function(){return new Promise((function(e){l.forceUpdate();e(i)}))})),destroy:function e(){c();f=true}};if(!areValidElements(t,r)){return l}l.setOptions(o).then((function(e){if(!f&&o.onFirstUpdate){o.onFirstUpdate(e)}}));function p(){i.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=r===void 0?{}:r,o=e.effect;if(typeof o==="function"){var a=o({state:i,name:t,instance:l,options:n});var f=function e(){};s.push(a||f)}}))}function c(){s.forEach((function(e){return e()}));s=[]}return l}}var defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$1,flip$1,preventOverflow$1,arrow$1,hide$1];var createPopper=popperGenerator({defaultModifiers:defaultModifiers});var SortDown='<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#50BE80"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M7 10l5 5 5-5H7z"/></svg>\n';var dropdownMenuCss="dropdown-menu{font-family:sans-serif;font-family:var(--verdocs-font)}dropdown-menu .arrow{width:32px;height:26px;background:#fff;border-radius:4px;-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;border:1px solid #ccc;-ms-flex-pack:center;justify-content:center}dropdown-menu .arrow svg{fill:#50be80;-webkit-transition:0.3s;transition:0.3s}dropdown-menu .items{width:200px;display:none;border-radius:5px;background:#33364b;border:1px solid #654dcb}dropdown-menu .items[data-show]{display:block}dropdown-menu .option{width:100%;color:#fff;border:none;display:block;text-align:left;background:none;padding:10px 20px}dropdown-menu .option:hover{cursor:pointer;background:#50be80}dropdown-menu .option[disabled]{color:#aaa}dropdown-menu .option[disabled]:hover{color:#aaa;cursor:inherit;background:transparent}dropdown-menu .open .items{display:block}dropdown-menu .open .arrow{background:#4c56cb;border:1px solid #707ae5}dropdown-menu .open .arrow svg{-webkit-transform:scaleY(-1);transform:scaleY(-1);fill:#fff}";var DropdownMenu=function(){function e(e){registerInstance(this,e);this.optionSelected=createEvent(this,"optionSelected",7);this.options=[]}e.prototype.componentWillLoad=function(){this.isOpen=!!this.open};e.prototype.componentDidLoad=function(){this.popper=createPopper(this.dropdownButton,this.dropdownMenu,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,10]}}]})};e.prototype.handleSelectOption=function(e){this.isOpen=false;this.optionSelected.emit(e)};e.prototype.showDropdown=function(){var e,t;this.isOpen=true;this.dropdownMenu.setAttribute("data-show","");this.dropdownMenu.removeAttribute("aria-hidden");(e=this.popper)===null||e===void 0?void 0:e.setOptions((function(e){return __assign(__assign({},e),{modifiers:__spreadArray(__spreadArray([],e.modifiers),[{name:"eventListeners",enabled:true}])})}));(t=this.popper)===null||t===void 0?void 0:t.update()};e.prototype.hideDropdown=function(){var e;this.isOpen=false;this.dropdownMenu.removeAttribute("data-show");this.dropdownMenu.setAttribute("aria-hidden","true");(e=this.popper)===null||e===void 0?void 0:e.setOptions((function(e){return __assign(__assign({},e),{modifiers:__spreadArray(__spreadArray([],e.modifiers),[{name:"eventListeners",enabled:false}])})}))};e.prototype.toggleDropdown=function(){if(this.isOpen){this.hideDropdown()}else{this.showDropdown()}};e.prototype.render=function(){var e=this;var t;return h("div",{class:{open:!!this.isOpen}},h("button",{class:"arrow",innerHTML:SortDown,"aria-label":"Open Menu",onClick:function(){return e.toggleDropdown()},onBlur:function(){return e.hideDropdown()},ref:function(t){return e.dropdownButton=t}}),h("div",{class:"items","aria-hidden":!this.open,ref:function(t){return e.dropdownMenu=t}},(t=this.options)===null||t===void 0?void 0:t.map((function(t){return h("button",{onClick:function(){return e.handleSelectOption(t)},class:"option",disabled:t.disabled},t.label)}))))};return e}();DropdownMenu.style=dropdownMenuCss;export{DropdownMenu as dropdown_menu};
@@ -0,0 +1 @@
1
+ var __extends=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,o){function s(e){try{l(n.next(e))}catch(e){o(e)}}function i(e){try{l(n["throw"](e))}catch(e){o(e)}}function l(e){e.done?r(e.value):a(e.value).then(s,i)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,s;return s={next:i(0),throw:i(1),return:i(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function i(e){return function(t){return l([e,t])}}function l(s){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(o=s[0]&2?a["return"]:s[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,s[1])).done)return o;if(a=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;a=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(o=r.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){r.label=s[1];break}if(s[0]===6&&r.label<o[1]){r.label=o[1];o=s;break}if(o&&r.label<o[2]){r.label=o[2];r.ops.push(s);break}if(o[2])r.ops.pop();r.trys.pop();continue}s=t.call(e,r)}catch(e){s=[6,e];a=0}finally{n=o=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){for(var r=0,n=t.length,a=e.length;r<n;r++,a++)e[a]=t[r];return e};var NAMESPACE="verdocs-web-sdk";var scopeId;var contentRef;var hostTagName;var useNativeShadowDom=false;var checkSlotFallbackVisibility=false;var checkSlotRelocate=false;var isSvgMode=false;var queuePending=false;var win=typeof window!=="undefined"?window:{};var doc=win.document||{head:{}};var plt={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,r,n){return e.addEventListener(t,r,n)},rel:function(e,t,r,n){return e.removeEventListener(t,r,n)},ce:function(e,t){return new CustomEvent(e,t)}};var promiseResolve=function(e){return Promise.resolve(e)};var supportsConstructibleStylesheets=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replace==="function"}catch(e){}return false}();var addHostEventListeners=function(e,t,r,n){if(r){r.map((function(r){var n=r[0],a=r[1],o=r[2];var s=getHostListenerTarget(e,n);var i=hostListenerProxy(t,o);var l=hostListenerOpts(n);plt.ael(s,a,i,l);(t.$rmListeners$=t.$rmListeners$||[]).push((function(){return plt.rel(s,a,i,l)}))}))}};var hostListenerProxy=function(e,t){return function(r){try{{if(e.$flags$&256){e.$lazyInstance$[t](r)}else{(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,r])}}}catch(e){consoleError(e)}}};var getHostListenerTarget=function(e,t){if(t&4)return doc;return e};var hostListenerOpts=function(e){return(e&2)!==0};var HYDRATED_CSS="{visibility:hidden}.hydrated{visibility:inherit}";var createTime=function(e,t){if(t===void 0){t=""}{return function(){return}}};var uniqueTime=function(e,t){{return function(){return}}};var rootAppliedStyles=new WeakMap;var registerStyle=function(e,t,r){var n=styles.get(e);if(supportsConstructibleStylesheets&&r){n=n||new CSSStyleSheet;n.replace(t)}else{n=t}styles.set(e,n)};var addStyle=function(e,t,r,n){var a=getScopeId(t);var o=styles.get(a);e=e.nodeType===11?e:doc;if(o){if(typeof o==="string"){e=e.head||e;var s=rootAppliedStyles.get(e);var i=void 0;if(!s){rootAppliedStyles.set(e,s=new Set)}if(!s.has(a)){{{i=doc.createElement("style");i.innerHTML=o}e.insertBefore(i,e.querySelector("link"))}if(s){s.add(a)}}}else if(!e.adoptedStyleSheets.includes(o)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets),[o])}}return a};var attachStyles=function(e){var t=e.$cmpMeta$;var r=e.$hostElement$;var n=t.$flags$;var a=createTime("attachStyles",t.$tagName$);var o=addStyle(r.shadowRoot?r.shadowRoot:r.getRootNode(),t);if(n&10){r["s-sc"]=o;r.classList.add(o+"-h")}a()};var getScopeId=function(e,t){return"sc-"+e.$tagName$};var EMPTY_OBJ={};var isDef=function(e){return e!=null};var isComplexType=function(e){e=typeof e;return e==="object"||e==="function"};var h=function(e,t){var r=[];for(var n=2;n<arguments.length;n++){r[n-2]=arguments[n]}var a=null;var o=null;var s=null;var i=false;var l=false;var c=[];var f=function(t){for(var r=0;r<t.length;r++){a=t[r];if(Array.isArray(a)){f(a)}else if(a!=null&&typeof a!=="boolean"){if(i=typeof e!=="function"&&!isComplexType(a)){a=String(a)}if(i&&l){c[c.length-1].$text$+=a}else{c.push(i?newVNode(null,a):a)}l=i}}};f(r);if(t){if(t.key){o=t.key}if(t.name){s=t.name}{var u=t.className||t.class;if(u){t.class=typeof u!=="object"?u:Object.keys(u).filter((function(e){return u[e]})).join(" ")}}}var $=newVNode(e,null);$.$attrs$=t;if(c.length>0){$.$children$=c}{$.$key$=o}{$.$name$=s}return $};var newVNode=function(e,t){var r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};{r.$attrs$=null}{r.$key$=null}{r.$name$=null}return r};var Host={};var isHost=function(e){return e&&e.$tag$===Host};var setAccessor=function(e,t,r,n,a,o){if(r!==n){var s=isMemberInElement(e,t);var i=t.toLowerCase();if(t==="class"){var l=e.classList;var c=parseClassList(r);var f=parseClassList(n);l.remove.apply(l,c.filter((function(e){return e&&!f.includes(e)})));l.add.apply(l,f.filter((function(e){return e&&!c.includes(e)})))}else if(t==="key");else if(t==="ref"){if(n){n(e)}}else if(!s&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(isMemberInElement(win,i)){t=i.slice(2)}else{t=i[2]+t.slice(3)}if(r){plt.rel(e,t,r,false)}if(n){plt.ael(e,t,n,false)}}else{var u=isComplexType(n);if((s||u&&n!==null)&&!a){try{if(!e.tagName.includes("-")){var $=n==null?"":n;if(t==="list"){s=false}else if(r==null||e[t]!=$){e[t]=$}}else{e[t]=n}}catch(e){}}if(n==null||n===false){if(n!==false||e.getAttribute(t)===""){{e.removeAttribute(t)}}}else if((!s||o&4||a)&&!u){n=n===true?"":n;{e.setAttribute(t,n)}}}}};var parseClassListRegex=/\s/;var parseClassList=function(e){return!e?[]:e.split(parseClassListRegex)};var updateElement=function(e,t,r,n){var a=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$;var o=e&&e.$attrs$||EMPTY_OBJ;var s=t.$attrs$||EMPTY_OBJ;{for(n in o){if(!(n in s)){setAccessor(a,n,o[n],undefined,r,t.$flags$)}}}for(n in s){setAccessor(a,n,o[n],s[n],r,t.$flags$)}};var createElm=function(e,t,r,n){var a=t.$children$[r];var o=0;var s;var i;var l;if(!useNativeShadowDom){checkSlotRelocate=true;if(a.$tag$==="slot"){if(scopeId){n.classList.add(scopeId+"-s")}a.$flags$|=a.$children$?2:1}}if(a.$text$!==null){s=a.$elm$=doc.createTextNode(a.$text$)}else if(a.$flags$&1){s=a.$elm$=doc.createTextNode("")}else{s=a.$elm$=doc.createElement(a.$flags$&2?"slot-fb":a.$tag$);{updateElement(null,a,isSvgMode)}if(isDef(scopeId)&&s["s-si"]!==scopeId){s.classList.add(s["s-si"]=scopeId)}if(a.$children$){for(o=0;o<a.$children$.length;++o){i=createElm(e,a,o,s);if(i){s.appendChild(i)}}}}{s["s-hn"]=hostTagName;if(a.$flags$&(2|1)){s["s-sr"]=true;s["s-cr"]=contentRef;s["s-sn"]=a.$name$||"";l=e&&e.$children$&&e.$children$[r];if(l&&l.$tag$===a.$tag$&&e.$elm$){putBackInOriginalLocation(e.$elm$,false)}}}return s};var putBackInOriginalLocation=function(e,t){plt.$flags$|=1;var r=e.childNodes;for(var n=r.length-1;n>=0;n--){var a=r[n];if(a["s-hn"]!==hostTagName&&a["s-ol"]){parentReferenceNode(a).insertBefore(a,referenceNode(a));a["s-ol"].remove();a["s-ol"]=undefined;checkSlotRelocate=true}if(t){putBackInOriginalLocation(a,t)}}plt.$flags$&=~1};var addVnodes=function(e,t,r,n,a,o){var s=e["s-cr"]&&e["s-cr"].parentNode||e;var i;if(s.shadowRoot&&s.tagName===hostTagName){s=s.shadowRoot}for(;a<=o;++a){if(n[a]){i=createElm(null,r,a,e);if(i){n[a].$elm$=i;s.insertBefore(i,referenceNode(t))}}}};var removeVnodes=function(e,t,r,n,a){for(;t<=r;++t){if(n=e[t]){a=n.$elm$;callNodeRefs(n);{checkSlotFallbackVisibility=true;if(a["s-ol"]){a["s-ol"].remove()}else{putBackInOriginalLocation(a,true)}}a.remove()}}};var updateChildren=function(e,t,r,n){var a=0;var o=0;var s=0;var i=0;var l=t.length-1;var c=t[0];var f=t[l];var u=n.length-1;var $=n[0];var d=n[u];var v;var p;while(a<=l&&o<=u){if(c==null){c=t[++a]}else if(f==null){f=t[--l]}else if($==null){$=n[++o]}else if(d==null){d=n[--u]}else if(isSameVnode(c,$)){patch(c,$);c=t[++a];$=n[++o]}else if(isSameVnode(f,d)){patch(f,d);f=t[--l];d=n[--u]}else if(isSameVnode(c,d)){if(c.$tag$==="slot"||d.$tag$==="slot"){putBackInOriginalLocation(c.$elm$.parentNode,false)}patch(c,d);e.insertBefore(c.$elm$,f.$elm$.nextSibling);c=t[++a];d=n[--u]}else if(isSameVnode(f,$)){if(c.$tag$==="slot"||d.$tag$==="slot"){putBackInOriginalLocation(f.$elm$.parentNode,false)}patch(f,$);e.insertBefore(f.$elm$,c.$elm$);f=t[--l];$=n[++o]}else{s=-1;{for(i=a;i<=l;++i){if(t[i]&&t[i].$key$!==null&&t[i].$key$===$.$key$){s=i;break}}}if(s>=0){p=t[s];if(p.$tag$!==$.$tag$){v=createElm(t&&t[o],r,s,e)}else{patch(p,$);t[s]=undefined;v=p.$elm$}$=n[++o]}else{v=createElm(t&&t[o],r,o,e);$=n[++o]}if(v){{parentReferenceNode(c.$elm$).insertBefore(v,referenceNode(c.$elm$))}}}}if(a>l){addVnodes(e,n[u+1]==null?null:n[u+1].$elm$,r,n,o,u)}else if(o>u){removeVnodes(t,a,l)}};var isSameVnode=function(e,t){if(e.$tag$===t.$tag$){if(e.$tag$==="slot"){return e.$name$===t.$name$}{return e.$key$===t.$key$}}return false};var referenceNode=function(e){return e&&e["s-ol"]||e};var parentReferenceNode=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode};var patch=function(e,t){var r=t.$elm$=e.$elm$;var n=e.$children$;var a=t.$children$;var o=t.$tag$;var s=t.$text$;var i;if(s===null){{if(o==="slot");else{updateElement(e,t,isSvgMode)}}if(n!==null&&a!==null){updateChildren(r,n,t,a)}else if(a!==null){if(e.$text$!==null){r.textContent=""}addVnodes(r,null,t,a,0,a.length-1)}else if(n!==null){removeVnodes(n,0,n.length-1)}}else if(i=r["s-cr"]){i.parentNode.textContent=s}else if(e.$text$!==s){r.data=s}};var updateFallbackSlotVisibility=function(e){var t=e.childNodes;var r;var n;var a;var o;var s;var i;for(n=0,a=t.length;n<a;n++){r=t[n];if(r.nodeType===1){if(r["s-sr"]){s=r["s-sn"];r.hidden=false;for(o=0;o<a;o++){i=t[o].nodeType;if(t[o]["s-hn"]!==r["s-hn"]||s!==""){if(i===1&&s===t[o].getAttribute("slot")){r.hidden=true;break}}else{if(i===1||i===3&&t[o].textContent.trim()!==""){r.hidden=true;break}}}}updateFallbackSlotVisibility(r)}}};var relocateNodes=[];var relocateSlotContent=function(e){var t;var r;var n;var a;var o;var s;var i=0;var l=e.childNodes;var c=l.length;for(;i<c;i++){t=l[i];if(t["s-sr"]&&(r=t["s-cr"])&&r.parentNode){n=r.parentNode.childNodes;a=t["s-sn"];for(s=n.length-1;s>=0;s--){r=n[s];if(!r["s-cn"]&&!r["s-nr"]&&r["s-hn"]!==t["s-hn"]){if(isNodeLocatedInSlot(r,a)){o=relocateNodes.find((function(e){return e.$nodeToRelocate$===r}));checkSlotFallbackVisibility=true;r["s-sn"]=r["s-sn"]||a;if(o){o.$slotRefNode$=t}else{relocateNodes.push({$slotRefNode$:t,$nodeToRelocate$:r})}if(r["s-sr"]){relocateNodes.map((function(e){if(isNodeLocatedInSlot(e.$nodeToRelocate$,r["s-sn"])){o=relocateNodes.find((function(e){return e.$nodeToRelocate$===r}));if(o&&!e.$slotRefNode$){e.$slotRefNode$=o.$slotRefNode$}}}))}}else if(!relocateNodes.some((function(e){return e.$nodeToRelocate$===r}))){relocateNodes.push({$nodeToRelocate$:r})}}}}if(t.nodeType===1){relocateSlotContent(t)}}};var isNodeLocatedInSlot=function(e,t){if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var callNodeRefs=function(e){{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null);e.$children$&&e.$children$.map(callNodeRefs)}};var renderVdom=function(e,t){var r=e.$hostElement$;var n=e.$cmpMeta$;var a=e.$vnode$||newVNode(null,null);var o=isHost(t)?t:h(null,null,t);hostTagName=r.tagName;o.$tag$=null;o.$flags$|=4;e.$vnode$=o;o.$elm$=a.$elm$=r.shadowRoot||r;{scopeId=r["s-sc"]}{contentRef=r["s-cr"];useNativeShadowDom=(n.$flags$&1)!==0;checkSlotFallbackVisibility=false}patch(a,o);{plt.$flags$|=1;if(checkSlotRelocate){relocateSlotContent(o.$elm$);var s=void 0;var i=void 0;var l=void 0;var c=void 0;var f=void 0;var u=void 0;var $=0;for(;$<relocateNodes.length;$++){s=relocateNodes[$];i=s.$nodeToRelocate$;if(!i["s-ol"]){l=doc.createTextNode("");l["s-nr"]=i;i.parentNode.insertBefore(i["s-ol"]=l,i)}}for($=0;$<relocateNodes.length;$++){s=relocateNodes[$];i=s.$nodeToRelocate$;if(s.$slotRefNode$){c=s.$slotRefNode$.parentNode;f=s.$slotRefNode$.nextSibling;l=i["s-ol"];while(l=l.previousSibling){u=l["s-nr"];if(u&&u["s-sn"]===i["s-sn"]&&c===u.parentNode){u=u.nextSibling;if(!u||!u["s-nr"]){f=u;break}}}if(!f&&c!==i.parentNode||i.nextSibling!==f){if(i!==f){if(!i["s-hn"]&&i["s-ol"]){i["s-hn"]=i["s-ol"].parentNode.nodeName}c.insertBefore(i,f)}}}else{if(i.nodeType===1){i.hidden=true}}}}if(checkSlotFallbackVisibility){updateFallbackSlotVisibility(o.$elm$)}plt.$flags$&=~1;relocateNodes.length=0}};var getElement=function(e){return getHostRef(e).$hostElement$};var createEvent=function(e,t,r){var n=getElement(e);return{emit:function(e){return emitEvent(n,t,{bubbles:!!(r&4),composed:!!(r&2),cancelable:!!(r&1),detail:e})}}};var emitEvent=function(e,t,r){var n=plt.ce(t,r);e.dispatchEvent(n);return n};var attachToAncestor=function(e,t){if(t&&!e.$onRenderResolve$&&t["s-p"]){t["s-p"].push(new Promise((function(t){return e.$onRenderResolve$=t})))}};var scheduleUpdate=function(e,t){{e.$flags$|=16}if(e.$flags$&4){e.$flags$|=512;return}attachToAncestor(e,e.$ancestorComponent$);var r=function(){return dispatchHooks(e,t)};return writeTask(r)};var dispatchHooks=function(e,t){var r=createTime("scheduleUpdate",e.$cmpMeta$.$tagName$);var n=e.$lazyInstance$;var a;if(t){{e.$flags$|=256;if(e.$queuedListeners$){e.$queuedListeners$.map((function(e){var t=e[0],r=e[1];return safeCall(n,t,r)}));e.$queuedListeners$=null}}{a=safeCall(n,"componentWillLoad")}}r();return then(a,(function(){return updateComponent(e,n,t)}))};var updateComponent=function(e,t,r){return __awaiter(void 0,void 0,void 0,(function(){var n,a,o,s,i,l;return __generator(this,(function(c){n=e.$hostElement$;a=createTime("update",e.$cmpMeta$.$tagName$);o=n["s-rc"];if(r){attachStyles(e)}s=createTime("render",e.$cmpMeta$.$tagName$);{callRender(e,t)}if(o){o.map((function(e){return e()}));n["s-rc"]=undefined}s();a();{i=n["s-p"];l=function(){return postUpdateComponent(e)};if(i.length===0){l()}else{Promise.all(i).then(l);e.$flags$|=4;i.length=0}}return[2]}))}))};var callRender=function(e,t,r){try{t=t.render();{e.$flags$&=~16}{e.$flags$|=2}{{{renderVdom(e,t)}}}}catch(t){consoleError(t,e.$hostElement$)}return null};var postUpdateComponent=function(e){var t=e.$cmpMeta$.$tagName$;var r=e.$hostElement$;var n=createTime("postUpdate",t);var a=e.$lazyInstance$;var o=e.$ancestorComponent$;if(!(e.$flags$&64)){e.$flags$|=64;{addHydratedFlag(r)}{safeCall(a,"componentDidLoad")}n();{e.$onReadyResolve$(r);if(!o){appDidLoad()}}}else{n()}{if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){nextTick((function(){return scheduleUpdate(e,false)}))}e.$flags$&=~(4|512)}};var appDidLoad=function(e){{addHydratedFlag(doc.documentElement)}nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}))};var safeCall=function(e,t,r){if(e&&e[t]){try{return e[t](r)}catch(e){consoleError(e)}}return undefined};var then=function(e,t){return e&&e.then?e.then(t):t()};var addHydratedFlag=function(e){return e.classList.add("hydrated")};var parsePropertyValue=function(e,t){if(e!=null&&!isComplexType(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};var getValue=function(e,t){return getHostRef(e).$instanceValues$.get(t)};var setValue=function(e,t,r,n){var a=getHostRef(e);var o=a.$hostElement$;var s=a.$instanceValues$.get(t);var i=a.$flags$;var l=a.$lazyInstance$;r=parsePropertyValue(r,n.$members$[t][0]);if((!(i&8)||s===undefined)&&r!==s){a.$instanceValues$.set(t,r);if(l){if(n.$watchers$&&i&128){var c=n.$watchers$[t];if(c){c.map((function(e){try{l[e](r,s,t)}catch(e){consoleError(e,o)}}))}}if((i&(2|16))===2){scheduleUpdate(a,false)}}}};var proxyComponent=function(e,t,r){if(t.$members$){if(e.watchers){t.$watchers$=e.watchers}var n=Object.entries(t.$members$);var a=e.prototype;n.map((function(e){var n=e[0],o=e[1][0];if(o&31||r&2&&o&32){Object.defineProperty(a,n,{get:function(){return getValue(this,n)},set:function(e){setValue(this,n,e,t)},configurable:true,enumerable:true})}}));if(r&1){var o=new Map;a.attributeChangedCallback=function(e,t,r){var n=this;plt.jmp((function(){var t=o.get(e);if(n.hasOwnProperty(t)){r=n[t];delete n[t]}n[t]=r===null&&typeof n[t]==="boolean"?false:r}))};e.observedAttributes=n.filter((function(e){var t=e[0],r=e[1];return r[0]&15})).map((function(e){var t=e[0],r=e[1];var n=r[1]||t;o.set(n,t);return n}))}}return e};var initializeComponent=function(e,t,r,n,a){return __awaiter(void 0,void 0,void 0,(function(){var e,n,o,s,i,l,c;return __generator(this,(function(f){switch(f.label){case 0:if(!((t.$flags$&32)===0))return[3,3];t.$flags$|=32;a=loadModule(r);if(!a.then)return[3,2];e=uniqueTime();return[4,a];case 1:a=f.sent();e();f.label=2;case 2:if(!a.isProxied){{r.$watchers$=a.watchers}proxyComponent(a,r,2);a.isProxied=true}n=createTime("createInstance",r.$tagName$);{t.$flags$|=8}try{new a(t)}catch(e){consoleError(e)}{t.$flags$&=~8}{t.$flags$|=128}n();if(a.style){o=a.style;s=getScopeId(r);if(!styles.has(s)){i=createTime("registerStyles",r.$tagName$);registerStyle(s,o,!!(r.$flags$&1));i()}}f.label=3;case 3:l=t.$ancestorComponent$;c=function(){return scheduleUpdate(t,true)};if(l&&l["s-rc"]){l["s-rc"].push(c)}else{c()}return[2]}}))}))};var connectedCallback=function(e){if((plt.$flags$&1)===0){var t=getHostRef(e);var r=t.$cmpMeta$;var n=createTime("connectedCallback",r.$tagName$);if(!(t.$flags$&1)){t.$flags$|=1;{if(r.$flags$&(4|8)){setContentReference(e)}}{var a=e;while(a=a.parentNode||a.host){if(a["s-p"]){attachToAncestor(t,t.$ancestorComponent$=a);break}}}if(r.$members$){Object.entries(r.$members$).map((function(t){var r=t[0],n=t[1][0];if(n&31&&e.hasOwnProperty(r)){var a=e[r];delete e[r];e[r]=a}}))}{initializeComponent(e,t,r)}}else{addHostEventListeners(e,t,r.$listeners$)}n()}};var setContentReference=function(e){var t=e["s-cr"]=doc.createComment("");t["s-cn"]=true;e.insertBefore(t,e.firstChild)};var disconnectedCallback=function(e){if((plt.$flags$&1)===0){var t=getHostRef(e);{if(t.$rmListeners$){t.$rmListeners$.map((function(e){return e()}));t.$rmListeners$=undefined}}}};var bootstrapLazy=function(e,t){if(t===void 0){t={}}var r=createTime();var n=[];var a=t.exclude||[];var o=win.customElements;var s=doc.head;var i=s.querySelector("meta[charset]");var l=doc.createElement("style");var c=[];var f;var u=true;Object.assign(plt,t);plt.$resourcesUrl$=new URL(t.resourcesUrl||"./",doc.baseURI).href;e.map((function(e){return e[1].map((function(t){var r={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};{r.$members$=t[2]}{r.$listeners$=t[3]}{r.$watchers$={}}var s=r.$tagName$;var i=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;t=n;registerHost(t,r);if(r.$flags$&1){{{t.attachShadow({mode:"open"})}}}return n}t.prototype.connectedCallback=function(){var e=this;if(f){clearTimeout(f);f=null}if(u){c.push(this)}else{plt.jmp((function(){return connectedCallback(e)}))}};t.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}))};t.prototype.componentOnReady=function(){return getHostRef(this).$onReadyPromise$};return t}(HTMLElement);r.$lazyBundleId$=e[0];if(!a.includes(s)&&!o.get(s)){n.push(s);o.define(s,proxyComponent(i,r,1))}}))}));{l.innerHTML=n+HYDRATED_CSS;l.setAttribute("data-styles","");s.insertBefore(l,i?i.nextSibling:s.firstChild)}u=false;if(c.length){c.map((function(e){return e.connectedCallback()}))}else{{plt.jmp((function(){return f=setTimeout(appDidLoad,30)}))}}r()};var getAssetPath=function(e){var t=new URL(e,plt.$resourcesUrl$);return t.origin!==win.location.origin?t.href:t.pathname};var hostRefs=new WeakMap;var getHostRef=function(e){return hostRefs.get(e)};var registerInstance=function(e,t){return hostRefs.set(t.$lazyInstance$=e,t)};var registerHost=function(e,t){var r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};{r.$onReadyPromise$=new Promise((function(e){return r.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}addHostEventListeners(e,r,t.$listeners$);return hostRefs.set(e,r)};var isMemberInElement=function(e,t){return t in e};var consoleError=function(e,t){return(0,console.error)(e,t)};var cmpModules=new Map;var loadModule=function(e,t,r){var n=e.$tagName$.replace(/-/g,"_");var a=e.$lazyBundleId$;var o=cmpModules.get(a);if(o){return o[n]}return import("./"+a+".entry.js"+"").then((function(e){{cmpModules.set(a,e)}return e[n]}),consoleError)};var styles=new Map;var queueDomReads=[];var queueDomWrites=[];var queueTask=function(e,t){return function(r){e.push(r);if(!queuePending){queuePending=true;if(t&&plt.$flags$&4){nextTick(flush)}else{plt.raf(flush)}}}};var consume=function(e){for(var t=0;t<e.length;t++){try{e[t](performance.now())}catch(e){consoleError(e)}}e.length=0};var flush=function(){consume(queueDomReads);{consume(queueDomWrites);if(queuePending=queueDomReads.length>0){plt.raf(flush)}}};var nextTick=function(e){return promiseResolve().then(e)};var writeTask=queueTask(queueDomWrites,true);export{Host as H,getAssetPath as a,bootstrapLazy as b,createEvent as c,getElement as g,h,promiseResolve as p,registerInstance as r};
@@ -1 +1 @@
1
- import{p as promiseResolve,b as bootstrapLazy}from"./index-69a4b693.js";var patchEsm=function(){return promiseResolve()};var defineCustomElements=function(e,t){if(typeof window==="undefined")return Promise.resolve();return patchEsm().then((function(){return bootstrapLazy([["document-status-indicator",[[1,"document-status-indicator",{status:[1],theme:[1]}]]],["dropdown-menu",[[1,"dropdown-menu",{options:[16],open:[4],tall:[4],isOpen:[32]}]]],["org-popup",[[1,"org-popup",{organization:[8],theme:[1]}]]],["pdf-viewer",[[1,"pdf-viewer",{rotation:[2],src:[1]}]]],["search-box",[[1,"search-box"]]],["search-embed",[[1,"search-embed"]]],["search-quick-functions",[[1,"search-quick-functions"]]],["search-recent",[[1,"search-recent",{limit:[2],recent:[32]}]]],["search-saved",[[1,"search-saved",{limit:[2],saved:[32]}]]],["search-starred",[[1,"search-starred",{options:[8]}]]],["search-tabs",[[1,"search-tabs"]]],["tags-indicator",[[1,"tags-indicator",{tags:[16],theme:[1]}]]],["template-card",[[1,"template-card",{template:[8],theme:[1]}]]],["toggle-icon-buttons",[[1,"toggle-icon-buttons",{options:[16],theme:[1]},[[6,"click","handleClick"]]]]]],t)}))};export{defineCustomElements};
1
+ import{p as promiseResolve,b as bootstrapLazy}from"./index-183a8995.js";var patchEsm=function(){return promiseResolve()};var defineCustomElements=function(e,t){if(typeof window==="undefined")return Promise.resolve();return patchEsm().then((function(){return bootstrapLazy([["document-status-indicator",[[0,"document-status-indicator",{status:[1],theme:[1]}]]],["dropdown-menu",[[0,"dropdown-menu",{options:[16],open:[4],tall:[4],isOpen:[32]}]]],["org-popup",[[0,"org-popup",{organization:[8],theme:[1]}]]],["pdf-viewer",[[0,"pdf-viewer",{rotation:[2],src:[1]}]]],["search-box",[[0,"search-box",{type:[1],q:[32]}]]],["search-embed",[[1,"search-embed"]]],["search-quick-functions",[[0,"search-quick-functions"]]],["search-recent",[[0,"search-recent",{limit:[2],recent:[32]}]]],["search-saved",[[0,"search-saved",{limit:[2],saved:[32]}]]],["search-starred",[[0,"search-starred",{options:[8]}]]],["search-tabs",[[4,"search-tabs",{selected:[32]}]]],["tags-indicator",[[0,"tags-indicator",{tags:[16],theme:[1]}]]],["template-card",[[0,"template-card",{template:[8],theme:[1]}]]],["toggle-icon-buttons",[[0,"toggle-icon-buttons",{options:[16],theme:[1]},[[6,"click","handleClick"]]]]]],t)}))};export{defineCustomElements};
@@ -1 +1 @@
1
- import{r as registerInstance,h}from"./index-69a4b693.js";var UserGroup='<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#ffffff"><rect fill="none" height="24" width="24"/><g><path d="M4,13c1.1,0,2-0.9,2-2c0-1.1-0.9-2-2-2s-2,0.9-2,2C2,12.1,2.9,13,4,13z M5.13,14.1C4.76,14.04,4.39,14,4,14 c-0.99,0-1.93,0.21-2.78,0.58C0.48,14.9,0,15.62,0,16.43V18l4.5,0v-1.61C4.5,15.56,4.73,14.78,5.13,14.1z M20,13c1.1,0,2-0.9,2-2 c0-1.1-0.9-2-2-2s-2,0.9-2,2C18,12.1,18.9,13,20,13z M24,16.43c0-0.81-0.48-1.53-1.22-1.85C21.93,14.21,20.99,14,20,14 c-0.39,0-0.76,0.04-1.13,0.1c0.4,0.68,0.63,1.46,0.63,2.29V18l4.5,0V16.43z M16.24,13.65c-1.17-0.52-2.61-0.9-4.24-0.9 c-1.63,0-3.07,0.39-4.24,0.9C6.68,14.13,6,15.21,6,16.39V18h12v-1.61C18,15.21,17.32,14.13,16.24,13.65z M8.07,16 c0.09-0.23,0.13-0.39,0.91-0.69c0.97-0.38,1.99-0.56,3.02-0.56s2.05,0.18,3.02,0.56c0.77,0.3,0.81,0.46,0.91,0.69H8.07z M12,8 c0.55,0,1,0.45,1,1s-0.45,1-1,1s-1-0.45-1-1S11.45,8,12,8 M12,6c-1.66,0-3,1.34-3,3c0,1.66,1.34,3,3,3s3-1.34,3-3 C15,7.34,13.66,6,12,6L12,6z"/></g></svg>';var orgPopupCss=":host{display:block}.container{width:242px;height:64px;background-color:#33364b;position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.container:hover>.popup{display:-ms-flexbox;display:flex;background:#ffffff;color:#33364b}.icon{-ms-flex:1;flex:1;margin-left:15px;margin-right:0px}.icon svg{width:24px;margin-bottom:-5px}.content{color:#fff;-ms-flex:4;flex:4;font-family:sans-serif}.popup{position:absolute;top:-1px;left:-4px;display:none;border:1px solid #1e2031;border-radius:10px;width:326px;height:220px;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:space-evenly;justify-content:space-evenly;font-family:sans-serif}.popup-header{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;width:242px;height:69px;-ms-flex-pack:justify;justify-content:space-between;font-size:21px;color:#4c56cb}.popup-body{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;width:256.2px;height:95px;-ms-flex-pack:space-evenly;justify-content:space-evenly;font-size:13px;text-transform:uppercase}.popup-body span{display:block;-ms-flex:2 80px;flex:2 80px;margin-left:7px}.popup-body span:last-child{margin-top:5px}.status{width:29px;height:29px;background-color:#aeb4bf;border-radius:50%}";var OrgPopup=function(){function e(e){registerInstance(this,e)}e.prototype.render=function(){var e,s,o,i,n,l;return h("div",{class:"container"},h("span",{class:"icon",innerHTML:UserGroup}),h("span",{class:"content"},(e=this.organization)===null||e===void 0?void 0:e.name),h("div",{class:"popup"},h("div",{class:"popup-header"},h("span",{class:"status"}),h("span",{class:"title"},(s=this.organization)===null||s===void 0?void 0:s.name)),h("div",{class:"popup-body"},h("span",{class:"joined"},h("b",null,"Joined")," ",(o=this.organization)===null||o===void 0?void 0:o.created_at),h("span",{class:"followers"},h("b",null,"Followers")," ",(i=this.organization)===null||i===void 0?void 0:i.followers),h("span",{class:"website"},h("b",null,"Website")),h("span",{class:"templates"},h("b",null,"Templates")," ",(n=this.organization)===null||n===void 0?void 0:n.templates),h("span",null,(l=this.organization)===null||l===void 0?void 0:l.website))))};return e}();OrgPopup.style=orgPopupCss;export{OrgPopup as org_popup};
1
+ import{r as registerInstance,h}from"./index-183a8995.js";var UserGroup='<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#ffffff"><rect fill="none" height="24" width="24"/><g><path d="M4,13c1.1,0,2-0.9,2-2c0-1.1-0.9-2-2-2s-2,0.9-2,2C2,12.1,2.9,13,4,13z M5.13,14.1C4.76,14.04,4.39,14,4,14 c-0.99,0-1.93,0.21-2.78,0.58C0.48,14.9,0,15.62,0,16.43V18l4.5,0v-1.61C4.5,15.56,4.73,14.78,5.13,14.1z M20,13c1.1,0,2-0.9,2-2 c0-1.1-0.9-2-2-2s-2,0.9-2,2C18,12.1,18.9,13,20,13z M24,16.43c0-0.81-0.48-1.53-1.22-1.85C21.93,14.21,20.99,14,20,14 c-0.39,0-0.76,0.04-1.13,0.1c0.4,0.68,0.63,1.46,0.63,2.29V18l4.5,0V16.43z M16.24,13.65c-1.17-0.52-2.61-0.9-4.24-0.9 c-1.63,0-3.07,0.39-4.24,0.9C6.68,14.13,6,15.21,6,16.39V18h12v-1.61C18,15.21,17.32,14.13,16.24,13.65z M8.07,16 c0.09-0.23,0.13-0.39,0.91-0.69c0.97-0.38,1.99-0.56,3.02-0.56s2.05,0.18,3.02,0.56c0.77,0.3,0.81,0.46,0.91,0.69H8.07z M12,8 c0.55,0,1,0.45,1,1s-0.45,1-1,1s-1-0.45-1-1S11.45,8,12,8 M12,6c-1.66,0-3,1.34-3,3c0,1.66,1.34,3,3,3s3-1.34,3-3 C15,7.34,13.66,6,12,6L12,6z"/></g></svg>';var orgPopupCss="org-popup{font-family:sans-serif;font-family:var(--verdocs-font)}org-popup .container{width:242px;height:64px;background-color:#33364b;position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}org-popup .container:hover>.popup{display:-ms-flexbox;display:flex;background:#ffffff;color:#33364b}org-popup .icon{-ms-flex:1;flex:1;margin-left:15px;margin-right:0px}org-popup .icon svg{width:24px;margin-bottom:-5px}org-popup .content{color:#fff;-ms-flex:4;flex:4;font-family:sans-serif}org-popup .popup{position:absolute;top:-1px;left:-4px;display:none;border:1px solid var(--verdocs-background-dark);border-radius:10px;width:326px;height:220px;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:space-evenly;justify-content:space-evenly;font-family:sans-serif}org-popup .popup-header{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;width:242px;height:69px;-ms-flex-pack:justify;justify-content:space-between;font-size:21px;color:#4c56cb}org-popup .popup-body{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;width:256.2px;height:95px;-ms-flex-pack:space-evenly;justify-content:space-evenly;font-size:13px;text-transform:uppercase}org-popup .popup-body span{display:block;-ms-flex:2 80px;flex:2 80px;margin-left:7px}org-popup .popup-body span:last-child{margin-top:5px}org-popup .status{width:29px;height:29px;background-color:#aeb4bf;border-radius:50%}";var OrgPopup=function(){function o(o){registerInstance(this,o)}o.prototype.render=function(){var o,e,p,s,i,n;return h("div",{class:"container"},h("span",{class:"icon",innerHTML:UserGroup}),h("span",{class:"content"},(o=this.organization)===null||o===void 0?void 0:o.name),h("div",{class:"popup"},h("div",{class:"popup-header"},h("span",{class:"status"}),h("span",{class:"title"},(e=this.organization)===null||e===void 0?void 0:e.name)),h("div",{class:"popup-body"},h("span",{class:"joined"},h("b",null,"Joined")," ",(p=this.organization)===null||p===void 0?void 0:p.created_at),h("span",{class:"followers"},h("b",null,"Followers")," ",(s=this.organization)===null||s===void 0?void 0:s.followers),h("span",{class:"website"},h("b",null,"Website")),h("span",{class:"templates"},h("b",null,"Templates")," ",(i=this.organization)===null||i===void 0?void 0:i.templates),h("span",null,(n=this.organization)===null||n===void 0?void 0:n.website))))};return o}();OrgPopup.style=orgPopupCss;export{OrgPopup as org_popup};