@progress/telerik-jquery-report-viewer 27.25.924 → 28.25.1111

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,5 +1,5 @@
1
1
  /*
2
- * TelerikReporting v19.2.25.924 (https://www.telerik.com/products/reporting.aspx)
2
+ * TelerikReporting v19.3.25.1111 (https://www.telerik.com/products/reporting.aspx)
3
3
  * Copyright 2025 Progress Software EAD. All rights reserved.
4
4
  *
5
5
  * Telerik Reporting commercial licenses may be obtained at
@@ -1377,8 +1377,8 @@ var telerikReportViewer = (function (exports) {
1377
1377
  function i(e2) {
1378
1378
  return e2 && "object" == typeof e2 && "default" in e2 ? e2 : { default: e2 };
1379
1379
  }
1380
- var n = i(t);
1381
- function r(e2, t2, i2, n2) {
1380
+ var n, r = i(t);
1381
+ function s(e2, t2, i2, n2) {
1382
1382
  return new (i2 || (i2 = Promise))(function(r2, s2) {
1383
1383
  function o2(e3) {
1384
1384
  try {
@@ -1403,37 +1403,62 @@ var telerikReportViewer = (function (exports) {
1403
1403
  l2((n2 = n2.apply(e2, t2 || [])).next());
1404
1404
  });
1405
1405
  }
1406
- class s {
1406
+ class o {
1407
1407
  constructor() {
1408
1408
  this.BasePath = "", this.ImmediatePrint = false, this.ContentOnly = false, this.UseSVG = false, this.enableSearch = false, this.enableAccessibility = false, this.contentTabIndex = 0;
1409
1409
  }
1410
1410
  }
1411
- class o {
1411
+ class a {
1412
1412
  constructor() {
1413
1413
  this.from = "", this.to = "", this.cc = "", this.subject = "", this.format = "", this.body = "";
1414
1414
  }
1415
1415
  }
1416
- class a {
1416
+ class l {
1417
1417
  constructor(e2, t2) {
1418
1418
  this.cancel = false, this.element = e2, this.action = t2;
1419
1419
  }
1420
1420
  }
1421
- class l {
1421
+ class h {
1422
1422
  constructor(e2, t2) {
1423
1423
  this.id = "", this.type = "", this.id = e2, this.type = t2;
1424
1424
  }
1425
1425
  }
1426
- class h {
1426
+ class c {
1427
1427
  constructor(e2, t2) {
1428
1428
  this.isCancelled = false, this.format = "", this.deviceInfo = e2, this.format = t2;
1429
1429
  }
1430
1430
  }
1431
- class c {
1431
+ class d {
1432
+ constructor(e2, t2) {
1433
+ this.handled = false, this.deviceInfo = e2, this.format = t2;
1434
+ }
1435
+ }
1436
+ class u {
1432
1437
  constructor(e2, t2, i2) {
1433
1438
  this.handled = false, this.url = e2, this.format = t2, this.windowOpenTarget = i2;
1434
1439
  }
1435
1440
  }
1436
- class d {
1441
+ class p {
1442
+ constructor(e2) {
1443
+ this.handled = false, this.deviceInfo = e2;
1444
+ }
1445
+ }
1446
+ class g {
1447
+ constructor(e2) {
1448
+ this.handled = false, this.url = e2;
1449
+ }
1450
+ }
1451
+ class m {
1452
+ constructor(e2, t2) {
1453
+ this.page = e2, this.reportDocumentId = t2;
1454
+ }
1455
+ }
1456
+ class f {
1457
+ constructor(e2, t2, i2, n2 = null) {
1458
+ this.element = e2, this.text = t2, this.title = i2, this.eventArgs = n2;
1459
+ }
1460
+ }
1461
+ class v {
1437
1462
  constructor(e2, t2) {
1438
1463
  this._responseText = e2, this._error = t2;
1439
1464
  try {
@@ -1456,14 +1481,14 @@ var telerikReportViewer = (function (exports) {
1456
1481
  return (null === (e2 = this.responseJSON) || void 0 === e2 ? void 0 : e2.exceptionMessage) || (null === (t2 = this.responseJSON) || void 0 === t2 ? void 0 : t2.ExceptionMessage);
1457
1482
  }
1458
1483
  }
1459
- function u(e2, t2 = false, i2 = false) {
1484
+ function P(e2, t2 = false, i2 = false) {
1460
1485
  let n2 = { Accept: "application/json, text/javascript, */*; q=0.01" };
1461
1486
  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;
1462
1487
  }
