@progress/telerik-angular-report-viewer 31.26.812 → 31.26.1007

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.
@@ -1,6 +1,6 @@
1
1
  var $ = require("jquery");
2
2
  /*
3
- * TelerikReporting v20.2.26.812 (https://www.telerik.com/products/reporting.aspx)
3
+ * TelerikReporting v20.2.26.1007 (https://www.telerik.com/products/reporting.aspx)
4
4
  * Copyright 2026 Progress Software EAD. All rights reserved.
5
5
  *
6
6
  * Telerik Reporting commercial licenses may be obtained at
@@ -14,7 +14,7 @@ var telerikReportViewer = (function (exports) {
14
14
 
15
15
  var dist = {exports: {}};
16
16
 
17
- /*! @license DOMPurify 3.4.12 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.12/LICENSE */
17
+ /*! @license DOMPurify 3.4.13 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.13/LICENSE */
18
18
 
19
19
  var purify_cjs;
20
20
  var hasRequiredPurify_cjs;
@@ -447,7 +447,7 @@ var telerikReportViewer = (function (exports) {
447
447
  function createDOMPurify() {
448
448
  let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
449
449
  const DOMPurify = root => createDOMPurify(root);
450
- DOMPurify.version = '3.4.12';
450
+ DOMPurify.version = '3.4.13';
451
451
  DOMPurify.removed = [];
452
452
  if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
453
453
  // Not running in a browser, provide a factory function
@@ -478,6 +478,7 @@ var telerikReportViewer = (function (exports) {
478
478
  const getAttributes = lookupGetter(ElementPrototype, 'attributes');
479
479
  const getNodeType = Node && Node.prototype ? lookupGetter(Node.prototype, 'nodeType') : null;
480
480
  const getNodeName = Node && Node.prototype ? lookupGetter(Node.prototype, 'nodeName') : null;
481
+ const getOwnerDocument = Node && Node.prototype ? lookupGetter(Node.prototype, 'ownerDocument') : null;
481
482
  // As per issue #47, the web-components registry is inherited by a
482
483
  // new document created via createHTMLDocument. As per the spec
483
484
  // (http://w3c.github.io/webcomponents/spec/custom/#creating-and-passing-registries)
@@ -1396,7 +1397,17 @@ var telerikReportViewer = (function (exports) {
1396
1397
  * @return The created NodeIterator
1397
1398
  */
1398
1399
  const _createNodeIterator = function _createNodeIterator(root) {
1399
- return createNodeIterator.call(root.ownerDocument || root, root,
1400
+ /* Read ownerDocument through the cached Node.prototype getter, never the
1401
+ direct property. HTMLFormElement has [LegacyOverrideBuiltIns], so a
1402
+ clobbering child (<input name="ownerDocument"> or a form-associated
1403
+ external input) shadows the prototype getter and makes a direct read
1404
+ return that <input>. createNodeIterator.call(<input>, ...) then throws
1405
+ "Illegal invocation", and on the IN_PLACE path that throw lands before
1406
+ the walk's fail-closed barrier - leaving the caller's live tree, with
1407
+ any already-armed handler in it, un-neutralized. The cached getter
1408
+ returns the real Document regardless of the clobber. */
1409
+ const doc = getOwnerDocument ? getOwnerDocument(root) : root.ownerDocument;
1410
+ return createNodeIterator.call(doc || root, root,
1400
1411
  // eslint-disable-next-line no-bitwise
1401
1412
  NodeFilter.SHOW_ELEMENT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_TEXT | NodeFilter.SHOW_PROCESSING_INSTRUCTION | NodeFilter.SHOW_CDATA_SECTION, null);
1402
1413
  };
@@ -1436,7 +1447,11 @@ var telerikReportViewer = (function (exports) {
1436
1447
  const _scrubTemplateExpressions2 = function _scrubTemplateExpressions(node) {
1437
1448
  var _node$querySelectorAl;
1438
1449
  node.normalize();
1439
- const walker = createNodeIterator.call(node.ownerDocument || node, node,
1450
+ /* Clobber-safe ownerDocument read, same reasoning as _createNodeIterator:
1451
+ under SAFE_FOR_TEMPLATES this runs on the live IN_PLACE root, which may
1452
+ carry a form-named-getter override of ownerDocument. */
1453
+ const doc = getOwnerDocument ? getOwnerDocument(node) : node.ownerDocument;
1454
+ const walker = createNodeIterator.call(doc || node, node,
1440
1455
  // eslint-disable-next-line no-bitwise
1441
1456
  NodeFilter.SHOW_TEXT | NodeFilter.SHOW_COMMENT | NodeFilter.SHOW_CDATA_SECTION | NodeFilter.SHOW_PROCESSING_INSTRUCTION, null);
1442
1457
  let currentNode = walker.nextNode();
@@ -1603,7 +1618,7 @@ var telerikReportViewer = (function (exports) {
1603
1618
  * @param tagName the node's transformCaseFunc'd tag name
1604
1619
  * @return true if the node was removed, false if kept
1605
1620
  */
1606
- const _sanitizeDisallowedNode = function _sanitizeDisallowedNode(currentNode, tagName) {
1621
+ const _sanitizeDisallowedNode = function _sanitizeDisallowedNode(currentNode, tagName, root) {
1607
1622
  /* Check if we have a custom element to handle */
1608
1623
  if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
1609
1624
  if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
@@ -1626,27 +1641,26 @@ var telerikReportViewer = (function (exports) {
1626
1641
  const childNodes = getChildNodes(currentNode);
1627
1642
  if (childNodes && parentNode) {
1628
1643
  const childCount = childNodes.length;
1629
- /* In-place: hoist the *original* children so the iterator visits
1630
- and sanitises them through the same allowlist pass as every other
1631
- node. The caller built the tree in the live document, so the
1632
- originals carry already-queued resource events (`<img onerror>`,
1633
- `<video>`/`<audio>` error, lazy/`onload`, …); cloning would leave
1634
- those originals detached but still armed, firing in page scope
1635
- while the returned tree looked clean. Moving is safe in-place: the
1636
- root is pre-validated as an allowed tag and so is never the node
1637
- being removed, which keeps `parentNode` inside the iterator root
1638
- and the relocated child inside the serialised tree.
1639
- Otherwise (string / DOM-copy paths): clone. The iterator is rooted
1640
- at — and the result serialised from — `body`, so a restrictive
1641
- ALLOWED_TAGS that removes `body` itself must leave its content in
1642
- place, which only cloning does; and those paths parse into an
1643
- inert document, so their discarded originals never had a queued
1644
- event to neutralise.
1644
+ /* Hoist by moving each child up one level rather than deep-cloning
1645
+ it. Moving transfers every descendant exactly once, so a chain of
1646
+ nested disallowed elements costs O(n) instead of the O(n^2) that
1647
+ re-cloning the shrinking subtree at each level produced; it also
1648
+ empties the removed original, so `DOMPurify.removed` no longer
1649
+ pins whole subtrees. Moving preserves the in-place guarantee too:
1650
+ an original carrying already-queued resource events (`<img
1651
+ onerror>`, `<video>`/`<audio>` error, lazy/`onload`, …) is
1652
+ relocated and sanitised rather than left detached but still armed.
1653
+ The sole case that must clone is removing the walk root itself.
1654
+ The result is serialised from the root's subtree, so a restrictive
1655
+ ALLOWED_TAGS that strips the root (`body` on the string path) must
1656
+ leave the content inside it, which only cloning does. In IN_PLACE
1657
+ the root is pre-validated as an allowed tag and so is never removed
1658
+ here, so that path always takes the move branch.
1645
1659
  `childNodes` is live; a tail-to-head walk keeps `childNodes[i]`
1646
1660
  valid whether we move (drops the trailing entry) or clone (leaves
1647
1661
  the list intact). */
1648
1662
  for (let i = childCount - 1; i >= 0; --i) {
1649
- const hoisted = IN_PLACE ? childNodes[i] : cloneNode(childNodes[i], true);
1663
+ const hoisted = currentNode === root ? cloneNode(childNodes[i], true) : childNodes[i];
1650
1664
  parentNode.insertBefore(hoisted, getNextSibling(currentNode));
1651
1665
  }
1652
1666
  }
@@ -1654,6 +1668,26 @@ var telerikReportViewer = (function (exports) {
1654
1668
  _forceRemove(currentNode);
1655
1669
  return true;
1656
1670
  };
1671
+ /**
1672
+ * Fork a hook-mutable allowlist off its shared binding the first time a
1673
+ * (possibly lazily-installed) uponSanitize* hook is about to see it, so the
1674
+ * hook cannot widen the per-instance default or the setConfig binding by
1675
+ * reference and leak past the call. Returns the set unchanged once it is
1676
+ * already call-local, so repeated calls across elements are idempotent.
1677
+ *
1678
+ * @param hookList the uponSanitize* hook array for this event
1679
+ * @param set the current ALLOWED_TAGS / ALLOWED_ATTR binding
1680
+ * @param defaultSet the per-instance DEFAULT_ALLOWED_* constant
1681
+ * @param setConfigSet the captured setConfig() binding, or null
1682
+ * @return a call-local clone if a hook is present and set is still shared,
1683
+ * else set unchanged
1684
+ */
1685
+ const _forkSharedAllowlist = function _forkSharedAllowlist(hookList, set, defaultSet, setConfigSet) {
1686
+ if (hookList.length === 0) {
1687
+ return set;
1688
+ }
1689
+ return set === defaultSet || set === setConfigSet ? clone(set) : set;
1690
+ };
1657
1691
  /**
1658
1692
  * _sanitizeElements
1659
1693
  *
@@ -1667,9 +1701,14 @@ var telerikReportViewer = (function (exports) {
1667
1701
  const _sanitizeElements = function _sanitizeElements(currentNode, root) {
1668
1702
  /* Execute a hook if present */
1669
1703
  _executeHooks(hooks.beforeSanitizeElements, currentNode, null);
1670
- /* A hook may have detached the node — treat it as removed (see the
1671
- detached-node comment after the uponSanitizeElement hook below). */
1704
+ /* A hook may have detached the node - treat it as removed (see the
1705
+ detached-node comment after the uponSanitizeElement hook below). On
1706
+ the IN_PLACE path, neutralize the detached subtree first so a queued
1707
+ resource handler on it cannot fire in page scope after we return. */
1672
1708
  if (currentNode !== root && getParentNode(currentNode) === null) {
1709
+ if (IN_PLACE) {
1710
+ _neutralizeSubtree(currentNode);
1711
+ }
1673
1712
  return true;
1674
1713
  }
1675
1714
  /* Check if element is clobbered or can clobber */
@@ -1679,6 +1718,12 @@ var telerikReportViewer = (function (exports) {
1679
1718
  }
1680
1719
  /* Now let's check the element's type and name */
1681
1720
  const tagName = transformCaseFunc(getNodeName ? getNodeName(currentNode) : currentNode.nodeName);
1721
+ /* Close the pre-walk clone-guard's timing gap: an uponSanitizeElement
1722
+ hook may have been installed after that guard sampled the hook arrays
1723
+ (e.g. lazily from beforeSanitizeElements), leaving ALLOWED_TAGS still
1724
+ aliasing a shared binding that a widening hook would mutate by
1725
+ reference. Fork it before exposing it to the hook. */
1726
+ ALLOWED_TAGS = _forkSharedAllowlist(hooks.uponSanitizeElement, ALLOWED_TAGS, DEFAULT_ALLOWED_TAGS, SET_CONFIG_ALLOWED_TAGS);
1682
1727
  /* Execute a hook if present */
1683
1728
  _executeHooks(hooks.uponSanitizeElement, currentNode, {
1684
1729
  tagName,
@@ -1696,10 +1741,22 @@ var telerikReportViewer = (function (exports) {
1696
1741
  opposite of a node that is already safely gone. The walk root is
1697
1742
  exempt: a detached IN_PLACE root is legitimate input and must still
1698
1743
  be fully sanitized, and a kill-decision on it must keep hitting the
1699
- REPORT-3 throw. Nodes detached by hooks are the hook's
1700
- responsibility: they are not recorded in DOMPurify.removed and are
1701
- not neutralized by the post-walk IN_PLACE pass. */
1744
+ REPORT-3 throw. Nodes detached by hooks stay the hook's
1745
+ responsibility for placement: they are not recorded in
1746
+ DOMPurify.removed, so the post-walk IN_PLACE pass (which iterates
1747
+ DOMPurify.removed) does not reach them. But a hook-detached subtree
1748
+ can still hold a queued resource-event handler - e.g. an <img onload>
1749
+ that began loading when the caller built the live tree - which fires
1750
+ in page scope after sanitize returns even though the handler never
1751
+ reached the returned tree. That is the audit-5 F1 hazard, and the
1752
+ documented node.remove() hook pattern walks straight into it. So on
1753
+ the IN_PLACE path we neutralize the detached subtree inline here,
1754
+ stripping its non-allow-listed attributes before returning, exactly
1755
+ as the post-walk pass does for _forceRemove'd subtrees. */
1702
1756
  if (currentNode !== root && getParentNode(currentNode) === null) {
1757
+ if (IN_PLACE) {
1758
+ _neutralizeSubtree(currentNode);
1759
+ }
1703
1760
  return true;
1704
1761
  }
1705
1762
  /* Remove mXSS vectors, processing instructions and risky comments */
@@ -1709,7 +1766,7 @@ var telerikReportViewer = (function (exports) {
1709
1766
  }
1710
1767
  /* Remove element if anything forbids its presence */
1711
1768
  if (FORBID_TAGS[tagName] || !(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && !ALLOWED_TAGS[tagName]) {
1712
- const removed = _sanitizeDisallowedNode(currentNode, tagName);
1769
+ const removed = _sanitizeDisallowedNode(currentNode, tagName, root);
1713
1770
  /* A false return means the node is a custom element kept via
1714
1771
  CUSTOM_ELEMENT_HANDLING - the only keep path through
1715
1772
  _sanitizeDisallowedNode. Run afterSanitizeElements on it so the
@@ -1914,6 +1971,9 @@ var telerikReportViewer = (function (exports) {
1914
1971
  if (!attributes || _isClobbered(currentNode)) {
1915
1972
  return;
1916
1973
  }
1974
+ /* Same lazy-install guard as uponSanitizeElement (see there): fork the
1975
+ attribute allowlist off its shared binding before a hook can see it. */
1976
+ ALLOWED_ATTR = _forkSharedAllowlist(hooks.uponSanitizeAttribute, ALLOWED_ATTR, DEFAULT_ALLOWED_ATTR, SET_CONFIG_ALLOWED_ATTR);
1917
1977
  const hookEvent = {
1918
1978
  attrName: '',
1919
1979
  attrValue: '',
@@ -2286,17 +2346,20 @@ var telerikReportViewer = (function (exports) {
2286
2346
  }
2287
2347
  /* Get node iterator */
2288
2348
  const walkRoot = inPlace ? dirty : body;
2289
- const nodeIterator = _createNodeIterator(walkRoot);
2290
2349
  /* Now start iterating over the created document.
2291
2350
  The walk runs inside an exception barrier (campaign-3 F2): a re-entrant
2292
2351
  engine/custom-element mutation can detach a node mid-walk so
2293
2352
  `_forceRemove`'s parentless guard throws, aborting the loop. Without the
2294
2353
  barrier the caller's in-place tree would be left half-sanitized with the
2295
- unvisited tail still armed. On any throw we fail closed — strip the
2296
- in-place root bare — then rethrow so the existing throw contract is
2297
- preserved. (String/DOM-copy paths never return the partial body, so the
2298
- propagating throw is already fail-closed there.) */
2354
+ unvisited tail still armed. _createNodeIterator itself is inside the
2355
+ barrier too: constructing the iterator dereferences the root's document,
2356
+ and any failure there (e.g. an exotic/clobbered root) must still fail
2357
+ closed rather than skip the neutralize. On any throw we fail closed -
2358
+ strip the in-place root bare - then rethrow so the existing throw
2359
+ contract is preserved. (String/DOM-copy paths never return the partial
2360
+ body, so the propagating throw is already fail-closed there.) */
2299
2361
  try {
2362
+ const nodeIterator = _createNodeIterator(walkRoot);
2300
2363
  while (currentNode = nodeIterator.nextNode()) {
2301
2364
  /* Sanitize tags and elements */
2302
2365
  _sanitizeElements(currentNode, walkRoot);
@@ -2483,73 +2546,78 @@ var telerikReportViewer = (function (exports) {
2483
2546
  l2((n2 = n2.apply(e2, t2 || [])).next());
2484
2547
  });
2485
2548
  }
2549
+ function o(e2, t2, i2, n2) {
2550
+ if ("a" === i2 && !n2) throw new TypeError("Private accessor was defined without a getter");
2551
+ if ("function" == typeof t2 ? e2 !== t2 || !n2 : !t2.has(e2)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
2552
+ return "m" === i2 ? n2 : "a" === i2 ? n2.call(e2) : n2 ? n2.value : t2.get(e2);
2553
+ }
2486
2554
  "function" == typeof SuppressedError && SuppressedError;
2487
- class o {
2555
+ class a {
2488
2556
  constructor() {
2489
2557
  this.BasePath = "", this.ImmediatePrint = false, this.ContentOnly = false, this.UseSVG = false, this.enableSearch = false, this.enableAccessibility = false, this.contentTabIndex = 0;
2490
2558
  }
2491
2559
  }
2492
- class a {
2560
+ class l {
2493
2561
  constructor() {
2494
2562
  this.from = "", this.to = "", this.cc = "", this.subject = "", this.format = "", this.body = "";
2495
2563
  }
2496
2564
  }
2497
- class l {
2565
+ class h {
2498
2566
  constructor(e2, t2) {
2499
2567
  this.cancel = false, this.element = e2, this.action = t2;
2500
2568
  }
2501
2569
  }
2502
- class h {
2570
+ class c {
2503
2571
  constructor(e2, t2) {
2504
2572
  this.id = "", this.type = "", this.id = e2, this.type = t2;
2505
2573
  }
2506
2574
  }
2507
- class c {
2575
+ class d {
2508
2576
  constructor(e2, t2) {
2509
2577
  this.isCancelled = false, this.format = "", this.deviceInfo = e2, this.format = t2;
2510
2578
  }
2511
2579
  }
2512
- class d {
2580
+ class u {
2513
2581
  constructor(e2, t2) {
2514
2582
  this.handled = false, this.deviceInfo = e2, this.format = t2;
2515
2583
  }
2516
2584
  }
2517
- class u {
2585
+ class p {
2518
2586
  constructor(e2, t2, i2) {
2519
2587
  this.handled = false, this.url = e2, this.format = t2, this.windowOpenTarget = i2;
2520
2588
  }
2521
2589
  }
2522
- class p {
2590
+ class g {
2523
2591
  constructor(e2) {
2524
2592
  this.handled = false, this.deviceInfo = e2;
2525
2593
  }
2526
2594
  }
2527
- class g {
2595
+ class f {
2528
2596
  constructor(e2) {
2529
2597
  this.handled = false, this.url = e2;
2530
2598
  }
2531
2599
  }
2532
- class f {
2600
+ class m {
2533
2601
  constructor(e2, t2) {
2534
2602
  this.handled = false, this.deviceInfo = e2, this.format = t2;
2535
2603
  }
2536
2604
  }
2537
- class m extends a {
2605
+ class v extends l {
2538
2606
  constructor(e2, t2, i2) {
2539
2607
  super(), this.handled = false, this.body = e2.body, this.cc = e2.cc, this.format = e2.format, this.from = e2.from, this.subject = e2.subject, this.to = e2.to, this.deviceInfo = t2, this.url = i2;
2540
2608
  }
2541
2609
  }
2542
- class v {
2610
+ class P {
2543
2611
  constructor(e2, t2) {
2544
2612
  this.page = e2, this.reportDocumentId = t2;
2545
2613
  }
2546
2614
  }
2547
- class P {
2615
+ class C {
2548
2616
  constructor(e2, t2, i2, n2 = null) {
2549
2617
  this.element = e2, this.text = t2, this.title = i2, this.eventArgs = n2;
2550
2618
  }
2551
2619
  }
2552
- class C {
2620
+ class y {
2553
2621
  constructor(e2, t2) {
2554
2622
  this._responseText = e2, this._error = t2;
2555
2623
  try {
@@ -2572,14 +2640,14 @@ var telerikReportViewer = (function (exports) {
2572
2640
  return (null === (e2 = this.responseJSON) || void 0 === e2 ? void 0 : e2.exceptionMessage) || (null === (t2 = this.responseJSON) || void 0 === t2 ? void 0 : t2.ExceptionMessage);
2573
2641
  }
2574
2642
  }
2575
- function y(e2, t2 = false, i2 = false) {
2643
+ function S(e2, t2 = false, i2 = false) {
2576
2644
  let n2 = { Accept: "application/json, text/javascript, */*; q=0.01" };
2577
2645
  return t2 && (n2["Content-Type"] = i2 ? "application/x-www-form-urlencoded; charset=UTF-8" : "application/json; charset=UTF-8"), e2 && (n2.authorization = "Bearer " + e2), n2;
2578
2646
  }
2579
- function S(e2) {
2647
+ function b(e2) {
2580
2648
  return s(this, void 0, void 0, function* () {
2581
2649
  if (!e2.ok) {
2582
- let t2 = yield e2.text(), i2 = new C(t2, e2.statusText);
2650
+ let t2 = yield e2.text(), i2 = new y(t2, e2.statusText);
2583
2651
  return Promise.reject(i2);
2584
2652
  }
2585
2653
  if (204 == e2.status) return Promise.resolve();
@@ -2587,14 +2655,14 @@ var telerikReportViewer = (function (exports) {
2587
2655
  });
2588
2656
  }
2589
2657
  function I(e2, t2 = {}, i2 = "", n2 = false) {
2590
- return fetch(e2, { method: "POST", headers: y(i2, true, n2), body: n2 ? t2 : JSON.stringify(t2) }).then(S);
2658
+ return fetch(e2, { method: "POST", headers: S(i2, true, n2), body: n2 ? t2 : JSON.stringify(t2) }).then(b);
2591
2659
  }
2592
- class b {
2660
+ class w {
2593
2661
  authenticatePromise() {
2594
2662
  return Promise.resolve("");
2595
2663
  }
2596
2664
  }
2597
- class w {
2665
+ class L {
2598
2666
  constructor(e2) {
2599
2667
  this.connectionConfig = e2;
2600
2668
  }
@@ -2607,7 +2675,7 @@ var telerikReportViewer = (function (exports) {
2607
2675
  return Promise.reject("Failed to connect to Report Server with user credentials. Are you missing the reportServer.url, reportServer.username or reportServer.password values?");
2608
2676
  }
2609
2677
  }
2610
- class L {
2678
+ class T {
2611
2679
  constructor(e2) {
2612
2680
  this.connectionConfig = e2;
2613
2681
  }
@@ -2616,44 +2684,44 @@ var telerikReportViewer = (function (exports) {
2616
2684
  }
2617
2685
  }
2618
2686
  e.AuthType = void 0, (n = e.AuthType || (e.AuthType = {}))[n.None = 0] = "None", n[n.Basic = 1] = "Basic", n[n.PersonalToken = 2] = "PersonalToken";
2619
- class T {
2687
+ class A {
2620
2688
  constructor(e2) {
2621
2689
  this.baseUrl = null == e2 ? void 0 : e2.replace(/\/$/, "");
2622
2690
  }
2623
2691
  }
2624
- class R extends T {
2692
+ class R extends A {
2625
2693
  constructor(t2) {
2626
2694
  super(t2), this.authType = e.AuthType.None, this.serviceUrl = this.baseUrl;
2627
2695
  }
2628
2696
  }
2629
- class A extends T {
2697
+ class E extends A {
2630
2698
  constructor(t2) {
2631
2699
  super(t2), this.authType = e.AuthType.None, this.serviceUrl = this.baseUrl + "/api/reports";
2632
2700
  }
2633
2701
  }
2634
- class E extends A {
2702
+ class M extends E {
2635
2703
  constructor(t2, i2, n2) {
2636
2704
  super(t2), this.authType = e.AuthType.Basic, this.username = i2, this.password = n2, this.tokenUrl = this.baseUrl + "/Token";
2637
2705
  }
2638
2706
  }
2639
- class M extends A {
2707
+ class k extends E {
2640
2708
  constructor(t2, i2) {
2641
2709
  super(t2), this.authType = e.AuthType.PersonalToken, this.getPersonalAccessToken = i2, this.personalTokenUrl = this.baseUrl + "/PersonalToken", this.refreshTokenUrl = this.baseUrl + "/refresh";
2642
2710
  }
2643
2711
  }
2644
- function k() {
2645
- }
2646
2712
  function x() {
2647
- x.init.call(this);
2648
2713
  }
2649
- function N(e2) {
2650
- return void 0 === e2._maxListeners ? x.defaultMaxListeners : e2._maxListeners;
2714
+ function N() {
2715
+ N.init.call(this);
2716
+ }
2717
+ function D(e2) {
2718
+ return void 0 === e2._maxListeners ? N.defaultMaxListeners : e2._maxListeners;
2651
2719
  }
2652
- function D(e2, t2, i2, n2) {
2720
+ function V(e2, t2, i2, n2) {
2653
2721
  var r2, s2, o2, a2;
2654
2722
  if ("function" != typeof i2) throw new TypeError('"listener" argument must be a function');
2655
- if ((s2 = e2._events) ? (s2.newListener && (e2.emit("newListener", t2, i2.listener ? i2.listener : i2), s2 = e2._events), o2 = s2[t2]) : (s2 = e2._events = new k(), e2._eventsCount = 0), o2) {
2656
- if ("function" == typeof o2 ? o2 = s2[t2] = n2 ? [i2, o2] : [o2, i2] : n2 ? o2.unshift(i2) : o2.push(i2), !o2.warned && (r2 = N(e2)) && r2 > 0 && o2.length > r2) {
2723
+ if ((s2 = e2._events) ? (s2.newListener && (e2.emit("newListener", t2, i2.listener ? i2.listener : i2), s2 = e2._events), o2 = s2[t2]) : (s2 = e2._events = new x(), e2._eventsCount = 0), o2) {
2724
+ if ("function" == typeof o2 ? o2 = s2[t2] = n2 ? [i2, o2] : [o2, i2] : n2 ? o2.unshift(i2) : o2.push(i2), !o2.warned && (r2 = D(e2)) && r2 > 0 && o2.length > r2) {
2657
2725
  o2.warned = true;
2658
2726
  var l2 = new Error("Possible EventEmitter memory leak detected. " + o2.length + " " + t2 + " listeners added. Use emitter.setMaxListeners() to increase limit");
2659
2727
  l2.name = "MaxListenersExceededWarning", l2.emitter = e2, l2.type = t2, l2.count = o2.length, a2 = l2, "function" == typeof console.warn ? console.warn(a2) : console.log(a2);
@@ -2661,14 +2729,14 @@ var telerikReportViewer = (function (exports) {
2661
2729
  } else o2 = s2[t2] = i2, ++e2._eventsCount;
2662
2730
  return e2;
2663
2731
  }
2664
- function V(e2, t2, i2) {
2732
+ function F(e2, t2, i2) {
2665
2733
  var n2 = false;
2666
2734
  function r2() {
2667
2735
  e2.removeListener(t2, r2), n2 || (n2 = true, i2.apply(e2, arguments));
2668
2736
  }
2669
2737
  return r2.listener = i2, r2;
2670
2738
  }
2671
- function F(e2) {
2739
+ function O(e2) {
2672
2740
  var t2 = this._events;
2673
2741
  if (t2) {
2674
2742
  var i2 = t2[e2];
@@ -2677,18 +2745,18 @@ var telerikReportViewer = (function (exports) {
2677
2745
  }
2678
2746
  return 0;
2679
2747
  }
2680
- function O(e2, t2) {
2748
+ function z(e2, t2) {
2681
2749
  for (var i2 = new Array(t2); t2--; ) i2[t2] = e2[t2];
2682
2750
  return i2;
2683
2751
  }
2684
- k.prototype = /* @__PURE__ */ Object.create(null), x.EventEmitter = x, x.usingDomains = false, x.prototype.domain = void 0, x.prototype._events = void 0, x.prototype._maxListeners = void 0, x.defaultMaxListeners = 10, x.init = function() {
2685
- this.domain = null, x.usingDomains && (void 0).active, this._events && this._events !== Object.getPrototypeOf(this)._events || (this._events = new k(), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
2686
- }, x.prototype.setMaxListeners = function(e2) {
2752
+ x.prototype = /* @__PURE__ */ Object.create(null), N.EventEmitter = N, N.usingDomains = false, N.prototype.domain = void 0, N.prototype._events = void 0, N.prototype._maxListeners = void 0, N.defaultMaxListeners = 10, N.init = function() {
2753
+ this.domain = null, N.usingDomains && (void 0).active, this._events && this._events !== Object.getPrototypeOf(this)._events || (this._events = new x(), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
2754
+ }, N.prototype.setMaxListeners = function(e2) {
2687
2755
  if ("number" != typeof e2 || e2 < 0 || isNaN(e2)) throw new TypeError('"n" argument must be a positive number');
2688
2756
  return this._maxListeners = e2, this;
2689
- }, x.prototype.getMaxListeners = function() {
2690
- return N(this);
2691
- }, x.prototype.emit = function(e2) {
2757
+ }, N.prototype.getMaxListeners = function() {
2758
+ return D(this);
2759
+ }, N.prototype.emit = function(e2) {
2692
2760
  var t2, i2, n2, r2, s2, o2, a2, l2 = "error" === e2;
2693
2761
  if (o2 = this._events) l2 = l2 && null == o2.error;
2694
2762
  else if (!l2) return false;
@@ -2706,51 +2774,51 @@ var telerikReportViewer = (function (exports) {
2706
2774
  case 1:
2707
2775
  !(function(e3, t3, i3) {
2708
2776
  if (t3) e3.call(i3);
2709
- else for (var n3 = e3.length, r3 = O(e3, n3), s3 = 0; s3 < n3; ++s3) r3[s3].call(i3);
2777
+ else for (var n3 = e3.length, r3 = z(e3, n3), s3 = 0; s3 < n3; ++s3) r3[s3].call(i3);
2710
2778
  })(i2, c2, this);
2711
2779
  break;
2712
2780
  case 2:
2713
2781
  !(function(e3, t3, i3, n3) {
2714
2782
  if (t3) e3.call(i3, n3);
2715
- else for (var r3 = e3.length, s3 = O(e3, r3), o3 = 0; o3 < r3; ++o3) s3[o3].call(i3, n3);
2783
+ else for (var r3 = e3.length, s3 = z(e3, r3), o3 = 0; o3 < r3; ++o3) s3[o3].call(i3, n3);
2716
2784
  })(i2, c2, this, arguments[1]);
2717
2785
  break;
2718
2786
  case 3:
2719
2787
  !(function(e3, t3, i3, n3, r3) {
2720
2788
  if (t3) e3.call(i3, n3, r3);
2721
- else for (var s3 = e3.length, o3 = O(e3, s3), a3 = 0; a3 < s3; ++a3) o3[a3].call(i3, n3, r3);
2789
+ else for (var s3 = e3.length, o3 = z(e3, s3), a3 = 0; a3 < s3; ++a3) o3[a3].call(i3, n3, r3);
2722
2790
  })(i2, c2, this, arguments[1], arguments[2]);
2723
2791
  break;
2724
2792
  case 4:
2725
2793
  !(function(e3, t3, i3, n3, r3, s3) {
2726
2794
  if (t3) e3.call(i3, n3, r3, s3);
2727
- else for (var o3 = e3.length, a3 = O(e3, o3), l3 = 0; l3 < o3; ++l3) a3[l3].call(i3, n3, r3, s3);
2795
+ else for (var o3 = e3.length, a3 = z(e3, o3), l3 = 0; l3 < o3; ++l3) a3[l3].call(i3, n3, r3, s3);
2728
2796
  })(i2, c2, this, arguments[1], arguments[2], arguments[3]);
2729
2797
  break;
2730
2798
  default:
2731
2799
  for (r2 = new Array(n2 - 1), s2 = 1; s2 < n2; s2++) r2[s2 - 1] = arguments[s2];
2732
2800
  !(function(e3, t3, i3, n3) {
2733
2801
  if (t3) e3.apply(i3, n3);
2734
- else for (var r3 = e3.length, s3 = O(e3, r3), o3 = 0; o3 < r3; ++o3) s3[o3].apply(i3, n3);
2802
+ else for (var r3 = e3.length, s3 = z(e3, r3), o3 = 0; o3 < r3; ++o3) s3[o3].apply(i3, n3);
2735
2803
  })(i2, c2, this, r2);
2736
2804
  }
2737
2805
  return true;
2738
- }, x.prototype.addListener = function(e2, t2) {
2739
- return D(this, e2, t2, false);
2740
- }, x.prototype.on = x.prototype.addListener, x.prototype.prependListener = function(e2, t2) {
2741
- return D(this, e2, t2, true);
2742
- }, x.prototype.once = function(e2, t2) {
2806
+ }, N.prototype.addListener = function(e2, t2) {
2807
+ return V(this, e2, t2, false);
2808
+ }, N.prototype.on = N.prototype.addListener, N.prototype.prependListener = function(e2, t2) {
2809
+ return V(this, e2, t2, true);
2810
+ }, N.prototype.once = function(e2, t2) {
2743
2811
  if ("function" != typeof t2) throw new TypeError('"listener" argument must be a function');
2744
- return this.on(e2, V(this, e2, t2)), this;
2745
- }, x.prototype.prependOnceListener = function(e2, t2) {
2812
+ return this.on(e2, F(this, e2, t2)), this;
2813
+ }, N.prototype.prependOnceListener = function(e2, t2) {
2746
2814
  if ("function" != typeof t2) throw new TypeError('"listener" argument must be a function');
2747
- return this.prependListener(e2, V(this, e2, t2)), this;
2748
- }, x.prototype.removeListener = function(e2, t2) {
2815
+ return this.prependListener(e2, F(this, e2, t2)), this;
2816
+ }, N.prototype.removeListener = function(e2, t2) {
2749
2817
  var i2, n2, r2, s2, o2;
2750
2818
  if ("function" != typeof t2) throw new TypeError('"listener" argument must be a function');
2751
2819
  if (!(n2 = this._events)) return this;
2752
2820
  if (!(i2 = n2[e2])) return this;
2753
- if (i2 === t2 || i2.listener && i2.listener === t2) 0 === --this._eventsCount ? this._events = new k() : (delete n2[e2], n2.removeListener && this.emit("removeListener", e2, i2.listener || t2));
2821
+ if (i2 === t2 || i2.listener && i2.listener === t2) 0 === --this._eventsCount ? this._events = new x() : (delete n2[e2], n2.removeListener && this.emit("removeListener", e2, i2.listener || t2));
2754
2822
  else if ("function" != typeof i2) {
2755
2823
  for (r2 = -1, s2 = i2.length; s2-- > 0; ) if (i2[s2] === t2 || i2[s2].listener && i2[s2].listener === t2) {
2756
2824
  o2 = i2[s2].listener, r2 = s2;
@@ -2758,7 +2826,7 @@ var telerikReportViewer = (function (exports) {
2758
2826
  }
2759
2827
  if (r2 < 0) return this;
2760
2828
  if (1 === i2.length) {
2761
- if (i2[0] = void 0, 0 === --this._eventsCount) return this._events = new k(), this;
2829
+ if (i2[0] = void 0, 0 === --this._eventsCount) return this._events = new x(), this;
2762
2830
  delete n2[e2];
2763
2831
  } else !(function(e3, t3) {
2764
2832
  for (var i3 = t3, n3 = i3 + 1, r3 = e3.length; n3 < r3; i3 += 1, n3 += 1) e3[i3] = e3[n3];
@@ -2767,46 +2835,46 @@ var telerikReportViewer = (function (exports) {
2767
2835
  n2.removeListener && this.emit("removeListener", e2, o2 || t2);
2768
2836
  }
2769
2837
  return this;
2770
- }, x.prototype.off = function(e2, t2) {
2838
+ }, N.prototype.off = function(e2, t2) {
2771
2839
  return this.removeListener(e2, t2);
2772
- }, x.prototype.removeAllListeners = function(e2) {
2840
+ }, N.prototype.removeAllListeners = function(e2) {
2773
2841
  var t2, i2;
2774
2842
  if (!(i2 = this._events)) return this;
2775
- if (!i2.removeListener) return 0 === arguments.length ? (this._events = new k(), this._eventsCount = 0) : i2[e2] && (0 === --this._eventsCount ? this._events = new k() : delete i2[e2]), this;
2843
+ if (!i2.removeListener) return 0 === arguments.length ? (this._events = new x(), this._eventsCount = 0) : i2[e2] && (0 === --this._eventsCount ? this._events = new x() : delete i2[e2]), this;
2776
2844
  if (0 === arguments.length) {
2777
2845
  for (var n2, r2 = Object.keys(i2), s2 = 0; s2 < r2.length; ++s2) "removeListener" !== (n2 = r2[s2]) && this.removeAllListeners(n2);
2778
- return this.removeAllListeners("removeListener"), this._events = new k(), this._eventsCount = 0, this;
2846
+ return this.removeAllListeners("removeListener"), this._events = new x(), this._eventsCount = 0, this;
2779
2847
  }
2780
2848
  if ("function" == typeof (t2 = i2[e2])) this.removeListener(e2, t2);
2781
2849
  else if (t2) do {
2782
2850
  this.removeListener(e2, t2[t2.length - 1]);
2783
2851
  } while (t2[0]);
2784
2852
  return this;
2785
- }, x.prototype.listeners = function(e2) {
2853
+ }, N.prototype.listeners = function(e2) {
2786
2854
  var t2, i2 = this._events;
2787
2855
  return i2 && (t2 = i2[e2]) ? "function" == typeof t2 ? [t2.listener || t2] : (function(e3) {
2788
2856
  for (var t3 = new Array(e3.length), i3 = 0; i3 < t3.length; ++i3) t3[i3] = e3[i3].listener || e3[i3];
2789
2857
  return t3;
2790
2858
  })(t2) : [];
2791
- }, x.listenerCount = function(e2, t2) {
2792
- return "function" == typeof e2.listenerCount ? e2.listenerCount(t2) : F.call(e2, t2);
2793
- }, x.prototype.listenerCount = F, x.prototype.eventNames = function() {
2859
+ }, N.listenerCount = function(e2, t2) {
2860
+ return "function" == typeof e2.listenerCount ? e2.listenerCount(t2) : O.call(e2, t2);
2861
+ }, N.prototype.listenerCount = O, N.prototype.eventNames = function() {
2794
2862
  return this._eventsCount > 0 ? Reflect.ownKeys(this._events) : [];
2795
2863
  };
2796
- const z = "function" == typeof Symbol ? /* @__PURE__ */ Symbol.for("--[[await-event-emitter]]--") : "--[[await-event-emitter]]--";
2797
- function _(e2) {
2798
- if ("string" != typeof e2 && "symbol" != typeof e2) throw new TypeError("type is not type of string or symbol!");
2799
- }
2864
+ const _ = "function" == typeof Symbol ? /* @__PURE__ */ Symbol.for("--[[await-event-emitter]]--") : "--[[await-event-emitter]]--";
2800
2865
  function H(e2) {
2801
- if ("function" != typeof e2) throw new TypeError("fn is not type of Function!");
2866
+ if ("string" != typeof e2 && "symbol" != typeof e2) throw new TypeError("type is not type of string or symbol!");
2802
2867
  }
2803
2868
  function U(e2) {
2804
- return { [z]: "always", fn: e2 };
2869
+ if ("function" != typeof e2) throw new TypeError("fn is not type of Function!");
2805
2870
  }
2806
2871
  function $(e2) {
2807
- return { [z]: "once", fn: e2 };
2872
+ return { [_]: "always", fn: e2 };
2808
2873
  }
2809
- class B {
2874
+ function B(e2) {
2875
+ return { [_]: "once", fn: e2 };
2876
+ }
2877
+ class q {
2810
2878
  constructor() {
2811
2879
  this._events = {};
2812
2880
  }
@@ -2814,25 +2882,25 @@ var telerikReportViewer = (function (exports) {
2814
2882
  return this.on(e2, t2);
2815
2883
  }
2816
2884
  on(e2, t2) {
2817
- return _(e2), H(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(U(t2)), this;
2885
+ return H(e2), U(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push($(t2)), this;
2818
2886
  }
2819
2887
  prependListener(e2, t2) {
2820
2888
  return this.prepend(e2, t2);
2821
2889
  }
2822
2890
  prepend(e2, t2) {
2823
- return _(e2), H(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(U(t2)), this;
2891
+ return H(e2), U(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift($(t2)), this;
2824
2892
  }
2825
2893
  prependOnceListener(e2, t2) {
2826
2894
  return this.prependOnce(e2, t2);
2827
2895
  }
2828
2896
  prependOnce(e2, t2) {
2829
- return _(e2), H(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift($(t2)), this;
2897
+ return H(e2), U(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(B(t2)), this;
2830
2898
  }
2831
2899
  listeners(e2) {
2832
2900
  return (this._events[e2] || []).map((e3) => e3.fn);
2833
2901
  }
2834
2902
  once(e2, t2) {
2835
- return _(e2), H(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push($(t2)), this;
2903
+ return H(e2), U(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(B(t2)), this;
2836
2904
  }
2837
2905
  removeAllListeners() {
2838
2906
  this._events = {};
@@ -2841,7 +2909,7 @@ var telerikReportViewer = (function (exports) {
2841
2909
  return this.removeListener(e2, t2);
2842
2910
  }
2843
2911
  removeListener(e2, t2) {
2844
- _(e2);
2912
+ H(e2);
2845
2913
  const i2 = this.listeners(e2);
2846
2914
  if ("function" == typeof t2) {
2847
2915
  let n2 = -1, r2 = false;
@@ -2852,12 +2920,12 @@ var telerikReportViewer = (function (exports) {
2852
2920
  }
2853
2921
  emit(e2, ...t2) {
2854
2922
  return s(this, void 0, void 0, function* () {
2855
- _(e2);
2923
+ H(e2);
2856
2924
  const i2 = this.listeners(e2), n2 = [];
2857
2925
  if (i2 && i2.length) {
2858
2926
  for (let r2 = 0; r2 < i2.length; r2++) {
2859
2927
  const s2 = i2[r2], o2 = s2.apply(this, t2);
2860
- o2 instanceof Promise && (yield o2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][z] && n2.push(s2);
2928
+ o2 instanceof Promise && (yield o2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][_] && n2.push(s2);
2861
2929
  }
2862
2930
  return n2.forEach((t3) => this.removeListener(e2, t3)), true;
2863
2931
  }
@@ -2865,21 +2933,21 @@ var telerikReportViewer = (function (exports) {
2865
2933
  });
2866
2934
  }
2867
2935
  emitSync(e2, ...t2) {
2868
- _(e2);
2936
+ H(e2);
2869
2937
  const i2 = this.listeners(e2), n2 = [];
2870
2938
  if (i2 && i2.length) {
2871
2939
  for (let r2 = 0; r2 < i2.length; r2++) {
2872
2940
  const s2 = i2[r2];
2873
- s2.apply(this, t2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][z] && n2.push(s2);
2941
+ s2.apply(this, t2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][_] && n2.push(s2);
2874
2942
  }
2875
2943
  return n2.forEach((t3) => this.removeListener(e2, t3)), true;
2876
2944
  }
2877
2945
  return false;
2878
2946
  }
2879
2947
  }
2880
- class q {
2948
+ class W {
2881
2949
  constructor() {
2882
- this.eventEmitter = new x(), this.awaitEventEmitter = new B();
2950
+ this.eventEmitter = new N(), this.awaitEventEmitter = new q();
2883
2951
  }
2884
2952
  on(e2, t2) {
2885
2953
  return this.eventEmitter.on(e2, t2), this;
@@ -2896,7 +2964,7 @@ var telerikReportViewer = (function (exports) {
2896
2964
  });
2897
2965
  }
2898
2966
  }
2899
- class W {
2967
+ class Z {
2900
2968
  hasPdfPlugin() {
2901
2969
  let e2 = /Firefox[/\s](\d+\.\d+)/.exec(navigator.userAgent);
2902
2970
  if (null !== e2 && e2.length > 1) {
@@ -2910,7 +2978,7 @@ var telerikReportViewer = (function (exports) {
2910
2978
  return false;
2911
2979
  }
2912
2980
  }
2913
- class Z {
2981
+ class j {
2914
2982
  constructor(e2) {
2915
2983
  this.defaultPlugin = e2;
2916
2984
  }
@@ -2919,12 +2987,12 @@ var telerikReportViewer = (function (exports) {
2919
2987
  return false;
2920
2988
  }
2921
2989
  }
2922
- class j {
2990
+ class G {
2923
2991
  hasPdfPlugin() {
2924
2992
  return false;
2925
2993
  }
2926
2994
  }
2927
- class G {
2995
+ class J {
2928
2996
  constructor() {
2929
2997
  this.hasPdfPlugin = false, this.iframe = null, this.hasPdfPlugin = this.detectPdfSupport(), this.isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
2930
2998
  }
@@ -2932,9 +3000,9 @@ var telerikReportViewer = (function (exports) {
2932
3000
  return "boolean" == typeof navigator.pdfViewerEnabled ? navigator.pdfViewerEnabled : (function() {
2933
3001
  if (window.navigator) {
2934
3002
  let e2 = window.navigator.userAgent.toLowerCase();
2935
- return e2.indexOf("firefox") > -1 ? new W() : e2.indexOf("edg/") > -1 ? new Z("Microsoft Edge PDF Plugin") : e2.indexOf("chrome") > -1 ? new Z("Chrome PDF Viewer") : e2.indexOf("safari") > -1 ? new Z("WebKit built-in PDF") : new j();
3003
+ return e2.indexOf("firefox") > -1 ? new Z() : e2.indexOf("edg/") > -1 ? new j("Microsoft Edge PDF Plugin") : e2.indexOf("chrome") > -1 ? new j("Chrome PDF Viewer") : e2.indexOf("safari") > -1 ? new j("WebKit built-in PDF") : new G();
2936
3004
  }
2937
- return new j();
3005
+ return new G();
2938
3006
  })().hasPdfPlugin();
2939
3007
  }
2940
3008
  destroy() {
@@ -2975,17 +3043,17 @@ var telerikReportViewer = (function (exports) {
2975
3043
  return this.hasPdfPlugin;
2976
3044
  }
2977
3045
  }
2978
- function J(e2) {
3046
+ function K(e2) {
2979
3047
  return 1e3 * e2;
2980
3048
  }
2981
- class K {
3049
+ class X {
2982
3050
  constructor(e2, t2, i2) {
2983
3051
  if (this.pingMilliseconds = 0, !e2) throw "Error";
2984
3052
  this.serviceClient = e2, this.clientID = t2, this.initSessionTimeout(i2);
2985
3053
  }
2986
3054
  initSessionTimeout(e2) {
2987
3055
  if (!isFinite(e2)) throw "sessionTimeoutSeconds must be finite";
2988
- this.pingMilliseconds = e2 <= 120 ? J(e2) / 2 : J(e2 - 60);
3056
+ this.pingMilliseconds = e2 <= 120 ? K(e2) / 2 : K(e2 - 60);
2989
3057
  }
2990
3058
  start() {
2991
3059
  this.pingMilliseconds <= 0 || (this.interval = setInterval(() => {
@@ -2996,31 +3064,31 @@ var telerikReportViewer = (function (exports) {
2996
3064
  this.interval && (clearInterval(this.interval), this.interval = null);
2997
3065
  }
2998
3066
  }
2999
- var X, Y, Q, ee, te;
3000
- function ie(e2, t2 = "", i2 = "") {
3067
+ var Y, Q, ee, te, ie;
3068
+ function ne(e2, t2 = "", i2 = "") {
3001
3069
  let n2 = document.createElement(e2);
3002
- return t2 && (n2.id = t2), ne(n2, i2), n2;
3070
+ return t2 && (n2.id = t2), re(n2, i2), n2;
3003
3071
  }
3004
- function ne(e2, t2) {
3072
+ function re(e2, t2) {
3005
3073
  if ("" === t2 || !e2) return;
3006
3074
  let i2 = t2.trim().split(" ");
3007
3075
  i2 = i2.filter((e3) => "" !== e3.trim()), e2.classList.add(...i2);
3008
3076
  }
3009
- function re(e2, t2) {
3077
+ function se(e2, t2) {
3010
3078
  if ("" === t2 || !e2) return;
3011
3079
  let i2 = t2.trim().split(" ");
3012
3080
  i2 = i2.filter((e3) => "" !== e3.trim()), e2.classList.remove(...i2);
3013
3081
  }
3014
- function se(e2, t2) {
3082
+ function oe(e2, t2) {
3015
3083
  return e2.classList.contains(t2);
3016
3084
  }
3017
- function oe(e2) {
3085
+ function ae(e2) {
3018
3086
  return e2.offsetParent;
3019
3087
  }
3020
- function ae(e2) {
3088
+ function le(e2) {
3021
3089
  return parseInt(e2, 10) || 0;
3022
3090
  }
3023
- function le(e2, t2, i2, n2 = 0, r2 = 0) {
3091
+ function he(e2, t2, i2, n2 = 0, r2 = 0) {
3024
3092
  let s2 = `${n2 = n2 || 0} ${r2 = r2 || 0}`;
3025
3093
  !(function(e3, t3) {
3026
3094
  e3.style.setProperty("transform", t3), e3.style.setProperty("-moz-transform", t3), e3.style.setProperty("-ms-transform", t3), e3.style.setProperty("-webkit-transform", t3), e3.style.setProperty("-o-transform", t3);
@@ -3028,11 +3096,11 @@ var telerikReportViewer = (function (exports) {
3028
3096
  e3.style.setProperty("transform-origin", t3), e3.style.setProperty("-moz-transform-origin", t3), e3.style.setProperty("-ms-transform-origin", t3), e3.style.setProperty("-webkit-transform-origin", t3), e3.style.setProperty("-o-transform-origin", t3);
3029
3097
  })(e2, s2);
3030
3098
  }
3031
- function he(e2) {
3032
- let t2 = ie("div");
3099
+ function ce(e2) {
3100
+ let t2 = ne("div");
3033
3101
  return t2.textContent = e2, t2.innerHTML;
3034
3102
  }
3035
- function ce(e2) {
3103
+ function de(e2) {
3036
3104
  if (e2 && e2.length < 6) {
3037
3105
  let t3 = 1, i2 = e2.split("");
3038
3106
  for ("#" !== i2[0] && (t3 = 0); t3 < i2.length; t3++) i2[t3] = i2[t3] + i2[t3];
@@ -3041,14 +3109,14 @@ var telerikReportViewer = (function (exports) {
3041
3109
  let t2 = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e2);
3042
3110
  return t2 ? parseInt(t2[1], 16) + ", " + parseInt(t2[2], 16) + ", " + parseInt(t2[3], 16) : null;
3043
3111
  }
3044
- function de(e2) {
3112
+ function ue(e2) {
3045
3113
  return !!e2 && e2.indexOf(",") > -1;
3046
3114
  }
3047
- function ue(e2) {
3115
+ function pe(e2) {
3048
3116
  if ("transparent" === e2.toLowerCase()) return 0;
3049
- if (!de(e2)) return 1;
3117
+ if (!ue(e2)) return 1;
3050
3118
  if (-1 !== e2.indexOf("#")) {
3051
- let t3 = ce(e2);
3119
+ let t3 = de(e2);
3052
3120
  if (null === t3) return 1;
3053
3121
  e2 = t3;
3054
3122
  }
@@ -3057,28 +3125,28 @@ var telerikReportViewer = (function (exports) {
3057
3125
  });
3058
3126
  return 4 === t2.length ? parseFloat((parseFloat(t2[3].replace(/[()]/g, "")) / 255).toFixed(2)) : 1;
3059
3127
  }
3060
- function pe(e2, t2) {
3061
- let i2 = ie("div");
3128
+ function ge(e2, t2) {
3129
+ let i2 = ne("div");
3062
3130
  for (i2.innerHTML = t2; i2.childNodes.length; ) e2.appendChild(i2.childNodes[0]);
3063
3131
  }
3064
- function ge(e2, t2) {
3065
- let i2 = ie("div");
3132
+ function fe(e2, t2) {
3133
+ let i2 = ne("div");
3066
3134
  for (i2.innerHTML = t2; i2.childNodes.length; ) e2.prepend(i2.childNodes[i2.childNodes.length - 1]);
3067
3135
  }
3068
- function fe(e2, t2) {
3136
+ function me(e2, t2) {
3069
3137
  return e2 ? e2.querySelector(t2) : null;
3070
3138
  }
3071
- function me(e2) {
3139
+ function ve(e2) {
3072
3140
  let t2 = e2.parentElement;
3073
- return t2 ? t2.clientHeight != t2.scrollHeight ? t2 : me(t2) : null;
3141
+ return t2 ? t2.clientHeight != t2.scrollHeight ? t2 : ve(t2) : null;
3074
3142
  }
3075
- function ve(e2, t2 = 300) {
3143
+ function Pe(e2, t2 = 300) {
3076
3144
  let i2;
3077
3145
  return function(...n2) {
3078
3146
  clearTimeout(i2), i2 = setTimeout(() => e2.apply(this, n2), t2);
3079
3147
  };
3080
3148
  }
3081
- function Pe(e2, t2) {
3149
+ function Ce(e2, t2) {
3082
3150
  let i2 = null;
3083
3151
  return function(n2, ...r2) {
3084
3152
  i2 || (i2 = setTimeout(function() {
@@ -3086,50 +3154,56 @@ var telerikReportViewer = (function (exports) {
3086
3154
  }, t2));
3087
3155
  };
3088
3156
  }
3089
- function Ce(e2, t2) {
3157
+ function ye(e2, t2) {
3090
3158
  return !!e2.responseJSON && e2.responseJSON.exceptionType === t2;
3091
3159
  }
3092
- function ye(e2) {
3093
- return Ce(e2, "Telerik.Reporting.Services.Engine.InvalidClientException");
3094
- }
3095
3160
  function Se(e2) {
3096
- return Ce(e2, "Telerik.Reporting.Services.Engine.InvalidParameterException");
3161
+ return ye(e2, "Telerik.Reporting.Services.Engine.InvalidClientException");
3162
+ }
3163
+ function be(e2) {
3164
+ return ye(e2, "Telerik.Reporting.Services.Engine.InvalidParameterException");
3097
3165
  }
3098
3166
  function Ie(e2) {
3099
3167
  return !!e2 && "internalservererror" === e2.split(" ").join("").toLowerCase();
3100
3168
  }
3101
- function be(e2, ...t2) {
3169
+ function we(e2, ...t2) {
3102
3170
  return e2.replace(/{(\d+)}/g, (e3, i2) => t2[i2] || "");
3103
3171
  }
3104
- function we(e2, t2) {
3172
+ e.PageMode = void 0, (Y = e.PageMode || (e.PageMode = {}))[Y.ContinuousScroll = 0] = "ContinuousScroll", Y[Y.SinglePage = 1] = "SinglePage", e.PrintMode = void 0, (Q = e.PrintMode || (e.PrintMode = {}))[Q.AutoSelect = 0] = "AutoSelect", Q[Q.ForcePDFPlugin = 1] = "ForcePDFPlugin", Q[Q.ForcePDFFile = 2] = "ForcePDFFile", e.ScaleMode = void 0, (ee = e.ScaleMode || (e.ScaleMode = {}))[ee.FitPageWidth = 0] = "FitPageWidth", ee[ee.FitPage = 1] = "FitPage", ee[ee.Specific = 2] = "Specific", e.ServiceType = void 0, (te = e.ServiceType || (e.ServiceType = {}))[te.REST = 0] = "REST", te[te.ReportServer = 1] = "ReportServer", e.ViewMode = void 0, (ie = e.ViewMode || (e.ViewMode = {}))[ie.Interactive = 0] = "Interactive", ie[ie.PrintPreview = 1] = "PrintPreview";
3173
+ const Le = ["javascript:", "vbscript:"];
3174
+ function Te(e2) {
3175
+ if ("string" != typeof e2 || 0 === e2.length) return false;
3176
+ const t2 = e2.replace(/[\u0000-\u0020]/g, "").toLowerCase();
3177
+ return Le.some((e3) => t2.startsWith(e3));
3178
+ }
3179
+ function Ae(e2, t2) {
3105
3180
  let i2, n2;
3106
- if (Le(e2)) for (i2 = e2.length, n2 = 0; n2 < i2 && false !== t2.call(e2[n2], n2, e2[n2]); n2++) ;
3181
+ if (Re(e2)) for (i2 = e2.length, n2 = 0; n2 < i2 && false !== t2.call(e2[n2], n2, e2[n2]); n2++) ;
3107
3182
  else for (n2 in e2) if (false === t2.call(e2[n2], n2, e2[n2])) break;
3108
3183
  return e2;
3109
3184
  }
3110
- function Le(e2) {
3185
+ function Re(e2) {
3111
3186
  if (Array.isArray(e2)) return true;
3112
3187
  return "number" == typeof (!!e2 && "length" in e2 && e2.length);
3113
3188
  }
3114
- function Te(e2) {
3189
+ function Ee(e2) {
3115
3190
  return /^(\-|\+)?([0-9]+)$/.test(e2) ? Number(e2) : NaN;
3116
3191
  }
3117
- function Re(e2) {
3192
+ function Me(e2) {
3118
3193
  return /^(\-|\+)?([0-9]+(\.[0-9]+)?)$/.test(e2) ? Number(e2) : NaN;
3119
3194
  }
3120
- function Ae(e2) {
3195
+ function ke(e2) {
3121
3196
  return e2 instanceof Date ? e2 : (/Z|[\+\-]\d\d:?\d\d/i.test(e2) || (e2 += "Z"), new Date(e2));
3122
3197
  }
3123
- e.PageMode = void 0, (X = e.PageMode || (e.PageMode = {}))[X.ContinuousScroll = 0] = "ContinuousScroll", X[X.SinglePage = 1] = "SinglePage", e.PrintMode = void 0, (Y = e.PrintMode || (e.PrintMode = {}))[Y.AutoSelect = 0] = "AutoSelect", Y[Y.ForcePDFPlugin = 1] = "ForcePDFPlugin", Y[Y.ForcePDFFile = 2] = "ForcePDFFile", e.ScaleMode = void 0, (Q = e.ScaleMode || (e.ScaleMode = {}))[Q.FitPageWidth = 0] = "FitPageWidth", Q[Q.FitPage = 1] = "FitPage", Q[Q.Specific = 2] = "Specific", e.ServiceType = void 0, (ee = e.ServiceType || (e.ServiceType = {}))[ee.REST = 0] = "REST", ee[ee.ReportServer = 1] = "ReportServer", e.ViewMode = void 0, (te = e.ViewMode || (e.ViewMode = {}))[te.Interactive = 0] = "Interactive", te[te.PrintPreview = 1] = "PrintPreview";
3124
- const Ee = "System.Int64", Me = "System.Double", ke = "System.String", xe = "System.DateTime", Ne = "System.Boolean";
3125
- var De = (function() {
3198
+ const xe = "System.Int64", Ne = "System.Double", De = "System.String", Ve = "System.DateTime", Fe = "System.Boolean";
3199
+ var Oe = (function() {
3126
3200
  var e2 = {};
3127
3201
  function t2(e3, t3, i3, n2) {
3128
3202
  var r2 = [].concat(t3).map(function(t4) {
3129
3203
  return (function(e4, t5, i4) {
3130
3204
  if (e4.availableValues) {
3131
3205
  var n3 = false;
3132
- if (we(e4.availableValues, function(e5, r3) {
3206
+ if (Ae(e4.availableValues, function(e5, r3) {
3133
3207
  return !(n3 = i4(t5, r3.value));
3134
3208
  }), !n3) {
3135
3209
  if (e4.allowNull && !t5) return t5;
@@ -3151,7 +3225,7 @@ var telerikReportViewer = (function (exports) {
3151
3225
  function i2(e3, t3) {
3152
3226
  return e3.allowNull && -1 != [null, "", void 0].indexOf(t3);
3153
3227
  }
3154
- return e2[ke] = { validate: function(e3, i3) {
3228
+ return e2[De] = { validate: function(e3, i3) {
3155
3229
  return t2(e3, i3, function(t3) {
3156
3230
  if (!t3) {
3157
3231
  if (e3.allowNull) return null;
@@ -3162,37 +3236,37 @@ var telerikReportViewer = (function (exports) {
3162
3236
  }, function(e4, t3) {
3163
3237
  return e4 == t3;
3164
3238
  });
3165
- } }, e2[Me] = { validate: function(e3, n2) {
3239
+ } }, e2[Ne] = { validate: function(e3, n2) {
3166
3240
  return t2(e3, n2, function(t3) {
3167
- var n3 = Re(t3);
3241
+ var n3 = Me(t3);
3168
3242
  if (isNaN(n3)) {
3169
3243
  if (i2(e3, t3)) return null;
3170
3244
  throw "Parameter value cannot be empty.";
3171
3245
  }
3172
3246
  return n3;
3173
3247
  }, function(e4, t3) {
3174
- return Re(e4) == Re(t3);
3248
+ return Me(e4) == Me(t3);
3175
3249
  });
3176
- } }, e2[Ee] = { validate: function(e3, n2) {
3250
+ } }, e2[xe] = { validate: function(e3, n2) {
3177
3251
  return t2(e3, n2, function(t3) {
3178
- var n3 = Te(t3);
3252
+ var n3 = Ee(t3);
3179
3253
  if (isNaN(n3)) {
3180
3254
  if (i2(e3, t3)) return null;
3181
3255
  throw "Parameter value cannot be empty.";
3182
3256
  }
3183
3257
  return n3;
3184
3258
  }, function(e4, t3) {
3185
- return Te(e4) == Re(t3);
3259
+ return Ee(e4) == Me(t3);
3186
3260
  });
3187
- } }, e2[xe] = { validate: function(e3, i3) {
3261
+ } }, e2[Ve] = { validate: function(e3, i3) {
3188
3262
  return t2(e3, i3, function(t3) {
3189
3263
  if (e3.allowNull && (null === t3 || "" === t3 || void 0 === t3)) return null;
3190
- if (!isNaN(Date.parse(t3))) return e3.availableValues ? t3 : Ae(t3);
3264
+ if (!isNaN(Date.parse(t3))) return e3.availableValues ? t3 : ke(t3);
3191
3265
  throw "Please input a valid date.";
3192
3266
  }, function(e4, t3) {
3193
- return e4 = Ae(e4), t3 = Ae(t3), e4.getTime() == t3.getTime();
3267
+ return e4 = ke(e4), t3 = ke(t3), e4.getTime() == t3.getTime();
3194
3268
  });
3195
- } }, e2[Ne] = { validate: function(e3, n2) {
3269
+ } }, e2[Fe] = { validate: function(e3, n2) {
3196
3270
  return t2(e3, n2, function(t3) {
3197
3271
  if (-1 != ["true", "false"].indexOf(String(t3).toLowerCase())) return Boolean(t3);
3198
3272
  if (i2(e3, t3)) return null;
@@ -3202,11 +3276,11 @@ var telerikReportViewer = (function (exports) {
3202
3276
  });
3203
3277
  } }, { validate: function(t3, i3) {
3204
3278
  var n2 = e2[t3.type];
3205
- if (!n2) throw be("Cannot validate parameter of type {type}.", t3);
3279
+ if (!n2) throw we("Cannot validate parameter of type {type}.", t3);
3206
3280
  return n2.validate(t3, i3);
3207
3281
  } };
3208
3282
  })();
3209
- function Ve(e2, t2, i2) {
3283
+ function ze(e2, t2, i2) {
3210
3284
  try {
3211
3285
  const n2 = e2.availableValues.find((e3) => e3.value === t2);
3212
3286
  if (!n2) {
@@ -3218,17 +3292,17 @@ var telerikReportViewer = (function (exports) {
3218
3292
  return;
3219
3293
  }
3220
3294
  }
3221
- function Fe(e2, t2, i2) {
3295
+ function _e(e2, t2, i2) {
3222
3296
  const n2 = [];
3223
- for (let r2 in t2) n2.push(Ve(e2, t2[r2], i2));
3297
+ for (let r2 in t2) n2.push(ze(e2, t2[r2], i2));
3224
3298
  return n2;
3225
3299
  }
3226
- class Oe {
3300
+ class He {
3227
3301
  constructor(e2 = "", t2 = {}) {
3228
3302
  this.report = e2, this.parameters = t2;
3229
3303
  }
3230
3304
  }
3231
- class ze extends q {
3305
+ class Ue extends W {
3232
3306
  constructor(e2) {
3233
3307
  super(), this.resizeObserver = null, this.element = e2, this.initResizeObserver();
3234
3308
  }
@@ -3236,7 +3310,7 @@ var telerikReportViewer = (function (exports) {
3236
3310
  this.destroyResizeObserver();
3237
3311
  }
3238
3312
  initResizeObserver() {
3239
- this.debounceResize = ve(this.onResize.bind(this), 50), this.resizeObserver = new ResizeObserver(this.debounceResize), this.resizeObserver.observe(this.element);
3313
+ this.debounceResize = Pe(this.onResize.bind(this), 50), this.resizeObserver = new ResizeObserver(this.debounceResize), this.resizeObserver.observe(this.element);
3240
3314
  }
3241
3315
  destroyResizeObserver() {
3242
3316
  this.resizeObserver && this.resizeObserver.unobserve(this.element), this.resizeObserver = this.debounceResize = null;
@@ -3245,8 +3319,8 @@ var telerikReportViewer = (function (exports) {
3245
3319
  e2[0].target === this.element && this.emit("resize");
3246
3320
  }
3247
3321
  }
3248
- const _e = '<div class="trv-report-page trv-skeleton-page trv-skeleton-{0}" data-page="{0}"><div class="trv-skeleton-wrapper"></div></div>';
3249
- class He {
3322
+ const $e = '<div class="trv-report-page trv-skeleton-page trv-skeleton-{0}" data-page="{0}"><div class="trv-skeleton-wrapper"></div></div>';
3323
+ class Be {
3250
3324
  constructor(t2, i2, n2) {
3251
3325
  this.enabled = false, this.viewMode = e.ViewMode.Interactive, this.scrollInProgress = false, this.additionalTopOffset = 130, this.onClickHandler = null, this.debounceScroll = null, this.throttleScroll = null, this.oldScrollTopPosition = 0, this.lastLoadedPage = null, this.placeholder = t2, this.pageContainer = t2.querySelector(".trv-page-container"), this.pageWrapper = t2.querySelector(".trv-page-wrapper"), this.contentArea = i2, this.controller = n2, this.controller.getPageMode() === e.PageMode.ContinuousScroll && this.enable(), this.controller.on("loadedReportChange", this.disable.bind(this)).on("viewModeChanged", this.disable.bind(this)).on("scaleChanged", this.onScaleChanged.bind(this)).on("interactiveActionExecuting", this.onInteractiveActionExecuting.bind(this)).on("pageLoaded", this.onPageLoaded.bind(this));
3252
3326
  }
@@ -3268,10 +3342,10 @@ var telerikReportViewer = (function (exports) {
3268
3342
  return this.enabled;
3269
3343
  }
3270
3344
  enable() {
3271
- this.enabled = true, ne(this.placeholder, "scrollable"), this.initEvents();
3345
+ this.enabled = true, re(this.placeholder, "scrollable"), this.initEvents();
3272
3346
  }
3273
3347
  disable() {
3274
- this.enabled && (this.lastLoadedPage = null, this.pageWrapper.innerHTML = "", this.enabled = false, re(this.placeholder, "scrollable"), this.unbind());
3348
+ this.enabled && (this.lastLoadedPage = null, this.pageWrapper.innerHTML = "", this.enabled = false, se(this.placeholder, "scrollable"), this.unbind());
3275
3349
  }
3276
3350
  renderPage(e2) {
3277
3351
  let t2 = this.controller.getViewMode(), i2 = this.findPageElement(e2.pageNumber);
@@ -3286,7 +3360,7 @@ var telerikReportViewer = (function (exports) {
3286
3360
  this.enabled && this.currentPageNumber() > 0 && this.keepCurrentPageInToView();
3287
3361
  }
3288
3362
  setCurrentPage(e2) {
3289
- e2 !== this.currentPageNumber() && this.controller.setCurrentPageNumber(e2), this.controller.getPageCount() > 1 && (re(this.findElement(".k-state-default"), "k-state-default"), ne(this.findPageElement(e2), "k-state-default")), this.loadNextPreviousPage(e2);
3363
+ e2 !== this.currentPageNumber() && this.controller.setCurrentPageNumber(e2), this.controller.getPageCount() > 1 && (se(this.findElement(".k-state-default"), "k-state-default"), re(this.findPageElement(e2), "k-state-default")), this.loadNextPreviousPage(e2);
3290
3364
  }
3291
3365
  updatePageArea(e2) {
3292
3366
  var t2;
@@ -3311,17 +3385,17 @@ var telerikReportViewer = (function (exports) {
3311
3385
  return this.controller.getCurrentPageNumber();
3312
3386
  }
3313
3387
  isSkeletonScreen(e2, t2) {
3314
- return !(!e2 && !(e2 = this.findPageElement(t2))) && se(e2, "trv-skeleton-" + t2);
3388
+ return !(!e2 && !(e2 = this.findPageElement(t2))) && oe(e2, "trv-skeleton-" + t2);
3315
3389
  }
3316
3390
  addSkeletonScreen(e2, t2) {
3317
- let i2 = be(_e, e2);
3318
- t2 ? ge(this.pageWrapper, i2) : pe(this.pageWrapper, i2);
3391
+ let i2 = we($e, e2);
3392
+ t2 ? fe(this.pageWrapper, i2) : ge(this.pageWrapper, i2);
3319
3393
  }
3320
3394
  generateSkeletonScreens(e2) {
3321
3395
  var t2;
3322
3396
  let i2 = "", n2 = null === (t2 = this.findLastElement(".trv-report-page")) || void 0 === t2 ? void 0 : t2.dataset.page, r2 = n2 ? parseInt(n2) + 1 : 1;
3323
- for (; r2 < e2; r2++) i2 += be(_e, r2);
3324
- pe(this.pageWrapper, i2);
3397
+ for (; r2 < e2; r2++) i2 += we($e, r2);
3398
+ ge(this.pageWrapper, i2);
3325
3399
  }
3326
3400
  loadMorePages() {
3327
3401
  var e2;
@@ -3367,10 +3441,10 @@ var telerikReportViewer = (function (exports) {
3367
3441
  }
3368
3442
  }
3369
3443
  initEvents() {
3370
- this.onClickHandler = this.clickPage.bind(this), this.debounceScroll = ve(() => {
3444
+ this.onClickHandler = this.clickPage.bind(this), this.debounceScroll = Pe(() => {
3371
3445
  let e2 = this.placeholder.querySelectorAll(".trv-report-page"), t2 = Math.round(this.pageContainer.scrollTop + this.pageContainer.offsetHeight);
3372
3446
  !this.scrollInProgress && e2.length && this.oldScrollTopPosition !== t2 && this.advanceCurrentPage(Array.from(e2));
3373
- }, 250), this.throttleScroll = Pe(() => {
3447
+ }, 250), this.throttleScroll = Ce(() => {
3374
3448
  let e2 = this.placeholder.querySelectorAll(".trv-report-page"), t2 = Math.round(this.pageContainer.scrollTop + this.pageContainer.offsetHeight);
3375
3449
  this.scrollInProgress || this.oldScrollTopPosition === t2 || (this.oldScrollTopPosition > t2 ? this.scrollUp(Array.from(e2)) : this.scrollDown(Array.from(e2), t2)), this.oldScrollTopPosition = t2;
3376
3450
  }, 250), this.pageContainer.addEventListener("click", this.onClickHandler), this.pageContainer.addEventListener("scroll", this.debounceScroll), this.pageContainer.addEventListener("scroll", this.throttleScroll);
@@ -3459,7 +3533,7 @@ var telerikReportViewer = (function (exports) {
3459
3533
  return i2 && i2.length ? i2[i2.length - 1] : null;
3460
3534
  }
3461
3535
  }
3462
- class Ue {
3536
+ class qe {
3463
3537
  constructor() {
3464
3538
  this.scaleFactor = 0, this.placeholder = null, this.scrollableContainer = null, this.itemsInitialState = {}, this.xFrozenAreasBounds = {}, this.yFrozenAreasBounds = {}, this.freezeMaxZIndex = {}, this.freezeBGColor = {}, this.currentlyFrozenContainer = { vertical: {}, horizontal: {} }, this.zIndex = 1;
3465
3539
  }
@@ -3467,7 +3541,7 @@ var telerikReportViewer = (function (exports) {
3467
3541
  this.reset(e2), this.attachToScrollEvent();
3468
3542
  }
3469
3543
  reset(e2) {
3470
- this.placeholder = e2, this.scrollableContainer = fe(e2, ".trv-page-container"), this.itemsInitialState = {}, this.xFrozenAreasBounds = {}, this.yFrozenAreasBounds = {}, this.currentlyFrozenContainer = { vertical: {}, horizontal: {} };
3544
+ this.placeholder = e2, this.scrollableContainer = me(e2, ".trv-page-container"), this.itemsInitialState = {}, this.xFrozenAreasBounds = {}, this.yFrozenAreasBounds = {}, this.currentlyFrozenContainer = { vertical: {}, horizontal: {} };
3471
3545
  }
3472
3546
  setScaleFactor(e2) {
3473
3547
  this.scaleFactor = e2;
@@ -3490,7 +3564,7 @@ var telerikReportViewer = (function (exports) {
3490
3564
  saveFreezeItemsInitialState(e2) {
3491
3565
  var t2, i2, n2;
3492
3566
  let r2 = null === (t2 = this.placeholder) || void 0 === t2 ? void 0 : t2.querySelectorAll("[data-sticky-direction][data-sticky-id='" + e2 + "']"), s2 = null === (i2 = this.placeholder) || void 0 === i2 ? void 0 : i2.querySelectorAll("[data-reporting-action][data-sticky-id='" + e2 + "']"), o2 = null, a2 = null, l2 = null, h2 = null;
3493
- this.itemsInitialState[e2] = {}, this.freezeBGColor[e2] = (null === (n2 = fe(this.placeholder, "[data-id='" + e2 + "']")) || void 0 === n2 ? void 0 : n2.dataset.stickyBgColor) || "", r2.forEach((t3) => {
3567
+ this.itemsInitialState[e2] = {}, this.freezeBGColor[e2] = (null === (n2 = me(this.placeholder, "[data-id='" + e2 + "']")) || void 0 === n2 ? void 0 : n2.dataset.stickyBgColor) || "", r2.forEach((t3) => {
3494
3568
  var i3;
3495
3569
  let n3 = t3.dataset.stickyDirection, r3 = (null === (i3 = t3.dataset.id) || void 0 === i3 ? void 0 : i3.toString()) || "", s3 = t3.offsetLeft / this.scaleFactor, c2 = t3.offsetLeft + t3.offsetWidth * this.scaleFactor, d2 = t3.offsetTop / this.scaleFactor, u2 = t3.offsetTop + t3.offsetHeight * this.scaleFactor, p2 = (e3, t4) => null === e3 || t4 < e3 ? t4 : e3, g2 = (e3, t4) => null === e3 || t4 > e3 ? t4 : e3;
3496
3570
  switch (n3) {
@@ -3512,7 +3586,7 @@ var telerikReportViewer = (function (exports) {
3512
3586
  }
3513
3587
  updateFreezeItemsOnScroll(e2, t2, i2) {
3514
3588
  var n2, r2;
3515
- let s2 = fe(this.placeholder, "div[data-id='" + e2 + "']");
3589
+ let s2 = me(this.placeholder, "div[data-id='" + e2 + "']");
3516
3590
  if (!s2) return;
3517
3591
  let o2 = null === (n2 = this.placeholder) || void 0 === n2 ? void 0 : n2.querySelectorAll("[data-sticky-direction*='Horizontal'][data-sticky-id='" + e2 + "']"), a2 = null === (r2 = this.placeholder) || void 0 === r2 ? void 0 : r2.querySelectorAll("[data-sticky-direction*='Vertical'][data-sticky-id='" + e2 + "']");
3518
3592
  if (this.isInScrollVisibleArea(s2)) {
@@ -3535,7 +3609,7 @@ var telerikReportViewer = (function (exports) {
3535
3609
  "IMG" !== e2.tagName && (t2 && this.isFrozen(r2) && !i2 ? e2.style.backgroundColor = this.freezeBGColor[r2] : e2.style.backgroundColor = n2 ? this.freezeBGColor[r2] : "initial");
3536
3610
  }
3537
3611
  hasSetBgColor(e2) {
3538
- return ue(e2) > 0;
3612
+ return pe(e2) > 0;
3539
3613
  }
3540
3614
  isFrozen(e2) {
3541
3615
  return this.currentlyFrozenContainer.horizontal[e2] || this.currentlyFrozenContainer.vertical[e2];
@@ -3554,21 +3628,22 @@ var telerikReportViewer = (function (exports) {
3554
3628
  return e2.top > t2.scrollTop - n2 && e2.top < t2.scrollTop + n2 + i2.height;
3555
3629
  }
3556
3630
  }
3557
- const $e = /{(\w+?)}/g, Be = "trv-initial-image-styles";
3558
- function qe(e2, t2) {
3631
+ const We = /{(\w+?)}/g, Ze = "trv-initial-image-styles";
3632
+ function je(e2, t2) {
3559
3633
  let i2 = Array.isArray(t2);
3560
- return e2 ? e2.replace($e, function(e3, n2) {
3634
+ return e2 ? e2.replace(We, function(e3, n2) {
3561
3635
  return t2[i2 ? parseInt(n2) : n2];
3562
3636
  }) : "";
3563
3637
  }
3564
- const We = "trv-search-dialog-shaded-result", Ze = "trv-search-dialog-highlighted-result";
3565
- e.BasicAuth = w, e.BookmarkNode = class {
3638
+ const Ge = "trv-search-dialog-shaded-result", Je = "trv-search-dialog-highlighted-result";
3639
+ var Ke;
3640
+ Ke = /* @__PURE__ */ new WeakMap(), e.BasicAuth = L, e.BookmarkNode = class {
3566
3641
  constructor() {
3567
3642
  this.id = "", this.text = "", this.page = 0, this.items = null;
3568
3643
  }
3569
- }, e.ConnectionConfig = T, e.ConnectionConfigNoAuth = R, e.ConnectionConfigServerCredentials = E, e.ConnectionConfigServerNoAuth = A, e.ConnectionConfigServerToken = M, e.ContentArea = class {
3644
+ }, e.ConnectionConfig = A, e.ConnectionConfigNoAuth = R, e.ConnectionConfigServerCredentials = M, e.ConnectionConfigServerNoAuth = E, e.ConnectionConfigServerToken = k, e.ContentArea = class {
3570
3645
  constructor(e2, t2, i2, n2 = {}) {
3571
- this.actions = [], this.pendingElement = null, this.documentReady = true, this.reportPageIsLoaded = false, this.navigateToPageOnDocReady = 0, this.navigateToElementOnDocReady = null, this.onClickHandler = null, this.onMouseEnterHandler = null, this.onMouseLeaveHandler = null, this.isNewReportSource = false, this.uiFreezeCoordinator = null, this.initialPageAreaImageUrl = "", this.showPageAreaImage = false, this.placeholder = e2.querySelector(".trv-pages-pane, .trv-pages-area"), this.pageContainer = e2.querySelector(".trv-page-container"), this.pageWrapper = e2.querySelector(".trv-page-wrapper"), this.parametersContainer = e2.querySelector(".trv-parameters-area"), this.notification = e2.querySelector(".trv-notification, .trv-error-pane"), this.scrollManager = new He(this.placeholder, this, t2), this.resizeService = new ze(this.pageContainer), this.resizeService.on("resize", this.onResize.bind(this)), this.controller = t2, this.controller.on("pageReady", this.onPageReady.bind(this)).on("navigateToPage", this.navigateToPage.bind(this)).on("serverActionStarted", this.onServerActionStarted.bind(this)).on("reportSourceChanged", this.onReportSourceChanged.bind(this)).on("scaleChanged", this.updatePageDimensions.bind(this)).on("scaleModeChanged", this.updatePageDimensions.bind(this)).on("printDocumentReady", this.onPrintDocumentReady.bind(this)).on("exportDocumentReady", this.onExportDocumentReady.bind(this)).onAsync("beforeLoadReport", this.onBeforeLoadReport.bind(this)).on("beginLoadReport", this.onBeginLoadReport.bind(this)).on("reportLoadProgress", this.onReportLoadProgress.bind(this)).onAsync("reportLoadComplete", this.onReportLoadComplete.bind(this)).onAsync("reportAutoRunOff", this.onReportAutoRunOff.bind(this)).on("renderingStopped", this.onRenderingStopped.bind(this)).on("missingOrInvalidParameters", this.onMissingOrInvalidParameters.bind(this)).on("noReport", this.onNoReport.bind(this)).on("error", this.onError.bind(this)).on("showNotification", this.onShowNotification.bind(this)), this.messages = i2, this.enableAccessibility = n2.enableAccessibility || false, this.initialPageAreaImageUrl = n2.initialPageAreaImageUrl || "";
3646
+ this.actions = [], this.pendingElement = null, this.documentReady = true, this.reportPageIsLoaded = false, this.navigateToPageOnDocReady = 0, this.navigateToElementOnDocReady = null, this.onClickHandler = null, this.onMouseEnterHandler = null, this.onMouseLeaveHandler = null, this.isNewReportSource = false, this.uiFreezeCoordinator = null, this.initialPageAreaImageUrl = "", this.showPageAreaImage = false, this.placeholder = e2.querySelector(".trv-pages-pane, .trv-pages-area"), this.pageContainer = e2.querySelector(".trv-page-container"), this.pageWrapper = e2.querySelector(".trv-page-wrapper"), this.parametersContainer = e2.querySelector(".trv-parameters-area"), this.notification = e2.querySelector(".trv-notification, .trv-error-pane"), this.scrollManager = new Be(this.placeholder, this, t2), this.resizeService = new Ue(this.pageContainer), this.resizeService.on("resize", this.onResize.bind(this)), this.controller = t2, this.controller.on("pageReady", this.onPageReady.bind(this)).on("navigateToPage", this.navigateToPage.bind(this)).on("serverActionStarted", this.onServerActionStarted.bind(this)).on("reportSourceChanged", this.onReportSourceChanged.bind(this)).on("scaleChanged", this.updatePageDimensions.bind(this)).on("scaleModeChanged", this.updatePageDimensions.bind(this)).on("printDocumentReady", this.onPrintDocumentReady.bind(this)).on("exportDocumentReady", this.onExportDocumentReady.bind(this)).onAsync("beforeLoadReport", this.onBeforeLoadReport.bind(this)).on("beginLoadReport", this.onBeginLoadReport.bind(this)).on("reportLoadProgress", this.onReportLoadProgress.bind(this)).onAsync("reportLoadComplete", this.onReportLoadComplete.bind(this)).onAsync("reportAutoRunOff", this.onReportAutoRunOff.bind(this)).on("renderingStopped", this.onRenderingStopped.bind(this)).on("missingOrInvalidParameters", this.onMissingOrInvalidParameters.bind(this)).on("noReport", this.onNoReport.bind(this)).on("error", this.onError.bind(this)).on("showNotification", this.onShowNotification.bind(this)), this.messages = i2, this.enableAccessibility = n2.enableAccessibility || false, this.initialPageAreaImageUrl = n2.initialPageAreaImageUrl || "";
3572
3647
  }
3573
3648
  destroy() {
3574
3649
  this.resizeService && this.resizeService.destroy();
@@ -3595,10 +3670,10 @@ var telerikReportViewer = (function (exports) {
3595
3670
  this.documentReady = true, this.invalidateCurrentlyLoadedPage();
3596
3671
  }
3597
3672
  onReportLoadProgress(e2) {
3598
- this.navigateWhenPageAvailable(this.navigateToPageOnDocReady, e2.pageCount), this.showNotification(qe(this.messages.ReportViewer_LoadingReportPagesInProgress, [e2.pageCount]));
3673
+ this.navigateWhenPageAvailable(this.navigateToPageOnDocReady, e2.pageCount), this.showNotification(je(this.messages.ReportViewer_LoadingReportPagesInProgress, [e2.pageCount]));
3599
3674
  }
3600
3675
  onReportLoadComplete(t2) {
3601
- 0 === t2.pageCount ? (this.clearPage(), this.showNotification(this.messages.ReportViewer_NoPageToDisplay)) : (this.navigateOnLoadComplete(this.navigateToPageOnDocReady, t2.pageCount), this.showNotification(qe(this.messages.ReportViewer_LoadedReportPagesComplete, [t2.pageCount])), this.showNotificationTimeoutId = window.setTimeout(this.hideNotification.bind(this), 2e3), this.disableParametersArea(false), this.enableInteractivity()), t2.containsFrozenContent && null === this.uiFreezeCoordinator && (this.uiFreezeCoordinator = new Ue(), this.controller.getViewMode() === e.ViewMode.Interactive && this.uiFreezeCoordinator.init(this.placeholder));
3676
+ 0 === t2.pageCount ? (this.clearPage(), this.showNotification(this.messages.ReportViewer_NoPageToDisplay)) : (this.navigateOnLoadComplete(this.navigateToPageOnDocReady, t2.pageCount), this.showNotification(je(this.messages.ReportViewer_LoadedReportPagesComplete, [t2.pageCount])), this.showNotificationTimeoutId = window.setTimeout(this.hideNotification.bind(this), 2e3), this.disableParametersArea(false), this.enableInteractivity()), t2.containsFrozenContent && null === this.uiFreezeCoordinator && (this.uiFreezeCoordinator = new qe(), this.controller.getViewMode() === e.ViewMode.Interactive && this.uiFreezeCoordinator.init(this.placeholder));
3602
3677
  }
3603
3678
  onReportAutoRunOff() {
3604
3679
  this.disableParametersArea(false), this.showNotification(this.messages.ReportViewer_AutoRunDisabled || "Please validate the report parameter values and press Preview to generate the report.");
@@ -3685,14 +3760,14 @@ var telerikReportViewer = (function (exports) {
3685
3760
  }
3686
3761
  let e3 = 0, i3 = 0;
3687
3762
  for (; n2 && n2 !== this.pageContainer; ) {
3688
- if (se(n2, "trv-page-wrapper")) {
3763
+ if (oe(n2, "trv-page-wrapper")) {
3689
3764
  let t3 = n2.dataset.pageScale;
3690
3765
  if ("string" == typeof t3) {
3691
3766
  let n3 = parseFloat(t3);
3692
3767
  e3 *= n3, i3 *= n3;
3693
3768
  }
3694
3769
  }
3695
- e3 += n2.offsetTop, i3 += n2.offsetLeft, n2 = oe(n2);
3770
+ e3 += n2.offsetTop, i3 += n2.offsetLeft, n2 = ae(n2);
3696
3771
  }
3697
3772
  this.scrollManager.getEnabled() && t2 ? this.scrollManager.navigateToElement(e3, t2) : (this.pageContainer.scrollTop = e3, this.pageContainer.scrollLeft = i3);
3698
3773
  } else this.scrollManager.getEnabled() && t2 && this.scrollManager.navigateToElement((null === (i2 = this.placeholder) || void 0 === i2 ? void 0 : i2.querySelector('[data-page="' + t2 + '"]')).offsetTop, t2);
@@ -3704,7 +3779,7 @@ var telerikReportViewer = (function (exports) {
3704
3779
  return !isNaN(t2) && t2 > -1 ? e2 : this.findNextFocusableElement(e2.nextElementSibling);
3705
3780
  }
3706
3781
  disablePagesArea(e2) {
3707
- e2 ? ne(this.placeholder, "trv-loading") : re(this.placeholder, "trv-loading");
3782
+ e2 ? re(this.placeholder, "trv-loading") : se(this.placeholder, "trv-loading");
3708
3783
  }
3709
3784
  disableParametersArea(e2) {
3710
3785
  var t2, i2;
@@ -3715,13 +3790,13 @@ var telerikReportViewer = (function (exports) {
3715
3790
  }
3716
3791
  showNotification(e2 = "", t2 = "info") {
3717
3792
  let i2 = this.notification.dataset.type;
3718
- i2 && re(this.notification, `k-notification-${i2}`), this.notification.dataset.type = t2;
3793
+ i2 && se(this.notification, `k-notification-${i2}`), this.notification.dataset.type = t2;
3719
3794
  let n2 = this.notification.querySelector(".k-notification-content, .trv-error-message"), r2 = null == e2 ? void 0 : e2.split(/\r?\n/);
3720
- n2.innerHTML = r2 && r2.length ? `${r2.join("<br>")}` : "Notification message not found.", ne(this.notification, `k-notification-${t2}`), re(this.notification, "k-hidden");
3795
+ n2.innerHTML = r2 && r2.length ? `${r2.join("<br>")}` : "Notification message not found.", re(this.notification, `k-notification-${t2}`), se(this.notification, "k-hidden");
3721
3796
  }
3722
3797
  hideNotification() {
3723
3798
  let e2 = String(this.notification.dataset.type);
3724
- delete this.notification.dataset.type, re(this.notification, `k-notification-${e2}`), ne(this.notification, "k-hidden");
3799
+ delete this.notification.dataset.type, se(this.notification, `k-notification-${e2}`), re(this.notification, "k-hidden");
3725
3800
  }
3726
3801
  pageNo(e2) {
3727
3802
  var t2;
@@ -3741,7 +3816,7 @@ var telerikReportViewer = (function (exports) {
3741
3816
  if (n2.dataset.box) r2 = JSON.parse(n2.dataset.box);
3742
3817
  else {
3743
3818
  let e2 = getComputedStyle(n2), i3 = getComputedStyle(t2);
3744
- r2 = { padLeft: ae(i3.marginLeft) + ae(e2.borderLeftWidth) + ae(e2.paddingLeft), padRight: ae(i3.marginRight) + ae(e2.borderRightWidth) + ae(e2.paddingRight), padTop: ae(i3.marginTop) + ae(e2.borderTopWidth) + ae(e2.paddingTop), padBottom: ae(i3.marginBottom) + ae(e2.borderBottomWidth) + ae(e2.paddingBottom) }, n2.dataset.box = JSON.stringify(r2);
3819
+ r2 = { padLeft: le(i3.marginLeft) + le(e2.borderLeftWidth) + le(e2.paddingLeft), padRight: le(i3.marginRight) + le(e2.borderRightWidth) + le(e2.paddingRight), padTop: le(i3.marginTop) + le(e2.borderTopWidth) + le(e2.paddingTop), padBottom: le(i3.marginBottom) + le(e2.borderBottomWidth) + le(e2.paddingBottom) }, n2.dataset.box = JSON.stringify(r2);
3745
3820
  }
3746
3821
  let a2 = s2.offsetWidth, l2 = s2.offsetHeight;
3747
3822
  if (0 === a2) {
@@ -3750,7 +3825,7 @@ var telerikReportViewer = (function (exports) {
3750
3825
  }
3751
3826
  const h2 = this.controller.getScaleMode(), c2 = l2 > a2 && h2 === e.ScaleMode.FitPageWidth ? 20 : 0, d2 = (this.pageContainer.clientWidth - c2 - r2.padLeft - r2.padRight) / a2, u2 = (this.pageContainer.clientHeight - 1 - r2.padTop - r2.padBottom) / l2;
3752
3827
  let p2 = this.controller.getScale();
3753
- h2 === e.ScaleMode.FitPageWidth ? p2 = d2 : p2 && h2 !== e.ScaleMode.FitPage || (p2 = Math.min(d2, u2)), null !== this.uiFreezeCoordinator && this.uiFreezeCoordinator.setScaleFactor(p2), t2.dataset.pageScale = p2.toString(), n2.dataset.pageScale = p2.toString(), o2 || le(s2, p2, p2), n2.style.height = p2 * l2 + "px", n2.style.width = p2 * a2 + "px", this.controller.setScale(p2, true);
3828
+ h2 === e.ScaleMode.FitPageWidth ? p2 = d2 : p2 && h2 !== e.ScaleMode.FitPage || (p2 = Math.min(d2, u2)), null !== this.uiFreezeCoordinator && this.uiFreezeCoordinator.setScaleFactor(p2), t2.dataset.pageScale = p2.toString(), n2.dataset.pageScale = p2.toString(), o2 || he(s2, p2, p2), n2.style.height = p2 * l2 + "px", n2.style.width = p2 * a2 + "px", this.controller.setScale(p2, true);
3754
3829
  }
3755
3830
  enableInteractivity() {
3756
3831
  this.disableInteractivity(), this.onClickHandler = this.onClick.bind(this), this.onMouseEnterHandler = this.onMouseEnter.bind(this), this.onMouseLeaveHandler = this.onMouseLeave.bind(this), this.pageContainer.addEventListener("click", this.onClickHandler), this.pageContainer.addEventListener("mouseenter", this.onMouseEnterHandler, true), this.pageContainer.addEventListener("mouseleave", this.onMouseLeaveHandler, true);
@@ -3773,24 +3848,24 @@ var telerikReportViewer = (function (exports) {
3773
3848
  onInteractiveItemClick(e2, t2) {
3774
3849
  var i2;
3775
3850
  let n2 = (null === (i2 = e2.dataset.reportingAction) || void 0 === i2 ? void 0 : i2.toString()) || "", r2 = this.getAction(n2);
3776
- r2 && (this.navigateToPageOnDocReady = this.getNavigateToPageOnDocReady(t2, r2.Type), this.controller.executeReportAction(new l(e2, r2))), t2.stopPropagation();
3851
+ r2 && (this.navigateToPageOnDocReady = this.getNavigateToPageOnDocReady(t2, r2.Type), this.controller.executeReportAction(new h(e2, r2))), t2.stopPropagation();
3777
3852
  }
3778
3853
  onInteractiveItemEnter(e2) {
3779
3854
  var t2;
3780
3855
  let i2 = (null === (t2 = e2.dataset.reportingAction) || void 0 === t2 ? void 0 : t2.toString()) || "", n2 = this.getAction(i2);
3781
- n2 && this.controller.reportActionEnter(new l(e2, n2));
3856
+ n2 && this.controller.reportActionEnter(new h(e2, n2));
3782
3857
  }
3783
3858
  onInteractiveItemLeave(e2) {
3784
3859
  var t2;
3785
3860
  let i2 = (null === (t2 = e2.dataset.reportingAction) || void 0 === t2 ? void 0 : t2.toString()) || "", n2 = this.getAction(i2);
3786
- n2 && this.controller.reportActionLeave(new l(e2, n2));
3861
+ n2 && this.controller.reportActionLeave(new h(e2, n2));
3787
3862
  }
3788
3863
  onToolTipItemEnter(e2, t2) {
3789
3864
  let i2 = e2.dataset.tooltipTitle, n2 = e2.dataset.tooltipText;
3790
- (i2 || n2) && this.controller.reportTooltipOpening(new P(e2, n2 || "", i2 || "", t2));
3865
+ (i2 || n2) && this.controller.reportTooltipOpening(new C(e2, n2 || "", i2 || "", t2));
3791
3866
  }
3792
3867
  onToolTipItemLeave(e2) {
3793
- this.controller.reportTooltipClosing(new P(e2, "", "", null));
3868
+ this.controller.reportTooltipClosing(new C(e2, "", "", null));
3794
3869
  }
3795
3870
  getNavigateToPageOnDocReady(e2, t2) {
3796
3871
  var i2;
@@ -3807,7 +3882,7 @@ var telerikReportViewer = (function (exports) {
3807
3882
  var t2;
3808
3883
  let i2 = "trv-" + this.controller.getClientId() + "-styles";
3809
3884
  null === (t2 = document.getElementById(i2)) || void 0 === t2 || t2.remove();
3810
- let n2 = ie("style", i2);
3885
+ let n2 = ne("style", i2);
3811
3886
  this.applyNonce(n2), n2.innerHTML = e2.pageStyles, document.head.appendChild(n2);
3812
3887
  }
3813
3888
  setPageContent(e2) {
@@ -3819,15 +3894,15 @@ var telerikReportViewer = (function (exports) {
3819
3894
  this.actions && this.actions.length ? this.actions = this.actions.concat(t2.pageActions) : this.actions = t2.pageActions, this.applyPlaceholderViewModeClass(), this.setPageDimensions(e2, t2.pageNumber);
3820
3895
  }
3821
3896
  renderPageElement(e2) {
3822
- let t2 = ie("div");
3897
+ let t2 = ne("div");
3823
3898
  t2.innerHTML = e2.pageContent;
3824
3899
  let i2 = t2.querySelector("div.sheet");
3825
3900
  i2.style.margin = "0";
3826
- let n2 = ie("div", "", "trv-report-page");
3827
- return n2.dataset.page = e2.pageNumber.toString(), n2.append(i2), n2.append(ie("div", "", "k-overlay trv-overlay trv-page-overlay")), n2;
3901
+ let n2 = ne("div", "", "trv-report-page");
3902
+ return n2.dataset.page = e2.pageNumber.toString(), n2.append(i2), n2.append(ne("div", "", "k-overlay trv-overlay trv-page-overlay")), n2;
3828
3903
  }
3829
3904
  applyPlaceholderViewModeClass() {
3830
- this.controller.getViewMode() === e.ViewMode.Interactive ? (re(this.placeholder, "printpreview"), ne(this.placeholder, "interactive")) : (re(this.placeholder, "interactive"), ne(this.placeholder, "printpreview"));
3905
+ this.controller.getViewMode() === e.ViewMode.Interactive ? (se(this.placeholder, "printpreview"), re(this.placeholder, "interactive")) : (se(this.placeholder, "interactive"), re(this.placeholder, "printpreview"));
3831
3906
  }
3832
3907
  applyNonce(e2) {
3833
3908
  const t2 = this.controller.getNonce();
@@ -3835,14 +3910,18 @@ var telerikReportViewer = (function (exports) {
3835
3910
  }
3836
3911
  setPageAreaImage() {
3837
3912
  this.clearPageAreaImage();
3838
- let e2 = ie("style", Be);
3839
- this.applyNonce(e2), e2.innerHTML = qe('.trv-page-container {background: #ffffff url("{0}") no-repeat center 50px}', [this.initialPageAreaImageUrl]), document.head.appendChild(e2), this.showPageAreaImage = true;
3913
+ let e2 = ne("style", Ze);
3914
+ this.applyNonce(e2), e2.innerHTML = je('.trv-page-container {background: #ffffff url("{0}") no-repeat center 50px}', [this.initialPageAreaImageUrl]), document.head.appendChild(e2), this.showPageAreaImage = true;
3840
3915
  }
3841
3916
  clearPageAreaImage() {
3842
3917
  var e2;
3843
- null === (e2 = document.getElementById(Be)) || void 0 === e2 || e2.remove();
3918
+ null === (e2 = document.getElementById(Ze)) || void 0 === e2 || e2.remove();
3919
+ }
3920
+ }, e.CurrentPageChangedEventArgs = P, e.DeviceInfo = a, e.DeviceSetting = class {
3921
+ constructor() {
3922
+ this.name = "", this.type = "string", this.value = null, this.availableValues = null, this.description = "", this.group = "General", this.readOnly = false;
3844
3923
  }
3845
- }, e.CurrentPageChangedEventArgs = v, e.DeviceInfo = o, e.DocumentInfo = class {
3924
+ }, e.DocumentInfo = class {
3846
3925
  constructor() {
3847
3926
  this.documentReady = false, this.documentMapAvailable = false, this.containsFrozenContent = false, this.pageCount = 0, this.documentMapNodes = [], this.bookmarkNodes = [], this.renderingExtensions = [], this.autoRunEnabled = true;
3848
3927
  }
@@ -3850,29 +3929,61 @@ var telerikReportViewer = (function (exports) {
3850
3929
  constructor() {
3851
3930
  this.id = "", this.isExpanded = false, this.label = "", this.text = "", this.page = 0, this.items = [];
3852
3931
  }
3853
- }, e.EmailInfo = a, e.ExportDocumentReadyEventArgs = u, e.ExportStartEventArgs = c, e.ExportStartedEventArgs = d, e.KeepClientAliveSentinel = K, e.NoAuth = b, e.PageAction = class {
3932
+ }, e.EmailInfo = l, e.ExportDocumentReadyEventArgs = p, e.ExportSettingsStore = class {
3933
+ constructor(e2, t2) {
3934
+ Ke.set(this, {});
3935
+ }
3936
+ getValue(e2, t2) {
3937
+ if (t2.readOnly) return t2.value;
3938
+ const i2 = o(this, Ke, "f")[e2];
3939
+ return i2 && Object.prototype.hasOwnProperty.call(i2, t2.name) ? i2[t2.name] : t2.value;
3940
+ }
3941
+ saveValues(e2, t2, i2) {
3942
+ const n2 = this.getFormatValues(e2), r2 = {};
3943
+ return t2.forEach((e3) => {
3944
+ e3.readOnly || (Object.prototype.hasOwnProperty.call(n2, e3.name) && (r2[e3.name] = n2[e3.name]), Object.prototype.hasOwnProperty.call(i2, e3.name) && (r2[e3.name] = i2[e3.name]));
3945
+ }), Object.keys(r2).length > 0 ? o(this, Ke, "f")[e2] = r2 : delete o(this, Ke, "f")[e2], true;
3946
+ }
3947
+ resetValues(e2) {
3948
+ return delete o(this, Ke, "f")[e2], true;
3949
+ }
3950
+ getDeviceInfo(e2, t2) {
3951
+ const i2 = {};
3952
+ return t2.forEach((t3) => {
3953
+ const n2 = this.getValue(e2, t3), r2 = this.hasValue(e2, t3);
3954
+ (t3.readOnly || r2) && null != n2 && (i2[t3.name] = n2);
3955
+ }), i2;
3956
+ }
3957
+ hasValue(e2, t2) {
3958
+ const i2 = o(this, Ke, "f")[e2];
3959
+ return Boolean(i2 && Object.prototype.hasOwnProperty.call(i2, t2.name));
3960
+ }
3961
+ getFormatValues(e2) {
3962
+ return Object.assign({}, o(this, Ke, "f")[e2]);
3963
+ }
3964
+ }, e.ExportStartEventArgs = d, e.ExportStartedEventArgs = u, e.KeepClientAliveSentinel = X, e.NoAuth = w, e.PageAction = class {
3854
3965
  constructor() {
3855
3966
  this.Id = "", this.ReportItemName = "", this.Type = "", this.Value = {};
3856
3967
  }
3857
- }, e.PageActionEventArgs = l, e.PageInfo = class {
3968
+ }, e.PageActionEventArgs = h, e.PageInfo = class {
3858
3969
  constructor() {
3859
3970
  this.pageNumber = 0, this.pageReady = false, this.pageStyles = "", this.pageContent = "", this.pageActions = [];
3860
3971
  }
3861
- }, e.PageTargetElement = h, e.ParameterInfo = class {
3972
+ }, e.PageTargetElement = c, e.ParameterInfo = class {
3862
3973
  constructor() {
3863
3974
  this.name = "", this.type = "", this.text = "", this.multivalue = false, this.allowNull = false, this.allowBlank = false, this.isVisible = false, this.autoRefresh = false, this.hasChildParameters = false, this.childParameters = [], this.availableValues = [], this.value = "", this.id = "", this.label = "";
3864
3975
  }
3865
- }, e.ParameterValidators = De, e.ParameterValue = class {
3976
+ }, e.ParameterValidators = Oe, e.ParameterValue = class {
3866
3977
  constructor() {
3867
3978
  this.name = "", this.value = null;
3868
3979
  }
3869
- }, e.PersonalTokenAuth = L, e.PrintDocumentReadyEventArgs = g, e.PrintStartedEventArgs = p, e.RenderingExtension = class {
3980
+ }, e.PersonalTokenAuth = T, e.PrintDocumentReadyEventArgs = f, e.PrintStartedEventArgs = g, e.RenderingExtension = class {
3870
3981
  constructor() {
3871
- this.name = "", this.localizedName = "";
3982
+ this.name = "", this.localizedName = "", this.settings = [];
3872
3983
  }
3873
- }, e.ReportController = class extends q {
3984
+ }, e.ReportController = class extends W {
3874
3985
  constructor(e2, t2) {
3875
- super(), this.configurationInfo = null, this.keepClientAliveSentinel = null, this.registerClientPromise = null, this.registerInstancePromise = null, this.documentFormatsPromise = null, this.clientId = "", this.reportInstanceId = "", this.documentId = "", this.threadId = "", this.parameterValues = {}, this.bookmarkNodes = [], this.renderingExtensions = null, this.pageCount = 0, this.currentPageNumber = 0, this.clientHasExpired = false, this.cancelLoad = false, this.searchInitiated = false, this.aiPromptInitiated = false, this.contentTabIndex = 0, this.respectAutoRun = true, this.processedParameterValues = {}, this.options = t2, t2.reportSource && this.setParameters(t2.reportSource.parameters), this.printManager = new G(), this.serviceClient = e2, t2.authenticationToken && this.serviceClient.setAccessToken(t2.authenticationToken);
3986
+ super(), this.configurationInfo = null, this.keepClientAliveSentinel = null, this.registerClientPromise = null, this.registerInstancePromise = null, this.documentFormatsPromise = null, this.clientId = "", this.reportInstanceId = "", this.documentId = "", this.threadId = "", this.parameterValues = {}, this.bookmarkNodes = [], this.renderingExtensions = null, this.pageCount = 0, this.currentPageNumber = 0, this.clientHasExpired = false, this.cancelLoad = false, this.searchInitiated = false, this.aiPromptInitiated = false, this.contentTabIndex = 0, this.respectAutoRun = true, this.processedParameterValues = {}, this.options = t2, t2.reportSource && this.setParameters(t2.reportSource.parameters), this.printManager = new J(), this.serviceClient = e2, t2.authenticationToken && this.serviceClient.setAccessToken(t2.authenticationToken);
3876
3987
  }
3877
3988
  get autoRunEnabled() {
3878
3989
  var e2 = !this.parameterValues || !("trv_AutoRun" in this.parameterValues) || this.parameterValues.trv_AutoRun;
@@ -3917,7 +4028,7 @@ var telerikReportViewer = (function (exports) {
3917
4028
  processParameters(e2) {
3918
4029
  let t2 = {}, i2 = [], n2 = false;
3919
4030
  for (let r2 of e2) try {
3920
- let e3 = De.validate(r2, r2.value);
4031
+ let e3 = Oe.validate(r2, r2.value);
3921
4032
  t2[r2.id] = e3;
3922
4033
  } catch (e3) {
3923
4034
  n2 = true, i2.push(r2);
@@ -3938,7 +4049,7 @@ var telerikReportViewer = (function (exports) {
3938
4049
  }
3939
4050
  hasInvalidParameter(e2) {
3940
4051
  for (const t2 of e2) try {
3941
- De.validate(t2, t2.value);
4052
+ Oe.validate(t2, t2.value);
3942
4053
  } catch (e3) {
3943
4054
  return true;
3944
4055
  }
@@ -3970,7 +4081,7 @@ var telerikReportViewer = (function (exports) {
3970
4081
  }
3971
4082
  getReportSource() {
3972
4083
  var e2;
3973
- return new Oe(null === (e2 = this.options.reportSource) || void 0 === e2 ? void 0 : e2.report, this.parameterValues);
4084
+ return new He(null === (e2 = this.options.reportSource) || void 0 === e2 ? void 0 : e2.report, this.parameterValues);
3974
4085
  }
3975
4086
  setReportSource(e2) {
3976
4087
  this.options.reportSource = e2, this.setParameters(this.options.reportSource.parameters), this.emit("reportSourceChanged", e2);
@@ -4015,7 +4126,7 @@ var telerikReportViewer = (function (exports) {
4015
4126
  return this.currentPageNumber;
4016
4127
  }
4017
4128
  setCurrentPageNumber(e2) {
4018
- this.currentPageNumber !== e2 && (this.currentPageNumber = e2, this.emit("currentPageChanged", new v(e2, this.documentId)));
4129
+ this.currentPageNumber !== e2 && (this.currentPageNumber = e2, this.emit("currentPageChanged", new P(e2, this.documentId)));
4019
4130
  }
4020
4131
  getPageCount() {
4021
4132
  return this.pageCount;
@@ -4034,15 +4145,15 @@ var telerikReportViewer = (function (exports) {
4034
4145
  if (!e2.cancel) if ("navigateToReport" === t2.Type) {
4035
4146
  this.emit("serverActionStarted");
4036
4147
  let e3 = t2.Value, i2 = this.fixDataContractJsonSerializer(e3.ParameterValues);
4037
- this.respectAutoRun = true, this.emit("navigateToReport", new Oe(e3.Report, i2));
4148
+ this.respectAutoRun = true, this.emit("navigateToReport", new He(e3.Report, i2));
4038
4149
  } else if ("navigateToBookmark" === t2.Type) {
4039
- let e3 = this.getPageForBookmark(this.bookmarkNodes, t2.Value), i2 = new h(t2.Value, "bookmark");
4150
+ let e3 = this.getPageForBookmark(this.bookmarkNodes, t2.Value), i2 = new c(t2.Value, "bookmark");
4040
4151
  this.navigateToPage(e3, i2);
4041
4152
  } else if ("sorting" === t2.Type) this.execServerAction(t2.Id);
4042
4153
  else if ("toggleVisibility" === t2.Type) this.execServerAction(t2.Id);
4043
4154
  else if ("navigateToUrl" === t2.Type) {
4044
4155
  let e3 = t2.Value;
4045
- window.open(e3.Url, e3.Target);
4156
+ Te(e3.Url) ? console.warn("A NavigateToUrl action was blocked because its URL uses a prohibited scheme (javascript/vbscript).") : window.open(e3.Url, e3.Target);
4046
4157
  } else t2.Type;
4047
4158
  }), 0);
4048
4159
  }
@@ -4068,37 +4179,40 @@ var telerikReportViewer = (function (exports) {
4068
4179
  return s(this, void 0, void 0, function* () {
4069
4180
  let e2 = this.createDeviceInfo();
4070
4181
  e2.ImmediatePrint = true;
4071
- let t2 = new p(e2);
4182
+ let t2 = new g(e2);
4072
4183
  yield this.emitAsync("printStarted", t2), this.emit("printStarted", t2), t2.handled || (this.showNotification(this.options.messages.ReportViewer_PreparingPrint), this.setUIState("PrintInProgress", true), this.exportAsync("PDF", t2.deviceInfo).then((e3) => s(this, void 0, void 0, function* () {
4073
4184
  let t3 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, e3);
4074
4185
  t3 += `?${"response-content-disposition=" + (this.getCanUsePlugin() ? "inline" : "attachment")}`;
4075
- let i2 = new g(t3);
4186
+ let i2 = new f(t3);
4076
4187
  yield this.emitAsync("printDocumentReady", i2), this.emit("printDocumentReady", i2), this.setUIState("PrintInProgress", false), i2.handled || this.printManager.print(t3, this.getReportFileName());
4077
4188
  })));
4078
4189
  });
4079
4190
  }
4080
- exportReport(e2) {
4191
+ exportReport(e2, t2) {
4081
4192
  return s(this, void 0, void 0, function* () {
4082
- let t2 = this.createDeviceInfo(), i2 = new c(t2, e2);
4083
- if (yield this.emitAsync("exportStart", i2), !i2.isCancelled) {
4084
- let t3 = new d(i2.deviceInfo, i2.format);
4193
+ const i2 = Object.assign({}, t2);
4194
+ let n2 = new d(i2, e2);
4195
+ if (yield this.emitAsync("exportStart", n2), !n2.isCancelled) {
4196
+ let t3 = new u(n2.deviceInfo, n2.format);
4085
4197
  if (yield this.emitAsync("exportStarted", t3), this.emit("exportStarted", t3), t3.handled) return;
4086
- this.showNotification(this.options.messages.ReportViewer_PreparingDownload), this.setUIState("ExportInProgress", true), this.exportAsync(t3.format, t3.deviceInfo).then((t4) => s(this, void 0, void 0, function* () {
4087
- let i3 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, t4);
4088
- i3 += "?response-content-disposition=attachment";
4089
- let n2 = new u(i3, e2, "_self");
4090
- yield this.emitAsync("exportEnd", n2), yield this.emitAsync("exportDocumentReady", n2), this.emit("exportDocumentReady", n2), this.setUIState("ExportInProgress", false), n2.handled || window.open(i3, n2.windowOpenTarget);
4198
+ this.showNotification(this.options.messages.ReportViewer_PreparingDownload), this.setUIState("ExportInProgress", true);
4199
+ const i3 = this.normalizeDeviceInfo(t3.deviceInfo);
4200
+ this.exportAsync(t3.format, i3).then((t4) => s(this, void 0, void 0, function* () {
4201
+ let i4 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, t4);
4202
+ i4 += "?response-content-disposition=attachment";
4203
+ let n3 = new p(i4, e2, "_self");
4204
+ yield this.emitAsync("exportEnd", n3), yield this.emitAsync("exportDocumentReady", n3), this.emit("exportDocumentReady", n3), this.setUIState("ExportInProgress", false), n3.handled || window.open(i4, n3.windowOpenTarget);
4091
4205
  }));
4092
4206
  }
4093
4207
  });
4094
4208
  }
4095
4209
  sendReport(e2) {
4096
4210
  return s(this, void 0, void 0, function* () {
4097
- let t2 = this.createDeviceInfo(), i2 = new f(t2, e2.format);
4211
+ let t2 = this.createDeviceInfo(), i2 = new m(t2, e2.format);
4098
4212
  yield this.emitAsync("sendEmailStarted", i2), this.emit("sendEmailStarted", i2), i2.handled || this.exportAsync(e2.format, i2.deviceInfo).then((t3) => s(this, void 0, void 0, function* () {
4099
4213
  let n2 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, t3);
4100
4214
  n2 += "?response-content-disposition=attachment";
4101
- let r2 = new m(e2, i2.deviceInfo, n2);
4215
+ let r2 = new v(e2, i2.deviceInfo, n2);
4102
4216
  yield this.emitAsync("sendEmailDocumentReady", r2), this.emit("sendEmailDocumentReady", r2), r2.handled || this.sendDocumentAsync(t3, r2);
4103
4217
  }));
4104
4218
  });
@@ -4122,7 +4236,7 @@ var telerikReportViewer = (function (exports) {
4122
4236
  }
4123
4237
  sendDocumentAsync(e2, t2) {
4124
4238
  return this.serviceClient.sendDocument(this.clientId, this.reportInstanceId, e2, t2).catch((e3) => {
4125
- this.handleRequestError(e3, be(this.options.messages.ReportViewer_ErrorSendingDocument, he(this.getReport())));
4239
+ this.handleRequestError(e3, we(this.options.messages.ReportViewer_ErrorSendingDocument, ce(this.getReport())));
4126
4240
  });
4127
4241
  }
4128
4242
  loadParameters(e2 = void 0) {
@@ -4135,7 +4249,7 @@ var telerikReportViewer = (function (exports) {
4135
4249
  }
4136
4250
  initializeAndStartSentinel() {
4137
4251
  this.options.keepClientAlive && this.clientId && this.serviceClient.getClientsSessionTimeoutSeconds().then((e2) => {
4138
- this.keepClientAliveSentinel = new K(this.serviceClient, this.clientId, e2), this.keepClientAliveSentinel.start();
4252
+ this.keepClientAliveSentinel = new X(this.serviceClient, this.clientId, e2), this.keepClientAliveSentinel.start();
4139
4253
  });
4140
4254
  }
4141
4255
  stopSentinel() {
@@ -4160,14 +4274,14 @@ var telerikReportViewer = (function (exports) {
4160
4274
  this.pageCount = 0, this.currentPageNumber = 0;
4161
4275
  }
4162
4276
  handleSearchRequestError(e2) {
4163
- if (!Ce(e2, "System.ArgumentException")) throw this.handleRequestError(e2, "", true), null;
4277
+ if (!ye(e2, "System.ArgumentException")) throw this.handleRequestError(e2, "", true), null;
4164
4278
  this.throwPromiseError(e2);
4165
4279
  }
4166
4280
  throwPromiseError(e2) {
4167
4281
  throw e2.exceptionMessage ? e2.exceptionMessage : this.options.messages.ReportViewer_PromisesChainStopError;
4168
4282
  }
4169
4283
  handleRequestError(e2, t2 = "", i2 = false) {
4170
- ye(e2) && this.onClientExpired();
4284
+ Se(e2) && this.onClientExpired();
4171
4285
  let n2 = Ie(e2.error) ? "" : e2.error, r2 = this.formatRequestError(e2, n2, t2);
4172
4286
  this.raiseError(r2), i2 || this.throwPromiseError(e2);
4173
4287
  }
@@ -4175,12 +4289,12 @@ var telerikReportViewer = (function (exports) {
4175
4289
  let n2 = e2.responseJSON, r2 = "";
4176
4290
  if (n2) {
4177
4291
  if (401 == n2.status || 403 == n2.status) return this.options.messages.ReportViewer_ErrorUnauthorizedOrForbidden || "You don't have permission to access this report document.";
4178
- if (Se(e2)) return this.options.messages.ReportViewer_MissingOrInvalidParameter;
4179
- r2 = he(n2.message);
4180
- let t3 = he(n2.exceptionMessage || n2.ExceptionMessage || n2.error_description);
4292
+ if (be(e2)) return this.options.messages.ReportViewer_MissingOrInvalidParameter;
4293
+ r2 = ce(n2.message);
4294
+ let t3 = ce(n2.exceptionMessage || n2.ExceptionMessage || n2.error_description);
4181
4295
  t3 && (r2 ? r2 += " " + t3 : r2 = t3);
4182
- } else r2 = he(e2.responseText);
4183
- return (i2 || t2) && (r2 && (r2 = " " + r2), r2 = he(i2 || t2) + r2), ye(e2) && (r2 += "<br />" + this.options.messages.ReportViewer_ClientExpired), r2;
4296
+ } else r2 = ce(e2.responseText);
4297
+ return (i2 || t2) && (r2 && (r2 = " " + r2), r2 = ce(i2 || t2) + r2), Se(e2) && (r2 += "<br />" + this.options.messages.ReportViewer_ClientExpired), r2;
4184
4298
  }
4185
4299
  raiseError(e2, t2 = true) {
4186
4300
  this.emit("error", e2, t2);
@@ -4193,7 +4307,7 @@ var telerikReportViewer = (function (exports) {
4193
4307
  }
4194
4308
  initializeClient() {
4195
4309
  return this.registerClientPromise || (this.registerClientPromise = this.serviceClient.registerClient().catch((e2) => {
4196
- const t2 = be(this.options.messages.ReportViewer_ErrorServiceUrl, [this.serviceClient.getServiceUrl()]);
4310
+ const t2 = we(this.options.messages.ReportViewer_ErrorServiceUrl, [this.serviceClient.getServiceUrl()]);
4197
4311
  this.handleRequestError(e2, t2);
4198
4312
  }).then(this.setClientId.bind(this)).catch(this.clearClientId.bind(this))), this.registerClientPromise;
4199
4313
  }
@@ -4203,7 +4317,7 @@ var telerikReportViewer = (function (exports) {
4203
4317
  registerDocumentAsync(e2, t2, i2) {
4204
4318
  return s(this, arguments, void 0, function* (e3, t3, i3, n2 = "", r2 = "") {
4205
4319
  return (yield this.serviceClient.createReportDocument(this.clientId, this.reportInstanceId, e3, t3, !i3, n2, r2).catch((t4) => {
4206
- this.handleRequestError(t4, be(this.options.messages.ReportViewer_ErrorCreatingReportDocument, he(this.getReport()), he(e3)));
4320
+ this.handleRequestError(t4, we(this.options.messages.ReportViewer_ErrorCreatingReportDocument, ce(this.getReport()), ce(e3)));
4207
4321
  })) || "";
4208
4322
  });
4209
4323
  }
@@ -4229,8 +4343,15 @@ var telerikReportViewer = (function (exports) {
4229
4343
  let e2 = this.createDeviceInfo();
4230
4344
  return e2.ContentOnly = true, e2.UseSVG = true, e2;
4231
4345
  }
4346
+ normalizeDeviceInfo(e2) {
4347
+ const t2 = {}, i2 = /* @__PURE__ */ new Map();
4348
+ return Object.entries(e2 || {}).forEach(([e3, n2]) => {
4349
+ const r2 = e3.toLowerCase(), s2 = i2.get(r2);
4350
+ s2 && delete t2[s2], t2[e3] = n2, i2.set(r2, e3);
4351
+ }), t2;
4352
+ }
4232
4353
  createDeviceInfo() {
4233
- let e2 = new o();
4354
+ let e2 = new a();
4234
4355
  this.options.enableAccessibility && (e2.enableAccessibility = true, e2.contentTabIndex = this.getContentTabIndex());
4235
4356
  let t2 = this.getSearchInitiated(), i2 = this.options.searchMetadataOnDemand;
4236
4357
  return e2.enableSearch = !i2 || t2, e2;
@@ -4245,7 +4366,7 @@ var telerikReportViewer = (function (exports) {
4245
4366
  const e2 = {}, t2 = this.getProcessedParameterValues();
4246
4367
  for (let i2 in t2) {
4247
4368
  const n2 = t2[i2], r2 = this.parameterValues[i2];
4248
- n2 && n2.availableValues ? n2.multivalue ? e2[i2] = Fe(n2, r2, i2) : e2[i2] = Ve(n2, r2, i2) : e2[i2] = r2;
4369
+ n2 && n2.availableValues ? n2.multivalue ? e2[i2] = _e(n2, r2, i2) : e2[i2] = ze(n2, r2, i2) : e2[i2] = r2;
4249
4370
  }
4250
4371
  return e2;
4251
4372
  }
@@ -4400,13 +4521,13 @@ ${e3.text} (${e3.id})`;
4400
4521
  constructor(e2, t2) {
4401
4522
  this.url = e2, this.getPersonalAccessToken = t2;
4402
4523
  }
4403
- }, e.ReportSourceOptions = Oe, e.RequestError = C, e.SearchInfo = class {
4524
+ }, e.ReportSourceOptions = He, e.RequestError = y, e.SearchInfo = class {
4404
4525
  constructor() {
4405
4526
  this.searchToken = "", this.matchCase = false, this.matchWholeWord = false, this.useRegularExpressions = false;
4406
4527
  }
4407
- }, e.SearchManager = class extends q {
4528
+ }, e.SearchManager = class extends W {
4408
4529
  constructor(e2, t2) {
4409
- super(), this.searchResults = [], this.pendingHighlightItem = null, this.highlightedElements = [], this.currentHighlightedElement = null, this.isActive = false, this.controller = t2, this.pageContainer = fe(e2, ".trv-page-container"), this.controller.on("applySearchColors", this.applySearchColors.bind(this)).on("pageReady", this.applySearchColors.bind(this));
4530
+ super(), this.searchResults = [], this.pendingHighlightItem = null, this.highlightedElements = [], this.currentHighlightedElement = null, this.isActive = false, this.controller = t2, this.pageContainer = me(e2, ".trv-page-container"), this.controller.on("applySearchColors", this.applySearchColors.bind(this)).on("pageReady", this.applySearchColors.bind(this));
4410
4531
  }
4411
4532
  search(e2) {
4412
4533
  this.isActive = true, this.clearColoredItems(), this.searchResults = [], e2.searchToken && "" !== e2.searchToken ? this.controller.getSearchResults(e2).then(this.onSearchComplete.bind(this)) : this.onSearchComplete([]);
@@ -4415,15 +4536,15 @@ ${e3.text} (${e3.id})`;
4415
4536
  this.isActive = false, this.clearColoredItems(), this.searchResults = [];
4416
4537
  }
4417
4538
  highlightSearchItem(t2) {
4418
- t2 && (this.currentHighlightedElement && (re(this.currentHighlightedElement, Ze), ne(this.currentHighlightedElement, We)), t2.page === this.controller.getCurrentPageNumber() ? this.highlightItem(t2) : this.controller.getPageMode() === e.PageMode.SinglePage ? this.clearColoredItems() : this.highlightItem(t2), this.pendingHighlightItem = t2, this.navigateToPage(t2));
4539
+ t2 && (this.currentHighlightedElement && (se(this.currentHighlightedElement, Je), re(this.currentHighlightedElement, Ge)), t2.page === this.controller.getCurrentPageNumber() ? this.highlightItem(t2) : this.controller.getPageMode() === e.PageMode.SinglePage ? this.clearColoredItems() : this.highlightItem(t2), this.pendingHighlightItem = t2, this.navigateToPage(t2));
4419
4540
  }
4420
4541
  navigateToPage(e2) {
4421
- this.controller.navigateToPage(e2.page, new h(e2.id, "search"));
4542
+ this.controller.navigateToPage(e2.page, new c(e2.id, "search"));
4422
4543
  }
4423
4544
  colorPageElements(e2) {
4424
4545
  e2 && 0 !== e2.length && (e2.forEach((e3) => {
4425
- let t2 = fe(this.pageContainer, "[data-search-id=" + e3.id + "]");
4426
- t2 && (ne(t2, We), this.highlightedElements.push(t2));
4546
+ let t2 = me(this.pageContainer, "[data-search-id=" + e3.id + "]");
4547
+ t2 && (re(t2, Ge), this.highlightedElements.push(t2));
4427
4548
  }), this.highlightItem(this.pendingHighlightItem));
4428
4549
  }
4429
4550
  highlightItem(e2) {
@@ -4431,13 +4552,13 @@ ${e3.text} (${e3.id})`;
4431
4552
  let t2 = this.highlightedElements.find(function(t3) {
4432
4553
  return t3.dataset.searchId === e2.id;
4433
4554
  });
4434
- t2 && (this.currentHighlightedElement = t2, re(t2, We), ne(t2, Ze));
4555
+ t2 && (this.currentHighlightedElement = t2, se(t2, Ge), re(t2, Je));
4435
4556
  }
4436
4557
  }
4437
4558
  clearColoredItems() {
4438
4559
  this.highlightedElements && this.highlightedElements.length > 0 && this.highlightedElements.forEach((e2) => {
4439
- re(e2, We);
4440
- }), this.currentHighlightedElement && re(this.currentHighlightedElement, Ze), this.highlightedElements = [], this.currentHighlightedElement = null;
4560
+ se(e2, Ge);
4561
+ }), this.currentHighlightedElement && se(this.currentHighlightedElement, Je), this.highlightedElements = [], this.currentHighlightedElement = null;
4441
4562
  }
4442
4563
  applySearchColors() {
4443
4564
  this.isActive && this.colorPageElements(this.searchResults);
@@ -4449,23 +4570,23 @@ ${e3.text} (${e3.id})`;
4449
4570
  constructor() {
4450
4571
  this.description = "", this.id = "", this.page = 0;
4451
4572
  }
4452
- }, e.SendEmailDocumentReadyEventArgs = m, e.SendEmailStartedEventArgs = f, e.ServiceClient = class {
4573
+ }, e.SendEmailDocumentReadyEventArgs = v, e.SendEmailStartedEventArgs = m, e.ServiceClient = class {
4453
4574
  constructor(e2) {
4454
4575
  this.connectionConfig = this.getConnectionConfig(e2), this.authStrategy = this.getAuthStrategy(this.connectionConfig);
4455
4576
  }
4456
4577
  getConnectionConfig(e2) {
4457
- return e2.reportServer && e2.reportServer.url && e2.reportServer.username && e2.reportServer.password ? new E(e2.reportServer.url, e2.reportServer.username, e2.reportServer.password) : e2.reportServer && e2.reportServer.url && e2.reportServer.getPersonalAccessToken ? new M(e2.reportServer.url, e2.reportServer.getPersonalAccessToken) : e2.reportServer && e2.reportServer.url ? new A(e2.reportServer.url) : e2.serverPreview && e2.serverShareToken ? new M("", () => Promise.resolve(e2.serverShareToken)) : new R(e2.serviceUrl);
4578
+ return e2.reportServer && e2.reportServer.url && e2.reportServer.username && e2.reportServer.password ? new M(e2.reportServer.url, e2.reportServer.username, e2.reportServer.password) : e2.reportServer && e2.reportServer.url && e2.reportServer.getPersonalAccessToken ? new k(e2.reportServer.url, e2.reportServer.getPersonalAccessToken) : e2.reportServer && e2.reportServer.url ? new E(e2.reportServer.url) : e2.serverPreview && e2.serverShareToken ? new k("", () => Promise.resolve(e2.serverShareToken)) : new R(e2.serviceUrl);
4458
4579
  }
4459
4580
  getAuthStrategy(t2) {
4460
4581
  switch (t2.authType) {
4461
4582
  case e.AuthType.None:
4462
- return new b();
4583
+ return new w();
4463
4584
  case e.AuthType.Basic:
4464
- return new w(t2);
4465
- case e.AuthType.PersonalToken:
4466
4585
  return new L(t2);
4586
+ case e.AuthType.PersonalToken:
4587
+ return new T(t2);
4467
4588
  default:
4468
- return new b();
4589
+ return new w();
4469
4590
  }
4470
4591
  }
4471
4592
  validateClientID(e2) {
@@ -4473,7 +4594,7 @@ ${e3.text} (${e3.id})`;
4473
4594
  }
4474
4595
  authenticatedGet(e2) {
4475
4596
  return this.login().then((t2) => (null == t2 ? void 0 : t2.expiresAt) < Date.now() ? (this.loginPromise = this.authStrategy.authenticatePromise(true, t2.refreshToken), this.authenticatedGet(e2)) : (function(e3, t3) {
4476
- return fetch(e3, { headers: y(t3) }).then(S);
4597
+ return fetch(e3, { headers: S(t3) }).then(b);
4477
4598
  })(e2, t2.access_token || t2.accessToken));
4478
4599
  }
4479
4600
  authenticatedPost(e2, t2) {
@@ -4481,7 +4602,7 @@ ${e3.text} (${e3.id})`;
4481
4602
  }
4482
4603
  authenticatedDelete(e2) {
4483
4604
  return this.login().then((t2) => t2.expiresAt < Date.now() ? (this.loginPromise = this.authStrategy.authenticatePromise(true, t2.refreshToken), this.authenticatedDelete(e2)) : (function(e3, t3) {
4484
- return fetch(e3, { method: "DELETE", headers: y(t3) }).then(S);
4605
+ return fetch(e3, { method: "DELETE", headers: S(t3) }).then(b);
4485
4606
  })(e2, t2.access_token || t2.accessToken));
4486
4607
  }
4487
4608
  login() {
@@ -4565,16 +4686,18 @@ ${e3.text} (${e3.id})`;
4565
4686
  return e2.clientSessionTimeout;
4566
4687
  });
4567
4688
  }
4568
- }, e.TooltipEventArgs = P, e.addClass = ne, e.appendHtml = pe, e.createElement = ie, e.debounce = ve, e.each = we, e.escapeHtml = he, e.findElement = fe, e.getColorAlphaValue = ue, e.getElementAttributeValue = function(e2, t2) {
4689
+ }, e.TooltipEventArgs = C, e.addClass = re, e.appendHtml = ge, e.createElement = ne, e.debounce = Pe, e.each = Ae, e.escapeHtml = ce, e.findElement = me, e.getColorAlphaValue = pe, e.getElementAttributeValue = function(e2, t2) {
4569
4690
  var i2;
4570
4691
  return e2 && e2.attributes && (null === (i2 = e2.attributes[t2]) || void 0 === i2 ? void 0 : i2.value) || "";
4571
- }, e.getElementScrollParent = me, e.getOffsetParent = oe, e.hasClass = se, e.isArray = Le, e.isExceptionOfType = Ce, e.isInternalServerError = Ie, e.isInvalidClientException = ye, e.isInvalidParameterException = Se, e.isRgbColor = de, e.keepElementInView = function(e2) {
4692
+ }, e.getElementScrollParent = ve, e.getOffsetParent = ae, e.hasClass = oe, e.hasExportSettings = function(e2) {
4693
+ return Array.isArray(e2) && e2.some((e3) => e3 && Array.isArray(e3.settings) && e3.settings.length > 0);
4694
+ }, e.hasProhibitedUrlScheme = Te, e.isArray = Re, e.isExceptionOfType = ye, e.isInternalServerError = Ie, e.isInvalidClientException = Se, e.isInvalidParameterException = be, e.isRgbColor = ue, e.keepElementInView = function(e2) {
4572
4695
  if (!e2) return;
4573
- let t2 = me(e2);
4696
+ let t2 = ve(e2);
4574
4697
  if (!t2) return;
4575
4698
  let i2 = e2.offsetTop, n2 = i2 + e2.offsetHeight, r2 = t2.scrollTop + t2.offsetHeight;
4576
4699
  i2 < t2.scrollTop ? t2.scrollTop = i2 : n2 > r2 && (t2.scrollTop += n2 - r2);
4577
- }, e.parseToLocalDate = Ae, e.prependHtml = ge, e.removeClass = re, e.reportSourcesAreEqual = function(e2) {
4700
+ }, e.parseToLocalDate = ke, e.prependHtml = fe, e.removeClass = se, e.reportSourcesAreEqual = function(e2) {
4578
4701
  const t2 = e2.firstReportSource, i2 = e2.secondReportSource;
4579
4702
  if (t2 && i2 && t2.report === i2.report) {
4580
4703
  let e3 = "";
@@ -4583,12 +4706,27 @@ ${e3.text} (${e3.id})`;
4583
4706
  return i2.parameters && (n2 = JSON.stringify(i2.parameters)), e3 === n2;
4584
4707
  }
4585
4708
  return false;
4586
- }, e.scaleElement = le, e.stringFormat = be, e.throttle = Pe, e.toPixel = ae, e.toRgbColor = ce, e.tryParseFloat = Re, e.tryParseInt = Te, Object.defineProperty(e, "__esModule", { value: true });
4709
+ }, e.scaleElement = he, e.splitPascalCase = function(e2) {
4710
+ return e2.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/([A-Z])([A-Z][a-z])/g, "$1 $2");
4711
+ }, e.stringFormat = we, e.throttle = Ce, e.toPixel = le, e.toRgbColor = de, e.tryParseFloat = Me, e.tryParseInt = Ee, Object.defineProperty(e, "__esModule", { value: true });
4587
4712
  });
4588
4713
  })(dist, dist.exports);
4589
4714
  var distExports = dist.exports;
4590
4715
 
4591
4716
  var stringFormatRegExp = /{(\w+?)}/g;
4717
+ var renderingExtensionIconClasses = {
4718
+ PDF: "rendering-extension-pdf-icon",
4719
+ IMAGE: "rendering-extension-image-icon",
4720
+ CSV: "rendering-extension-csv-icon",
4721
+ DOCX: "rendering-extension-docx-icon",
4722
+ MHTML: "rendering-extension-mhtml-icon",
4723
+ PPTX: "rendering-extension-pptx-icon",
4724
+ RTF: "rendering-extension-rtf-icon",
4725
+ XLS: "rendering-extension-xls-icon",
4726
+ XLSX: "rendering-extension-xlsx-icon",
4727
+ XPS: "rendering-extension-xps-icon"
4728
+ };
4729
+ var exportOptionsIconClass = "rendering-extension-options-icon";
4592
4730
  var specialKeys = {
4593
4731
  DELETE: 46,
4594
4732
  BACKSPACE: 8,
@@ -4651,6 +4789,12 @@ ${e3.text} (${e3.id})`;
4651
4789
  return v.toString(16);
4652
4790
  });
4653
4791
  }
4792
+ function getRenderingExtensionIconClass(format) {
4793
+ return typeof format === "string" ? renderingExtensionIconClasses[format.toUpperCase()] || "" : "";
4794
+ }
4795
+ function getExportOptionsIconClass() {
4796
+ return exportOptionsIconClass;
4797
+ }
4654
4798
  function trim(s, charlist) {
4655
4799
  return rTrim(lTrim(s, charlist), charlist);
4656
4800
  }
@@ -4825,6 +4969,8 @@ ${e3.text} (${e3.id})`;
4825
4969
  isSpecialKey,
4826
4970
  rectangle,
4827
4971
  generateGuidString,
4972
+ getRenderingExtensionIconClass,
4973
+ getExportOptionsIconClass,
4828
4974
  trim,
4829
4975
  replaceAll,
4830
4976
  lTrim,
@@ -5198,6 +5344,22 @@ ${e3.text} (${e3.id})`;
5198
5344
  if (!historyManager) {
5199
5345
  throw "No options.history.";
5200
5346
  }
5347
+ var exportSettingsStore = options.exportSettingsStore;
5348
+ var exportDialogEnabled = Boolean(options.exportDialog.enabled);
5349
+ var hasConfigurableExportSettings = false;
5350
+ var openExportDialogCommand = new Command(() => {
5351
+ if (exportDialogEnabled && hasConfigurableExportSettings) {
5352
+ notificationService.setExportDialogVisible({ visible: true });
5353
+ }
5354
+ }).setEnabled(false);
5355
+ controller.on("beginLoadReport", () => {
5356
+ hasConfigurableExportSettings = false;
5357
+ openExportDialogCommand.setEnabled(false);
5358
+ }).onAsync("reportLoadComplete", async (info) => {
5359
+ const extensions = Array.isArray(info?.renderingExtensions) ? info.renderingExtensions : await Promise.resolve(controller.getDocumentFormats());
5360
+ hasConfigurableExportSettings = distExports.hasExportSettings(extensions);
5361
+ openExportDialogCommand.setEnabled(exportDialogEnabled && hasConfigurableExportSettings);
5362
+ });
5201
5363
  function getDocumentMapVisible() {
5202
5364
  var args = {};
5203
5365
  notificationService.getDocumentMapState(args);
@@ -5258,9 +5420,16 @@ ${e3.text} (${e3.id})`;
5258
5420
  }),
5259
5421
  "export": new Command((format) => {
5260
5422
  if (format) {
5261
- controller.exportReport(format);
5423
+ Promise.resolve(controller.getDocumentFormats()).then((formats) => {
5424
+ const extension = (formats || []).find((item) => item.name === format);
5425
+ const deviceInfo = extension && exportSettingsStore ? exportSettingsStore.getDeviceInfo(format, extension.settings || []) : {};
5426
+ controller.exportReport(format, deviceInfo);
5427
+ }).catch((error) => {
5428
+ controller.trigger("error", { message: error });
5429
+ });
5262
5430
  }
5263
5431
  }),
5432
+ "openExportDialog": openExportDialogCommand,
5264
5433
  "print": new Command(() => {
5265
5434
  controller.printReport();
5266
5435
  }),
@@ -5619,6 +5788,18 @@ ${e3.text} (${e3.id})`;
5619
5788
  sendEmailFormatLabel: "Format:",
5620
5789
  sendEmailSendLabel: "Send",
5621
5790
  sendEmailCancelLabel: "Cancel",
5791
+ exportDialogSaveLabel: "Save",
5792
+ exportDialogCloseLabel: "Cancel",
5793
+ exportDialogFormatLabel: "Export format",
5794
+ exportOptionsLabel: "Export Options",
5795
+ exportDialogResetLabel: "Reset",
5796
+ exportDialogSettingsSuffix: " Settings",
5797
+ exportDialogDocumentationLabel: "Documentation",
5798
+ exportDialogTextPlaceholder: "Enter text",
5799
+ exportDialogNoSettings: "This export format has no configurable settings.",
5800
+ exportDialogPagesLabel: "Pages",
5801
+ exportDialogAllPagesLabel: "All Pages",
5802
+ exportDialogPageRangeLabel: "Page Range",
5622
5803
  // Accessibility string resources
5623
5804
  ariaLabelPageNumberSelector: "Page number selector. Showing page {0} of {1}.",
5624
5805
  ariaLabelPageNumberEditor: "Page number editor",
@@ -5646,6 +5827,8 @@ ${e3.text} (${e3.id})`;
5646
5827
  ariaLabelSearchDialogArea: "Search area",
5647
5828
  ariaLabelAiPromptDialogArea: "AI prompt area",
5648
5829
  ariaLabelSendEmailDialogArea: "Send email area",
5830
+ ariaLabelSearchDialogInput: "Search input",
5831
+ ariaLabelSearchDialogInputDropdown: "Previous searches",
5649
5832
  ariaLabelSearchDialogStop: "Stop search",
5650
5833
  ariaLabelSearchDialogOptions: "Search options",
5651
5834
  ariaLabelSearchDialogNavigateUp: "Navigate up",
@@ -5681,6 +5864,12 @@ ${e3.text} (${e3.id})`;
5681
5864
  ariaLabelSendEmailFormat: "Report format:",
5682
5865
  ariaLabelSendEmailSend: "Send email",
5683
5866
  ariaLabelSendEmailCancel: "Cancel sending email",
5867
+ // Export dialog accessibility resources
5868
+ ariaLabelExportDialogArea: "Export settings dialog",
5869
+ ariaLabelExportDialogFormat: "Export format",
5870
+ ariaLabelExportDialogSave: "Save export options",
5871
+ ariaLabelExportDialogClose: "Cancel export options",
5872
+ ariaLabelExportDialogReset: "Reset export settings",
5684
5873
  // Search dialog resources
5685
5874
  searchDialogTitle: "Search in report contents",
5686
5875
  searchDialogSearchInProgress: "searching...",
@@ -5696,11 +5885,14 @@ ${e3.text} (${e3.id})`;
5696
5885
  searchDialogPageText: "page",
5697
5886
  // Send Email dialog resources
5698
5887
  sendEmailDialogTitle: "Send Email",
5888
+ sendEmailDialogEmailBody: "Email body textarea",
5699
5889
  sendEmailValidationEmailRequired: "Email field is required",
5700
5890
  sendEmailValidationEmailFormat: "Email format is not valid",
5701
5891
  sendEmailValidationSingleEmail: "The field accepts a single email address only",
5702
5892
  sendEmailValidationFormatRequired: "Format field is required",
5703
5893
  errorSendingDocument: "Error sending report document (Report = '{0}').",
5894
+ // Export dialog resources
5895
+ exportDialogTitle: "Export Options",
5704
5896
  // AI Prompt dialog resources
5705
5897
  aiPromptDialogConsentTitle: "Before you start with AI",
5706
5898
  aiPromptDialogConsentAccept: "Consent",
@@ -7928,7 +8120,7 @@ ${e3.text} (${e3.id})`;
7928
8120
  "button": Button,
7929
8121
  "toggle-button": ToggleButton
7930
8122
  };
7931
- function replaceStringResources$3($search) {
8123
+ function replaceStringResources$4($search) {
7932
8124
  if (!$search) {
7933
8125
  return;
7934
8126
  }
@@ -7995,7 +8187,7 @@ ${e3.text} (${e3.id})`;
7995
8187
  if (this.initialized) {
7996
8188
  return;
7997
8189
  }
7998
- replaceStringResources$3(this.$element);
8190
+ replaceStringResources$4(this.$element);
7999
8191
  this._initDialog();
8000
8192
  this._initSearchbox();
8001
8193
  this._initResultsArea();
@@ -8083,6 +8275,9 @@ ${e3.text} (${e3.id})`;
8083
8275
  },
8084
8276
  select: this.processComboBoxEvent.bind(this)
8085
8277
  });
8278
+ this.kendoComboBox.element[0]?.setAttribute("aria-label", stringResources.ariaLabelSearchDialogInput);
8279
+ this.kendoComboBox.input[0]?.setAttribute("aria-label", stringResources.ariaLabelSearchDialogInput);
8280
+ this.kendoComboBox._arrow[0]?.setAttribute("aria-label", stringResources.ariaLabelSearchDialogInputDropdown);
8086
8281
  }
8087
8282
  _initDialog() {
8088
8283
  this.kendoSearchDialog = new kendo.ui.Window(this.element, {
@@ -8360,15 +8555,13 @@ ${e3.text} (${e3.id})`;
8360
8555
  }
8361
8556
  if (show) {
8362
8557
  $errorIcon[0].title = message;
8363
- $errorIcon.show();
8364
- } else {
8365
- $errorIcon.hide();
8366
8558
  }
8559
+ $errorIcon.toggleClass("k-hidden", !show);
8367
8560
  }
8368
8561
  }
8369
8562
 
8370
8563
  var defaultOptions$1 = {};
8371
- function replaceStringResources$2($sendEmailDialog) {
8564
+ function replaceStringResources$3($sendEmailDialog) {
8372
8565
  if (!$sendEmailDialog) {
8373
8566
  return;
8374
8567
  }
@@ -8458,7 +8651,7 @@ ${e3.text} (${e3.id})`;
8458
8651
  if (this.initialized) {
8459
8652
  return;
8460
8653
  }
8461
- replaceStringResources$2(this.$element);
8654
+ replaceStringResources$3(this.$element);
8462
8655
  this.controller.getDocumentFormats().then((formats) => {
8463
8656
  this.docFormatList = formats;
8464
8657
  this.docFormat?.setDataSource(this.docFormatList);
@@ -8598,6 +8791,7 @@ ${e3.text} (${e3.id})`;
8598
8791
  }
8599
8792
  element.setAttribute("id", `${prefix}-${attrName}`);
8600
8793
  element.setAttribute("name", `${prefix}-${attrName}`);
8794
+ element.setAttribute("aria-label", stringResources.sendEmailDialogEmailBody);
8601
8795
  });
8602
8796
  Array.from(this.element.querySelectorAll(".trv-send-email-label label")).forEach((element) => {
8603
8797
  var attrFor = element.getAttribute("for");
@@ -8749,6 +8943,576 @@ ${e3.text} (${e3.id})`;
8749
8943
  }
8750
8944
  }
8751
8945
 
8946
+ const PAGE_SELECTION_FIELD = "__trvPageSelection";
8947
+ function replaceStringResources$2($dialog) {
8948
+ if (!$dialog) {
8949
+ return;
8950
+ }
8951
+ const labels = $dialog.find(".trv-replace-string");
8952
+ if (labels.length) {
8953
+ Array.from(labels).forEach((element) => {
8954
+ const $element = $(element);
8955
+ const stringResource = stringResources[$element.text()];
8956
+ if (stringResource) {
8957
+ $element.text(stringResource);
8958
+ }
8959
+ });
8960
+ }
8961
+ const ariaLabels = $dialog.find("[aria-label]").add($dialog);
8962
+ if (ariaLabels.length) {
8963
+ Array.from(ariaLabels).forEach((element) => {
8964
+ const $element = $(element);
8965
+ const stringResource = stringResources[$element.attr("aria-label")];
8966
+ if (stringResource) {
8967
+ $element.attr("aria-label", stringResource);
8968
+ }
8969
+ });
8970
+ }
8971
+ }
8972
+ function isPasswordSetting(name) {
8973
+ return typeof name === "string" && name.toLowerCase().includes("password");
8974
+ }
8975
+ function createEditorInput(container, options, type) {
8976
+ return $("<input />").attr({
8977
+ id: options.field,
8978
+ name: options.field,
8979
+ type,
8980
+ "data-bind": `${type === "checkbox" ? "checked" : "value"}:${options.field}`
8981
+ }).appendTo(container);
8982
+ }
8983
+ function createPasswordEditor(container, options) {
8984
+ createEditorInput(container, options, "password").attr("autocomplete", "new-password").kendoTextBox({ enable: options.editorOptions.enabled });
8985
+ }
8986
+ function createDropDownEditor(container, options) {
8987
+ createEditorInput(container, options, "text").kendoDropDownList({
8988
+ dataSource: options.editorOptions.dataSource,
8989
+ enable: options.editorOptions.enabled
8990
+ });
8991
+ }
8992
+ function createCheckBoxEditor(container, options) {
8993
+ container.closest(".k-form-field").addClass("trv-export-boolean-field");
8994
+ createEditorInput(container, options, "checkbox").kendoCheckBox({
8995
+ enabled: options.editorOptions.enabled
8996
+ });
8997
+ }
8998
+ function createNumericEditor(container, options) {
8999
+ createEditorInput(container, options, "text").kendoNumericTextBox({
9000
+ format: "n0",
9001
+ decimals: 0,
9002
+ min: 0,
9003
+ step: 1,
9004
+ autoAdjust: true,
9005
+ enable: options.editorOptions.enabled
9006
+ });
9007
+ }
9008
+ function createTextEditor(container, options) {
9009
+ createEditorInput(container, options, "text").kendoTextBox({
9010
+ placeholder: stringResources.exportDialogTextPlaceholder,
9011
+ enable: options.editorOptions.enabled
9012
+ });
9013
+ }
9014
+ function createPageSelectionEditor(container, options) {
9015
+ const optionName = `${options.field}-${kendo.guid()}`;
9016
+ container.closest(".k-form-field").addClass("trv-export-page-selection");
9017
+ [
9018
+ { selected: false, text: options.editorOptions.allPagesLabel },
9019
+ { selected: true, text: options.editorOptions.pageRangeLabel }
9020
+ ].forEach((pageOption) => {
9021
+ const inputId = kendo.guid();
9022
+ const option = $('<label class="trv-export-page-option"></label>').appendTo(container);
9023
+ const input = $('<input type="radio" />').attr({
9024
+ id: inputId,
9025
+ name: optionName,
9026
+ [kendo.attr("skip")]: true
9027
+ }).appendTo(option).kendoRadioButton({ checked: pageOption.selected === options.editorOptions.pageRangeSelected });
9028
+ $("<span></span>").text(pageOption.text).appendTo(option);
9029
+ input.on("change", () => options.editorOptions.change(pageOption.selected, options.model));
9030
+ });
9031
+ }
9032
+ class ExportDialog {
9033
+ // #region fields
9034
+ // #endregion
9035
+ // #region constructor
9036
+ constructor(element, options, viewerOptions) {
9037
+ this.options = options;
9038
+ this.viewerOptions = viewerOptions;
9039
+ this.element = element;
9040
+ this.$element = $(element);
9041
+ this.controller = options.controller;
9042
+ this.notificationService = options.notificationService;
9043
+ this.exportSettingsStore = options.exportSettingsStore;
9044
+ this.initialized = false;
9045
+ this.dialogVisible = false;
9046
+ this.format = "";
9047
+ this.formats = [];
9048
+ this.pendingValues = {};
9049
+ this.initialValues = {};
9050
+ this.formatDrawer = void 0;
9051
+ this.settingsForm = void 0;
9052
+ this.currentValues = void 0;
9053
+ this.pagingSettingNames = [];
9054
+ this.windowLocation = void 0;
9055
+ if (!this.controller) {
9056
+ throw "No controller (telerikReporting.ReportViewerController) has been specified.";
9057
+ }
9058
+ if (!this.notificationService) {
9059
+ throw "No notificationService (telerikReporting.NotificationService) has been specified.";
9060
+ }
9061
+ this.init();
9062
+ }
9063
+ // #endregion
9064
+ // #region methods
9065
+ init() {
9066
+ if (this.initialized) {
9067
+ return;
9068
+ }
9069
+ replaceStringResources$2(this.$element);
9070
+ this.$settingsContainer = this.$element.find(".trv-export-dialog-settings");
9071
+ this.$noSettingsMessage = this.$element.find(".trv-export-dialog-no-settings");
9072
+ this.$formatSelector = this.$element.find(".trv-export-dialog-formats");
9073
+ this._initDialog();
9074
+ this._attachCommands();
9075
+ this._attachEvents();
9076
+ this.initialized = true;
9077
+ }
9078
+ _initDialog() {
9079
+ this.phoneViewport = this.isPhoneViewport();
9080
+ this.kendoExportDialog = new kendo.ui.Window(this.element, {
9081
+ title: stringResources.exportDialogTitle,
9082
+ visible: false,
9083
+ draggable: !this.phoneViewport,
9084
+ resizable: true,
9085
+ modal: true,
9086
+ close: () => {
9087
+ this.storeDialogPosition();
9088
+ },
9089
+ open: () => {
9090
+ this.updateDialogViewport();
9091
+ this.adjustDialogPosition();
9092
+ },
9093
+ resize: () => {
9094
+ kendo.resize(this.$element, true);
9095
+ },
9096
+ deactivate: () => {
9097
+ this.notificationService.setExportDialogVisible({ visible: false });
9098
+ }
9099
+ });
9100
+ this.kendoExportDialog.element.removeClass("trv-export-dialog k-hidden");
9101
+ this.kendoExportDialog.wrapper.addClass("trv-export-dialog");
9102
+ this.kendoExportDialog.wrapper.find(".k-window-title").prepend(
9103
+ $('<span aria-hidden="true"></span>').addClass(
9104
+ `k-sprite rendering-extension-icon ${getExportOptionsIconClass()}`
9105
+ )
9106
+ );
9107
+ this.$element.find(".trv-export-dialog-reset").kendoButton({
9108
+ icon: "arrow-rotate-cw",
9109
+ fillMode: "flat",
9110
+ themeColor: "base"
9111
+ });
9112
+ this.$element.find(".trv-export-dialog-documentation").attr("title", stringResources.exportDialogDocumentationLabel).prepend(kendo.ui.icon({ icon: "hyperlink-open" }));
9113
+ this.$element.find('[data-command="telerik_ReportViewer_exportDialog_Close"]').kendoButton({
9114
+ fillMode: "solid",
9115
+ themeColor: "base"
9116
+ });
9117
+ this.$element.find('[data-command="telerik_ReportViewer_exportDialog_Save"]').kendoButton({
9118
+ fillMode: "solid",
9119
+ themeColor: "primary"
9120
+ });
9121
+ this.$settingsContainer.kendoTooltip({
9122
+ filter: ".trv-export-setting-info",
9123
+ showOn: "mouseenter focus",
9124
+ position: "top",
9125
+ content: (event) => $('<span class="trv-export-setting-tooltip-text"></span>').text(event.target.attr("data-description") || "")[0].outerHTML
9126
+ });
9127
+ }
9128
+ _attachCommands() {
9129
+ this.optionsCommandSet = {
9130
+ "exportDialog_Close": new Command(() => {
9131
+ this.close();
9132
+ }),
9133
+ "exportDialog_Save": new Command(() => {
9134
+ this.save();
9135
+ }),
9136
+ "exportDialog_Reset": new Command(() => {
9137
+ this.reset();
9138
+ })
9139
+ };
9140
+ Binder.attachCommands(this.$element.find(".trv-export-dialog-layout"), this.optionsCommandSet, this.viewerOptions);
9141
+ }
9142
+ _attachEvents() {
9143
+ this.controller.on("beginLoadReport", this.close.bind(this)).on("viewModeChanged", this.close.bind(this));
9144
+ this.notificationService.setExportDialogVisible((event, args) => {
9145
+ if (args && args.visible === true) {
9146
+ this.open(args.format);
9147
+ } else {
9148
+ this.close();
9149
+ }
9150
+ });
9151
+ $(window).on("resize", () => {
9152
+ if (this.kendoExportDialog && this.kendoExportDialog.options.visible) {
9153
+ if (!this.phoneViewport) {
9154
+ this.storeDialogPosition();
9155
+ }
9156
+ this.updateDialogViewport();
9157
+ this.adjustDialogPosition();
9158
+ }
9159
+ });
9160
+ }
9161
+ isPhoneViewport() {
9162
+ return $(window).innerWidth() <= 767;
9163
+ }
9164
+ updateDialogViewport() {
9165
+ const phone = this.isPhoneViewport();
9166
+ if (phone !== this.phoneViewport) {
9167
+ this.phoneViewport = phone;
9168
+ this.kendoExportDialog.setOptions({ draggable: !phone });
9169
+ }
9170
+ this.updateFormatDrawerForViewport();
9171
+ kendo.resize(this.$element, true);
9172
+ }
9173
+ open() {
9174
+ this.dialogVisible = false;
9175
+ const formatsPromise = this.controller.getDocumentFormats();
9176
+ Promise.resolve(formatsPromise).then((formats) => {
9177
+ if (!distExports.hasExportSettings(formats)) {
9178
+ return;
9179
+ }
9180
+ this.dialogVisible = true;
9181
+ this.pendingValues = {};
9182
+ this.initialValues = {};
9183
+ this.formats = formats || [];
9184
+ this.buildFormatDrawer();
9185
+ this.kendoExportDialog.open();
9186
+ });
9187
+ }
9188
+ close() {
9189
+ this.dialogVisible = false;
9190
+ this.pendingValues = {};
9191
+ this.initialValues = {};
9192
+ this.destroySettingsForm();
9193
+ if (this.kendoExportDialog && this.kendoExportDialog.options.visible) {
9194
+ this.kendoExportDialog.close();
9195
+ }
9196
+ }
9197
+ buildFormatDrawer() {
9198
+ const selectedFormat = this.formats.some((item) => item.name === this.format) ? this.format : this.formats[0]?.name;
9199
+ const drawerItems = this.formats.map((format) => ({
9200
+ format: format.name,
9201
+ text: format.localizedName,
9202
+ selected: format.name === selectedFormat,
9203
+ miniTemplate: () => {
9204
+ const iconClass = getRenderingExtensionIconClass(format.name);
9205
+ const icon = iconClass ? `<span aria-hidden="true" class="k-sprite rendering-extension-icon ${iconClass}"></span>` : `<span aria-hidden="true">${kendo.htmlEncode(format.name.slice(0, 3))}</span>`;
9206
+ return `<li data-role="drawer-item">${icon}</li>`;
9207
+ }
9208
+ }));
9209
+ if (this.formatDrawer) {
9210
+ this.formatDrawer.setOptions({ items: drawerItems });
9211
+ } else {
9212
+ this.formatDrawer = this.$formatSelector.kendoDrawer({
9213
+ items: drawerItems,
9214
+ mode: "push",
9215
+ position: "left",
9216
+ width: 240,
9217
+ mini: { width: 48 },
9218
+ expanded: !this.isPhoneViewport(),
9219
+ autoCollapse: false,
9220
+ swipeToOpen: false,
9221
+ navigatable: true,
9222
+ itemClick: (event) => {
9223
+ if (event.dataItem?.format) {
9224
+ this.showFormat(event.dataItem.format);
9225
+ }
9226
+ }
9227
+ }).data("kendoDrawer");
9228
+ }
9229
+ this.updateFormatDrawerForViewport();
9230
+ this.renderFormatDrawerIcons();
9231
+ this.showFormat(selectedFormat);
9232
+ }
9233
+ updateFormatDrawerForViewport() {
9234
+ if (!this.formatDrawer) {
9235
+ return;
9236
+ }
9237
+ if (this.isPhoneViewport() && this.formatDrawer.visible) {
9238
+ this.formatDrawer.hide();
9239
+ } else if (!this.isPhoneViewport() && !this.formatDrawer.visible) {
9240
+ this.formatDrawer.show();
9241
+ }
9242
+ if (this.formatDrawer.visible) {
9243
+ this.renderFormatDrawerIcons();
9244
+ }
9245
+ }
9246
+ renderFormatDrawerIcons() {
9247
+ if (!this.formatDrawer.visible) {
9248
+ return;
9249
+ }
9250
+ const drawerElements = this.formatDrawer.drawerItemsWrapper.find('[data-role="drawer-item"]');
9251
+ drawerElements.each((index, element) => {
9252
+ const format = this.formats[index];
9253
+ const iconClass = getRenderingExtensionIconClass(format?.name);
9254
+ const $element = $(element);
9255
+ $element.find(".k-item-text").attr("title", format?.localizedName || "");
9256
+ if (iconClass && !$element.find(".rendering-extension-icon").length) {
9257
+ $element.prepend(
9258
+ $('<span aria-hidden="true"></span>').addClass(
9259
+ `k-sprite rendering-extension-icon ${iconClass}`
9260
+ )
9261
+ );
9262
+ }
9263
+ });
9264
+ }
9265
+ showFormat(format) {
9266
+ this.capturePendingValues();
9267
+ this.format = format;
9268
+ const extension = this.formats.find((item) => item.name === format);
9269
+ this.$element.find(".trv-export-dialog-format-name").text(
9270
+ `${extension?.localizedName || format || ""}${stringResources.exportDialogSettingsSuffix}`
9271
+ );
9272
+ this.$element.find(".trv-export-dialog-reset").attr("title", stringResources.ariaLabelExportDialogReset);
9273
+ this.buildSettingsForm(extension ? extension.settings : []);
9274
+ }
9275
+ buildSettingsForm(settings) {
9276
+ this.destroySettingsForm();
9277
+ if (!settings || settings.length === 0) {
9278
+ this.$noSettingsMessage.removeClass("k-hidden");
9279
+ return;
9280
+ }
9281
+ this.$noSettingsMessage.addClass("k-hidden");
9282
+ if (!kendo.ui.Form) {
9283
+ console.error("The Kendo UI Form widget is not available. Export settings cannot be displayed.");
9284
+ this.$noSettingsMessage.removeClass("k-hidden");
9285
+ return;
9286
+ }
9287
+ const formData = {};
9288
+ const groups = /* @__PURE__ */ new Map();
9289
+ settings.forEach((setting) => {
9290
+ const pendingValues = this.pendingValues[this.format];
9291
+ const savedValue = this.exportSettingsStore ? this.exportSettingsStore.getValue(this.format, setting) : setting.value;
9292
+ const initialValue = pendingValues && Object.prototype.hasOwnProperty.call(pendingValues, setting.name) ? pendingValues[setting.name] : savedValue ?? this.getDefaultValue(setting.type);
9293
+ const groupName = setting.group?.trim() || "General";
9294
+ const groupSettings = groups.get(groupName) || [];
9295
+ formData[setting.name] = initialValue;
9296
+ groupSettings.push(setting);
9297
+ groups.set(groupName, groupSettings);
9298
+ });
9299
+ const pageRangeSelected = Number(formData.StartPage) > 0;
9300
+ if (!Object.prototype.hasOwnProperty.call(this.initialValues, this.format)) {
9301
+ this.initialValues[this.format] = { ...formData };
9302
+ }
9303
+ this.currentValues = { ...formData };
9304
+ formData[PAGE_SELECTION_FIELD] = pageRangeSelected;
9305
+ const formElement = $('<div class="trv-export-settings-form"></div>').appendTo(this.$settingsContainer.empty());
9306
+ const items = Array.from(groups, ([name, groupSettings]) => {
9307
+ const isPagingGroup = name === "Paging";
9308
+ const groupItems = groupSettings.map((setting) => this.createFormItem(setting));
9309
+ if (isPagingGroup) {
9310
+ this.pagingSettingNames = groupSettings.map((setting) => setting.name);
9311
+ groupItems.reverse();
9312
+ groupItems.unshift(this.createPageSelectionFormItem(pageRangeSelected));
9313
+ }
9314
+ return {
9315
+ type: "group",
9316
+ label: name,
9317
+ layout: "grid",
9318
+ grid: { cols: 1, gutter: 12 },
9319
+ items: groupItems
9320
+ };
9321
+ });
9322
+ this.settingsForm = formElement.kendoForm({
9323
+ formData: { ...formData },
9324
+ items,
9325
+ renderButtons: false,
9326
+ focusFirst: false,
9327
+ validatable: {
9328
+ validateOnBlur: false,
9329
+ validationSummary: false
9330
+ },
9331
+ change: (event) => {
9332
+ if (event.field !== PAGE_SELECTION_FIELD) {
9333
+ this.currentValues[event.field] = event.value;
9334
+ }
9335
+ }
9336
+ }).data("kendoForm");
9337
+ this.renderSettingInfoIcons(settings);
9338
+ this.togglePagingSettings(pageRangeSelected);
9339
+ }
9340
+ renderSettingInfoIcons(settings) {
9341
+ settings.forEach((setting) => {
9342
+ if (!setting.description) {
9343
+ return;
9344
+ }
9345
+ const label = this.$settingsContainer.find(".k-form-label").filter((index, element) => element.htmlFor === setting.name);
9346
+ const info = $('<span class="trv-export-setting-info" tabindex="0" role="img"></span>').attr({
9347
+ "aria-label": setting.description,
9348
+ "data-description": setting.description
9349
+ }).append(kendo.ui.icon({ icon: "info-circle", type: "font" })).on("click", (event) => event.preventDefault());
9350
+ label.append(info);
9351
+ });
9352
+ }
9353
+ createPageSelectionFormItem(pageRangeSelected) {
9354
+ return {
9355
+ field: PAGE_SELECTION_FIELD,
9356
+ label: stringResources.exportDialogPagesLabel,
9357
+ editor: createPageSelectionEditor,
9358
+ editorOptions: {
9359
+ pageRangeSelected,
9360
+ allPagesLabel: stringResources.exportDialogAllPagesLabel,
9361
+ pageRangeLabel: stringResources.exportDialogPageRangeLabel,
9362
+ change: (selected, model) => this.onPageSelectionChange(selected, model)
9363
+ }
9364
+ };
9365
+ }
9366
+ onPageSelectionChange(pageRangeSelected, model) {
9367
+ model.set(PAGE_SELECTION_FIELD, pageRangeSelected);
9368
+ if (pageRangeSelected) {
9369
+ if (this.pagingSettingNames.includes("StartPage") && Number(model.get("StartPage")) <= 0) {
9370
+ model.set("StartPage", 1);
9371
+ }
9372
+ } else {
9373
+ if (this.pagingSettingNames.includes("StartPage")) {
9374
+ model.set("StartPage", 0);
9375
+ }
9376
+ if (this.pagingSettingNames.includes("EndPage")) {
9377
+ model.set("EndPage", 0);
9378
+ }
9379
+ }
9380
+ this.togglePagingSettings(pageRangeSelected);
9381
+ }
9382
+ togglePagingSettings(pageRangeSelected) {
9383
+ this.pagingSettingNames.forEach((name) => {
9384
+ this.$settingsContainer.find(`[data-container-for="${name}"]`).closest(".k-form-field").toggleClass("k-hidden", !pageRangeSelected);
9385
+ });
9386
+ }
9387
+ createFormItem(setting) {
9388
+ const item = {
9389
+ field: setting.name,
9390
+ label: this.getSettingLabel(setting.name),
9391
+ editorOptions: {
9392
+ enabled: !setting.readOnly
9393
+ }
9394
+ };
9395
+ if (isPasswordSetting(setting.name)) {
9396
+ item.editor = createPasswordEditor;
9397
+ } else if (Array.isArray(setting.availableValues) && setting.availableValues.length > 0) {
9398
+ item.editor = createDropDownEditor;
9399
+ item.editorOptions.dataSource = [...setting.availableValues];
9400
+ } else {
9401
+ switch (setting.type) {
9402
+ case "boolean":
9403
+ item.editor = createCheckBoxEditor;
9404
+ break;
9405
+ case "number":
9406
+ item.editor = createNumericEditor;
9407
+ break;
9408
+ default:
9409
+ item.editor = createTextEditor;
9410
+ break;
9411
+ }
9412
+ }
9413
+ return item;
9414
+ }
9415
+ capturePendingValues() {
9416
+ if (this.currentValues && this.format) {
9417
+ this.pendingValues[this.format] = { ...this.currentValues };
9418
+ }
9419
+ }
9420
+ reset() {
9421
+ if (!this.format || !this.exportSettingsStore?.resetValues(this.format)) {
9422
+ return;
9423
+ }
9424
+ delete this.pendingValues[this.format];
9425
+ delete this.initialValues[this.format];
9426
+ const extension = this.formats.find((item) => item.name === this.format);
9427
+ this.buildSettingsForm(extension ? extension.settings : []);
9428
+ }
9429
+ save() {
9430
+ this.capturePendingValues();
9431
+ let saved = true;
9432
+ this.formats.forEach((extension) => {
9433
+ const values = this.pendingValues[extension.name];
9434
+ if (values && this.exportSettingsStore) {
9435
+ const initialValues = this.initialValues[extension.name] || {};
9436
+ const changedValues = {};
9437
+ Object.keys(values).forEach((name) => {
9438
+ if (values[name] !== initialValues[name]) {
9439
+ changedValues[name] = values[name];
9440
+ }
9441
+ });
9442
+ saved = this.exportSettingsStore.saveValues(
9443
+ extension.name,
9444
+ extension.settings || [],
9445
+ changedValues
9446
+ ) && saved;
9447
+ if (saved) {
9448
+ this.initialValues[extension.name] = { ...values };
9449
+ }
9450
+ }
9451
+ });
9452
+ if (saved) {
9453
+ this.close();
9454
+ }
9455
+ }
9456
+ getDefaultValue(settingType) {
9457
+ switch (settingType) {
9458
+ case "boolean":
9459
+ return false;
9460
+ case "number":
9461
+ return null;
9462
+ default:
9463
+ return "";
9464
+ }
9465
+ }
9466
+ getSettingLabel(name) {
9467
+ return stringResources["exportSetting_" + name] || distExports.splitPascalCase(name);
9468
+ }
9469
+ destroySettingsForm() {
9470
+ if (this.settingsForm) {
9471
+ this.settingsForm.destroy();
9472
+ this.settingsForm = void 0;
9473
+ }
9474
+ this.currentValues = void 0;
9475
+ this.pagingSettingNames = [];
9476
+ if (this.$settingsContainer) {
9477
+ this.$settingsContainer.empty();
9478
+ }
9479
+ }
9480
+ storeDialogPosition() {
9481
+ if (this.phoneViewport) {
9482
+ return;
9483
+ }
9484
+ const kendoWindow = this.kendoExportDialog.element.parent(".k-window");
9485
+ this.windowLocation = kendoWindow.offset();
9486
+ }
9487
+ adjustDialogPosition() {
9488
+ if (this.phoneViewport) {
9489
+ return;
9490
+ }
9491
+ const windowWidth = $(window).innerWidth();
9492
+ const windowHeight = $(window).innerHeight();
9493
+ const width = this.kendoExportDialog.wrapper.outerWidth(true);
9494
+ const height = this.kendoExportDialog.wrapper.outerHeight(true);
9495
+ const padding = 10;
9496
+ if (!this.windowLocation) {
9497
+ this.kendoExportDialog.center();
9498
+ return;
9499
+ }
9500
+ let left = this.windowLocation.left;
9501
+ let top = this.windowLocation.top;
9502
+ const right = left + width;
9503
+ const bottom = top + height;
9504
+ if (right > windowWidth - padding) {
9505
+ left = Math.max(padding, windowWidth - width - padding);
9506
+ this.kendoExportDialog.setOptions({ position: { left } });
9507
+ }
9508
+ if (bottom > windowHeight - padding) {
9509
+ top = Math.max(padding, windowHeight - height - padding);
9510
+ this.kendoExportDialog.setOptions({ position: { top } });
9511
+ }
9512
+ }
9513
+ // #endregion
9514
+ }
9515
+
8752
9516
  function getEventHandlerFromArguments(args) {
8753
9517
  var arg0;
8754
9518
  if (args && args.length) {
@@ -8825,6 +9589,7 @@ ${e3.text} (${e3.id})`;
8825
9589
  GET_SEND_EMAIL_DIALOG_STATE: "trv.GET_SEND_EMAIL_DIALOG_STATE",
8826
9590
  SET_SEARCH_DIALOG_VISIBLE: "trv.SET_SEARCH_DIALOG_VISIBLE",
8827
9591
  SET_SEND_EMAIL_DIALOG_VISIBLE: "trv.SET_SEND_EMAIL_DIALOG_VISIBLE",
9592
+ SET_EXPORT_DIALOG_VISIBLE: "trv.SET_EXPORT_DIALOG_VISIBLE",
8828
9593
  SET_AI_PROMPT_DIALOG_VISIBLE: "trv.SET_AI_PROMPT_DIALOG_VISIBLE"
8829
9594
  };
8830
9595
  on() {
@@ -8867,6 +9632,9 @@ ${e3.text} (${e3.id})`;
8867
9632
  setSendEmailDialogVisible() {
8868
9633
  return this.eventFactory(this.Events.SET_SEND_EMAIL_DIALOG_VISIBLE, arguments);
8869
9634
  }
9635
+ setExportDialogVisible() {
9636
+ return this.eventFactory(this.Events.SET_EXPORT_DIALOG_VISIBLE, arguments);
9637
+ }
8870
9638
  setAiPromptDialogVisible() {
8871
9639
  return this.eventFactory(this.Events.SET_AI_PROMPT_DIALOG_VISIBLE, arguments);
8872
9640
  }
@@ -8905,6 +9673,11 @@ ${e3.text} (${e3.id})`;
8905
9673
  // #endregion
8906
9674
  }
8907
9675
 
9676
+ const notificationWarningIcon = {
9677
+ name: "warning-circle",
9678
+ content: '<circle cx="256" cy="256" r="208" fill="none" stroke="currentColor" stroke-width="32" /><path d="M224 128h64v160h-64zm0 256v-64h64v64z" />',
9679
+ viewBox: "0 0 512 512"
9680
+ };
8908
9681
  const TemplateCache = /* @__PURE__ */ (function() {
8909
9682
  var cache = {};
8910
9683
  return {
@@ -8920,7 +9693,19 @@ ${e3.text} (${e3.id})`;
8920
9693
  var viewerTemplate = $("<div></div>").html(html);
8921
9694
  Array.from(viewerTemplate.find("template")).forEach((element) => {
8922
9695
  var $element = $(element);
8923
- templates[$element.attr("id")] = trim($element.html(), "\n ");
9696
+ var $content = $("<div></div>").html($element.html());
9697
+ $content.find("[data-svg-icon]").each((_, icon) => {
9698
+ var $icon = $(icon);
9699
+ var iconName = $icon.attr("data-svg-icon");
9700
+ var exportName = iconName.replace(/-([a-z])/g, (_2, letter) => letter.toUpperCase()) + "Icon";
9701
+ var svgIcon = iconName === "warning-circle" ? notificationWarningIcon : kendo.ui.svgIcons[exportName];
9702
+ if (!svgIcon) {
9703
+ throw new Error(`Kendo SVG icon not found: ${iconName}`);
9704
+ }
9705
+ kendo.ui.icon($icon, { icon: svgIcon, type: "svg" });
9706
+ $icon.removeAttr("data-svg-icon");
9707
+ });
9708
+ templates[$element.attr("id")] = trim($content.html(), "\n ");
8924
9709
  });
8925
9710
  Array.from(viewerTemplate.find("link")).forEach((element) => {
8926
9711
  styleSheets.push(trim(element.outerHTML, "\n "));
@@ -9111,9 +9896,10 @@ ${e3.text} (${e3.id})`;
9111
9896
  spin: this._onChange.bind(this)
9112
9897
  });
9113
9898
  this._numeric._text[0].dataset.role = "telerik_ReportViewer_PageNumberInput";
9899
+ this._numeric._text[0].setAttribute("aria-label", stringResources.ariaLabelPageNumberEditor);
9114
9900
  this._numeric.element[0].dataset.role = "";
9901
+ this._numeric.element[0].setAttribute("aria-label", stringResources.ariaLabelPageNumberEditor);
9115
9902
  this._numeric.wrapper[0].classList.add("trv-toolbar-numeric");
9116
- this._numeric._text[0].setAttribute("aria-label", stringResources.ariaLabelPageNumberEditor);
9117
9903
  this.options.controller.onAsync("reportLoadComplete", async (reportInfo) => {
9118
9904
  this._numeric.max(reportInfo.pageCount);
9119
9905
  this._numeric.min(Math.min(1, reportInfo.pageCount));
@@ -9278,6 +10064,7 @@ ${e3.text} (${e3.id})`;
9278
10064
  _options;
9279
10065
  /** @type {HTMLElement} */
9280
10066
  _element;
10067
+ _exportDialogEnabled;
9281
10068
  $element;
9282
10069
  _kendoToolbar;
9283
10070
  _neverOverflowToolBarButtons = ["goToPrevPage", "goToNextPage"];
@@ -9286,6 +10073,7 @@ ${e3.text} (${e3.id})`;
9286
10073
  constructor(element, options, viewerOptions) {
9287
10074
  this._element = element;
9288
10075
  this._options = options;
10076
+ this._exportDialogEnabled = Boolean(viewerOptions.exportDialog.enabled);
9289
10077
  this.$element = $(this._element);
9290
10078
  if (this._kendoToolbar === void 0) {
9291
10079
  this.initKendoToolbar();
@@ -9436,14 +10224,31 @@ ${e3.text} (${e3.id})`;
9436
10224
  return;
9437
10225
  }
9438
10226
  const exportDropdownItems = [];
9439
- extensions.forEach((extension) => exportDropdownItems.push({
9440
- id: extension.name,
9441
- text: extension.localizedName,
9442
- attributes: {
9443
- [ToolBarConstants.DataCommandAttr]: "export",
9444
- [ToolBarConstants.DataCommandParameterAttr]: extension.name
10227
+ extensions.forEach((extension) => {
10228
+ const iconClass = getRenderingExtensionIconClass(extension.name);
10229
+ const item = {
10230
+ id: extension.name,
10231
+ text: extension.localizedName,
10232
+ attributes: {
10233
+ [ToolBarConstants.DataCommandAttr]: "export",
10234
+ [ToolBarConstants.DataCommandParameterAttr]: extension.name
10235
+ }
10236
+ };
10237
+ if (iconClass) {
10238
+ item.spriteCssClass = `rendering-extension-icon ${iconClass}`;
9445
10239
  }
9446
- }));
10240
+ exportDropdownItems.push(item);
10241
+ });
10242
+ if (this._exportDialogEnabled && distExports.hasExportSettings(extensions)) {
10243
+ exportDropdownItems.push({
10244
+ text: stringResources.exportOptionsLabel,
10245
+ spriteCssClass: `rendering-extension-icon ${getExportOptionsIconClass()}`,
10246
+ attributes: {
10247
+ class: "trv-export-options-item",
10248
+ [ToolBarConstants.DataCommandAttr]: "openExportDialog"
10249
+ }
10250
+ });
10251
+ }
9447
10252
  const options = kendoExportDropDown.options;
9448
10253
  options.items = exportDropdownItems;
9449
10254
  kendoExportDropDown.setOptions(options);
@@ -10006,6 +10811,9 @@ ${e3.text} (${e3.id})`;
10006
10811
  searchMetadataOnDemand: false,
10007
10812
  initialPageAreaImageUrl: null,
10008
10813
  keepClientAlive: true,
10814
+ exportDialog: {
10815
+ enabled: true
10816
+ },
10009
10817
  webDesignerPreview: false,
10010
10818
  serverPreview: false
10011
10819
  };
@@ -10027,6 +10835,7 @@ ${e3.text} (${e3.id})`;
10027
10835
  var persistanceKey = options.id || "#" + $placeholder.attr("id");
10028
10836
  var accessibility;
10029
10837
  var settings = {};
10838
+ var exportSettingsStore = {};
10030
10839
  var notificationService = {};
10031
10840
  var client = {};
10032
10841
  var controllerOptions = {};
@@ -10040,8 +10849,10 @@ ${e3.text} (${e3.id})`;
10040
10849
  if (!validateOptions(options)) {
10041
10850
  return;
10042
10851
  }
10043
- var version = "20.2.26.812";
10044
- options = $.extend({}, getDefaultOptions(svcApiUrl, version), options);
10852
+ var version = "20.2.26.1007";
10853
+ var defaultOptions = getDefaultOptions(svcApiUrl, version);
10854
+ options = $.extend({}, defaultOptions, options);
10855
+ options.exportDialog = $.extend({}, defaultOptions.exportDialog, options.exportDialog);
10045
10856
  settings = new ReportViewerSettings(
10046
10857
  persistanceKey,
10047
10858
  options.persistSession ? window.sessionStorage : new MemStorage(),
@@ -10059,6 +10870,7 @@ ${e3.text} (${e3.id})`;
10059
10870
  serverPreview: options.serverPreview
10060
10871
  }
10061
10872
  );
10873
+ exportSettingsStore = new distExports.ExportSettingsStore();
10062
10874
  notificationService = new NotificationService();
10063
10875
  client = new distExports.ServiceClient(options);
10064
10876
  controllerOptions = new distExports.ReportControllerOptions(
@@ -10086,7 +10898,9 @@ ${e3.text} (${e3.id})`;
10086
10898
  commands = new CommandSet({
10087
10899
  controller,
10088
10900
  notificationService,
10089
- history
10901
+ history,
10902
+ exportSettingsStore,
10903
+ exportDialog: options.exportDialog
10090
10904
  });
10091
10905
  new UIController({
10092
10906
  controller,
@@ -10515,7 +11329,8 @@ ${e3.text} (${e3.id})`;
10515
11329
  controller,
10516
11330
  notificationService,
10517
11331
  commands,
10518
- templates
11332
+ templates,
11333
+ exportSettingsStore
10519
11334
  },
10520
11335
  options
10521
11336
  );
@@ -10992,6 +11807,10 @@ ${e3.text} (${e3.id})`;
10992
11807
  name: "telerik_ReportViewer_SendEmail",
10993
11808
  constructor: SendEmail
10994
11809
  },
11810
+ {
11811
+ name: "telerik_ReportViewer_ExportDialog",
11812
+ constructor: ExportDialog
11813
+ },
10995
11814
  {
10996
11815
  name: "telerik_ReportViewer_LinkButton",
10997
11816
  constructor: LinkButton