@verdocs/web-sdk 1.0.15 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Content-986f7a13.js → Content-1d98b2f3.js} +297 -17
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/css-shim-88cc6900.js +6 -0
- package/dist/cjs/document-status-indicator.cjs.entry.js +1 -1
- package/dist/cjs/dom-95afd968.js +75 -0
- package/dist/cjs/dropdown-menu.cjs.entry.js +191 -4
- package/dist/cjs/index-0b9c3c7d.js +3064 -0
- package/dist/cjs/loader.cjs.js +19 -3
- package/dist/cjs/org-popup.cjs.entry.js +1 -1
- package/dist/cjs/pdf-viewer.cjs.entry.js +87 -6
- package/dist/cjs/search-box.cjs.entry.js +19 -7
- package/dist/cjs/search-embed.cjs.entry.js +1 -1
- package/dist/cjs/search-quick-functions.cjs.entry.js +1 -1
- package/dist/cjs/search-recent.cjs.entry.js +2 -2
- package/dist/cjs/search-saved.cjs.entry.js +2 -2
- package/dist/cjs/search-starred.cjs.entry.js +1 -1
- package/dist/cjs/search-tabs.cjs.entry.js +1 -1
- package/dist/cjs/shadow-css-71d0f821.js +391 -0
- package/dist/cjs/tags-indicator.cjs.entry.js +1 -1
- package/dist/cjs/template-card.cjs.entry.js +1 -1
- package/dist/cjs/toggle-icon-buttons.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-web-sdk.cjs.js +113 -5
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/elements/search-box/search-box.css +4 -0
- package/dist/collection/components/elements/search-box/search-box.js +73 -14
- package/dist/collection/components/elements/search-box/search-box.stories.js +3 -1
- package/dist/custom-elements/index.js +597 -34
- package/dist/docs.json +40 -5
- package/dist/esm/{Content-386637c8.js → Content-0d614ff3.js} +297 -17
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/css-shim-c64026cd.js +4 -0
- package/dist/esm/document-status-indicator.entry.js +1 -1
- package/dist/esm/dom-a712b575.js +73 -0
- package/dist/esm/dropdown-menu.entry.js +191 -4
- package/dist/esm/index-81ec66c1.js +3027 -0
- package/dist/esm/loader.js +19 -3
- package/dist/esm/org-popup.entry.js +1 -1
- package/dist/esm/pdf-viewer.entry.js +87 -6
- package/dist/esm/search-box.entry.js +19 -7
- package/dist/esm/search-embed.entry.js +1 -1
- package/dist/esm/search-quick-functions.entry.js +1 -1
- package/dist/esm/search-recent.entry.js +2 -2
- package/dist/esm/search-saved.entry.js +2 -2
- package/dist/esm/search-starred.entry.js +1 -1
- package/dist/esm/search-tabs.entry.js +1 -1
- package/dist/esm/shadow-css-1e16431b.js +389 -0
- package/dist/esm/tags-indicator.entry.js +1 -1
- package/dist/esm/template-card.entry.js +1 -1
- package/dist/esm/toggle-icon-buttons.entry.js +1 -1
- package/dist/esm/verdocs-web-sdk.js +113 -5
- package/dist/esm-es5/Content-0d614ff3.js +1 -0
- package/dist/esm-es5/app-globals-0f993ce5.js +1 -0
- package/dist/esm-es5/css-shim-c64026cd.js +1 -0
- package/dist/esm-es5/document-status-indicator.entry.js +1 -1
- package/dist/esm-es5/dom-a712b575.js +21 -0
- package/dist/esm-es5/dropdown-menu.entry.js +1 -1
- package/dist/esm-es5/index-81ec66c1.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/org-popup.entry.js +1 -1
- package/dist/esm-es5/pdf-viewer.entry.js +2 -2
- package/dist/esm-es5/search-box.entry.js +1 -1
- package/dist/esm-es5/search-embed.entry.js +1 -1
- package/dist/esm-es5/search-quick-functions.entry.js +1 -1
- package/dist/esm-es5/search-recent.entry.js +1 -1
- package/dist/esm-es5/search-saved.entry.js +1 -1
- package/dist/esm-es5/search-starred.entry.js +1 -1
- package/dist/esm-es5/search-tabs.entry.js +1 -1
- package/dist/esm-es5/shadow-css-1e16431b.js +12 -0
- package/dist/esm-es5/tags-indicator.entry.js +1 -1
- package/dist/esm-es5/template-card.entry.js +1 -1
- package/dist/esm-es5/toggle-icon-buttons.entry.js +1 -1
- package/dist/esm-es5/verdocs-web-sdk.js +1 -1
- package/dist/types/components/elements/search-box/search-box.d.ts +20 -5
- package/dist/types/components/elements/search-box/search-box.stories.d.ts +3 -1
- package/dist/types/components.d.ts +23 -1
- package/dist/verdocs-web-sdk/Content-0d614ff3.js +2175 -0
- package/dist/verdocs-web-sdk/Content-42ddf5ec.system.js +1 -0
- package/dist/verdocs-web-sdk/app-globals-0f993ce5.js +3 -0
- package/dist/verdocs-web-sdk/app-globals-497eb362.system.js +1 -0
- package/dist/verdocs-web-sdk/css-shim-0e9af51a.system.js +1 -0
- package/dist/verdocs-web-sdk/css-shim-c64026cd.js +4 -0
- package/dist/verdocs-web-sdk/document-status-indicator.entry.js +55 -0
- package/dist/verdocs-web-sdk/document-status-indicator.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/dom-a712b575.js +73 -0
- package/dist/verdocs-web-sdk/dom-f6327147.system.js +21 -0
- package/dist/verdocs-web-sdk/dropdown-menu.entry.js +1990 -0
- package/dist/verdocs-web-sdk/dropdown-menu.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/index-46cb292b.system.js +1 -0
- package/dist/verdocs-web-sdk/index-81ec66c1.js +3027 -0
- package/dist/verdocs-web-sdk/index.esm.js +1 -0
- package/dist/verdocs-web-sdk/{p-50ea2036.system.js → index.system.js} +0 -0
- package/dist/verdocs-web-sdk/org-popup.entry.js +21 -0
- package/dist/verdocs-web-sdk/org-popup.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/pdf-viewer.entry.js +13754 -0
- package/dist/verdocs-web-sdk/pdf-viewer.system.entry.js +23 -0
- package/dist/verdocs-web-sdk/search-box.entry.js +46 -0
- package/dist/verdocs-web-sdk/search-box.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/search-embed.entry.js +15 -0
- package/dist/verdocs-web-sdk/search-embed.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/search-quick-functions.entry.js +27 -0
- package/dist/verdocs-web-sdk/search-quick-functions.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/search-recent.entry.js +35 -0
- package/dist/verdocs-web-sdk/search-recent.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/search-saved.entry.js +35 -0
- package/dist/verdocs-web-sdk/search-saved.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/search-starred.entry.js +42 -0
- package/dist/verdocs-web-sdk/search-starred.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/search-tabs.entry.js +16 -0
- package/dist/verdocs-web-sdk/search-tabs.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/shadow-css-1e16431b.js +389 -0
- package/dist/verdocs-web-sdk/shadow-css-ef154fe4.system.js +13 -0
- package/dist/verdocs-web-sdk/tags-indicator.entry.js +16 -0
- package/dist/verdocs-web-sdk/tags-indicator.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/template-card.entry.js +24 -0
- package/dist/verdocs-web-sdk/template-card.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/toggle-icon-buttons.entry.js +28 -0
- package/dist/verdocs-web-sdk/toggle-icon-buttons.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/verdocs-web-sdk.css +12 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +125 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.js +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.system.js +1 -0
- package/package.json +5 -5
- package/dist/cjs/index-e2fb537e.js +0 -1631
- package/dist/custom-elements.json +0 -266
- package/dist/esm/index-183a8995.js +0 -1602
- package/dist/esm-es5/Content-386637c8.js +0 -1
- package/dist/esm-es5/index-183a8995.js +0 -1
- package/dist/verdocs-web-sdk/p-153879ad.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-1d1bc463.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-29cb7cbc.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-2cec77cf.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-32a5788a.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-33f73371.system.js +0 -1
- package/dist/verdocs-web-sdk/p-349248f0.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-36082c90.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-3a032151.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-3cc8281f.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-440d8a73.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-4d4e090f.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-55660c24.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-63107dd5.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-6b569aa1.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-6e033b90.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-6ee008ff.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-7ab216be.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-7d10b067.system.entry.js +0 -23
- package/dist/verdocs-web-sdk/p-89be87e5.js +0 -1
- package/dist/verdocs-web-sdk/p-92e7863c.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-99ebfee7.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-9af63b8a.system.js +0 -1
- package/dist/verdocs-web-sdk/p-9da35744.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-b3d5601a.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-b466e003.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-bb99a203.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-cbc784a6.system.js +0 -1
- package/dist/verdocs-web-sdk/p-cf030985.js +0 -1
- package/dist/verdocs-web-sdk/p-d73f486f.entry.js +0 -23
- package/dist/verdocs-web-sdk/p-dea09611.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e34538bd.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-e59eda0c.system.entry.js +0 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { h, createEvent, Host,
|
|
1
|
+
import { h, createEvent, Host, getAssetPath, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
2
|
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
3
3
|
|
|
4
|
+
const globalScripts = () => {};
|
|
5
|
+
|
|
4
6
|
const 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>`;
|
|
5
7
|
|
|
6
8
|
const 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>`;
|
|
@@ -213,6 +215,9 @@ function getBasePlacement(placement) {
|
|
|
213
215
|
// import { isHTMLElement } from './instanceOf';
|
|
214
216
|
function getBoundingClientRect(element, // eslint-disable-next-line unused-imports/no-unused-vars
|
|
215
217
|
includeScale) {
|
|
218
|
+
if (includeScale === void 0) {
|
|
219
|
+
includeScale = false;
|
|
220
|
+
}
|
|
216
221
|
|
|
217
222
|
var rect = element.getBoundingClientRect();
|
|
218
223
|
var scaleX = 1;
|
|
@@ -478,7 +483,16 @@ function effect$1(_ref2) {
|
|
|
478
483
|
}
|
|
479
484
|
}
|
|
480
485
|
|
|
486
|
+
if ("development" !== "production") {
|
|
487
|
+
if (!isHTMLElement(arrowElement)) {
|
|
488
|
+
console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', 'To use an SVG arrow, wrap it in an HTMLElement that will be used as', 'the arrow.'].join(' '));
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
|
|
481
492
|
if (!contains(state.elements.popper, arrowElement)) {
|
|
493
|
+
if ("development" !== "production") {
|
|
494
|
+
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
|
495
|
+
}
|
|
482
496
|
|
|
483
497
|
return;
|
|
484
498
|
}
|
|
@@ -601,6 +615,16 @@ function computeStyles(_ref4) {
|
|
|
601
615
|
_options$roundOffsets = options.roundOffsets,
|
|
602
616
|
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
603
617
|
|
|
618
|
+
if ("development" !== "production") {
|
|
619
|
+
var transitionProperty = getComputedStyle(state.elements.popper).transitionProperty || '';
|
|
620
|
+
|
|
621
|
+
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
|
|
622
|
+
return transitionProperty.indexOf(property) >= 0;
|
|
623
|
+
})) {
|
|
624
|
+
console.warn(['Popper: Detected CSS transitions on at least one of the following', 'CSS properties: "transform", "top", "right", "bottom", "left".', '\n\n', 'Disable the "computeStyles" modifier\'s `adaptive` option to allow', 'for smooth transitions, or remove these properties from the CSS', 'transition declaration on the popper element if only transitioning', 'opacity or background-color for example.', '\n\n', 'We recommend using the popper element as a wrapper around an inner', 'element that can have any CSS property transitioned for animations.'].join(' '));
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
|
|
604
628
|
var commonStyles = {
|
|
605
629
|
placement: getBasePlacement(state.placement),
|
|
606
630
|
variation: getVariation(state.placement),
|
|
@@ -965,6 +989,8 @@ function computeOffsets(_ref) {
|
|
|
965
989
|
case end:
|
|
966
990
|
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
967
991
|
break;
|
|
992
|
+
|
|
993
|
+
default:
|
|
968
994
|
}
|
|
969
995
|
}
|
|
970
996
|
|
|
@@ -1048,6 +1074,10 @@ function computeAutoPlacement(state, options) {
|
|
|
1048
1074
|
|
|
1049
1075
|
if (allowedPlacements.length === 0) {
|
|
1050
1076
|
allowedPlacements = placements$1;
|
|
1077
|
+
|
|
1078
|
+
if ("development" !== "production") {
|
|
1079
|
+
console.error(['Popper: The `allowedAutoPlacements` option did not allow any', 'placements. Ensure the `placement` option matches the variation', 'of the allowed placements.', 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(' '));
|
|
1080
|
+
}
|
|
1051
1081
|
} // $FlowFixMe[incompatible-type]: Flow seems to have problems with two array unions...
|
|
1052
1082
|
|
|
1053
1083
|
|
|
@@ -1486,9 +1516,9 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
|
1486
1516
|
}
|
|
1487
1517
|
|
|
1488
1518
|
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
1489
|
-
isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
1519
|
+
var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
1490
1520
|
var documentElement = getDocumentElement(offsetParent);
|
|
1491
|
-
var rect = getBoundingClientRect(elementOrVirtualElement);
|
|
1521
|
+
var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
|
|
1492
1522
|
var scroll = {
|
|
1493
1523
|
scrollLeft: 0,
|
|
1494
1524
|
scrollTop: 0
|
|
@@ -1505,7 +1535,7 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
|
1505
1535
|
}
|
|
1506
1536
|
|
|
1507
1537
|
if (isHTMLElement(offsetParent)) {
|
|
1508
|
-
offsets = getBoundingClientRect(offsetParent);
|
|
1538
|
+
offsets = getBoundingClientRect(offsetParent, true);
|
|
1509
1539
|
offsets.x += offsetParent.clientLeft;
|
|
1510
1540
|
offsets.y += offsetParent.clientTop;
|
|
1511
1541
|
} else if (documentElement) {
|
|
@@ -1580,6 +1610,108 @@ function debounce(fn) {
|
|
|
1580
1610
|
};
|
|
1581
1611
|
}
|
|
1582
1612
|
|
|
1613
|
+
function format$1(str) {
|
|
1614
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
1615
|
+
args[_key - 1] = arguments[_key];
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
return [].concat(args).reduce(function (p, c) {
|
|
1619
|
+
return p.replace(/%s/, c);
|
|
1620
|
+
}, str);
|
|
1621
|
+
}
|
|
1622
|
+
|
|
1623
|
+
var INVALID_MODIFIER_ERROR = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s';
|
|
1624
|
+
var MISSING_DEPENDENCY_ERROR = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available';
|
|
1625
|
+
var VALID_PROPERTIES = ['name', 'enabled', 'phase', 'fn', 'effect', 'requires', 'options'];
|
|
1626
|
+
function validateModifiers(modifiers) {
|
|
1627
|
+
modifiers.forEach(function (modifier) {
|
|
1628
|
+
[].concat(Object.keys(modifier), VALID_PROPERTIES) // IE11-compatible replacement for `new Set(iterable)`
|
|
1629
|
+
.filter(function (value, index, self) {
|
|
1630
|
+
return self.indexOf(value) === index;
|
|
1631
|
+
}).forEach(function (key) {
|
|
1632
|
+
switch (key) {
|
|
1633
|
+
case 'name':
|
|
1634
|
+
if (typeof modifier.name !== 'string') {
|
|
1635
|
+
console.error(format$1(INVALID_MODIFIER_ERROR, String(modifier.name), '"name"', '"string"', "\"" + String(modifier.name) + "\""));
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
break;
|
|
1639
|
+
|
|
1640
|
+
case 'enabled':
|
|
1641
|
+
if (typeof modifier.enabled !== 'boolean') {
|
|
1642
|
+
console.error(format$1(INVALID_MODIFIER_ERROR, modifier.name, '"enabled"', '"boolean"', "\"" + String(modifier.enabled) + "\""));
|
|
1643
|
+
}
|
|
1644
|
+
|
|
1645
|
+
break;
|
|
1646
|
+
|
|
1647
|
+
case 'phase':
|
|
1648
|
+
if (modifierPhases.indexOf(modifier.phase) < 0) {
|
|
1649
|
+
console.error(format$1(INVALID_MODIFIER_ERROR, modifier.name, '"phase"', "either " + modifierPhases.join(', '), "\"" + String(modifier.phase) + "\""));
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
break;
|
|
1653
|
+
|
|
1654
|
+
case 'fn':
|
|
1655
|
+
if (typeof modifier.fn !== 'function') {
|
|
1656
|
+
console.error(format$1(INVALID_MODIFIER_ERROR, modifier.name, '"fn"', '"function"', "\"" + String(modifier.fn) + "\""));
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
break;
|
|
1660
|
+
|
|
1661
|
+
case 'effect':
|
|
1662
|
+
if (modifier.effect != null && typeof modifier.effect !== 'function') {
|
|
1663
|
+
console.error(format$1(INVALID_MODIFIER_ERROR, modifier.name, '"effect"', '"function"', "\"" + String(modifier.fn) + "\""));
|
|
1664
|
+
}
|
|
1665
|
+
|
|
1666
|
+
break;
|
|
1667
|
+
|
|
1668
|
+
case 'requires':
|
|
1669
|
+
if (modifier.requires != null && !Array.isArray(modifier.requires)) {
|
|
1670
|
+
console.error(format$1(INVALID_MODIFIER_ERROR, modifier.name, '"requires"', '"array"', "\"" + String(modifier.requires) + "\""));
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
break;
|
|
1674
|
+
|
|
1675
|
+
case 'requiresIfExists':
|
|
1676
|
+
if (!Array.isArray(modifier.requiresIfExists)) {
|
|
1677
|
+
console.error(format$1(INVALID_MODIFIER_ERROR, modifier.name, '"requiresIfExists"', '"array"', "\"" + String(modifier.requiresIfExists) + "\""));
|
|
1678
|
+
}
|
|
1679
|
+
|
|
1680
|
+
break;
|
|
1681
|
+
|
|
1682
|
+
case 'options':
|
|
1683
|
+
case 'data':
|
|
1684
|
+
break;
|
|
1685
|
+
|
|
1686
|
+
default:
|
|
1687
|
+
console.error("PopperJS: an invalid property has been provided to the \"" + modifier.name + "\" modifier, valid properties are " + VALID_PROPERTIES.map(function (s) {
|
|
1688
|
+
return "\"" + s + "\"";
|
|
1689
|
+
}).join(', ') + "; but \"" + key + "\" was provided.");
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
modifier.requires && modifier.requires.forEach(function (requirement) {
|
|
1693
|
+
if (modifiers.find(function (mod) {
|
|
1694
|
+
return mod.name === requirement;
|
|
1695
|
+
}) == null) {
|
|
1696
|
+
console.error(format$1(MISSING_DEPENDENCY_ERROR, String(modifier.name), requirement, requirement));
|
|
1697
|
+
}
|
|
1698
|
+
});
|
|
1699
|
+
});
|
|
1700
|
+
});
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
function uniqueBy(arr, fn) {
|
|
1704
|
+
var identifiers = new Set();
|
|
1705
|
+
return arr.filter(function (item) {
|
|
1706
|
+
var identifier = fn(item);
|
|
1707
|
+
|
|
1708
|
+
if (!identifiers.has(identifier)) {
|
|
1709
|
+
identifiers.add(identifier);
|
|
1710
|
+
return true;
|
|
1711
|
+
}
|
|
1712
|
+
});
|
|
1713
|
+
}
|
|
1714
|
+
|
|
1583
1715
|
function mergeByName(modifiers) {
|
|
1584
1716
|
var merged = modifiers.reduce(function (merged, current) {
|
|
1585
1717
|
var existing = merged[current.name];
|
|
@@ -1595,6 +1727,8 @@ function mergeByName(modifiers) {
|
|
|
1595
1727
|
});
|
|
1596
1728
|
}
|
|
1597
1729
|
|
|
1730
|
+
var INVALID_ELEMENT_ERROR = 'Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.';
|
|
1731
|
+
var INFINITE_LOOP_ERROR = 'Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.';
|
|
1598
1732
|
var DEFAULT_OPTIONS = {
|
|
1599
1733
|
placement: 'bottom',
|
|
1600
1734
|
modifiers: [],
|
|
@@ -1657,6 +1791,40 @@ function popperGenerator(generatorOptions) {
|
|
|
1657
1791
|
state.orderedModifiers = orderedModifiers.filter(function (m) {
|
|
1658
1792
|
return m.enabled;
|
|
1659
1793
|
}); // Validate the provided modifiers so that the consumer will get warned
|
|
1794
|
+
// if one of the modifiers is invalid for any reason
|
|
1795
|
+
|
|
1796
|
+
if ("development" !== "production") {
|
|
1797
|
+
var modifiers = uniqueBy([].concat(orderedModifiers, state.options.modifiers), function (_ref) {
|
|
1798
|
+
var name = _ref.name;
|
|
1799
|
+
return name;
|
|
1800
|
+
});
|
|
1801
|
+
validateModifiers(modifiers);
|
|
1802
|
+
|
|
1803
|
+
if (getBasePlacement(state.options.placement) === auto) {
|
|
1804
|
+
var flipModifier = state.orderedModifiers.find(function (_ref2) {
|
|
1805
|
+
var name = _ref2.name;
|
|
1806
|
+
return name === 'flip';
|
|
1807
|
+
});
|
|
1808
|
+
|
|
1809
|
+
if (!flipModifier) {
|
|
1810
|
+
console.error(['Popper: "auto" placements require the "flip" modifier be', 'present and enabled to work.'].join(' '));
|
|
1811
|
+
}
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1814
|
+
var _getComputedStyle = getComputedStyle(popper),
|
|
1815
|
+
marginTop = _getComputedStyle.marginTop,
|
|
1816
|
+
marginRight = _getComputedStyle.marginRight,
|
|
1817
|
+
marginBottom = _getComputedStyle.marginBottom,
|
|
1818
|
+
marginLeft = _getComputedStyle.marginLeft; // We no longer take into account `margins` on the popper, and it can
|
|
1819
|
+
// cause bugs with positioning, so we'll warn the consumer
|
|
1820
|
+
|
|
1821
|
+
|
|
1822
|
+
if ([marginTop, marginRight, marginBottom, marginLeft].some(function (margin) {
|
|
1823
|
+
return parseFloat(margin);
|
|
1824
|
+
})) {
|
|
1825
|
+
console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', 'between the popper and its reference element or boundary.', 'To replicate margin, use the `offset` modifier, as well as', 'the `padding` option in the `preventOverflow` and `flip`', 'modifiers.'].join(' '));
|
|
1826
|
+
}
|
|
1827
|
+
}
|
|
1660
1828
|
|
|
1661
1829
|
runModifierEffects();
|
|
1662
1830
|
return instance.update();
|
|
@@ -1677,6 +1845,9 @@ function popperGenerator(generatorOptions) {
|
|
|
1677
1845
|
// anymore
|
|
1678
1846
|
|
|
1679
1847
|
if (!areValidElements(reference, popper)) {
|
|
1848
|
+
if ("development" !== "production") {
|
|
1849
|
+
console.error(INVALID_ELEMENT_ERROR);
|
|
1850
|
+
}
|
|
1680
1851
|
|
|
1681
1852
|
return;
|
|
1682
1853
|
} // Store the reference and popper rects to be read by modifiers
|
|
@@ -1700,8 +1871,17 @@ function popperGenerator(generatorOptions) {
|
|
|
1700
1871
|
state.orderedModifiers.forEach(function (modifier) {
|
|
1701
1872
|
return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
|
|
1702
1873
|
});
|
|
1874
|
+
var __debug_loops__ = 0;
|
|
1703
1875
|
|
|
1704
1876
|
for (var index = 0; index < state.orderedModifiers.length; index++) {
|
|
1877
|
+
if ("development" !== "production") {
|
|
1878
|
+
__debug_loops__ += 1;
|
|
1879
|
+
|
|
1880
|
+
if (__debug_loops__ > 100) {
|
|
1881
|
+
console.error(INFINITE_LOOP_ERROR);
|
|
1882
|
+
break;
|
|
1883
|
+
}
|
|
1884
|
+
}
|
|
1705
1885
|
|
|
1706
1886
|
if (state.reset === true) {
|
|
1707
1887
|
state.reset = false;
|
|
@@ -1740,6 +1920,9 @@ function popperGenerator(generatorOptions) {
|
|
|
1740
1920
|
};
|
|
1741
1921
|
|
|
1742
1922
|
if (!areValidElements(reference, popper)) {
|
|
1923
|
+
if ("development" !== "production") {
|
|
1924
|
+
console.error(INVALID_ELEMENT_ERROR);
|
|
1925
|
+
}
|
|
1743
1926
|
|
|
1744
1927
|
return instance;
|
|
1745
1928
|
}
|
|
@@ -1786,6 +1969,12 @@ function popperGenerator(generatorOptions) {
|
|
|
1786
1969
|
return instance;
|
|
1787
1970
|
};
|
|
1788
1971
|
}
|
|
1972
|
+
var createPopper$2 = /*#__PURE__*/popperGenerator(); // eslint-disable-next-line import/no-unused-modules
|
|
1973
|
+
|
|
1974
|
+
var defaultModifiers$1 = [eventListeners, popperOffsets$1, computeStyles$1, applyStyles$1];
|
|
1975
|
+
var createPopper$1 = /*#__PURE__*/popperGenerator({
|
|
1976
|
+
defaultModifiers: defaultModifiers$1
|
|
1977
|
+
}); // eslint-disable-next-line import/no-unused-modules
|
|
1789
1978
|
|
|
1790
1979
|
var defaultModifiers = [eventListeners, popperOffsets$1, computeStyles$1, applyStyles$1, offset$1, flip$1, preventOverflow$1, arrow$1, hide$1];
|
|
1791
1980
|
var createPopper = /*#__PURE__*/popperGenerator({
|
|
@@ -1885,11 +2074,19 @@ function createCommonjsModule(fn, basedir, module) {
|
|
|
1885
2074
|
path: basedir,
|
|
1886
2075
|
exports: {},
|
|
1887
2076
|
require: function (path, base) {
|
|
1888
|
-
return commonjsRequire();
|
|
2077
|
+
return commonjsRequire(path, (base === undefined || base === null) ? module.path : base);
|
|
1889
2078
|
}
|
|
1890
2079
|
}, fn(module, module.exports), module.exports;
|
|
1891
2080
|
}
|
|
1892
2081
|
|
|
2082
|
+
function getDefaultExportFromNamespaceIfPresent (n) {
|
|
2083
|
+
return n && Object.prototype.hasOwnProperty.call(n, 'default') ? n['default'] : n;
|
|
2084
|
+
}
|
|
2085
|
+
|
|
2086
|
+
function getDefaultExportFromNamespaceIfNotNamed (n) {
|
|
2087
|
+
return n && Object.prototype.hasOwnProperty.call(n, 'default') && Object.keys(n).length === 1 ? n['default'] : n;
|
|
2088
|
+
}
|
|
2089
|
+
|
|
1893
2090
|
function getAugmentedNamespace(n) {
|
|
1894
2091
|
if (n.__esModule) return n;
|
|
1895
2092
|
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
@@ -1942,7 +2139,14 @@ var pdf = createCommonjsModule(function (module, exports) {
|
|
|
1942
2139
|
*/
|
|
1943
2140
|
|
|
1944
2141
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
1945
|
-
|
|
2142
|
+
if('object' === 'object' && 'object' === 'object')
|
|
2143
|
+
module.exports = factory();
|
|
2144
|
+
else if(typeof undefined === 'function' && undefined.amd)
|
|
2145
|
+
undefined("pdfjs-dist/build/pdf", [], factory);
|
|
2146
|
+
else if('object' === 'object')
|
|
2147
|
+
exports["pdfjs-dist/build/pdf"] = factory();
|
|
2148
|
+
else
|
|
2149
|
+
root["pdfjs-dist/build/pdf"] = root.pdfjsLib = factory();
|
|
1946
2150
|
})(commonjsGlobal, function() {
|
|
1947
2151
|
return /******/ (function(modules) { // webpackBootstrap
|
|
1948
2152
|
/******/ // The module cache
|
|
@@ -2034,6 +2238,8 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
2034
2238
|
/* 0 */
|
|
2035
2239
|
/***/ (function(module, exports, __w_pdfjs_require__) {
|
|
2036
2240
|
|
|
2241
|
+
"use strict";
|
|
2242
|
+
|
|
2037
2243
|
|
|
2038
2244
|
Object.defineProperty(exports, "__esModule", {
|
|
2039
2245
|
value: true
|
|
@@ -2246,6 +2452,9 @@ var _worker_options = __w_pdfjs_require__(10);
|
|
|
2246
2452
|
var _text_layer = __w_pdfjs_require__(17);
|
|
2247
2453
|
|
|
2248
2454
|
var _svg = __w_pdfjs_require__(18);
|
|
2455
|
+
|
|
2456
|
+
const pdfjsVersion = '2.5.207';
|
|
2457
|
+
const pdfjsBuild = '0974d605';
|
|
2249
2458
|
{
|
|
2250
2459
|
const {
|
|
2251
2460
|
isNodeJS
|
|
@@ -2280,6 +2489,8 @@ var _svg = __w_pdfjs_require__(18);
|
|
|
2280
2489
|
/* 1 */
|
|
2281
2490
|
/***/ (function(module, exports, __w_pdfjs_require__) {
|
|
2282
2491
|
|
|
2492
|
+
"use strict";
|
|
2493
|
+
|
|
2283
2494
|
|
|
2284
2495
|
Object.defineProperty(exports, "__esModule", {
|
|
2285
2496
|
value: true
|
|
@@ -2778,6 +2989,8 @@ exports.PDFDateString = PDFDateString;
|
|
|
2778
2989
|
/* 2 */
|
|
2779
2990
|
/***/ (function(module, exports, __w_pdfjs_require__) {
|
|
2780
2991
|
|
|
2992
|
+
"use strict";
|
|
2993
|
+
|
|
2781
2994
|
|
|
2782
2995
|
Object.defineProperty(exports, "__esModule", {
|
|
2783
2996
|
value: true
|
|
@@ -3604,13 +3817,19 @@ exports.createObjectURL = createObjectURL;
|
|
|
3604
3817
|
/* 3 */
|
|
3605
3818
|
/***/ (function(module, exports, __w_pdfjs_require__) {
|
|
3606
3819
|
|
|
3820
|
+
"use strict";
|
|
3821
|
+
|
|
3822
|
+
|
|
3823
|
+
var _is_node = __w_pdfjs_require__(4);
|
|
3607
3824
|
|
|
3608
|
-
|
|
3825
|
+
;
|
|
3609
3826
|
|
|
3610
3827
|
/***/ }),
|
|
3611
3828
|
/* 4 */
|
|
3612
3829
|
/***/ (function(module, exports, __w_pdfjs_require__) {
|
|
3613
3830
|
|
|
3831
|
+
"use strict";
|
|
3832
|
+
|
|
3614
3833
|
|
|
3615
3834
|
Object.defineProperty(exports, "__esModule", {
|
|
3616
3835
|
value: true
|
|
@@ -3623,6 +3842,8 @@ exports.isNodeJS = isNodeJS;
|
|
|
3623
3842
|
/* 5 */
|
|
3624
3843
|
/***/ (function(module, exports, __w_pdfjs_require__) {
|
|
3625
3844
|
|
|
3845
|
+
"use strict";
|
|
3846
|
+
|
|
3626
3847
|
|
|
3627
3848
|
Object.defineProperty(exports, "__esModule", {
|
|
3628
3849
|
value: true
|
|
@@ -5704,6 +5925,8 @@ exports.build = build;
|
|
|
5704
5925
|
/* 6 */
|
|
5705
5926
|
/***/ (function(module, exports, __w_pdfjs_require__) {
|
|
5706
5927
|
|
|
5928
|
+
"use strict";
|
|
5929
|
+
|
|
5707
5930
|
|
|
5708
5931
|
Object.defineProperty(exports, "__esModule", {
|
|
5709
5932
|
value: true
|
|
@@ -6089,6 +6312,8 @@ exports.FontFaceObject = FontFaceObject;
|
|
|
6089
6312
|
/* 7 */
|
|
6090
6313
|
/***/ (function(module, exports, __w_pdfjs_require__) {
|
|
6091
6314
|
|
|
6315
|
+
"use strict";
|
|
6316
|
+
|
|
6092
6317
|
|
|
6093
6318
|
Object.defineProperty(exports, "__esModule", {
|
|
6094
6319
|
value: true
|
|
@@ -6112,6 +6337,8 @@ exports.apiCompatibilityParams = apiCompatibilityParams;
|
|
|
6112
6337
|
/* 8 */
|
|
6113
6338
|
/***/ (function(module, exports, __w_pdfjs_require__) {
|
|
6114
6339
|
|
|
6340
|
+
"use strict";
|
|
6341
|
+
|
|
6115
6342
|
|
|
6116
6343
|
Object.defineProperty(exports, "__esModule", {
|
|
6117
6344
|
value: true
|
|
@@ -6126,6 +6353,7 @@ var MIN_FONT_SIZE = 16;
|
|
|
6126
6353
|
var MAX_FONT_SIZE = 100;
|
|
6127
6354
|
var MAX_GROUP_SIZE = 4096;
|
|
6128
6355
|
var MIN_WIDTH_FACTOR = 0.65;
|
|
6356
|
+
var COMPILE_TYPE3_GLYPHS = true;
|
|
6129
6357
|
var MAX_SIZE_TO_COMPILE = 1000;
|
|
6130
6358
|
var FULL_CHUNK_HEIGHT = 16;
|
|
6131
6359
|
|
|
@@ -7894,7 +8122,7 @@ var CanvasGraphics = function CanvasGraphicsClosure() {
|
|
|
7894
8122
|
var isPatternFill = this.current.patternFill;
|
|
7895
8123
|
var glyph = this.processingType3;
|
|
7896
8124
|
|
|
7897
|
-
if (glyph && glyph.compiled === undefined) {
|
|
8125
|
+
if (COMPILE_TYPE3_GLYPHS && glyph && glyph.compiled === undefined) {
|
|
7898
8126
|
if (width <= MAX_SIZE_TO_COMPILE && height <= MAX_SIZE_TO_COMPILE) {
|
|
7899
8127
|
glyph.compiled = compileType3Glyph({
|
|
7900
8128
|
data: img.data,
|
|
@@ -8155,6 +8383,8 @@ exports.CanvasGraphics = CanvasGraphics;
|
|
|
8155
8383
|
/* 9 */
|
|
8156
8384
|
/***/ (function(module, exports, __w_pdfjs_require__) {
|
|
8157
8385
|
|
|
8386
|
+
"use strict";
|
|
8387
|
+
|
|
8158
8388
|
|
|
8159
8389
|
Object.defineProperty(exports, "__esModule", {
|
|
8160
8390
|
value: true
|
|
@@ -8634,6 +8864,8 @@ exports.TilingPattern = TilingPattern;
|
|
|
8634
8864
|
/* 10 */
|
|
8635
8865
|
/***/ (function(module, exports, __w_pdfjs_require__) {
|
|
8636
8866
|
|
|
8867
|
+
"use strict";
|
|
8868
|
+
|
|
8637
8869
|
|
|
8638
8870
|
Object.defineProperty(exports, "__esModule", {
|
|
8639
8871
|
value: true
|
|
@@ -8648,6 +8880,8 @@ GlobalWorkerOptions.workerSrc = GlobalWorkerOptions.workerSrc === undefined ? ""
|
|
|
8648
8880
|
/* 11 */
|
|
8649
8881
|
/***/ (function(module, exports, __w_pdfjs_require__) {
|
|
8650
8882
|
|
|
8883
|
+
"use strict";
|
|
8884
|
+
|
|
8651
8885
|
|
|
8652
8886
|
Object.defineProperty(exports, "__esModule", {
|
|
8653
8887
|
value: true
|
|
@@ -9147,6 +9381,8 @@ exports.MessageHandler = MessageHandler;
|
|
|
9147
9381
|
/* 12 */
|
|
9148
9382
|
/***/ (function(module, exports, __w_pdfjs_require__) {
|
|
9149
9383
|
|
|
9384
|
+
"use strict";
|
|
9385
|
+
|
|
9150
9386
|
|
|
9151
9387
|
Object.defineProperty(exports, "__esModule", {
|
|
9152
9388
|
value: true
|
|
@@ -9273,6 +9509,8 @@ exports.Metadata = Metadata;
|
|
|
9273
9509
|
/* 13 */
|
|
9274
9510
|
/***/ (function(module, exports, __w_pdfjs_require__) {
|
|
9275
9511
|
|
|
9512
|
+
"use strict";
|
|
9513
|
+
|
|
9276
9514
|
|
|
9277
9515
|
Object.defineProperty(exports, "__esModule", {
|
|
9278
9516
|
value: true
|
|
@@ -9714,6 +9952,8 @@ exports.SimpleXMLParser = SimpleXMLParser;
|
|
|
9714
9952
|
/* 14 */
|
|
9715
9953
|
/***/ (function(module, exports, __w_pdfjs_require__) {
|
|
9716
9954
|
|
|
9955
|
+
"use strict";
|
|
9956
|
+
|
|
9717
9957
|
|
|
9718
9958
|
Object.defineProperty(exports, "__esModule", {
|
|
9719
9959
|
value: true
|
|
@@ -10067,6 +10307,8 @@ class PDFDataTransportStreamRangeReader {
|
|
|
10067
10307
|
/* 15 */
|
|
10068
10308
|
/***/ (function(module, exports, __w_pdfjs_require__) {
|
|
10069
10309
|
|
|
10310
|
+
"use strict";
|
|
10311
|
+
|
|
10070
10312
|
|
|
10071
10313
|
Object.defineProperty(exports, "__esModule", {
|
|
10072
10314
|
value: true
|
|
@@ -10512,6 +10754,8 @@ var WebGLUtils = function WebGLUtilsClosure() {
|
|
|
10512
10754
|
/* 16 */
|
|
10513
10755
|
/***/ (function(module, exports, __w_pdfjs_require__) {
|
|
10514
10756
|
|
|
10757
|
+
"use strict";
|
|
10758
|
+
|
|
10515
10759
|
|
|
10516
10760
|
Object.defineProperty(exports, "__esModule", {
|
|
10517
10761
|
value: true
|
|
@@ -10675,6 +10919,9 @@ class AnnotationElement {
|
|
|
10675
10919
|
case _util.AnnotationBorderStyleType.UNDERLINE:
|
|
10676
10920
|
container.style.borderBottomStyle = "solid";
|
|
10677
10921
|
break;
|
|
10922
|
+
|
|
10923
|
+
default:
|
|
10924
|
+
break;
|
|
10678
10925
|
}
|
|
10679
10926
|
|
|
10680
10927
|
if (data.color) {
|
|
@@ -11543,6 +11790,8 @@ exports.AnnotationLayer = AnnotationLayer;
|
|
|
11543
11790
|
/* 17 */
|
|
11544
11791
|
/***/ (function(module, exports, __w_pdfjs_require__) {
|
|
11545
11792
|
|
|
11793
|
+
"use strict";
|
|
11794
|
+
|
|
11546
11795
|
|
|
11547
11796
|
Object.defineProperty(exports, "__esModule", {
|
|
11548
11797
|
value: true
|
|
@@ -12236,6 +12485,8 @@ exports.renderTextLayer = renderTextLayer;
|
|
|
12236
12485
|
/* 18 */
|
|
12237
12486
|
/***/ (function(module, exports, __w_pdfjs_require__) {
|
|
12238
12487
|
|
|
12488
|
+
"use strict";
|
|
12489
|
+
|
|
12239
12490
|
|
|
12240
12491
|
Object.defineProperty(exports, "__esModule", {
|
|
12241
12492
|
value: true
|
|
@@ -13003,7 +13254,7 @@ exports.SVGGraphics = SVGGraphics;
|
|
|
13003
13254
|
}
|
|
13004
13255
|
|
|
13005
13256
|
current.tspan.textContent += character;
|
|
13006
|
-
}
|
|
13257
|
+
} else {}
|
|
13007
13258
|
|
|
13008
13259
|
let charWidth;
|
|
13009
13260
|
|
|
@@ -13760,6 +14011,8 @@ exports.SVGGraphics = SVGGraphics;
|
|
|
13760
14011
|
/* 19 */
|
|
13761
14012
|
/***/ (function(module, exports, __w_pdfjs_require__) {
|
|
13762
14013
|
|
|
14014
|
+
"use strict";
|
|
14015
|
+
|
|
13763
14016
|
|
|
13764
14017
|
Object.defineProperty(exports, "__esModule", {
|
|
13765
14018
|
value: true
|
|
@@ -13770,6 +14023,8 @@ var _util = __w_pdfjs_require__(2);
|
|
|
13770
14023
|
|
|
13771
14024
|
var _network_utils = __w_pdfjs_require__(20);
|
|
13772
14025
|
|
|
14026
|
+
;
|
|
14027
|
+
|
|
13773
14028
|
const fs = require$$4;
|
|
13774
14029
|
|
|
13775
14030
|
const http = require$$4;
|
|
@@ -14225,6 +14480,8 @@ class PDFNodeStreamFsRangeReader extends BaseRangeReader {
|
|
|
14225
14480
|
/* 20 */
|
|
14226
14481
|
/***/ (function(module, exports, __w_pdfjs_require__) {
|
|
14227
14482
|
|
|
14483
|
+
"use strict";
|
|
14484
|
+
|
|
14228
14485
|
|
|
14229
14486
|
Object.defineProperty(exports, "__esModule", {
|
|
14230
14487
|
value: true
|
|
@@ -14315,6 +14572,8 @@ function validateResponseStatus(status) {
|
|
|
14315
14572
|
/* 21 */
|
|
14316
14573
|
/***/ (function(module, exports, __w_pdfjs_require__) {
|
|
14317
14574
|
|
|
14575
|
+
"use strict";
|
|
14576
|
+
|
|
14318
14577
|
|
|
14319
14578
|
Object.defineProperty(exports, "__esModule", {
|
|
14320
14579
|
value: true
|
|
@@ -14501,6 +14760,8 @@ function getFilenameFromContentDispositionHeader(contentDisposition) {
|
|
|
14501
14760
|
/* 22 */
|
|
14502
14761
|
/***/ (function(module, exports, __w_pdfjs_require__) {
|
|
14503
14762
|
|
|
14763
|
+
"use strict";
|
|
14764
|
+
|
|
14504
14765
|
|
|
14505
14766
|
Object.defineProperty(exports, "__esModule", {
|
|
14506
14767
|
value: true
|
|
@@ -14510,6 +14771,8 @@ exports.PDFNetworkStream = void 0;
|
|
|
14510
14771
|
var _util = __w_pdfjs_require__(2);
|
|
14511
14772
|
|
|
14512
14773
|
var _network_utils = __w_pdfjs_require__(20);
|
|
14774
|
+
|
|
14775
|
+
;
|
|
14513
14776
|
const OK_RESPONSE = 200;
|
|
14514
14777
|
const PARTIAL_CONTENT_RESPONSE = 206;
|
|
14515
14778
|
|
|
@@ -15054,6 +15317,8 @@ class PDFNetworkStreamRangeRequestReader {
|
|
|
15054
15317
|
/* 23 */
|
|
15055
15318
|
/***/ (function(module, exports, __w_pdfjs_require__) {
|
|
15056
15319
|
|
|
15320
|
+
"use strict";
|
|
15321
|
+
|
|
15057
15322
|
|
|
15058
15323
|
Object.defineProperty(exports, "__esModule", {
|
|
15059
15324
|
value: true
|
|
@@ -15064,6 +15329,8 @@ var _util = __w_pdfjs_require__(2);
|
|
|
15064
15329
|
|
|
15065
15330
|
var _network_utils = __w_pdfjs_require__(20);
|
|
15066
15331
|
|
|
15332
|
+
;
|
|
15333
|
+
|
|
15067
15334
|
function createFetchOptions(headers, withCredentials, abortController) {
|
|
15068
15335
|
return {
|
|
15069
15336
|
method: "GET",
|
|
@@ -15342,6 +15609,9 @@ class PDFFetchStreamRangeReader {
|
|
|
15342
15609
|
|
|
15343
15610
|
const pdf$1 = /*@__PURE__*/getDefaultExportFromCjs(pdf);
|
|
15344
15611
|
|
|
15612
|
+
function format(first, middle, last) {
|
|
15613
|
+
return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
|
|
15614
|
+
}
|
|
15345
15615
|
const integerSequence = (start, count) => Array(count)
|
|
15346
15616
|
.fill(1)
|
|
15347
15617
|
.map((_, index) => index + start);
|
|
@@ -15555,24 +15825,36 @@ const CloseIcon = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" x
|
|
|
15555
15825
|
</svg>
|
|
15556
15826
|
`;
|
|
15557
15827
|
|
|
15558
|
-
const searchBoxCss = "search-box{font-family:sans-serif;font-family:var(--verdocs-font)}search-box form{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:45px;-webkit-box-sizing:border-box;box-sizing:border-box;margin:5px 0 0;border-radius:5px;-ms-flex-align:center;align-items:center;background-color:#fff;padding:0 8px;border-width:1px;border-style:solid;border-color:var(--verdocs-container-border-color)}search-box form input{-webkit-box-sizing:border-box;box-sizing:border-box;height:43px;width:100%;font-size:18px;border:none}search-box form button.search{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:4px;border:none;width:100px;height:28px;font-weight:700;font-size:10px;letter-spacing:1px;background-color:#50be80;text-transform:uppercase;color:#fff}search-box form .type{background-color:#707ae5;height:30px;display:-ms-inline-flexbox;display:inline-flex;padding:1px 0 2px 10px;font-size:13px;line-height:16px;border-radius:4px;-ms-flex-pack:center;justify-content:center;text-transform:uppercase;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;color:#fff;margin-right:10px}search-box form .type button{border:none;color:#fff;margin:5px 0 0 8px;background:transparent}search-box form svg{width:12px;height:12px;margin-right:6px}search-box ::-webkit-input-placeholder{color:#aeb4bf}search-box ::-moz-placeholder{color:#aeb4bf}search-box :-ms-input-placeholder{color:#aeb4bf}search-box ::-ms-input-placeholder{color:#aeb4bf}search-box ::placeholder{color:#aeb4bf}";
|
|
15828
|
+
const searchBoxCss = "search-box{font-family:sans-serif;font-family:var(--verdocs-font)}search-box form{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:45px;-webkit-box-sizing:border-box;box-sizing:border-box;margin:5px 0 0;border-radius:5px;-ms-flex-align:center;align-items:center;background-color:#fff;padding:0 8px;border-width:1px;border-style:solid;border-color:var(--verdocs-container-border-color)}search-box form input{-webkit-box-sizing:border-box;box-sizing:border-box;height:43px;width:100%;font-size:18px;border:none}search-box form input:focus{outline:none}search-box form button.search{cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:4px;border:none;width:100px;height:28px;font-weight:700;font-size:10px;letter-spacing:1px;background-color:#50be80;text-transform:uppercase;color:#fff}search-box form .type{background-color:#707ae5;height:30px;display:-ms-inline-flexbox;display:inline-flex;padding:1px 0 2px 10px;font-size:13px;line-height:16px;border-radius:4px;-ms-flex-pack:center;justify-content:center;text-transform:uppercase;-ms-flex-align:center;align-items:center;-ms-flex-direction:row;flex-direction:row;color:#fff;margin-right:10px}search-box form .type button{border:none;color:#fff;margin:5px 0 0 8px;background:transparent}search-box form svg{width:12px;height:12px;margin-right:6px}search-box ::-webkit-input-placeholder{color:#aeb4bf}search-box ::-moz-placeholder{color:#aeb4bf}search-box :-ms-input-placeholder{color:#aeb4bf}search-box ::-ms-input-placeholder{color:#aeb4bf}search-box ::placeholder{color:#aeb4bf}";
|
|
15559
15829
|
|
|
15560
15830
|
let SearchBox$1 = class extends HTMLElement {
|
|
15561
15831
|
constructor() {
|
|
15562
15832
|
super();
|
|
15563
15833
|
this.__registerHost();
|
|
15564
15834
|
this.search = createEvent(this, "search", 7);
|
|
15835
|
+
this.typeChanged = createEvent(this, "typeChanged", 7);
|
|
15836
|
+
this.queryChanged = createEvent(this, "queryChanged", 7);
|
|
15837
|
+
/**
|
|
15838
|
+
* If set to a value other than 'all', a removeable filter indicator will be displayed.
|
|
15839
|
+
*/
|
|
15565
15840
|
this.type = 'all';
|
|
15841
|
+
/**
|
|
15842
|
+
* The text search string entered by the user.
|
|
15843
|
+
*/
|
|
15844
|
+
this.query = '';
|
|
15566
15845
|
}
|
|
15567
|
-
|
|
15846
|
+
handleSearch(e) {
|
|
15568
15847
|
e.preventDefault();
|
|
15569
|
-
this.search.emit({ type: this.type,
|
|
15848
|
+
this.search.emit({ type: this.type, query: this.query });
|
|
15570
15849
|
}
|
|
15571
|
-
handleChange(
|
|
15572
|
-
this.
|
|
15850
|
+
handleChange(e) {
|
|
15851
|
+
this.queryChanged.emit(e.target.value);
|
|
15852
|
+
}
|
|
15853
|
+
handleClearFilter() {
|
|
15854
|
+
this.typeChanged.emit('all');
|
|
15573
15855
|
}
|
|
15574
15856
|
render() {
|
|
15575
|
-
return (h(Host, null, h("form", { onSubmit: e => this.
|
|
15857
|
+
return (h(Host, null, h("form", { onSubmit: e => this.handleSearch(e) }, this.type !== undefined && this.type !== 'all' && (h("span", { class: "type" }, this.type, "s ", h("button", { class: "remove", innerHTML: CloseIcon, onClick: this.handleClearFilter }))), h("input", { type: "text", placeholder: "search documents, templates, people...", value: this.query, onInput: e => this.handleChange(e) }), h("button", { onClick: e => this.handleSearch(e), class: "search" }, h("span", { innerHTML: SearchIcon$2 }), "Search"))));
|
|
15576
15858
|
}
|
|
15577
15859
|
static get style() { return searchBoxCss; }
|
|
15578
15860
|
};
|
|
@@ -15583,7 +15865,7 @@ let SearchEmbed$1 = class extends HTMLElement {
|
|
|
15583
15865
|
constructor() {
|
|
15584
15866
|
super();
|
|
15585
15867
|
this.__registerHost();
|
|
15586
|
-
|
|
15868
|
+
this.__attachShadow();
|
|
15587
15869
|
}
|
|
15588
15870
|
render() {
|
|
15589
15871
|
return (h(Host, null, h("slot", null)));
|
|
@@ -15616,6 +15898,8 @@ let SearchQuickFunctions$1 = class extends HTMLElement {
|
|
|
15616
15898
|
static get style() { return searchQuickFunctionsCss; }
|
|
15617
15899
|
};
|
|
15618
15900
|
|
|
15901
|
+
'use strict';
|
|
15902
|
+
|
|
15619
15903
|
var bind = function bind(fn, thisArg) {
|
|
15620
15904
|
return function wrap() {
|
|
15621
15905
|
var args = new Array(arguments.length);
|
|
@@ -15626,6 +15910,10 @@ var bind = function bind(fn, thisArg) {
|
|
|
15626
15910
|
};
|
|
15627
15911
|
};
|
|
15628
15912
|
|
|
15913
|
+
'use strict';
|
|
15914
|
+
|
|
15915
|
+
|
|
15916
|
+
|
|
15629
15917
|
// utils is a library of generic helper functions non-specific to axios
|
|
15630
15918
|
|
|
15631
15919
|
var toString = Object.prototype.toString;
|
|
@@ -15972,6 +16260,10 @@ var utils = {
|
|
|
15972
16260
|
stripBOM: stripBOM
|
|
15973
16261
|
};
|
|
15974
16262
|
|
|
16263
|
+
'use strict';
|
|
16264
|
+
|
|
16265
|
+
|
|
16266
|
+
|
|
15975
16267
|
function encode(val) {
|
|
15976
16268
|
return encodeURIComponent(val).
|
|
15977
16269
|
replace(/%3A/gi, ':').
|
|
@@ -16039,6 +16331,10 @@ var buildURL = function buildURL(url, params, paramsSerializer) {
|
|
|
16039
16331
|
return url;
|
|
16040
16332
|
};
|
|
16041
16333
|
|
|
16334
|
+
'use strict';
|
|
16335
|
+
|
|
16336
|
+
|
|
16337
|
+
|
|
16042
16338
|
function InterceptorManager() {
|
|
16043
16339
|
this.handlers = [];
|
|
16044
16340
|
}
|
|
@@ -16090,6 +16386,10 @@ InterceptorManager.prototype.forEach = function forEach(fn) {
|
|
|
16090
16386
|
|
|
16091
16387
|
var InterceptorManager_1 = InterceptorManager;
|
|
16092
16388
|
|
|
16389
|
+
'use strict';
|
|
16390
|
+
|
|
16391
|
+
|
|
16392
|
+
|
|
16093
16393
|
var normalizeHeaderName = function normalizeHeaderName(headers, normalizedName) {
|
|
16094
16394
|
utils.forEach(headers, function processHeader(value, name) {
|
|
16095
16395
|
if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {
|
|
@@ -16099,6 +16399,8 @@ var normalizeHeaderName = function normalizeHeaderName(headers, normalizedName)
|
|
|
16099
16399
|
});
|
|
16100
16400
|
};
|
|
16101
16401
|
|
|
16402
|
+
'use strict';
|
|
16403
|
+
|
|
16102
16404
|
/**
|
|
16103
16405
|
* Update an Error with the specified config, error code, and response.
|
|
16104
16406
|
*
|
|
@@ -16140,6 +16442,10 @@ var enhanceError = function enhanceError(error, config, code, request, response)
|
|
|
16140
16442
|
return error;
|
|
16141
16443
|
};
|
|
16142
16444
|
|
|
16445
|
+
'use strict';
|
|
16446
|
+
|
|
16447
|
+
|
|
16448
|
+
|
|
16143
16449
|
/**
|
|
16144
16450
|
* Create an Error with the specified message, config, error code, request and response.
|
|
16145
16451
|
*
|
|
@@ -16155,6 +16461,10 @@ var createError = function createError(message, config, code, request, response)
|
|
|
16155
16461
|
return enhanceError(error, config, code, request, response);
|
|
16156
16462
|
};
|
|
16157
16463
|
|
|
16464
|
+
'use strict';
|
|
16465
|
+
|
|
16466
|
+
|
|
16467
|
+
|
|
16158
16468
|
/**
|
|
16159
16469
|
* Resolve or reject a Promise based on response status.
|
|
16160
16470
|
*
|
|
@@ -16177,6 +16487,10 @@ var settle = function settle(resolve, reject, response) {
|
|
|
16177
16487
|
}
|
|
16178
16488
|
};
|
|
16179
16489
|
|
|
16490
|
+
'use strict';
|
|
16491
|
+
|
|
16492
|
+
|
|
16493
|
+
|
|
16180
16494
|
var cookies = (
|
|
16181
16495
|
utils.isStandardBrowserEnv() ?
|
|
16182
16496
|
|
|
@@ -16227,6 +16541,8 @@ var cookies = (
|
|
|
16227
16541
|
})()
|
|
16228
16542
|
);
|
|
16229
16543
|
|
|
16544
|
+
'use strict';
|
|
16545
|
+
|
|
16230
16546
|
/**
|
|
16231
16547
|
* Determines whether the specified URL is absolute
|
|
16232
16548
|
*
|
|
@@ -16240,6 +16556,8 @@ var isAbsoluteURL = function isAbsoluteURL(url) {
|
|
|
16240
16556
|
return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
|
|
16241
16557
|
};
|
|
16242
16558
|
|
|
16559
|
+
'use strict';
|
|
16560
|
+
|
|
16243
16561
|
/**
|
|
16244
16562
|
* Creates a new URL by combining the specified URLs
|
|
16245
16563
|
*
|
|
@@ -16253,6 +16571,11 @@ var combineURLs = function combineURLs(baseURL, relativeURL) {
|
|
|
16253
16571
|
: baseURL;
|
|
16254
16572
|
};
|
|
16255
16573
|
|
|
16574
|
+
'use strict';
|
|
16575
|
+
|
|
16576
|
+
|
|
16577
|
+
|
|
16578
|
+
|
|
16256
16579
|
/**
|
|
16257
16580
|
* Creates a new URL by combining the baseURL with the requestedURL,
|
|
16258
16581
|
* only when the requestedURL is not already an absolute URL.
|
|
@@ -16269,6 +16592,10 @@ var buildFullPath = function buildFullPath(baseURL, requestedURL) {
|
|
|
16269
16592
|
return requestedURL;
|
|
16270
16593
|
};
|
|
16271
16594
|
|
|
16595
|
+
'use strict';
|
|
16596
|
+
|
|
16597
|
+
|
|
16598
|
+
|
|
16272
16599
|
// Headers whose duplicates are ignored by node
|
|
16273
16600
|
// c.f. https://nodejs.org/api/http.html#http_message_headers
|
|
16274
16601
|
var ignoreDuplicateOf = [
|
|
@@ -16319,6 +16646,10 @@ var parseHeaders = function parseHeaders(headers) {
|
|
|
16319
16646
|
return parsed;
|
|
16320
16647
|
};
|
|
16321
16648
|
|
|
16649
|
+
'use strict';
|
|
16650
|
+
|
|
16651
|
+
|
|
16652
|
+
|
|
16322
16653
|
var isURLSameOrigin = (
|
|
16323
16654
|
utils.isStandardBrowserEnv() ?
|
|
16324
16655
|
|
|
@@ -16384,6 +16715,17 @@ var isURLSameOrigin = (
|
|
|
16384
16715
|
})()
|
|
16385
16716
|
);
|
|
16386
16717
|
|
|
16718
|
+
'use strict';
|
|
16719
|
+
|
|
16720
|
+
|
|
16721
|
+
|
|
16722
|
+
|
|
16723
|
+
|
|
16724
|
+
|
|
16725
|
+
|
|
16726
|
+
|
|
16727
|
+
|
|
16728
|
+
|
|
16387
16729
|
var xhr = function xhrAdapter(config) {
|
|
16388
16730
|
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
|
16389
16731
|
var requestData = config.data;
|
|
@@ -16563,6 +16905,12 @@ var xhr = function xhrAdapter(config) {
|
|
|
16563
16905
|
});
|
|
16564
16906
|
};
|
|
16565
16907
|
|
|
16908
|
+
'use strict';
|
|
16909
|
+
|
|
16910
|
+
|
|
16911
|
+
|
|
16912
|
+
|
|
16913
|
+
|
|
16566
16914
|
var DEFAULT_CONTENT_TYPE = {
|
|
16567
16915
|
'Content-Type': 'application/x-www-form-urlencoded'
|
|
16568
16916
|
};
|
|
@@ -16692,6 +17040,11 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
|
16692
17040
|
|
|
16693
17041
|
var defaults_1 = defaults;
|
|
16694
17042
|
|
|
17043
|
+
'use strict';
|
|
17044
|
+
|
|
17045
|
+
|
|
17046
|
+
|
|
17047
|
+
|
|
16695
17048
|
/**
|
|
16696
17049
|
* Transform the data for a request or a response
|
|
16697
17050
|
*
|
|
@@ -16710,10 +17063,19 @@ var transformData = function transformData(data, headers, fns) {
|
|
|
16710
17063
|
return data;
|
|
16711
17064
|
};
|
|
16712
17065
|
|
|
17066
|
+
'use strict';
|
|
17067
|
+
|
|
16713
17068
|
var isCancel = function isCancel(value) {
|
|
16714
17069
|
return !!(value && value.__CANCEL__);
|
|
16715
17070
|
};
|
|
16716
17071
|
|
|
17072
|
+
'use strict';
|
|
17073
|
+
|
|
17074
|
+
|
|
17075
|
+
|
|
17076
|
+
|
|
17077
|
+
|
|
17078
|
+
|
|
16717
17079
|
/**
|
|
16718
17080
|
* Throws a `Cancel` if cancellation has been requested.
|
|
16719
17081
|
*/
|
|
@@ -16790,6 +17152,10 @@ var dispatchRequest = function dispatchRequest(config) {
|
|
|
16790
17152
|
});
|
|
16791
17153
|
};
|
|
16792
17154
|
|
|
17155
|
+
'use strict';
|
|
17156
|
+
|
|
17157
|
+
|
|
17158
|
+
|
|
16793
17159
|
/**
|
|
16794
17160
|
* Config-specific merge-function which creates a new config-object
|
|
16795
17161
|
* by merging two configuration objects together.
|
|
@@ -17019,6 +17385,10 @@ const pkg = {
|
|
|
17019
17385
|
version: version
|
|
17020
17386
|
};
|
|
17021
17387
|
|
|
17388
|
+
'use strict';
|
|
17389
|
+
|
|
17390
|
+
|
|
17391
|
+
|
|
17022
17392
|
var validators$1 = {};
|
|
17023
17393
|
|
|
17024
17394
|
// eslint-disable-next-line func-names
|
|
@@ -17121,6 +17491,15 @@ var validator = {
|
|
|
17121
17491
|
validators: validators$1
|
|
17122
17492
|
};
|
|
17123
17493
|
|
|
17494
|
+
'use strict';
|
|
17495
|
+
|
|
17496
|
+
|
|
17497
|
+
|
|
17498
|
+
|
|
17499
|
+
|
|
17500
|
+
|
|
17501
|
+
|
|
17502
|
+
|
|
17124
17503
|
var validators = validator.validators;
|
|
17125
17504
|
/**
|
|
17126
17505
|
* Create a new instance of Axios
|
|
@@ -17261,6 +17640,8 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
|
17261
17640
|
|
|
17262
17641
|
var Axios_1 = Axios;
|
|
17263
17642
|
|
|
17643
|
+
'use strict';
|
|
17644
|
+
|
|
17264
17645
|
/**
|
|
17265
17646
|
* A `Cancel` is an object that is thrown when an operation is canceled.
|
|
17266
17647
|
*
|
|
@@ -17279,6 +17660,10 @@ Cancel.prototype.__CANCEL__ = true;
|
|
|
17279
17660
|
|
|
17280
17661
|
var Cancel_1 = Cancel;
|
|
17281
17662
|
|
|
17663
|
+
'use strict';
|
|
17664
|
+
|
|
17665
|
+
|
|
17666
|
+
|
|
17282
17667
|
/**
|
|
17283
17668
|
* A `CancelToken` is an object that can be used to request cancellation of an operation.
|
|
17284
17669
|
*
|
|
@@ -17333,6 +17718,8 @@ CancelToken.source = function source() {
|
|
|
17333
17718
|
|
|
17334
17719
|
var CancelToken_1 = CancelToken;
|
|
17335
17720
|
|
|
17721
|
+
'use strict';
|
|
17722
|
+
|
|
17336
17723
|
/**
|
|
17337
17724
|
* Syntactic sugar for invoking a function and expanding an array for arguments.
|
|
17338
17725
|
*
|
|
@@ -17359,6 +17746,8 @@ var spread = function spread(callback) {
|
|
|
17359
17746
|
};
|
|
17360
17747
|
};
|
|
17361
17748
|
|
|
17749
|
+
'use strict';
|
|
17750
|
+
|
|
17362
17751
|
/**
|
|
17363
17752
|
* Determines whether the payload is an error thrown by Axios
|
|
17364
17753
|
*
|
|
@@ -17369,6 +17758,14 @@ var isAxiosError = function isAxiosError(payload) {
|
|
|
17369
17758
|
return (typeof payload === 'object') && (payload.isAxiosError === true);
|
|
17370
17759
|
};
|
|
17371
17760
|
|
|
17761
|
+
'use strict';
|
|
17762
|
+
|
|
17763
|
+
|
|
17764
|
+
|
|
17765
|
+
|
|
17766
|
+
|
|
17767
|
+
|
|
17768
|
+
|
|
17372
17769
|
/**
|
|
17373
17770
|
* Create an instance of Axios
|
|
17374
17771
|
*
|
|
@@ -17421,25 +17818,154 @@ axios_1.default = _default;
|
|
|
17421
17818
|
|
|
17422
17819
|
var axios = axios_1;
|
|
17423
17820
|
|
|
17424
|
-
|
|
17425
|
-
//
|
|
17426
|
-
|
|
17427
|
-
//
|
|
17428
|
-
|
|
17821
|
+
"use strict";
|
|
17822
|
+
// This file provides a polyfill for managing globals in both NodeJS and browser environments. This is
|
|
17823
|
+
// an anti-pattern we'd hoped to avoid, but we have several projects dependending on one common library
|
|
17824
|
+
// (this js-sdk) and we want that library to provide a common endpoint to all callers (so authentication
|
|
17825
|
+
// tokens only need to be tracked in one place). The trouble is, one of those libraries is based on
|
|
17826
|
+
// StencilJS and is compiling its modules into Web Components. Because of how module resolution works,
|
|
17827
|
+
// when those Components load js-sdk they get a separate instance. Without messy options like having to
|
|
17828
|
+
// pass raw data from the caller to each Component, or pass around references to a common Endpoint, they
|
|
17829
|
+
// have no way to access authenticated sessions unless we make the Endpoint a true global.
|
|
17830
|
+
//
|
|
17831
|
+
// @credit https://github.com/medikoo/es5-ext/blob/master/global.js
|
|
17832
|
+
// @credit https://mathiasbynens.be/notes/globalthis
|
|
17833
|
+
var naiveFallback = function () {
|
|
17834
|
+
if (typeof self === 'object' && self)
|
|
17835
|
+
return self;
|
|
17836
|
+
if (typeof window === 'object' && window)
|
|
17837
|
+
return window;
|
|
17838
|
+
throw new Error('Unable to resolve global `this`');
|
|
17839
|
+
};
|
|
17840
|
+
var globalThis_1 = (function () {
|
|
17841
|
+
if (this)
|
|
17842
|
+
return this;
|
|
17843
|
+
// Unexpected strict mode (may happen if e.g. bundled into ESM module)
|
|
17844
|
+
// Fallback to standard globalThis if available
|
|
17845
|
+
if (typeof globalThis === 'object' && globalThis)
|
|
17846
|
+
return globalThis;
|
|
17847
|
+
// Thanks @mathiasbynens -> https://mathiasbynens.be/notes/globalthis
|
|
17848
|
+
// In all ES5+ engines global object inherits from Object.prototype
|
|
17849
|
+
// (if you approached one that doesn't please report)
|
|
17850
|
+
try {
|
|
17851
|
+
Object.defineProperty(Object.prototype, '__global__', {
|
|
17852
|
+
get: function () {
|
|
17853
|
+
return this;
|
|
17854
|
+
},
|
|
17855
|
+
configurable: true,
|
|
17856
|
+
});
|
|
17857
|
+
}
|
|
17858
|
+
catch (error) {
|
|
17859
|
+
// Unfortunate case of updates to Object.prototype being restricted
|
|
17860
|
+
// via preventExtensions, seal or freeze
|
|
17861
|
+
return naiveFallback();
|
|
17862
|
+
}
|
|
17863
|
+
try {
|
|
17864
|
+
// Safari case (window.__global__ works, but __global__ does not)
|
|
17865
|
+
if (!__global__)
|
|
17866
|
+
return naiveFallback();
|
|
17867
|
+
return __global__;
|
|
17868
|
+
}
|
|
17869
|
+
finally {
|
|
17870
|
+
delete Object.prototype.__global__;
|
|
17871
|
+
}
|
|
17872
|
+
})();
|
|
17873
|
+
|
|
17874
|
+
/**
|
|
17875
|
+
* The Transport Endpoint is a global singleton used to call Verdocs APIs. There can only be one Endpoint per application, and
|
|
17876
|
+
* its configuration settings are shared for all callers.
|
|
17877
|
+
*
|
|
17878
|
+
* @module
|
|
17879
|
+
*/
|
|
17880
|
+
var DEFAULTS = {
|
|
17429
17881
|
baseURL: 'https://api.verdocs.com/',
|
|
17430
17882
|
timeout: 3000,
|
|
17431
17883
|
headers: { 'X-Client-ID': 'NONE' },
|
|
17432
17884
|
};
|
|
17433
|
-
|
|
17434
|
-
|
|
17435
|
-
|
|
17436
|
-
|
|
17437
|
-
|
|
17438
|
-
|
|
17439
|
-
|
|
17885
|
+
// @credit https://derickbailey.com/2016/03/09/creating-a-true-singleton-in-node-js-with-es6-symbols/
|
|
17886
|
+
// Also see globalThis for comments about why we're doing this in the first place.
|
|
17887
|
+
var ENDPOINT_KEY = Symbol.for('verdocs-api-endpoint');
|
|
17888
|
+
if (!globalThis_1[ENDPOINT_KEY]) {
|
|
17889
|
+
globalThis_1[ENDPOINT_KEY] = axios.create(DEFAULTS);
|
|
17890
|
+
}
|
|
17891
|
+
var endpoint = globalThis_1[ENDPOINT_KEY];
|
|
17892
|
+
var requestLogger = function (r) {
|
|
17893
|
+
// tslint:disable-next-line
|
|
17894
|
+
console.log("[JS-SDK] " + r.method.toUpperCase() + " " + r.baseURL + r.url, r.data ? JSON.stringify(r.data) : '');
|
|
17895
|
+
return r;
|
|
17896
|
+
};
|
|
17897
|
+
/**
|
|
17898
|
+
* Set the auth token that will be used for Verdocs API calls.
|
|
17899
|
+
*
|
|
17900
|
+
* ```typescript
|
|
17901
|
+
* import {Transport} from '@verdocs/js-sdk/HTTP';
|
|
17902
|
+
*
|
|
17903
|
+
* Transport.setAuthorization(accessToken);
|
|
17904
|
+
* ```
|
|
17905
|
+
*/
|
|
17906
|
+
var setAuthorization = function (accessToken) {
|
|
17907
|
+
if (accessToken) {
|
|
17908
|
+
endpoint.defaults.headers.Authorization = "Bearer " + accessToken;
|
|
17909
|
+
}
|
|
17910
|
+
else {
|
|
17911
|
+
delete endpoint.defaults.headers.Authorization;
|
|
17912
|
+
}
|
|
17913
|
+
};
|
|
17914
|
+
/**
|
|
17915
|
+
* Set the Client ID for Verdocs API calls.
|
|
17916
|
+
*
|
|
17917
|
+
* ```typescript
|
|
17918
|
+
* import {Transport} from '@verdocs/js-sdk/HTTP';
|
|
17919
|
+
*
|
|
17920
|
+
* Transport.setClientID('1234);
|
|
17921
|
+
* ```
|
|
17922
|
+
*/
|
|
17923
|
+
var setClientID = function (clientID) {
|
|
17924
|
+
endpoint.defaults.headers['X-Client-ID'] = clientID;
|
|
17925
|
+
};
|
|
17926
|
+
/**
|
|
17927
|
+
* Set the base URL for API calls. This defaults to https://api.verdocs.com/ and should only be changed after consultation with
|
|
17928
|
+
* Verdocs Developer Support (e.g. to access a private API endpoint).
|
|
17929
|
+
*
|
|
17930
|
+
* ```typescript
|
|
17931
|
+
* import {Transport} from '@verdocs/js-sdk/HTTP';
|
|
17932
|
+
*
|
|
17933
|
+
* Transport.setBaseUrl('https://my-private-api.verdocs.com');
|
|
17934
|
+
* ```
|
|
17935
|
+
*/
|
|
17936
|
+
var setBaseUrl = function (baseUrl) {
|
|
17937
|
+
endpoint.defaults.baseURL = baseUrl;
|
|
17938
|
+
};
|
|
17939
|
+
/**
|
|
17940
|
+
* Set the timeout for API calls in milliseconds. 2000-4000ms is recommended for most purposes. 3000ms is the default.
|
|
17941
|
+
*
|
|
17942
|
+
* ```typescript
|
|
17943
|
+
* import {Transport} from '@verdocs/js-sdk/HTTP';
|
|
17944
|
+
*
|
|
17945
|
+
* Transport.setTimeout(3000);
|
|
17946
|
+
* ```
|
|
17947
|
+
*/
|
|
17948
|
+
var setTimeout$1 = function (timeout) {
|
|
17949
|
+
endpoint.defaults.timeout = timeout;
|
|
17950
|
+
};
|
|
17951
|
+
/**
|
|
17952
|
+
* Enable or disable request logging. This may expose sensitive data in the console log, so it should only be used for debugging.
|
|
17953
|
+
*
|
|
17954
|
+
* ```typescript
|
|
17955
|
+
* import {Transport} from '@verdocs/js-sdk/HTTP';
|
|
17956
|
+
*
|
|
17957
|
+
* Transport.logRequests(true);
|
|
17958
|
+
* ```
|
|
17959
|
+
*/
|
|
17960
|
+
var requestLoggerId = null;
|
|
17961
|
+
var logRequests = function (enable) {
|
|
17962
|
+
if (enable && requestLoggerId === null) {
|
|
17963
|
+
requestLoggerId = endpoint.interceptors.request.use(requestLogger);
|
|
17964
|
+
}
|
|
17965
|
+
else if (!enable && requestLoggerId !== null) {
|
|
17966
|
+
endpoint.interceptors.request.eject(requestLoggerId);
|
|
17967
|
+
}
|
|
17440
17968
|
};
|
|
17441
|
-
var endpoint;
|
|
17442
|
-
recreateEndpoint();
|
|
17443
17969
|
/**
|
|
17444
17970
|
* Helper to get the endpoint for direct access to HTTP functions.
|
|
17445
17971
|
*
|
|
@@ -17450,12 +17976,16 @@ recreateEndpoint();
|
|
|
17450
17976
|
* ```
|
|
17451
17977
|
*/
|
|
17452
17978
|
var getEndpoint = function () {
|
|
17453
|
-
if (!endpoint) {
|
|
17454
|
-
recreateEndpoint();
|
|
17455
|
-
}
|
|
17456
17979
|
return endpoint;
|
|
17457
17980
|
};
|
|
17458
17981
|
|
|
17982
|
+
/**
|
|
17983
|
+
* Verdocs provides a range of search functions to help find and retrieve content. This module provides generic functions intended
|
|
17984
|
+
* to locate items across all content types. More specific retrievals may be performed using the various "list" endpoints within
|
|
17985
|
+
* each collection (e.g. {@link Documents.Documents.searchDocuments} or {@link Templates.Templates.searchTemplates}).
|
|
17986
|
+
*
|
|
17987
|
+
* @module
|
|
17988
|
+
*/
|
|
17459
17989
|
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
17460
17990
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17461
17991
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -17509,6 +18039,38 @@ var getSearchHistory = function () { return __awaiter(void 0, void 0, void 0, fu
|
|
|
17509
18039
|
.then(function (r) { return r.data; })];
|
|
17510
18040
|
});
|
|
17511
18041
|
}); };
|
|
18042
|
+
/**
|
|
18043
|
+
* Save a search. If a name is re-used, that saved search will be overwritten with the new parameters.
|
|
18044
|
+
*
|
|
18045
|
+
* ```typescript
|
|
18046
|
+
* import {Content} from '@verdocs/js-sdk/Search';
|
|
18047
|
+
*
|
|
18048
|
+
* const entry = await Documents.saveSearch('W9 Forms', {q: 'w9', type: 'template});
|
|
18049
|
+
* ```
|
|
18050
|
+
*/
|
|
18051
|
+
var saveSearch = function (name, params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
18052
|
+
return __generator(this, function (_a) {
|
|
18053
|
+
return [2 /*return*/, getEndpoint()
|
|
18054
|
+
.post('/search/saved', { name: name, params: params })
|
|
18055
|
+
.then(function (r) { return r.data; })];
|
|
18056
|
+
});
|
|
18057
|
+
}); };
|
|
18058
|
+
/**
|
|
18059
|
+
* Search for documents matching various criteria.
|
|
18060
|
+
*
|
|
18061
|
+
* ```typescript
|
|
18062
|
+
* import {Content} from '@verdocs/js-sdk/Search';
|
|
18063
|
+
*
|
|
18064
|
+
* const {result, page, total} = await Documents.search({ ... });
|
|
18065
|
+
* ```
|
|
18066
|
+
*/
|
|
18067
|
+
var searchContent = function (params) { return __awaiter(void 0, void 0, void 0, function () {
|
|
18068
|
+
return __generator(this, function (_a) {
|
|
18069
|
+
return [2 /*return*/, getEndpoint()
|
|
18070
|
+
.post('/search/content')
|
|
18071
|
+
.then(function (r) { return r.data; })];
|
|
18072
|
+
});
|
|
18073
|
+
}); };
|
|
17512
18074
|
|
|
17513
18075
|
const SearchIcon$1 = `<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>`;
|
|
17514
18076
|
|
|
@@ -17690,11 +18252,12 @@ let ToggleIconButtons$1 = class extends HTMLElement {
|
|
|
17690
18252
|
static get style() { return toggleIconButtonsCss; }
|
|
17691
18253
|
};
|
|
17692
18254
|
|
|
18255
|
+
globalScripts();
|
|
17693
18256
|
const DocumentStatusIndicator = /*@__PURE__*/proxyCustomElement(DocumentStatusIndicator$1, [0,"document-status-indicator",{"status":[1],"theme":[1]}]);
|
|
17694
18257
|
const DropdownMenu = /*@__PURE__*/proxyCustomElement(DropdownMenu$1, [0,"dropdown-menu",{"options":[16],"open":[4],"tall":[4],"isOpen":[32]}]);
|
|
17695
18258
|
const OrgPopup = /*@__PURE__*/proxyCustomElement(OrgPopup$1, [0,"org-popup",{"organization":[8],"theme":[1]}]);
|
|
17696
18259
|
const PdfViewer = /*@__PURE__*/proxyCustomElement(PdfViewer$1, [0,"pdf-viewer",{"rotation":[2],"src":[1]}]);
|
|
17697
|
-
const SearchBox = /*@__PURE__*/proxyCustomElement(SearchBox$1, [0,"search-box",{"type":[1],"
|
|
18260
|
+
const SearchBox = /*@__PURE__*/proxyCustomElement(SearchBox$1, [0,"search-box",{"type":[1],"query":[1]}]);
|
|
17698
18261
|
const SearchEmbed = /*@__PURE__*/proxyCustomElement(SearchEmbed$1, [1,"search-embed"]);
|
|
17699
18262
|
const SearchQuickFunctions = /*@__PURE__*/proxyCustomElement(SearchQuickFunctions$1, [0,"search-quick-functions"]);
|
|
17700
18263
|
const SearchRecent = /*@__PURE__*/proxyCustomElement(SearchRecent$1, [0,"search-recent",{"limit":[2],"recent":[32]}]);
|