1463
- function p(e2) {
1464
- return r(this, void 0, void 0, function* () {
1488
+ function C(e2) {
1489
+ return s(this, void 0, void 0, function* () {
1465
1490
  if (!e2.ok) {
1466
- let t2 = yield e2.text(), i2 = new d(t2, e2.statusText);
1491
+ let t2 = yield e2.text(), i2 = new v(t2, e2.statusText);
1467
1492
  return Promise.reject(i2);
1468
1493
  }
1469
1494
  if (204 == e2.status)
@@ -1471,23 +1496,75 @@ var telerikReportViewer = (function (exports) {
1471
1496
  return (e2.headers.get("content-type") || "").includes("application/json") ? e2.json() : e2.text();
1472
1497
  });
1473
1498
  }
1474
- function g(e2, t2 = {}, i2 = "", n2 = false) {
1475
- return fetch(e2, { method: "POST", headers: u(i2, true, n2), body: n2 ? t2 : JSON.stringify(t2) }).then(p);
1499
+ function y(e2, t2 = {}, i2 = "", n2 = false) {
1500
+ return fetch(e2, { method: "POST", headers: P(i2, true, n2), body: n2 ? t2 : JSON.stringify(t2) }).then(C);
1501
+ }
1502
+ class S {
1503
+ authenticatePromise() {
1504
+ return Promise.resolve("");
1505
+ }
1506
+ }
1507
+ class I {
1508
+ constructor(e2) {
1509
+ this.connectionConfig = e2;
1510
+ }
1511
+ authenticatePromise() {
1512
+ var e2, t2;
1513
+ if (this.connectionConfig && this.connectionConfig.tokenUrl && (this.connectionConfig.username || this.connectionConfig.password)) {
1514
+ let i2 = `grant_type=password&username=${encodeURIComponent((null === (e2 = this.connectionConfig) || void 0 === e2 ? void 0 : e2.username) || "")}&password=${encodeURIComponent((null === (t2 = this.connectionConfig) || void 0 === t2 ? void 0 : t2.password) || "")}`;
1515
+ return y(this.connectionConfig.tokenUrl, i2, "", true).then((e3) => (e3.expiresAt = Date.now() + 1e3 * e3.expiresIn, e3));
1516
+ }
1517
+ return Promise.reject("Failed to connect to Report Server with user credentials. Are you missing the reportServer.url, reportServer.username or reportServer.password values?");
1518
+ }
1519
+ }
1520
+ class b {
1521
+ constructor(e2) {
1522
+ this.connectionConfig = e2;
1523
+ }
1524
+ authenticatePromise(e2, t2) {
1525
+ return e2 ? y(this.connectionConfig.refreshTokenUrl, { RefreshToken: t2 }).then((e3) => (e3.expiresAt = Date.now() + 1e3 * e3.expiresIn, e3)) : this.connectionConfig && this.connectionConfig.personalTokenUrl && this.connectionConfig.getPersonalAccessToken ? this.connectionConfig.getPersonalAccessToken().then((e3) => y(this.connectionConfig.personalTokenUrl, e3).then((e4) => (e4.expiresAt = Date.now() + 1e3 * e4.expiresIn, e4))) : Promise.reject("Failed to connect to Report Server with personal access token. Are you missing the reportServer.url or reportServer.getPersonalAccessToken values?");
1526
+ }
1476
1527
  }
1477
- function m() {
1528
+ e.AuthType = void 0, (n = e.AuthType || (e.AuthType = {}))[n.None = 0] = "None", n[n.Basic = 1] = "Basic", n[n.PersonalToken = 2] = "PersonalToken";
1529
+ class w {
1530
+ constructor(e2) {
1531
+ this.baseUrl = null == e2 ? void 0 : e2.replace(/\/$/, "");
1532
+ }
1478
1533
  }
1479
- function f() {
1480
- f.init.call(this);
1534
+ class T extends w {
1535
+ constructor(t2) {
1536
+ super(t2), this.authType = e.AuthType.None, this.serviceUrl = this.baseUrl;
1537
+ }
1538
+ }
1539
+ class A extends w {
1540
+ constructor(t2) {
1541
+ super(t2), this.authType = e.AuthType.None, this.serviceUrl = this.baseUrl + "/api/reports";
1542
+ }
1481
1543
  }
1482
- function v(e2) {
1483
- return void 0 === e2._maxListeners ? f.defaultMaxListeners : e2._maxListeners;
1544
+ class R extends A {
1545
+ constructor(t2, i2, n2) {
1546
+ super(t2), this.authType = e.AuthType.Basic, this.username = i2, this.password = n2, this.tokenUrl = this.baseUrl + "/Token";
1547
+ }
1484
1548
  }
1485
- function P(e2, t2, i2, n2) {
1549
+ class E extends A {
1550
+ constructor(t2, i2) {
1551
+ super(t2), this.authType = e.AuthType.PersonalToken, this.getPersonalAccessToken = i2, this.personalTokenUrl = this.baseUrl + "/PersonalToken", this.refreshTokenUrl = this.baseUrl + "/refresh";
1552
+ }
1553
+ }
1554
+ function M() {
1555
+ }
1556
+ function x() {
1557
+ x.init.call(this);
1558
+ }
1559
+ function L(e2) {
1560
+ return void 0 === e2._maxListeners ? x.defaultMaxListeners : e2._maxListeners;
1561
+ }
1562
+ function k(e2, t2, i2, n2) {
1486
1563
  var r2, s2, o2, a2;
1487
1564
  if ("function" != typeof i2)
1488
1565
  throw new TypeError('"listener" argument must be a function');
1489
- 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 m(), e2._eventsCount = 0), o2) {
1490
- if ("function" == typeof o2 ? o2 = s2[t2] = n2 ? [i2, o2] : [o2, i2] : n2 ? o2.unshift(i2) : o2.push(i2), !o2.warned && (r2 = v(e2)) && r2 > 0 && o2.length > r2) {
1566
+ 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 M(), e2._eventsCount = 0), o2) {
1567
+ if ("function" == typeof o2 ? o2 = s2[t2] = n2 ? [i2, o2] : [o2, i2] : n2 ? o2.unshift(i2) : o2.push(i2), !o2.warned && (r2 = L(e2)) && r2 > 0 && o2.length > r2) {
1491
1568
  o2.warned = true;
1492
1569
  var l2 = new Error("Possible EventEmitter memory leak detected. " + o2.length + " " + t2 + " listeners added. Use emitter.setMaxListeners() to increase limit");
1493
1570
  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);
@@ -1496,14 +1573,14 @@ var telerikReportViewer = (function (exports) {
1496
1573
  o2 = s2[t2] = i2, ++e2._eventsCount;
1497
1574
  return e2;
1498
1575
  }
1499
- function y(e2, t2, i2) {
1576
+ function D(e2, t2, i2) {
1500
1577
  var n2 = false;
1501
1578
  function r2() {
1502
1579
  e2.removeListener(t2, r2), n2 || (n2 = true, i2.apply(e2, arguments));
1503
1580
  }
1504
1581
  return r2.listener = i2, r2;
1505
1582
  }
1506
- function I(e2) {
1583
+ function N(e2) {
1507
1584
  var t2 = this._events;
1508
1585
  if (t2) {
1509
1586
  var i2 = t2[e2];
@@ -1514,20 +1591,20 @@ var telerikReportViewer = (function (exports) {
1514
1591
  }
1515
1592
  return 0;
1516
1593
  }
1517
- function C(e2, t2) {
1594
+ function F(e2, t2) {
1518
1595
  for (var i2 = new Array(t2); t2--; )
1519
1596
  i2[t2] = e2[t2];
1520
1597
  return i2;
1521
1598
  }
1522
- m.prototype = /* @__PURE__ */ Object.create(null), f.EventEmitter = f, f.usingDomains = false, f.prototype.domain = void 0, f.prototype._events = void 0, f.prototype._maxListeners = void 0, f.defaultMaxListeners = 10, f.init = function() {
1523
- this.domain = null, f.usingDomains && (void 0).active, this._events && this._events !== Object.getPrototypeOf(this)._events || (this._events = new m(), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
1524
- }, f.prototype.setMaxListeners = function(e2) {
1599
+ M.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() {
1600
+ this.domain = null, x.usingDomains && (void 0).active, this._events && this._events !== Object.getPrototypeOf(this)._events || (this._events = new M(), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
1601
+ }, x.prototype.setMaxListeners = function(e2) {
1525
1602
  if ("number" != typeof e2 || e2 < 0 || isNaN(e2))
1526
1603
  throw new TypeError('"n" argument must be a positive number');
1527
1604
  return this._maxListeners = e2, this;
1528
- }, f.prototype.getMaxListeners = function() {
1529
- return v(this);
1530
- }, f.prototype.emit = function(e2) {
1605
+ }, x.prototype.getMaxListeners = function() {
1606
+ return L(this);
1607
+ }, x.prototype.emit = function(e2) {
1531
1608
  var t2, i2, n2, r2, s2, o2, a2, l2 = "error" === e2;
1532
1609
  if (o2 = this._events)
1533
1610
  l2 = l2 && null == o2.error;
@@ -1551,7 +1628,7 @@ var telerikReportViewer = (function (exports) {
1551
1628
  if (t3)
1552
1629
  e3.call(i3);
1553
1630
  else
1554
- for (var n3 = e3.length, r3 = C(e3, n3), s3 = 0; s3 < n3; ++s3)
1631
+ for (var n3 = e3.length, r3 = F(e3, n3), s3 = 0; s3 < n3; ++s3)
1555
1632
  r3[s3].call(i3);
1556
1633
  }(i2, c2, this);
1557
1634
  break;
@@ -1560,7 +1637,7 @@ var telerikReportViewer = (function (exports) {
1560
1637
  if (t3)
1561
1638
  e3.call(i3, n3);
1562
1639
  else
1563
- for (var r3 = e3.length, s3 = C(e3, r3), o3 = 0; o3 < r3; ++o3)
1640
+ for (var r3 = e3.length, s3 = F(e3, r3), o3 = 0; o3 < r3; ++o3)
1564
1641
  s3[o3].call(i3, n3);
1565
1642
  }(i2, c2, this, arguments[1]);
1566
1643
  break;
@@ -1569,7 +1646,7 @@ var telerikReportViewer = (function (exports) {
1569
1646
  if (t3)
1570
1647
  e3.call(i3, n3, r3);
1571
1648
  else
1572
- for (var s3 = e3.length, o3 = C(e3, s3), a3 = 0; a3 < s3; ++a3)
1649
+ for (var s3 = e3.length, o3 = F(e3, s3), a3 = 0; a3 < s3; ++a3)
1573
1650
  o3[a3].call(i3, n3, r3);
1574
1651
  }(i2, c2, this, arguments[1], arguments[2]);
1575
1652
  break;
@@ -1578,7 +1655,7 @@ var telerikReportViewer = (function (exports) {
1578
1655
  if (t3)
1579
1656
  e3.call(i3, n3, r3, s3);
1580
1657
  else
1581
- for (var o3 = e3.length, a3 = C(e3, o3), l3 = 0; l3 < o3; ++l3)
1658
+ for (var o3 = e3.length, a3 = F(e3, o3), l3 = 0; l3 < o3; ++l3)
1582
1659
  a3[l3].call(i3, n3, r3, s3);
1583
1660
  }(i2, c2, this, arguments[1], arguments[2], arguments[3]);
1584
1661
  break;
@@ -1589,24 +1666,24 @@ var telerikReportViewer = (function (exports) {
1589
1666
  if (t3)
1590
1667
  e3.apply(i3, n3);
1591
1668
  else
1592
- for (var r3 = e3.length, s3 = C(e3, r3), o3 = 0; o3 < r3; ++o3)
1669
+ for (var r3 = e3.length, s3 = F(e3, r3), o3 = 0; o3 < r3; ++o3)
1593
1670
  s3[o3].apply(i3, n3);
1594
1671
  }(i2, c2, this, r2);
1595
1672
  }
1596
1673
  return true;
1597
- }, f.prototype.addListener = function(e2, t2) {
1598
- return P(this, e2, t2, false);
1599
- }, f.prototype.on = f.prototype.addListener, f.prototype.prependListener = function(e2, t2) {
1600
- return P(this, e2, t2, true);
1601
- }, f.prototype.once = function(e2, t2) {
1674
+ }, x.prototype.addListener = function(e2, t2) {
1675
+ return k(this, e2, t2, false);
1676
+ }, x.prototype.on = x.prototype.addListener, x.prototype.prependListener = function(e2, t2) {
1677
+ return k(this, e2, t2, true);
1678
+ }, x.prototype.once = function(e2, t2) {
1602
1679
  if ("function" != typeof t2)
1603
1680
  throw new TypeError('"listener" argument must be a function');
1604
- return this.on(e2, y(this, e2, t2)), this;
1605
- }, f.prototype.prependOnceListener = function(e2, t2) {
1681
+ return this.on(e2, D(this, e2, t2)), this;
1682
+ }, x.prototype.prependOnceListener = function(e2, t2) {
1606
1683
  if ("function" != typeof t2)
1607
1684
  throw new TypeError('"listener" argument must be a function');
1608
- return this.prependListener(e2, y(this, e2, t2)), this;
1609
- }, f.prototype.removeListener = function(e2, t2) {
1685
+ return this.prependListener(e2, D(this, e2, t2)), this;
1686
+ }, x.prototype.removeListener = function(e2, t2) {
1610
1687
  var i2, n2, r2, s2, o2;
1611
1688
  if ("function" != typeof t2)
1612
1689
  throw new TypeError('"listener" argument must be a function');
@@ -1615,7 +1692,7 @@ var telerikReportViewer = (function (exports) {
1615
1692
  if (!(i2 = n2[e2]))
1616
1693
  return this;
1617
1694
  if (i2 === t2 || i2.listener && i2.listener === t2)
1618
- 0 == --this._eventsCount ? this._events = new m() : (delete n2[e2], n2.removeListener && this.emit("removeListener", e2, i2.listener || t2));
1695
+ 0 == --this._eventsCount ? this._events = new M() : (delete n2[e2], n2.removeListener && this.emit("removeListener", e2, i2.listener || t2));
1619
1696
  else if ("function" != typeof i2) {
1620
1697
  for (r2 = -1, s2 = i2.length; s2-- > 0; )
1621
1698
  if (i2[s2] === t2 || i2[s2].listener && i2[s2].listener === t2) {
@@ -1626,7 +1703,7 @@ var telerikReportViewer = (function (exports) {
1626
1703
  return this;
1627
1704
  if (1 === i2.length) {
1628
1705
  if (i2[0] = void 0, 0 == --this._eventsCount)
1629
- return this._events = new m(), this;
1706
+ return this._events = new M(), this;
1630
1707
  delete n2[e2];
1631
1708
  } else
1632
1709
  !function(e3, t3) {
@@ -1637,18 +1714,18 @@ var telerikReportViewer = (function (exports) {
1637
1714
  n2.removeListener && this.emit("removeListener", e2, o2 || t2);
1638
1715
  }
1639
1716
  return this;
1640
- }, f.prototype.off = function(e2, t2) {
1717
+ }, x.prototype.off = function(e2, t2) {
1641
1718
  return this.removeListener(e2, t2);
1642
- }, f.prototype.removeAllListeners = function(e2) {
1719
+ }, x.prototype.removeAllListeners = function(e2) {
1643
1720
  var t2, i2;
1644
1721
  if (!(i2 = this._events))
1645
1722
  return this;
1646
1723
  if (!i2.removeListener)
1647
- return 0 === arguments.length ? (this._events = new m(), this._eventsCount = 0) : i2[e2] && (0 == --this._eventsCount ? this._events = new m() : delete i2[e2]), this;
1724
+ return 0 === arguments.length ? (this._events = new M(), this._eventsCount = 0) : i2[e2] && (0 == --this._eventsCount ? this._events = new M() : delete i2[e2]), this;
1648
1725
  if (0 === arguments.length) {
1649
1726
  for (var n2, r2 = Object.keys(i2), s2 = 0; s2 < r2.length; ++s2)
1650
1727
  "removeListener" !== (n2 = r2[s2]) && this.removeAllListeners(n2);
1651
- return this.removeAllListeners("removeListener"), this._events = new m(), this._eventsCount = 0, this;
1728
+ return this.removeAllListeners("removeListener"), this._events = new M(), this._eventsCount = 0, this;
1652
1729
  }
1653
1730
  if ("function" == typeof (t2 = i2[e2]))
1654
1731
  this.removeListener(e2, t2);
@@ -1657,34 +1734,34 @@ var telerikReportViewer = (function (exports) {
1657
1734
  this.removeListener(e2, t2[t2.length - 1]);
1658
1735
  } while (t2[0]);
1659
1736
  return this;
1660
- }, f.prototype.listeners = function(e2) {
1737
+ }, x.prototype.listeners = function(e2) {
1661
1738
  var t2, i2 = this._events;
1662
1739
  return i2 && (t2 = i2[e2]) ? "function" == typeof t2 ? [t2.listener || t2] : function(e3) {
1663
1740
  for (var t3 = new Array(e3.length), i3 = 0; i3 < t3.length; ++i3)
1664
1741
  t3[i3] = e3[i3].listener || e3[i3];
1665
1742
  return t3;
1666
1743
  }(t2) : [];
1667
- }, f.listenerCount = function(e2, t2) {
1668
- return "function" == typeof e2.listenerCount ? e2.listenerCount(t2) : I.call(e2, t2);
1669
- }, f.prototype.listenerCount = I, f.prototype.eventNames = function() {
1744
+ }, x.listenerCount = function(e2, t2) {
1745
+ return "function" == typeof e2.listenerCount ? e2.listenerCount(t2) : N.call(e2, t2);
1746
+ }, x.prototype.listenerCount = N, x.prototype.eventNames = function() {
1670
1747
  return this._eventsCount > 0 ? Reflect.ownKeys(this._events) : [];
1671
1748
  };
1672
- const S = "function" == typeof Symbol ? Symbol.for("--[[await-event-emitter]]--") : "--[[await-event-emitter]]--";
1673
- function b(e2) {
1749
+ const O = "function" == typeof Symbol ? Symbol.for("--[[await-event-emitter]]--") : "--[[await-event-emitter]]--";
1750
+ function V(e2) {
1674
1751
  if ("string" != typeof e2 && "symbol" != typeof e2)
1675
1752
  throw new TypeError("type is not type of string or symbol!");
1676
1753
  }
1677
- function w(e2) {
1754
+ function z(e2) {
1678
1755
  if ("function" != typeof e2)
1679
1756
  throw new TypeError("fn is not type of Function!");
1680
1757
  }
1681
- function R(e2) {
1682
- return { [S]: "always", fn: e2 };
1758
+ function _(e2) {
1759
+ return { [O]: "always", fn: e2 };
1683
1760
  }
1684
- function E(e2) {
1685
- return { [S]: "once", fn: e2 };
1761
+ function U(e2) {
1762
+ return { [O]: "once", fn: e2 };
1686
1763
  }
1687
- class T {
1764
+ class $ {
1688
1765
  constructor() {
1689
1766
  this._events = {};
1690
1767
  }
@@ -1692,25 +1769,25 @@ var telerikReportViewer = (function (exports) {
1692
1769
  return this.on(e2, t2);
1693
1770
  }
1694
1771
  on(e2, t2) {
1695
- return b(e2), w(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(R(t2)), this;
1772
+ return V(e2), z(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(_(t2)), this;
1696
1773
  }
1697
1774
  prependListener(e2, t2) {
1698
1775
  return this.prepend(e2, t2);
1699
1776
  }
1700
1777
  prepend(e2, t2) {
1701
- return b(e2), w(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(R(t2)), this;
1778
+ return V(e2), z(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(_(t2)), this;
1702
1779
  }
1703
1780
  prependOnceListener(e2, t2) {
1704
1781
  return this.prependOnce(e2, t2);
1705
1782
  }
1706
1783
  prependOnce(e2, t2) {
1707
- return b(e2), w(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(E(t2)), this;
1784
+ return V(e2), z(t2), this._events[e2] = this._events[e2] || [], this._events[e2].unshift(U(t2)), this;
1708
1785
  }
1709
1786
  listeners(e2) {
1710
1787
  return (this._events[e2] || []).map((e3) => e3.fn);
1711
1788
  }
1712
1789
  once(e2, t2) {
1713
- return b(e2), w(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(E(t2)), this;
1790
+ return V(e2), z(t2), this._events[e2] = this._events[e2] || [], this._events[e2].push(U(t2)), this;
1714
1791
  }
1715
1792
  removeAllListeners() {
1716
1793
  this._events = {};
@@ -1719,7 +1796,7 @@ var telerikReportViewer = (function (exports) {
1719
1796
  return this.removeListener(e2, t2);
1720
1797
  }
1721
1798
  removeListener(e2, t2) {
1722
- b(e2);
1799
+ V(e2);
1723
1800
  const i2 = this.listeners(e2);
1724
1801
  if ("function" == typeof t2) {
1725
1802
  let n2 = -1, r2 = false;
@@ -1730,13 +1807,13 @@ var telerikReportViewer = (function (exports) {
1730
1807
  return delete this._events[e2];
1731
1808
  }
1732
1809
  emit(e2, ...t2) {
1733
- return r(this, void 0, void 0, function* () {
1734
- b(e2);
1810
+ return s(this, void 0, void 0, function* () {
1811
+ V(e2);
1735
1812
  const i2 = this.listeners(e2), n2 = [];
1736
1813
  if (i2 && i2.length) {
1737
1814
  for (let r2 = 0; r2 < i2.length; r2++) {
1738
1815
  const s2 = i2[r2], o2 = s2.apply(this, t2);
1739
- o2 instanceof Promise && (yield o2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][S] && n2.push(s2);
1816
+ o2 instanceof Promise && (yield o2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][O] && n2.push(s2);
1740
1817
  }
1741
1818
  return n2.forEach((t3) => this.removeListener(e2, t3)), true;
1742
1819
  }
@@ -1744,21 +1821,21 @@ var telerikReportViewer = (function (exports) {
1744
1821
  });
1745
1822
  }
1746
1823
  emitSync(e2, ...t2) {
1747
- b(e2);
1824
+ V(e2);
1748
1825
  const i2 = this.listeners(e2), n2 = [];
1749
1826
  if (i2 && i2.length) {
1750
1827
  for (let r2 = 0; r2 < i2.length; r2++) {
1751
1828
  const s2 = i2[r2];
1752
- s2.apply(this, t2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][S] && n2.push(s2);
1829
+ s2.apply(this, t2), this._events[e2] && this._events[e2][r2] && "once" === this._events[e2][r2][O] && n2.push(s2);
1753
1830
  }
1754
1831
  return n2.forEach((t3) => this.removeListener(e2, t3)), true;
1755
1832
  }
1756
1833
  return false;
1757
1834
  }
1758
1835
  }
1759
- class A {
1836
+ class H {
1760
1837
  constructor() {
1761
- this.eventEmitter = new f(), this.awaitEventEmitter = new T();
1838
+ this.eventEmitter = new x(), this.awaitEventEmitter = new $();
1762
1839
  }
1763
1840
  on(e2, t2) {
1764
1841
  return this.eventEmitter.on(e2, t2), this;
@@ -1770,12 +1847,12 @@ var telerikReportViewer = (function (exports) {
1770
1847
  return this.awaitEventEmitter.on(e2, t2), this;
1771
1848
  }
1772
1849
  emitAsync(e2, ...t2) {
1773
- return r(this, void 0, void 0, function* () {
1850
+ return s(this, void 0, void 0, function* () {
1774
1851
  yield this.awaitEventEmitter.emit(e2, ...t2);
1775
1852
  });
1776
1853
  }
1777
1854
  }
1778
- class M {
1855
+ class B {
1779
1856
  hasPdfPlugin() {
1780
1857
  let e2 = ["AcroPDF.PDF.1", "PDF.PdfCtrl.6", "PDF.PdfCtrl.5"];
1781
1858
  for (let t2 of e2)
@@ -1788,7 +1865,7 @@ var telerikReportViewer = (function (exports) {
1788
1865
  return false;
1789
1866
  }
1790
1867
  }
1791
- class L {
1868
+ class q {
1792
1869
  hasPdfPlugin() {
1793
1870
  let e2 = /Firefox[/\s](\d+\.\d+)/.exec(navigator.userAgent);
1794
1871
  if (null !== e2 && e2.length > 1) {
@@ -1803,7 +1880,7 @@ var telerikReportViewer = (function (exports) {
1803
1880
  return false;
1804
1881
  }
1805
1882
  }
1806
- class x {
1883
+ class W {
1807
1884
  constructor(e2) {
1808
1885
  this.defaultPlugin = e2;
1809
1886
  }
@@ -1814,22 +1891,22 @@ var telerikReportViewer = (function (exports) {
1814
1891
  return false;
1815
1892
  }
1816
1893
  }
1817
- class D {
1894
+ class j {
1818
1895
  hasPdfPlugin() {
1819
1896
  return false;
1820
1897
  }
1821
1898
  }
1822
- function N() {
1899
+ function J() {
1823
1900
  return window.navigator && window.navigator.msSaveOrOpenBlob;
1824
1901
  }
1825
- class k {
1902
+ class G {
1826
1903
  constructor() {
1827
1904
  this.hasPdfPlugin = false, this.iframe = null, this.hasPdfPlugin = function() {
1828
1905
  if (window.navigator) {
1829
1906
  let e2 = window.navigator.userAgent.toLowerCase();
1830
- return e2.indexOf("msie") > -1 || e2.indexOf("mozilla") > -1 && e2.indexOf("trident") > -1 ? new M() : e2.indexOf("firefox") > -1 ? new L() : e2.indexOf("edg/") > -1 ? new x("Microsoft Edge PDF Plugin") : e2.indexOf("chrome") > -1 ? new x("Chrome PDF Viewer") : e2.indexOf("safari") > -1 ? new x("WebKit built-in PDF") : new D();
1907
+ return e2.indexOf("msie") > -1 || e2.indexOf("mozilla") > -1 && e2.indexOf("trident") > -1 ? new B() : e2.indexOf("firefox") > -1 ? new q() : e2.indexOf("edg/") > -1 ? new W("Microsoft Edge PDF Plugin") : e2.indexOf("chrome") > -1 ? new W("Chrome PDF Viewer") : e2.indexOf("safari") > -1 ? new W("WebKit built-in PDF") : new j();
1831
1908
  }
1832
- return new D();
1909
+ return new j();
1833
1910
  }().hasPdfPlugin(), this.isMobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
1834
1911
  }
1835
1912
  destroy() {
@@ -1847,13 +1924,13 @@ var telerikReportViewer = (function (exports) {
1847
1924
  }), function(e3) {
1848
1925
  let t3 = window.location, i3 = document.createElement("a");
1849
1926
  return i3.setAttribute("href", e3), "" == i3.host && (i3.href = i3.href), t3.hostname === i3.hostname && t3.protocol === i3.protocol && t3.port === i3.port;
1850
- }(e2) && N())
1927
+ }(e2) && J())
1851
1928
  return this.iframe.src = e2, void document.body.appendChild(this.iframe);
1852
1929
  let i2 = new XMLHttpRequest(), n2 = this;
1853
1930
  i2.open("GET", e2, true), i2.responseType = "arraybuffer", i2.onload = function() {
1854
1931
  if (200 === this.status) {
1855
1932
  let e3 = new Blob([this.response], { type: "application/pdf" });
1856
- N() ? window.navigator.msSaveOrOpenBlob(e3) : (t2 = (window.URL || window.webkitURL).createObjectURL(e3), null != n2.iframe && (n2.iframe.src = t2, document.body.appendChild(n2.iframe)));
1933
+ J() ? window.navigator.msSaveOrOpenBlob(e3) : (t2 = (window.URL || window.webkitURL).createObjectURL(e3), null != n2.iframe && (n2.iframe.src = t2, document.body.appendChild(n2.iframe)));
1857
1934
  } else
1858
1935
  console.log("Could not retrieve remote PDF document.");
1859
1936
  }, i2.send();
@@ -1868,10 +1945,10 @@ var telerikReportViewer = (function (exports) {
1868
1945
  return this.hasPdfPlugin;
1869
1946
  }
1870
1947
  }
1871
- function F(e2) {
1948
+ function Z(e2) {
1872
1949
  return 1e3 * e2;
1873
1950
  }
1874
- class O {
1951
+ class K {
1875
1952
  constructor(e2, t2, i2) {
1876
1953
  if (this.pingMilliseconds = 0, !e2)
1877
1954
  throw "Error";
@@ -1880,7 +1957,7 @@ var telerikReportViewer = (function (exports) {
1880
1957
  initSessionTimeout(e2) {
1881
1958
  if (!isFinite(e2))
1882
1959
  throw "sessionTimeoutSeconds must be finite";
1883
- this.pingMilliseconds = e2 <= 120 ? F(e2) / 2 : F(e2 - 60);
1960
+ this.pingMilliseconds = e2 <= 120 ? Z(e2) / 2 : Z(e2 - 60);
1884
1961
  }
1885
1962
  start() {
1886
1963
  this.pingMilliseconds <= 0 || (this.interval = setInterval(() => {
@@ -1891,33 +1968,33 @@ var telerikReportViewer = (function (exports) {
1891
1968
  this.interval && (clearInterval(this.interval), this.interval = null);
1892
1969
  }
1893
1970
  }
1894
- var V, z, _, $, U;
1895
- function H(e2, t2 = "", i2 = "") {
1971
+ var X, Y, Q, ee, te;
1972
+ function ie(e2, t2 = "", i2 = "") {
1896
1973
  let n2 = document.createElement(e2);
1897
- return t2 && (n2.id = t2), B(n2, i2), n2;
1974
+ return t2 && (n2.id = t2), ne(n2, i2), n2;
1898
1975
  }
1899
- function B(e2, t2) {
1976
+ function ne(e2, t2) {
1900
1977
  if ("" === t2 || !e2)
1901
1978
  return;
1902
1979
  let i2 = t2.trim().split(" ");
1903
1980
  i2 = i2.filter((e3) => "" !== e3.trim()), e2.classList.add(...i2);
1904
1981
  }
1905
- function q(e2, t2) {
1982
+ function re(e2, t2) {
1906
1983
  if ("" === t2 || !e2)
1907
1984
  return;
1908
1985
  let i2 = t2.trim().split(" ");
1909
1986
  i2 = i2.filter((e3) => "" !== e3.trim()), e2.classList.remove(...i2);
1910
1987
  }
1911
- function W(e2, t2) {
1988
+ function se(e2, t2) {
1912
1989
  return e2.classList.contains(t2);
1913
1990
  }
1914
- function j(e2) {
1991
+ function oe(e2) {
1915
1992
  return e2.offsetParent;
1916
1993
  }
1917
- function J(e2) {
1994
+ function ae(e2) {
1918
1995
  return parseInt(e2, 10) || 0;
1919
1996
  }
1920
- function G(e2, t2, i2, n2 = 0, r2 = 0) {
1997
+ function le(e2, t2, i2, n2 = 0, r2 = 0) {
1921
1998
  let s2 = `${n2 = n2 || 0} ${r2 = r2 || 0}`;
1922
1999
  !function(e3, t3) {
1923
2000
  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);
@@ -1925,11 +2002,11 @@ var telerikReportViewer = (function (exports) {
1925
2002
  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);
1926
2003
  }(e2, s2);
1927
2004
  }
1928
- function Z(e2) {
1929
- let t2 = H("div");
2005
+ function he(e2) {
2006
+ let t2 = ie("div");
1930
2007
  return t2.textContent = e2, t2.innerHTML;
1931
2008
  }
1932
- function K(e2) {
2009
+ function ce(e2) {
1933
2010
  if (e2 && e2.length < 6) {
1934
2011
  let t3 = 1, i2 = e2.split("");
1935
2012
  for ("#" !== i2[0] && (t3 = 0); t3 < i2.length; t3++)
@@ -1939,16 +2016,16 @@ var telerikReportViewer = (function (exports) {
1939
2016
  let t2 = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e2);
1940
2017
  return t2 ? parseInt(t2[1], 16) + ", " + parseInt(t2[2], 16) + ", " + parseInt(t2[3], 16) : null;
1941
2018
  }
1942
- function X(e2) {
2019
+ function de(e2) {
1943
2020
  return !!e2 && e2.indexOf(",") > -1;
1944
2021
  }
1945
- function Q(e2) {
2022
+ function ue(e2) {
1946
2023
  if ("transparent" === e2.toLowerCase())
1947
2024
  return 0;
1948
- if (!X(e2))
2025
+ if (!de(e2))
1949
2026
  return 1;
1950
2027
  if (-1 !== e2.indexOf("#")) {
1951
- let t3 = K(e2);
2028
+ let t3 = ce(e2);
1952
2029
  if (null === t3)
1953
2030
  return 1;
1954
2031
  e2 = t3;
@@ -1958,34 +2035,34 @@ var telerikReportViewer = (function (exports) {
1958
2035
  });
1959
2036
  return 4 === t2.length ? parseFloat((parseFloat(t2[3].replace(/[()]/g, "")) / 255).toFixed(2)) : 1;
1960
2037
  }
1961
- function Y(e2, t2) {
1962
- let i2 = H("div");
2038
+ function pe(e2, t2) {
2039
+ let i2 = ie("div");
1963
2040
  for (i2.innerHTML = t2; i2.childNodes.length; )
1964
2041
  e2.appendChild(i2.childNodes[0]);
1965
2042
  }
1966
- function ee(e2, t2) {
1967
- let i2 = H("div");
2043
+ function ge(e2, t2) {
2044
+ let i2 = ie("div");
1968
2045
  for (i2.innerHTML = t2; i2.childNodes.length; )
1969
2046
  e2.prepend(i2.childNodes[i2.childNodes.length - 1]);
1970
2047
  }
1971
- function te(e2, t2) {
1972
- return null === e2 ? null : e2.querySelector(t2);
2048
+ function me(e2, t2) {
2049
+ return e2 ? e2.querySelector(t2) : null;
1973
2050
  }
1974
- function ie(e2, t2) {
2051
+ function fe(e2, t2) {
1975
2052
  var i2;
1976
2053
  return e2 && e2.attributes && (null === (i2 = e2.attributes[t2]) || void 0 === i2 ? void 0 : i2.value) || "";
1977
2054
  }
1978
- function ne(e2) {
2055
+ function ve(e2) {
1979
2056
  let t2 = e2.parentElement;
1980
- return t2 ? t2.clientHeight != t2.scrollHeight ? t2 : ne(t2) : null;
2057
+ return t2 ? t2.clientHeight != t2.scrollHeight ? t2 : ve(t2) : null;
1981
2058
  }
1982
- function re(e2, t2 = 300) {
2059
+ function Pe(e2, t2 = 300) {
1983
2060
  let i2;
1984
2061
  return function(...n2) {
1985
2062
  clearTimeout(i2), i2 = setTimeout(() => e2.apply(this, n2), t2);
1986
2063
  };
1987
2064
  }
1988
- function se(e2, t2) {
2065
+ function Ce(e2, t2) {
1989
2066
  let i2 = null;
1990
2067
  return function(n2, ...r2) {
1991
2068
  i2 || (i2 = setTimeout(function() {
@@ -1993,24 +2070,24 @@ var telerikReportViewer = (function (exports) {
1993
2070
  }, t2));
1994
2071
  };
1995
2072
  }
1996
- function oe(e2, t2) {
2073
+ function ye(e2, t2) {
1997
2074
  return !!e2.responseJSON && e2.responseJSON.exceptionType === t2;
1998
2075
  }
1999
- function ae(e2) {
2000
- return oe(e2, "Telerik.Reporting.Services.Engine.InvalidClientException");
2076
+ function Se(e2) {
2077
+ return ye(e2, "Telerik.Reporting.Services.Engine.InvalidClientException");
2001
2078
  }
2002
- function le(e2) {
2003
- return oe(e2, "Telerik.Reporting.Services.Engine.InvalidParameterException");
2079
+ function Ie(e2) {
2080
+ return ye(e2, "Telerik.Reporting.Services.Engine.InvalidParameterException");
2004
2081
  }
2005
- function he(e2) {
2082
+ function be(e2) {
2006
2083
  return !!e2 && "internalservererror" === e2.split(" ").join("").toLowerCase();
2007
2084
  }
2008
- function ce(e2, ...t2) {
2085
+ function we(e2, ...t2) {
2009
2086
  return e2.replace(/{(\d+)}/g, (e3, i2) => t2[i2] || "");
2010
2087
  }
2011
- function de(e2, t2) {
2088
+ function Te(e2, t2) {
2012
2089
  let i2, n2;
2013
- if (ue(e2))
2090
+ if (Ae(e2))
2014
2091
  for (i2 = e2.length, n2 = 0; n2 < i2 && false !== t2.call(e2[n2], n2, e2[n2]); n2++)
2015
2092
  ;
2016
2093
  else
@@ -2019,55 +2096,40 @@ var telerikReportViewer = (function (exports) {
2019
2096
  break;
2020
2097
  return e2;
2021
2098
  }
2022
- function ue(e2) {
2099
+ function Ae(e2) {
2023
2100
  if (Array.isArray(e2))
2024
2101
  return true;
2025
2102
  return "number" == typeof (!!e2 && "length" in e2 && e2.length);
2026
2103
  }
2027
- function pe(e2) {
2104
+ function Re(e2) {
2028
2105
  return /^(\-|\+)?([0-9]+)$/.test(e2) ? Number(e2) : NaN;
2029
2106
  }
2030
- function ge(e2) {
2107
+ function Ee(e2) {
2031
2108
  return /^(\-|\+)?([0-9]+(\.[0-9]+)?)$/.test(e2) ? Number(e2) : NaN;
2032
2109
  }
2033
- function me(e2) {
2110
+ function Me(e2) {
2034
2111
  return e2 instanceof Date ? e2 : (/Z|[\+\-]\d\d:?\d\d/i.test(e2) || (e2 += "Z"), new Date(e2));
2035
2112
  }
2036
- e.PageMode = void 0, (V = e.PageMode || (e.PageMode = {}))[V.ContinuousScroll = 0] = "ContinuousScroll", V[V.SinglePage = 1] = "SinglePage", e.PrintMode = void 0, (z = e.PrintMode || (e.PrintMode = {}))[z.AutoSelect = 0] = "AutoSelect", z[z.ForcePDFPlugin = 1] = "ForcePDFPlugin", z[z.ForcePDFFile = 2] = "ForcePDFFile", e.ScaleMode = void 0, (_ = e.ScaleMode || (e.ScaleMode = {}))[_.FitPageWidth = 0] = "FitPageWidth", _[_.FitPage = 1] = "FitPage", _[_.Specific = 2] = "Specific", e.ServiceType = void 0, ($ = e.ServiceType || (e.ServiceType = {}))[$.REST = 0] = "REST", $[$.ReportServer = 1] = "ReportServer", e.ViewMode = void 0, (U = e.ViewMode || (e.ViewMode = {}))[U.Interactive = 0] = "Interactive", U[U.PrintPreview = 1] = "PrintPreview";
2037
- class fe {
2038
- constructor(e2) {
2039
- this.handled = false, this.deviceInfo = e2;
2040
- }
2041
- }
2042
- class ve {
2043
- constructor(e2) {
2044
- this.handled = false, this.url = e2;
2045
- }
2046
- }
2047
- class Pe {
2048
- constructor(e2, t2) {
2049
- this.handled = false, this.deviceInfo = e2, this.format = t2;
2050
- }
2051
- }
2052
- class ye {
2113
+ 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";
2114
+ class xe {
2053
2115
  constructor(e2, t2) {
2054
2116
  this.handled = false, this.deviceInfo = e2, this.format = t2;
2055
2117
  }
2056
2118
  }
2057
- class Ie extends o {
2119
+ class Le extends a {
2058
2120
  constructor(e2, t2, i2) {
2059
2121
  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;
2060
2122
  }
2061
2123
  }
2062
- const Ce = "System.Int64", Se = "System.Double", be = "System.String", we = "System.DateTime", Re = "System.Boolean";
2063
- var Ee = function() {
2124
+ const ke = "System.Int64", De = "System.Double", Ne = "System.String", Fe = "System.DateTime", Oe = "System.Boolean";
2125
+ var Ve = function() {
2064
2126
  var e2 = {};
2065
2127
  function t2(e3, t3, i3, n2) {
2066
2128
  var r2 = [].concat(t3).map(function(t4) {
2067
2129
  return function(e4, t5, i4) {
2068
2130
  if (e4.availableValues) {
2069
2131
  var n3 = false;
2070
- if (de(e4.availableValues, function(e5, r3) {
2132
+ if (Te(e4.availableValues, function(e5, r3) {
2071
2133
  return !(n3 = i4(t5, r3.value));
2072
2134
  }), !n3) {
2073
2135
  if (e4.allowNull && !t5)
@@ -2091,7 +2153,7 @@ var telerikReportViewer = (function (exports) {
2091
2153
  function i2(e3, t3) {
2092
2154
  return e3.allowNull && -1 != [null, "", void 0].indexOf(t3);
2093
2155
  }
2094
- return e2[be] = { validate: function(e3, i3) {
2156
+ return e2[Ne] = { validate: function(e3, i3) {
2095
2157
  return t2(e3, i3, function(t3) {
2096
2158
  if (!t3) {
2097
2159
  if (e3.allowNull)
@@ -2104,9 +2166,9 @@ var telerikReportViewer = (function (exports) {
2104
2166
  }, function(e4, t3) {
2105
2167
  return e4 == t3;
2106
2168
  });
2107
- } }, e2[Se] = { validate: function(e3, n2) {
2169
+ } }, e2[De] = { validate: function(e3, n2) {
2108
2170
  return t2(e3, n2, function(t3) {
2109
- var n3 = ge(t3);
2171
+ var n3 = Ee(t3);
2110
2172
  if (isNaN(n3)) {
2111
2173
  if (i2(e3, t3))
2112
2174
  return null;
@@ -2114,11 +2176,11 @@ var telerikReportViewer = (function (exports) {
2114
2176
  }
2115
2177
  return n3;
2116
2178
  }, function(e4, t3) {
2117
- return ge(e4) == ge(t3);
2179
+ return Ee(e4) == Ee(t3);
2118
2180
  });
2119
- } }, e2[Ce] = { validate: function(e3, n2) {
2181
+ } }, e2[ke] = { validate: function(e3, n2) {
2120
2182
  return t2(e3, n2, function(t3) {
2121
- var n3 = pe(t3);
2183
+ var n3 = Re(t3);
2122
2184
  if (isNaN(n3)) {
2123
2185
  if (i2(e3, t3))
2124
2186
  return null;
@@ -2126,19 +2188,19 @@ var telerikReportViewer = (function (exports) {
2126
2188
  }
2127
2189
  return n3;
2128
2190
  }, function(e4, t3) {
2129
- return pe(e4) == ge(t3);
2191
+ return Re(e4) == Ee(t3);
2130
2192
  });
2131
- } }, e2[we] = { validate: function(e3, i3) {
2193
+ } }, e2[Fe] = { validate: function(e3, i3) {
2132
2194
  return t2(e3, i3, function(t3) {
2133
2195
  if (e3.allowNull && (null === t3 || "" === t3 || void 0 === t3))
2134
2196
  return null;
2135
2197
  if (!isNaN(Date.parse(t3)))
2136
- return e3.availableValues ? t3 : me(t3);
2198
+ return e3.availableValues ? t3 : Me(t3);
2137
2199
  throw "Please input a valid date.";
2138
2200
  }, function(e4, t3) {
2139
- return e4 = me(e4), t3 = me(t3), e4.getTime() == t3.getTime();
2201
+ return e4 = Me(e4), t3 = Me(t3), e4.getTime() == t3.getTime();
2140
2202
  });
2141
- } }, e2[Re] = { validate: function(e3, n2) {
2203
+ } }, e2[Oe] = { validate: function(e3, n2) {
2142
2204
  return t2(e3, n2, function(t3) {
2143
2205
  if (-1 != ["true", "false"].indexOf(String(t3).toLowerCase()))
2144
2206
  return Boolean(t3);
@@ -2151,11 +2213,11 @@ var telerikReportViewer = (function (exports) {
2151
2213
  } }, { validate: function(t3, i3) {
2152
2214
  var n2 = e2[t3.type];
2153
2215
  if (!n2)
2154
- throw ce("Cannot validate parameter of type {type}.", t3);
2216
+ throw we("Cannot validate parameter of type {type}.", t3);
2155
2217
  return n2.validate(t3, i3);
2156
2218
  } };
2157
2219
  }();
2158
- function Te(e2, t2, i2) {
2220
+ function ze(e2, t2, i2) {
2159
2221
  try {
2160
2222
  const n2 = e2.availableValues.find((e3) => e3.value === t2);
2161
2223
  if (!n2)
@@ -2165,23 +2227,18 @@ var telerikReportViewer = (function (exports) {
2165
2227
  return;
2166
2228
  }
2167
2229
  }
2168
- function Ae(e2, t2, i2) {
2230
+ function _e(e2, t2, i2) {
2169
2231
  const n2 = [];
2170
2232
  for (let r2 in t2)
2171
- n2.push(Te(e2, t2[r2], i2));
2233
+ n2.push(ze(e2, t2[r2], i2));
2172
2234
  return n2;
2173
2235
  }
2174
- class Me {
2236
+ class Ue {
2175
2237
  constructor(e2 = "", t2 = {}) {
2176
2238
  this.report = e2, this.parameters = t2;
2177
2239
  }
2178
2240
  }
2179
- class Le {
2180
- constructor(e2, t2, i2, n2 = null) {
2181
- this.element = e2, this.text = t2, this.title = i2, this.eventArgs = n2;
2182
- }
2183
- }
2184
- class xe extends A {
2241
+ class $e extends H {
2185
2242
  constructor(e2) {
2186
2243
  super(), this.resizeObserver = null, this.element = e2, this.initResizeObserver();
2187
2244
  }
@@ -2189,7 +2246,7 @@ var telerikReportViewer = (function (exports) {
2189
2246
  this.destroyResizeObserver();
2190
2247
  }
2191
2248
  initResizeObserver() {
2192
- this.debounceResize = re(this.onResize.bind(this), 50), this.resizeObserver = new ResizeObserver(this.debounceResize), this.resizeObserver.observe(this.element);
2249
+ this.debounceResize = Pe(this.onResize.bind(this), 50), this.resizeObserver = new ResizeObserver(this.debounceResize), this.resizeObserver.observe(this.element);
2193
2250
  }
2194
2251
  destroyResizeObserver() {
2195
2252
  this.resizeObserver && this.resizeObserver.unobserve(this.element), this.resizeObserver = this.debounceResize = null;
@@ -2198,8 +2255,8 @@ var telerikReportViewer = (function (exports) {
2198
2255
  e2[0].target === this.element && this.emit("resize");
2199
2256
  }
2200
2257
  }
2201
- const De = '<div class="trv-report-page trv-skeleton-page trv-skeleton-{0}" style="{1}" data-page="{0}"><div class="trv-skeleton-wrapper" style="{2}"></div></div>';
2202
- class Ne {
2258
+ const He = '<div class="trv-report-page trv-skeleton-page trv-skeleton-{0}" style="{1}" data-page="{0}"><div class="trv-skeleton-wrapper" style="{2}"></div></div>';
2259
+ class Be {
2203
2260
  constructor(t2, i2, n2) {
2204
2261
  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));
2205
2262
  }
@@ -2221,10 +2278,10 @@ var telerikReportViewer = (function (exports) {
2221
2278
  return this.enabled;
2222
2279
  }
2223
2280
  enable() {
2224
- this.enabled = true, B(this.placeholder, "scrollable"), this.initEvents();
2281
+ this.enabled = true, ne(this.placeholder, "scrollable"), this.initEvents();
2225
2282
  }
2226
2283
  disable() {
2227
- this.enabled && (this.lastLoadedPage = null, this.pageWrapper.innerHTML = "", this.enabled = false, q(this.placeholder, "scrollable"), this.unbind());
2284
+ this.enabled && (this.lastLoadedPage = null, this.pageWrapper.innerHTML = "", this.enabled = false, re(this.placeholder, "scrollable"), this.unbind());
2228
2285
  }
2229
2286
  renderPage(e2) {
2230
2287
  let t2 = this.controller.getViewMode(), i2 = this.findPageElement(e2.pageNumber);
@@ -2239,7 +2296,7 @@ var telerikReportViewer = (function (exports) {
2239
2296
  this.enabled && this.currentPageNumber() > 0 && this.keepCurrentPageInToView();
2240
2297
  }
2241
2298
  setCurrentPage(e2) {
2242
- e2 !== this.currentPageNumber() && this.controller.setCurrentPageNumber(e2), this.controller.getPageCount() > 1 && (q(this.findElement(".k-state-default"), "k-state-default"), B(this.findPageElement(e2), "k-state-default")), this.loadNextPreviousPage(e2);
2299
+ 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);
2243
2300
  }
2244
2301
  updatePageArea(e2) {
2245
2302
  var t2;
@@ -2264,18 +2321,18 @@ var telerikReportViewer = (function (exports) {
2264
2321
  return this.controller.getCurrentPageNumber();
2265
2322
  }
2266
2323
  isSkeletonScreen(e2, t2) {
2267
- return !(!e2 && !(e2 = this.findPageElement(t2))) && W(e2, "trv-skeleton-" + t2);
2324
+ return !(!e2 && !(e2 = this.findPageElement(t2))) && se(e2, "trv-skeleton-" + t2);
2268
2325
  }
2269
2326
  addSkeletonScreen(e2, t2) {
2270
- let i2 = e2 + (t2 ? 1 : -1), n2 = this.findPageElement(i2), r2 = ie(n2, "style"), s2 = ie(null == n2 ? void 0 : n2.querySelector("sheet"), "style"), o2 = ce(De, e2, r2, s2);
2271
- t2 ? ee(this.pageWrapper, o2) : Y(this.pageWrapper, o2);
2327
+ let i2 = e2 + (t2 ? 1 : -1), n2 = this.findPageElement(i2), r2 = fe(n2, "style"), s2 = fe(null == n2 ? void 0 : n2.querySelector("sheet"), "style"), o2 = we(He, e2, r2, s2);
2328
+ t2 ? ge(this.pageWrapper, o2) : pe(this.pageWrapper, o2);
2272
2329
  }
2273
2330
  generateSkeletonScreens(e2) {
2274
2331
  var t2;
2275
- let i2 = "", n2 = this.findPageElement(1), r2 = ie(n2, "style"), s2 = ie(null == n2 ? void 0 : n2.querySelector("sheet"), "style"), o2 = null === (t2 = this.findLastElement(".trv-report-page")) || void 0 === t2 ? void 0 : t2.dataset.page, a2 = o2 ? parseInt(o2) + 1 : 1;
2332
+ let i2 = "", n2 = this.findPageElement(1), r2 = fe(n2, "style"), s2 = fe(null == n2 ? void 0 : n2.querySelector("sheet"), "style"), o2 = null === (t2 = this.findLastElement(".trv-report-page")) || void 0 === t2 ? void 0 : t2.dataset.page, a2 = o2 ? parseInt(o2) + 1 : 1;
2276
2333
  for (; a2 < e2; a2++)
2277
- i2 += ce(De, a2, r2, s2);
2278
- Y(this.pageWrapper, i2);
2334
+ i2 += we(He, a2, r2, s2);
2335
+ pe(this.pageWrapper, i2);
2279
2336
  }
2280
2337
  loadMorePages() {
2281
2338
  var e2;
@@ -2326,10 +2383,10 @@ var telerikReportViewer = (function (exports) {
2326
2383
  }
2327
2384
  }
2328
2385
  initEvents() {
2329
- this.onClickHandler = this.clickPage.bind(this), this.debounceScroll = re(() => {
2386
+ this.onClickHandler = this.clickPage.bind(this), this.debounceScroll = Pe(() => {
2330
2387
  let e2 = this.placeholder.querySelectorAll(".trv-report-page"), t2 = Math.round(this.pageContainer.scrollTop + this.pageContainer.offsetHeight);
2331
2388
  !this.scrollInProgress && e2.length && this.oldScrollTopPosition !== t2 && this.advanceCurrentPage(Array.from(e2));
2332
- }, 250), this.throttleScroll = se(() => {
2389
+ }, 250), this.throttleScroll = Ce(() => {
2333
2390
  let e2 = this.placeholder.querySelectorAll(".trv-report-page"), t2 = Math.round(this.pageContainer.scrollTop + this.pageContainer.offsetHeight);
2334
2391
  this.scrollInProgress || this.oldScrollTopPosition === t2 || (this.oldScrollTopPosition > t2 ? this.scrollUp(Array.from(e2)) : this.scrollDown(Array.from(e2), t2)), this.oldScrollTopPosition = t2;
2335
2392
  }, 250), this.pageContainer.addEventListener("click", this.onClickHandler), this.pageContainer.addEventListener("scroll", this.debounceScroll), this.pageContainer.addEventListener("scroll", this.throttleScroll);
@@ -2424,7 +2481,7 @@ var telerikReportViewer = (function (exports) {
2424
2481
  return i2 && i2.length ? i2[i2.length - 1] : null;
2425
2482
  }
2426
2483
  }
2427
- class ke {
2484
+ class qe {
2428
2485
  constructor() {
2429
2486
  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;
2430
2487
  }
@@ -2432,7 +2489,7 @@ var telerikReportViewer = (function (exports) {
2432
2489
  this.reset(e2), this.attachToScrollEvent();
2433
2490
  }
2434
2491
  reset(e2) {
2435
- this.placeholder = e2, this.scrollableContainer = te(e2, ".trv-page-container"), this.itemsInitialState = {}, this.xFrozenAreasBounds = {}, this.yFrozenAreasBounds = {}, this.currentlyFrozenContainer = { vertical: {}, horizontal: {} };
2492
+ this.placeholder = e2, this.scrollableContainer = me(e2, ".trv-page-container"), this.itemsInitialState = {}, this.xFrozenAreasBounds = {}, this.yFrozenAreasBounds = {}, this.currentlyFrozenContainer = { vertical: {}, horizontal: {} };
2436
2493
  }
2437
2494
  setScaleFactor(e2) {
2438
2495
  this.scaleFactor = e2;
@@ -2455,7 +2512,7 @@ var telerikReportViewer = (function (exports) {
2455
2512
  saveFreezeItemsInitialState(e2) {
2456
2513
  var t2, i2, n2;
2457
2514
  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;
2458
- this.itemsInitialState[e2] = {}, this.freezeBGColor[e2] = (null === (n2 = te(this.placeholder, "[data-id='" + e2 + "']")) || void 0 === n2 ? void 0 : n2.dataset.stickyBgColor) || "", r2.forEach((t3) => {
2515
+ 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) => {
2459
2516
  var i3;
2460
2517
  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;
2461
2518
  switch (n3) {
@@ -2477,7 +2534,7 @@ var telerikReportViewer = (function (exports) {
2477
2534
  }
2478
2535
  updateFreezeItemsOnScroll(e2, t2, i2) {
2479
2536
  var n2, r2;
2480
- let s2 = te(this.placeholder, "div[data-id='" + e2 + "']");
2537
+ let s2 = me(this.placeholder, "div[data-id='" + e2 + "']");
2481
2538
  if (!s2)
2482
2539
  return;
2483
2540
  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 + "']");
@@ -2502,7 +2559,7 @@ var telerikReportViewer = (function (exports) {
2502
2559
  "IMG" !== e2.tagName && (t2 && this.isFrozen(r2) && !i2 ? e2.style.backgroundColor = this.freezeBGColor[r2] : e2.style.backgroundColor = n2 ? this.freezeBGColor[r2] : "initial");
2503
2560
  }
2504
2561
  hasSetBgColor(e2) {
2505
- return Q(e2) > 0;
2562
+ return ue(e2) > 0;
2506
2563
  }
2507
2564
  isFrozen(e2) {
2508
2565
  return this.currentlyFrozenContainer.horizontal[e2] || this.currentlyFrozenContainer.vertical[e2];
@@ -2522,21 +2579,21 @@ var telerikReportViewer = (function (exports) {
2522
2579
  return e2.top > t2.scrollTop - n2 && e2.top < t2.scrollTop + n2 + i2.height;
2523
2580
  }
2524
2581
  }
2525
- const Fe = /{(\w+?)}/g, Oe = "trv-initial-image-styles";
2526
- function Ve(e2, t2) {
2582
+ const We = /{(\w+?)}/g, je = "trv-initial-image-styles";
2583
+ function Je(e2, t2) {
2527
2584
  let i2 = Array.isArray(t2);
2528
- return e2 ? e2.replace(Fe, function(e3, n2) {
2585
+ return e2 ? e2.replace(We, function(e3, n2) {
2529
2586
  return t2[i2 ? parseInt(n2) : n2];
2530
2587
  }) : "";
2531
2588
  }
2532
- const ze = "trv-search-dialog-shaded-result", _e = "trv-search-dialog-highlighted-result";
2533
- e.BookmarkNode = class {
2589
+ const Ge = "trv-search-dialog-shaded-result", Ze = "trv-search-dialog-highlighted-result";
2590
+ e.BasicAuth = I, e.BookmarkNode = class {
2534
2591
  constructor() {
2535
2592
  this.id = "", this.text = "", this.page = 0, this.items = null;
2536
2593
  }
2537
- }, e.ContentArea = class {
2594
+ }, e.ConnectionConfig = w, e.ConnectionConfigNoAuth = T, e.ConnectionConfigServerCredentials = R, e.ConnectionConfigServerNoAuth = A, e.ConnectionConfigServerToken = E, e.ContentArea = class {
2538
2595
  constructor(e2, t2, i2, n2 = {}) {
2539
- 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 Ne(this.placeholder, this, t2), this.resizeService = new xe(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("printStarted", this.onPrintStarted.bind(this)).on("printDocumentReady", this.onPrintDocumentReady.bind(this)).on("exportStarted", this.onExportStarted.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)), this.messages = i2, this.enableAccessibility = n2.enableAccessibility || false, this.initialPageAreaImageUrl = n2.initialPageAreaImageUrl || "";
2596
+ 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 $e(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("printStarted", this.onPrintStarted.bind(this)).on("printDocumentReady", this.onPrintDocumentReady.bind(this)).on("exportStarted", this.onExportStarted.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)), this.messages = i2, this.enableAccessibility = n2.enableAccessibility || false, this.initialPageAreaImageUrl = n2.initialPageAreaImageUrl || "";
2540
2597
  }
2541
2598
  destroy() {
2542
2599
  this.resizeService && this.resizeService.destroy();
@@ -2563,10 +2620,10 @@ var telerikReportViewer = (function (exports) {
2563
2620
  this.documentReady = true, this.invalidateCurrentlyLoadedPage();
2564
2621
  }
2565
2622
  onReportLoadProgress(e2) {
2566
- this.navigateWhenPageAvailable(this.navigateToPageOnDocReady, e2.pageCount), this.showNotification(Ve(this.messages.ReportViewer_LoadingReportPagesInProgress, [e2.pageCount]));
2623
+ this.navigateWhenPageAvailable(this.navigateToPageOnDocReady, e2.pageCount), this.showNotification(Je(this.messages.ReportViewer_LoadingReportPagesInProgress, [e2.pageCount]));
2567
2624
  }
2568
2625
  onReportLoadComplete(t2) {
2569
- 0 === t2.pageCount ? (this.clearPage(), this.showNotification(this.messages.ReportViewer_NoPageToDisplay)) : (this.navigateOnLoadComplete(this.navigateToPageOnDocReady, t2.pageCount), this.showNotification(Ve(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 ke(), this.controller.getViewMode() === e.ViewMode.Interactive && this.uiFreezeCoordinator.init(this.placeholder));
2626
+ 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));
2570
2627
  }
2571
2628
  onReportAutoRunOff() {
2572
2629
  this.disableParametersArea(false), this.showNotification(this.messages.ReportViewer_AutoRunDisabled || "Please validate the report parameter values and press Preview to generate the report.");
@@ -2660,14 +2717,14 @@ var telerikReportViewer = (function (exports) {
2660
2717
  }
2661
2718
  let e3 = 0, i3 = 0;
2662
2719
  for (; n2 && n2 !== this.pageContainer; ) {
2663
- if (W(n2, "trv-page-wrapper")) {
2720
+ if (se(n2, "trv-page-wrapper")) {
2664
2721
  let t3 = n2.dataset.pageScale;
2665
2722
  if ("string" == typeof t3) {
2666
2723
  let n3 = parseFloat(t3);
2667
2724
  e3 *= n3, i3 *= n3;
2668
2725
  }
2669
2726
  }
2670
- e3 += n2.offsetTop, i3 += n2.offsetLeft, n2 = j(n2);
2727
+ e3 += n2.offsetTop, i3 += n2.offsetLeft, n2 = oe(n2);
2671
2728
  }
2672
2729
  this.scrollManager.getEnabled() && t2 ? this.scrollManager.navigateToElement(e3, t2) : (this.pageContainer.scrollTop = e3, this.pageContainer.scrollLeft = i3);
2673
2730
  } else
@@ -2681,7 +2738,7 @@ var telerikReportViewer = (function (exports) {
2681
2738
  return !isNaN(t2) && t2 > -1 ? e2 : this.findNextFocusableElement(e2.nextElementSibling);
2682
2739
  }
2683
2740
  disablePagesArea(e2) {
2684
- e2 ? B(this.placeholder, "trv-loading") : q(this.placeholder, "trv-loading");
2741
+ e2 ? ne(this.placeholder, "trv-loading") : re(this.placeholder, "trv-loading");
2685
2742
  }
2686
2743
  disableParametersArea(e2) {
2687
2744
  var t2, i2;
@@ -2693,11 +2750,11 @@ var telerikReportViewer = (function (exports) {
2693
2750
  showNotification(e2 = "", t2 = "info") {
2694
2751
  this.notification.dataset.type = t2 || "info";
2695
2752
  let i2 = this.notification.querySelector(".k-notification-content, .trv-error-message"), n2 = null == e2 ? void 0 : e2.split(/\r?\n/);
2696
- i2.innerHTML = n2 && n2.length ? `${n2.join("<br>")}` : "Notification message not found.", B(this.notification, `k-notification-${t2}`), q(this.notification, "k-hidden");
2753
+ i2.innerHTML = n2 && n2.length ? `${n2.join("<br>")}` : "Notification message not found.", ne(this.notification, `k-notification-${t2}`), re(this.notification, "k-hidden");
2697
2754
  }
2698
2755
  hideNotification() {
2699
2756
  let e2 = String(this.notification.dataset.type);
2700
- delete this.notification.dataset.type, q(this.notification, `k-notification-${e2}`), B(this.notification, "k-hidden");
2757
+ delete this.notification.dataset.type, re(this.notification, `k-notification-${e2}`), ne(this.notification, "k-hidden");
2701
2758
  }
2702
2759
  pageNo(e2) {
2703
2760
  var t2;
@@ -2720,7 +2777,7 @@ var telerikReportViewer = (function (exports) {
2720
2777
  r2 = JSON.parse(n2.dataset.box);
2721
2778
  else {
2722
2779
  let e2 = getComputedStyle(n2), i3 = getComputedStyle(t2);
2723
- r2 = { padLeft: J(i3.marginLeft) + J(e2.borderLeftWidth) + J(e2.paddingLeft), padRight: J(i3.marginRight) + J(e2.borderRightWidth) + J(e2.paddingRight), padTop: J(i3.marginTop) + J(e2.borderTopWidth) + J(e2.paddingTop), padBottom: J(i3.marginBottom) + J(e2.borderBottomWidth) + J(e2.paddingBottom) }, n2.dataset.box = JSON.stringify(r2);
2780
+ 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);
2724
2781
  }
2725
2782
  let a2 = s2.offsetWidth, l2 = s2.offsetHeight;
2726
2783
  if (0 === a2) {
@@ -2729,7 +2786,7 @@ var telerikReportViewer = (function (exports) {
2729
2786
  }
2730
2787
  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;
2731
2788
  let p2 = this.controller.getScale();
2732
- 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 || G(s2, p2, p2), n2.style.height = p2 * l2 + "px", n2.style.width = p2 * a2 + "px", this.controller.setScale(p2, true);
2789
+ 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);
2733
2790
  }
2734
2791
  enableInteractivity() {
2735
2792
  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);
@@ -2752,24 +2809,24 @@ var telerikReportViewer = (function (exports) {
2752
2809
  onInteractiveItemClick(e2, t2) {
2753
2810
  var i2;
2754
2811
  let n2 = (null === (i2 = e2.dataset.reportingAction) || void 0 === i2 ? void 0 : i2.toString()) || "", r2 = this.getAction(n2);
2755
- r2 && (this.navigateToPageOnDocReady = this.getNavigateToPageOnDocReady(t2, r2.Type), this.controller.executeReportAction(new a(e2, r2))), t2.stopPropagation();
2812
+ r2 && (this.navigateToPageOnDocReady = this.getNavigateToPageOnDocReady(t2, r2.Type), this.controller.executeReportAction(new l(e2, r2))), t2.stopPropagation();
2756
2813
  }
2757
2814
  onInteractiveItemEnter(e2) {
2758
2815
  var t2;
2759
2816
  let i2 = (null === (t2 = e2.dataset.reportingAction) || void 0 === t2 ? void 0 : t2.toString()) || "", n2 = this.getAction(i2);
2760
- n2 && this.controller.reportActionEnter(new a(e2, n2));
2817
+ n2 && this.controller.reportActionEnter(new l(e2, n2));
2761
2818
  }
2762
2819
  onInteractiveItemLeave(e2) {
2763
2820
  var t2;
2764
2821
  let i2 = (null === (t2 = e2.dataset.reportingAction) || void 0 === t2 ? void 0 : t2.toString()) || "", n2 = this.getAction(i2);
2765
- n2 && this.controller.reportActionLeave(new a(e2, n2));
2822
+ n2 && this.controller.reportActionLeave(new l(e2, n2));
2766
2823
  }
2767
2824
  onToolTipItemEnter(e2, t2) {
2768
2825
  let i2 = e2.dataset.tooltipTitle, n2 = e2.dataset.tooltipText;
2769
- (i2 || n2) && this.controller.reportTooltipOpening(new Le(e2, n2 || "", i2 || "", t2));
2826
+ (i2 || n2) && this.controller.reportTooltipOpening(new f(e2, n2 || "", i2 || "", t2));
2770
2827
  }
2771
2828
  onToolTipItemLeave(e2) {
2772
- this.controller.reportTooltipClosing(new Le(e2, "", "", null));
2829
+ this.controller.reportTooltipClosing(new f(e2, "", "", null));
2773
2830
  }
2774
2831
  getNavigateToPageOnDocReady(e2, t2) {
2775
2832
  var i2;
@@ -2787,7 +2844,7 @@ var telerikReportViewer = (function (exports) {
2787
2844
  var t2;
2788
2845
  let i2 = "trv-" + this.controller.getClientId() + "-styles";
2789
2846
  null === (t2 = document.getElementById(i2)) || void 0 === t2 || t2.remove();
2790
- let n2 = H("style", i2);
2847
+ let n2 = ie("style", i2);
2791
2848
  n2.innerHTML = e2.pageStyles, document.head.appendChild(n2);
2792
2849
  }
2793
2850
  setPageContent(e2) {
@@ -2799,26 +2856,26 @@ var telerikReportViewer = (function (exports) {
2799
2856
  this.actions && this.actions.length ? this.actions = this.actions.concat(t2.pageActions) : this.actions = t2.pageActions, this.applyPlaceholderViewModeClass(), this.setPageDimensions(e2, t2.pageNumber);
2800
2857
  }
2801
2858
  renderPageElement(e2) {
2802
- let t2 = H("div");
2859
+ let t2 = ie("div");
2803
2860
  t2.innerHTML = e2.pageContent;
2804
2861
  let i2 = t2.querySelector("div.sheet");
2805
2862
  i2.style.margin = "0";
2806
- let n2 = H("div", "", "trv-report-page");
2807
- return n2.dataset.page = e2.pageNumber.toString(), n2.append(i2), n2.append(H("div", "", "k-overlay trv-overlay trv-page-overlay")), n2;
2863
+ let n2 = ie("div", "", "trv-report-page");
2864
+ return n2.dataset.page = e2.pageNumber.toString(), n2.append(i2), n2.append(ie("div", "", "k-overlay trv-overlay trv-page-overlay")), n2;
2808
2865
  }
2809
2866
  applyPlaceholderViewModeClass() {
2810
- this.controller.getViewMode() === e.ViewMode.Interactive ? (q(this.placeholder, "printpreview"), B(this.placeholder, "interactive")) : (q(this.placeholder, "interactive"), B(this.placeholder, "printpreview"));
2867
+ this.controller.getViewMode() === e.ViewMode.Interactive ? (re(this.placeholder, "printpreview"), ne(this.placeholder, "interactive")) : (re(this.placeholder, "interactive"), ne(this.placeholder, "printpreview"));
2811
2868
  }
2812
2869
  setPageAreaImage() {
2813
2870
  this.clearPageAreaImage();
2814
- let e2 = H("style", Oe);
2815
- e2.innerHTML = Ve('.trv-page-container {background: #ffffff url("{0}") no-repeat center 50px}', [this.initialPageAreaImageUrl]), document.head.appendChild(e2), this.showPageAreaImage = true;
2871
+ let e2 = ie("style", je);
2872
+ e2.innerHTML = Je('.trv-page-container {background: #ffffff url("{0}") no-repeat center 50px}', [this.initialPageAreaImageUrl]), document.head.appendChild(e2), this.showPageAreaImage = true;
2816
2873
  }
2817
2874
  clearPageAreaImage() {
2818
2875
  var e2;
2819
- null === (e2 = document.getElementById(Oe)) || void 0 === e2 || e2.remove();
2876
+ null === (e2 = document.getElementById(je)) || void 0 === e2 || e2.remove();
2820
2877
  }
2821
- }, e.DeviceInfo = s, e.DocumentInfo = class {
2878
+ }, e.CurrentPageChangedEventArgs = m, e.DeviceInfo = o, e.DocumentInfo = class {
2822
2879
  constructor() {
2823
2880
  this.documentReady = false, this.documentMapAvailable = false, this.containsFrozenContent = false, this.pageCount = 0, this.documentMapNodes = [], this.bookmarkNodes = [], this.renderingExtensions = [], this.autoRunEnabled = true;
2824
2881
  }
@@ -2826,29 +2883,29 @@ var telerikReportViewer = (function (exports) {
2826
2883
  constructor() {
2827
2884
  this.id = "", this.isExpanded = false, this.label = "", this.text = "", this.page = 0, this.items = [];
2828
2885
  }
2829
- }, e.EmailInfo = o, e.ExportDocumentReadyEventArgs = c, e.ExportStartEventArgs = h, e.KeepClientAliveSentinel = O, e.PageAction = class {
2886
+ }, e.EmailInfo = a, e.ExportDocumentReadyEventArgs = u, e.ExportStartEventArgs = c, e.ExportStartedEventArgs = d, e.KeepClientAliveSentinel = K, e.NoAuth = S, e.PageAction = class {
2830
2887
  constructor() {
2831
2888
  this.Id = "", this.ReportItemName = "", this.Type = "", this.Value = {};
2832
2889
  }
2833
- }, e.PageActionEventArgs = a, e.PageInfo = class {
2890
+ }, e.PageActionEventArgs = l, e.PageInfo = class {
2834
2891
  constructor() {
2835
2892
  this.pageNumber = 0, this.pageReady = false, this.pageStyles = "", this.pageContent = "", this.pageActions = [];
2836
2893
  }
2837
- }, e.PageTargetElement = l, e.ParameterInfo = class {
2894
+ }, e.PageTargetElement = h, e.ParameterInfo = class {
2838
2895
  constructor() {
2839
2896
  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 = "";
2840
2897
  }
2841
- }, e.ParameterValidators = Ee, e.ParameterValue = class {
2898
+ }, e.ParameterValidators = Ve, e.ParameterValue = class {
2842
2899
  constructor() {
2843
2900
  this.name = "", this.value = null;
2844
2901
  }
2845
- }, e.RenderingExtension = class {
2902
+ }, e.PersonalTokenAuth = b, e.PrintDocumentReadyEventArgs = g, e.PrintStartedEventArgs = p, e.RenderingExtension = class {
2846
2903
  constructor() {
2847
2904
  this.name = "", this.localizedName = "";
2848
2905
  }
2849
- }, e.ReportController = class extends A {
2906
+ }, e.ReportController = class extends H {
2850
2907
  constructor(e2, t2) {
2851
- 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 k(), this.serviceClient = e2, t2.authenticationToken && this.serviceClient.setAccessToken(t2.authenticationToken);
2908
+ 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);
2852
2909
  }
2853
2910
  get autoRunEnabled() {
2854
2911
  var e2 = !this.parameterValues || !("trv_AutoRun" in this.parameterValues) || this.parameterValues.trv_AutoRun;
@@ -2891,7 +2948,7 @@ var telerikReportViewer = (function (exports) {
2891
2948
  let n2 = {}, r2 = [], s2 = false;
2892
2949
  for (let t3 of e2)
2893
2950
  try {
2894
- let e3 = Ee.validate(t3, t3.value);
2951
+ let e3 = Ve.validate(t3, t3.value);
2895
2952
  n2[t3.id] = e3;
2896
2953
  } catch (e3) {
2897
2954
  s2 = true, r2.push(t3);
@@ -2901,7 +2958,7 @@ var telerikReportViewer = (function (exports) {
2901
2958
  hasInvalidParameter(e2) {
2902
2959
  for (const t2 of e2)
2903
2960
  try {
2904
- Ee.validate(t2, t2.value);
2961
+ Ve.validate(t2, t2.value);
2905
2962
  } catch (e3) {
2906
2963
  return true;
2907
2964
  }
@@ -2933,7 +2990,7 @@ var telerikReportViewer = (function (exports) {
2933
2990
  }
2934
2991
  getReportSource() {
2935
2992
  var e2;
2936
- return new Me(null === (e2 = this.options.reportSource) || void 0 === e2 ? void 0 : e2.report, this.parameterValues);
2993
+ return new Ue(null === (e2 = this.options.reportSource) || void 0 === e2 ? void 0 : e2.report, this.parameterValues);
2937
2994
  }
2938
2995
  setReportSource(e2) {
2939
2996
  this.options.reportSource = e2, this.setParameters(this.options.reportSource.parameters), this.emit("reportSourceChanged", e2);
@@ -2978,7 +3035,7 @@ var telerikReportViewer = (function (exports) {
2978
3035
  return this.currentPageNumber;
2979
3036
  }
2980
3037
  setCurrentPageNumber(e2) {
2981
- this.currentPageNumber !== e2 && (this.currentPageNumber = e2, this.emit("currentPageChanged", e2));
3038
+ this.currentPageNumber !== e2 && (this.currentPageNumber = e2, this.emit("currentPageChanged", new m(e2, this.documentId)));
2982
3039
  }
2983
3040
  getPageCount() {
2984
3041
  return this.pageCount;
@@ -2993,9 +3050,9 @@ var telerikReportViewer = (function (exports) {
2993
3050
  if ("navigateToReport" === t2.Type) {
2994
3051
  this.emit("serverActionStarted");
2995
3052
  let e3 = t2.Value, i2 = this.fixDataContractJsonSerializer(e3.ParameterValues);
2996
- this.respectAutoRun = true, this.emit("navigateToReport", { Report: e3.Report, Parameters: i2 });
3053
+ this.respectAutoRun = true, this.emit("navigateToReport", new Ue(e3.Report, i2));
2997
3054
  } else if ("navigateToBookmark" === t2.Type) {
2998
- let e3 = this.getPageForBookmark(this.bookmarkNodes, t2.Value), i2 = new l(t2.Value, "bookmark");
3055
+ let e3 = this.getPageForBookmark(this.bookmarkNodes, t2.Value), i2 = new h(t2.Value, "bookmark");
2999
3056
  this.navigateToPage(e3, i2);
3000
3057
  } else if ("sorting" === t2.Type)
3001
3058
  this.execServerAction(t2.Id);
@@ -3021,40 +3078,40 @@ var telerikReportViewer = (function (exports) {
3021
3078
  this.emit("toolTipClosing", e2);
3022
3079
  }
3023
3080
  printReport() {
3024
- return r(this, void 0, void 0, function* () {
3081
+ return s(this, void 0, void 0, function* () {
3025
3082
  let e2 = this.createDeviceInfo();
3026
3083
  e2.ImmediatePrint = true;
3027
- let t2 = new fe(e2);
3084
+ let t2 = new p(e2);
3028
3085
  this.emit("printStarted", t2), t2.handled || (this.setUIState("PrintInProgress", true), this.exportAsync("PDF", e2).then((e3) => {
3029
3086
  let t3 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, e3);
3030
3087
  t3 += `?${"response-content-disposition=" + (this.getCanUsePlugin() ? "inline" : "attachment")}`;
3031
- let i2 = new ve(t3);
3088
+ let i2 = new g(t3);
3032
3089
  this.emit("printDocumentReady", i2), this.setUIState("PrintInProgress", false), i2.handled || this.printManager.print(t3);
3033
3090
  }));
3034
3091
  });
3035
3092
  }
3036
3093
  exportReport(e2) {
3037
- return r(this, void 0, void 0, function* () {
3038
- let t2 = this.createDeviceInfo(), i2 = new h(t2, e2);
3094
+ return s(this, void 0, void 0, function* () {
3095
+ let t2 = this.createDeviceInfo(), i2 = new c(t2, e2);
3039
3096
  if (yield this.emitAsync("exportStart", i2), !i2.isCancelled) {
3040
- let n2 = new Pe(t2, e2);
3097
+ let n2 = new d(t2, e2);
3041
3098
  if (this.emit("exportStarted", n2), n2.handled)
3042
3099
  return;
3043
- this.setUIState("ExportInProgress", true), this.exportAsync(e2, i2.deviceInfo).then((t3) => r(this, void 0, void 0, function* () {
3100
+ this.setUIState("ExportInProgress", true), this.exportAsync(e2, i2.deviceInfo).then((t3) => s(this, void 0, void 0, function* () {
3044
3101
  let i3 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, t3);
3045
3102
  i3 += "?response-content-disposition=attachment";
3046
- let n3 = new c(i3, e2, "_self");
3103
+ let n3 = new u(i3, e2, "_self");
3047
3104
  yield this.emitAsync("exportEnd", n3), this.emit("exportDocumentReady", n3), this.setUIState("ExportInProgress", false), n3.handled || window.open(i3, n3.windowOpenTarget);
3048
3105
  }));
3049
3106
  }
3050
3107
  });
3051
3108
  }
3052
3109
  sendReport(e2) {
3053
- let t2 = this.createDeviceInfo(), i2 = new ye(t2, e2.format);
3110
+ let t2 = this.createDeviceInfo(), i2 = new xe(t2, e2.format);
3054
3111
  this.emit("sendEmailStarted", i2), i2.handled || this.exportAsync(e2.format, t2).then((i3) => {
3055
3112
  let n2 = this.serviceClient.getDocumentUrl(this.clientId, this.reportInstanceId, i3);
3056
3113
  n2 += "?response-content-disposition=attachment";
3057
- let r2 = new Ie(e2, t2, n2);
3114
+ let r2 = new Le(e2, t2, n2);
3058
3115
  this.emit("sendEmailDocumentReady", r2), r2.handled || this.sendDocumentAsync(i3, e2);
3059
3116
  });
3060
3117
  }
@@ -3063,9 +3120,9 @@ var telerikReportViewer = (function (exports) {
3063
3120
  }
3064
3121
  createAIThread() {
3065
3122
  return this.serviceClient.createAIThread(this.clientId, this.reportInstanceId, this.getReport(), this.parameterValues).catch((e2) => this.raiseError(e2.exceptionMessage, false)).then((e2) => {
3066
- if (this.threadId = (null == e2 ? void 0 : e2.threadId) || "", e2.consentMessage && (e2.consentMessage = n.default.sanitize(e2.consentMessage, { USE_PROFILES: { html: true } }), n.default.removed && n.default.removed.length > 0 && console.warn("The AI-Powered Insights consent message was sanitized as it contained potentially malicious HTML elements or attributes.")), e2.predefinedPrompts)
3123
+ if (this.threadId = (null == e2 ? void 0 : e2.threadId) || "", e2.consentMessage && (e2.consentMessage = r.default.sanitize(e2.consentMessage, { USE_PROFILES: { html: true } }), r.default.removed && r.default.removed.length > 0 && console.warn("The AI-Powered Insights consent message was sanitized as it contained potentially malicious HTML elements or attributes.")), e2.predefinedPrompts)
3067
3124
  for (let t2 = 0; t2 < e2.predefinedPrompts.length; t2++)
3068
- e2.predefinedPrompts[t2] = n.default.sanitize(e2.predefinedPrompts[t2], { USE_PROFILES: { html: true } }), n.default.removed && n.default.removed.length > 0 && console.warn("An AI-Powered Insights predefined prompt was sanitized as it contained potentially malicious HTML elements or attributes.");
3125
+ e2.predefinedPrompts[t2] = r.default.sanitize(e2.predefinedPrompts[t2], { USE_PROFILES: { html: true } }), r.default.removed && r.default.removed.length > 0 && console.warn("An AI-Powered Insights predefined prompt was sanitized as it contained potentially malicious HTML elements or attributes.");
3069
3126
  return e2;
3070
3127
  });
3071
3128
  }
@@ -3073,13 +3130,13 @@ var telerikReportViewer = (function (exports) {
3073
3130
  return this.serviceClient.getAIResponse(this.clientId, this.reportInstanceId, this.documentId, this.threadId, e2).then((e3) => e3 || "");
3074
3131
  }
3075
3132
  exportAsync(e2, t2) {
3076
- return this.initializeClient().then(this.registerInstance.bind(this)).then(() => this.registerDocumentAsync(e2, t2, false, this.documentId)).then((e3) => r(this, void 0, void 0, function* () {
3133
+ return this.initializeClient().then(this.registerInstance.bind(this)).then(() => this.registerDocumentAsync(e2, t2, false, this.documentId)).then((e3) => s(this, void 0, void 0, function* () {
3077
3134
  return yield this.getDocumentInfo(false, e3).catch((e4) => this.raiseError(e4)), e3;
3078
3135
  }));
3079
3136
  }
3080
3137
  sendDocumentAsync(e2, t2) {
3081
3138
  return this.serviceClient.sendDocument(this.clientId, this.reportInstanceId, e2, t2).catch((e3) => {
3082
- this.handleRequestError(e3, ce(this.options.messages.ReportViewer_ErrorSendingDocument, Z(this.getReport())));
3139
+ this.handleRequestError(e3, we(this.options.messages.ReportViewer_ErrorSendingDocument, he(this.getReport())));
3083
3140
  });
3084
3141
  }
3085
3142
  loadParameters(e2 = void 0) {
@@ -3092,7 +3149,7 @@ var telerikReportViewer = (function (exports) {
3092
3149
  }
3093
3150
  initializeAndStartSentinel() {
3094
3151
  this.options.keepClientAlive && this.clientId && this.serviceClient.getClientsSessionTimeoutSeconds().then((e2) => {
3095
- this.keepClientAliveSentinel = new O(this.serviceClient, this.clientId, e2), this.keepClientAliveSentinel.start();
3152
+ this.keepClientAliveSentinel = new K(this.serviceClient, this.clientId, e2), this.keepClientAliveSentinel.start();
3096
3153
  });
3097
3154
  }
3098
3155
  stopSentinel() {
@@ -3117,7 +3174,7 @@ var telerikReportViewer = (function (exports) {
3117
3174
  this.pageCount = 0, this.currentPageNumber = 0;
3118
3175
  }
3119
3176
  handleSearchRequestError(e2) {
3120
- if (!oe(e2, "System.ArgumentException"))
3177
+ if (!ye(e2, "System.ArgumentException"))
3121
3178
  throw this.handleRequestError(e2, "", true), null;
3122
3179
  this.throwPromiseError(e2);
3123
3180
  }
@@ -3125,21 +3182,23 @@ var telerikReportViewer = (function (exports) {
3125
3182
  throw e2.exceptionMessage ? e2.exceptionMessage : this.options.messages.ReportViewer_PromisesChainStopError;
3126
3183
  }
3127
3184
  handleRequestError(e2, t2 = "", i2 = false) {
3128
- ae(e2) && this.onClientExpired();
3129
- let n2 = he(e2.error) ? "" : e2.error, r2 = this.formatRequestError(e2, n2, t2);
3185
+ Se(e2) && this.onClientExpired();
3186
+ let n2 = be(e2.error) ? "" : e2.error, r2 = this.formatRequestError(e2, n2, t2);
3130
3187
  this.raiseError(r2), i2 || this.throwPromiseError(e2);
3131
3188
  }
3132
3189
  formatRequestError(e2, t2, i2) {
3133
3190
  let n2 = e2.responseJSON, r2 = "";
3134
3191
  if (n2) {
3135
- if (le(e2))
3192
+ if (401 == n2.status || 403 == n2.status)
3193
+ return this.options.messages.ReportViewer_ErrorUnauthorizedOrForbidden || "You don't have permission to access this report document.";
3194
+ if (Ie(e2))
3136
3195
  return this.options.messages.ReportViewer_MissingOrInvalidParameter;
3137
- r2 = Z(n2.message);
3138
- let t3 = Z(n2.exceptionMessage || n2.ExceptionMessage || n2.error_description);
3196
+ r2 = he(n2.message);
3197
+ let t3 = he(n2.exceptionMessage || n2.ExceptionMessage || n2.error_description);
3139
3198
  t3 && (r2 ? r2 += " " + t3 : r2 = t3);
3140
3199
  } else
3141
- r2 = Z(e2.responseText);
3142
- return (i2 || t2) && (r2 && (r2 = " " + r2), r2 = Z(i2 || t2) + r2), ae(e2) && (r2 += "<br />" + this.options.messages.ReportViewer_ClientExpired), r2;
3200
+ r2 = he(e2.responseText);
3201
+ return (i2 || t2) && (r2 && (r2 = " " + r2), r2 = he(i2 || t2) + r2), Se(e2) && (r2 += "<br />" + this.options.messages.ReportViewer_ClientExpired), r2;
3143
3202
  }
3144
3203
  raiseError(e2, t2 = true) {
3145
3204
  this.emit("error", e2, t2);
@@ -3149,17 +3208,17 @@ var telerikReportViewer = (function (exports) {
3149
3208
  }
3150
3209
  initializeClient() {
3151
3210
  return this.registerClientPromise || (this.registerClientPromise = this.serviceClient.registerClient().catch((e2) => {
3152
- const t2 = ce(this.options.messages.ReportViewer_ErrorServiceUrl, [this.serviceClient.getServiceUrl()]);
3211
+ const t2 = we(this.options.messages.ReportViewer_ErrorServiceUrl, [this.serviceClient.getServiceUrl()]);
3153
3212
  this.handleRequestError(e2, t2);
3154
3213
  }).then(this.setClientId.bind(this)).catch(this.clearClientId.bind(this))), this.registerClientPromise;
3155
3214
  }
3156
3215
  registerInstance() {
3157
3216
  return this.registerInstancePromise || (this.registerInstancePromise = this.serviceClient.createReportInstance(this.clientId, this.getReport(), this.parameterValues).then(this.setReportInstanceId.bind(this)).catch(this.clearReportInstanceId.bind(this))), this.registerInstancePromise;
3158
3217
  }
3159
- registerDocumentAsync(e2, t2, i2, n2 = "", s2 = "") {
3160
- return r(this, void 0, void 0, function* () {
3161
- return (yield this.serviceClient.createReportDocument(this.clientId, this.reportInstanceId, e2, t2, !i2, n2, s2).catch((t3) => {
3162
- this.handleRequestError(t3, ce(this.options.messages.ReportViewer_ErrorCreatingReportDocument, Z(this.getReport()), Z(e2)));
3218
+ registerDocumentAsync(e2, t2, i2, n2 = "", r2 = "") {
3219
+ return s(this, void 0, void 0, function* () {
3220
+ return (yield this.serviceClient.createReportDocument(this.clientId, this.reportInstanceId, e2, t2, !i2, n2, r2).catch((t3) => {
3221
+ this.handleRequestError(t3, we(this.options.messages.ReportViewer_ErrorCreatingReportDocument, he(this.getReport()), he(e2)));
3163
3222
  })) || "";
3164
3223
  });
3165
3224
  }
@@ -3181,7 +3240,7 @@ var telerikReportViewer = (function (exports) {
3181
3240
  return e2.ContentOnly = true, e2.UseSVG = true, e2;
3182
3241
  }
3183
3242
  createDeviceInfo() {
3184
- let e2 = new s();
3243
+ let e2 = new o();
3185
3244
  this.options.enableAccessibility && (e2.enableAccessibility = true, e2.contentTabIndex = this.getContentTabIndex());
3186
3245
  let t2 = this.getSearchInitiated(), i2 = this.options.searchMetadataOnDemand;
3187
3246
  return e2.enableSearch = !i2 || t2, e2;
@@ -3195,7 +3254,7 @@ var telerikReportViewer = (function (exports) {
3195
3254
  const e2 = {}, t2 = this.getProcessedParameterValues();
3196
3255
  for (let i2 in t2) {
3197
3256
  const n2 = t2[i2], r2 = this.parameterValues[i2];
3198
- n2 && n2.availableValues ? n2.multivalue ? e2[i2] = Ae(n2, r2, i2) : e2[i2] = Te(n2, r2, i2) : e2[i2] = r2;
3257
+ n2 && n2.availableValues ? n2.multivalue ? e2[i2] = _e(n2, r2, i2) : e2[i2] = ze(n2, r2, i2) : e2[i2] = r2;
3199
3258
  }
3200
3259
  return e2;
3201
3260
  }
@@ -3206,9 +3265,9 @@ var telerikReportViewer = (function (exports) {
3206
3265
  return this.processedParameterValues;
3207
3266
  }
3208
3267
  getDocumentInfo(t2, i2) {
3209
- return t2 && this.emit("beginLoadReport"), new Promise((n2, s2) => {
3210
- let o2 = () => r(this, void 0, void 0, function* () {
3211
- this.cancelLoad ? s2(this.options.messages.ReportViewer_RenderingCancelled) : (yield this.registerInstancePromise, this.serviceClient.getDocumentInfo(this.clientId, this.reportInstanceId, i2).then((i3) => {
3268
+ return t2 && this.emit("beginLoadReport"), new Promise((n2, r2) => {
3269
+ let o2 = () => s(this, void 0, void 0, function* () {
3270
+ this.cancelLoad ? r2(this.options.messages.ReportViewer_RenderingCancelled) : (yield this.registerInstancePromise, this.serviceClient.getDocumentInfo(this.clientId, this.reportInstanceId, i2).then((i3) => {
3212
3271
  i3 && i3.documentReady ? n2(i3) : (t2 && (this.getPageMode() === e.PageMode.ContinuousScroll && i3.pageCount > this.pageCount && this.emit("pageLoaded"), this.pageCount = i3.pageCount, this.emit("reportLoadProgress", i3)), window.setTimeout(o2, 500));
3213
3272
  }).catch((e2) => {
3214
3273
  "InvalidDocumentException" !== e2.responseJSON.exceptionType ? this.handleRequestError(e2, "", true) : console.warn("getDocumentInfo failed or was canceled by the user: " + e2.exceptionMessage);
@@ -3333,13 +3392,17 @@ ${e3.text} (${e3.id})`;
3333
3392
  constructor(e2, t2, i2) {
3334
3393
  this.url = e2, this.username = t2, this.password = i2;
3335
3394
  }
3336
- }, e.ReportSourceOptions = Me, e.RequestError = d, e.SearchInfo = class {
3395
+ }, e.ReportServerTokenSettings = class {
3396
+ constructor(e2, t2) {
3397
+ this.url = e2, this.getPersonalAccessToken = t2;
3398
+ }
3399
+ }, e.ReportSourceOptions = Ue, e.RequestError = v, e.SearchInfo = class {
3337
3400
  constructor() {
3338
3401
  this.searchToken = "", this.matchCase = false, this.matchWholeWord = false, this.useRegularExpressions = false;
3339
3402
  }
3340
- }, e.SearchManager = class extends A {
3403
+ }, e.SearchManager = class extends H {
3341
3404
  constructor(e2, t2) {
3342
- super(), this.searchResults = [], this.pendingHighlightItem = null, this.highlightedElements = [], this.currentHighlightedElement = null, this.isActive = false, this.controller = t2, this.pageContainer = te(e2, ".trv-page-container"), this.controller.on("applySearchColors", this.applySearchColors.bind(this)).on("pageReady", this.applySearchColors.bind(this));
3405
+ 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));
3343
3406
  }
3344
3407
  search(e2) {
3345
3408
  this.isActive = true, this.clearColoredItems(), this.searchResults = [], e2.searchToken && "" !== e2.searchToken ? this.controller.getSearchResults(e2).then(this.onSearchComplete.bind(this)) : this.onSearchComplete([]);
@@ -3348,15 +3411,15 @@ ${e3.text} (${e3.id})`;
3348
3411
  this.isActive = false, this.clearColoredItems(), this.searchResults = [];
3349
3412
  }
3350
3413
  highlightSearchItem(t2) {
3351
- t2 && (this.currentHighlightedElement && (q(this.currentHighlightedElement, _e), B(this.currentHighlightedElement, ze)), 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));
3414
+ t2 && (this.currentHighlightedElement && (re(this.currentHighlightedElement, Ze), ne(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));
3352
3415
  }
3353
3416
  navigateToPage(e2) {
3354
- this.controller.navigateToPage(e2.page, new l(e2.id, "search"));
3417
+ this.controller.navigateToPage(e2.page, new h(e2.id, "search"));
3355
3418
  }
3356
3419
  colorPageElements(e2) {
3357
3420
  e2 && 0 !== e2.length && (e2.forEach((e3) => {
3358
- let t2 = te(this.pageContainer, "[data-search-id=" + e3.id + "]");
3359
- t2 && (B(t2, ze), this.highlightedElements.push(t2));
3421
+ let t2 = me(this.pageContainer, "[data-search-id=" + e3.id + "]");
3422
+ t2 && (ne(t2, Ge), this.highlightedElements.push(t2));
3360
3423
  }), this.highlightItem(this.pendingHighlightItem));
3361
3424
  }
3362
3425
  highlightItem(e2) {
@@ -3364,13 +3427,13 @@ ${e3.text} (${e3.id})`;
3364
3427
  let t2 = this.highlightedElements.find(function(t3) {
3365
3428
  return t3.dataset.searchId === e2.id;
3366
3429
  });
3367
- t2 && (this.currentHighlightedElement = t2, q(t2, ze), B(t2, _e));
3430
+ t2 && (this.currentHighlightedElement = t2, re(t2, Ge), ne(t2, Ze));
3368
3431
  }
3369
3432
  }
3370
3433
  clearColoredItems() {
3371
3434
  this.highlightedElements && this.highlightedElements.length > 0 && this.highlightedElements.forEach((e2) => {
3372
- q(e2, ze);
3373
- }), this.currentHighlightedElement && q(this.currentHighlightedElement, _e), this.highlightedElements = [], this.currentHighlightedElement = null;
3435
+ re(e2, Ge);
3436
+ }), this.currentHighlightedElement && re(this.currentHighlightedElement, Ze), this.highlightedElements = [], this.currentHighlightedElement = null;
3374
3437
  }
3375
3438
  applySearchColors() {
3376
3439
  this.isActive && this.colorPageElements(this.searchResults);
@@ -3384,137 +3447,130 @@ ${e3.text} (${e3.id})`;
3384
3447
  }
3385
3448
  }, e.ServiceClient = class {
3386
3449
  constructor(e2) {
3387
- this.options = e2;
3450
+ this.connectionConfig = this.getConnectionConfig(e2), this.authStrategy = this.getAuthStrategy(this.connectionConfig);
3451
+ }
3452
+ getConnectionConfig(e2) {
3453
+ return e2.reportServer && e2.reportServer.url && e2.reportServer.username && e2.reportServer.password ? new R(e2.reportServer.url, e2.reportServer.username, e2.reportServer.password) : e2.reportServer && e2.reportServer.url && e2.reportServer.getPersonalAccessToken ? new E(e2.reportServer.url, e2.reportServer.getPersonalAccessToken) : e2.reportServer && e2.reportServer.url ? new A(e2.reportServer.url) : e2.serverPreview && e2.serverShareToken ? new E("", () => Promise.resolve(e2.serverShareToken)) : new T(e2.serviceUrl);
3454
+ }
3455
+ getAuthStrategy(t2) {
3456
+ switch (t2.authType) {
3457
+ case e.AuthType.None:
3458
+ return new S();
3459
+ case e.AuthType.Basic:
3460
+ return new I(t2);
3461
+ case e.AuthType.PersonalToken:
3462
+ return new b(t2);
3463
+ default:
3464
+ return new S();
3465
+ }
3388
3466
  }
3389
3467
  validateClientID(e2) {
3390
3468
  if (!e2)
3391
3469
  throw "Invalid ClientId";
3392
3470
  }
3393
3471
  authenticatedGet(e2) {
3394
- return this.login().then(function(t2) {
3395
- return function(e3, t3) {
3396
- return fetch(e3, { headers: u(t3) }).then(p);
3397
- }(e2, t2);
3398
- });
3472
+ 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) {
3473
+ return fetch(e3, { headers: P(t3) }).then(C);
3474
+ }(e2, t2.access_token || t2.accessToken));
3399
3475
  }
3400
3476
  authenticatedPost(e2, t2) {
3401
- return this.login().then(function(i2) {
3402
- return g(e2, t2, i2);
3403
- });
3477
+ return this.login().then((i2) => (null == i2 ? void 0 : i2.expiresAt) < Date.now() ? (this.loginPromise = this.authStrategy.authenticatePromise(true, i2.refreshToken), this.authenticatedPost(e2, t2)) : y(e2, t2, i2.access_token || i2.accessToken));
3404
3478
  }
3405
3479
  authenticatedDelete(e2) {
3406
- return this.login().then(function(t2) {
3407
- return function(e3, t3) {
3408
- return fetch(e3, { method: "DELETE", headers: u(t3) }).then(p);
3409
- }(e2, t2);
3410
- });
3480
+ return this.login().then((t2) => t2.expiresAt < Date.now() ? (this.loginPromise = this.authStrategy.authenticatePromise(true, t2.refreshToken), this.authenticatedDelete(e2)) : function(e3, t3) {
3481
+ return fetch(e3, { method: "DELETE", headers: P(t3) }).then(C);
3482
+ }(e2, t2.access_token || t2.accessToken));
3411
3483
  }
3412
3484
  login() {
3413
- return this.loginPromise || (this.loginPromise = this.createLoginPromise()), this.loginPromise;
3414
- }
3415
- createLoginPromise() {
3416
- let e2 = this.options.loginInfo;
3417
- if (e2 && e2.url && (e2.username || e2.password)) {
3418
- let t2 = `grant_type=password&username=${encodeURIComponent((null == e2 ? void 0 : e2.username) || "")}&password=${encodeURIComponent((null == e2 ? void 0 : e2.password) || "")}`;
3419
- return g(e2.url, t2, "", true).then((e3) => e3.access_token);
3420
- }
3421
- return Promise.resolve("");
3485
+ return this.loginPromise || (this.loginPromise = this.authStrategy.authenticatePromise(false, null)), this.loginPromise;
3422
3486
  }
3423
3487
  get(e2) {
3424
3488
  return fetch(e2).then((e3) => e3.text());
3425
3489
  }
3426
3490
  setAccessToken(e2) {
3427
- this.loginPromise = Promise.resolve(e2);
3491
+ this.loginPromise = Promise.resolve({ accessToken: e2 });
3428
3492
  }
3429
3493
  registerClient() {
3430
- return this.authenticatedPost(`${this.options.serviceUrl}/clients`, { timeStamp: Date.now() }).then((e2) => e2.clientId);
3494
+ return this.authenticatedPost(`${this.connectionConfig.serviceUrl}/clients`, { timeStamp: Date.now() }).then((e2) => e2.clientId);
3431
3495
  }
3432
3496
  unregisterClient(e2) {
3433
- return this.validateClientID(e2), this.authenticatedDelete(`${this.options.serviceUrl}/clients/${e2}`);
3497
+ return this.validateClientID(e2), this.authenticatedDelete(`${this.connectionConfig.serviceUrl}/clients/${e2}`);
3434
3498
  }
3435
3499
  getParameters(e2, t2, i2) {
3436
- return this.validateClientID(e2), this.authenticatedPost(`${this.options.serviceUrl}/clients/${e2}/parameters`, { report: t2, parameterValues: i2 || {} }).then((e3) => e3);
3500
+ return this.validateClientID(e2), this.authenticatedPost(`${this.connectionConfig.serviceUrl}/clients/${e2}/parameters`, { report: t2, parameterValues: i2 || {} }).then((e3) => e3);
3437
3501
  }
3438
3502
  createReportInstance(e2, t2, i2) {
3439
- return this.validateClientID(e2), this.authenticatedPost(`${this.options.serviceUrl}/clients/${e2}/instances`, { report: t2, parameterValues: i2 }).then((e3) => e3.instanceId);
3503
+ return this.validateClientID(e2), this.authenticatedPost(`${this.connectionConfig.serviceUrl}/clients/${e2}/instances`, { report: t2, parameterValues: i2 }).then((e3) => e3.instanceId);
3440
3504
  }
3441
3505
  deleteReportInstance(e2, t2) {
3442
- return this.validateClientID(e2), this.authenticatedDelete(`${this.options.serviceUrl}/clients/${e2}/instances/${t2}`);
3506
+ return this.validateClientID(e2), this.authenticatedDelete(`${this.connectionConfig.serviceUrl}/clients/${e2}/instances/${t2}`);
3443
3507
  }
3444
3508
  createReportDocument(e2, t2, i2, n2, r2, s2, o2) {
3445
- return this.validateClientID(e2), n2.BasePath = this.options.serviceUrl, this.authenticatedPost(`${this.options.serviceUrl}/clients/${e2}/instances/${t2}/documents`, { format: i2, deviceInfo: n2, useCache: r2, baseDocumentID: s2, actionID: o2 }).then((e3) => e3.documentId);
3509
+ return this.validateClientID(e2), n2.BasePath = this.connectionConfig.serviceUrl, this.authenticatedPost(`${this.connectionConfig.serviceUrl}/clients/${e2}/instances/${t2}/documents`, { format: i2, deviceInfo: n2, useCache: r2, baseDocumentID: s2, actionID: o2 }).then((e3) => e3.documentId);
3446
3510
  }
3447
3511
  sendDocument(e2, t2, i2, n2) {
3448
- return this.validateClientID(e2), this.authenticatedPost(`${this.options.serviceUrl}/clients/${e2}/instances/${t2}/documents/${i2}/send`, n2);
3512
+ return this.validateClientID(e2), this.authenticatedPost(`${this.connectionConfig.serviceUrl}/clients/${e2}/instances/${t2}/documents/${i2}/send`, n2);
3449
3513
  }
3450
3514
  deleteReportDocument(e2, t2, i2) {
3451
- return this.validateClientID(e2), this.authenticatedDelete(`${this.options.serviceUrl}/clients/${e2}/instances/${t2}/documents/${i2}`);
3515
+ return this.validateClientID(e2), this.authenticatedDelete(`${this.connectionConfig.serviceUrl}/clients/${e2}/instances/${t2}/documents/${i2}`);
3452
3516
  }
3453
3517
  getDocumentUrl(e2, t2, i2) {
3454
- return `${this.options.serviceUrl}/clients/${e2}/instances/${t2}/documents/${i2}`;
3518
+ return `${this.connectionConfig.serviceUrl}/clients/${e2}/instances/${t2}/documents/${i2}`;
3455
3519
  }
3456
3520
  getDocumentInfo(e2, t2, i2) {
3457
- return this.validateClientID(e2), this.authenticatedGet(`${this.options.serviceUrl}/clients/${e2}/instances/${t2}/documents/${i2}/info`).then((e3) => e3);
3521
+ return this.validateClientID(e2), this.authenticatedGet(`${this.connectionConfig.serviceUrl}/clients/${e2}/instances/${t2}/documents/${i2}/info`).then((e3) => e3);
3458
3522
  }
3459
3523
  getPage(e2, t2, i2, n2) {
3460
- return this.validateClientID(e2), this.authenticatedGet(`${this.options.serviceUrl}/clients/${e2}/instances/${t2}/documents/${i2}/pages/${n2}`).then((e3) => {
3524
+ return this.validateClientID(e2), this.authenticatedGet(`${this.connectionConfig.serviceUrl}/clients/${e2}/instances/${t2}/documents/${i2}/pages/${n2}`).then((e3) => {
3461
3525
  let t3 = e3;
3462
3526
  return t3.pageActions = JSON.parse(e3.pageActions), t3;
3463
3527
  });
3464
3528
  }
3465
3529
  getDocumentFormats() {
3466
- return this.authenticatedGet(`${this.options.serviceUrl}/formats`).then((e2) => e2 || []);
3530
+ return this.authenticatedGet(`${this.connectionConfig.serviceUrl}/formats`).then((e2) => e2 || []);
3467
3531
  }
3468
3532
  getServiceVersion() {
3469
- return this.authenticatedGet(`${this.options.serviceUrl}/version`).then((e2) => e2.toString());
3533
+ return this.authenticatedGet(`${this.connectionConfig.serviceUrl}/version`).then((e2) => e2.toString());
3470
3534
  }
3471
3535
  getServiceConfiguration() {
3472
- return this.authenticatedGet(`${this.options.serviceUrl}/configuration`).then((e2) => e2);
3536
+ return this.authenticatedGet(`${this.connectionConfig.serviceUrl}/configuration`).then((e2) => e2);
3473
3537
  }
3474
3538
  getResource(e2, t2, i2, n2) {
3475
- return this.validateClientID(e2), this.authenticatedGet(`${this.options.serviceUrl}/clients/${e2}/instances/${t2}/documents/${i2}/resources/${n2}`);
3539
+ return this.validateClientID(e2), this.authenticatedGet(`${this.connectionConfig.serviceUrl}/clients/${e2}/instances/${t2}/documents/${i2}/resources/${n2}`);
3476
3540
  }
3477
3541
  getSearchResults(e2, t2, i2, n2) {
3478
- return this.validateClientID(e2), this.authenticatedPost(`${this.options.serviceUrl}/clients/${e2}/instances/${t2}/documents/${i2}/search`, n2).then(function(e3) {
3542
+ return this.validateClientID(e2), this.authenticatedPost(`${this.connectionConfig.serviceUrl}/clients/${e2}/instances/${t2}/documents/${i2}/search`, n2).then(function(e3) {
3479
3543
  return e3 || [];
3480
3544
  });
3481
3545
  }
3482
3546
  createAIThread(e2, t2, i2, n2) {
3483
- return this.validateClientID(e2), this.authenticatedPost(`${this.options.serviceUrl}/clients/${e2}/instances/${t2}/ai`, { report: i2, parameterValues: n2 }).then((e3) => e3);
3547
+ return this.validateClientID(e2), this.authenticatedPost(`${this.connectionConfig.serviceUrl}/clients/${e2}/instances/${t2}/ai`, { report: i2, parameterValues: n2 }).then((e3) => e3);
3484
3548
  }
3485
3549
  getAIResponse(e2, t2, i2, n2, r2) {
3486
- return this.validateClientID(e2), this.authenticatedPost(`${this.options.serviceUrl}/clients/${e2}/instances/${t2}/documents/${i2}/ai/${n2}/query`, { query: r2 }).then(function(e3) {
3550
+ return this.validateClientID(e2), this.authenticatedPost(`${this.connectionConfig.serviceUrl}/clients/${e2}/instances/${t2}/documents/${i2}/ai/${n2}/query`, { query: r2 }).then(function(e3) {
3487
3551
  return e3 || "";
3488
3552
  });
3489
3553
  }
3490
3554
  getServiceUrl() {
3491
- return this.options.serviceUrl;
3555
+ return this.connectionConfig.serviceUrl;
3492
3556
  }
3493
3557
  keepClientAlive(e2) {
3494
- return this.authenticatedPost(`${this.options.serviceUrl}/clients/keepAlive/${e2}`, {});
3558
+ return this.authenticatedPost(`${this.connectionConfig.serviceUrl}/clients/keepAlive/${e2}`, {});
3495
3559
  }
3496
3560
  getClientsSessionTimeoutSeconds() {
3497
- return this.authenticatedGet(`${this.options.serviceUrl}/clients/sessionTimeout`).then(function(e2) {
3561
+ return this.authenticatedGet(`${this.connectionConfig.serviceUrl}/clients/sessionTimeout`).then(function(e2) {
3498
3562
  return e2.clientSessionTimeout;
3499
3563
  });
3500
3564
  }
3501
- }, e.ServiceClientLoginInfo = class {
3502
- constructor(e2, t2, i2) {
3503
- this.url = e2, this.username = t2, this.password = i2;
3504
- }
3505
- }, e.ServiceClientOptions = class {
3506
- constructor(e2, t2 = null) {
3507
- this.serviceUrl = "", this.serviceUrl = e2.replace(/\/+$/, ""), this.loginInfo = t2;
3508
- }
3509
- }, e.addClass = B, e.appendHtml = Y, e.createElement = H, e.debounce = re, e.each = de, e.escapeHtml = Z, e.findElement = te, e.getColorAlphaValue = Q, e.getElementAttributeValue = ie, e.getElementScrollParent = ne, e.getOffsetParent = j, e.hasClass = W, e.isArray = ue, e.isExceptionOfType = oe, e.isInternalServerError = he, e.isInvalidClientException = ae, e.isInvalidParameterException = le, e.isRgbColor = X, e.keepElementInView = function(e2) {
3565
+ }, e.TooltipEventArgs = f, e.addClass = ne, e.appendHtml = pe, e.createElement = ie, e.debounce = Pe, e.each = Te, e.escapeHtml = he, e.findElement = me, e.getColorAlphaValue = ue, e.getElementAttributeValue = fe, e.getElementScrollParent = ve, e.getOffsetParent = oe, e.hasClass = se, e.isArray = Ae, e.isExceptionOfType = ye, e.isInternalServerError = be, e.isInvalidClientException = Se, e.isInvalidParameterException = Ie, e.isRgbColor = de, e.keepElementInView = function(e2) {
3510
3566
  if (!e2)
3511
3567
  return;
3512
- let t2 = ne(e2);
3568
+ let t2 = ve(e2);
3513
3569
  if (!t2)
3514
3570
  return;
3515
3571
  let i2 = e2.offsetTop, n2 = i2 + e2.offsetHeight, r2 = t2.scrollTop + t2.offsetHeight;
3516
3572
  i2 < t2.scrollTop ? t2.scrollTop = i2 : n2 > r2 && (t2.scrollTop += n2 - r2);
3517
- }, e.parseToLocalDate = me, e.prependHtml = ee, e.removeClass = q, e.reportSourcesAreEqual = function(e2) {
3573
+ }, e.parseToLocalDate = Me, e.prependHtml = ge, e.removeClass = re, e.reportSourcesAreEqual = function(e2) {
3518
3574
  const t2 = e2.firstReportSource, i2 = e2.secondReportSource;
3519
3575
  if (t2 && i2 && t2.report === i2.report) {
3520
3576
  let e3 = "";
@@ -3523,7 +3579,7 @@ ${e3.text} (${e3.id})`;
3523
3579
  return i2.parameters && (n2 = JSON.stringify(i2.parameters)), e3 === n2;
3524
3580
  }
3525
3581
  return false;
3526
- }, e.scaleElement = G, e.stringFormat = ce, e.throttle = se, e.toPixel = J, e.toRgbColor = K, e.tryParseFloat = ge, e.tryParseInt = pe, Object.defineProperty(e, "__esModule", { value: true });
3582
+ }, e.scaleElement = le, e.stringFormat = we, e.throttle = Ce, e.toPixel = ae, e.toRgbColor = ce, e.tryParseFloat = Ee, e.tryParseInt = Re, Object.defineProperty(e, "__esModule", { value: true });
3527
3583
  });
3528
3584
  })(dist, dist.exports);
3529
3585
  var distExports = dist.exports;
@@ -4503,6 +4559,7 @@ ${e3.text} (${e3.id})`;
4503
4559
  errorCreatingReportInstance: "Error creating report instance (Report = '{0}').",
4504
4560
  errorCreatingReportDocument: "Error creating report document (Report = '{0}'; Format = '{1}').",
4505
4561
  unableToGetReportParameters: "Unable to get report parameters.",
4562
+ errorUnauthorizedOrForbidden: "You don't have permission to access this report document.",
4506
4563
  errorObtainingAuthenticationToken: "Error obtaining authentication token.",
4507
4564
  clientExpired: "Click 'Refresh' to restore client session.",
4508
4565
  promisesChainStopError: "Error shown. Throwing promises chain stop error.",
@@ -8819,14 +8876,12 @@ ${e3.text} (${e3.id})`;
8819
8876
  var history = {};
8820
8877
  var commands = {};
8821
8878
  var viewer = {};
8822
- var serviceClientOptions = {};
8823
- var reportServerUrl = "";
8824
8879
  options.viewerSelector = "reportViewer-" + generateGuidString();
8825
8880
  $placeholder.attr("data-selector", options.viewerSelector);
8826
8881
  if (!validateOptions(options)) {
8827
8882
  return;
8828
8883
  }
8829
- var version = "19.2.25.924";
8884
+ var version = "19.3.25.1111";
8830
8885
  options = $.extend({}, getDefaultOptions(svcApiUrl, version), options);
8831
8886
  settings = new ReportViewerSettings(
8832
8887
  persistanceKey,
@@ -8846,20 +8901,7 @@ ${e3.text} (${e3.id})`;
8846
8901
  }
8847
8902
  );
8848
8903
  notificationService = new NotificationService();
8849
- if (options.reportServer) {
8850
- reportServerUrl = rTrim(options.reportServer.url, "\\/");
8851
- var serviceUrl = reportServerUrl + "/api/reports";
8852
- var tokenUrl = reportServerUrl + "/Token";
8853
- var loginInfo = new distExports.ServiceClientLoginInfo(
8854
- tokenUrl,
8855
- options.reportServer.username,
8856
- options.reportServer.password
8857
- );
8858
- serviceClientOptions = new distExports.ServiceClientOptions(serviceUrl, loginInfo);
8859
- } else {
8860
- serviceClientOptions = new distExports.ServiceClientOptions(options.serviceUrl);
8861
- }
8862
- client = new distExports.ServiceClient(serviceClientOptions);
8904
+ client = new distExports.ServiceClient(options);
8863
8905
  controller = new distExports.ReportController(
8864
8906
  client,
8865
8907
  new distExports.ReportControllerOptions(
@@ -8892,7 +8934,25 @@ ${e3.text} (${e3.id})`;
8892
8934
  commands
8893
8935
  });
8894
8936
  viewer = {
8937
+ /**
8938
+ * String resources used by the viewer for localization and UI text.
8939
+ * Contains key-value pairs for all UI strings, supporting localization and customization.
8940
+ * @type {Object.<string, string>}
8941
+ */
8895
8942
  stringResources,
8943
+ /**
8944
+ * Refreshes the currently loaded report.
8945
+ * Forces the viewer to reload the report from the server. Optionally ignores the cache.
8946
+ * @function
8947
+ * @param {boolean} [ignoreCache=true] - If true, the report is reloaded from the server, bypassing any cached data.
8948
+ * @returns {ReportViewerInstance} Returns the viewer instance for chaining.
8949
+ * @example // Refresh the report, ignoring cache (default)
8950
+ * var viewer = $("#reportViewer1").data("telerik_ReportViewer");
8951
+ * viewer.refreshReport();
8952
+ * @example // Refresh the report, using cache if available
8953
+ * var viewer = $("#reportViewer1").data("telerik_ReportViewer");
8954
+ * viewer.refreshReport(false);
8955
+ */
8896
8956
  refreshReport: (ignoreCache) => {
8897
8957
  if (arguments.length === 0) {
8898
8958
  ignoreCache = true;
@@ -8900,6 +8960,26 @@ ${e3.text} (${e3.id})`;
8900
8960
  controller.refreshReport(ignoreCache, "", true);
8901
8961
  return viewer;
8902
8962
  },
8963
+ /**
8964
+ * Gets or sets the report source for the viewer.
8965
+ * When called with an argument, sets the report source
8966
+ * When called without arguments, gets the current report source - report and parameters. The viewer's report source is updated dynamically as the users navigate between reports and change parameter values.
8967
+ * @function
8968
+ * @param {ReportSource|null} [rs] - The report source object to set, or null to clear. If omitted, acts as a getter.
8969
+ * @returns {ReportSource} Returns the viewer instance for chaining when setting, or the current report source when getting.
8970
+ * @example // Get the current report source
8971
+ * var viewer = $("#reportViewer1").data("telerik_ReportViewer");
8972
+ * var currentSource = viewer.reportSource();
8973
+ * @example // Set a new report source
8974
+ * var viewer = $("#reportViewer1").data("telerik_ReportViewer");
8975
+ * viewer.reportSource({
8976
+ * report: "MyReport",
8977
+ * parameters: { StartDate: "2024-01-01", EndDate: "2024-12-31" }
8978
+ * });
8979
+ * @example // Clear the report source
8980
+ * var viewer = $("#reportViewer1").data("telerik_ReportViewer");
8981
+ * viewer.reportSource(null);
8982
+ */
8903
8983
  reportSource: (rs) => {
8904
8984
  if (rs || rs === null) {
8905
8985
  controller.setReportSource(rs);
@@ -8908,10 +8988,31 @@ ${e3.text} (${e3.id})`;
8908
8988
  }
8909
8989
  return controller.getReportSource();
8910
8990
  },
8991
+ /**
8992
+ * Clears the current reportSource from the viewer's internal state and its persisted session in the browser.
8993
+ * Called in order to force the viewer to respect the newly set reportSource on a server postback.
8994
+ * @function
8995
+ * @returns {ReportViewerInstance} Returns the viewer instance for chaining.
8996
+ * @example // Clear the report source and force the viewer to respect a new reportSource on postback
8997
+ * var viewer = $("#reportViewer1").data("telerik_ReportViewer");
8998
+ * viewer.clearReportSource();
8999
+ */
8911
9000
  clearReportSource: () => {
8912
9001
  controller.setReportSource(new distExports.ReportSourceOptions());
8913
9002
  return viewer;
8914
9003
  },
9004
+ /**
9005
+ * Gets or sets the view mode of the viewer (e.g., Interactive or Print Preview).
9006
+ * @function
9007
+ * @param {ViewModes} [vm] - The view mode to set. If omitted, returns the current view mode.
9008
+ * @returns {string} Returns the viewer instance for chaining when setting, or the current view mode string when getting.
9009
+ * @example // Get the current view mode
9010
+ * var viewer = $("#reportViewer1").data("telerik_ReportViewer");
9011
+ * var mode = viewer.viewMode();
9012
+ * @example // Set the view mode to Print Preview
9013
+ * var viewer = $("#reportViewer1").data("telerik_ReportViewer");
9014
+ * viewer.viewMode(telerikReportViewer.ViewModes.PRINT_PREVIEW);
9015
+ */
8915
9016
  viewMode: (vm) => {
8916
9017
  if (vm) {
8917
9018
  controller.setViewMode(viewModeMap[vm]);
@@ -8919,6 +9020,18 @@ ${e3.text} (${e3.id})`;
8919
9020
  }
8920
9021
  return viewModeReverseMap[controller.getViewMode()];
8921
9022
  },
9023
+ /**
9024
+ * Gets or sets the page mode (e.g., Single Page or Continuous Scroll).
9025
+ * @function
9026
+ * @param {PageModes} [psm] - The page mode to set. If omitted, returns the current page mode.
9027
+ * @returns {string} Returns the viewer instance for chaining when setting, or the current page mode string when getting.
9028
+ * @example // Get the current page mode
9029
+ * var viewer = $("#reportViewer1").data("telerik_ReportViewer");
9030
+ * var pageMode = viewer.pageMode();
9031
+ * @example // Set the page mode to Single Page
9032
+ * var viewer = $("#reportViewer1").data("telerik_ReportViewer");
9033
+ * viewer.pageMode(telerikReportViewer.PageModes.SINGLE_PAGE);
9034
+ */
8922
9035
  pageMode: (psm) => {
8923
9036
  if (psm) {
8924
9037
  controller.setPageMode(pageModeMap[psm]);
@@ -8926,6 +9039,18 @@ ${e3.text} (${e3.id})`;
8926
9039
  }
8927
9040
  return pageModeReverseMap[controller.getPageMode()];
8928
9041
  },
9042
+ /**
9043
+ * Gets or sets the print mode for the viewer.
9044
+ * @function
9045
+ * @param {PrintModes} [pm] - The print mode to set. If omitted, returns the current print mode.
9046
+ * @returns {string} Returns the viewer instance for chaining when setting, or the current print mode string when getting.
9047
+ * @example // Get the current print mode
9048
+ * var viewer = $("#reportViewer1").data("telerik_ReportViewer");
9049
+ * var printMode = viewer.printMode();
9050
+ * @example // Set the print mode to Force PDF File
9051
+ * var viewer = $("#reportViewer1").data("telerik_ReportViewer");
9052
+ * viewer.printMode(telerikReportViewer.PrintModes.FORCE_PDF_FILE);
9053
+ */
8929
9054
  printMode: (pm) => {
8930
9055
  if (pm) {
8931
9056
  controller.setPrintMode(printModeMap[pm]);
@@ -8933,6 +9058,20 @@ ${e3.text} (${e3.id})`;
8933
9058
  }
8934
9059
  return printModeReverseMap[controller.getPrintMode()];
8935
9060
  },
9061
+ /**
9062
+ * Gets or sets the scale and scale mode for the viewer.
9063
+ * @function
9064
+ * @param {Object} [args] - The scale settings to apply. Should contain 'scale' (number) and 'scaleMode' (string).
9065
+ * @param {number} [args.scale] - The zoom scale (e.g., 1.0 for 100%).
9066
+ * @param {ScaleModes} [args.scaleMode] - The scale mode (e.g., 'FIT_PAGE', 'FIT_PAGE_WIDTH', 'SPECIFIC').
9067
+ * @returns {Object} Returns the viewer instance for chaining when setting, or an object with current scale and scaleMode when getting.
9068
+ * @example // Get the current scale and scale mode
9069
+ * var viewer = $("#reportViewer1").data("telerik_ReportViewer");
9070
+ * var scaleInfo = viewer.scale();
9071
+ * @example // Set scale to 1.2 and scale mode to FIT_PAGE_WIDTH
9072
+ * var viewer = $("#reportViewer1").data("telerik_ReportViewer");
9073
+ * viewer.scale({ scale: 1.2, scaleMode: telerikReportViewer.ScaleModes.FIT_PAGE_WIDTH });
9074
+ */
8936
9075
  scale: (args) => {
8937
9076
  if (args) {
8938
9077
  controller.setScale(args.scale);
@@ -8944,33 +9083,135 @@ ${e3.text} (${e3.id})`;
8944
9083
  scaleMode: scaleModeReverseMap[controller.getScaleMode()]
8945
9084
  };
8946
9085
  },
9086
+ /**
9087
+ * Gets the viewer’s current page that is displayed.
9088
+ * @function
9089
+ * @returns {number} The current page number (1-based).
9090
+ * @example // Get the current page number
9091
+ * var viewer = $("#reportViewer1").data("telerik_ReportViewer");
9092
+ * var page = viewer.currentPage();
9093
+ */
8947
9094
  currentPage: () => {
8948
9095
  return controller.getCurrentPageNumber();
8949
9096
  },
9097
+ /**
9098
+ * Gets the total page count of the viewer’s currently displayed report.
9099
+ * @function
9100
+ * @returns {number} The total page count.
9101
+ * @example // Get the total number of pages in the current report
9102
+ * var viewer = $("#reportViewer1").data("telerik_ReportViewer");
9103
+ * var totalPages = viewer.pageCount();
9104
+ */
8950
9105
  pageCount: () => {
8951
9106
  return controller.getPageCount();
8952
9107
  },
9108
+ /**
9109
+ * Shows or hides the parameters area in the viewer UI.
9110
+ * @function
9111
+ * @param {boolean} visible - True to show, false to hide the parameters area.
9112
+ * @returns {void}
9113
+ * @example // Show the parameters area
9114
+ * var viewer = $("#reportViewer1").data("telerik_ReportViewer");
9115
+ * viewer.parametersAreaVisible(true);
9116
+ * @example // Hide the parameters area
9117
+ * var viewer = $("#reportViewer1").data("telerik_ReportViewer");
9118
+ * viewer.parametersAreaVisible(false);
9119
+ */
8953
9120
  parametersAreaVisible: (visible) => {
8954
9121
  notificationService.setParametersAreaVisible({ visible });
8955
9122
  },
9123
+ /**
9124
+ * Returns an object with properties, the names of which are the report parameters’ IDs, and values - the report parameters’ values. The values of multivalue parameters include their display and value members.
9125
+ * @function
9126
+ * @returns {Array<Object>} An array of report parameter objects.
9127
+ * @example // Get all report parameters and log them
9128
+ * var viewer = $("#reportViewer1").data("telerik_ReportViewer");
9129
+ * var parameters = viewer.getReportParameters();
9130
+ * console.log(parameters);
9131
+ */
8956
9132
  getReportParameters: () => {
8957
9133
  return controller.getReportParameters();
8958
9134
  },
9135
+ /**
9136
+ * Returns whether auto-run is enabled for the report (i.e., whether the report runs automatically when parameters change).
9137
+ * @function
9138
+ * @returns {boolean} True if auto-run is enabled, false otherwise.
9139
+ * @example // Check if auto-run is enabled for the report
9140
+ * var viewer = $("#reportViewer1").data("telerik_ReportViewer");
9141
+ * var isReportAutoRun = viewer.isReportAutoRun();
9142
+ */
8959
9143
  isReportAutoRun: () => {
8960
9144
  return controller.autoRunEnabled;
8961
9145
  },
9146
+ /**
9147
+ * Sets the authentication token. Used for service requests.
9148
+ * @function
9149
+ * @param {string} [token] - The authentication token to set.
9150
+ * @returns {ReportViewerInstance} Returns the viewer instance for chaining.
9151
+ * @example // Set the authentication token for the viewer
9152
+ * var viewer = $("#reportViewer1").data("telerik_ReportViewer");
9153
+ * viewer.authenticationToken("YOUR_AUTH_TOKEN");
9154
+ */
8962
9155
  authenticationToken: (token) => {
8963
9156
  if (token) {
8964
9157
  controller.setAuthenticationToken(token);
8965
9158
  }
8966
9159
  return viewer;
8967
9160
  },
9161
+ /**
9162
+ * Binds event handlers to the specified event.
9163
+ * @function
9164
+ * @param {string} eventName - The name of the event to bind to (see Events constants).
9165
+ * @param {function} eventHandler - The handler function to invoke when the event occurs.
9166
+ * @returns {void}
9167
+ * @example // Bind to the 'pageReady' event
9168
+ * var viewer = $("#reportViewer1").data("telerik_ReportViewer");
9169
+ * viewer.bind(telerikReportViewer.Events.PAGE_READY, function(e, args) {
9170
+ * console.log("Page is ready!", args);
9171
+ * });
9172
+ * @example // Bind to the 'error' event
9173
+ * var viewer = $("#reportViewer1").data("telerik_ReportViewer");
9174
+ * viewer.bind(telerikReportViewer.Events.ERROR, function(e, args) {
9175
+ * alert("An error occurred: " + args);
9176
+ * });
9177
+ */
8968
9178
  bind: (eventName, eventHandler) => {
8969
9179
  eventBinder(eventName, eventHandler, true);
8970
9180
  },
9181
+ /**
9182
+ * Unbinds an event handler from a viewer event.
9183
+ * @function
9184
+ * @param {string} eventName - The name of the event to unbind from.
9185
+ * @param {function} [eventHandler] - The handler function to remove. If omitted, all handlers for the event are removed.
9186
+ * @returns {void}
9187
+ * @example // Unbind all handlers from the 'error' event
9188
+ * var viewer = $("#reportViewer1").data("telerik_ReportViewer");
9189
+ * viewer.unbind(telerikReportViewer.Events.ERROR);
9190
+ */
8971
9191
  unbind: (eventName, eventHandler) => {
8972
9192
  eventBinder(eventName, eventHandler, false);
8973
9193
  },
9194
+ /**
9195
+ * Gets or sets the accessibility key map for keyboard navigation.
9196
+ * Allows customization of keyboard shortcuts for accessibility features.
9197
+ * @function
9198
+ * @param {Object} [keyMap] - The key map object to set. If omitted, acts as a getter.
9199
+ * @returns {Object} Returns the viewer instance for chaining when setting, the current key map when getting, or undefined if accessibility is not enabled.
9200
+ * @example // Get the current accessibility key map
9201
+ * var viewer = $("#reportViewer1").data("telerik_ReportViewer");
9202
+ * var keyMap = viewer.accessibilityKeyMap();
9203
+ *
9204
+ * @example // Set a custom accessibility key map
9205
+ * var reportViewer = $("#reportViewer1").data("telerik_ReportViewer");
9206
+ * reportViewer.accessibilityKeyMap(
9207
+ * {
9208
+ * CONFIRM_KEY: 32,
9209
+ * CONTENT_AREA_KEY: 82, //R
9210
+ * DOCUMENT_MAP_AREA_KEY: 77, //M
9211
+ * MENU_AREA_KEY: 85, //U
9212
+ * PARAMETERS_AREA_KEY: 80 //P
9213
+ * });
9214
+ */
8974
9215
  accessibilityKeyMap: (keyMap) => {
8975
9216
  if (accessibility) {
8976
9217
  if (keyMap) {
@@ -8981,12 +9222,27 @@ ${e3.text} (${e3.id})`;
8981
9222
  }
8982
9223
  return void 0;
8983
9224
  },
9225
+ /**
9226
+ * The command set for the viewer, providing programmatic access to built-in commands (e.g., navigation, export).
9227
+ * @type {ReportViewerCommands}
9228
+ */
8984
9229
  commands,
9230
+ /**
9231
+ * Disposes the viewer instance, cleaning up resources and event handlers.
9232
+ * After calling this method, the viewer instance should not be used.
9233
+ * Stops sending keep alive requests to the server, if keep client alive was enabled.
9234
+ * @function
9235
+ * @returns {void}
9236
+ * @example
9237
+ * // Dispose the viewer instance when it is no longer needed
9238
+ * var viewer = $("#reportViewer1").data("telerik_ReportViewer");
9239
+ * viewer.dispose();
9240
+ */
8985
9241
  dispose: () => {
8986
9242
  clearTooltipTimeout();
8987
9243
  controller.disposeSentinel();
8988
9244
  controller.destroy();
8989
- if (perspectiveManager) {
9245
+ if (perspectiveManager && typeof perspectiveManager.dispose === "function") {
8990
9246
  perspectiveManager.dispose();
8991
9247
  }
8992
9248
  }
@@ -9122,6 +9378,9 @@ ${e3.text} (${e3.id})`;
9122
9378
  function enableTouch(dom2) {
9123
9379
  var allowSwipeLeft;
9124
9380
  var allowSwipeRight;
9381
+ function isMobileDevice() {
9382
+ return /Mobile|Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|Windows Phone/i.test(navigator.userAgent) || /Macintosh/i.test(navigator.userAgent) && navigator.maxTouchPoints && navigator.maxTouchPoints > 0;
9383
+ }
9125
9384
  TouchBehavior(
9126
9385
  dom2,
9127
9386
  {
@@ -9144,7 +9403,9 @@ ${e3.text} (${e3.id})`;
9144
9403
  controller.setScale(scale * f);
9145
9404
  },
9146
9405
  doubletap: function() {
9147
- commands.toggleZoomMode.exec();
9406
+ if (isMobileDevice()) {
9407
+ commands.toggleZoomMode.exec();
9408
+ }
9148
9409
  },
9149
9410
  touchstart: function() {
9150
9411
  var el = dom2.find(".trv-page-wrapper")[0];
@@ -9273,8 +9534,8 @@ ${e3.text} (${e3.id})`;
9273
9534
  settings.setScale(scale);
9274
9535
  }).on("clientIdChanged", (clientId) => {
9275
9536
  settings.setClientId(clientId);
9276
- }).on("currentPageChanged", (page) => {
9277
- settings.setPageNumber(page);
9537
+ }).on("currentPageChanged", (args) => {
9538
+ settings.setPageNumber(args.page);
9278
9539
  }).on("reportSourceChanged", (rs) => {
9279
9540
  settings.setReportSource(rs);
9280
9541
  });
@@ -9347,10 +9608,7 @@ ${e3.text} (${e3.id})`;
9347
9608
  notificationService.setDocumentMapVisible({ visible: false });
9348
9609
  }
9349
9610
  }).on("navigateToReport", (args) => {
9350
- controller.setReportSource({
9351
- report: args.Report,
9352
- parameters: args.Parameters
9353
- });
9611
+ controller.setReportSource(args);
9354
9612
  controller.refreshReport(false);
9355
9613
  }).on("toolTipOpening", (args) => {
9356
9614
  showTooltip(args);