@everymatrix/player-bonus-history 1.50.0 → 1.51.0
Sign up to get free protection for your applications and to get access to all the features.
- package/components/{PlayerBonusCard-BHtjhHA4.cjs → PlayerBonusCard-D7jL8lXI.cjs} +7 -7
- package/components/{PlayerBonusCard-c7uGr4D2.js → PlayerBonusCard-g_G31zcr.js} +480 -460
- package/components/{PlayerBonusHistory-Bf9QTgAU.cjs → PlayerBonusHistory-4cA_Hdn4.cjs} +534 -56
- package/components/{PlayerBonusHistory-Bwn0vTfu.js → PlayerBonusHistory-BWWZBOl8.js} +557 -71
- package/es2015/player-bonus-history.cjs +1 -1
- package/es2015/player-bonus-history.js +1 -1
- package/package.json +1 -1
@@ -26,7 +26,7 @@ var rt = (s, t, e) => new Promise((o, i) => {
|
|
26
26
|
}, a = (l) => l.done ? o(l.value) : Promise.resolve(l.value).then(r, n);
|
27
27
|
a((e = e.apply(s, t)).next());
|
28
28
|
});
|
29
|
-
import { a as Mr, $ as Ir, S as Nr, i as zr, f as ee, c as Fr, s as Br, b as Lr, e as D, d as J, n as Xo, g as Q, h as
|
29
|
+
import { a as Mr, $ as Ir, S as Nr, i as zr, f as ee, c as Fr, s as Br, b as Lr, e as D, d as J, n as Xo, g as Q, h as Hr, j as Rr, k as nt, o as $r, l as zt, m as Vr, p as $, t as U, q as x, r as m, u as g, v as he, w as Pe, x as Ce, y as ft, z as js, A as Yr, B as qs } from "./PlayerBonusCard-g_G31zcr.js";
|
30
30
|
if (typeof window != "undefined") {
|
31
31
|
let s = function(t) {
|
32
32
|
return function(...e) {
|
@@ -39,7 +39,7 @@ if (typeof window != "undefined") {
|
|
39
39
|
}
|
40
40
|
};
|
41
41
|
};
|
42
|
-
customElements.define = s(customElements.define), import("./PlayerBonusCard-
|
42
|
+
customElements.define = s(customElements.define), import("./PlayerBonusCard-g_G31zcr.js").then((t) => t.P).then(({ default: t }) => {
|
43
43
|
!customElements.get("player-bonus-card") && customElements.define("player-bonus-card", t.element);
|
44
44
|
});
|
45
45
|
}
|
@@ -332,8 +332,8 @@ Ee[so] = !0, Ee.elementProperties = /* @__PURE__ */ new Map(), Ee.elementStyles
|
|
332
332
|
* SPDX-License-Identifier: BSD-3-Clause
|
333
333
|
*/
|
334
334
|
var Lt;
|
335
|
-
const gt = window, Se = gt.trustedTypes, ts = Se ? Se.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, io = "$lit$", ne = `lit$${(Math.random() + "").slice(9)}$`, Gs = "?" + ne, Kr = `<${Gs}>`, ge = document, We = () => ge.createComment(""), je = (s) => s === null || typeof s != "object" && typeof s != "function", Xs = Array.isArray, Gr = (s) => Xs(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function",
|
336
|
-
\f\r]`, Be = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, os = /-->/g, ss = />/g, de = RegExp(`>|${
|
335
|
+
const gt = window, Se = gt.trustedTypes, ts = Se ? Se.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, io = "$lit$", ne = `lit$${(Math.random() + "").slice(9)}$`, Gs = "?" + ne, Kr = `<${Gs}>`, ge = document, We = () => ge.createComment(""), je = (s) => s === null || typeof s != "object" && typeof s != "function", Xs = Array.isArray, Gr = (s) => Xs(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", Ht = `[
|
336
|
+
\f\r]`, Be = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, os = /-->/g, ss = />/g, de = RegExp(`>|${Ht}(?:([^\\s"'>=/]+)(${Ht}*=${Ht}*(?:[^
|
337
337
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), is = /'/g, rs = /"/g, Js = /^(?:script|style|textarea|title)$/i, Oe = Symbol.for("lit-noChange"), I = Symbol.for("lit-nothing"), ns = /* @__PURE__ */ new WeakMap(), pe = ge.createTreeWalker(ge, 129, null, !1);
|
338
338
|
function Qs(s, t) {
|
339
339
|
if (!Array.isArray(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
@@ -580,7 +580,7 @@ const sn = (s, t, e) => {
|
|
580
580
|
* Copyright 2017 Google LLC
|
581
581
|
* SPDX-License-Identifier: BSD-3-Clause
|
582
582
|
*/
|
583
|
-
var
|
583
|
+
var Rt, $t;
|
584
584
|
class ht extends Ee {
|
585
585
|
constructor() {
|
586
586
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
@@ -606,7 +606,7 @@ class ht extends Ee {
|
|
606
606
|
return Oe;
|
607
607
|
}
|
608
608
|
}
|
609
|
-
ht.finalized = !0, ht._$litElement$ = !0, (
|
609
|
+
ht.finalized = !0, ht._$litElement$ = !0, (Rt = globalThis.litElementHydrateSupport) === null || Rt === void 0 || Rt.call(globalThis, { LitElement: ht });
|
610
610
|
const ls = globalThis.litElementPolyfillSupport;
|
611
611
|
ls == null || ls({ LitElement: ht });
|
612
612
|
(($t = globalThis.litElementVersions) !== null && $t !== void 0 ? $t : globalThis.litElementVersions = []).push("3.3.3");
|
@@ -1325,7 +1325,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
1325
1325
|
Code distributed by Google as part of the polymer project is also
|
1326
1326
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
1327
1327
|
*/
|
1328
|
-
let yn = /(url\()([^)]*)(\))/g, bn = /(^\/[^\/])|(^#)|(^[\w-\d]*:)/, at,
|
1328
|
+
let yn = /(url\()([^)]*)(\))/g, bn = /(^\/[^\/])|(^#)|(^[\w-\d]*:)/, at, R;
|
1329
1329
|
function Ue(s, t) {
|
1330
1330
|
if (s && bn.test(s) || s === "//")
|
1331
1331
|
return s;
|
@@ -1343,7 +1343,7 @@ function Ue(s, t) {
|
|
1343
1343
|
} catch (e) {
|
1344
1344
|
return s;
|
1345
1345
|
}
|
1346
|
-
return
|
1346
|
+
return R || (R = document.implementation.createHTMLDocument("temp"), R.base = R.createElement("base"), R.head.appendChild(R.base), R.anchor = R.createElement("a"), R.body.appendChild(R.anchor)), R.base.href = t, R.anchor.href = s, R.anchor.href || s;
|
1347
1347
|
}
|
1348
1348
|
function Do(s, t) {
|
1349
1349
|
return s.replace(yn, function(e, o, i, r) {
|
@@ -1649,7 +1649,7 @@ function Ve(s) {
|
|
1649
1649
|
function ui(s) {
|
1650
1650
|
return Array.isArray(s) ? Ve(s).split(".") : s.toString().split(".");
|
1651
1651
|
}
|
1652
|
-
function
|
1652
|
+
function H(s, t, e) {
|
1653
1653
|
let o = s, i = ui(t);
|
1654
1654
|
for (let r = 0; r < i.length; r++) {
|
1655
1655
|
if (!o)
|
@@ -1701,8 +1701,8 @@ Code distributed by Google as part of the polymer project is also
|
|
1701
1701
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
1702
1702
|
*/
|
1703
1703
|
let Bn = 0, hi = 0, ke = [], Ln = 0, lo = !1, pi = document.createTextNode("");
|
1704
|
-
new window.MutationObserver(
|
1705
|
-
function
|
1704
|
+
new window.MutationObserver(Hn).observe(pi, { characterData: !0 });
|
1705
|
+
function Hn() {
|
1706
1706
|
lo = !1;
|
1707
1707
|
const s = ke.length;
|
1708
1708
|
for (let t = 0; t < s; t++) {
|
@@ -1718,7 +1718,7 @@ function Rn() {
|
|
1718
1718
|
}
|
1719
1719
|
ke.splice(0, s), hi += s;
|
1720
1720
|
}
|
1721
|
-
const
|
1721
|
+
const Rn = {
|
1722
1722
|
/**
|
1723
1723
|
* Returns a sub-module with the async interface providing the provided
|
1724
1724
|
* delay.
|
@@ -2954,7 +2954,7 @@ function bi(s, t, e, o) {
|
|
2954
2954
|
).dispatchEvent(new CustomEvent(t, { detail: i }));
|
2955
2955
|
}
|
2956
2956
|
function ra(s, t, e, o, i, r) {
|
2957
|
-
let a = (r ? be(t) : t) != t ? t : null, l = a ?
|
2957
|
+
let a = (r ? be(t) : t) != t ? t : null, l = a ? H(s, a) : s.__data[t];
|
2958
2958
|
a && l === void 0 && (l = e[t]), bi(s, i.eventName, l, a);
|
2959
2959
|
}
|
2960
2960
|
function na(s, t, e, o, i) {
|
@@ -3240,7 +3240,7 @@ function xi(s) {
|
|
3240
3240
|
return e.literal || (e.rootProperty = be(t), e.structured = ao(t), e.structured && (e.wildcard = t.slice(-2) == ".*", e.wildcard && (e.name = t.slice(0, -2)))), e;
|
3241
3241
|
}
|
3242
3242
|
function As(s, t, e) {
|
3243
|
-
let o =
|
3243
|
+
let o = H(s, e);
|
3244
3244
|
return o === void 0 && (o = t[e]), o;
|
3245
3245
|
}
|
3246
3246
|
function Ci(s, t, e, o) {
|
@@ -3276,8 +3276,8 @@ const Io = O((s) => {
|
|
3276
3276
|
super._initializeProperties(), this._registerHost(), this.__dataClientsReady = !1, this.__dataPendingClients = null, this.__dataToNotify = null, this.__dataLinkedPaths = null, this.__dataHasPaths = !1, this.__dataCompoundStorage = this.__dataCompoundStorage || null, this.__dataHost = this.__dataHost || null, this.__dataTemp = {}, this.__dataClientsInitialized = !1;
|
3277
3277
|
}
|
3278
3278
|
_registerHost() {
|
3279
|
-
if (
|
3280
|
-
let i =
|
3279
|
+
if (He.length) {
|
3280
|
+
let i = He[He.length - 1];
|
3281
3281
|
i._enqueueClient(this), this.__dataHost = i;
|
3282
3282
|
}
|
3283
3283
|
}
|
@@ -3437,7 +3437,7 @@ const Io = O((s) => {
|
|
3437
3437
|
_setPendingPropertyOrPath(i, r, n, a) {
|
3438
3438
|
if (a || be(Array.isArray(i) ? i[0] : i) !== i) {
|
3439
3439
|
if (!a) {
|
3440
|
-
let l =
|
3440
|
+
let l = H(this, i);
|
3441
3441
|
if (i = /** @type {string} */
|
3442
3442
|
fs(this, i, r), !i || !super._shouldPropertyChange(i, r, l))
|
3443
3443
|
return !1;
|
@@ -3759,7 +3759,7 @@ const Io = O((s) => {
|
|
3759
3759
|
notifySplices(i, r) {
|
3760
3760
|
let n = { path: "" }, a = (
|
3761
3761
|
/** @type {Array} */
|
3762
|
-
|
3762
|
+
H(this, i, n)
|
3763
3763
|
);
|
3764
3764
|
Ci(this, a, n.path, r);
|
3765
3765
|
}
|
@@ -3784,7 +3784,7 @@ const Io = O((s) => {
|
|
3784
3784
|
* @public
|
3785
3785
|
*/
|
3786
3786
|
get(i, r) {
|
3787
|
-
return
|
3787
|
+
return H(r || this, i);
|
3788
3788
|
}
|
3789
3789
|
/**
|
3790
3790
|
* Convenience method for setting a value to a path and notifying any
|
@@ -3832,7 +3832,7 @@ const Io = O((s) => {
|
|
3832
3832
|
push(i, ...r) {
|
3833
3833
|
let n = { path: "" }, a = (
|
3834
3834
|
/** @type {Array}*/
|
3835
|
-
|
3835
|
+
H(this, i, n)
|
3836
3836
|
), l = a.length, c = a.push(...r);
|
3837
3837
|
return r.length && Le(this, a, n.path, l, r.length, []), c;
|
3838
3838
|
}
|
@@ -3853,7 +3853,7 @@ const Io = O((s) => {
|
|
3853
3853
|
pop(i) {
|
3854
3854
|
let r = { path: "" }, n = (
|
3855
3855
|
/** @type {Array} */
|
3856
|
-
|
3856
|
+
H(this, i, r)
|
3857
3857
|
), a = !!n.length, l = n.pop();
|
3858
3858
|
return a && Le(this, n, r.path, n.length, 0, [l]), l;
|
3859
3859
|
}
|
@@ -3878,7 +3878,7 @@ const Io = O((s) => {
|
|
3878
3878
|
splice(i, r, n, ...a) {
|
3879
3879
|
let l = { path: "" }, c = (
|
3880
3880
|
/** @type {Array} */
|
3881
|
-
|
3881
|
+
H(this, i, l)
|
3882
3882
|
);
|
3883
3883
|
r < 0 ? r = c.length - Math.floor(-r) : r && (r = Math.floor(r));
|
3884
3884
|
let u;
|
@@ -3901,7 +3901,7 @@ const Io = O((s) => {
|
|
3901
3901
|
shift(i) {
|
3902
3902
|
let r = { path: "" }, n = (
|
3903
3903
|
/** @type {Array} */
|
3904
|
-
|
3904
|
+
H(this, i, r)
|
3905
3905
|
), a = !!n.length, l = n.shift();
|
3906
3906
|
return a && Le(this, n, r.path, 0, 0, [l]), l;
|
3907
3907
|
}
|
@@ -3923,7 +3923,7 @@ const Io = O((s) => {
|
|
3923
3923
|
unshift(i, ...r) {
|
3924
3924
|
let n = { path: "" }, a = (
|
3925
3925
|
/** @type {Array} */
|
3926
|
-
|
3926
|
+
H(this, i, n)
|
3927
3927
|
), l = a.unshift(...r);
|
3928
3928
|
return r.length && Le(this, a, n.path, 0, r.length, []), l;
|
3929
3929
|
}
|
@@ -3945,7 +3945,7 @@ const Io = O((s) => {
|
|
3945
3945
|
let n;
|
3946
3946
|
if (arguments.length == 1) {
|
3947
3947
|
let a = { path: "" };
|
3948
|
-
r =
|
3948
|
+
r = H(this, i, a), n = a.path;
|
3949
3949
|
} else Array.isArray(i) ? n = Ve(i) : n = /** @type{string} */
|
3950
3950
|
i;
|
3951
3951
|
this._setPendingPropertyOrPath(n, r, !0, !0) && this._invalidateProperties();
|
@@ -4099,7 +4099,7 @@ const Io = O((s) => {
|
|
4099
4099
|
f = {
|
4100
4100
|
path: v ? r : d,
|
4101
4101
|
value: w,
|
4102
|
-
base: v ?
|
4102
|
+
base: v ? H(a, d) : w
|
4103
4103
|
};
|
4104
4104
|
} else
|
4105
4105
|
f = h ? As(a, n, d) : a[d];
|
@@ -4378,9 +4378,9 @@ const Io = O((s) => {
|
|
4378
4378
|
*/
|
4379
4379
|
_stampTemplate(i, r) {
|
4380
4380
|
r = r || /** @type {!TemplateInfo} */
|
4381
|
-
this._bindTemplate(i, !0),
|
4381
|
+
this._bindTemplate(i, !0), He.push(this);
|
4382
4382
|
let n = super._stampTemplate(i, r);
|
4383
|
-
if (
|
4383
|
+
if (He.pop(), r.nodeList = n.nodeList, !r.wasPreBound) {
|
4384
4384
|
let a = r.childNodes = [];
|
4385
4385
|
for (let l = n.firstChild; l; l = l.nextSibling)
|
4386
4386
|
a.push(l);
|
@@ -4604,11 +4604,11 @@ const Io = O((s) => {
|
|
4604
4604
|
*/
|
4605
4605
|
static _evaluateBinding(i, r, n, a, l, c) {
|
4606
4606
|
let u;
|
4607
|
-
return r.signature ? u = co(i, n, a, l, r.signature) : n != r.source ? u =
|
4607
|
+
return r.signature ? u = co(i, n, a, l, r.signature) : n != r.source ? u = H(i, r.source) : c && ao(n) ? u = H(i, n) : u = i.__data[n], r.negate && (u = !u), u;
|
4608
4608
|
}
|
4609
4609
|
}
|
4610
4610
|
return e;
|
4611
|
-
}),
|
4611
|
+
}), He = [];
|
4612
4612
|
/**
|
4613
4613
|
@license
|
4614
4614
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
@@ -4786,7 +4786,7 @@ const Fa = O((s) => {
|
|
4786
4786
|
* Google as part of the polymer project is also subject to an additional IP
|
4787
4787
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
4788
4788
|
*/
|
4789
|
-
const Ba = "3.5.
|
4789
|
+
const Ba = "3.5.2", Es = window.ShadyCSS && window.ShadyCSS.cssBuild, La = O((s) => {
|
4790
4790
|
const t = Fa(Io(s));
|
4791
4791
|
function e(l) {
|
4792
4792
|
if (!l.hasOwnProperty(
|
@@ -5295,7 +5295,7 @@ function Ei(s) {
|
|
5295
5295
|
`non-literal value passed to Polymer's htmlLiteral function: ${s}`
|
5296
5296
|
);
|
5297
5297
|
}
|
5298
|
-
function
|
5298
|
+
function Ha(s) {
|
5299
5299
|
if (s instanceof HTMLTemplateElement)
|
5300
5300
|
return (
|
5301
5301
|
/** @type {!HTMLTemplateElement } */
|
@@ -5314,7 +5314,7 @@ const ve = function(t, ...e) {
|
|
5314
5314
|
document.createElement("template")
|
5315
5315
|
);
|
5316
5316
|
let i = e.reduce(
|
5317
|
-
(r, n, a) => r +
|
5317
|
+
(r, n, a) => r + Ha(n) + t[a + 1],
|
5318
5318
|
t[0]
|
5319
5319
|
);
|
5320
5320
|
return Ps && (i = Ps.createHTML(i)), o.innerHTML = i, o;
|
@@ -5344,13 +5344,13 @@ function uo(s, t, e = s.getAttribute("dir")) {
|
|
5344
5344
|
function ho() {
|
5345
5345
|
return document.documentElement.getAttribute("dir");
|
5346
5346
|
}
|
5347
|
-
function
|
5347
|
+
function Ra() {
|
5348
5348
|
const s = ho();
|
5349
5349
|
oe.forEach((t) => {
|
5350
5350
|
uo(t, s);
|
5351
5351
|
});
|
5352
5352
|
}
|
5353
|
-
const $a = new MutationObserver(
|
5353
|
+
const $a = new MutationObserver(Ra);
|
5354
5354
|
$a.observe(document.documentElement, { attributes: !0, attributeFilter: ["dir"] });
|
5355
5355
|
const kt = (s) => class extends s {
|
5356
5356
|
static get properties() {
|
@@ -6938,6 +6938,485 @@ const ks = function(s, t) {
|
|
6938
6938
|
};
|
6939
6939
|
window.Vaadin.developmentMode === void 0 && (window.Vaadin.developmentMode = ul());
|
6940
6940
|
function ml() {
|
6941
|
+
/*! vaadin-dev-mode:start
|
6942
|
+
(function () {
|
6943
|
+
'use strict';
|
6944
|
+
|
6945
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
6946
|
+
return typeof obj;
|
6947
|
+
} : function (obj) {
|
6948
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
6949
|
+
};
|
6950
|
+
|
6951
|
+
var classCallCheck = function (instance, Constructor) {
|
6952
|
+
if (!(instance instanceof Constructor)) {
|
6953
|
+
throw new TypeError("Cannot call a class as a function");
|
6954
|
+
}
|
6955
|
+
};
|
6956
|
+
|
6957
|
+
var createClass = function () {
|
6958
|
+
function defineProperties(target, props) {
|
6959
|
+
for (var i = 0; i < props.length; i++) {
|
6960
|
+
var descriptor = props[i];
|
6961
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
6962
|
+
descriptor.configurable = true;
|
6963
|
+
if ("value" in descriptor) descriptor.writable = true;
|
6964
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
6965
|
+
}
|
6966
|
+
}
|
6967
|
+
|
6968
|
+
return function (Constructor, protoProps, staticProps) {
|
6969
|
+
if (protoProps) defineProperties(Constructor.prototype, protoProps);
|
6970
|
+
if (staticProps) defineProperties(Constructor, staticProps);
|
6971
|
+
return Constructor;
|
6972
|
+
};
|
6973
|
+
}();
|
6974
|
+
|
6975
|
+
var getPolymerVersion = function getPolymerVersion() {
|
6976
|
+
return window.Polymer && window.Polymer.version;
|
6977
|
+
};
|
6978
|
+
|
6979
|
+
var StatisticsGatherer = function () {
|
6980
|
+
function StatisticsGatherer(logger) {
|
6981
|
+
classCallCheck(this, StatisticsGatherer);
|
6982
|
+
|
6983
|
+
this.now = new Date().getTime();
|
6984
|
+
this.logger = logger;
|
6985
|
+
}
|
6986
|
+
|
6987
|
+
createClass(StatisticsGatherer, [{
|
6988
|
+
key: 'frameworkVersionDetectors',
|
6989
|
+
value: function frameworkVersionDetectors() {
|
6990
|
+
return {
|
6991
|
+
'Flow': function Flow() {
|
6992
|
+
if (window.Vaadin && window.Vaadin.Flow && window.Vaadin.Flow.clients) {
|
6993
|
+
var flowVersions = Object.keys(window.Vaadin.Flow.clients).map(function (key) {
|
6994
|
+
return window.Vaadin.Flow.clients[key];
|
6995
|
+
}).filter(function (client) {
|
6996
|
+
return client.getVersionInfo;
|
6997
|
+
}).map(function (client) {
|
6998
|
+
return client.getVersionInfo().flow;
|
6999
|
+
});
|
7000
|
+
if (flowVersions.length > 0) {
|
7001
|
+
return flowVersions[0];
|
7002
|
+
}
|
7003
|
+
}
|
7004
|
+
},
|
7005
|
+
'Vaadin Framework': function VaadinFramework() {
|
7006
|
+
if (window.vaadin && window.vaadin.clients) {
|
7007
|
+
var frameworkVersions = Object.values(window.vaadin.clients).filter(function (client) {
|
7008
|
+
return client.getVersionInfo;
|
7009
|
+
}).map(function (client) {
|
7010
|
+
return client.getVersionInfo().vaadinVersion;
|
7011
|
+
});
|
7012
|
+
if (frameworkVersions.length > 0) {
|
7013
|
+
return frameworkVersions[0];
|
7014
|
+
}
|
7015
|
+
}
|
7016
|
+
},
|
7017
|
+
'AngularJs': function AngularJs() {
|
7018
|
+
if (window.angular && window.angular.version && window.angular.version) {
|
7019
|
+
return window.angular.version.full;
|
7020
|
+
}
|
7021
|
+
},
|
7022
|
+
'Angular': function Angular() {
|
7023
|
+
if (window.ng) {
|
7024
|
+
var tags = document.querySelectorAll("[ng-version]");
|
7025
|
+
if (tags.length > 0) {
|
7026
|
+
return tags[0].getAttribute("ng-version");
|
7027
|
+
}
|
7028
|
+
return "Unknown";
|
7029
|
+
}
|
7030
|
+
},
|
7031
|
+
'Backbone.js': function BackboneJs() {
|
7032
|
+
if (window.Backbone) {
|
7033
|
+
return window.Backbone.VERSION;
|
7034
|
+
}
|
7035
|
+
},
|
7036
|
+
'React': function React() {
|
7037
|
+
var reactSelector = '[data-reactroot], [data-reactid]';
|
7038
|
+
if (!!document.querySelector(reactSelector)) {
|
7039
|
+
// React does not publish the version by default
|
7040
|
+
return "unknown";
|
7041
|
+
}
|
7042
|
+
},
|
7043
|
+
'Ember': function Ember() {
|
7044
|
+
if (window.Em && window.Em.VERSION) {
|
7045
|
+
return window.Em.VERSION;
|
7046
|
+
} else if (window.Ember && window.Ember.VERSION) {
|
7047
|
+
return window.Ember.VERSION;
|
7048
|
+
}
|
7049
|
+
},
|
7050
|
+
'jQuery': function (_jQuery) {
|
7051
|
+
function jQuery() {
|
7052
|
+
return _jQuery.apply(this, arguments);
|
7053
|
+
}
|
7054
|
+
|
7055
|
+
jQuery.toString = function () {
|
7056
|
+
return _jQuery.toString();
|
7057
|
+
};
|
7058
|
+
|
7059
|
+
return jQuery;
|
7060
|
+
}(function () {
|
7061
|
+
if (typeof jQuery === 'function' && jQuery.prototype.jquery !== undefined) {
|
7062
|
+
return jQuery.prototype.jquery;
|
7063
|
+
}
|
7064
|
+
}),
|
7065
|
+
'Polymer': function Polymer() {
|
7066
|
+
var version = getPolymerVersion();
|
7067
|
+
if (version) {
|
7068
|
+
return version;
|
7069
|
+
}
|
7070
|
+
},
|
7071
|
+
'LitElement': function LitElement() {
|
7072
|
+
var version = window.litElementVersions && window.litElementVersions[0];
|
7073
|
+
if (version) {
|
7074
|
+
return version;
|
7075
|
+
}
|
7076
|
+
},
|
7077
|
+
'LitHtml': function LitHtml() {
|
7078
|
+
var version = window.litHtmlVersions && window.litHtmlVersions[0];
|
7079
|
+
if (version) {
|
7080
|
+
return version;
|
7081
|
+
}
|
7082
|
+
},
|
7083
|
+
'Vue.js': function VueJs() {
|
7084
|
+
if (window.Vue) {
|
7085
|
+
return window.Vue.version;
|
7086
|
+
}
|
7087
|
+
}
|
7088
|
+
};
|
7089
|
+
}
|
7090
|
+
}, {
|
7091
|
+
key: 'getUsedVaadinElements',
|
7092
|
+
value: function getUsedVaadinElements(elements) {
|
7093
|
+
var version = getPolymerVersion();
|
7094
|
+
var elementClasses = void 0;
|
7095
|
+
// NOTE: In case you edit the code here, YOU MUST UPDATE any statistics reporting code in Flow.
|
7096
|
+
// Check all locations calling the method getEntries() in
|
7097
|
+
// https://github.com/vaadin/flow/blob/master/flow-server/src/main/java/com/vaadin/flow/internal/UsageStatistics.java#L106
|
7098
|
+
// Currently it is only used by BootstrapHandler.
|
7099
|
+
if (version && version.indexOf('2') === 0) {
|
7100
|
+
// Polymer 2: components classes are stored in window.Vaadin
|
7101
|
+
elementClasses = Object.keys(window.Vaadin).map(function (c) {
|
7102
|
+
return window.Vaadin[c];
|
7103
|
+
}).filter(function (c) {
|
7104
|
+
return c.is;
|
7105
|
+
});
|
7106
|
+
} else {
|
7107
|
+
// Polymer 3: components classes are stored in window.Vaadin.registrations
|
7108
|
+
elementClasses = window.Vaadin.registrations || [];
|
7109
|
+
}
|
7110
|
+
elementClasses.forEach(function (klass) {
|
7111
|
+
var version = klass.version ? klass.version : "0.0.0";
|
7112
|
+
elements[klass.is] = { version: version };
|
7113
|
+
});
|
7114
|
+
}
|
7115
|
+
}, {
|
7116
|
+
key: 'getUsedVaadinThemes',
|
7117
|
+
value: function getUsedVaadinThemes(themes) {
|
7118
|
+
['Lumo', 'Material'].forEach(function (themeName) {
|
7119
|
+
var theme;
|
7120
|
+
var version = getPolymerVersion();
|
7121
|
+
if (version && version.indexOf('2') === 0) {
|
7122
|
+
// Polymer 2: themes are stored in window.Vaadin
|
7123
|
+
theme = window.Vaadin[themeName];
|
7124
|
+
} else {
|
7125
|
+
// Polymer 3: themes are stored in custom element registry
|
7126
|
+
theme = customElements.get('vaadin-' + themeName.toLowerCase() + '-styles');
|
7127
|
+
}
|
7128
|
+
if (theme && theme.version) {
|
7129
|
+
themes[themeName] = { version: theme.version };
|
7130
|
+
}
|
7131
|
+
});
|
7132
|
+
}
|
7133
|
+
}, {
|
7134
|
+
key: 'getFrameworks',
|
7135
|
+
value: function getFrameworks(frameworks) {
|
7136
|
+
var detectors = this.frameworkVersionDetectors();
|
7137
|
+
Object.keys(detectors).forEach(function (framework) {
|
7138
|
+
var detector = detectors[framework];
|
7139
|
+
try {
|
7140
|
+
var version = detector();
|
7141
|
+
if (version) {
|
7142
|
+
frameworks[framework] = { version: version };
|
7143
|
+
}
|
7144
|
+
} catch (e) {}
|
7145
|
+
});
|
7146
|
+
}
|
7147
|
+
}, {
|
7148
|
+
key: 'gather',
|
7149
|
+
value: function gather(storage) {
|
7150
|
+
var storedStats = storage.read();
|
7151
|
+
var gatheredStats = {};
|
7152
|
+
var types = ["elements", "frameworks", "themes"];
|
7153
|
+
|
7154
|
+
types.forEach(function (type) {
|
7155
|
+
gatheredStats[type] = {};
|
7156
|
+
if (!storedStats[type]) {
|
7157
|
+
storedStats[type] = {};
|
7158
|
+
}
|
7159
|
+
});
|
7160
|
+
|
7161
|
+
var previousStats = JSON.stringify(storedStats);
|
7162
|
+
|
7163
|
+
this.getUsedVaadinElements(gatheredStats.elements);
|
7164
|
+
this.getFrameworks(gatheredStats.frameworks);
|
7165
|
+
this.getUsedVaadinThemes(gatheredStats.themes);
|
7166
|
+
|
7167
|
+
var now = this.now;
|
7168
|
+
types.forEach(function (type) {
|
7169
|
+
var keys = Object.keys(gatheredStats[type]);
|
7170
|
+
keys.forEach(function (key) {
|
7171
|
+
if (!storedStats[type][key] || _typeof(storedStats[type][key]) != _typeof({})) {
|
7172
|
+
storedStats[type][key] = { firstUsed: now };
|
7173
|
+
}
|
7174
|
+
// Discards any previously logged version number
|
7175
|
+
storedStats[type][key].version = gatheredStats[type][key].version;
|
7176
|
+
storedStats[type][key].lastUsed = now;
|
7177
|
+
});
|
7178
|
+
});
|
7179
|
+
|
7180
|
+
var newStats = JSON.stringify(storedStats);
|
7181
|
+
storage.write(newStats);
|
7182
|
+
if (newStats != previousStats && Object.keys(storedStats).length > 0) {
|
7183
|
+
this.logger.debug("New stats: " + newStats);
|
7184
|
+
}
|
7185
|
+
}
|
7186
|
+
}]);
|
7187
|
+
return StatisticsGatherer;
|
7188
|
+
}();
|
7189
|
+
|
7190
|
+
var StatisticsStorage = function () {
|
7191
|
+
function StatisticsStorage(key) {
|
7192
|
+
classCallCheck(this, StatisticsStorage);
|
7193
|
+
|
7194
|
+
this.key = key;
|
7195
|
+
}
|
7196
|
+
|
7197
|
+
createClass(StatisticsStorage, [{
|
7198
|
+
key: 'read',
|
7199
|
+
value: function read() {
|
7200
|
+
var localStorageStatsString = localStorage.getItem(this.key);
|
7201
|
+
try {
|
7202
|
+
return JSON.parse(localStorageStatsString ? localStorageStatsString : '{}');
|
7203
|
+
} catch (e) {
|
7204
|
+
return {};
|
7205
|
+
}
|
7206
|
+
}
|
7207
|
+
}, {
|
7208
|
+
key: 'write',
|
7209
|
+
value: function write(data) {
|
7210
|
+
localStorage.setItem(this.key, data);
|
7211
|
+
}
|
7212
|
+
}, {
|
7213
|
+
key: 'clear',
|
7214
|
+
value: function clear() {
|
7215
|
+
localStorage.removeItem(this.key);
|
7216
|
+
}
|
7217
|
+
}, {
|
7218
|
+
key: 'isEmpty',
|
7219
|
+
value: function isEmpty() {
|
7220
|
+
var storedStats = this.read();
|
7221
|
+
var empty = true;
|
7222
|
+
Object.keys(storedStats).forEach(function (key) {
|
7223
|
+
if (Object.keys(storedStats[key]).length > 0) {
|
7224
|
+
empty = false;
|
7225
|
+
}
|
7226
|
+
});
|
7227
|
+
|
7228
|
+
return empty;
|
7229
|
+
}
|
7230
|
+
}]);
|
7231
|
+
return StatisticsStorage;
|
7232
|
+
}();
|
7233
|
+
|
7234
|
+
var StatisticsSender = function () {
|
7235
|
+
function StatisticsSender(url, logger) {
|
7236
|
+
classCallCheck(this, StatisticsSender);
|
7237
|
+
|
7238
|
+
this.url = url;
|
7239
|
+
this.logger = logger;
|
7240
|
+
}
|
7241
|
+
|
7242
|
+
createClass(StatisticsSender, [{
|
7243
|
+
key: 'send',
|
7244
|
+
value: function send(data, errorHandler) {
|
7245
|
+
var logger = this.logger;
|
7246
|
+
|
7247
|
+
if (navigator.onLine === false) {
|
7248
|
+
logger.debug("Offline, can't send");
|
7249
|
+
errorHandler();
|
7250
|
+
return;
|
7251
|
+
}
|
7252
|
+
logger.debug("Sending data to " + this.url);
|
7253
|
+
|
7254
|
+
var req = new XMLHttpRequest();
|
7255
|
+
req.withCredentials = true;
|
7256
|
+
req.addEventListener("load", function () {
|
7257
|
+
// Stats sent, nothing more to do
|
7258
|
+
logger.debug("Response: " + req.responseText);
|
7259
|
+
});
|
7260
|
+
req.addEventListener("error", function () {
|
7261
|
+
logger.debug("Send failed");
|
7262
|
+
errorHandler();
|
7263
|
+
});
|
7264
|
+
req.addEventListener("abort", function () {
|
7265
|
+
logger.debug("Send aborted");
|
7266
|
+
errorHandler();
|
7267
|
+
});
|
7268
|
+
req.open("POST", this.url);
|
7269
|
+
req.setRequestHeader("Content-Type", "application/json");
|
7270
|
+
req.send(data);
|
7271
|
+
}
|
7272
|
+
}]);
|
7273
|
+
return StatisticsSender;
|
7274
|
+
}();
|
7275
|
+
|
7276
|
+
var StatisticsLogger = function () {
|
7277
|
+
function StatisticsLogger(id) {
|
7278
|
+
classCallCheck(this, StatisticsLogger);
|
7279
|
+
|
7280
|
+
this.id = id;
|
7281
|
+
}
|
7282
|
+
|
7283
|
+
createClass(StatisticsLogger, [{
|
7284
|
+
key: '_isDebug',
|
7285
|
+
value: function _isDebug() {
|
7286
|
+
return localStorage.getItem("vaadin." + this.id + ".debug");
|
7287
|
+
}
|
7288
|
+
}, {
|
7289
|
+
key: 'debug',
|
7290
|
+
value: function debug(msg) {
|
7291
|
+
if (this._isDebug()) {
|
7292
|
+
console.info(this.id + ": " + msg);
|
7293
|
+
}
|
7294
|
+
}
|
7295
|
+
}]);
|
7296
|
+
return StatisticsLogger;
|
7297
|
+
}();
|
7298
|
+
|
7299
|
+
var UsageStatistics = function () {
|
7300
|
+
function UsageStatistics() {
|
7301
|
+
classCallCheck(this, UsageStatistics);
|
7302
|
+
|
7303
|
+
this.now = new Date();
|
7304
|
+
this.timeNow = this.now.getTime();
|
7305
|
+
this.gatherDelay = 10; // Delay between loading this file and gathering stats
|
7306
|
+
this.initialDelay = 24 * 60 * 60;
|
7307
|
+
|
7308
|
+
this.logger = new StatisticsLogger("statistics");
|
7309
|
+
this.storage = new StatisticsStorage("vaadin.statistics.basket");
|
7310
|
+
this.gatherer = new StatisticsGatherer(this.logger);
|
7311
|
+
this.sender = new StatisticsSender("https://tools.vaadin.com/usage-stats/submit", this.logger);
|
7312
|
+
}
|
7313
|
+
|
7314
|
+
createClass(UsageStatistics, [{
|
7315
|
+
key: 'maybeGatherAndSend',
|
7316
|
+
value: function maybeGatherAndSend() {
|
7317
|
+
var _this = this;
|
7318
|
+
|
7319
|
+
if (localStorage.getItem(UsageStatistics.optOutKey)) {
|
7320
|
+
return;
|
7321
|
+
}
|
7322
|
+
this.gatherer.gather(this.storage);
|
7323
|
+
setTimeout(function () {
|
7324
|
+
_this.maybeSend();
|
7325
|
+
}, this.gatherDelay * 1000);
|
7326
|
+
}
|
7327
|
+
}, {
|
7328
|
+
key: 'lottery',
|
7329
|
+
value: function lottery() {
|
7330
|
+
return true;
|
7331
|
+
}
|
7332
|
+
}, {
|
7333
|
+
key: 'currentMonth',
|
7334
|
+
value: function currentMonth() {
|
7335
|
+
return this.now.getYear() * 12 + this.now.getMonth();
|
7336
|
+
}
|
7337
|
+
}, {
|
7338
|
+
key: 'maybeSend',
|
7339
|
+
value: function maybeSend() {
|
7340
|
+
var firstUse = Number(localStorage.getItem(UsageStatistics.firstUseKey));
|
7341
|
+
var monthProcessed = Number(localStorage.getItem(UsageStatistics.monthProcessedKey));
|
7342
|
+
|
7343
|
+
if (!firstUse) {
|
7344
|
+
// Use a grace period to avoid interfering with tests, incognito mode etc
|
7345
|
+
firstUse = this.timeNow;
|
7346
|
+
localStorage.setItem(UsageStatistics.firstUseKey, firstUse);
|
7347
|
+
}
|
7348
|
+
|
7349
|
+
if (this.timeNow < firstUse + this.initialDelay * 1000) {
|
7350
|
+
this.logger.debug("No statistics will be sent until the initial delay of " + this.initialDelay + "s has passed");
|
7351
|
+
return;
|
7352
|
+
}
|
7353
|
+
if (this.currentMonth() <= monthProcessed) {
|
7354
|
+
this.logger.debug("This month has already been processed");
|
7355
|
+
return;
|
7356
|
+
}
|
7357
|
+
localStorage.setItem(UsageStatistics.monthProcessedKey, this.currentMonth());
|
7358
|
+
// Use random sampling
|
7359
|
+
if (this.lottery()) {
|
7360
|
+
this.logger.debug("Congratulations, we have a winner!");
|
7361
|
+
} else {
|
7362
|
+
this.logger.debug("Sorry, no stats from you this time");
|
7363
|
+
return;
|
7364
|
+
}
|
7365
|
+
|
7366
|
+
this.send();
|
7367
|
+
}
|
7368
|
+
}, {
|
7369
|
+
key: 'send',
|
7370
|
+
value: function send() {
|
7371
|
+
// Ensure we have the latest data
|
7372
|
+
this.gatherer.gather(this.storage);
|
7373
|
+
|
7374
|
+
// Read, send and clean up
|
7375
|
+
var data = this.storage.read();
|
7376
|
+
data["firstUse"] = Number(localStorage.getItem(UsageStatistics.firstUseKey));
|
7377
|
+
data["usageStatisticsVersion"] = UsageStatistics.version;
|
7378
|
+
var info = 'This request contains usage statistics gathered from the application running in development mode. \n\nStatistics gathering is automatically disabled and excluded from production builds.\n\nFor details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.\n\n\n\n';
|
7379
|
+
var self = this;
|
7380
|
+
this.sender.send(info + JSON.stringify(data), function () {
|
7381
|
+
// Revert the 'month processed' flag
|
7382
|
+
localStorage.setItem(UsageStatistics.monthProcessedKey, self.currentMonth() - 1);
|
7383
|
+
});
|
7384
|
+
}
|
7385
|
+
}], [{
|
7386
|
+
key: 'version',
|
7387
|
+
get: function get$1() {
|
7388
|
+
return '2.1.2';
|
7389
|
+
}
|
7390
|
+
}, {
|
7391
|
+
key: 'firstUseKey',
|
7392
|
+
get: function get$1() {
|
7393
|
+
return 'vaadin.statistics.firstuse';
|
7394
|
+
}
|
7395
|
+
}, {
|
7396
|
+
key: 'monthProcessedKey',
|
7397
|
+
get: function get$1() {
|
7398
|
+
return 'vaadin.statistics.monthProcessed';
|
7399
|
+
}
|
7400
|
+
}, {
|
7401
|
+
key: 'optOutKey',
|
7402
|
+
get: function get$1() {
|
7403
|
+
return 'vaadin.statistics.optout';
|
7404
|
+
}
|
7405
|
+
}]);
|
7406
|
+
return UsageStatistics;
|
7407
|
+
}();
|
7408
|
+
|
7409
|
+
try {
|
7410
|
+
window.Vaadin = window.Vaadin || {};
|
7411
|
+
window.Vaadin.usageStatsChecker = window.Vaadin.usageStatsChecker || new UsageStatistics();
|
7412
|
+
window.Vaadin.usageStatsChecker.maybeGatherAndSend();
|
7413
|
+
} catch (e) {
|
7414
|
+
// Intentionally ignored as this is not a problem in the app being developed
|
7415
|
+
}
|
7416
|
+
|
7417
|
+
}());
|
7418
|
+
|
7419
|
+
vaadin-dev-mode:end **/
|
6941
7420
|
}
|
6942
7421
|
const fl = function() {
|
6943
7422
|
if (typeof ks == "function")
|
@@ -7715,7 +8194,7 @@ function ae(s) {
|
|
7715
8194
|
);
|
7716
8195
|
return t.length > 0 ? t[0] : s.target;
|
7717
8196
|
}
|
7718
|
-
function
|
8197
|
+
function Hl(s) {
|
7719
8198
|
const t = s.type, o = s.currentTarget[_o];
|
7720
8199
|
if (!o)
|
7721
8200
|
return;
|
@@ -7726,7 +8205,7 @@ function Rl(s) {
|
|
7726
8205
|
const n = s.changedTouches[0];
|
7727
8206
|
if (t === "touchstart" && s.touches.length === 1 && (se.touch.id = n.identifier), se.touch.id !== n.identifier)
|
7728
8207
|
return;
|
7729
|
-
zo || (t === "touchstart" || t === "touchmove") &&
|
8208
|
+
zo || (t === "touchstart" || t === "touchmove") && Rl(s);
|
7730
8209
|
}
|
7731
8210
|
const r = s[jt];
|
7732
8211
|
if (!r.skip) {
|
@@ -7736,7 +8215,7 @@ function Rl(s) {
|
|
7736
8215
|
a = fe[n], i[a.name] && !r[a.name] && (r[a.name] = !0, a[t](s));
|
7737
8216
|
}
|
7738
8217
|
}
|
7739
|
-
function
|
8218
|
+
function Rl(s) {
|
7740
8219
|
const t = s.changedTouches[0], e = s.type;
|
7741
8220
|
if (e === "touchstart")
|
7742
8221
|
se.touch.x = t.clientX, se.touch.y = t.clientY, se.touch.scrollDecided = !1;
|
@@ -7758,8 +8237,8 @@ function $l(s, t, e) {
|
|
7758
8237
|
let n = s[_o];
|
7759
8238
|
n || (s[_o] = n = {});
|
7760
8239
|
for (let a = 0, l, c; a < i.length; a++)
|
7761
|
-
l = i[a], !(Nl && Fo(l) && l !== "click") && (c = n[l], c || (n[l] = c = { _count: 0 }), c._count === 0 && s.addEventListener(l,
|
7762
|
-
s.addEventListener(t, e), o.touchAction &&
|
8240
|
+
l = i[a], !(Nl && Fo(l) && l !== "click") && (c = n[l], c || (n[l] = c = { _count: 0 }), c._count === 0 && s.addEventListener(l, Hl, Il(l)), c[r] = (c[r] || 0) + 1, c._count = (c._count || 0) + 1);
|
8241
|
+
s.addEventListener(t, e), o.touchAction && Hi(s, o.touchAction);
|
7763
8242
|
}
|
7764
8243
|
function Lo(s) {
|
7765
8244
|
fe.push(s), s.emits.forEach((t) => {
|
@@ -7775,12 +8254,12 @@ function Vl(s) {
|
|
7775
8254
|
}
|
7776
8255
|
return null;
|
7777
8256
|
}
|
7778
|
-
function
|
8257
|
+
function Hi(s, t) {
|
7779
8258
|
zo && s instanceof HTMLElement && yl.run(() => {
|
7780
8259
|
s.style.touchAction = t;
|
7781
8260
|
}), s[go] = t;
|
7782
8261
|
}
|
7783
|
-
function
|
8262
|
+
function Ho(s, t, e) {
|
7784
8263
|
const o = new Event(t, { bubbles: !0, cancelable: !0, composed: !0 });
|
7785
8264
|
if (o.detail = e, Tl(
|
7786
8265
|
/** @type {!Node} */
|
@@ -7822,11 +8301,11 @@ Lo({
|
|
7822
8301
|
if (!_e(s))
|
7823
8302
|
return;
|
7824
8303
|
const t = ae(s), e = this, o = (r) => {
|
7825
|
-
_e(r) || (
|
8304
|
+
_e(r) || (Re("up", t, r), De(e.info));
|
7826
8305
|
}, i = (r) => {
|
7827
|
-
_e(r) &&
|
8306
|
+
_e(r) && Re("up", t, r), De(e.info);
|
7828
8307
|
};
|
7829
|
-
Bi(this.info, o, i),
|
8308
|
+
Bi(this.info, o, i), Re("down", t, s);
|
7830
8309
|
},
|
7831
8310
|
/**
|
7832
8311
|
* @this {GestureRecognizer}
|
@@ -7834,7 +8313,7 @@ Lo({
|
|
7834
8313
|
* @return {void}
|
7835
8314
|
*/
|
7836
8315
|
touchstart(s) {
|
7837
|
-
|
8316
|
+
Re("down", ae(s), s.changedTouches[0], s);
|
7838
8317
|
},
|
7839
8318
|
/**
|
7840
8319
|
* @this {GestureRecognizer}
|
@@ -7842,11 +8321,11 @@ Lo({
|
|
7842
8321
|
* @return {void}
|
7843
8322
|
*/
|
7844
8323
|
touchend(s) {
|
7845
|
-
|
8324
|
+
Re("up", ae(s), s.changedTouches[0], s);
|
7846
8325
|
}
|
7847
8326
|
});
|
7848
|
-
function
|
7849
|
-
t &&
|
8327
|
+
function Re(s, t, e, o) {
|
8328
|
+
t && Ho(t, s, {
|
7850
8329
|
x: e.clientX,
|
7851
8330
|
y: e.clientY,
|
7852
8331
|
sourceEvent: e,
|
@@ -7943,7 +8422,7 @@ function qt(s, t, e) {
|
|
7943
8422
|
return;
|
7944
8423
|
const o = s.moves[s.moves.length - 2], i = s.moves[s.moves.length - 1], r = i.x - s.x, n = i.y - s.y;
|
7945
8424
|
let a, l = 0;
|
7946
|
-
o && (a = i.x - o.x, l = i.y - o.y),
|
8425
|
+
o && (a = i.x - o.x, l = i.y - o.y), Ho(t, "track", {
|
7947
8426
|
state: s.state,
|
7948
8427
|
x: e.clientX,
|
7949
8428
|
y: e.clientY,
|
@@ -8016,7 +8495,7 @@ function Is(s, t, e) {
|
|
8016
8495
|
!r || zl[
|
8017
8496
|
/** @type {!HTMLElement} */
|
8018
8497
|
r.localName
|
8019
|
-
] && r.hasAttribute("disabled") || (isNaN(o) || isNaN(i) || o <= Ss && i <= Ss || Fl(t)) && (s.prevent ||
|
8498
|
+
] && r.hasAttribute("disabled") || (isNaN(o) || isNaN(i) || o <= Ss && i <= Ss || Fl(t)) && (s.prevent || Ho(r, "tap", {
|
8020
8499
|
x: t.clientX,
|
8021
8500
|
y: t.clientY,
|
8022
8501
|
sourceEvent: t,
|
@@ -8028,7 +8507,7 @@ function Is(s, t, e) {
|
|
8028
8507
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
8029
8508
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
8030
8509
|
*/
|
8031
|
-
const
|
8510
|
+
const Ri = O(
|
8032
8511
|
(s) => class extends s {
|
8033
8512
|
static get properties() {
|
8034
8513
|
return {
|
@@ -8135,7 +8614,7 @@ const Dt = O(
|
|
8135
8614
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
8136
8615
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
8137
8616
|
*/
|
8138
|
-
const Yl = (s) => class extends
|
8617
|
+
const Yl = (s) => class extends Ri(Dt(s)) {
|
8139
8618
|
/**
|
8140
8619
|
* An array of activation keys.
|
8141
8620
|
*
|
@@ -8198,18 +8677,18 @@ const Yl = (s) => class extends Hi(Dt(s)) {
|
|
8198
8677
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
8199
8678
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
8200
8679
|
*/
|
8201
|
-
let
|
8680
|
+
let Ro = !1;
|
8202
8681
|
window.addEventListener(
|
8203
8682
|
"keydown",
|
8204
8683
|
() => {
|
8205
|
-
|
8684
|
+
Ro = !0;
|
8206
8685
|
},
|
8207
8686
|
{ capture: !0 }
|
8208
8687
|
);
|
8209
8688
|
window.addEventListener(
|
8210
8689
|
"mousedown",
|
8211
8690
|
() => {
|
8212
|
-
|
8691
|
+
Ro = !1;
|
8213
8692
|
},
|
8214
8693
|
{ capture: !0 }
|
8215
8694
|
);
|
@@ -8220,7 +8699,7 @@ function yo() {
|
|
8220
8699
|
return s;
|
8221
8700
|
}
|
8222
8701
|
function Ul() {
|
8223
|
-
return
|
8702
|
+
return Ro;
|
8224
8703
|
}
|
8225
8704
|
function Wl(s) {
|
8226
8705
|
const t = s.style;
|
@@ -8338,7 +8817,7 @@ const $o = O(
|
|
8338
8817
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
8339
8818
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
8340
8819
|
*/
|
8341
|
-
const Vi = (s) => class extends
|
8820
|
+
const Vi = (s) => class extends Ri(s) {
|
8342
8821
|
static get properties() {
|
8343
8822
|
return {
|
8344
8823
|
/**
|
@@ -10910,7 +11389,7 @@ function Bc(s, t, e) {
|
|
10910
11389
|
Ao.mixin && (o = Ao.mixin(o));
|
10911
11390
|
let i = class extends o {
|
10912
11391
|
};
|
10913
|
-
return i.prototype.__templatizeOptions = e, i.prototype._bindTemplate(s),
|
11392
|
+
return i.prototype.__templatizeOptions = e, i.prototype._bindTemplate(s), Rc(i, s, t, e), i;
|
10914
11393
|
}
|
10915
11394
|
function Lc(s, t, e, o) {
|
10916
11395
|
let i = e.forwardHostProp;
|
@@ -10934,7 +11413,7 @@ function Lc(s, t, e, o) {
|
|
10934
11413
|
n.prototype._addPropertyEffect(
|
10935
11414
|
"_host_" + l,
|
10936
11415
|
n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,
|
10937
|
-
{ fn:
|
11416
|
+
{ fn: Hc(l, i) }
|
10938
11417
|
), n.prototype._createNotifyingProperty("_host_" + l);
|
10939
11418
|
ii && o && Yc(t, e, o);
|
10940
11419
|
}
|
@@ -10951,7 +11430,7 @@ function Lc(s, t, e, o) {
|
|
10951
11430
|
}
|
10952
11431
|
}
|
10953
11432
|
}
|
10954
|
-
function
|
11433
|
+
function Hc(s, t) {
|
10955
11434
|
return function(o, i, r) {
|
10956
11435
|
t.call(
|
10957
11436
|
o.__templatizeOwner,
|
@@ -10960,7 +11439,7 @@ function Rc(s, t) {
|
|
10960
11439
|
);
|
10961
11440
|
};
|
10962
11441
|
}
|
10963
|
-
function
|
11442
|
+
function Rc(s, t, e, o) {
|
10964
11443
|
let i = e.hostProps || {};
|
10965
11444
|
for (let r in o.instanceProps) {
|
10966
11445
|
delete i[r];
|
@@ -11483,7 +11962,7 @@ class Ls extends Kc {
|
|
11483
11962
|
__debounceRender(t, e = 0) {
|
11484
11963
|
this.__renderDebouncer = Ct.debounce(
|
11485
11964
|
this.__renderDebouncer,
|
11486
|
-
e > 0 ?
|
11965
|
+
e > 0 ? Rn.after(e) : mi,
|
11487
11966
|
t.bind(this)
|
11488
11967
|
), Wc(this.__renderDebouncer);
|
11489
11968
|
}
|
@@ -12166,7 +12645,7 @@ const Qc = (s) => class extends s {
|
|
12166
12645
|
}
|
12167
12646
|
/** @protected */
|
12168
12647
|
_addListeners() {
|
12169
|
-
|
12648
|
+
Hi(this.$.scrollers, "pan-y"), X(this.$.scrollers, "track", this._track.bind(this)), X(this.shadowRoot.querySelector('[part="clear-button"]'), "tap", this._clear.bind(this)), X(this.shadowRoot.querySelector('[part="toggle-button"]'), "tap", this._cancel.bind(this)), X(
|
12170
12649
|
this.shadowRoot.querySelector('[part="years-toggle-button"]'),
|
12171
12650
|
"tap",
|
12172
12651
|
this._toggleYearScroller.bind(this)
|
@@ -15323,13 +15802,13 @@ class Eu extends Cu(mu(ye(Mi(le)))) {
|
|
15323
15802
|
}
|
15324
15803
|
}
|
15325
15804
|
W(Eu);
|
15326
|
-
function
|
15805
|
+
function Hs(s, t) {
|
15327
15806
|
Mr(s, t);
|
15328
15807
|
}
|
15329
15808
|
function Pu(s) {
|
15330
15809
|
Ir.set(s);
|
15331
15810
|
}
|
15332
|
-
const
|
15811
|
+
const Rs = {
|
15333
15812
|
en: {
|
15334
15813
|
titleBonusesHistory: "Bonus History",
|
15335
15814
|
dateFrom: "From:",
|
@@ -15399,6 +15878,13 @@ const Hs = {
|
|
15399
15878
|
dateTo: "İle:",
|
15400
15879
|
dateFilter: "Filtre",
|
15401
15880
|
noBonusHistory: "Seçilen dönem için bonusunuz yok."
|
15881
|
+
},
|
15882
|
+
"en-us": {
|
15883
|
+
titleBonusesHistory: "Bonus History",
|
15884
|
+
dateFrom: "From:",
|
15885
|
+
dateTo: "To:",
|
15886
|
+
dateFilter: "Filter",
|
15887
|
+
noBonusHistory: "You have no bonuses for the selected period."
|
15402
15888
|
}
|
15403
15889
|
};
|
15404
15890
|
function ku(s) {
|
@@ -15949,21 +16435,21 @@ function Nu(s) {
|
|
15949
16435
|
let te = 6;
|
15950
16436
|
function zu(s, t, e) {
|
15951
16437
|
let o;
|
15952
|
-
|
15953
|
-
let { endpoint: i = "" } = t, { session: r = "" } = t, { playerid: n = "" } = t, { lang: a = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: c = "" } = t, { translationurl: u = "" } = t, { bonushistorystatus: d = "" } = t, { bonushistorytype: h = "" } = t, p, f = window.navigator.userAgent, b =
|
16438
|
+
Hr(s, Vr, (_) => e(17, o = _));
|
16439
|
+
let { endpoint: i = "" } = t, { session: r = "" } = t, { playerid: n = "" } = t, { lang: a = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: c = "" } = t, { translationurl: u = "" } = t, { bonushistorystatus: d = "" } = t, { bonushistorytype: h = "" } = t, p, f = window.navigator.userAgent, b = Rr(f) !== "PC", v, w, E, N;
|
15954
16440
|
E = nt(/* @__PURE__ */ new Date()).format("YYYY-MM-DD"), N = nt(/* @__PURE__ */ new Date()).subtract(3, "months").format("YYYY-MM-DD");
|
15955
16441
|
let F = N, A = E, P = 0, M = 0, k = 0, K = 0, ze = 0, re = [];
|
15956
16442
|
const it = () => {
|
15957
16443
|
fetch(u).then((Y) => Y.json()).then((Y) => {
|
15958
16444
|
Object.keys(Y).forEach((Z) => {
|
15959
|
-
|
16445
|
+
Hs(Z, Y[Z]);
|
15960
16446
|
});
|
15961
16447
|
}).catch((Y) => {
|
15962
16448
|
console.log(Y);
|
15963
16449
|
});
|
15964
16450
|
};
|
15965
|
-
Object.keys(
|
15966
|
-
|
16451
|
+
Object.keys(Rs).forEach((_) => {
|
16452
|
+
Hs(_, Rs[_]);
|
15967
16453
|
});
|
15968
16454
|
const we = () => {
|
15969
16455
|
window.postMessage(
|