@everymatrix/player-bonus-history 1.49.2 → 1.50.1
Sign up to get free protection for your applications and to get access to all the features.
- package/components/{PlayerBonusCard-c7uGr4D2.js → PlayerBonusCard-BM2mjIL2.js} +562 -556
- package/components/{PlayerBonusCard-BHtjhHA4.cjs → PlayerBonusCard-gHXbbkkW.cjs} +7 -7
- package/components/{PlayerBonusHistory-Bwn0vTfu.js → PlayerBonusHistory-BBbarJ0C.js} +482 -3
- package/components/{PlayerBonusHistory-Bf9QTgAU.cjs → PlayerBonusHistory-CfHM7IPY.cjs} +481 -3
- package/es2015/player-bonus-history.cjs +1 -1
- package/es2015/player-bonus-history.js +1 -1
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";var ur=Object.defineProperty,hr=Object.defineProperties;var pr=Object.getOwnPropertyDescriptors;var Is=Object.getOwnPropertySymbols;var mr=Object.prototype.hasOwnProperty,fr=Object.prototype.propertyIsEnumerable;var Ns=(o,t,e)=>t in o?ur(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,vt=(o,t)=>{for(var e in t||(t={}))mr.call(t,e)&&Ns(o,e,t[e]);if(Is)for(var e of Is(t))fr.call(t,e)&&Ns(o,e,t[e]);return o},wt=(o,t)=>hr(o,pr(t));var Ke=(o,t,e)=>new Promise((s,i)=>{var r=l=>{try{a(e.next(l))}catch(c){i(c)}},n=l=>{try{a(e.throw(l))}catch(c){i(c)}},a=l=>l.done?s(l.value):Promise.resolve(l.value).then(r,n);a((e=e.apply(o,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./PlayerBonusCard-
|
1
|
+
"use strict";var ur=Object.defineProperty,hr=Object.defineProperties;var pr=Object.getOwnPropertyDescriptors;var Is=Object.getOwnPropertySymbols;var mr=Object.prototype.hasOwnProperty,fr=Object.prototype.propertyIsEnumerable;var Ns=(o,t,e)=>t in o?ur(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,vt=(o,t)=>{for(var e in t||(t={}))mr.call(t,e)&&Ns(o,e,t[e]);if(Is)for(var e of Is(t))fr.call(t,e)&&Ns(o,e,t[e]);return o},wt=(o,t)=>hr(o,pr(t));var Ke=(o,t,e)=>new Promise((s,i)=>{var r=l=>{try{a(e.next(l))}catch(c){i(c)}},n=l=>{try{a(e.throw(l))}catch(c){i(c)}},a=l=>l.done?s(l.value):Promise.resolve(l.value).then(r,n);a((e=e.apply(o,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./PlayerBonusCard-gHXbbkkW.cjs");if(typeof window!="undefined"){let o=function(t){return function(...e){try{return t.apply(this,e)}catch(s){if(s instanceof DOMException&&s.message.includes("has already been used with this registry")||s.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw s}}};customElements.define=o(customElements.define),Promise.resolve().then(()=>require("./PlayerBonusCard-gHXbbkkW.cjs")).then(t=>t.PlayerBonusCard_ce).then(({default:t})=>{!customElements.get("player-bonus-card")&&customElements.define("player-bonus-card",t.element)})}/**
|
2
2
|
* @license
|
3
3
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
@@ -714,7 +714,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
714
714
|
* be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
|
715
715
|
* Google as part of the polymer project is also subject to an additional IP
|
716
716
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
717
|
-
*/const ca="3.5.
|
717
|
+
*/const ca="3.5.2",co=window.ShadyCSS&&window.ShadyCSS.cssBuild,da=T(o=>{const t=la(ys(o));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let c=l._properties;for(let u in c){let h=c[u];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[u]=h)}}return l.__propertyDefaults}function s(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function i(l,c,u,h){u.computed&&(u.readOnly=!0),u.computed&&(l._hasReadOnlyEffect(c)?console.warn(`Cannot redefine computed property '${c}'.`):l._createComputedProperty(c,u.computed,h)),u.readOnly&&!l._hasReadOnlyEffect(c)?l._createReadOnlyProperty(c,!u.computed):u.readOnly===!1&&l._hasReadOnlyEffect(c)&&console.warn(`Cannot make readOnly property '${c}' non-readOnly.`),u.reflectToAttribute&&!l._hasReflectEffect(c)?l._createReflectedProperty(c):u.reflectToAttribute===!1&&l._hasReflectEffect(c)&&console.warn(`Cannot make reflected property '${c}' non-reflected.`),u.notify&&!l._hasNotifyEffect(c)?l._createNotifyingProperty(c):u.notify===!1&&l._hasNotifyEffect(c)&&console.warn(`Cannot make notify property '${c}' non-notify.`),u.observer&&l._createPropertyObserver(c,u.observer,h[u.observer]),l._addPropertyToAttributeMap(c)}function r(l,c,u,h){if(!co){const p=c.content.querySelectorAll("style"),m=Uo(c),f=rn(u),y=c.content.firstElementChild;for(let v=0;v<f.length;v++){let C=f[v];C.textContent=l._processStyleText(C.textContent,h),c.content.insertBefore(C,y)}let b=0;for(let v=0;v<m.length;v++){let C=m[v],O=p[b];O!==C?(C=C.cloneNode(!0),O.parentNode.insertBefore(C,O)):b++,C.textContent=l._processStyleText(C.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(c,u),Jr&&co&&Wr){const p=c.content.querySelectorAll("style");if(p){let m="";Array.from(p).forEach(f=>{m+=f.textContent,f.parentNode.removeChild(f)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(m)}}}function n(l){let c=null;if(l&&(!nt||qr)&&(c=Fe.import(l,"template"),nt&&!c))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return c}class a extends t{static get polymerElementVersion(){return ca}static _finalizeClass(){t._finalizeClass.call(this);const c=s(this);c&&this.createObservers(c,this._properties),this._prepareTemplate()}static _prepareTemplate(){let c=this.template;c&&(typeof c=="string"?(console.error("template getter must return HTMLTemplateElement"),c=null):Ho||(c=c.cloneNode(!0))),this.prototype._template=c}static createProperties(c){for(let u in c)i(this.prototype,u,c[u],c)}static createObservers(c,u){const h=this.prototype;for(let p=0;p<c.length;p++)h._createMethodObserver(c[p],u)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let c=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof c=="function"&&(c=c()),this._template=c!==void 0?c:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(c){this._template=c}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const c=this.importMeta;if(c)this._importPath=fs(c.url);else{const u=Fe.import(this.is);this._importPath=u&&u.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=jr,this.importPath=this.constructor.importPath;let c=e(this.constructor);if(c)for(let u in c){let h=c[u];if(this._canApplyPropertyDefault(u)){let p=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(u)?this._setPendingProperty(u,p,!0):this[u]=p}}}_canApplyPropertyDefault(c){return!this.hasOwnProperty(c)}static _processStyleText(c,u){return ms(c,u)}static _finalizeTemplate(c){const u=this.prototype._template;if(u&&!u.__polymerFinalized){u.__polymerFinalized=!0;const h=this.importPath,p=h?Ie(h):"";r(this,u,c,p),this.prototype._bindTemplate(u)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(c){const u=M(this);if(u.attachShadow)return c?(u.shadowRoot||(u.attachShadow({mode:"open",shadyUpgradeFragment:c}),u.shadowRoot.appendChild(c),this.constructor._styleSheet&&(u.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Kr&&window.ShadyDOM&&window.ShadyDOM.flushInitial(u.shadowRoot),u.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(c){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,c)}resolveUrl(c,u){return!u&&this.importPath&&(u=Ie(this.importPath)),Ie(c,u)}static _parseTemplateContent(c,u,h){return u.dynamicFns=u.dynamicFns||this._properties,t._parseTemplateContent.call(this,c,u,h)}static _addTemplatePropertyEffect(c,u,h){return $o&&!(u in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!c.nestedTemplate&&console.warn(`Property '${u}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,c,u,h)}}return a});/**
|
718
718
|
@license
|
719
719
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
720
720
|
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
@@ -2066,7 +2066,485 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|
2066
2066
|
* @license
|
2067
2067
|
* Copyright (c) 2021 - 2023 Vaadin Ltd.
|
2068
2068
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
2069
|
-
*/const Ce=T(o=>typeof o.prototype.addController=="function"?o:class extends o{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}}),Na=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,tt=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function za(){function o(){return!0}return pi(o)}function Ba(){try{return Fa()?!0:La()?tt?!Ra():!za():!1}catch(o){return!1}}function Fa(){return localStorage.getItem("vaadin.developmentmode.force")}function La(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Ra(){return!!(tt&&Object.keys(tt).map(t=>tt[t]).filter(t=>t.productionMode).length>0)}function pi(o,t){if(typeof o!="function")return;const e=Na.exec(o.toString());if(e)try{o=new Function(e[1])}catch(s){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",s)}return o(t)}window.Vaadin=window.Vaadin||{};const ho=function(o,t){if(window.Vaadin.developmentMode)return pi(o,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Ba());function Ha(){
|
2069
|
+
*/const Ce=T(o=>typeof o.prototype.addController=="function"?o:class extends o{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}}),Na=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,tt=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function za(){function o(){return!0}return pi(o)}function Ba(){try{return Fa()?!0:La()?tt?!Ra():!za():!1}catch(o){return!1}}function Fa(){return localStorage.getItem("vaadin.developmentmode.force")}function La(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Ra(){return!!(tt&&Object.keys(tt).map(t=>tt[t]).filter(t=>t.productionMode).length>0)}function pi(o,t){if(typeof o!="function")return;const e=Na.exec(o.toString());if(e)try{o=new Function(e[1])}catch(s){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",s)}return o(t)}window.Vaadin=window.Vaadin||{};const ho=function(o,t){if(window.Vaadin.developmentMode)return pi(o,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Ba());function Ha(){/*! vaadin-dev-mode:start
|
2070
|
+
(function () {
|
2071
|
+
'use strict';
|
2072
|
+
|
2073
|
+
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
|
2074
|
+
return typeof obj;
|
2075
|
+
} : function (obj) {
|
2076
|
+
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
2077
|
+
};
|
2078
|
+
|
2079
|
+
var classCallCheck = function (instance, Constructor) {
|
2080
|
+
if (!(instance instanceof Constructor)) {
|
2081
|
+
throw new TypeError("Cannot call a class as a function");
|
2082
|
+
}
|
2083
|
+
};
|
2084
|
+
|
2085
|
+
var createClass = function () {
|
2086
|
+
function defineProperties(target, props) {
|
2087
|
+
for (var i = 0; i < props.length; i++) {
|
2088
|
+
var descriptor = props[i];
|
2089
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
2090
|
+
descriptor.configurable = true;
|
2091
|
+
if ("value" in descriptor) descriptor.writable = true;
|
2092
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
2093
|
+
}
|
2094
|
+
}
|
2095
|
+
|
2096
|
+
return function (Constructor, protoProps, staticProps) {
|
2097
|
+
if (protoProps) defineProperties(Constructor.prototype, protoProps);
|
2098
|
+
if (staticProps) defineProperties(Constructor, staticProps);
|
2099
|
+
return Constructor;
|
2100
|
+
};
|
2101
|
+
}();
|
2102
|
+
|
2103
|
+
var getPolymerVersion = function getPolymerVersion() {
|
2104
|
+
return window.Polymer && window.Polymer.version;
|
2105
|
+
};
|
2106
|
+
|
2107
|
+
var StatisticsGatherer = function () {
|
2108
|
+
function StatisticsGatherer(logger) {
|
2109
|
+
classCallCheck(this, StatisticsGatherer);
|
2110
|
+
|
2111
|
+
this.now = new Date().getTime();
|
2112
|
+
this.logger = logger;
|
2113
|
+
}
|
2114
|
+
|
2115
|
+
createClass(StatisticsGatherer, [{
|
2116
|
+
key: 'frameworkVersionDetectors',
|
2117
|
+
value: function frameworkVersionDetectors() {
|
2118
|
+
return {
|
2119
|
+
'Flow': function Flow() {
|
2120
|
+
if (window.Vaadin && window.Vaadin.Flow && window.Vaadin.Flow.clients) {
|
2121
|
+
var flowVersions = Object.keys(window.Vaadin.Flow.clients).map(function (key) {
|
2122
|
+
return window.Vaadin.Flow.clients[key];
|
2123
|
+
}).filter(function (client) {
|
2124
|
+
return client.getVersionInfo;
|
2125
|
+
}).map(function (client) {
|
2126
|
+
return client.getVersionInfo().flow;
|
2127
|
+
});
|
2128
|
+
if (flowVersions.length > 0) {
|
2129
|
+
return flowVersions[0];
|
2130
|
+
}
|
2131
|
+
}
|
2132
|
+
},
|
2133
|
+
'Vaadin Framework': function VaadinFramework() {
|
2134
|
+
if (window.vaadin && window.vaadin.clients) {
|
2135
|
+
var frameworkVersions = Object.values(window.vaadin.clients).filter(function (client) {
|
2136
|
+
return client.getVersionInfo;
|
2137
|
+
}).map(function (client) {
|
2138
|
+
return client.getVersionInfo().vaadinVersion;
|
2139
|
+
});
|
2140
|
+
if (frameworkVersions.length > 0) {
|
2141
|
+
return frameworkVersions[0];
|
2142
|
+
}
|
2143
|
+
}
|
2144
|
+
},
|
2145
|
+
'AngularJs': function AngularJs() {
|
2146
|
+
if (window.angular && window.angular.version && window.angular.version) {
|
2147
|
+
return window.angular.version.full;
|
2148
|
+
}
|
2149
|
+
},
|
2150
|
+
'Angular': function Angular() {
|
2151
|
+
if (window.ng) {
|
2152
|
+
var tags = document.querySelectorAll("[ng-version]");
|
2153
|
+
if (tags.length > 0) {
|
2154
|
+
return tags[0].getAttribute("ng-version");
|
2155
|
+
}
|
2156
|
+
return "Unknown";
|
2157
|
+
}
|
2158
|
+
},
|
2159
|
+
'Backbone.js': function BackboneJs() {
|
2160
|
+
if (window.Backbone) {
|
2161
|
+
return window.Backbone.VERSION;
|
2162
|
+
}
|
2163
|
+
},
|
2164
|
+
'React': function React() {
|
2165
|
+
var reactSelector = '[data-reactroot], [data-reactid]';
|
2166
|
+
if (!!document.querySelector(reactSelector)) {
|
2167
|
+
// React does not publish the version by default
|
2168
|
+
return "unknown";
|
2169
|
+
}
|
2170
|
+
},
|
2171
|
+
'Ember': function Ember() {
|
2172
|
+
if (window.Em && window.Em.VERSION) {
|
2173
|
+
return window.Em.VERSION;
|
2174
|
+
} else if (window.Ember && window.Ember.VERSION) {
|
2175
|
+
return window.Ember.VERSION;
|
2176
|
+
}
|
2177
|
+
},
|
2178
|
+
'jQuery': function (_jQuery) {
|
2179
|
+
function jQuery() {
|
2180
|
+
return _jQuery.apply(this, arguments);
|
2181
|
+
}
|
2182
|
+
|
2183
|
+
jQuery.toString = function () {
|
2184
|
+
return _jQuery.toString();
|
2185
|
+
};
|
2186
|
+
|
2187
|
+
return jQuery;
|
2188
|
+
}(function () {
|
2189
|
+
if (typeof jQuery === 'function' && jQuery.prototype.jquery !== undefined) {
|
2190
|
+
return jQuery.prototype.jquery;
|
2191
|
+
}
|
2192
|
+
}),
|
2193
|
+
'Polymer': function Polymer() {
|
2194
|
+
var version = getPolymerVersion();
|
2195
|
+
if (version) {
|
2196
|
+
return version;
|
2197
|
+
}
|
2198
|
+
},
|
2199
|
+
'LitElement': function LitElement() {
|
2200
|
+
var version = window.litElementVersions && window.litElementVersions[0];
|
2201
|
+
if (version) {
|
2202
|
+
return version;
|
2203
|
+
}
|
2204
|
+
},
|
2205
|
+
'LitHtml': function LitHtml() {
|
2206
|
+
var version = window.litHtmlVersions && window.litHtmlVersions[0];
|
2207
|
+
if (version) {
|
2208
|
+
return version;
|
2209
|
+
}
|
2210
|
+
},
|
2211
|
+
'Vue.js': function VueJs() {
|
2212
|
+
if (window.Vue) {
|
2213
|
+
return window.Vue.version;
|
2214
|
+
}
|
2215
|
+
}
|
2216
|
+
};
|
2217
|
+
}
|
2218
|
+
}, {
|
2219
|
+
key: 'getUsedVaadinElements',
|
2220
|
+
value: function getUsedVaadinElements(elements) {
|
2221
|
+
var version = getPolymerVersion();
|
2222
|
+
var elementClasses = void 0;
|
2223
|
+
// NOTE: In case you edit the code here, YOU MUST UPDATE any statistics reporting code in Flow.
|
2224
|
+
// Check all locations calling the method getEntries() in
|
2225
|
+
// https://github.com/vaadin/flow/blob/master/flow-server/src/main/java/com/vaadin/flow/internal/UsageStatistics.java#L106
|
2226
|
+
// Currently it is only used by BootstrapHandler.
|
2227
|
+
if (version && version.indexOf('2') === 0) {
|
2228
|
+
// Polymer 2: components classes are stored in window.Vaadin
|
2229
|
+
elementClasses = Object.keys(window.Vaadin).map(function (c) {
|
2230
|
+
return window.Vaadin[c];
|
2231
|
+
}).filter(function (c) {
|
2232
|
+
return c.is;
|
2233
|
+
});
|
2234
|
+
} else {
|
2235
|
+
// Polymer 3: components classes are stored in window.Vaadin.registrations
|
2236
|
+
elementClasses = window.Vaadin.registrations || [];
|
2237
|
+
}
|
2238
|
+
elementClasses.forEach(function (klass) {
|
2239
|
+
var version = klass.version ? klass.version : "0.0.0";
|
2240
|
+
elements[klass.is] = { version: version };
|
2241
|
+
});
|
2242
|
+
}
|
2243
|
+
}, {
|
2244
|
+
key: 'getUsedVaadinThemes',
|
2245
|
+
value: function getUsedVaadinThemes(themes) {
|
2246
|
+
['Lumo', 'Material'].forEach(function (themeName) {
|
2247
|
+
var theme;
|
2248
|
+
var version = getPolymerVersion();
|
2249
|
+
if (version && version.indexOf('2') === 0) {
|
2250
|
+
// Polymer 2: themes are stored in window.Vaadin
|
2251
|
+
theme = window.Vaadin[themeName];
|
2252
|
+
} else {
|
2253
|
+
// Polymer 3: themes are stored in custom element registry
|
2254
|
+
theme = customElements.get('vaadin-' + themeName.toLowerCase() + '-styles');
|
2255
|
+
}
|
2256
|
+
if (theme && theme.version) {
|
2257
|
+
themes[themeName] = { version: theme.version };
|
2258
|
+
}
|
2259
|
+
});
|
2260
|
+
}
|
2261
|
+
}, {
|
2262
|
+
key: 'getFrameworks',
|
2263
|
+
value: function getFrameworks(frameworks) {
|
2264
|
+
var detectors = this.frameworkVersionDetectors();
|
2265
|
+
Object.keys(detectors).forEach(function (framework) {
|
2266
|
+
var detector = detectors[framework];
|
2267
|
+
try {
|
2268
|
+
var version = detector();
|
2269
|
+
if (version) {
|
2270
|
+
frameworks[framework] = { version: version };
|
2271
|
+
}
|
2272
|
+
} catch (e) {}
|
2273
|
+
});
|
2274
|
+
}
|
2275
|
+
}, {
|
2276
|
+
key: 'gather',
|
2277
|
+
value: function gather(storage) {
|
2278
|
+
var storedStats = storage.read();
|
2279
|
+
var gatheredStats = {};
|
2280
|
+
var types = ["elements", "frameworks", "themes"];
|
2281
|
+
|
2282
|
+
types.forEach(function (type) {
|
2283
|
+
gatheredStats[type] = {};
|
2284
|
+
if (!storedStats[type]) {
|
2285
|
+
storedStats[type] = {};
|
2286
|
+
}
|
2287
|
+
});
|
2288
|
+
|
2289
|
+
var previousStats = JSON.stringify(storedStats);
|
2290
|
+
|
2291
|
+
this.getUsedVaadinElements(gatheredStats.elements);
|
2292
|
+
this.getFrameworks(gatheredStats.frameworks);
|
2293
|
+
this.getUsedVaadinThemes(gatheredStats.themes);
|
2294
|
+
|
2295
|
+
var now = this.now;
|
2296
|
+
types.forEach(function (type) {
|
2297
|
+
var keys = Object.keys(gatheredStats[type]);
|
2298
|
+
keys.forEach(function (key) {
|
2299
|
+
if (!storedStats[type][key] || _typeof(storedStats[type][key]) != _typeof({})) {
|
2300
|
+
storedStats[type][key] = { firstUsed: now };
|
2301
|
+
}
|
2302
|
+
// Discards any previously logged version number
|
2303
|
+
storedStats[type][key].version = gatheredStats[type][key].version;
|
2304
|
+
storedStats[type][key].lastUsed = now;
|
2305
|
+
});
|
2306
|
+
});
|
2307
|
+
|
2308
|
+
var newStats = JSON.stringify(storedStats);
|
2309
|
+
storage.write(newStats);
|
2310
|
+
if (newStats != previousStats && Object.keys(storedStats).length > 0) {
|
2311
|
+
this.logger.debug("New stats: " + newStats);
|
2312
|
+
}
|
2313
|
+
}
|
2314
|
+
}]);
|
2315
|
+
return StatisticsGatherer;
|
2316
|
+
}();
|
2317
|
+
|
2318
|
+
var StatisticsStorage = function () {
|
2319
|
+
function StatisticsStorage(key) {
|
2320
|
+
classCallCheck(this, StatisticsStorage);
|
2321
|
+
|
2322
|
+
this.key = key;
|
2323
|
+
}
|
2324
|
+
|
2325
|
+
createClass(StatisticsStorage, [{
|
2326
|
+
key: 'read',
|
2327
|
+
value: function read() {
|
2328
|
+
var localStorageStatsString = localStorage.getItem(this.key);
|
2329
|
+
try {
|
2330
|
+
return JSON.parse(localStorageStatsString ? localStorageStatsString : '{}');
|
2331
|
+
} catch (e) {
|
2332
|
+
return {};
|
2333
|
+
}
|
2334
|
+
}
|
2335
|
+
}, {
|
2336
|
+
key: 'write',
|
2337
|
+
value: function write(data) {
|
2338
|
+
localStorage.setItem(this.key, data);
|
2339
|
+
}
|
2340
|
+
}, {
|
2341
|
+
key: 'clear',
|
2342
|
+
value: function clear() {
|
2343
|
+
localStorage.removeItem(this.key);
|
2344
|
+
}
|
2345
|
+
}, {
|
2346
|
+
key: 'isEmpty',
|
2347
|
+
value: function isEmpty() {
|
2348
|
+
var storedStats = this.read();
|
2349
|
+
var empty = true;
|
2350
|
+
Object.keys(storedStats).forEach(function (key) {
|
2351
|
+
if (Object.keys(storedStats[key]).length > 0) {
|
2352
|
+
empty = false;
|
2353
|
+
}
|
2354
|
+
});
|
2355
|
+
|
2356
|
+
return empty;
|
2357
|
+
}
|
2358
|
+
}]);
|
2359
|
+
return StatisticsStorage;
|
2360
|
+
}();
|
2361
|
+
|
2362
|
+
var StatisticsSender = function () {
|
2363
|
+
function StatisticsSender(url, logger) {
|
2364
|
+
classCallCheck(this, StatisticsSender);
|
2365
|
+
|
2366
|
+
this.url = url;
|
2367
|
+
this.logger = logger;
|
2368
|
+
}
|
2369
|
+
|
2370
|
+
createClass(StatisticsSender, [{
|
2371
|
+
key: 'send',
|
2372
|
+
value: function send(data, errorHandler) {
|
2373
|
+
var logger = this.logger;
|
2374
|
+
|
2375
|
+
if (navigator.onLine === false) {
|
2376
|
+
logger.debug("Offline, can't send");
|
2377
|
+
errorHandler();
|
2378
|
+
return;
|
2379
|
+
}
|
2380
|
+
logger.debug("Sending data to " + this.url);
|
2381
|
+
|
2382
|
+
var req = new XMLHttpRequest();
|
2383
|
+
req.withCredentials = true;
|
2384
|
+
req.addEventListener("load", function () {
|
2385
|
+
// Stats sent, nothing more to do
|
2386
|
+
logger.debug("Response: " + req.responseText);
|
2387
|
+
});
|
2388
|
+
req.addEventListener("error", function () {
|
2389
|
+
logger.debug("Send failed");
|
2390
|
+
errorHandler();
|
2391
|
+
});
|
2392
|
+
req.addEventListener("abort", function () {
|
2393
|
+
logger.debug("Send aborted");
|
2394
|
+
errorHandler();
|
2395
|
+
});
|
2396
|
+
req.open("POST", this.url);
|
2397
|
+
req.setRequestHeader("Content-Type", "application/json");
|
2398
|
+
req.send(data);
|
2399
|
+
}
|
2400
|
+
}]);
|
2401
|
+
return StatisticsSender;
|
2402
|
+
}();
|
2403
|
+
|
2404
|
+
var StatisticsLogger = function () {
|
2405
|
+
function StatisticsLogger(id) {
|
2406
|
+
classCallCheck(this, StatisticsLogger);
|
2407
|
+
|
2408
|
+
this.id = id;
|
2409
|
+
}
|
2410
|
+
|
2411
|
+
createClass(StatisticsLogger, [{
|
2412
|
+
key: '_isDebug',
|
2413
|
+
value: function _isDebug() {
|
2414
|
+
return localStorage.getItem("vaadin." + this.id + ".debug");
|
2415
|
+
}
|
2416
|
+
}, {
|
2417
|
+
key: 'debug',
|
2418
|
+
value: function debug(msg) {
|
2419
|
+
if (this._isDebug()) {
|
2420
|
+
console.info(this.id + ": " + msg);
|
2421
|
+
}
|
2422
|
+
}
|
2423
|
+
}]);
|
2424
|
+
return StatisticsLogger;
|
2425
|
+
}();
|
2426
|
+
|
2427
|
+
var UsageStatistics = function () {
|
2428
|
+
function UsageStatistics() {
|
2429
|
+
classCallCheck(this, UsageStatistics);
|
2430
|
+
|
2431
|
+
this.now = new Date();
|
2432
|
+
this.timeNow = this.now.getTime();
|
2433
|
+
this.gatherDelay = 10; // Delay between loading this file and gathering stats
|
2434
|
+
this.initialDelay = 24 * 60 * 60;
|
2435
|
+
|
2436
|
+
this.logger = new StatisticsLogger("statistics");
|
2437
|
+
this.storage = new StatisticsStorage("vaadin.statistics.basket");
|
2438
|
+
this.gatherer = new StatisticsGatherer(this.logger);
|
2439
|
+
this.sender = new StatisticsSender("https://tools.vaadin.com/usage-stats/submit", this.logger);
|
2440
|
+
}
|
2441
|
+
|
2442
|
+
createClass(UsageStatistics, [{
|
2443
|
+
key: 'maybeGatherAndSend',
|
2444
|
+
value: function maybeGatherAndSend() {
|
2445
|
+
var _this = this;
|
2446
|
+
|
2447
|
+
if (localStorage.getItem(UsageStatistics.optOutKey)) {
|
2448
|
+
return;
|
2449
|
+
}
|
2450
|
+
this.gatherer.gather(this.storage);
|
2451
|
+
setTimeout(function () {
|
2452
|
+
_this.maybeSend();
|
2453
|
+
}, this.gatherDelay * 1000);
|
2454
|
+
}
|
2455
|
+
}, {
|
2456
|
+
key: 'lottery',
|
2457
|
+
value: function lottery() {
|
2458
|
+
return true;
|
2459
|
+
}
|
2460
|
+
}, {
|
2461
|
+
key: 'currentMonth',
|
2462
|
+
value: function currentMonth() {
|
2463
|
+
return this.now.getYear() * 12 + this.now.getMonth();
|
2464
|
+
}
|
2465
|
+
}, {
|
2466
|
+
key: 'maybeSend',
|
2467
|
+
value: function maybeSend() {
|
2468
|
+
var firstUse = Number(localStorage.getItem(UsageStatistics.firstUseKey));
|
2469
|
+
var monthProcessed = Number(localStorage.getItem(UsageStatistics.monthProcessedKey));
|
2470
|
+
|
2471
|
+
if (!firstUse) {
|
2472
|
+
// Use a grace period to avoid interfering with tests, incognito mode etc
|
2473
|
+
firstUse = this.timeNow;
|
2474
|
+
localStorage.setItem(UsageStatistics.firstUseKey, firstUse);
|
2475
|
+
}
|
2476
|
+
|
2477
|
+
if (this.timeNow < firstUse + this.initialDelay * 1000) {
|
2478
|
+
this.logger.debug("No statistics will be sent until the initial delay of " + this.initialDelay + "s has passed");
|
2479
|
+
return;
|
2480
|
+
}
|
2481
|
+
if (this.currentMonth() <= monthProcessed) {
|
2482
|
+
this.logger.debug("This month has already been processed");
|
2483
|
+
return;
|
2484
|
+
}
|
2485
|
+
localStorage.setItem(UsageStatistics.monthProcessedKey, this.currentMonth());
|
2486
|
+
// Use random sampling
|
2487
|
+
if (this.lottery()) {
|
2488
|
+
this.logger.debug("Congratulations, we have a winner!");
|
2489
|
+
} else {
|
2490
|
+
this.logger.debug("Sorry, no stats from you this time");
|
2491
|
+
return;
|
2492
|
+
}
|
2493
|
+
|
2494
|
+
this.send();
|
2495
|
+
}
|
2496
|
+
}, {
|
2497
|
+
key: 'send',
|
2498
|
+
value: function send() {
|
2499
|
+
// Ensure we have the latest data
|
2500
|
+
this.gatherer.gather(this.storage);
|
2501
|
+
|
2502
|
+
// Read, send and clean up
|
2503
|
+
var data = this.storage.read();
|
2504
|
+
data["firstUse"] = Number(localStorage.getItem(UsageStatistics.firstUseKey));
|
2505
|
+
data["usageStatisticsVersion"] = UsageStatistics.version;
|
2506
|
+
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';
|
2507
|
+
var self = this;
|
2508
|
+
this.sender.send(info + JSON.stringify(data), function () {
|
2509
|
+
// Revert the 'month processed' flag
|
2510
|
+
localStorage.setItem(UsageStatistics.monthProcessedKey, self.currentMonth() - 1);
|
2511
|
+
});
|
2512
|
+
}
|
2513
|
+
}], [{
|
2514
|
+
key: 'version',
|
2515
|
+
get: function get$1() {
|
2516
|
+
return '2.1.2';
|
2517
|
+
}
|
2518
|
+
}, {
|
2519
|
+
key: 'firstUseKey',
|
2520
|
+
get: function get$1() {
|
2521
|
+
return 'vaadin.statistics.firstuse';
|
2522
|
+
}
|
2523
|
+
}, {
|
2524
|
+
key: 'monthProcessedKey',
|
2525
|
+
get: function get$1() {
|
2526
|
+
return 'vaadin.statistics.monthProcessed';
|
2527
|
+
}
|
2528
|
+
}, {
|
2529
|
+
key: 'optOutKey',
|
2530
|
+
get: function get$1() {
|
2531
|
+
return 'vaadin.statistics.optout';
|
2532
|
+
}
|
2533
|
+
}]);
|
2534
|
+
return UsageStatistics;
|
2535
|
+
}();
|
2536
|
+
|
2537
|
+
try {
|
2538
|
+
window.Vaadin = window.Vaadin || {};
|
2539
|
+
window.Vaadin.usageStatsChecker = window.Vaadin.usageStatsChecker || new UsageStatistics();
|
2540
|
+
window.Vaadin.usageStatsChecker.maybeGatherAndSend();
|
2541
|
+
} catch (e) {
|
2542
|
+
// Intentionally ignored as this is not a problem in the app being developed
|
2543
|
+
}
|
2544
|
+
|
2545
|
+
}());
|
2546
|
+
|
2547
|
+
vaadin-dev-mode:end **/}const $a=function(){if(typeof ho=="function")return ho(Ha)};/**
|
2070
2548
|
* @license
|
2071
2549
|
* Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
2072
2550
|
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerBonusHistory-
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/PlayerBonusHistory-CfHM7IPY.cjs")).then(({default:t})=>{!customElements.get("player-bonus-history")&&customElements.define("player-bonus-history",t.element)})}
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
10
10
|
}
|
11
11
|
};
|
12
12
|
};
|
13
|
-
customElements.define = n(customElements.define), import("../components/PlayerBonusHistory-
|
13
|
+
customElements.define = n(customElements.define), import("../components/PlayerBonusHistory-BBbarJ0C.js").then(({ default: t }) => {
|
14
14
|
!customElements.get("player-bonus-history") && customElements.define("player-bonus-history", t.element);
|
15
15
|
});
|
16
16
|
}
|