@everymatrix/player-bonus-history 1.65.1 → 1.65.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerBonusHistory-CEujMc3y.js → PlayerBonusHistory-B4BL_qYl.js} +836 -834
- package/components/{PlayerBonusHistory-ClKkZQGd.js → PlayerBonusHistory-BWSWOXbz.js} +1159 -1157
- package/components/{PlayerBonusHistory-NdV2PIy_.cjs → PlayerBonusHistory-CgvOppmD.cjs} +155 -155
- package/es2015/player-bonus-history.cjs +1 -1
- package/es2015/player-bonus-history.js +1 -1
- package/esnext/player-bonus-history.js +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
import { a as Or, $ as Mr, c as Ir, S as Nr, i as Fr, s as Br, f as W, b as Lr, n as Gi, d as Q, e as Z, g as T, h as zr, j as Rr, k as dt, l as Hr, o as $r, m as Vr, p as Ur, q as Nt, r as Oe, t as p, u as g, v as me, w as $, x as j, y as w, z as ke, A as gt, B as Us, C as Yr, D as Ys, E as Wr, F as jr, G as qr, H as Kr } from "./PlayerBonusCard-AYayTWZ9.js";
|
|
2
|
+
function Xi(s, t) {
|
|
3
|
+
Or(s, t);
|
|
4
4
|
}
|
|
5
|
-
function
|
|
6
|
-
|
|
5
|
+
function Gr(s) {
|
|
6
|
+
Mr.set(s);
|
|
7
7
|
}
|
|
8
|
-
const
|
|
8
|
+
const Ji = {
|
|
9
9
|
en: {
|
|
10
10
|
titleBonusesHistory: "Bonus History",
|
|
11
11
|
dateFrom: "From:",
|
|
@@ -126,18 +126,18 @@ function ee(s, t = "24.5.12") {
|
|
|
126
126
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
127
127
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
128
128
|
*/
|
|
129
|
-
class
|
|
129
|
+
class Xr extends HTMLElement {
|
|
130
130
|
static get is() {
|
|
131
131
|
return "vaadin-lumo-styles";
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
ee(
|
|
134
|
+
ee(Xr);
|
|
135
135
|
/**
|
|
136
136
|
* @license
|
|
137
137
|
* Copyright 2019 Google LLC
|
|
138
138
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
139
139
|
*/
|
|
140
|
-
const mt = globalThis, bi = mt.ShadowRoot && (mt.ShadyCSS === void 0 || mt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, vi = Symbol(),
|
|
140
|
+
const mt = globalThis, bi = mt.ShadowRoot && (mt.ShadyCSS === void 0 || mt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, vi = Symbol(), Qi = /* @__PURE__ */ new WeakMap();
|
|
141
141
|
let wi = class {
|
|
142
142
|
constructor(t, e, i) {
|
|
143
143
|
if (this._$cssResult$ = !0, i !== vi)
|
|
@@ -149,7 +149,7 @@ let wi = class {
|
|
|
149
149
|
const e = this.t;
|
|
150
150
|
if (bi && t === void 0) {
|
|
151
151
|
const i = e !== void 0 && e.length === 1;
|
|
152
|
-
i && (t =
|
|
152
|
+
i && (t = Qi.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Qi.set(e, t));
|
|
153
153
|
}
|
|
154
154
|
return t;
|
|
155
155
|
}
|
|
@@ -157,7 +157,7 @@ let wi = class {
|
|
|
157
157
|
return this.cssText;
|
|
158
158
|
}
|
|
159
159
|
};
|
|
160
|
-
const
|
|
160
|
+
const Jr = (s) => new wi(typeof s == "string" ? s : s + "", void 0, vi), x = (s, ...t) => {
|
|
161
161
|
const e = s.length === 1 ? s[0] : t.reduce((i, o, r) => i + ((n) => {
|
|
162
162
|
if (n._$cssResult$ === !0)
|
|
163
163
|
return n.cssText;
|
|
@@ -166,7 +166,7 @@ const Xr = (s) => new wi(typeof s == "string" ? s : s + "", void 0, vi), x = (s,
|
|
|
166
166
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
167
167
|
})(o) + s[r + 1], s[0]);
|
|
168
168
|
return new wi(e, s, vi);
|
|
169
|
-
},
|
|
169
|
+
}, Ws = (s, t) => {
|
|
170
170
|
if (bi)
|
|
171
171
|
s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
172
172
|
else
|
|
@@ -174,21 +174,21 @@ const Xr = (s) => new wi(typeof s == "string" ? s : s + "", void 0, vi), x = (s,
|
|
|
174
174
|
const i = document.createElement("style"), o = mt.litNonce;
|
|
175
175
|
o !== void 0 && i.setAttribute("nonce", o), i.textContent = e.cssText, s.appendChild(i);
|
|
176
176
|
}
|
|
177
|
-
},
|
|
177
|
+
}, Zi = bi ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
|
|
178
178
|
let e = "";
|
|
179
179
|
for (const i of t.cssRules)
|
|
180
180
|
e += i.cssText;
|
|
181
|
-
return
|
|
181
|
+
return Jr(e);
|
|
182
182
|
})(s) : s;
|
|
183
183
|
/**
|
|
184
184
|
* @license
|
|
185
185
|
* Copyright 2017 Google LLC
|
|
186
186
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
187
187
|
*/
|
|
188
|
-
const { is:
|
|
188
|
+
const { is: Qr, defineProperty: Zr, getOwnPropertyDescriptor: en, getOwnPropertyNames: tn, getOwnPropertySymbols: sn, getPrototypeOf: on } = Object, Pt = globalThis, es = Pt.trustedTypes, rn = es ? es.emptyScript : "", nn = Pt.reactiveElementPolyfillSupport, Je = (s, t) => s, Xt = { toAttribute(s, t) {
|
|
189
189
|
switch (t) {
|
|
190
190
|
case Boolean:
|
|
191
|
-
s = s ?
|
|
191
|
+
s = s ? rn : null;
|
|
192
192
|
break;
|
|
193
193
|
case Object:
|
|
194
194
|
case Array:
|
|
@@ -213,7 +213,7 @@ const { is: Jr, defineProperty: Qr, getOwnPropertyDescriptor: Zr, getOwnProperty
|
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
return e;
|
|
216
|
-
} },
|
|
216
|
+
} }, js = (s, t) => !Qr(s, t), ts = { attribute: !0, type: String, converter: Xt, reflect: !1, useDefault: !1, hasChanged: js };
|
|
217
217
|
Symbol.metadata ??= Symbol("metadata"), Pt.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
218
218
|
class Se extends HTMLElement {
|
|
219
219
|
static addInitializer(t) {
|
|
@@ -222,39 +222,37 @@ class Se extends HTMLElement {
|
|
|
222
222
|
static get observedAttributes() {
|
|
223
223
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
224
224
|
}
|
|
225
|
-
static createProperty(t, e =
|
|
226
|
-
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
225
|
+
static createProperty(t, e = ts) {
|
|
226
|
+
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
227
227
|
const i = Symbol(), o = this.getPropertyDescriptor(t, i, e);
|
|
228
|
-
o !== void 0 &&
|
|
228
|
+
o !== void 0 && Zr(this.prototype, t, o);
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
static getPropertyDescriptor(t, e, i) {
|
|
232
|
-
const { get: o, set: r } =
|
|
232
|
+
const { get: o, set: r } = en(this.prototype, t) ?? { get() {
|
|
233
233
|
return this[e];
|
|
234
234
|
}, set(n) {
|
|
235
235
|
this[e] = n;
|
|
236
236
|
} };
|
|
237
|
-
return { get() {
|
|
238
|
-
return o?.call(this);
|
|
239
|
-
}, set(n) {
|
|
237
|
+
return { get: o, set(n) {
|
|
240
238
|
const a = o?.call(this);
|
|
241
|
-
r
|
|
239
|
+
r?.call(this, n), this.requestUpdate(t, a, i);
|
|
242
240
|
}, configurable: !0, enumerable: !0 };
|
|
243
241
|
}
|
|
244
242
|
static getPropertyOptions(t) {
|
|
245
|
-
return this.elementProperties.get(t) ??
|
|
243
|
+
return this.elementProperties.get(t) ?? ts;
|
|
246
244
|
}
|
|
247
245
|
static _$Ei() {
|
|
248
246
|
if (this.hasOwnProperty(Je("elementProperties")))
|
|
249
247
|
return;
|
|
250
|
-
const t =
|
|
248
|
+
const t = on(this);
|
|
251
249
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
252
250
|
}
|
|
253
251
|
static finalize() {
|
|
254
252
|
if (this.hasOwnProperty(Je("finalized")))
|
|
255
253
|
return;
|
|
256
254
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(Je("properties"))) {
|
|
257
|
-
const e = this.properties, i = [...
|
|
255
|
+
const e = this.properties, i = [...tn(e), ...sn(e)];
|
|
258
256
|
for (const o of i)
|
|
259
257
|
this.createProperty(o, e[o]);
|
|
260
258
|
}
|
|
@@ -277,9 +275,9 @@ class Se extends HTMLElement {
|
|
|
277
275
|
if (Array.isArray(t)) {
|
|
278
276
|
const i = new Set(t.flat(1 / 0).reverse());
|
|
279
277
|
for (const o of i)
|
|
280
|
-
e.unshift(
|
|
278
|
+
e.unshift(Zi(o));
|
|
281
279
|
} else
|
|
282
|
-
t !== void 0 && e.push(
|
|
280
|
+
t !== void 0 && e.push(Zi(t));
|
|
283
281
|
return e;
|
|
284
282
|
}
|
|
285
283
|
static _$Eu(t, e) {
|
|
@@ -306,7 +304,7 @@ class Se extends HTMLElement {
|
|
|
306
304
|
}
|
|
307
305
|
createRenderRoot() {
|
|
308
306
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
309
|
-
return
|
|
307
|
+
return Ws(t, this.constructor.elementStyles), t;
|
|
310
308
|
}
|
|
311
309
|
connectedCallback() {
|
|
312
310
|
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach((t) => t.hostConnected?.());
|
|
@@ -319,7 +317,7 @@ class Se extends HTMLElement {
|
|
|
319
317
|
attributeChangedCallback(t, e, i) {
|
|
320
318
|
this._$AK(t, i);
|
|
321
319
|
}
|
|
322
|
-
_$
|
|
320
|
+
_$ET(t, e) {
|
|
323
321
|
const i = this.constructor.elementProperties.get(t), o = this.constructor._$Eu(t, i);
|
|
324
322
|
if (o !== void 0 && i.reflect === !0) {
|
|
325
323
|
const r = (i.converter?.toAttribute !== void 0 ? i.converter : Xt).toAttribute(e, i.type);
|
|
@@ -330,21 +328,22 @@ class Se extends HTMLElement {
|
|
|
330
328
|
const i = this.constructor, o = i._$Eh.get(t);
|
|
331
329
|
if (o !== void 0 && this._$Em !== o) {
|
|
332
330
|
const r = i.getPropertyOptions(o), n = typeof r.converter == "function" ? { fromAttribute: r.converter } : r.converter?.fromAttribute !== void 0 ? r.converter : Xt;
|
|
333
|
-
this._$Em = o, this[o] = n.fromAttribute(e, r.type), this._$Em = null;
|
|
331
|
+
this._$Em = o, this[o] = n.fromAttribute(e, r.type) ?? this._$Ej?.get(o) ?? null, this._$Em = null;
|
|
334
332
|
}
|
|
335
333
|
}
|
|
336
334
|
requestUpdate(t, e, i) {
|
|
337
335
|
if (t !== void 0) {
|
|
338
|
-
|
|
336
|
+
const o = this.constructor, r = this[t];
|
|
337
|
+
if (i ??= o.getPropertyOptions(t), !((i.hasChanged ?? js)(r, e) || i.useDefault && i.reflect && r === this._$Ej?.get(t) && !this.hasAttribute(o._$Eu(t, i))))
|
|
339
338
|
return;
|
|
340
|
-
this.
|
|
339
|
+
this.C(t, e, i);
|
|
341
340
|
}
|
|
342
|
-
this.isUpdatePending === !1 && (this._$ES = this._$
|
|
341
|
+
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
343
342
|
}
|
|
344
|
-
|
|
345
|
-
this._$AL.has(t) || this._$AL.set(t, e),
|
|
343
|
+
C(t, e, { useDefault: i, reflect: o, wrapped: r }, n) {
|
|
344
|
+
i && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t) && (this._$Ej.set(t, n ?? e ?? this[t]), r !== !0 || n !== void 0) || (this._$AL.has(t) || (this.hasUpdated || i || (e = void 0), this._$AL.set(t, e)), o === !0 && this._$Em !== t && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t));
|
|
346
345
|
}
|
|
347
|
-
async _$
|
|
346
|
+
async _$EP() {
|
|
348
347
|
this.isUpdatePending = !0;
|
|
349
348
|
try {
|
|
350
349
|
await this._$ES;
|
|
@@ -368,15 +367,17 @@ class Se extends HTMLElement {
|
|
|
368
367
|
}
|
|
369
368
|
const i = this.constructor.elementProperties;
|
|
370
369
|
if (i.size > 0)
|
|
371
|
-
for (const [o, r] of i)
|
|
372
|
-
|
|
370
|
+
for (const [o, r] of i) {
|
|
371
|
+
const { wrapped: n } = r, a = this[o];
|
|
372
|
+
n !== !0 || this._$AL.has(o) || a === void 0 || this.C(o, void 0, r, a);
|
|
373
|
+
}
|
|
373
374
|
}
|
|
374
375
|
let t = !1;
|
|
375
376
|
const e = this._$AL;
|
|
376
377
|
try {
|
|
377
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), this._$EO?.forEach((i) => i.hostUpdate?.()), this.update(e)) : this._$
|
|
378
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), this._$EO?.forEach((i) => i.hostUpdate?.()), this.update(e)) : this._$EM();
|
|
378
379
|
} catch (i) {
|
|
379
|
-
throw t = !1, this._$
|
|
380
|
+
throw t = !1, this._$EM(), i;
|
|
380
381
|
}
|
|
381
382
|
t && this._$AE(e);
|
|
382
383
|
}
|
|
@@ -385,7 +386,7 @@ class Se extends HTMLElement {
|
|
|
385
386
|
_$AE(t) {
|
|
386
387
|
this._$EO?.forEach((e) => e.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
387
388
|
}
|
|
388
|
-
_$
|
|
389
|
+
_$EM() {
|
|
389
390
|
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
|
390
391
|
}
|
|
391
392
|
get updateComplete() {
|
|
@@ -398,46 +399,46 @@ class Se extends HTMLElement {
|
|
|
398
399
|
return !0;
|
|
399
400
|
}
|
|
400
401
|
update(t) {
|
|
401
|
-
this._$
|
|
402
|
+
this._$Eq &&= this._$Eq.forEach((e) => this._$ET(e, this[e])), this._$EM();
|
|
402
403
|
}
|
|
403
404
|
updated(t) {
|
|
404
405
|
}
|
|
405
406
|
firstUpdated(t) {
|
|
406
407
|
}
|
|
407
408
|
}
|
|
408
|
-
Se.elementStyles = [], Se.shadowRootOptions = { mode: "open" }, Se[Je("elementProperties")] = /* @__PURE__ */ new Map(), Se[Je("finalized")] = /* @__PURE__ */ new Map(),
|
|
409
|
+
Se.elementStyles = [], Se.shadowRootOptions = { mode: "open" }, Se[Je("elementProperties")] = /* @__PURE__ */ new Map(), Se[Je("finalized")] = /* @__PURE__ */ new Map(), nn?.({ ReactiveElement: Se }), (Pt.reactiveElementVersions ??= []).push("2.1.0");
|
|
409
410
|
/**
|
|
410
411
|
* @license
|
|
411
412
|
* Copyright 2017 Google LLC
|
|
412
413
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
413
414
|
*/
|
|
414
|
-
const xi = globalThis, yt = xi.trustedTypes,
|
|
415
|
-
\f\r]`, Ye = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
416
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
417
|
-
function
|
|
415
|
+
const xi = globalThis, yt = xi.trustedTypes, is = yt ? yt.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, qs = "$lit$", le = `lit$${Math.random().toFixed(9).slice(2)}$`, Ks = "?" + le, an = `<${Ks}>`, ve = document, Ze = () => ve.createComment(""), et = (s) => s === null || typeof s != "object" && typeof s != "function", Ci = Array.isArray, ln = (s) => Ci(s) || typeof s?.[Symbol.iterator] == "function", Ft = `[
|
|
416
|
+
\f\r]`, Ye = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ss = /-->/g, os = />/g, fe = RegExp(`>|${Ft}(?:([^\\s"'>=/]+)(${Ft}*=${Ft}*(?:[^
|
|
417
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), rs = /'/g, ns = /"/g, Gs = /^(?:script|style|textarea|title)$/i, Be = Symbol.for("lit-noChange"), B = Symbol.for("lit-nothing"), as = /* @__PURE__ */ new WeakMap(), _e = ve.createTreeWalker(ve, 129);
|
|
418
|
+
function Xs(s, t) {
|
|
418
419
|
if (!Ci(s) || !s.hasOwnProperty("raw"))
|
|
419
420
|
throw Error("invalid template strings array");
|
|
420
|
-
return
|
|
421
|
+
return is !== void 0 ? is.createHTML(t) : t;
|
|
421
422
|
}
|
|
422
|
-
const
|
|
423
|
+
const dn = (s, t) => {
|
|
423
424
|
const e = s.length - 1, i = [];
|
|
424
425
|
let o, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = Ye;
|
|
425
426
|
for (let a = 0; a < e; a++) {
|
|
426
427
|
const l = s[a];
|
|
427
428
|
let d, c, u = -1, h = 0;
|
|
428
429
|
for (; h < l.length && (n.lastIndex = h, c = n.exec(l), c !== null); )
|
|
429
|
-
h = n.lastIndex, n === Ye ? c[1] === "!--" ? n =
|
|
430
|
+
h = n.lastIndex, n === Ye ? c[1] === "!--" ? n = ss : c[1] !== void 0 ? n = os : c[2] !== void 0 ? (Gs.test(c[2]) && (o = RegExp("</" + c[2], "g")), n = fe) : c[3] !== void 0 && (n = fe) : n === fe ? c[0] === ">" ? (n = o ?? Ye, u = -1) : c[1] === void 0 ? u = -2 : (u = n.lastIndex - c[2].length, d = c[1], n = c[3] === void 0 ? fe : c[3] === '"' ? ns : rs) : n === ns || n === rs ? n = fe : n === ss || n === os ? n = Ye : (n = fe, o = void 0);
|
|
430
431
|
const f = n === fe && s[a + 1].startsWith("/>") ? " " : "";
|
|
431
|
-
r += n === Ye ? l +
|
|
432
|
+
r += n === Ye ? l + an : u >= 0 ? (i.push(d), l.slice(0, u) + qs + l.slice(u) + le + f) : l + le + (u === -2 ? a : f);
|
|
432
433
|
}
|
|
433
|
-
return [
|
|
434
|
+
return [Xs(s, r + (s[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
|
434
435
|
};
|
|
435
436
|
class tt {
|
|
436
437
|
constructor({ strings: t, _$litType$: e }, i) {
|
|
437
438
|
let o;
|
|
438
439
|
this.parts = [];
|
|
439
440
|
let r = 0, n = 0;
|
|
440
|
-
const a = t.length - 1, l = this.parts, [d, c] =
|
|
441
|
+
const a = t.length - 1, l = this.parts, [d, c] = dn(t, e);
|
|
441
442
|
if (this.el = tt.createElement(d, i), _e.currentNode = this.el.content, e === 2 || e === 3) {
|
|
442
443
|
const u = this.el.content.firstChild;
|
|
443
444
|
u.replaceWith(...u.childNodes);
|
|
@@ -446,12 +447,12 @@ class tt {
|
|
|
446
447
|
if (o.nodeType === 1) {
|
|
447
448
|
if (o.hasAttributes())
|
|
448
449
|
for (const u of o.getAttributeNames())
|
|
449
|
-
if (u.endsWith(
|
|
450
|
+
if (u.endsWith(qs)) {
|
|
450
451
|
const h = c[n++], f = o.getAttribute(u).split(le), m = /([.?@])?(.*)/.exec(h);
|
|
451
|
-
l.push({ type: 1, index: r, name: m[2], strings: f, ctor: m[1] === "." ?
|
|
452
|
+
l.push({ type: 1, index: r, name: m[2], strings: f, ctor: m[1] === "." ? un : m[1] === "?" ? hn : m[1] === "@" ? pn : Dt }), o.removeAttribute(u);
|
|
452
453
|
} else
|
|
453
454
|
u.startsWith(le) && (l.push({ type: 6, index: r }), o.removeAttribute(u));
|
|
454
|
-
if (
|
|
455
|
+
if (Gs.test(o.tagName)) {
|
|
455
456
|
const u = o.textContent.split(le), h = u.length - 1;
|
|
456
457
|
if (h > 0) {
|
|
457
458
|
o.textContent = yt ? yt.emptyScript : "";
|
|
@@ -461,7 +462,7 @@ class tt {
|
|
|
461
462
|
}
|
|
462
463
|
}
|
|
463
464
|
} else if (o.nodeType === 8)
|
|
464
|
-
if (o.data ===
|
|
465
|
+
if (o.data === Ks)
|
|
465
466
|
l.push({ type: 2, index: r });
|
|
466
467
|
else {
|
|
467
468
|
let u = -1;
|
|
@@ -483,7 +484,7 @@ function Le(s, t, e = s, i) {
|
|
|
483
484
|
const r = et(t) ? void 0 : t._$litDirective$;
|
|
484
485
|
return o?.constructor !== r && (o?._$AO?.(!1), r === void 0 ? o = void 0 : (o = new r(s), o._$AT(s, e, i)), i !== void 0 ? (e._$Co ??= [])[i] = o : e._$Cl = o), o !== void 0 && (t = Le(s, o._$AS(s, t.values), o, i)), t;
|
|
485
486
|
}
|
|
486
|
-
class
|
|
487
|
+
class cn {
|
|
487
488
|
constructor(t, e) {
|
|
488
489
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
489
490
|
}
|
|
@@ -500,7 +501,7 @@ class dn {
|
|
|
500
501
|
for (; l !== void 0; ) {
|
|
501
502
|
if (n === l.index) {
|
|
502
503
|
let d;
|
|
503
|
-
l.type === 2 ? d = new lt(r, r.nextSibling, this, t) : l.type === 1 ? d = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (d = new
|
|
504
|
+
l.type === 2 ? d = new lt(r, r.nextSibling, this, t) : l.type === 1 ? d = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (d = new fn(r, this, t)), this._$AV.push(d), l = i[++a];
|
|
504
505
|
}
|
|
505
506
|
n !== l?.index && (r = _e.nextNode(), n++);
|
|
506
507
|
}
|
|
@@ -531,7 +532,7 @@ class lt {
|
|
|
531
532
|
return this._$AB;
|
|
532
533
|
}
|
|
533
534
|
_$AI(t, e = this) {
|
|
534
|
-
t = Le(this, t, e), et(t) ? t === B || t == null || t === "" ? (this._$AH !== B && this._$AR(), this._$AH = B) : t !== this._$AH && t !== Be && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) :
|
|
535
|
+
t = Le(this, t, e), et(t) ? t === B || t == null || t === "" ? (this._$AH !== B && this._$AR(), this._$AH = B) : t !== this._$AH && t !== Be && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : ln(t) ? this.k(t) : this._(t);
|
|
535
536
|
}
|
|
536
537
|
O(t) {
|
|
537
538
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -543,17 +544,17 @@ class lt {
|
|
|
543
544
|
this._$AH !== B && et(this._$AH) ? this._$AA.nextSibling.data = t : this.T(ve.createTextNode(t)), this._$AH = t;
|
|
544
545
|
}
|
|
545
546
|
$(t) {
|
|
546
|
-
const { values: e, _$litType$: i } = t, o = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = tt.createElement(
|
|
547
|
+
const { values: e, _$litType$: i } = t, o = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = tt.createElement(Xs(i.h, i.h[0]), this.options)), i);
|
|
547
548
|
if (this._$AH?._$AD === o)
|
|
548
549
|
this._$AH.p(e);
|
|
549
550
|
else {
|
|
550
|
-
const r = new
|
|
551
|
+
const r = new cn(o, this), n = r.u(this.options);
|
|
551
552
|
r.p(e), this.T(n), this._$AH = r;
|
|
552
553
|
}
|
|
553
554
|
}
|
|
554
555
|
_$AC(t) {
|
|
555
|
-
let e =
|
|
556
|
-
return e === void 0 &&
|
|
556
|
+
let e = as.get(t.strings);
|
|
557
|
+
return e === void 0 && as.set(t.strings, e = new tt(t)), e;
|
|
557
558
|
}
|
|
558
559
|
k(t) {
|
|
559
560
|
Ci(this._$AH) || (this._$AH = [], this._$AR());
|
|
@@ -573,7 +574,7 @@ class lt {
|
|
|
573
574
|
this._$AM === void 0 && (this._$Cv = t, this._$AP?.(t));
|
|
574
575
|
}
|
|
575
576
|
}
|
|
576
|
-
class
|
|
577
|
+
class Dt {
|
|
577
578
|
get tagName() {
|
|
578
579
|
return this.element.tagName;
|
|
579
580
|
}
|
|
@@ -600,7 +601,7 @@ class kt {
|
|
|
600
601
|
t === B ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
601
602
|
}
|
|
602
603
|
}
|
|
603
|
-
class
|
|
604
|
+
class un extends Dt {
|
|
604
605
|
constructor() {
|
|
605
606
|
super(...arguments), this.type = 3;
|
|
606
607
|
}
|
|
@@ -608,7 +609,7 @@ class cn extends kt {
|
|
|
608
609
|
this.element[this.name] = t === B ? void 0 : t;
|
|
609
610
|
}
|
|
610
611
|
}
|
|
611
|
-
class
|
|
612
|
+
class hn extends Dt {
|
|
612
613
|
constructor() {
|
|
613
614
|
super(...arguments), this.type = 4;
|
|
614
615
|
}
|
|
@@ -616,7 +617,7 @@ class un extends kt {
|
|
|
616
617
|
this.element.toggleAttribute(this.name, !!t && t !== B);
|
|
617
618
|
}
|
|
618
619
|
}
|
|
619
|
-
class
|
|
620
|
+
class pn extends Dt {
|
|
620
621
|
constructor(t, e, i, o, r) {
|
|
621
622
|
super(t, e, i, o, r), this.type = 5;
|
|
622
623
|
}
|
|
@@ -630,7 +631,7 @@ class hn extends kt {
|
|
|
630
631
|
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
|
|
631
632
|
}
|
|
632
633
|
}
|
|
633
|
-
class
|
|
634
|
+
class fn {
|
|
634
635
|
constructor(t, e, i) {
|
|
635
636
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
|
|
636
637
|
}
|
|
@@ -641,9 +642,9 @@ class pn {
|
|
|
641
642
|
Le(this, t);
|
|
642
643
|
}
|
|
643
644
|
}
|
|
644
|
-
const
|
|
645
|
-
|
|
646
|
-
const
|
|
645
|
+
const mn = xi.litHtmlPolyfillSupport;
|
|
646
|
+
mn?.(tt, lt), (xi.litHtmlVersions ??= []).push("3.3.0");
|
|
647
|
+
const _n = (s, t, e) => {
|
|
647
648
|
const i = e?.renderBefore ?? t;
|
|
648
649
|
let o = i._$litPart$;
|
|
649
650
|
if (o === void 0) {
|
|
@@ -657,6 +658,7 @@ const mn = (s, t, e) => {
|
|
|
657
658
|
* Copyright 2017 Google LLC
|
|
658
659
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
659
660
|
*/
|
|
661
|
+
const Ai = globalThis;
|
|
660
662
|
class Me extends Se {
|
|
661
663
|
constructor() {
|
|
662
664
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
@@ -667,7 +669,7 @@ class Me extends Se {
|
|
|
667
669
|
}
|
|
668
670
|
update(t) {
|
|
669
671
|
const e = this.render();
|
|
670
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
672
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = _n(e, this.renderRoot, this.renderOptions);
|
|
671
673
|
}
|
|
672
674
|
connectedCallback() {
|
|
673
675
|
super.connectedCallback(), this._$Do?.setConnected(!0);
|
|
@@ -679,16 +681,16 @@ class Me extends Se {
|
|
|
679
681
|
return Be;
|
|
680
682
|
}
|
|
681
683
|
}
|
|
682
|
-
Me._$litElement$ = !0, Me.finalized = !0,
|
|
683
|
-
const
|
|
684
|
-
|
|
685
|
-
(
|
|
684
|
+
Me._$litElement$ = !0, Me.finalized = !0, Ai.litElementHydrateSupport?.({ LitElement: Me });
|
|
685
|
+
const gn = Ai.litElementPolyfillSupport;
|
|
686
|
+
gn?.({ LitElement: Me });
|
|
687
|
+
(Ai.litElementVersions ??= []).push("4.2.0");
|
|
686
688
|
/**
|
|
687
689
|
* @license
|
|
688
690
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
689
691
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
690
692
|
*/
|
|
691
|
-
const
|
|
693
|
+
const yn = (s) => class extends s {
|
|
692
694
|
static get properties() {
|
|
693
695
|
return {
|
|
694
696
|
/**
|
|
@@ -727,103 +729,103 @@ const gn = (s) => class extends s {
|
|
|
727
729
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
728
730
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
729
731
|
*/
|
|
730
|
-
const
|
|
731
|
-
function
|
|
732
|
+
const Js = [], Jt = /* @__PURE__ */ new Set(), Ei = /* @__PURE__ */ new Set();
|
|
733
|
+
function Qs(s) {
|
|
732
734
|
return s && Object.prototype.hasOwnProperty.call(s, "__themes");
|
|
733
735
|
}
|
|
734
|
-
function
|
|
735
|
-
return
|
|
736
|
+
function bn(s) {
|
|
737
|
+
return Qs(customElements.get(s));
|
|
736
738
|
}
|
|
737
|
-
function
|
|
739
|
+
function vn(s = []) {
|
|
738
740
|
return [s].flat(1 / 0).filter((t) => t instanceof wi ? !0 : (console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."), !1));
|
|
739
741
|
}
|
|
740
|
-
function
|
|
742
|
+
function Zs(s, t) {
|
|
741
743
|
return (s || "").split(" ").some((e) => new RegExp(`^${e.split("*").join(".*")}$`, "u").test(t));
|
|
742
744
|
}
|
|
743
|
-
function
|
|
745
|
+
function eo(s) {
|
|
744
746
|
return s.map((t) => t.cssText).join(`
|
|
745
747
|
`);
|
|
746
748
|
}
|
|
747
749
|
const bt = "vaadin-themable-mixin-style";
|
|
748
|
-
function
|
|
750
|
+
function wn(s, t) {
|
|
749
751
|
const e = document.createElement("style");
|
|
750
|
-
e.id = bt, e.textContent =
|
|
752
|
+
e.id = bt, e.textContent = eo(s), t.content.appendChild(e);
|
|
751
753
|
}
|
|
752
|
-
function
|
|
754
|
+
function xn(s) {
|
|
753
755
|
if (!s.shadowRoot)
|
|
754
756
|
return;
|
|
755
757
|
const t = s.constructor;
|
|
756
758
|
if (s instanceof Me)
|
|
757
|
-
[...s.shadowRoot.querySelectorAll("style")].forEach((e) => e.remove()),
|
|
759
|
+
[...s.shadowRoot.querySelectorAll("style")].forEach((e) => e.remove()), Ws(s.shadowRoot, t.elementStyles);
|
|
758
760
|
else {
|
|
759
761
|
const e = s.shadowRoot.getElementById(bt), i = t.prototype._template;
|
|
760
762
|
e.textContent = i.content.getElementById(bt).textContent;
|
|
761
763
|
}
|
|
762
764
|
}
|
|
763
|
-
function
|
|
765
|
+
function Cn(s) {
|
|
764
766
|
Jt.forEach((t) => {
|
|
765
767
|
const e = t.deref();
|
|
766
|
-
e instanceof s ?
|
|
768
|
+
e instanceof s ? xn(e) : e || Jt.delete(t);
|
|
767
769
|
});
|
|
768
770
|
}
|
|
769
|
-
function
|
|
771
|
+
function to(s) {
|
|
770
772
|
if (s.prototype instanceof Me)
|
|
771
773
|
s.elementStyles = s.finalizeStyles(s.styles);
|
|
772
774
|
else {
|
|
773
775
|
const t = s.prototype._template;
|
|
774
|
-
t.content.getElementById(bt).textContent =
|
|
776
|
+
t.content.getElementById(bt).textContent = eo(s.getStylesForThis());
|
|
775
777
|
}
|
|
776
|
-
|
|
778
|
+
Ei.forEach((t) => {
|
|
777
779
|
const e = customElements.get(t);
|
|
778
|
-
e !== s && e.prototype instanceof s &&
|
|
780
|
+
e !== s && e.prototype instanceof s && to(e);
|
|
779
781
|
});
|
|
780
782
|
}
|
|
781
|
-
function
|
|
783
|
+
function An(s, t) {
|
|
782
784
|
const e = s.__themes;
|
|
783
785
|
return !e || !t ? !1 : e.some(
|
|
784
786
|
(i) => i.styles.some((o) => t.some((r) => r.cssText === o.cssText))
|
|
785
787
|
);
|
|
786
788
|
}
|
|
787
789
|
function I(s, t, e = {}) {
|
|
788
|
-
t =
|
|
790
|
+
t = vn(t), window.Vaadin && window.Vaadin.styleModules ? window.Vaadin.styleModules.registerStyles(s, t, e) : Js.push({
|
|
789
791
|
themeFor: s,
|
|
790
792
|
styles: t,
|
|
791
793
|
include: e.include,
|
|
792
794
|
moduleId: e.moduleId
|
|
793
|
-
}), s &&
|
|
794
|
-
if (
|
|
795
|
+
}), s && Ei.forEach((i) => {
|
|
796
|
+
if (Zs(s, i) && bn(i)) {
|
|
795
797
|
const o = customElements.get(i);
|
|
796
|
-
|
|
798
|
+
An(o, t) ? console.warn(`Registering styles that already exist for ${i}`) : (!window.Vaadin || !window.Vaadin.suppressPostFinalizeStylesWarning) && console.warn(
|
|
797
799
|
`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`
|
|
798
|
-
),
|
|
800
|
+
), to(o), Cn(o);
|
|
799
801
|
}
|
|
800
802
|
});
|
|
801
803
|
}
|
|
802
804
|
function Qt() {
|
|
803
|
-
return window.Vaadin && window.Vaadin.styleModules ? window.Vaadin.styleModules.getAllThemes() :
|
|
805
|
+
return window.Vaadin && window.Vaadin.styleModules ? window.Vaadin.styleModules.getAllThemes() : Js;
|
|
804
806
|
}
|
|
805
|
-
function
|
|
807
|
+
function En(s = "") {
|
|
806
808
|
let t = 0;
|
|
807
809
|
return s.startsWith("lumo-") || s.startsWith("material-") ? t = 1 : s.startsWith("vaadin-") && (t = 2), t;
|
|
808
810
|
}
|
|
809
|
-
function
|
|
811
|
+
function io(s) {
|
|
810
812
|
const t = [];
|
|
811
813
|
return s.include && [].concat(s.include).forEach((e) => {
|
|
812
814
|
const i = Qt().find((o) => o.moduleId === e);
|
|
813
|
-
i ? t.push(...
|
|
815
|
+
i ? t.push(...io(i), ...i.styles) : console.warn(`Included moduleId ${e} not found in style registry`);
|
|
814
816
|
}, s.styles), t;
|
|
815
817
|
}
|
|
816
|
-
function
|
|
817
|
-
const t = `${s}-default-theme`, e = Qt().filter((i) => i.moduleId !== t &&
|
|
818
|
+
function Pn(s) {
|
|
819
|
+
const t = `${s}-default-theme`, e = Qt().filter((i) => i.moduleId !== t && Zs(i.themeFor, s)).map((i) => ({
|
|
818
820
|
...i,
|
|
819
821
|
// Prepend styles from included themes
|
|
820
|
-
styles: [...
|
|
822
|
+
styles: [...io(i), ...i.styles],
|
|
821
823
|
// Map moduleId to includePriority
|
|
822
|
-
includePriority:
|
|
824
|
+
includePriority: En(i.moduleId)
|
|
823
825
|
})).sort((i, o) => o.includePriority - i.includePriority);
|
|
824
826
|
return e.length > 0 ? e : Qt().filter((i) => i.moduleId === t);
|
|
825
827
|
}
|
|
826
|
-
const we = (s) => class extends
|
|
828
|
+
const we = (s) => class extends yn(s) {
|
|
827
829
|
constructor() {
|
|
828
830
|
super(), Jt.add(new WeakRef(this));
|
|
829
831
|
}
|
|
@@ -832,10 +834,10 @@ const we = (s) => class extends gn(s) {
|
|
|
832
834
|
* @protected
|
|
833
835
|
*/
|
|
834
836
|
static finalize() {
|
|
835
|
-
if (super.finalize(), this.is &&
|
|
837
|
+
if (super.finalize(), this.is && Ei.add(this.is), this.elementStyles)
|
|
836
838
|
return;
|
|
837
839
|
const e = this.prototype._template;
|
|
838
|
-
!e ||
|
|
840
|
+
!e || Qs(this) || wn(this.getStylesForThis(), e);
|
|
839
841
|
}
|
|
840
842
|
/**
|
|
841
843
|
* Covers LitElement based component styling
|
|
@@ -853,7 +855,7 @@ const we = (s) => class extends gn(s) {
|
|
|
853
855
|
*/
|
|
854
856
|
static getStylesForThis() {
|
|
855
857
|
const e = s.__themes || [], i = Object.getPrototypeOf(this.prototype), o = (i ? i.constructor.__themes : []) || [];
|
|
856
|
-
this.__themes = [...e, ...o, ...
|
|
858
|
+
this.__themes = [...e, ...o, ...Pn(this.is)];
|
|
857
859
|
const r = this.__themes.flatMap((n) => n.styles);
|
|
858
860
|
return r.filter((n, a) => a === r.lastIndexOf(n));
|
|
859
861
|
}
|
|
@@ -863,12 +865,12 @@ const we = (s) => class extends gn(s) {
|
|
|
863
865
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
864
866
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
865
867
|
*/
|
|
866
|
-
const
|
|
868
|
+
const Dn = (s, ...t) => {
|
|
867
869
|
const e = document.createElement("style");
|
|
868
870
|
e.id = s, e.textContent = t.map((i) => i.toString()).join(`
|
|
869
871
|
`).replace(":host", "html"), document.head.insertAdjacentElement("afterbegin", e);
|
|
870
872
|
}, He = (s, ...t) => {
|
|
871
|
-
|
|
873
|
+
Dn(`lumo-${s}`, t);
|
|
872
874
|
};
|
|
873
875
|
/**
|
|
874
876
|
* @license
|
|
@@ -897,7 +899,7 @@ He("sizing-props", kn);
|
|
|
897
899
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
898
900
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
899
901
|
*/
|
|
900
|
-
const
|
|
902
|
+
const Tn = x`
|
|
901
903
|
:host {
|
|
902
904
|
/* Square */
|
|
903
905
|
--lumo-space-xs: 0.25rem;
|
|
@@ -921,13 +923,13 @@ const Dn = x`
|
|
|
921
923
|
--lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
|
|
922
924
|
}
|
|
923
925
|
`;
|
|
924
|
-
He("spacing-props",
|
|
926
|
+
He("spacing-props", Tn);
|
|
925
927
|
/**
|
|
926
928
|
* @license
|
|
927
929
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
928
930
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
929
931
|
*/
|
|
930
|
-
const
|
|
932
|
+
const Sn = x`
|
|
931
933
|
:host {
|
|
932
934
|
/* Border radius */
|
|
933
935
|
--lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
|
|
@@ -1029,13 +1031,13 @@ x`
|
|
|
1029
1031
|
--vaadin-input-field-value-font-weight: 500;
|
|
1030
1032
|
}
|
|
1031
1033
|
`;
|
|
1032
|
-
He("style-props",
|
|
1034
|
+
He("style-props", Sn);
|
|
1033
1035
|
/**
|
|
1034
1036
|
* @license
|
|
1035
1037
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1036
1038
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1037
1039
|
*/
|
|
1038
|
-
const
|
|
1040
|
+
const On = x`
|
|
1039
1041
|
:host {
|
|
1040
1042
|
/* Base (background) */
|
|
1041
1043
|
--lumo-base-color: #fff;
|
|
@@ -1121,8 +1123,8 @@ const Sn = x`
|
|
|
1121
1123
|
}
|
|
1122
1124
|
}
|
|
1123
1125
|
`;
|
|
1124
|
-
He("color-props",
|
|
1125
|
-
const
|
|
1126
|
+
He("color-props", On);
|
|
1127
|
+
const Mn = x`
|
|
1126
1128
|
[theme~='dark'] {
|
|
1127
1129
|
/* Base (background) */
|
|
1128
1130
|
--lumo-base-color: hsl(214, 35%, 21%);
|
|
@@ -1241,13 +1243,13 @@ const On = x`
|
|
|
1241
1243
|
background: transparent;
|
|
1242
1244
|
}
|
|
1243
1245
|
`;
|
|
1244
|
-
I("",
|
|
1246
|
+
I("", Mn, { moduleId: "lumo-color" });
|
|
1245
1247
|
/**
|
|
1246
1248
|
* @license
|
|
1247
1249
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1248
1250
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1249
1251
|
*/
|
|
1250
|
-
const
|
|
1252
|
+
const In = x`
|
|
1251
1253
|
:host {
|
|
1252
1254
|
/* prettier-ignore */
|
|
1253
1255
|
--lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
@@ -1267,7 +1269,7 @@ const Mn = x`
|
|
|
1267
1269
|
--lumo-line-height-s: 1.375;
|
|
1268
1270
|
--lumo-line-height-m: 1.625;
|
|
1269
1271
|
}
|
|
1270
|
-
`,
|
|
1272
|
+
`, Nn = x`
|
|
1271
1273
|
body,
|
|
1272
1274
|
:host {
|
|
1273
1275
|
font-family: var(--lumo-font-family);
|
|
@@ -1360,14 +1362,14 @@ const Mn = x`
|
|
|
1360
1362
|
border-right: 2px solid var(--lumo-contrast-30pct);
|
|
1361
1363
|
}
|
|
1362
1364
|
`;
|
|
1363
|
-
I("",
|
|
1364
|
-
He("typography-props",
|
|
1365
|
+
I("", Nn, { moduleId: "lumo-typography" });
|
|
1366
|
+
He("typography-props", In);
|
|
1365
1367
|
/**
|
|
1366
1368
|
* @license
|
|
1367
1369
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1368
1370
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1369
1371
|
*/
|
|
1370
|
-
const
|
|
1372
|
+
const so = x`
|
|
1371
1373
|
:host {
|
|
1372
1374
|
top: var(--lumo-space-m);
|
|
1373
1375
|
right: var(--lumo-space-m);
|
|
@@ -1433,13 +1435,13 @@ const io = x`
|
|
|
1433
1435
|
}
|
|
1434
1436
|
}
|
|
1435
1437
|
`;
|
|
1436
|
-
I("",
|
|
1438
|
+
I("", so, { moduleId: "lumo-overlay" });
|
|
1437
1439
|
/**
|
|
1438
1440
|
* @license
|
|
1439
1441
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
1440
1442
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
1441
1443
|
*/
|
|
1442
|
-
const
|
|
1444
|
+
const oo = x`
|
|
1443
1445
|
:host([opening]),
|
|
1444
1446
|
:host([closing]) {
|
|
1445
1447
|
animation: 0.14s lumo-overlay-dummy-animation;
|
|
@@ -1470,8 +1472,8 @@ const so = x`
|
|
|
1470
1472
|
}
|
|
1471
1473
|
}
|
|
1472
1474
|
`;
|
|
1473
|
-
I("",
|
|
1474
|
-
const
|
|
1475
|
+
I("", oo, { moduleId: "lumo-menu-overlay-core" });
|
|
1476
|
+
const Fn = x`
|
|
1475
1477
|
/* Small viewport (bottom sheet) styles */
|
|
1476
1478
|
/* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
|
|
1477
1479
|
@media (max-width: 450px), (max-height: 450px) {
|
|
@@ -1533,9 +1535,9 @@ const Nn = x`
|
|
|
1533
1535
|
transform: translateY(150%);
|
|
1534
1536
|
}
|
|
1535
1537
|
}
|
|
1536
|
-
`,
|
|
1537
|
-
I("",
|
|
1538
|
-
const
|
|
1538
|
+
`, ro = [so, oo, Fn];
|
|
1539
|
+
I("", ro, { moduleId: "lumo-menu-overlay" });
|
|
1540
|
+
const Bn = x`
|
|
1539
1541
|
[part='overlay'] {
|
|
1540
1542
|
/*
|
|
1541
1543
|
Width:
|
|
@@ -1581,10 +1583,10 @@ const Fn = x`
|
|
|
1581
1583
|
}
|
|
1582
1584
|
}
|
|
1583
1585
|
`;
|
|
1584
|
-
I("vaadin-date-picker-overlay", [
|
|
1586
|
+
I("vaadin-date-picker-overlay", [ro, Bn], {
|
|
1585
1587
|
moduleId: "lumo-date-picker-overlay"
|
|
1586
1588
|
});
|
|
1587
|
-
const
|
|
1589
|
+
const Ln = x`
|
|
1588
1590
|
:host {
|
|
1589
1591
|
/* Sizing */
|
|
1590
1592
|
--lumo-button-size: var(--lumo-size-m);
|
|
@@ -1861,7 +1863,7 @@ const Bn = x`
|
|
|
1861
1863
|
margin-right: 0;
|
|
1862
1864
|
}
|
|
1863
1865
|
`;
|
|
1864
|
-
I("vaadin-button",
|
|
1866
|
+
I("vaadin-button", Ln, { moduleId: "lumo-button" });
|
|
1865
1867
|
I(
|
|
1866
1868
|
"vaadin-date-picker-year",
|
|
1867
1869
|
x`
|
|
@@ -2386,7 +2388,7 @@ I(
|
|
|
2386
2388
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2387
2389
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2388
2390
|
*/
|
|
2389
|
-
const
|
|
2391
|
+
const zn = x`
|
|
2390
2392
|
@font-face {
|
|
2391
2393
|
font-family: 'lumo-icons';
|
|
2392
2394
|
src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wic1Z9N0jpNHCD9SNqqoVBgbQoMjY+pjA4hNnWa2pV1rHSIif0DGkyT2k10Kmu1Cag6huj4ZpqYBHSqJsTEJgZCG3TaVBFv595nO3ZIv4RIrPPuvefe884599zzO/cRF8G/tgn6CFFImNgkR0ggX8wlspbhSSWSdrC5ozd30s2dw5afzvgtyz9/zG9t1hV4RtF1pXolowvtzc2z6L2aYUQM45jKH9WDTvd1LRDoDASYWhfTzTyvboXz6uZX4ARX5wrF39y+HM2+CJ8d0pkyqBIqoze3D12ez4DrFoYzxI8dWwMrDlZ2DMqQAR9AROsJU+2smlTPaTTco52BVxXa2a2+I8vvqd2dVHm1LoPeTn/AZPRYGthDYOeZjBjKoFsVGulR3lGU95SeCK44oHU7MhWUGUKZDT3oSUcG2GWuh+EDDfUYA/jhIhl0TOsJNYSEu7mQmi3UzfXwZKA4BsVsHLXQYGgJW95qEtpJ1VcW9HiTriZBlFEqxsDjA09yCNUoQxxwd7KWSTt2y3GTKifkqHRCoWZc3m11Wa/dKdFgXD4kSYfkeJBKd8KMz7J8dZn/cGRCcLGDnA2Ge3bKzcvlnTDNthFWLH7Xt80ua5FMjA4WKelWv5Xo16vHuYzpRbJhhdVlftuRK0VlR27D9lu5TF0DPBi60OrHNO0AfP/uRWvhn/U3LXICE+nh+3IHPUJ8JE6GyBjZQLbjGchlrSgYngF8zyrIF4NJD3atUcgWsWunGN/UHX5B5/yg7uF87Nqp4Gf52F3gH73DjEZNRoqCKAr9giQJp5rGJABpiVE2htNhW9R8nw0jqYjCYcY4LIjwYNScf4WN06IZnZCEqsI4cFaQbo4Z1TsZBx40YhXkHOecaYE5oY37IIQ+iJJ+UsDYSun5MuRSBRZRUUhlY2DqOGajOR6zrSU/5My6l2DnusH1GQgnw5BZP7iuYM/ahcfQ7Z8y51ddfutvuwNqWQ0cBYr8fj0U0vsHpwerVaB2sWhXT2NExi2r1KUE2tUuVMnkepVQrxTmpQrZTG4iu8he8iPyM3KcPE/+RP5KPoE2CEAKclCBzXATxkYOtUY/o961PWRqsj0chRrHFBbtrjP9/P0ven5pcbRdpL94vfsy33e5+izuwz3nFLFPVNayPZx/jdG1fOChflFRvYzsW6L18efgLrSWIgvcqnGJYi4skO4xREURjbDuxKke5v0T3Mrzkt2fi31uyZlLLrqIpEuXXsMlgw442Jb0GAxjS1DM20kBoCzHLXm/jEm0IltdcvU0fEW24jgiwwRjVd9u4NJHcIyoHJcwvyVqgqj5hqBJ1ZWSJryh9p56UWhX1XbhRbW2ZopuZWsQd5y8mEQ8M+C6xjRYxZbDKWf5AgY+Qq/l6wSPk16zDFjowYuu+wjx13mfkxbyDDxadYT/LijZyI0THB+6yfLaWsRcO82zo9mWTNtpO18qlorZoIVMwSN40tky5DOQ1MCIAe24mvlsuwIIxPb10+uXDQ4uWz/9m3rj+ql7p6bufZARuPVq5tXtsn6KwfP8Jy0TeWOyNhUJN6mhX5rkUTtUppQWEMNTqEdaCGKFYKJaQrCE4JtDLYOlNEKmO5kBTPGY2A0N2sY3+dVlo1N9ycBsIGtOjQ2p/tlZvzo0ur4v6cOh8NTospB7U/X40KahoU3bGIH97dnwmtHlYffVG3R1YOwKM2vNhrPhCT5zk64sG53oS4b31aYjqe/B7+kQiXBN+b6h21hNUPMq29B8CU4elINdygMPKF1B+WBTG7Z9ZshpN/xwEuuDQZR+nuoo4CDaAiiwXmLpmukMQyPf/JMclqgL1ixZQ/nnP2VbdUODFGt2fgBvL123rlLYu/6A9ckb7F3K0/CyBMEu6aQoPscroCcacVehvyQyCZAsizsWWBkoLC+WAiWnOksLKaeuQDzGuqSk42aiYTiJ4zf9afl17SrqaTO1f+XlZAfIuYcq7/IqYMaMrksOJ6vHkOCPDq943xcCnHqVD9pHFRpMqSPXrIua1WNs+tOz1U+ciTCDpPk+c4QYJIHnYhxP/kVPAq+ahFpVhPcHp8qyarhiF+HsBU9Hrl+UZa876fbKipL0KqB6OdUveErgtOI97fZ63ae9SvWU6k2w1JfwqnUbHsYcFCJFrC/W12zIMMirWYEHxMPs6LGYSdkSZ5TsNP9PCpwnWC3HKZ1lydNjWHC2Mn3l6vL0dHn1ldP3LTSrX+vKrBqv7KmMr8p0SR6P1NqF63or6XRlIyO90f7+kf7+myOhvt4tq7f09oUiTc2/dycGgqFQcCDRLYmi1NL7fk0CknVMxEg/cdfs/TnpJMNkgqwj17B8beVazSrVbU4lG67IZYOCnWrYy3yBR9cyWcChywos3LJBEdhhFoAdYjiw0rLGm0xU5OzoGm5/ZfmHjVZpNNg6SznzGKDdwv2cCtVn6Eaxo12cfxLprpVtTcZ6hVx6dow7Yq7e8LXO8PY9Jgjoze9yCtU5FNbegcKkQMdCbt9au/te4Ebe0jkc0ukUL32eYnTpNs20h0KpUOhZPYwVcfhZnfdqeCvDfXiuCbAoYWcXERPc/mDQD3/hdF+wK4i/xv3kYfprIpAuMkk2kW3kdtS0kBIKpZwp8KxmsCyfM1MFzAss9LBkDxRyThiaqTLwKYKJVTwmWTudMyz+yks09346MDh4m72yOxCKrt1XMlQ1qPVlTEVVQ1ofdK/sCWjtZu9qGwZ8YZ9PPWlo1IV3eW3+U0aXblP39zrt+JPf6UhEQ1rUjNBULN+utyuaDNW34kpAVuSOeMTyWbSNWnooFu+QFNWQ4d/Ox4IPWx41fP/fB/Rjeoz08ezPA9TysMtmnOXfGN7Ui3xIYLDALrlDLOP09qtJuY2OeL0+QZXdRnR1nxRVBF/SOyKKPpcrn9mWzH4rH9IidE+PTNU2182+hOgSItrE1slByS24vaLvJpxOqe4Pduf3HJkZ+jLqUz9rRzB7p8gKcgWZwV1L8JtUS5Z2JxZSOCuBoMTQihMzLbCPA0KqGMAljRQjONklW/wjnXKy8vxT/Elvm3/KiMUMOoV0/vnDYlhec0SMKtt3/kKMyOt33tj2bqxQLsTjSGLl+EAsNhCnTyRGktW55EgCn/A4PlnWn+Mg8bgZrWqHxTbPwMuyy1u5YeZF2SUM7JRhddwRgiRuxpmgJmxn9ZW7XpcF3ViX/ar6ptRpGJ0S9Adg4qhb9sI3vbL7qNJV/y4i07t5TZBiho1imFoMz3gED+CtjYUxvP4SOxov4bFoNPg5aR1e+G4UgDPoedJTpogyCJ7oYvRqoVS0MQAy+CoNEdTDUjok5ZHZL/WtjV7rFj3PKQE3iKp7ou+rIxN3b9LB1dGjeT4cvKo3FrnWpYpuaFd/h3dtV8UeKN1Y9hpR3dt4p0H/zKuPQq0kZQUIIpuDfoiETsnIk+gCWMJZUXHtE8V9LkUc2TE8vOMbO4ax/MACabzyaGXc7u3FBr11ThBdB8SIeMAlCntG2KThHSPsaj2Dc9KNyY2a0KZ7ODaTHoRiFkeYz+shZBpCS4X6471KKKnuHd84edfk5F37d1XO5bbkcltu2ZLNbvnPXiUVAnVvprJrP+NObryjxrllS65md6Tm6wzFHRR4dY3QUUjb7MgxaIixU8hspi98fl/Xc+IB4iU66eCVL9YfAfahiSUt4TONS8x0D8W7u8vd3fGWx6OXlM/U1IoU/s61PGhpyXRFa3eReq2qG56lvmYtXavCC1iN7lbiBpWxXHU+cSlztVLVz0tVN600fVsLxaVDknhYioeoXP3t4lqV1r79MAw0GCI1FTL1YIGzPL1MMlJ9ZsN9P7lvA2yr9ZFUzwzPrVgxN/x/SS+chwB4nGNgZGBgAOLPrYdY4vltvjJwM78AijDUqG5oRND/XzNPZboF5HIwMIFEAU/lC+J4nGNgZGBgDvqfBSRfMAAB81QGRgZUoA0AVvYDbwAAAHicY2BgYGB+MTQwAM8EJo8AAAAAAE4AmgDoAQoBLAFOAXABmgHEAe4CGgKcAugEmgS8BNYE8gUOBSoFegXQBf4GRAZmBrYHGAeQCBgIUghqCP4JRgm+CdoKBAo+CoQKugr0C1QLmgvAeJxjYGRgYNBmTGEQZQABJiDmAkIGhv9gPgMAGJQBvAB4nG2RPU7DMBiG3/QP0UoIBGJh8QILavozdmRo9w7d09RpUzlx5LgVvQMn4BAcgoEzcAgOwVvzSZVQbcnf48fvFysJgGt8IcJxROiG9TgauODuj5ukG+EW+UG4jR4ehTv0Q+EunjER7uEWmk+IWpc0d3gVbuAKb8JN+nfhFvlDuI17fAp36L+Fu1jgR7iHp+jF7Arbz1Nb1nO93pnEncSJFtrVuS3VKB6e5EyX2iVer9TyoOr9eux9pjJnCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
|
|
@@ -2440,13 +2442,13 @@ const Ln = x`
|
|
|
2440
2442
|
--lumo-icons-user: '\\ea2a';
|
|
2441
2443
|
}
|
|
2442
2444
|
`;
|
|
2443
|
-
He("font-icons",
|
|
2445
|
+
He("font-icons", zn);
|
|
2444
2446
|
/**
|
|
2445
2447
|
* @license
|
|
2446
2448
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2447
2449
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2448
2450
|
*/
|
|
2449
|
-
const
|
|
2451
|
+
const no = x`
|
|
2450
2452
|
[part$='button'] {
|
|
2451
2453
|
flex: none;
|
|
2452
2454
|
width: 1em;
|
|
@@ -2474,13 +2476,13 @@ const ro = x`
|
|
|
2474
2476
|
display: block;
|
|
2475
2477
|
}
|
|
2476
2478
|
`;
|
|
2477
|
-
I("",
|
|
2479
|
+
I("", no, { moduleId: "lumo-field-button" });
|
|
2478
2480
|
/**
|
|
2479
2481
|
* @license
|
|
2480
2482
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2481
2483
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2482
2484
|
*/
|
|
2483
|
-
const
|
|
2485
|
+
const Rn = x`
|
|
2484
2486
|
:host {
|
|
2485
2487
|
--_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
|
|
2486
2488
|
}
|
|
@@ -2542,7 +2544,7 @@ const zn = x`
|
|
|
2542
2544
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2543
2545
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2544
2546
|
*/
|
|
2545
|
-
const
|
|
2547
|
+
const ao = x`
|
|
2546
2548
|
[part='label'] {
|
|
2547
2549
|
align-self: flex-start;
|
|
2548
2550
|
color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
|
|
@@ -2655,13 +2657,13 @@ const no = x`
|
|
|
2655
2657
|
margin-right: calc(var(--lumo-border-radius-m) / 4);
|
|
2656
2658
|
}
|
|
2657
2659
|
`;
|
|
2658
|
-
I("",
|
|
2660
|
+
I("", ao, { moduleId: "lumo-required-field" });
|
|
2659
2661
|
/**
|
|
2660
2662
|
* @license
|
|
2661
2663
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
2662
2664
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
2663
2665
|
*/
|
|
2664
|
-
const
|
|
2666
|
+
const Hn = x`
|
|
2665
2667
|
:host {
|
|
2666
2668
|
--lumo-text-field-size: var(--lumo-size-m);
|
|
2667
2669
|
color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
|
|
@@ -2792,11 +2794,11 @@ const Rn = x`
|
|
|
2792
2794
|
[part='clear-button']::before {
|
|
2793
2795
|
content: var(--lumo-icons-cross);
|
|
2794
2796
|
}
|
|
2795
|
-
`,
|
|
2796
|
-
I("",
|
|
2797
|
+
`, lo = [ao, no, Rn, Hn];
|
|
2798
|
+
I("", lo, {
|
|
2797
2799
|
moduleId: "lumo-input-field-shared-styles"
|
|
2798
2800
|
});
|
|
2799
|
-
const
|
|
2801
|
+
const $n = x`
|
|
2800
2802
|
[part='toggle-button']::before {
|
|
2801
2803
|
content: var(--lumo-icons-calendar);
|
|
2802
2804
|
}
|
|
@@ -2819,7 +2821,7 @@ const Hn = x`
|
|
|
2819
2821
|
--_lumo-text-field-overflow-mask-image: none;
|
|
2820
2822
|
}
|
|
2821
2823
|
`;
|
|
2822
|
-
I("vaadin-date-picker", [
|
|
2824
|
+
I("vaadin-date-picker", [lo, $n], { moduleId: "lumo-date-picker" });
|
|
2823
2825
|
/**
|
|
2824
2826
|
@license
|
|
2825
2827
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -2841,9 +2843,9 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
2841
2843
|
Code distributed by Google as part of the polymer project is also
|
|
2842
2844
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2843
2845
|
*/
|
|
2844
|
-
let
|
|
2846
|
+
let Vn = /(url\()([^)]*)(\))/g, Un = /(^\/[^\/])|(^#)|(^[\w-\d]*:)/, ct, H;
|
|
2845
2847
|
function Qe(s, t) {
|
|
2846
|
-
if (s &&
|
|
2848
|
+
if (s && Un.test(s) || s === "//")
|
|
2847
2849
|
return s;
|
|
2848
2850
|
if (ct === void 0) {
|
|
2849
2851
|
ct = !1;
|
|
@@ -2861,12 +2863,12 @@ function Qe(s, t) {
|
|
|
2861
2863
|
}
|
|
2862
2864
|
return H || (H = document.implementation.createHTMLDocument("temp"), H.base = H.createElement("base"), H.head.appendChild(H.base), H.anchor = H.createElement("a"), H.body.appendChild(H.anchor)), H.base.href = t, H.anchor.href = s, H.anchor.href || s;
|
|
2863
2865
|
}
|
|
2864
|
-
function
|
|
2865
|
-
return s.replace(
|
|
2866
|
+
function Pi(s, t) {
|
|
2867
|
+
return s.replace(Vn, function(e, i, o, r) {
|
|
2866
2868
|
return i + "'" + Qe(o.replace(/["']/g, ""), t) + "'" + r;
|
|
2867
2869
|
});
|
|
2868
2870
|
}
|
|
2869
|
-
function
|
|
2871
|
+
function Di(s) {
|
|
2870
2872
|
return s.substring(0, s.lastIndexOf("/") + 1);
|
|
2871
2873
|
}
|
|
2872
2874
|
/**
|
|
@@ -2878,9 +2880,9 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
2878
2880
|
Code distributed by Google as part of the polymer project is also
|
|
2879
2881
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2880
2882
|
*/
|
|
2881
|
-
const
|
|
2883
|
+
const co = !window.ShadyDOM || !window.ShadyDOM.inUse;
|
|
2882
2884
|
!window.ShadyCSS || window.ShadyCSS.nativeCss;
|
|
2883
|
-
const
|
|
2885
|
+
const Yn = co && "adoptedStyleSheets" in Document.prototype && "replaceSync" in CSSStyleSheet.prototype && // Since spec may change, feature detect exact API we need
|
|
2884
2886
|
(() => {
|
|
2885
2887
|
try {
|
|
2886
2888
|
const s = new CSSStyleSheet();
|
|
@@ -2891,11 +2893,11 @@ const Un = lo && "adoptedStyleSheets" in Document.prototype && "replaceSync" in
|
|
|
2891
2893
|
return !1;
|
|
2892
2894
|
}
|
|
2893
2895
|
})();
|
|
2894
|
-
let
|
|
2896
|
+
let Wn = window.Polymer && window.Polymer.rootPath || Di(document.baseURI || window.location.href), vt = window.Polymer && window.Polymer.sanitizeDOMValue || void 0;
|
|
2895
2897
|
window.Polymer && window.Polymer.setPassiveTouchGestures;
|
|
2896
|
-
let wt = window.Polymer && window.Polymer.strictTemplatePolicy || !1,
|
|
2898
|
+
let wt = window.Polymer && window.Polymer.strictTemplatePolicy || !1, jn = window.Polymer && window.Polymer.allowTemplateFromDomModule || !1, uo = window.Polymer && window.Polymer.legacyOptimizations || !1, ho = window.Polymer && window.Polymer.legacyWarnings || !1, qn = window.Polymer && window.Polymer.syncInitialRender || !1, Zt = window.Polymer && window.Polymer.legacyUndefined || !1, Kn = window.Polymer && window.Polymer.orderedComputed || !1, ls = window.Polymer && window.Polymer.removeNestedTemplates || !1, Gn = window.Polymer && window.Polymer.fastDomIf || !1, ds = window.Polymer && window.Polymer.suppressTemplateNotifications || !1;
|
|
2897
2899
|
window.Polymer && window.Polymer.legacyNoObservedAttributes;
|
|
2898
|
-
let
|
|
2900
|
+
let Xn = window.Polymer && window.Polymer.useAdoptedStyleSheetsWithBuiltCSS || !1;
|
|
2899
2901
|
/**
|
|
2900
2902
|
@license
|
|
2901
2903
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -2905,14 +2907,14 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
2905
2907
|
Code distributed by Google as part of the polymer project is also
|
|
2906
2908
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2907
2909
|
*/
|
|
2908
|
-
let
|
|
2910
|
+
let Jn = 0;
|
|
2909
2911
|
const F = function(s) {
|
|
2910
2912
|
let t = (
|
|
2911
2913
|
/** @type {!MixinFunction} */
|
|
2912
2914
|
s.__mixinApplications
|
|
2913
2915
|
);
|
|
2914
2916
|
t || (t = /* @__PURE__ */ new WeakMap(), s.__mixinApplications = t);
|
|
2915
|
-
let e =
|
|
2917
|
+
let e = Jn++;
|
|
2916
2918
|
function i(o) {
|
|
2917
2919
|
let r = (
|
|
2918
2920
|
/** @type {!MixinFunction} */
|
|
@@ -2943,14 +2945,14 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
2943
2945
|
Code distributed by Google as part of the polymer project is also
|
|
2944
2946
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2945
2947
|
*/
|
|
2946
|
-
let ki = {},
|
|
2947
|
-
function
|
|
2948
|
-
ki[s] =
|
|
2948
|
+
let ki = {}, po = {};
|
|
2949
|
+
function cs(s, t) {
|
|
2950
|
+
ki[s] = po[s.toLowerCase()] = t;
|
|
2949
2951
|
}
|
|
2950
|
-
function
|
|
2951
|
-
return ki[s] ||
|
|
2952
|
+
function us(s) {
|
|
2953
|
+
return ki[s] || po[s.toLowerCase()];
|
|
2952
2954
|
}
|
|
2953
|
-
function
|
|
2955
|
+
function Qn(s) {
|
|
2954
2956
|
s.querySelector("style") && console.warn("dom-module %s has style outside template", s.id);
|
|
2955
2957
|
}
|
|
2956
2958
|
class it extends HTMLElement {
|
|
@@ -2971,7 +2973,7 @@ class it extends HTMLElement {
|
|
|
2971
2973
|
*/
|
|
2972
2974
|
static import(t, e) {
|
|
2973
2975
|
if (t) {
|
|
2974
|
-
let i =
|
|
2976
|
+
let i = us(t);
|
|
2975
2977
|
return i && e ? i.querySelector(e) : i;
|
|
2976
2978
|
}
|
|
2977
2979
|
return null;
|
|
@@ -3006,7 +3008,7 @@ class it extends HTMLElement {
|
|
|
3006
3008
|
this.getAttribute("assetpath") || "",
|
|
3007
3009
|
t.baseURI
|
|
3008
3010
|
);
|
|
3009
|
-
this.__assetpath =
|
|
3011
|
+
this.__assetpath = Di(e);
|
|
3010
3012
|
}
|
|
3011
3013
|
return this.__assetpath;
|
|
3012
3014
|
}
|
|
@@ -3019,9 +3021,9 @@ class it extends HTMLElement {
|
|
|
3019
3021
|
*/
|
|
3020
3022
|
register(t) {
|
|
3021
3023
|
if (t = t || this.id, t) {
|
|
3022
|
-
if (wt &&
|
|
3023
|
-
throw
|
|
3024
|
-
this.id = t,
|
|
3024
|
+
if (wt && us(t) !== void 0)
|
|
3025
|
+
throw cs(t, null), new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);
|
|
3026
|
+
this.id = t, cs(t, this), Qn(this);
|
|
3025
3027
|
}
|
|
3026
3028
|
}
|
|
3027
3029
|
}
|
|
@@ -3036,39 +3038,39 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
3036
3038
|
Code distributed by Google as part of the polymer project is also
|
|
3037
3039
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3038
3040
|
*/
|
|
3039
|
-
const
|
|
3040
|
-
function
|
|
3041
|
+
const Zn = "link[rel=import][type~=css]", ea = "include", hs = "shady-unscoped";
|
|
3042
|
+
function fo(s) {
|
|
3041
3043
|
return (
|
|
3042
3044
|
/** @type {?DomModule} */
|
|
3043
3045
|
it.import(s)
|
|
3044
3046
|
);
|
|
3045
3047
|
}
|
|
3046
|
-
function
|
|
3048
|
+
function ps(s) {
|
|
3047
3049
|
let t = s.body ? s.body : s;
|
|
3048
|
-
const e =
|
|
3050
|
+
const e = Pi(
|
|
3049
3051
|
t.textContent,
|
|
3050
3052
|
s.baseURI
|
|
3051
3053
|
), i = document.createElement("style");
|
|
3052
3054
|
return i.textContent = e, i;
|
|
3053
3055
|
}
|
|
3054
|
-
function
|
|
3056
|
+
function ta(s) {
|
|
3055
3057
|
const t = s.trim().split(/\s+/), e = [];
|
|
3056
3058
|
for (let i = 0; i < t.length; i++)
|
|
3057
|
-
e.push(...
|
|
3059
|
+
e.push(...ia(t[i]));
|
|
3058
3060
|
return e;
|
|
3059
3061
|
}
|
|
3060
|
-
function
|
|
3061
|
-
const t =
|
|
3062
|
+
function ia(s) {
|
|
3063
|
+
const t = fo(s);
|
|
3062
3064
|
if (!t)
|
|
3063
3065
|
return console.warn("Could not find style data in module named", s), [];
|
|
3064
3066
|
if (t._styles === void 0) {
|
|
3065
3067
|
const e = [];
|
|
3066
|
-
e.push(...
|
|
3068
|
+
e.push(..._o(t));
|
|
3067
3069
|
const i = (
|
|
3068
3070
|
/** @type {?HTMLTemplateElement} */
|
|
3069
3071
|
t.querySelector("template")
|
|
3070
3072
|
);
|
|
3071
|
-
i && e.push(...
|
|
3073
|
+
i && e.push(...mo(
|
|
3072
3074
|
i,
|
|
3073
3075
|
/** @type {templateWithAssetPath} */
|
|
3074
3076
|
t.assetpath
|
|
@@ -3076,14 +3078,14 @@ function ta(s) {
|
|
|
3076
3078
|
}
|
|
3077
3079
|
return t._styles;
|
|
3078
3080
|
}
|
|
3079
|
-
function
|
|
3081
|
+
function mo(s, t) {
|
|
3080
3082
|
if (!s._styles) {
|
|
3081
3083
|
const e = [], i = s.content.querySelectorAll("style");
|
|
3082
3084
|
for (let o = 0; o < i.length; o++) {
|
|
3083
|
-
let r = i[o], n = r.getAttribute(
|
|
3084
|
-
n && e.push(...
|
|
3085
|
+
let r = i[o], n = r.getAttribute(ea);
|
|
3086
|
+
n && e.push(...ta(n).filter(function(a, l, d) {
|
|
3085
3087
|
return d.indexOf(a) === l;
|
|
3086
|
-
})), t && (r.textContent =
|
|
3088
|
+
})), t && (r.textContent = Pi(
|
|
3087
3089
|
r.textContent,
|
|
3088
3090
|
/** @type {string} */
|
|
3089
3091
|
t
|
|
@@ -3093,21 +3095,21 @@ function fo(s, t) {
|
|
|
3093
3095
|
}
|
|
3094
3096
|
return s._styles;
|
|
3095
3097
|
}
|
|
3096
|
-
function
|
|
3097
|
-
let t =
|
|
3098
|
-
return t ?
|
|
3098
|
+
function sa(s) {
|
|
3099
|
+
let t = fo(s);
|
|
3100
|
+
return t ? _o(t) : [];
|
|
3099
3101
|
}
|
|
3100
|
-
function
|
|
3101
|
-
const t = [], e = s.querySelectorAll(
|
|
3102
|
+
function _o(s) {
|
|
3103
|
+
const t = [], e = s.querySelectorAll(Zn);
|
|
3102
3104
|
for (let i = 0; i < e.length; i++) {
|
|
3103
3105
|
let o = e[i];
|
|
3104
3106
|
if (o.import) {
|
|
3105
|
-
const r = o.import, n = o.hasAttribute(
|
|
3107
|
+
const r = o.import, n = o.hasAttribute(hs);
|
|
3106
3108
|
if (n && !r._unscopedStyle) {
|
|
3107
|
-
const a =
|
|
3108
|
-
a.setAttribute(
|
|
3109
|
+
const a = ps(r);
|
|
3110
|
+
a.setAttribute(hs, ""), r._unscopedStyle = a;
|
|
3109
3111
|
} else
|
|
3110
|
-
r._style || (r._style =
|
|
3112
|
+
r._style || (r._style = ps(r));
|
|
3111
3113
|
t.push(n ? r._unscopedStyle : r._style);
|
|
3112
3114
|
}
|
|
3113
3115
|
}
|
|
@@ -3139,7 +3141,7 @@ function xe(s) {
|
|
|
3139
3141
|
let t = s.indexOf(".");
|
|
3140
3142
|
return t === -1 ? s : s.slice(0, t);
|
|
3141
3143
|
}
|
|
3142
|
-
function
|
|
3144
|
+
function go(s, t) {
|
|
3143
3145
|
return s.indexOf(t + ".") === 0;
|
|
3144
3146
|
}
|
|
3145
3147
|
function st(s, t) {
|
|
@@ -3148,8 +3150,8 @@ function st(s, t) {
|
|
|
3148
3150
|
function ot(s, t, e) {
|
|
3149
3151
|
return t + e.slice(s.length);
|
|
3150
3152
|
}
|
|
3151
|
-
function
|
|
3152
|
-
return s === t ||
|
|
3153
|
+
function oa(s, t) {
|
|
3154
|
+
return s === t || go(s, t) || st(s, t);
|
|
3153
3155
|
}
|
|
3154
3156
|
function Ge(s) {
|
|
3155
3157
|
if (Array.isArray(s)) {
|
|
@@ -3163,11 +3165,11 @@ function Ge(s) {
|
|
|
3163
3165
|
} else
|
|
3164
3166
|
return s;
|
|
3165
3167
|
}
|
|
3166
|
-
function
|
|
3168
|
+
function yo(s) {
|
|
3167
3169
|
return Array.isArray(s) ? Ge(s).split(".") : s.toString().split(".");
|
|
3168
3170
|
}
|
|
3169
3171
|
function R(s, t, e) {
|
|
3170
|
-
let i = s, o =
|
|
3172
|
+
let i = s, o = yo(t);
|
|
3171
3173
|
for (let r = 0; r < o.length; r++) {
|
|
3172
3174
|
if (!i)
|
|
3173
3175
|
return;
|
|
@@ -3176,8 +3178,8 @@ function R(s, t, e) {
|
|
|
3176
3178
|
}
|
|
3177
3179
|
return e && (e.path = o.join(".")), i;
|
|
3178
3180
|
}
|
|
3179
|
-
function
|
|
3180
|
-
let i = s, o =
|
|
3181
|
+
function fs(s, t, e) {
|
|
3182
|
+
let i = s, o = yo(t), r = o[o.length - 1];
|
|
3181
3183
|
if (o.length > 1) {
|
|
3182
3184
|
for (let n = 0; n < o.length - 1; n++) {
|
|
3183
3185
|
let a = o[n];
|
|
@@ -3198,15 +3200,15 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
3198
3200
|
Code distributed by Google as part of the polymer project is also
|
|
3199
3201
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3200
3202
|
*/
|
|
3201
|
-
const xt = {},
|
|
3202
|
-
function
|
|
3203
|
+
const xt = {}, ra = /-[a-z]/g, na = /([A-Z])/g;
|
|
3204
|
+
function bo(s) {
|
|
3203
3205
|
return xt[s] || (xt[s] = s.indexOf("-") < 0 ? s : s.replace(
|
|
3204
|
-
|
|
3206
|
+
ra,
|
|
3205
3207
|
(t) => t[1].toUpperCase()
|
|
3206
3208
|
));
|
|
3207
3209
|
}
|
|
3208
|
-
function
|
|
3209
|
-
return xt[s] || (xt[s] = s.replace(
|
|
3210
|
+
function kt(s) {
|
|
3211
|
+
return xt[s] || (xt[s] = s.replace(na, "-$1").toLowerCase());
|
|
3210
3212
|
}
|
|
3211
3213
|
/**
|
|
3212
3214
|
@license
|
|
@@ -3217,9 +3219,9 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
3217
3219
|
Code distributed by Google as part of the polymer project is also
|
|
3218
3220
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3219
3221
|
*/
|
|
3220
|
-
let
|
|
3221
|
-
new window.MutationObserver(
|
|
3222
|
-
function
|
|
3222
|
+
let aa = 0, vo = 0, Ie = [], la = 0, ti = !1, wo = document.createTextNode("");
|
|
3223
|
+
new window.MutationObserver(da).observe(wo, { characterData: !0 });
|
|
3224
|
+
function da() {
|
|
3223
3225
|
ti = !1;
|
|
3224
3226
|
const s = Ie.length;
|
|
3225
3227
|
for (let t = 0; t < s; t++) {
|
|
@@ -3233,9 +3235,9 @@ function la() {
|
|
|
3233
3235
|
});
|
|
3234
3236
|
}
|
|
3235
3237
|
}
|
|
3236
|
-
Ie.splice(0, s),
|
|
3238
|
+
Ie.splice(0, s), vo += s;
|
|
3237
3239
|
}
|
|
3238
|
-
const
|
|
3240
|
+
const ca = {
|
|
3239
3241
|
/**
|
|
3240
3242
|
* Returns a sub-module with the async interface providing the provided
|
|
3241
3243
|
* delay.
|
|
@@ -3275,7 +3277,7 @@ const da = {
|
|
|
3275
3277
|
cancel(s) {
|
|
3276
3278
|
window.clearTimeout(s);
|
|
3277
3279
|
}
|
|
3278
|
-
},
|
|
3280
|
+
}, xo = {
|
|
3279
3281
|
/**
|
|
3280
3282
|
* Enqueues a function called at microtask timing.
|
|
3281
3283
|
*
|
|
@@ -3284,7 +3286,7 @@ const da = {
|
|
|
3284
3286
|
* @return {number} Handle used for canceling task
|
|
3285
3287
|
*/
|
|
3286
3288
|
run(s) {
|
|
3287
|
-
return ti || (ti = !0,
|
|
3289
|
+
return ti || (ti = !0, wo.textContent = la++), Ie.push(s), aa++;
|
|
3288
3290
|
},
|
|
3289
3291
|
/**
|
|
3290
3292
|
* Cancels a previously enqueued `microTask` callback.
|
|
@@ -3294,7 +3296,7 @@ const da = {
|
|
|
3294
3296
|
* @return {void}
|
|
3295
3297
|
*/
|
|
3296
3298
|
cancel(s) {
|
|
3297
|
-
const t = s -
|
|
3299
|
+
const t = s - vo;
|
|
3298
3300
|
if (t >= 0) {
|
|
3299
3301
|
if (!Ie[t])
|
|
3300
3302
|
throw new Error("invalid async handle: " + s);
|
|
@@ -3311,7 +3313,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
3311
3313
|
Code distributed by Google as part of the polymer project is also
|
|
3312
3314
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3313
3315
|
*/
|
|
3314
|
-
const
|
|
3316
|
+
const ua = xo, Co = F(
|
|
3315
3317
|
/**
|
|
3316
3318
|
* @template T
|
|
3317
3319
|
* @param {function(new:T)} superClass Class to apply mixin to.
|
|
@@ -3520,7 +3522,7 @@ const ca = wo, xo = F(
|
|
|
3520
3522
|
* @override
|
|
3521
3523
|
*/
|
|
3522
3524
|
_invalidateProperties() {
|
|
3523
|
-
!this.__dataInvalid && this.__dataReady && (this.__dataInvalid = !0,
|
|
3525
|
+
!this.__dataInvalid && this.__dataReady && (this.__dataInvalid = !0, ua.run(() => {
|
|
3524
3526
|
this.__dataInvalid && (this.__dataInvalid = !1, this._flushProperties());
|
|
3525
3527
|
}));
|
|
3526
3528
|
}
|
|
@@ -3747,23 +3749,23 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
3747
3749
|
Code distributed by Google as part of the polymer project is also
|
|
3748
3750
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3749
3751
|
*/
|
|
3750
|
-
const
|
|
3752
|
+
const Ao = {};
|
|
3751
3753
|
let ut = HTMLElement.prototype;
|
|
3752
3754
|
for (; ut; ) {
|
|
3753
3755
|
let s = Object.getOwnPropertyNames(ut);
|
|
3754
3756
|
for (let t = 0; t < s.length; t++)
|
|
3755
|
-
|
|
3757
|
+
Ao[s[t]] = !0;
|
|
3756
3758
|
ut = Object.getPrototypeOf(ut);
|
|
3757
3759
|
}
|
|
3758
|
-
const
|
|
3759
|
-
function
|
|
3760
|
-
if (!
|
|
3760
|
+
const ha = window.trustedTypes ? (s) => trustedTypes.isHTML(s) || trustedTypes.isScript(s) || trustedTypes.isScriptURL(s) : () => !1;
|
|
3761
|
+
function pa(s, t) {
|
|
3762
|
+
if (!Ao[t]) {
|
|
3761
3763
|
let e = s[t];
|
|
3762
3764
|
e !== void 0 && (s.__data ? s._setPendingProperty(t, e) : (s.__dataProto ? s.hasOwnProperty(JSCompiler_renameProperty("__dataProto", s)) || (s.__dataProto = Object.create(s.__dataProto)) : s.__dataProto = {}, s.__dataProto[t] = e));
|
|
3763
3765
|
}
|
|
3764
3766
|
}
|
|
3765
|
-
const
|
|
3766
|
-
const t =
|
|
3767
|
+
const fa = F((s) => {
|
|
3768
|
+
const t = Co(s);
|
|
3767
3769
|
class e extends t {
|
|
3768
3770
|
/**
|
|
3769
3771
|
* Generates property accessors for all attributes in the standard
|
|
@@ -3781,7 +3783,7 @@ const pa = F((s) => {
|
|
|
3781
3783
|
this.observedAttributes
|
|
3782
3784
|
);
|
|
3783
3785
|
for (let r = 0; r < o.length; r++)
|
|
3784
|
-
this.prototype._createPropertyAccessor(
|
|
3786
|
+
this.prototype._createPropertyAccessor(bo(o[r]));
|
|
3785
3787
|
}
|
|
3786
3788
|
/**
|
|
3787
3789
|
* Returns an attribute name that corresponds to the given property.
|
|
@@ -3793,7 +3795,7 @@ const pa = F((s) => {
|
|
|
3793
3795
|
* @nocollapse
|
|
3794
3796
|
*/
|
|
3795
3797
|
static attributeNameForProperty(o) {
|
|
3796
|
-
return
|
|
3798
|
+
return kt(o);
|
|
3797
3799
|
}
|
|
3798
3800
|
/**
|
|
3799
3801
|
* Overrides PropertiesChanged implementation to initialize values for
|
|
@@ -3858,7 +3860,7 @@ const pa = F((s) => {
|
|
|
3858
3860
|
if (o instanceof Date)
|
|
3859
3861
|
return o.toString();
|
|
3860
3862
|
if (o) {
|
|
3861
|
-
if (
|
|
3863
|
+
if (ha(o))
|
|
3862
3864
|
return (
|
|
3863
3865
|
/** @type {?} */
|
|
3864
3866
|
o
|
|
@@ -3939,7 +3941,7 @@ const pa = F((s) => {
|
|
|
3939
3941
|
* @override
|
|
3940
3942
|
*/
|
|
3941
3943
|
_definePropertyAccessor(o, r) {
|
|
3942
|
-
|
|
3944
|
+
pa(this, o), super._definePropertyAccessor(o, r);
|
|
3943
3945
|
}
|
|
3944
3946
|
/**
|
|
3945
3947
|
* Returns true if this library created an accessor for the given property.
|
|
@@ -3974,23 +3976,23 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
3974
3976
|
Code distributed by Google as part of the polymer project is also
|
|
3975
3977
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3976
3978
|
*/
|
|
3977
|
-
const
|
|
3979
|
+
const ma = {
|
|
3978
3980
|
"dom-if": !0,
|
|
3979
3981
|
"dom-repeat": !0
|
|
3980
3982
|
};
|
|
3981
|
-
let
|
|
3982
|
-
function
|
|
3983
|
-
if (!
|
|
3984
|
-
|
|
3983
|
+
let ms = !1, _s = !1;
|
|
3984
|
+
function _a() {
|
|
3985
|
+
if (!ms) {
|
|
3986
|
+
ms = !0;
|
|
3985
3987
|
const s = document.createElement("textarea");
|
|
3986
|
-
s.placeholder = "a",
|
|
3988
|
+
s.placeholder = "a", _s = s.placeholder === s.textContent;
|
|
3987
3989
|
}
|
|
3988
|
-
return
|
|
3990
|
+
return _s;
|
|
3989
3991
|
}
|
|
3990
|
-
function
|
|
3991
|
-
|
|
3992
|
+
function ga(s) {
|
|
3993
|
+
_a() && s.localName === "textarea" && s.placeholder && s.placeholder === s.textContent && (s.textContent = null);
|
|
3992
3994
|
}
|
|
3993
|
-
const
|
|
3995
|
+
const ya = (() => {
|
|
3994
3996
|
const s = window.trustedTypes && window.trustedTypes.createPolicy(
|
|
3995
3997
|
"polymer-template-event-attribute-policy",
|
|
3996
3998
|
{
|
|
@@ -4009,19 +4011,19 @@ const ga = (() => {
|
|
|
4009
4011
|
t.setAttribute(i, o);
|
|
4010
4012
|
};
|
|
4011
4013
|
})();
|
|
4012
|
-
function
|
|
4014
|
+
function ba(s) {
|
|
4013
4015
|
let t = s.getAttribute("is");
|
|
4014
|
-
if (t &&
|
|
4016
|
+
if (t && ma[t]) {
|
|
4015
4017
|
let e = s;
|
|
4016
4018
|
for (e.removeAttribute("is"), s = e.ownerDocument.createElement(t), e.parentNode.replaceChild(s, e), s.appendChild(e); e.attributes.length; ) {
|
|
4017
4019
|
const { name: i } = e.attributes[0];
|
|
4018
|
-
|
|
4020
|
+
ya(s, e, i), e.removeAttribute(i);
|
|
4019
4021
|
}
|
|
4020
4022
|
}
|
|
4021
4023
|
return s;
|
|
4022
4024
|
}
|
|
4023
|
-
function
|
|
4024
|
-
let e = t.parentInfo &&
|
|
4025
|
+
function Eo(s, t) {
|
|
4026
|
+
let e = t.parentInfo && Eo(s, t.parentInfo);
|
|
4025
4027
|
if (e) {
|
|
4026
4028
|
for (let i = e.firstChild, o = 0; i; i = i.nextSibling)
|
|
4027
4029
|
if (t.parentIndex === o++)
|
|
@@ -4029,23 +4031,23 @@ function Ao(s, t) {
|
|
|
4029
4031
|
} else
|
|
4030
4032
|
return s;
|
|
4031
4033
|
}
|
|
4032
|
-
function
|
|
4034
|
+
function va(s, t, e, i) {
|
|
4033
4035
|
i.id && (t[i.id] = e);
|
|
4034
4036
|
}
|
|
4035
|
-
function
|
|
4037
|
+
function wa(s, t, e) {
|
|
4036
4038
|
if (e.events && e.events.length)
|
|
4037
4039
|
for (let i = 0, o = e.events, r; i < o.length && (r = o[i]); i++)
|
|
4038
4040
|
s._addMethodEventListenerToNode(t, r.name, r.value, s);
|
|
4039
4041
|
}
|
|
4040
|
-
function
|
|
4042
|
+
function xa(s, t, e, i) {
|
|
4041
4043
|
e.templateInfo && (t._templateInfo = e.templateInfo, t._parentTemplateInfo = i);
|
|
4042
4044
|
}
|
|
4043
|
-
function
|
|
4045
|
+
function Ca(s, t, e) {
|
|
4044
4046
|
return s = s._methodHost || s, function(o) {
|
|
4045
4047
|
s[e] ? s[e](o, o.detail) : console.warn("listener method `" + e + "` not defined");
|
|
4046
4048
|
};
|
|
4047
4049
|
}
|
|
4048
|
-
const
|
|
4050
|
+
const Aa = F(
|
|
4049
4051
|
/**
|
|
4050
4052
|
* @template T
|
|
4051
4053
|
* @param {function(new:T)} superClass Class to apply mixin to.
|
|
@@ -4172,7 +4174,7 @@ const Ca = F(
|
|
|
4172
4174
|
/** @type {!HTMLTemplateElement} */
|
|
4173
4175
|
i
|
|
4174
4176
|
);
|
|
4175
|
-
return a.localName == "template" && !a.hasAttribute("preserve-content") ? n = this._parseTemplateNestedTemplate(a, o, r) || n : a.localName === "slot" && (o.hasInsertionPoint = !0),
|
|
4177
|
+
return a.localName == "template" && !a.hasAttribute("preserve-content") ? n = this._parseTemplateNestedTemplate(a, o, r) || n : a.localName === "slot" && (o.hasInsertionPoint = !0), ga(a), a.firstChild && this._parseTemplateChildNodes(a, o, r), a.hasAttributes && a.hasAttributes() && (n = this._parseTemplateNodeAttributes(a, o, r) || n), n || r.noted;
|
|
4176
4178
|
}
|
|
4177
4179
|
/**
|
|
4178
4180
|
* Parses template child nodes for the given root node.
|
|
@@ -4190,7 +4192,7 @@ const Ca = F(
|
|
|
4190
4192
|
static _parseTemplateChildNodes(i, o, r) {
|
|
4191
4193
|
if (!(i.localName === "script" || i.localName === "style"))
|
|
4192
4194
|
for (let n = i.firstChild, a = 0, l; n; n = l) {
|
|
4193
|
-
if (n.localName == "template" && (n =
|
|
4195
|
+
if (n.localName == "template" && (n = ba(n)), l = n.nextSibling, n.nodeType === Node.TEXT_NODE) {
|
|
4194
4196
|
let c = l;
|
|
4195
4197
|
for (; c && c.nodeType === Node.TEXT_NODE; )
|
|
4196
4198
|
n.textContent += c.textContent, l = c.nextSibling, i.removeChild(c), c = l;
|
|
@@ -4325,8 +4327,8 @@ const Ca = F(
|
|
|
4325
4327
|
let l = a.nodeList = new Array(r.length);
|
|
4326
4328
|
a.$ = {};
|
|
4327
4329
|
for (let d = 0, c = r.length, u; d < c && (u = r[d]); d++) {
|
|
4328
|
-
let h = l[d] =
|
|
4329
|
-
|
|
4330
|
+
let h = l[d] = Eo(a, u);
|
|
4331
|
+
va(this, a.$, h, u), xa(this, h, u, o), wa(this, h, u);
|
|
4330
4332
|
}
|
|
4331
4333
|
return a = /** @type {!StampedTemplate} */
|
|
4332
4334
|
a, a;
|
|
@@ -4347,7 +4349,7 @@ const Ca = F(
|
|
|
4347
4349
|
*/
|
|
4348
4350
|
_addMethodEventListenerToNode(i, o, r, n) {
|
|
4349
4351
|
n = n || i;
|
|
4350
|
-
let a =
|
|
4352
|
+
let a = Ca(n, o, r);
|
|
4351
4353
|
return this._addEventListenerToNode(i, o, a), a;
|
|
4352
4354
|
}
|
|
4353
4355
|
/**
|
|
@@ -4397,7 +4399,7 @@ const nt = [], C = {
|
|
|
4397
4399
|
PROPAGATE: "__propagateEffects",
|
|
4398
4400
|
OBSERVE: "__observeEffects",
|
|
4399
4401
|
READ_ONLY: "__readOnly"
|
|
4400
|
-
},
|
|
4402
|
+
}, Po = "__computeInfo", Ea = /[A-Z]/;
|
|
4401
4403
|
function Bt(s, t, e) {
|
|
4402
4404
|
let i = s[t];
|
|
4403
4405
|
if (!i)
|
|
@@ -4418,49 +4420,49 @@ function Xe(s, t, e, i, o, r) {
|
|
|
4418
4420
|
let d = o ? xe(l) : l, c = t[d];
|
|
4419
4421
|
if (c)
|
|
4420
4422
|
for (let u = 0, h = c.length, f; u < h && (f = c[u]); u++)
|
|
4421
|
-
(!f.info || f.info.lastRun !== a) && (!o ||
|
|
4423
|
+
(!f.info || f.info.lastRun !== a) && (!o || Ti(l, f.trigger)) && (f.info && (f.info.lastRun = a), f.fn(s, l, e, i, f.info, o, r), n = !0);
|
|
4422
4424
|
}
|
|
4423
4425
|
return n;
|
|
4424
4426
|
}
|
|
4425
4427
|
return !1;
|
|
4426
4428
|
}
|
|
4427
|
-
function
|
|
4429
|
+
function Pa(s, t, e, i, o, r, n, a) {
|
|
4428
4430
|
let l = !1, d = n ? xe(i) : i, c = t[d];
|
|
4429
4431
|
if (c)
|
|
4430
4432
|
for (let u = 0, h = c.length, f; u < h && (f = c[u]); u++)
|
|
4431
|
-
(!f.info || f.info.lastRun !== e) && (!n ||
|
|
4433
|
+
(!f.info || f.info.lastRun !== e) && (!n || Ti(i, f.trigger)) && (f.info && (f.info.lastRun = e), f.fn(s, i, o, r, f.info, n, a), l = !0);
|
|
4432
4434
|
return l;
|
|
4433
4435
|
}
|
|
4434
|
-
function
|
|
4436
|
+
function Ti(s, t) {
|
|
4435
4437
|
if (t) {
|
|
4436
4438
|
let e = (
|
|
4437
4439
|
/** @type {string} */
|
|
4438
4440
|
t.name
|
|
4439
4441
|
);
|
|
4440
|
-
return e == s || !!(t.structured &&
|
|
4442
|
+
return e == s || !!(t.structured && go(e, s)) || !!(t.wildcard && st(e, s));
|
|
4441
4443
|
} else
|
|
4442
4444
|
return !0;
|
|
4443
4445
|
}
|
|
4444
|
-
function
|
|
4446
|
+
function gs(s, t, e, i, o) {
|
|
4445
4447
|
let r = typeof o.method == "string" ? s[o.method] : o.method, n = o.property;
|
|
4446
4448
|
r ? r.call(s, s.__data[n], i[n]) : o.dynamicFn || console.warn("observer method `" + o.method + "` not defined");
|
|
4447
4449
|
}
|
|
4448
|
-
function
|
|
4450
|
+
function Da(s, t, e, i, o) {
|
|
4449
4451
|
let r = s[C.NOTIFY], n, a = rt++;
|
|
4450
4452
|
for (let d in t)
|
|
4451
|
-
t[d] && (r &&
|
|
4453
|
+
t[d] && (r && Pa(s, r, a, d, e, i, o) || o && ka(s, d, e)) && (n = !0);
|
|
4452
4454
|
let l;
|
|
4453
4455
|
n && (l = s.__dataHost) && l._invalidateProperties && l._invalidateProperties();
|
|
4454
4456
|
}
|
|
4455
4457
|
function ka(s, t, e) {
|
|
4456
4458
|
let i = xe(t);
|
|
4457
4459
|
if (i !== t) {
|
|
4458
|
-
let o =
|
|
4459
|
-
return
|
|
4460
|
+
let o = kt(i) + "-changed";
|
|
4461
|
+
return Do(s, o, e[t], t), !0;
|
|
4460
4462
|
}
|
|
4461
4463
|
return !1;
|
|
4462
4464
|
}
|
|
4463
|
-
function
|
|
4465
|
+
function Do(s, t, e, i) {
|
|
4464
4466
|
let o = {
|
|
4465
4467
|
value: e,
|
|
4466
4468
|
queueProperty: !0
|
|
@@ -4470,18 +4472,18 @@ function Po(s, t, e, i) {
|
|
|
4470
4472
|
s
|
|
4471
4473
|
).dispatchEvent(new CustomEvent(t, { detail: o }));
|
|
4472
4474
|
}
|
|
4473
|
-
function
|
|
4475
|
+
function Ta(s, t, e, i, o, r) {
|
|
4474
4476
|
let a = (r ? xe(t) : t) != t ? t : null, l = a ? R(s, a) : s.__data[t];
|
|
4475
|
-
a && l === void 0 && (l = e[t]),
|
|
4477
|
+
a && l === void 0 && (l = e[t]), Do(s, o.eventName, l, a);
|
|
4476
4478
|
}
|
|
4477
|
-
function
|
|
4479
|
+
function Sa(s, t, e, i, o) {
|
|
4478
4480
|
let r, n = (
|
|
4479
4481
|
/** @type {Object} */
|
|
4480
4482
|
s.detail
|
|
4481
4483
|
), a = n && n.path;
|
|
4482
4484
|
a ? (i = ot(e, i, a), r = n && n.value) : r = s.currentTarget[e], r = o ? !r : r, (!t[C.READ_ONLY] || !t[C.READ_ONLY][i]) && t._setPendingPropertyOrPath(i, r, !0, !!a) && (!n || !n.queueProperty) && t._invalidateProperties();
|
|
4483
4485
|
}
|
|
4484
|
-
function
|
|
4486
|
+
function Oa(s, t, e, i, o) {
|
|
4485
4487
|
let r = s.__data[t];
|
|
4486
4488
|
vt && (r = vt(
|
|
4487
4489
|
r,
|
|
@@ -4491,17 +4493,17 @@ function Sa(s, t, e, i, o) {
|
|
|
4491
4493
|
s
|
|
4492
4494
|
)), s._propertyToAttribute(t, o.attrName, r);
|
|
4493
4495
|
}
|
|
4494
|
-
function
|
|
4496
|
+
function Ma(s, t, e, i) {
|
|
4495
4497
|
let o = s[C.COMPUTE];
|
|
4496
4498
|
if (o)
|
|
4497
|
-
if (
|
|
4499
|
+
if (Kn) {
|
|
4498
4500
|
rt++;
|
|
4499
|
-
const r =
|
|
4501
|
+
const r = Na(s), n = [];
|
|
4500
4502
|
for (let l in t)
|
|
4501
|
-
|
|
4503
|
+
ys(l, o, n, r, i);
|
|
4502
4504
|
let a;
|
|
4503
4505
|
for (; a = n.shift(); )
|
|
4504
|
-
ko(s, "", t, e, a) &&
|
|
4506
|
+
ko(s, "", t, e, a) && ys(a.methodInfo, o, n, r, i);
|
|
4505
4507
|
Object.assign(
|
|
4506
4508
|
/** @type {!Object} */
|
|
4507
4509
|
e,
|
|
@@ -4525,7 +4527,7 @@ function Oa(s, t, e, i) {
|
|
|
4525
4527
|
), r = s.__dataPending, s.__dataPending = null;
|
|
4526
4528
|
}
|
|
4527
4529
|
}
|
|
4528
|
-
const
|
|
4530
|
+
const Ia = (s, t, e) => {
|
|
4529
4531
|
let i = 0, o = t.length - 1, r = -1;
|
|
4530
4532
|
for (; i <= o; ) {
|
|
4531
4533
|
const n = i + o >> 1, a = e.get(t[n].methodInfo) - e.get(s.methodInfo);
|
|
@@ -4539,20 +4541,20 @@ const Ma = (s, t, e) => {
|
|
|
4539
4541
|
}
|
|
4540
4542
|
}
|
|
4541
4543
|
r < 0 && (r = o + 1), t.splice(r, 0, s);
|
|
4542
|
-
},
|
|
4544
|
+
}, ys = (s, t, e, i, o) => {
|
|
4543
4545
|
const r = o ? xe(s) : s, n = t[r];
|
|
4544
4546
|
if (n)
|
|
4545
4547
|
for (let a = 0; a < n.length; a++) {
|
|
4546
4548
|
const l = n[a];
|
|
4547
|
-
l.info.lastRun !== rt && (!o ||
|
|
4549
|
+
l.info.lastRun !== rt && (!o || Ti(s, l.trigger)) && (l.info.lastRun = rt, Ia(l.info, e, i));
|
|
4548
4550
|
}
|
|
4549
4551
|
};
|
|
4550
|
-
function
|
|
4552
|
+
function Na(s) {
|
|
4551
4553
|
let t = s.constructor.__orderedComputedDeps;
|
|
4552
4554
|
if (!t) {
|
|
4553
4555
|
t = /* @__PURE__ */ new Map();
|
|
4554
4556
|
const e = s[C.COMPUTE];
|
|
4555
|
-
let { counts: i, ready: o, total: r } =
|
|
4557
|
+
let { counts: i, ready: o, total: r } = Fa(s), n;
|
|
4556
4558
|
for (; n = o.shift(); ) {
|
|
4557
4559
|
t.set(n, t.size);
|
|
4558
4560
|
const a = e[n];
|
|
@@ -4566,8 +4568,8 @@ function Ia(s) {
|
|
|
4566
4568
|
}
|
|
4567
4569
|
return t;
|
|
4568
4570
|
}
|
|
4569
|
-
function
|
|
4570
|
-
const t = s[
|
|
4571
|
+
function Fa(s) {
|
|
4572
|
+
const t = s[Po], e = {}, i = s[C.COMPUTE], o = [];
|
|
4571
4573
|
let r = 0;
|
|
4572
4574
|
for (let n in t) {
|
|
4573
4575
|
const a = t[n];
|
|
@@ -4584,7 +4586,7 @@ function ko(s, t, e, i, o) {
|
|
|
4584
4586
|
let n = o.methodInfo;
|
|
4585
4587
|
return s.__dataHasAccessor && s.__dataHasAccessor[n] ? s._setPendingProperty(n, r, !0) : (s[n] = r, !1);
|
|
4586
4588
|
}
|
|
4587
|
-
function
|
|
4589
|
+
function Ba(s, t, e) {
|
|
4588
4590
|
let i = s.__dataLinkedPaths;
|
|
4589
4591
|
if (i) {
|
|
4590
4592
|
let o;
|
|
@@ -4597,17 +4599,17 @@ function Fa(s, t, e) {
|
|
|
4597
4599
|
function Lt(s, t, e, i, o, r, n) {
|
|
4598
4600
|
e.bindings = e.bindings || [];
|
|
4599
4601
|
let a = { kind: i, target: o, parts: r, literal: n, isCompound: r.length !== 1 };
|
|
4600
|
-
if (e.bindings.push(a),
|
|
4602
|
+
if (e.bindings.push(a), $a(a)) {
|
|
4601
4603
|
let { event: d, negate: c } = a.parts[0];
|
|
4602
|
-
a.listenerEvent = d ||
|
|
4604
|
+
a.listenerEvent = d || kt(o) + "-changed", a.listenerNegate = c;
|
|
4603
4605
|
}
|
|
4604
4606
|
let l = t.nodeInfoList.length;
|
|
4605
4607
|
for (let d = 0; d < a.parts.length; d++) {
|
|
4606
4608
|
let c = a.parts[d];
|
|
4607
|
-
c.compoundIndex = d,
|
|
4609
|
+
c.compoundIndex = d, La(s, t, a, c, l);
|
|
4608
4610
|
}
|
|
4609
4611
|
}
|
|
4610
|
-
function
|
|
4612
|
+
function La(s, t, e, i, o) {
|
|
4611
4613
|
if (!i.literal)
|
|
4612
4614
|
if (e.kind === "attribute" && e.target[0] === "-")
|
|
4613
4615
|
console.warn("Cannot set attribute " + e.target + ' because "-" is not a valid attribute starting character');
|
|
@@ -4615,26 +4617,26 @@ function Ba(s, t, e, i, o) {
|
|
|
4615
4617
|
let r = i.dependencies, n = { index: o, binding: e, part: i, evaluator: s };
|
|
4616
4618
|
for (let a = 0; a < r.length; a++) {
|
|
4617
4619
|
let l = r[a];
|
|
4618
|
-
typeof l == "string" && (l =
|
|
4619
|
-
fn:
|
|
4620
|
+
typeof l == "string" && (l = So(l), l.wildcard = !0), s._addTemplatePropertyEffect(t, l.rootProperty, {
|
|
4621
|
+
fn: za,
|
|
4620
4622
|
info: n,
|
|
4621
4623
|
trigger: l
|
|
4622
4624
|
});
|
|
4623
4625
|
}
|
|
4624
4626
|
}
|
|
4625
4627
|
}
|
|
4626
|
-
function
|
|
4628
|
+
function za(s, t, e, i, o, r, n) {
|
|
4627
4629
|
let a = n[o.index], l = o.binding, d = o.part;
|
|
4628
4630
|
if (r && d.source && t.length > d.source.length && l.kind == "property" && !l.isCompound && a.__isPropertyEffectsClient && a.__dataHasAccessor && a.__dataHasAccessor[l.target]) {
|
|
4629
4631
|
let c = e[t];
|
|
4630
4632
|
t = ot(d.source, l.target, t), a._setPendingPropertyOrPath(t, c, !1, !0) && s._enqueueClient(a);
|
|
4631
4633
|
} else {
|
|
4632
4634
|
let c = o.evaluator._evaluateBinding(s, d, t, e, i, r);
|
|
4633
|
-
c !== nt &&
|
|
4635
|
+
c !== nt && Ra(s, a, l, d, c);
|
|
4634
4636
|
}
|
|
4635
4637
|
}
|
|
4636
|
-
function
|
|
4637
|
-
if (o =
|
|
4638
|
+
function Ra(s, t, e, i, o) {
|
|
4639
|
+
if (o = Ha(t, o, e, i), vt && (o = vt(o, e.target, e.kind, t)), e.kind == "attribute")
|
|
4638
4640
|
s._valueToNodeAttribute(
|
|
4639
4641
|
/** @type {Element} */
|
|
4640
4642
|
t,
|
|
@@ -4646,17 +4648,17 @@ function za(s, t, e, i, o) {
|
|
|
4646
4648
|
t.__isPropertyEffectsClient && t.__dataHasAccessor && t.__dataHasAccessor[r] ? (!t[C.READ_ONLY] || !t[C.READ_ONLY][r]) && t._setPendingProperty(r, o) && s._enqueueClient(t) : s._setUnmanagedPropertyToNode(t, r, o);
|
|
4647
4649
|
}
|
|
4648
4650
|
}
|
|
4649
|
-
function
|
|
4651
|
+
function Ha(s, t, e, i) {
|
|
4650
4652
|
if (e.isCompound) {
|
|
4651
4653
|
let o = s.__dataCompoundStorage[e.target];
|
|
4652
4654
|
o[i.compoundIndex] = t, t = o.join("");
|
|
4653
4655
|
}
|
|
4654
4656
|
return e.kind !== "attribute" && (e.target === "textContent" || e.target === "value" && (s.localName === "input" || s.localName === "textarea")) && (t = t ?? ""), t;
|
|
4655
4657
|
}
|
|
4656
|
-
function
|
|
4658
|
+
function $a(s) {
|
|
4657
4659
|
return !!s.target && s.kind != "attribute" && s.kind != "text" && !s.isCompound && s.parts[0].mode === "{";
|
|
4658
4660
|
}
|
|
4659
|
-
function
|
|
4661
|
+
function Va(s, t) {
|
|
4660
4662
|
let { nodeList: e, nodeInfoList: i } = t;
|
|
4661
4663
|
if (i.length)
|
|
4662
4664
|
for (let o = 0; o < i.length; o++) {
|
|
@@ -4664,12 +4666,12 @@ function $a(s, t) {
|
|
|
4664
4666
|
if (a)
|
|
4665
4667
|
for (let l = 0; l < a.length; l++) {
|
|
4666
4668
|
let d = a[l];
|
|
4667
|
-
|
|
4669
|
+
Ua(n, d), Ya(n, s, d);
|
|
4668
4670
|
}
|
|
4669
4671
|
n.__dataHost = s;
|
|
4670
4672
|
}
|
|
4671
4673
|
}
|
|
4672
|
-
function
|
|
4674
|
+
function Ua(s, t) {
|
|
4673
4675
|
if (t.isCompound) {
|
|
4674
4676
|
let e = s.__dataCompoundStorage || (s.__dataCompoundStorage = {}), i = t.parts, o = new Array(i.length);
|
|
4675
4677
|
for (let n = 0; n < i.length; n++)
|
|
@@ -4678,15 +4680,15 @@ function Va(s, t) {
|
|
|
4678
4680
|
e[r] = o, t.literal && t.kind == "property" && (r === "className" && (s = z(s)), s[r] = t.literal);
|
|
4679
4681
|
}
|
|
4680
4682
|
}
|
|
4681
|
-
function
|
|
4683
|
+
function Ya(s, t, e) {
|
|
4682
4684
|
if (e.listenerEvent) {
|
|
4683
4685
|
let i = e.parts[0];
|
|
4684
4686
|
s.addEventListener(e.listenerEvent, function(o) {
|
|
4685
|
-
|
|
4687
|
+
Sa(o, t, e.target, i.source, i.negate);
|
|
4686
4688
|
});
|
|
4687
4689
|
}
|
|
4688
4690
|
}
|
|
4689
|
-
function
|
|
4691
|
+
function bs(s, t, e, i, o, r) {
|
|
4690
4692
|
r = t.static || r && (typeof r != "object" || r[t.methodName]);
|
|
4691
4693
|
let n = {
|
|
4692
4694
|
methodName: t.methodName,
|
|
@@ -4713,8 +4715,8 @@ function ii(s, t, e, i, o) {
|
|
|
4713
4715
|
} else
|
|
4714
4716
|
o.dynamicFn || console.warn("method `" + o.methodName + "` not defined");
|
|
4715
4717
|
}
|
|
4716
|
-
const
|
|
4717
|
-
function
|
|
4718
|
+
const Wa = [], To = "(?:[a-zA-Z_$][\\w.:$\\-*]*)", ja = "(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)", qa = "(?:'(?:[^'\\\\]|\\\\.)*')", Ka = '(?:"(?:[^"\\\\]|\\\\.)*")', Ga = "(?:" + qa + "|" + Ka + ")", vs = "(?:(" + To + "|" + ja + "|" + Ga + ")\\s*)", Xa = "(?:" + vs + "(?:,\\s*" + vs + ")*)", Ja = "(?:\\(\\s*(?:" + Xa + "?)\\)\\s*)", Qa = "(" + To + "\\s*" + Ja + "?)", Za = "(\\[\\[|{{)\\s*", el = "(?:]]|}})", tl = "(?:(!)\\s*)?", il = Za + tl + Qa + el, ws = new RegExp(il, "g");
|
|
4719
|
+
function xs(s) {
|
|
4718
4720
|
let t = "";
|
|
4719
4721
|
for (let e = 0; e < s.length; e++) {
|
|
4720
4722
|
let i = s[e].literal;
|
|
@@ -4725,22 +4727,22 @@ function ws(s) {
|
|
|
4725
4727
|
function zt(s) {
|
|
4726
4728
|
let t = s.match(/([^\s]+?)\(([\s\S]*)\)/);
|
|
4727
4729
|
if (t) {
|
|
4728
|
-
let i = { methodName: t[1], static: !0, args:
|
|
4730
|
+
let i = { methodName: t[1], static: !0, args: Wa };
|
|
4729
4731
|
if (t[2].trim()) {
|
|
4730
4732
|
let o = t[2].replace(/\\,/g, ",").split(",");
|
|
4731
|
-
return
|
|
4733
|
+
return sl(o, i);
|
|
4732
4734
|
} else
|
|
4733
4735
|
return i;
|
|
4734
4736
|
}
|
|
4735
4737
|
return null;
|
|
4736
4738
|
}
|
|
4737
|
-
function
|
|
4739
|
+
function sl(s, t) {
|
|
4738
4740
|
return t.args = s.map(function(e) {
|
|
4739
|
-
let i =
|
|
4741
|
+
let i = So(e);
|
|
4740
4742
|
return i.literal || (t.static = !1), i;
|
|
4741
4743
|
}, this), t;
|
|
4742
4744
|
}
|
|
4743
|
-
function
|
|
4745
|
+
function So(s) {
|
|
4744
4746
|
let t = s.trim().replace(/,/g, ",").replace(/\\(.)/g, "$1"), e = {
|
|
4745
4747
|
name: t,
|
|
4746
4748
|
value: "",
|
|
@@ -4757,16 +4759,16 @@ function To(s) {
|
|
|
4757
4759
|
}
|
|
4758
4760
|
return e.literal || (e.rootProperty = xe(t), e.structured = ei(t), e.structured && (e.wildcard = t.slice(-2) == ".*", e.wildcard && (e.name = t.slice(0, -2)))), e;
|
|
4759
4761
|
}
|
|
4760
|
-
function
|
|
4762
|
+
function Cs(s, t, e) {
|
|
4761
4763
|
let i = R(s, e);
|
|
4762
4764
|
return i === void 0 && (i = t[e]), i;
|
|
4763
4765
|
}
|
|
4764
|
-
function
|
|
4766
|
+
function Oo(s, t, e, i) {
|
|
4765
4767
|
const o = { indexSplices: i };
|
|
4766
4768
|
Zt && !s._overrideLegacyUndefined && (t.splices = o), s.notifyPath(e + ".splices", o), s.notifyPath(e + ".length", t.length), Zt && !s._overrideLegacyUndefined && (o.indexSplices = []);
|
|
4767
4769
|
}
|
|
4768
4770
|
function We(s, t, e, i, o, r) {
|
|
4769
|
-
|
|
4771
|
+
Oo(s, t, e, [{
|
|
4770
4772
|
index: i,
|
|
4771
4773
|
addedCount: o,
|
|
4772
4774
|
removed: r,
|
|
@@ -4774,11 +4776,11 @@ function We(s, t, e, i, o, r) {
|
|
|
4774
4776
|
type: "splice"
|
|
4775
4777
|
}]);
|
|
4776
4778
|
}
|
|
4777
|
-
function
|
|
4779
|
+
function ol(s) {
|
|
4778
4780
|
return s[0].toUpperCase() + s.substring(1);
|
|
4779
4781
|
}
|
|
4780
|
-
const
|
|
4781
|
-
const t =
|
|
4782
|
+
const Si = F((s) => {
|
|
4783
|
+
const t = Aa(fa(s));
|
|
4782
4784
|
class e extends t {
|
|
4783
4785
|
constructor() {
|
|
4784
4786
|
super(), this.__isPropertyEffectsClient = !0, this.__dataClientsReady, this.__dataPendingClients, this.__dataToNotify, this.__dataLinkedPaths, this.__dataHasPaths, this.__dataCompoundStorage, this.__dataHost, this.__dataTemp, this.__dataClientsInitialized, this.__data, this.__dataPending, this.__dataOld, this.__computeEffects, this.__computeInfo, this.__reflectEffects, this.__notifyEffects, this.__propagateEffects, this.__observeEffects, this.__readOnly, this.__templateInfo, this._overrideLegacyUndefined;
|
|
@@ -4957,7 +4959,7 @@ const Ti = F((s) => {
|
|
|
4957
4959
|
if (!a) {
|
|
4958
4960
|
let l = R(this, o);
|
|
4959
4961
|
if (o = /** @type {string} */
|
|
4960
|
-
|
|
4962
|
+
fs(this, o, r), !o || !super._shouldPropertyChange(o, r, l))
|
|
4961
4963
|
return !1;
|
|
4962
4964
|
}
|
|
4963
4965
|
if (this.__dataHasPaths = !0, this._setPendingProperty(
|
|
@@ -4966,7 +4968,7 @@ const Ti = F((s) => {
|
|
|
4966
4968
|
r,
|
|
4967
4969
|
n
|
|
4968
4970
|
))
|
|
4969
|
-
return
|
|
4971
|
+
return Ba(
|
|
4970
4972
|
this,
|
|
4971
4973
|
/**@type{string}*/
|
|
4972
4974
|
o,
|
|
@@ -5182,7 +5184,7 @@ const Ti = F((s) => {
|
|
|
5182
5184
|
let a = this.__dataHasPaths;
|
|
5183
5185
|
this.__dataHasPaths = !1;
|
|
5184
5186
|
let l;
|
|
5185
|
-
|
|
5187
|
+
Ma(this, r, n, a), l = this.__dataToNotify, this.__dataToNotify = null, this._propagatePropertyChanges(r, n, a), this._flushClients(), Xe(this, this[C.REFLECT], r, n, a), Xe(this, this[C.OBSERVE], r, n, a), l && Da(this, l, r, n, a), this.__dataCounter == 1 && (this.__dataTemp = {});
|
|
5186
5188
|
}
|
|
5187
5189
|
/**
|
|
5188
5190
|
* Called to propagate any property changes to stamped template nodes
|
|
@@ -5279,7 +5281,7 @@ const Ti = F((s) => {
|
|
|
5279
5281
|
/** @type {Array} */
|
|
5280
5282
|
R(this, o, n)
|
|
5281
5283
|
);
|
|
5282
|
-
|
|
5284
|
+
Oo(this, a, n.path, r);
|
|
5283
5285
|
}
|
|
5284
5286
|
/**
|
|
5285
5287
|
* Convenience method for reading a value from a path.
|
|
@@ -5327,7 +5329,7 @@ const Ti = F((s) => {
|
|
|
5327
5329
|
* @public
|
|
5328
5330
|
*/
|
|
5329
5331
|
set(o, r, n) {
|
|
5330
|
-
n ?
|
|
5332
|
+
n ? fs(n, o, r) : (!this[C.READ_ONLY] || !this[C.READ_ONLY][
|
|
5331
5333
|
/** @type {string} */
|
|
5332
5334
|
o
|
|
5333
5335
|
]) && this._setPendingPropertyOrPath(o, r, !0) && this._invalidateProperties();
|
|
@@ -5482,7 +5484,7 @@ const Ti = F((s) => {
|
|
|
5482
5484
|
* @protected
|
|
5483
5485
|
*/
|
|
5484
5486
|
_createReadOnlyProperty(o, r) {
|
|
5485
|
-
this._addPropertyEffect(o, C.READ_ONLY), r && (this["_set" +
|
|
5487
|
+
this._addPropertyEffect(o, C.READ_ONLY), r && (this["_set" + ol(o)] = /** @this {PropertyEffects} */
|
|
5486
5488
|
function(n) {
|
|
5487
5489
|
this._setProperty(o, n);
|
|
5488
5490
|
});
|
|
@@ -5504,7 +5506,7 @@ const Ti = F((s) => {
|
|
|
5504
5506
|
_createPropertyObserver(o, r, n) {
|
|
5505
5507
|
let a = { property: o, method: r, dynamicFn: !!n };
|
|
5506
5508
|
this._addPropertyEffect(o, C.OBSERVE, {
|
|
5507
|
-
fn:
|
|
5509
|
+
fn: gs,
|
|
5508
5510
|
info: a,
|
|
5509
5511
|
trigger: { name: o }
|
|
5510
5512
|
}), n && this._addPropertyEffect(
|
|
@@ -5512,7 +5514,7 @@ const Ti = F((s) => {
|
|
|
5512
5514
|
r,
|
|
5513
5515
|
C.OBSERVE,
|
|
5514
5516
|
{
|
|
5515
|
-
fn:
|
|
5517
|
+
fn: gs,
|
|
5516
5518
|
info: a,
|
|
5517
5519
|
trigger: { name: r }
|
|
5518
5520
|
}
|
|
@@ -5534,7 +5536,7 @@ const Ti = F((s) => {
|
|
|
5534
5536
|
let n = zt(o);
|
|
5535
5537
|
if (!n)
|
|
5536
5538
|
throw new Error("Malformed observer expression '" + o + "'");
|
|
5537
|
-
|
|
5539
|
+
bs(this, n, C.OBSERVE, ii, null, r);
|
|
5538
5540
|
}
|
|
5539
5541
|
/**
|
|
5540
5542
|
* Equivalent to static `createNotifyingProperty` API but can be called on
|
|
@@ -5548,9 +5550,9 @@ const Ti = F((s) => {
|
|
|
5548
5550
|
*/
|
|
5549
5551
|
_createNotifyingProperty(o) {
|
|
5550
5552
|
this._addPropertyEffect(o, C.NOTIFY, {
|
|
5551
|
-
fn:
|
|
5553
|
+
fn: Ta,
|
|
5552
5554
|
info: {
|
|
5553
|
-
eventName:
|
|
5555
|
+
eventName: kt(o) + "-changed",
|
|
5554
5556
|
property: o
|
|
5555
5557
|
}
|
|
5556
5558
|
});
|
|
@@ -5569,7 +5571,7 @@ const Ti = F((s) => {
|
|
|
5569
5571
|
_createReflectedProperty(o) {
|
|
5570
5572
|
let r = this.constructor.attributeNameForProperty(o);
|
|
5571
5573
|
r[0] === "-" ? console.warn("Property " + o + " cannot be reflected to attribute " + r + ' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.') : this._addPropertyEffect(o, C.REFLECT, {
|
|
5572
|
-
fn:
|
|
5574
|
+
fn: Oa,
|
|
5573
5575
|
info: {
|
|
5574
5576
|
attrName: r
|
|
5575
5577
|
}
|
|
@@ -5592,8 +5594,8 @@ const Ti = F((s) => {
|
|
|
5592
5594
|
let a = zt(r);
|
|
5593
5595
|
if (!a)
|
|
5594
5596
|
throw new Error("Malformed computed expression '" + r + "'");
|
|
5595
|
-
const l =
|
|
5596
|
-
Bt(this,
|
|
5597
|
+
const l = bs(this, a, C.COMPUTE, ko, o, n);
|
|
5598
|
+
Bt(this, Po)[o] = l;
|
|
5597
5599
|
}
|
|
5598
5600
|
/**
|
|
5599
5601
|
* Gather the argument values for a method specified in the provided array
|
|
@@ -5614,14 +5616,14 @@ const Ti = F((s) => {
|
|
|
5614
5616
|
let { name: u, structured: h, wildcard: f, value: m, literal: v } = o[d];
|
|
5615
5617
|
if (!v)
|
|
5616
5618
|
if (f) {
|
|
5617
|
-
const y = st(u, r), P =
|
|
5619
|
+
const y = st(u, r), P = Cs(a, n, y ? r : u);
|
|
5618
5620
|
m = {
|
|
5619
5621
|
path: y ? r : u,
|
|
5620
5622
|
value: P,
|
|
5621
5623
|
base: y ? R(a, u) : P
|
|
5622
5624
|
};
|
|
5623
5625
|
} else
|
|
5624
|
-
m = h ?
|
|
5626
|
+
m = h ? Cs(a, n, u) : a[u];
|
|
5625
5627
|
if (Zt && !this._overrideLegacyUndefined && m === void 0 && o.length > 1)
|
|
5626
5628
|
return nt;
|
|
5627
5629
|
l[d] = m;
|
|
@@ -5904,7 +5906,7 @@ const Ti = F((s) => {
|
|
|
5904
5906
|
for (let l = n.firstChild; l; l = l.nextSibling)
|
|
5905
5907
|
a.push(l);
|
|
5906
5908
|
}
|
|
5907
|
-
return n.templateInfo = r,
|
|
5909
|
+
return n.templateInfo = r, Va(this, r), this.__dataClientsReady && (this._runEffectsForTemplate(r, this.__data, null, !1), this._flushClients()), n;
|
|
5908
5910
|
}
|
|
5909
5911
|
/**
|
|
5910
5912
|
* Removes and unbinds the nodes previously contained in the provided
|
|
@@ -5951,7 +5953,7 @@ const Ti = F((s) => {
|
|
|
5951
5953
|
);
|
|
5952
5954
|
if (o.nodeType === Node.TEXT_NODE) {
|
|
5953
5955
|
let l = this._parseBindings(o.textContent, r);
|
|
5954
|
-
l && (o.textContent =
|
|
5956
|
+
l && (o.textContent = xs(l) || " ", Lt(this, r, n, "text", "textContent", l), a = !0);
|
|
5955
5957
|
}
|
|
5956
5958
|
return a;
|
|
5957
5959
|
}
|
|
@@ -5978,9 +5980,9 @@ const Ti = F((s) => {
|
|
|
5978
5980
|
let d = this._parseBindings(l, r);
|
|
5979
5981
|
if (d) {
|
|
5980
5982
|
let c = a, u = "property";
|
|
5981
|
-
|
|
5982
|
-
let h =
|
|
5983
|
-
return h && u == "attribute" && (a == "class" && o.hasAttribute("class") && (h += " " + o.getAttribute(a)), o.setAttribute(a, h)), u == "attribute" && c == "disable-upgrade$" && o.setAttribute(a, ""), o.localName === "input" && c === "value" && o.setAttribute(c, ""), o.removeAttribute(c), u === "property" && (a =
|
|
5983
|
+
Ea.test(a) ? u = "attribute" : a[a.length - 1] == "$" && (a = a.slice(0, -1), u = "attribute");
|
|
5984
|
+
let h = xs(d);
|
|
5985
|
+
return h && u == "attribute" && (a == "class" && o.hasAttribute("class") && (h += " " + o.getAttribute(a)), o.setAttribute(a, h)), u == "attribute" && c == "disable-upgrade$" && o.setAttribute(a, ""), o.localName === "input" && c === "value" && o.setAttribute(c, ""), o.removeAttribute(c), u === "property" && (a = bo(a)), Lt(this, r, n, u, a, d, h), !0;
|
|
5984
5986
|
} else
|
|
5985
5987
|
return t._parseTemplateNodeAttribute.call(
|
|
5986
5988
|
this,
|
|
@@ -6013,10 +6015,10 @@ const Ti = F((s) => {
|
|
|
6013
6015
|
n
|
|
6014
6016
|
);
|
|
6015
6017
|
const l = o.parentNode, d = n.templateInfo, c = l.localName === "dom-if", u = l.localName === "dom-repeat";
|
|
6016
|
-
|
|
6018
|
+
ls && (c || u) && (l.removeChild(o), n = n.parentInfo, n.templateInfo = d, n.noted = !0, a = !1);
|
|
6017
6019
|
let h = d.hostProps;
|
|
6018
|
-
if (
|
|
6019
|
-
h && (r.hostProps = Object.assign(r.hostProps || {}, h),
|
|
6020
|
+
if (Gn && c)
|
|
6021
|
+
h && (r.hostProps = Object.assign(r.hostProps || {}, h), ls || (n.parentInfo.noted = !0));
|
|
6020
6022
|
else {
|
|
6021
6023
|
let f = "{";
|
|
6022
6024
|
for (let m in h) {
|
|
@@ -6073,7 +6075,7 @@ const Ti = F((s) => {
|
|
|
6073
6075
|
*/
|
|
6074
6076
|
static _parseBindings(o, r) {
|
|
6075
6077
|
let n = [], a = 0, l;
|
|
6076
|
-
for (; (l =
|
|
6078
|
+
for (; (l = ws.exec(o)) !== null; ) {
|
|
6077
6079
|
l.index > a && n.push({ literal: o.slice(a, l.index) });
|
|
6078
6080
|
let d = l[1][0], c = !!l[2], u = l[3].trim(), h = !1, f = "", m = -1;
|
|
6079
6081
|
d == "{" && (m = u.indexOf("::")) > 0 && (f = u.substring(m + 2), u = u.substring(0, m), h = !0);
|
|
@@ -6096,7 +6098,7 @@ const Ti = F((s) => {
|
|
|
6096
6098
|
signature: v,
|
|
6097
6099
|
dependencies: y,
|
|
6098
6100
|
event: f
|
|
6099
|
-
}), a =
|
|
6101
|
+
}), a = ws.lastIndex;
|
|
6100
6102
|
}
|
|
6101
6103
|
if (a && a < o.length) {
|
|
6102
6104
|
let d = o.substring(a);
|
|
@@ -6146,7 +6148,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
6146
6148
|
Code distributed by Google as part of the polymer project is also
|
|
6147
6149
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
6148
6150
|
*/
|
|
6149
|
-
function
|
|
6151
|
+
function rl(s) {
|
|
6150
6152
|
const t = {};
|
|
6151
6153
|
for (let e in s) {
|
|
6152
6154
|
const i = s[e];
|
|
@@ -6154,8 +6156,8 @@ function ol(s) {
|
|
|
6154
6156
|
}
|
|
6155
6157
|
return t;
|
|
6156
6158
|
}
|
|
6157
|
-
const
|
|
6158
|
-
const t =
|
|
6159
|
+
const nl = F((s) => {
|
|
6160
|
+
const t = Co(s);
|
|
6159
6161
|
function e(r) {
|
|
6160
6162
|
const n = Object.getPrototypeOf(r);
|
|
6161
6163
|
return n.prototype instanceof o ? (
|
|
@@ -6168,7 +6170,7 @@ const rl = F((s) => {
|
|
|
6168
6170
|
let n = null;
|
|
6169
6171
|
if (r.hasOwnProperty(JSCompiler_renameProperty("properties", r))) {
|
|
6170
6172
|
const a = r.properties;
|
|
6171
|
-
a && (n =
|
|
6173
|
+
a && (n = rl(a));
|
|
6172
6174
|
}
|
|
6173
6175
|
r.__ownProperties = n;
|
|
6174
6176
|
}
|
|
@@ -6305,8 +6307,8 @@ const rl = F((s) => {
|
|
|
6305
6307
|
* Google as part of the polymer project is also subject to an additional IP
|
|
6306
6308
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
6307
6309
|
*/
|
|
6308
|
-
const
|
|
6309
|
-
const t =
|
|
6310
|
+
const al = "3.5.2", As = window.ShadyCSS && window.ShadyCSS.cssBuild, ll = F((s) => {
|
|
6311
|
+
const t = nl(Si(s));
|
|
6310
6312
|
function e(l) {
|
|
6311
6313
|
if (!l.hasOwnProperty(
|
|
6312
6314
|
JSCompiler_renameProperty("__propertyDefaults", l)
|
|
@@ -6334,8 +6336,8 @@ const nl = "3.5.2", Cs = window.ShadyCSS && window.ShadyCSS.cssBuild, al = F((s)
|
|
|
6334
6336
|
c.computed && (c.readOnly = !0), c.computed && (l._hasReadOnlyEffect(d) ? console.warn(`Cannot redefine computed property '${d}'.`) : l._createComputedProperty(d, c.computed, u)), c.readOnly && !l._hasReadOnlyEffect(d) ? l._createReadOnlyProperty(d, !c.computed) : c.readOnly === !1 && l._hasReadOnlyEffect(d) && console.warn(`Cannot make readOnly property '${d}' non-readOnly.`), c.reflectToAttribute && !l._hasReflectEffect(d) ? l._createReflectedProperty(d) : c.reflectToAttribute === !1 && l._hasReflectEffect(d) && console.warn(`Cannot make reflected property '${d}' non-reflected.`), c.notify && !l._hasNotifyEffect(d) ? l._createNotifyingProperty(d) : c.notify === !1 && l._hasNotifyEffect(d) && console.warn(`Cannot make notify property '${d}' non-notify.`), c.observer && l._createPropertyObserver(d, c.observer, u[c.observer]), l._addPropertyToAttributeMap(d);
|
|
6335
6337
|
}
|
|
6336
6338
|
function r(l, d, c, u) {
|
|
6337
|
-
if (!
|
|
6338
|
-
const h = d.content.querySelectorAll("style"), f =
|
|
6339
|
+
if (!As) {
|
|
6340
|
+
const h = d.content.querySelectorAll("style"), f = mo(d), m = sa(c), v = d.content.firstElementChild;
|
|
6339
6341
|
for (let P = 0; P < m.length; P++) {
|
|
6340
6342
|
let A = m[P];
|
|
6341
6343
|
A.textContent = l._processStyleText(A.textContent, u), d.content.insertBefore(A, v);
|
|
@@ -6346,7 +6348,7 @@ const nl = "3.5.2", Cs = window.ShadyCSS && window.ShadyCSS.cssBuild, al = F((s)
|
|
|
6346
6348
|
S !== A ? (A = A.cloneNode(!0), S.parentNode.insertBefore(A, S)) : y++, A.textContent = l._processStyleText(A.textContent, u);
|
|
6347
6349
|
}
|
|
6348
6350
|
}
|
|
6349
|
-
if (window.ShadyCSS && window.ShadyCSS.prepareTemplate(d, c),
|
|
6351
|
+
if (window.ShadyCSS && window.ShadyCSS.prepareTemplate(d, c), Xn && As && Yn) {
|
|
6350
6352
|
const h = d.content.querySelectorAll("style");
|
|
6351
6353
|
if (h) {
|
|
6352
6354
|
let f = "";
|
|
@@ -6358,7 +6360,7 @@ const nl = "3.5.2", Cs = window.ShadyCSS && window.ShadyCSS.cssBuild, al = F((s)
|
|
|
6358
6360
|
}
|
|
6359
6361
|
function n(l) {
|
|
6360
6362
|
let d = null;
|
|
6361
|
-
if (l && (!wt ||
|
|
6363
|
+
if (l && (!wt || jn) && (d = /** @type {?HTMLTemplateElement} */
|
|
6362
6364
|
it.import(l, "template"), wt && !d))
|
|
6363
6365
|
throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);
|
|
6364
6366
|
return d;
|
|
@@ -6370,7 +6372,7 @@ const nl = "3.5.2", Cs = window.ShadyCSS && window.ShadyCSS.cssBuild, al = F((s)
|
|
|
6370
6372
|
* @nocollapse
|
|
6371
6373
|
*/
|
|
6372
6374
|
static get polymerElementVersion() {
|
|
6373
|
-
return
|
|
6375
|
+
return al;
|
|
6374
6376
|
}
|
|
6375
6377
|
/**
|
|
6376
6378
|
* Override of PropertiesMixin _finalizeClass to create observers and
|
|
@@ -6391,7 +6393,7 @@ const nl = "3.5.2", Cs = window.ShadyCSS && window.ShadyCSS.cssBuild, al = F((s)
|
|
|
6391
6393
|
/** @type {PolymerElementConstructor} */
|
|
6392
6394
|
this.template
|
|
6393
6395
|
);
|
|
6394
|
-
d && (typeof d == "string" ? (console.error("template getter must return HTMLTemplateElement"), d = null) :
|
|
6396
|
+
d && (typeof d == "string" ? (console.error("template getter must return HTMLTemplateElement"), d = null) : uo || (d = d.cloneNode(!0))), this.prototype._template = d;
|
|
6395
6397
|
}
|
|
6396
6398
|
/**
|
|
6397
6399
|
* Override of PropertiesChanged createProperties to create accessors
|
|
@@ -6528,7 +6530,7 @@ const nl = "3.5.2", Cs = window.ShadyCSS && window.ShadyCSS.cssBuild, al = F((s)
|
|
|
6528
6530
|
if (!this.hasOwnProperty(JSCompiler_renameProperty("_importPath", this))) {
|
|
6529
6531
|
const d = this.importMeta;
|
|
6530
6532
|
if (d)
|
|
6531
|
-
this._importPath =
|
|
6533
|
+
this._importPath = Di(d.url);
|
|
6532
6534
|
else {
|
|
6533
6535
|
const c = it.import(
|
|
6534
6536
|
/** @type {PolymerElementConstructor} */
|
|
@@ -6561,7 +6563,7 @@ const nl = "3.5.2", Cs = window.ShadyCSS && window.ShadyCSS.cssBuild, al = F((s)
|
|
|
6561
6563
|
this.constructor.finalize(), this.constructor._finalizeTemplate(
|
|
6562
6564
|
/** @type {!HTMLElement} */
|
|
6563
6565
|
this.localName
|
|
6564
|
-
), super._initializeProperties(), this.rootPath =
|
|
6566
|
+
), super._initializeProperties(), this.rootPath = Wn, this.importPath = this.constructor.importPath;
|
|
6565
6567
|
let d = e(this.constructor);
|
|
6566
6568
|
if (d)
|
|
6567
6569
|
for (let c in d) {
|
|
@@ -6593,7 +6595,7 @@ const nl = "3.5.2", Cs = window.ShadyCSS && window.ShadyCSS.cssBuild, al = F((s)
|
|
|
6593
6595
|
* @nocollapse
|
|
6594
6596
|
*/
|
|
6595
6597
|
static _processStyleText(d, c) {
|
|
6596
|
-
return
|
|
6598
|
+
return Pi(d, c);
|
|
6597
6599
|
}
|
|
6598
6600
|
/**
|
|
6599
6601
|
* Configures an element `proto` to function with a given `template`.
|
|
@@ -6672,7 +6674,7 @@ const nl = "3.5.2", Cs = window.ShadyCSS && window.ShadyCSS.cssBuild, al = F((s)
|
|
|
6672
6674
|
_attachDom(d) {
|
|
6673
6675
|
const c = z(this);
|
|
6674
6676
|
if (c.attachShadow)
|
|
6675
|
-
return d ? (c.shadowRoot || (c.attachShadow({ mode: "open", shadyUpgradeFragment: d }), c.shadowRoot.appendChild(d), this.constructor._styleSheet && (c.shadowRoot.adoptedStyleSheets = [this.constructor._styleSheet])),
|
|
6677
|
+
return d ? (c.shadowRoot || (c.attachShadow({ mode: "open", shadyUpgradeFragment: d }), c.shadowRoot.appendChild(d), this.constructor._styleSheet && (c.shadowRoot.adoptedStyleSheets = [this.constructor._styleSheet])), qn && window.ShadyDOM && window.ShadyDOM.flushInitial(c.shadowRoot), c.shadowRoot) : null;
|
|
6676
6678
|
throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.");
|
|
6677
6679
|
}
|
|
6678
6680
|
/**
|
|
@@ -6757,7 +6759,7 @@ const nl = "3.5.2", Cs = window.ShadyCSS && window.ShadyCSS.cssBuild, al = F((s)
|
|
|
6757
6759
|
* @nocollapse
|
|
6758
6760
|
*/
|
|
6759
6761
|
static _addTemplatePropertyEffect(d, c, u) {
|
|
6760
|
-
return
|
|
6762
|
+
return ho && !(c in this._properties) && // Methods used in templates with no dependencies (or only literal
|
|
6761
6763
|
// dependencies) become accessors with template effects; ignore these
|
|
6762
6764
|
!(u.info.part.signature && u.info.part.signature.static) && // Warnings for bindings added to nested templates are handled by
|
|
6763
6765
|
// templatizer so ignore both the host-to-template bindings
|
|
@@ -6782,16 +6784,16 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
6782
6784
|
Code distributed by Google as part of the polymer project is also
|
|
6783
6785
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
6784
6786
|
*/
|
|
6785
|
-
const
|
|
6786
|
-
class
|
|
6787
|
+
const Es = window.trustedTypes && trustedTypes.createPolicy("polymer-html-literal", { createHTML: (s) => s });
|
|
6788
|
+
class Mo {
|
|
6787
6789
|
/**
|
|
6788
6790
|
* @param {!ITemplateArray} strings Constant parts of tagged template literal
|
|
6789
6791
|
* @param {!Array<*>} values Variable parts of tagged template literal
|
|
6790
6792
|
*/
|
|
6791
6793
|
constructor(t, e) {
|
|
6792
|
-
|
|
6794
|
+
No(t, e);
|
|
6793
6795
|
const i = e.reduce(
|
|
6794
|
-
(o, r, n) => o +
|
|
6796
|
+
(o, r, n) => o + Io(r) + t[n + 1],
|
|
6795
6797
|
t[0]
|
|
6796
6798
|
);
|
|
6797
6799
|
this.value = i.toString();
|
|
@@ -6804,8 +6806,8 @@ class Oo {
|
|
|
6804
6806
|
return this.value;
|
|
6805
6807
|
}
|
|
6806
6808
|
}
|
|
6807
|
-
function
|
|
6808
|
-
if (s instanceof
|
|
6809
|
+
function Io(s) {
|
|
6810
|
+
if (s instanceof Mo)
|
|
6809
6811
|
return (
|
|
6810
6812
|
/** @type {!LiteralString} */
|
|
6811
6813
|
s.value
|
|
@@ -6814,30 +6816,30 @@ function Mo(s) {
|
|
|
6814
6816
|
`non-literal value passed to Polymer's htmlLiteral function: ${s}`
|
|
6815
6817
|
);
|
|
6816
6818
|
}
|
|
6817
|
-
function
|
|
6819
|
+
function dl(s) {
|
|
6818
6820
|
if (s instanceof HTMLTemplateElement)
|
|
6819
6821
|
return (
|
|
6820
6822
|
/** @type {!HTMLTemplateElement } */
|
|
6821
6823
|
s.innerHTML
|
|
6822
6824
|
);
|
|
6823
|
-
if (s instanceof
|
|
6824
|
-
return
|
|
6825
|
+
if (s instanceof Mo)
|
|
6826
|
+
return Io(s);
|
|
6825
6827
|
throw new Error(
|
|
6826
6828
|
`non-template value passed to Polymer's html function: ${s}`
|
|
6827
6829
|
);
|
|
6828
6830
|
}
|
|
6829
6831
|
const Ce = function(t, ...e) {
|
|
6830
|
-
|
|
6832
|
+
No(t, e);
|
|
6831
6833
|
const i = (
|
|
6832
6834
|
/** @type {!HTMLTemplateElement} */
|
|
6833
6835
|
document.createElement("template")
|
|
6834
6836
|
);
|
|
6835
6837
|
let o = e.reduce(
|
|
6836
|
-
(r, n, a) => r +
|
|
6838
|
+
(r, n, a) => r + dl(n) + t[a + 1],
|
|
6837
6839
|
t[0]
|
|
6838
6840
|
);
|
|
6839
|
-
return
|
|
6840
|
-
},
|
|
6841
|
+
return Es && (o = Es.createHTML(o)), i.innerHTML = o, i;
|
|
6842
|
+
}, No = (s, t) => {
|
|
6841
6843
|
if (!Array.isArray(s) || !Array.isArray(s.raw) || t.length !== s.length - 1)
|
|
6842
6844
|
throw new TypeError("Invalid call to the html template tag");
|
|
6843
6845
|
};
|
|
@@ -6850,7 +6852,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
6850
6852
|
Code distributed by Google as part of the polymer project is also
|
|
6851
6853
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
6852
6854
|
*/
|
|
6853
|
-
const ce =
|
|
6855
|
+
const ce = ll(HTMLElement);
|
|
6854
6856
|
/**
|
|
6855
6857
|
* @license
|
|
6856
6858
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
@@ -6863,14 +6865,14 @@ function si(s, t, e = s.getAttribute("dir")) {
|
|
|
6863
6865
|
function oi() {
|
|
6864
6866
|
return document.documentElement.getAttribute("dir");
|
|
6865
6867
|
}
|
|
6866
|
-
function
|
|
6868
|
+
function cl() {
|
|
6867
6869
|
const s = oi();
|
|
6868
6870
|
se.forEach((t) => {
|
|
6869
6871
|
si(t, s);
|
|
6870
6872
|
});
|
|
6871
6873
|
}
|
|
6872
|
-
const
|
|
6873
|
-
|
|
6874
|
+
const ul = new MutationObserver(cl);
|
|
6875
|
+
ul.observe(document.documentElement, { attributes: !0, attributeFilter: ["dir"] });
|
|
6874
6876
|
const Tt = (s) => class extends s {
|
|
6875
6877
|
static get properties() {
|
|
6876
6878
|
return {
|
|
@@ -6932,7 +6934,7 @@ const Tt = (s) => class extends s {
|
|
|
6932
6934
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
6933
6935
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6934
6936
|
*/
|
|
6935
|
-
const
|
|
6937
|
+
const hl = (s) => class extends s {
|
|
6936
6938
|
static get properties() {
|
|
6937
6939
|
return {
|
|
6938
6940
|
/**
|
|
@@ -6972,7 +6974,7 @@ const ul = (s) => class extends s {
|
|
|
6972
6974
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
6973
6975
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6974
6976
|
*/
|
|
6975
|
-
const
|
|
6977
|
+
const pl = x`
|
|
6976
6978
|
:host {
|
|
6977
6979
|
display: flex;
|
|
6978
6980
|
align-items: center;
|
|
@@ -7043,8 +7045,8 @@ const hl = x`
|
|
|
7043
7045
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7044
7046
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7045
7047
|
*/
|
|
7046
|
-
I("vaadin-input-container",
|
|
7047
|
-
class
|
|
7048
|
+
I("vaadin-input-container", pl, { moduleId: "vaadin-input-container-styles" });
|
|
7049
|
+
class fl extends hl(we(Tt(ce))) {
|
|
7048
7050
|
static get is() {
|
|
7049
7051
|
return "vaadin-input-container";
|
|
7050
7052
|
}
|
|
@@ -7056,13 +7058,13 @@ class pl extends ul(we(Tt(ce))) {
|
|
|
7056
7058
|
`;
|
|
7057
7059
|
}
|
|
7058
7060
|
}
|
|
7059
|
-
ee(
|
|
7061
|
+
ee(fl);
|
|
7060
7062
|
/**
|
|
7061
7063
|
* @license
|
|
7062
7064
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
7063
7065
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7064
7066
|
*/
|
|
7065
|
-
const
|
|
7067
|
+
const ml = x`
|
|
7066
7068
|
:host {
|
|
7067
7069
|
z-index: 200;
|
|
7068
7070
|
position: fixed;
|
|
@@ -7127,18 +7129,18 @@ const fl = x`
|
|
|
7127
7129
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7128
7130
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7129
7131
|
*/
|
|
7130
|
-
let
|
|
7132
|
+
let Oi = !1;
|
|
7131
7133
|
window.addEventListener(
|
|
7132
7134
|
"keydown",
|
|
7133
7135
|
() => {
|
|
7134
|
-
|
|
7136
|
+
Oi = !0;
|
|
7135
7137
|
},
|
|
7136
7138
|
{ capture: !0 }
|
|
7137
7139
|
);
|
|
7138
7140
|
window.addEventListener(
|
|
7139
7141
|
"mousedown",
|
|
7140
7142
|
() => {
|
|
7141
|
-
|
|
7143
|
+
Oi = !1;
|
|
7142
7144
|
},
|
|
7143
7145
|
{ capture: !0 }
|
|
7144
7146
|
);
|
|
@@ -7148,24 +7150,24 @@ function ri() {
|
|
|
7148
7150
|
s = s.shadowRoot.activeElement;
|
|
7149
7151
|
return s;
|
|
7150
7152
|
}
|
|
7151
|
-
function
|
|
7152
|
-
return
|
|
7153
|
+
function Mi() {
|
|
7154
|
+
return Oi;
|
|
7153
7155
|
}
|
|
7154
|
-
function
|
|
7156
|
+
function _l(s) {
|
|
7155
7157
|
const t = s.style;
|
|
7156
7158
|
if (t.visibility === "hidden" || t.display === "none")
|
|
7157
7159
|
return !0;
|
|
7158
7160
|
const e = window.getComputedStyle(s);
|
|
7159
7161
|
return e.visibility === "hidden" || e.display === "none";
|
|
7160
7162
|
}
|
|
7161
|
-
function
|
|
7163
|
+
function gl(s, t) {
|
|
7162
7164
|
const e = Math.max(s.tabIndex, 0), i = Math.max(t.tabIndex, 0);
|
|
7163
7165
|
return e === 0 || i === 0 ? i > e : e > i;
|
|
7164
7166
|
}
|
|
7165
|
-
function
|
|
7167
|
+
function yl(s, t) {
|
|
7166
7168
|
const e = [];
|
|
7167
7169
|
for (; s.length > 0 && t.length > 0; )
|
|
7168
|
-
|
|
7170
|
+
gl(s[0], t[0]) ? e.push(t.shift()) : e.push(s.shift());
|
|
7169
7171
|
return e.concat(s, t);
|
|
7170
7172
|
}
|
|
7171
7173
|
function ni(s) {
|
|
@@ -7173,37 +7175,37 @@ function ni(s) {
|
|
|
7173
7175
|
if (t < 2)
|
|
7174
7176
|
return s;
|
|
7175
7177
|
const e = Math.ceil(t / 2), i = ni(s.slice(0, e)), o = ni(s.slice(e));
|
|
7176
|
-
return
|
|
7178
|
+
return yl(i, o);
|
|
7177
7179
|
}
|
|
7178
|
-
function
|
|
7180
|
+
function Fo(s) {
|
|
7179
7181
|
return s.matches('[tabindex="-1"]') ? !1 : s.matches("input, select, textarea, button, object") ? s.matches(":not([disabled])") : s.matches("a[href], area[href], iframe, [tabindex], [contentEditable]");
|
|
7180
7182
|
}
|
|
7181
|
-
function
|
|
7183
|
+
function bl(s) {
|
|
7182
7184
|
return s.getRootNode().activeElement === s;
|
|
7183
7185
|
}
|
|
7184
|
-
function
|
|
7185
|
-
if (!
|
|
7186
|
+
function vl(s) {
|
|
7187
|
+
if (!Fo(s))
|
|
7186
7188
|
return -1;
|
|
7187
7189
|
const t = s.getAttribute("tabindex") || 0;
|
|
7188
7190
|
return Number(t);
|
|
7189
7191
|
}
|
|
7190
|
-
function
|
|
7191
|
-
if (s.nodeType !== Node.ELEMENT_NODE ||
|
|
7192
|
+
function Bo(s, t) {
|
|
7193
|
+
if (s.nodeType !== Node.ELEMENT_NODE || _l(s))
|
|
7192
7194
|
return !1;
|
|
7193
7195
|
const e = (
|
|
7194
7196
|
/** @type {HTMLElement} */
|
|
7195
7197
|
s
|
|
7196
|
-
), i =
|
|
7198
|
+
), i = vl(e);
|
|
7197
7199
|
let o = i > 0;
|
|
7198
7200
|
i >= 0 && t.push(e);
|
|
7199
7201
|
let r = [];
|
|
7200
7202
|
return e.localName === "slot" ? r = e.assignedNodes({ flatten: !0 }) : r = (e.shadowRoot || e).children, [...r].forEach((n) => {
|
|
7201
|
-
o =
|
|
7203
|
+
o = Bo(n, t) || o;
|
|
7202
7204
|
}), o;
|
|
7203
7205
|
}
|
|
7204
|
-
function
|
|
7206
|
+
function wl(s) {
|
|
7205
7207
|
const t = [];
|
|
7206
|
-
return
|
|
7208
|
+
return Bo(s, t) ? ni(t) : t;
|
|
7207
7209
|
}
|
|
7208
7210
|
/**
|
|
7209
7211
|
@license
|
|
@@ -7214,23 +7216,23 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
7214
7216
|
Code distributed by Google as part of the polymer project is also
|
|
7215
7217
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
7216
7218
|
*/
|
|
7217
|
-
let ai = !1,
|
|
7218
|
-
function
|
|
7219
|
+
let ai = !1, xl = [], Lo = [];
|
|
7220
|
+
function Cl() {
|
|
7219
7221
|
ai = !0, requestAnimationFrame(function() {
|
|
7220
|
-
ai = !1,
|
|
7221
|
-
|
|
7222
|
+
ai = !1, Al(xl), setTimeout(function() {
|
|
7223
|
+
El(Lo);
|
|
7222
7224
|
});
|
|
7223
7225
|
});
|
|
7224
7226
|
}
|
|
7225
|
-
function
|
|
7227
|
+
function Al(s) {
|
|
7226
7228
|
for (; s.length; )
|
|
7227
|
-
|
|
7229
|
+
zo(s.shift());
|
|
7228
7230
|
}
|
|
7229
|
-
function
|
|
7231
|
+
function El(s) {
|
|
7230
7232
|
for (let t = 0, e = s.length; t < e; t++)
|
|
7231
|
-
|
|
7233
|
+
zo(s.shift());
|
|
7232
7234
|
}
|
|
7233
|
-
function
|
|
7235
|
+
function zo(s) {
|
|
7234
7236
|
const t = s[0], e = s[1], i = s[2];
|
|
7235
7237
|
try {
|
|
7236
7238
|
e.apply(t, i);
|
|
@@ -7240,21 +7242,21 @@ function Lo(s) {
|
|
|
7240
7242
|
});
|
|
7241
7243
|
}
|
|
7242
7244
|
}
|
|
7243
|
-
function
|
|
7244
|
-
ai ||
|
|
7245
|
+
function Ro(s, t, e) {
|
|
7246
|
+
ai || Cl(), Lo.push([s, t, e]);
|
|
7245
7247
|
}
|
|
7246
7248
|
/**
|
|
7247
7249
|
* @license
|
|
7248
7250
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7249
7251
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7250
7252
|
*/
|
|
7251
|
-
const St = (s) => s.test(navigator.userAgent), li = (s) => s.test(navigator.platform),
|
|
7253
|
+
const St = (s) => s.test(navigator.userAgent), li = (s) => s.test(navigator.platform), Pl = (s) => s.test(navigator.vendor);
|
|
7252
7254
|
St(/Android/u);
|
|
7253
|
-
St(/Chrome/u) &&
|
|
7255
|
+
St(/Chrome/u) && Pl(/Google Inc/u);
|
|
7254
7256
|
St(/Firefox/u);
|
|
7255
|
-
const
|
|
7257
|
+
const Dl = li(/^iPad/u) || li(/^Mac/u) && navigator.maxTouchPoints > 1, kl = li(/^iPhone/u), Ho = kl || Dl;
|
|
7256
7258
|
St(/^((?!chrome|android).)*safari/iu);
|
|
7257
|
-
const
|
|
7259
|
+
const Tl = (() => {
|
|
7258
7260
|
try {
|
|
7259
7261
|
return document.createEvent("TouchEvent"), !0;
|
|
7260
7262
|
} catch {
|
|
@@ -7267,10 +7269,10 @@ const Dl = (() => {
|
|
|
7267
7269
|
* SPDX-License-Identifier: MIT
|
|
7268
7270
|
*/
|
|
7269
7271
|
let Te = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap(), pt = {}, Rt = 0;
|
|
7270
|
-
const
|
|
7272
|
+
const Ps = (s) => s && s.nodeType === Node.ELEMENT_NODE, Ht = (...s) => {
|
|
7271
7273
|
console.error(`Error: ${s.join(" ")}. Skip setting aria-hidden.`);
|
|
7272
|
-
},
|
|
7273
|
-
if (!
|
|
7274
|
+
}, Sl = (s, t) => Ps(s) ? t.map((e) => {
|
|
7275
|
+
if (!Ps(e))
|
|
7274
7276
|
return Ht(e, "is not a valid element"), null;
|
|
7275
7277
|
let i = e;
|
|
7276
7278
|
for (; i && i !== s; ) {
|
|
@@ -7279,8 +7281,8 @@ const Es = (s) => s && s.nodeType === Node.ELEMENT_NODE, Ht = (...s) => {
|
|
|
7279
7281
|
i = i.getRootNode().host;
|
|
7280
7282
|
}
|
|
7281
7283
|
return Ht(e, "is not contained inside", s), null;
|
|
7282
|
-
}).filter((e) => !!e) : (Ht(s, "is not a valid element"), []),
|
|
7283
|
-
const o =
|
|
7284
|
+
}).filter((e) => !!e) : (Ht(s, "is not a valid element"), []), Ol = (s, t, e, i) => {
|
|
7285
|
+
const o = Sl(t, Array.isArray(s) ? s : [s]);
|
|
7284
7286
|
pt[e] || (pt[e] = /* @__PURE__ */ new WeakMap());
|
|
7285
7287
|
const r = pt[e], n = [], a = /* @__PURE__ */ new Set(), l = new Set(o), d = (u) => {
|
|
7286
7288
|
if (!u || a.has(u))
|
|
@@ -7310,16 +7312,16 @@ const Es = (s) => s && s.nodeType === Node.ELEMENT_NODE, Ht = (...s) => {
|
|
|
7310
7312
|
Te.set(u, h), r.set(u, f), h || (ht.has(u) ? ht.delete(u) : u.removeAttribute(i)), f || u.removeAttribute(e);
|
|
7311
7313
|
}), Rt -= 1, Rt || (Te = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), ht = /* @__PURE__ */ new WeakMap(), pt = {});
|
|
7312
7314
|
};
|
|
7313
|
-
},
|
|
7315
|
+
}, $o = (s, t = document.body, e = "data-aria-hidden") => {
|
|
7314
7316
|
const i = Array.from(Array.isArray(s) ? s : [s]);
|
|
7315
|
-
return t && i.push(...Array.from(t.querySelectorAll("[aria-live]"))),
|
|
7317
|
+
return t && i.push(...Array.from(t.querySelectorAll("[aria-live]"))), Ol(i, t, e, "aria-hidden");
|
|
7316
7318
|
};
|
|
7317
7319
|
/**
|
|
7318
7320
|
* @license
|
|
7319
7321
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7320
7322
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7321
7323
|
*/
|
|
7322
|
-
class
|
|
7324
|
+
class Ml {
|
|
7323
7325
|
/**
|
|
7324
7326
|
* @param {HTMLElement} host
|
|
7325
7327
|
*/
|
|
@@ -7335,7 +7337,7 @@ class Ol {
|
|
|
7335
7337
|
*/
|
|
7336
7338
|
showModal() {
|
|
7337
7339
|
const t = this.callback();
|
|
7338
|
-
this.__showOthers =
|
|
7340
|
+
this.__showOthers = $o(t);
|
|
7339
7341
|
}
|
|
7340
7342
|
/**
|
|
7341
7343
|
* Remove `aria-hidden` from other elements unless there are any other
|
|
@@ -7350,7 +7352,7 @@ class Ol {
|
|
|
7350
7352
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7351
7353
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7352
7354
|
*/
|
|
7353
|
-
class
|
|
7355
|
+
class Il {
|
|
7354
7356
|
/**
|
|
7355
7357
|
* Saves the given node as a target for restoring focus to
|
|
7356
7358
|
* when `restoreFocus()` is called. If no node is provided,
|
|
@@ -7378,7 +7380,7 @@ class Ml {
|
|
|
7378
7380
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7379
7381
|
*/
|
|
7380
7382
|
const $t = [];
|
|
7381
|
-
class
|
|
7383
|
+
class Nl {
|
|
7382
7384
|
/**
|
|
7383
7385
|
* @param {HTMLElement} host
|
|
7384
7386
|
*/
|
|
@@ -7392,7 +7394,7 @@ class Il {
|
|
|
7392
7394
|
* @private
|
|
7393
7395
|
*/
|
|
7394
7396
|
get __focusableElements() {
|
|
7395
|
-
return
|
|
7397
|
+
return wl(this.__trapNode);
|
|
7396
7398
|
}
|
|
7397
7399
|
/**
|
|
7398
7400
|
* The index of the element inside the trap node that currently has focus.
|
|
@@ -7402,7 +7404,7 @@ class Il {
|
|
|
7402
7404
|
*/
|
|
7403
7405
|
get __focusedElementIndex() {
|
|
7404
7406
|
const t = this.__focusableElements;
|
|
7405
|
-
return t.indexOf(t.filter(
|
|
7407
|
+
return t.indexOf(t.filter(bl).pop());
|
|
7406
7408
|
}
|
|
7407
7409
|
hostConnected() {
|
|
7408
7410
|
document.addEventListener("keydown", this.__onKeyDown);
|
|
@@ -7515,7 +7517,7 @@ const $e = F((s) => typeof s.prototype.addController == "function" ? s : class e
|
|
|
7515
7517
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
7516
7518
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7517
7519
|
*/
|
|
7518
|
-
const
|
|
7520
|
+
const Fl = (s) => class extends $e(s) {
|
|
7519
7521
|
static get properties() {
|
|
7520
7522
|
return {
|
|
7521
7523
|
/**
|
|
@@ -7546,7 +7548,7 @@ const Nl = (s) => class extends $e(s) {
|
|
|
7546
7548
|
};
|
|
7547
7549
|
}
|
|
7548
7550
|
constructor() {
|
|
7549
|
-
super(), this.__ariaModalController = new
|
|
7551
|
+
super(), this.__ariaModalController = new Ml(this), this.__focusTrapController = new Nl(this), this.__focusRestorationController = new Il();
|
|
7550
7552
|
}
|
|
7551
7553
|
/** @protected */
|
|
7552
7554
|
ready() {
|
|
@@ -7559,7 +7561,7 @@ const Nl = (s) => class extends $e(s) {
|
|
|
7559
7561
|
*/
|
|
7560
7562
|
_resetFocus() {
|
|
7561
7563
|
if (this.focusTrap && (this.__ariaModalController.close(), this.__focusTrapController.releaseFocus()), this.restoreFocusOnClose && this._shouldRestoreFocus()) {
|
|
7562
|
-
const e = !
|
|
7564
|
+
const e = !Mi();
|
|
7563
7565
|
this.__focusRestorationController.restoreFocus({ preventScroll: e });
|
|
7564
7566
|
}
|
|
7565
7567
|
}
|
|
@@ -7617,7 +7619,7 @@ const Nl = (s) => class extends $e(s) {
|
|
|
7617
7619
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
7618
7620
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7619
7621
|
*/
|
|
7620
|
-
const
|
|
7622
|
+
const Vo = () => Array.from(document.body.children).filter((s) => s instanceof HTMLElement && s._hasOverlayStackMixin && !s.hasAttribute("closing")).sort((s, t) => s.__zIndex - t.__zIndex || 0), di = () => Vo().filter((s) => s.$.overlay), Bl = (s) => s === di().pop(), Ll = (s) => class extends s {
|
|
7621
7623
|
constructor() {
|
|
7622
7624
|
super(), this._hasOverlayStackMixin = !0;
|
|
7623
7625
|
}
|
|
@@ -7628,14 +7630,14 @@ const $o = () => Array.from(document.body.children).filter((s) => s instanceof H
|
|
|
7628
7630
|
* @protected
|
|
7629
7631
|
*/
|
|
7630
7632
|
get _last() {
|
|
7631
|
-
return
|
|
7633
|
+
return Bl(this);
|
|
7632
7634
|
}
|
|
7633
7635
|
/**
|
|
7634
7636
|
* Brings the overlay as visually the frontmost one.
|
|
7635
7637
|
*/
|
|
7636
7638
|
bringToFront() {
|
|
7637
7639
|
let e = "";
|
|
7638
|
-
const i =
|
|
7640
|
+
const i = Vo().filter((o) => o !== this).pop();
|
|
7639
7641
|
i && (e = i.__zIndex + 1), this.style.zIndex = e, this.__zIndex = e || parseFloat(getComputedStyle(this).zIndex);
|
|
7640
7642
|
}
|
|
7641
7643
|
/** @protected */
|
|
@@ -7658,7 +7660,7 @@ const $o = () => Array.from(document.body.children).filter((s) => s instanceof H
|
|
|
7658
7660
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
7659
7661
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7660
7662
|
*/
|
|
7661
|
-
const
|
|
7663
|
+
const zl = (s) => class extends Fl(Ll(s)) {
|
|
7662
7664
|
static get properties() {
|
|
7663
7665
|
return {
|
|
7664
7666
|
/**
|
|
@@ -7731,7 +7733,7 @@ const Ll = (s) => class extends Nl(Bl(s)) {
|
|
|
7731
7733
|
return ["_rendererOrDataChanged(renderer, owner, model, opened)"];
|
|
7732
7734
|
}
|
|
7733
7735
|
constructor() {
|
|
7734
|
-
super(), this._boundMouseDownListener = this._mouseDownListener.bind(this), this._boundMouseUpListener = this._mouseUpListener.bind(this), this._boundOutsideClickListener = this._outsideClickListener.bind(this), this._boundKeydownListener = this._keydownListener.bind(this),
|
|
7736
|
+
super(), this._boundMouseDownListener = this._mouseDownListener.bind(this), this._boundMouseUpListener = this._mouseUpListener.bind(this), this._boundOutsideClickListener = this._outsideClickListener.bind(this), this._boundKeydownListener = this._keydownListener.bind(this), Ho && (this._boundIosResizeListener = () => this._detectIosNavbar());
|
|
7735
7737
|
}
|
|
7736
7738
|
/** @protected */
|
|
7737
7739
|
ready() {
|
|
@@ -7799,7 +7801,7 @@ const Ll = (s) => class extends Nl(Bl(s)) {
|
|
|
7799
7801
|
}
|
|
7800
7802
|
/** @private */
|
|
7801
7803
|
_openedChanged(e, i) {
|
|
7802
|
-
e ? (this._saveFocus(), this._animatedOpening(),
|
|
7804
|
+
e ? (this._saveFocus(), this._animatedOpening(), Ro(this, () => {
|
|
7803
7805
|
this._trapFocus();
|
|
7804
7806
|
const o = new CustomEvent("vaadin-overlay-open", { bubbles: !0 });
|
|
7805
7807
|
this.dispatchEvent(o);
|
|
@@ -7924,7 +7926,7 @@ const Ll = (s) => class extends Nl(Bl(s)) {
|
|
|
7924
7926
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7925
7927
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7926
7928
|
*/
|
|
7927
|
-
function
|
|
7929
|
+
function Rl(s) {
|
|
7928
7930
|
const t = [];
|
|
7929
7931
|
for (; s; ) {
|
|
7930
7932
|
if (s.nodeType === Node.DOCUMENT_NODE) {
|
|
@@ -7943,25 +7945,25 @@ function zl(s) {
|
|
|
7943
7945
|
}
|
|
7944
7946
|
return t;
|
|
7945
7947
|
}
|
|
7946
|
-
function
|
|
7948
|
+
function Ii(s) {
|
|
7947
7949
|
return s ? new Set(s.split(" ")) : /* @__PURE__ */ new Set();
|
|
7948
7950
|
}
|
|
7949
7951
|
function Ot(s) {
|
|
7950
7952
|
return s ? [...s].join(" ") : "";
|
|
7951
7953
|
}
|
|
7952
|
-
function
|
|
7953
|
-
const i =
|
|
7954
|
+
function Uo(s, t, e) {
|
|
7955
|
+
const i = Ii(s.getAttribute(t));
|
|
7954
7956
|
i.add(e), s.setAttribute(t, Ot(i));
|
|
7955
7957
|
}
|
|
7956
|
-
function
|
|
7957
|
-
const i =
|
|
7958
|
+
function Hl(s, t, e) {
|
|
7959
|
+
const i = Ii(s.getAttribute(t));
|
|
7958
7960
|
if (i.delete(e), i.size === 0) {
|
|
7959
7961
|
s.removeAttribute(t);
|
|
7960
7962
|
return;
|
|
7961
7963
|
}
|
|
7962
7964
|
s.setAttribute(t, Ot(i));
|
|
7963
7965
|
}
|
|
7964
|
-
function
|
|
7966
|
+
function $l(s) {
|
|
7965
7967
|
return s.nodeType === Node.TEXT_NODE && s.textContent.trim() === "";
|
|
7966
7968
|
}
|
|
7967
7969
|
/**
|
|
@@ -7969,7 +7971,7 @@ function Hl(s) {
|
|
|
7969
7971
|
* Copyright (c) 2024 Vaadin Ltd.
|
|
7970
7972
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7971
7973
|
*/
|
|
7972
|
-
function
|
|
7974
|
+
function Vl(s, t) {
|
|
7973
7975
|
let e = null;
|
|
7974
7976
|
const i = document.documentElement;
|
|
7975
7977
|
function o() {
|
|
@@ -8009,13 +8011,13 @@ const Vt = {
|
|
|
8009
8011
|
}, Ut = {
|
|
8010
8012
|
start: "left",
|
|
8011
8013
|
end: "right"
|
|
8012
|
-
},
|
|
8014
|
+
}, Ds = new ResizeObserver((s) => {
|
|
8013
8015
|
setTimeout(() => {
|
|
8014
8016
|
s.forEach((t) => {
|
|
8015
8017
|
t.target.__overlay && t.target.__overlay._updatePosition();
|
|
8016
8018
|
});
|
|
8017
8019
|
});
|
|
8018
|
-
}),
|
|
8020
|
+
}), Ul = (s) => class extends s {
|
|
8019
8021
|
static get properties() {
|
|
8020
8022
|
return {
|
|
8021
8023
|
/**
|
|
@@ -8114,9 +8116,9 @@ const Vt = {
|
|
|
8114
8116
|
}
|
|
8115
8117
|
/** @private */
|
|
8116
8118
|
__addUpdatePositionEventListeners() {
|
|
8117
|
-
window.visualViewport.addEventListener("resize", this._updatePosition), window.visualViewport.addEventListener("scroll", this.__onScroll, !0), this.__positionTargetAncestorRootNodes =
|
|
8119
|
+
window.visualViewport.addEventListener("resize", this._updatePosition), window.visualViewport.addEventListener("scroll", this.__onScroll, !0), this.__positionTargetAncestorRootNodes = Rl(this.positionTarget), this.__positionTargetAncestorRootNodes.forEach((e) => {
|
|
8118
8120
|
e.addEventListener("scroll", this.__onScroll, !0);
|
|
8119
|
-
}), this.positionTarget && (this.__observePositionTargetMove =
|
|
8121
|
+
}), this.positionTarget && (this.__observePositionTargetMove = Vl(this.positionTarget, () => {
|
|
8120
8122
|
this._updatePosition();
|
|
8121
8123
|
}));
|
|
8122
8124
|
}
|
|
@@ -8128,7 +8130,7 @@ const Vt = {
|
|
|
8128
8130
|
}
|
|
8129
8131
|
/** @private */
|
|
8130
8132
|
__overlayOpenedChanged(e, i) {
|
|
8131
|
-
if (this.__removeUpdatePositionEventListeners(), i && (i.__overlay = null,
|
|
8133
|
+
if (this.__removeUpdatePositionEventListeners(), i && (i.__overlay = null, Ds.unobserve(i), e && (this.__addUpdatePositionEventListeners(), i.__overlay = this, Ds.observe(i))), e) {
|
|
8132
8134
|
const o = getComputedStyle(this);
|
|
8133
8135
|
this.__margins || (this.__margins = {}, ["top", "bottom", "left", "right"].forEach((r) => {
|
|
8134
8136
|
this.__margins[r] = parseInt(o[r], 10);
|
|
@@ -8250,7 +8252,7 @@ const Vt = {
|
|
|
8250
8252
|
* Copyright (c) 2015 - 2024 Vaadin Ltd.
|
|
8251
8253
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
8252
8254
|
*/
|
|
8253
|
-
const
|
|
8255
|
+
const Yl = (s) => class extends Ul(zl(s)) {
|
|
8254
8256
|
/**
|
|
8255
8257
|
* Override method inherited from `OverlayMixin` to not close on input click.
|
|
8256
8258
|
* Needed to ignore date-picker's own input in the mousedown listener below.
|
|
@@ -8267,7 +8269,7 @@ const Ul = (s) => class extends Vl(Ll(s)) {
|
|
|
8267
8269
|
* @override
|
|
8268
8270
|
*/
|
|
8269
8271
|
_mouseDownListener(e) {
|
|
8270
|
-
super._mouseDownListener(e), this._shouldCloseOnOutsideClick(e) && !
|
|
8272
|
+
super._mouseDownListener(e), this._shouldCloseOnOutsideClick(e) && !Fo(e.composedPath()[0]) && e.preventDefault();
|
|
8271
8273
|
}
|
|
8272
8274
|
};
|
|
8273
8275
|
/**
|
|
@@ -8275,7 +8277,7 @@ const Ul = (s) => class extends Vl(Ll(s)) {
|
|
|
8275
8277
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
8276
8278
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
8277
8279
|
*/
|
|
8278
|
-
const
|
|
8280
|
+
const Wl = x`
|
|
8279
8281
|
[part='overlay'] {
|
|
8280
8282
|
display: flex;
|
|
8281
8283
|
flex: auto;
|
|
@@ -8296,10 +8298,10 @@ const Yl = x`
|
|
|
8296
8298
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
8297
8299
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
8298
8300
|
*/
|
|
8299
|
-
I("vaadin-date-picker-overlay", [
|
|
8301
|
+
I("vaadin-date-picker-overlay", [ml, Wl], {
|
|
8300
8302
|
moduleId: "vaadin-date-picker-overlay-styles"
|
|
8301
8303
|
});
|
|
8302
|
-
class
|
|
8304
|
+
class jl extends Yl(Tt(we(ce))) {
|
|
8303
8305
|
static get is() {
|
|
8304
8306
|
return "vaadin-date-picker-overlay";
|
|
8305
8307
|
}
|
|
@@ -8314,34 +8316,34 @@ class Wl extends Ul(Tt(we(ce))) {
|
|
|
8314
8316
|
`;
|
|
8315
8317
|
}
|
|
8316
8318
|
}
|
|
8317
|
-
ee(
|
|
8318
|
-
const
|
|
8319
|
-
function
|
|
8319
|
+
ee(jl);
|
|
8320
|
+
const ql = /\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i, _t = window.Vaadin && window.Vaadin.Flow && window.Vaadin.Flow.clients;
|
|
8321
|
+
function Kl() {
|
|
8320
8322
|
function s() {
|
|
8321
8323
|
return !0;
|
|
8322
8324
|
}
|
|
8323
|
-
return
|
|
8325
|
+
return Yo(s);
|
|
8324
8326
|
}
|
|
8325
|
-
function
|
|
8327
|
+
function Gl() {
|
|
8326
8328
|
try {
|
|
8327
|
-
return
|
|
8329
|
+
return Xl() ? !0 : Jl() ? _t ? !Ql() : !Kl() : !1;
|
|
8328
8330
|
} catch {
|
|
8329
8331
|
return !1;
|
|
8330
8332
|
}
|
|
8331
8333
|
}
|
|
8332
|
-
function
|
|
8334
|
+
function Xl() {
|
|
8333
8335
|
return localStorage.getItem("vaadin.developmentmode.force");
|
|
8334
8336
|
}
|
|
8335
|
-
function
|
|
8337
|
+
function Jl() {
|
|
8336
8338
|
return ["localhost", "127.0.0.1"].indexOf(window.location.hostname) >= 0;
|
|
8337
8339
|
}
|
|
8338
|
-
function
|
|
8340
|
+
function Ql() {
|
|
8339
8341
|
return !!(_t && Object.keys(_t).map((t) => _t[t]).filter((t) => t.productionMode).length > 0);
|
|
8340
8342
|
}
|
|
8341
|
-
function
|
|
8343
|
+
function Yo(s, t) {
|
|
8342
8344
|
if (typeof s != "function")
|
|
8343
8345
|
return;
|
|
8344
|
-
const e =
|
|
8346
|
+
const e = ql.exec(s.toString());
|
|
8345
8347
|
if (e)
|
|
8346
8348
|
try {
|
|
8347
8349
|
s = new Function(e[1]);
|
|
@@ -8353,10 +8355,10 @@ function Uo(s, t) {
|
|
|
8353
8355
|
window.Vaadin = window.Vaadin || {};
|
|
8354
8356
|
const ks = function(s, t) {
|
|
8355
8357
|
if (window.Vaadin.developmentMode)
|
|
8356
|
-
return
|
|
8358
|
+
return Yo(s, t);
|
|
8357
8359
|
};
|
|
8358
|
-
window.Vaadin.developmentMode === void 0 && (window.Vaadin.developmentMode =
|
|
8359
|
-
function
|
|
8360
|
+
window.Vaadin.developmentMode === void 0 && (window.Vaadin.developmentMode = Gl());
|
|
8361
|
+
function Zl() {
|
|
8360
8362
|
/*! vaadin-dev-mode:start
|
|
8361
8363
|
(function () {
|
|
8362
8364
|
'use strict';
|
|
@@ -8837,9 +8839,9 @@ function Ql() {
|
|
|
8837
8839
|
|
|
8838
8840
|
vaadin-dev-mode:end **/
|
|
8839
8841
|
}
|
|
8840
|
-
const
|
|
8842
|
+
const ed = function() {
|
|
8841
8843
|
if (typeof ks == "function")
|
|
8842
|
-
return ks(
|
|
8844
|
+
return ks(Zl);
|
|
8843
8845
|
};
|
|
8844
8846
|
/**
|
|
8845
8847
|
* @license
|
|
@@ -8850,10 +8852,10 @@ const Zl = function() {
|
|
|
8850
8852
|
* Code distributed by Google as part of the polymer project is also
|
|
8851
8853
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
8852
8854
|
*/
|
|
8853
|
-
let
|
|
8855
|
+
let Ts = 0, Wo = 0;
|
|
8854
8856
|
const Ne = [];
|
|
8855
8857
|
let ci = !1;
|
|
8856
|
-
function
|
|
8858
|
+
function td() {
|
|
8857
8859
|
ci = !1;
|
|
8858
8860
|
const s = Ne.length;
|
|
8859
8861
|
for (let t = 0; t < s; t++) {
|
|
@@ -8867,7 +8869,7 @@ function ed() {
|
|
|
8867
8869
|
});
|
|
8868
8870
|
}
|
|
8869
8871
|
}
|
|
8870
|
-
Ne.splice(0, s),
|
|
8872
|
+
Ne.splice(0, s), Wo += s;
|
|
8871
8873
|
}
|
|
8872
8874
|
const Ct = {
|
|
8873
8875
|
/**
|
|
@@ -8909,7 +8911,7 @@ const Ct = {
|
|
|
8909
8911
|
cancel(s) {
|
|
8910
8912
|
window.clearTimeout(s);
|
|
8911
8913
|
}
|
|
8912
|
-
},
|
|
8914
|
+
}, id = {
|
|
8913
8915
|
/**
|
|
8914
8916
|
* Enqueues a function called at `requestAnimationFrame` timing.
|
|
8915
8917
|
*
|
|
@@ -8930,7 +8932,7 @@ const Ct = {
|
|
|
8930
8932
|
cancel(s) {
|
|
8931
8933
|
window.cancelAnimationFrame(s);
|
|
8932
8934
|
}
|
|
8933
|
-
},
|
|
8935
|
+
}, sd = {
|
|
8934
8936
|
/**
|
|
8935
8937
|
* Enqueues a function called at `requestIdleCallback` timing.
|
|
8936
8938
|
*
|
|
@@ -8951,7 +8953,7 @@ const Ct = {
|
|
|
8951
8953
|
cancel(s) {
|
|
8952
8954
|
window.cancelIdleCallback ? window.cancelIdleCallback(s) : window.clearTimeout(s);
|
|
8953
8955
|
}
|
|
8954
|
-
},
|
|
8956
|
+
}, od = {
|
|
8955
8957
|
/**
|
|
8956
8958
|
* Enqueues a function called at microtask timing.
|
|
8957
8959
|
*
|
|
@@ -8960,9 +8962,9 @@ const Ct = {
|
|
|
8960
8962
|
* @return {number} Handle used for canceling task
|
|
8961
8963
|
*/
|
|
8962
8964
|
run(s) {
|
|
8963
|
-
ci || (ci = !0, queueMicrotask(() =>
|
|
8964
|
-
const t =
|
|
8965
|
-
return
|
|
8965
|
+
ci || (ci = !0, queueMicrotask(() => td())), Ne.push(s);
|
|
8966
|
+
const t = Ts;
|
|
8967
|
+
return Ts += 1, t;
|
|
8966
8968
|
},
|
|
8967
8969
|
/**
|
|
8968
8970
|
* Cancels a previously enqueued `microTask` callback.
|
|
@@ -8972,7 +8974,7 @@ const Ct = {
|
|
|
8972
8974
|
* @return {void}
|
|
8973
8975
|
*/
|
|
8974
8976
|
cancel(s) {
|
|
8975
|
-
const t = s -
|
|
8977
|
+
const t = s - Wo;
|
|
8976
8978
|
if (t >= 0) {
|
|
8977
8979
|
if (!Ne[t])
|
|
8978
8980
|
throw new Error(`invalid async handle: ${s}`);
|
|
@@ -9081,7 +9083,7 @@ let ze = class hi {
|
|
|
9081
9083
|
return this._timer != null;
|
|
9082
9084
|
}
|
|
9083
9085
|
};
|
|
9084
|
-
function
|
|
9086
|
+
function rd(s) {
|
|
9085
9087
|
ui.add(s);
|
|
9086
9088
|
}
|
|
9087
9089
|
/**
|
|
@@ -9093,17 +9095,17 @@ window.Vaadin || (window.Vaadin = {});
|
|
|
9093
9095
|
window.Vaadin.registrations || (window.Vaadin.registrations = []);
|
|
9094
9096
|
window.Vaadin.developmentModeCallback || (window.Vaadin.developmentModeCallback = {});
|
|
9095
9097
|
window.Vaadin.developmentModeCallback["vaadin-usage-statistics"] = function() {
|
|
9096
|
-
|
|
9098
|
+
ed();
|
|
9097
9099
|
};
|
|
9098
9100
|
let Yt;
|
|
9099
|
-
const
|
|
9101
|
+
const Ss = /* @__PURE__ */ new Set(), jo = (s) => class extends Tt(s) {
|
|
9100
9102
|
/** @protected */
|
|
9101
9103
|
static finalize() {
|
|
9102
9104
|
super.finalize();
|
|
9103
9105
|
const { is: e } = this;
|
|
9104
|
-
e && !
|
|
9106
|
+
e && !Ss.has(e) && (window.Vaadin.registrations.push(this), Ss.add(e), window.Vaadin.developmentModeCallback && (Yt = ze.debounce(Yt, sd, () => {
|
|
9105
9107
|
window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]();
|
|
9106
|
-
}),
|
|
9108
|
+
}), rd(Yt)));
|
|
9107
9109
|
}
|
|
9108
9110
|
constructor() {
|
|
9109
9111
|
super(), document.doctype === null && console.warn(
|
|
@@ -9116,7 +9118,7 @@ const Ts = /* @__PURE__ */ new Set(), Wo = (s) => class extends Tt(s) {
|
|
|
9116
9118
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
9117
9119
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9118
9120
|
*/
|
|
9119
|
-
class
|
|
9121
|
+
class nd {
|
|
9120
9122
|
constructor(t, e) {
|
|
9121
9123
|
this.slot = t, this.callback = e, this._storedNodes = [], this._connected = !1, this._scheduled = !1, this._boundSchedule = () => {
|
|
9122
9124
|
this._schedule();
|
|
@@ -9166,9 +9168,9 @@ class rd {
|
|
|
9166
9168
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
9167
9169
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9168
9170
|
*/
|
|
9169
|
-
let
|
|
9170
|
-
function
|
|
9171
|
-
return
|
|
9171
|
+
let ad = 0;
|
|
9172
|
+
function qo() {
|
|
9173
|
+
return ad++;
|
|
9172
9174
|
}
|
|
9173
9175
|
/**
|
|
9174
9176
|
* @license
|
|
@@ -9185,7 +9187,7 @@ class ge extends EventTarget {
|
|
|
9185
9187
|
* @protected
|
|
9186
9188
|
*/
|
|
9187
9189
|
static generateId(t, e = "default") {
|
|
9188
|
-
return `${e}-${t.localName}-${
|
|
9190
|
+
return `${e}-${t.localName}-${qo()}`;
|
|
9189
9191
|
}
|
|
9190
9192
|
constructor(t, e, i, o = {}) {
|
|
9191
9193
|
super();
|
|
@@ -9277,8 +9279,8 @@ class ge extends EventTarget {
|
|
|
9277
9279
|
*/
|
|
9278
9280
|
observeSlot() {
|
|
9279
9281
|
const { slotName: t } = this, e = t === "" ? "slot:not([name])" : `slot[name=${t}]`, i = this.host.shadowRoot.querySelector(e);
|
|
9280
|
-
this.__slotObserver = new
|
|
9281
|
-
const n = this.multiple ? this.nodes : [this.node], a = o.filter((l) =>
|
|
9282
|
+
this.__slotObserver = new nd(i, ({ addedNodes: o, removedNodes: r }) => {
|
|
9283
|
+
const n = this.multiple ? this.nodes : [this.node], a = o.filter((l) => !$l(l) && !n.includes(l));
|
|
9282
9284
|
r.length && (this.nodes = n.filter((l) => !r.includes(l)), r.forEach((l) => {
|
|
9283
9285
|
this.teardownNode(l);
|
|
9284
9286
|
})), a && a.length > 0 && (this.multiple ? (this.defaultNode && this.defaultNode.remove(), this.nodes = [...n, ...a].filter((l) => l !== this.defaultNode), a.forEach((l) => {
|
|
@@ -9292,7 +9294,7 @@ class ge extends EventTarget {
|
|
|
9292
9294
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
9293
9295
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9294
9296
|
*/
|
|
9295
|
-
class
|
|
9297
|
+
class Ko extends ge {
|
|
9296
9298
|
constructor(t) {
|
|
9297
9299
|
super(t, "tooltip"), this.setTarget(t);
|
|
9298
9300
|
}
|
|
@@ -9393,7 +9395,7 @@ class qo extends ge {
|
|
|
9393
9395
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
9394
9396
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9395
9397
|
*/
|
|
9396
|
-
const
|
|
9398
|
+
const ld = x`
|
|
9397
9399
|
:host {
|
|
9398
9400
|
display: inline-block;
|
|
9399
9401
|
position: relative;
|
|
@@ -9453,7 +9455,7 @@ const ad = x`
|
|
|
9453
9455
|
outline-color: GrayText;
|
|
9454
9456
|
}
|
|
9455
9457
|
}
|
|
9456
|
-
`,
|
|
9458
|
+
`, dd = (s) => s`
|
|
9457
9459
|
<div class="vaadin-button-container">
|
|
9458
9460
|
<span part="prefix" aria-hidden="true">
|
|
9459
9461
|
<slot name="prefix"></slot>
|
|
@@ -9476,33 +9478,33 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
9476
9478
|
Code distributed by Google as part of the polymer project is also
|
|
9477
9479
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
9478
9480
|
*/
|
|
9479
|
-
const
|
|
9481
|
+
const cd = (s) => s, Go = typeof document.head.style.touchAction == "string", pi = "__polymerGestures", Wt = "__polymerGesturesHandled", fi = "__polymerGesturesTouchAction", Os = 25, Ms = 5, ud = 2, hd = ["mousedown", "mousemove", "mouseup", "click"], pd = [0, 1, 4, 2], fd = function() {
|
|
9480
9482
|
try {
|
|
9481
9483
|
return new MouseEvent("test", { buttons: 1 }).buttons === 1;
|
|
9482
9484
|
} catch {
|
|
9483
9485
|
return !1;
|
|
9484
9486
|
}
|
|
9485
9487
|
}();
|
|
9486
|
-
function
|
|
9487
|
-
return
|
|
9488
|
+
function Ni(s) {
|
|
9489
|
+
return hd.indexOf(s) > -1;
|
|
9488
9490
|
}
|
|
9489
|
-
let
|
|
9491
|
+
let md = !1;
|
|
9490
9492
|
(function() {
|
|
9491
9493
|
try {
|
|
9492
9494
|
const s = Object.defineProperty({}, "passive", {
|
|
9493
9495
|
// eslint-disable-next-line getter-return
|
|
9494
9496
|
get() {
|
|
9495
|
-
|
|
9497
|
+
md = !0;
|
|
9496
9498
|
}
|
|
9497
9499
|
});
|
|
9498
9500
|
window.addEventListener("test", null, s), window.removeEventListener("test", null, s);
|
|
9499
9501
|
} catch {
|
|
9500
9502
|
}
|
|
9501
9503
|
})();
|
|
9502
|
-
function
|
|
9503
|
-
|
|
9504
|
+
function _d(s) {
|
|
9505
|
+
Ni(s);
|
|
9504
9506
|
}
|
|
9505
|
-
const
|
|
9507
|
+
const gd = navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u), yd = {
|
|
9506
9508
|
button: !0,
|
|
9507
9509
|
command: !0,
|
|
9508
9510
|
fieldset: !0,
|
|
@@ -9515,15 +9517,15 @@ const _d = navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u), gd = {
|
|
|
9515
9517
|
};
|
|
9516
9518
|
function be(s) {
|
|
9517
9519
|
const t = s.type;
|
|
9518
|
-
if (!
|
|
9520
|
+
if (!Ni(t))
|
|
9519
9521
|
return !1;
|
|
9520
9522
|
if (t === "mousemove") {
|
|
9521
9523
|
let i = s.buttons === void 0 ? 1 : s.buttons;
|
|
9522
|
-
return s instanceof window.MouseEvent && !
|
|
9524
|
+
return s instanceof window.MouseEvent && !fd && (i = pd[s.which] || 0), !!(i & 1);
|
|
9523
9525
|
}
|
|
9524
9526
|
return (s.button === void 0 ? 0 : s.button) === 0;
|
|
9525
9527
|
}
|
|
9526
|
-
function
|
|
9528
|
+
function bd(s) {
|
|
9527
9529
|
if (s.type === "click") {
|
|
9528
9530
|
if (s.detail === 0)
|
|
9529
9531
|
return !0;
|
|
@@ -9547,9 +9549,9 @@ const oe = {
|
|
|
9547
9549
|
scrollDecided: !1
|
|
9548
9550
|
}
|
|
9549
9551
|
};
|
|
9550
|
-
function
|
|
9552
|
+
function vd(s) {
|
|
9551
9553
|
let t = "auto";
|
|
9552
|
-
const e =
|
|
9554
|
+
const e = Jo(s);
|
|
9553
9555
|
for (let i = 0, o; i < e.length; i++)
|
|
9554
9556
|
if (o = e[i], o[fi]) {
|
|
9555
9557
|
t = o[fi];
|
|
@@ -9557,14 +9559,14 @@ function bd(s) {
|
|
|
9557
9559
|
}
|
|
9558
9560
|
return t;
|
|
9559
9561
|
}
|
|
9560
|
-
function
|
|
9562
|
+
function Xo(s, t, e) {
|
|
9561
9563
|
s.movefn = t, s.upfn = e, document.addEventListener("mousemove", t), document.addEventListener("mouseup", e);
|
|
9562
9564
|
}
|
|
9563
9565
|
function Fe(s) {
|
|
9564
9566
|
document.removeEventListener("mousemove", s.movefn), document.removeEventListener("mouseup", s.upfn), s.movefn = null, s.upfn = null;
|
|
9565
9567
|
}
|
|
9566
|
-
const
|
|
9567
|
-
function
|
|
9568
|
+
const Jo = window.ShadyDOM && window.ShadyDOM.noPatch ? window.ShadyDOM.composedPath : (s) => s.composedPath && s.composedPath() || [], Fi = {}, ye = [];
|
|
9569
|
+
function wd(s, t) {
|
|
9568
9570
|
let e = document.elementFromPoint(s, t), i = e;
|
|
9569
9571
|
for (; i && i.shadowRoot && !window.ShadyDOM; ) {
|
|
9570
9572
|
const o = i;
|
|
@@ -9575,13 +9577,13 @@ function vd(s, t) {
|
|
|
9575
9577
|
return e;
|
|
9576
9578
|
}
|
|
9577
9579
|
function de(s) {
|
|
9578
|
-
const t =
|
|
9580
|
+
const t = Jo(
|
|
9579
9581
|
/** @type {?Event} */
|
|
9580
9582
|
s
|
|
9581
9583
|
);
|
|
9582
9584
|
return t.length > 0 ? t[0] : s.target;
|
|
9583
9585
|
}
|
|
9584
|
-
function
|
|
9586
|
+
function xd(s) {
|
|
9585
9587
|
const t = s.type, i = s.currentTarget[pi];
|
|
9586
9588
|
if (!i)
|
|
9587
9589
|
return;
|
|
@@ -9592,7 +9594,7 @@ function wd(s) {
|
|
|
9592
9594
|
const n = s.changedTouches[0];
|
|
9593
9595
|
if (t === "touchstart" && s.touches.length === 1 && (oe.touch.id = n.identifier), oe.touch.id !== n.identifier)
|
|
9594
9596
|
return;
|
|
9595
|
-
|
|
9597
|
+
Go || (t === "touchstart" || t === "touchmove") && Cd(s);
|
|
9596
9598
|
}
|
|
9597
9599
|
const r = s[Wt];
|
|
9598
9600
|
if (!r.skip) {
|
|
@@ -9602,7 +9604,7 @@ function wd(s) {
|
|
|
9602
9604
|
a = ye[n], o[a.name] && !r[a.name] && (r[a.name] = !0, a[t](s));
|
|
9603
9605
|
}
|
|
9604
9606
|
}
|
|
9605
|
-
function
|
|
9607
|
+
function Cd(s) {
|
|
9606
9608
|
const t = s.changedTouches[0], e = s.type;
|
|
9607
9609
|
if (e === "touchstart")
|
|
9608
9610
|
oe.touch.x = t.clientX, oe.touch.y = t.clientY, oe.touch.scrollDecided = !1;
|
|
@@ -9610,29 +9612,29 @@ function xd(s) {
|
|
|
9610
9612
|
if (oe.touch.scrollDecided)
|
|
9611
9613
|
return;
|
|
9612
9614
|
oe.touch.scrollDecided = !0;
|
|
9613
|
-
const i =
|
|
9615
|
+
const i = vd(s);
|
|
9614
9616
|
let o = !1;
|
|
9615
9617
|
const r = Math.abs(oe.touch.x - t.clientX), n = Math.abs(oe.touch.y - t.clientY);
|
|
9616
9618
|
s.cancelable && (i === "none" ? o = !0 : i === "pan-x" ? o = n > r : i === "pan-y" && (o = r > n)), o ? s.preventDefault() : At("track");
|
|
9617
9619
|
}
|
|
9618
9620
|
}
|
|
9619
9621
|
function J(s, t, e) {
|
|
9620
|
-
return
|
|
9622
|
+
return Fi[t] ? (Ad(s, t, e), !0) : !1;
|
|
9621
9623
|
}
|
|
9622
|
-
function
|
|
9623
|
-
const i =
|
|
9624
|
+
function Ad(s, t, e) {
|
|
9625
|
+
const i = Fi[t], o = i.deps, r = i.name;
|
|
9624
9626
|
let n = s[pi];
|
|
9625
9627
|
n || (s[pi] = n = {});
|
|
9626
9628
|
for (let a = 0, l, d; a < o.length; a++)
|
|
9627
|
-
l = o[a], !(
|
|
9628
|
-
s.addEventListener(t, e), i.touchAction &&
|
|
9629
|
+
l = o[a], !(gd && Ni(l) && l !== "click") && (d = n[l], d || (n[l] = d = { _count: 0 }), d._count === 0 && s.addEventListener(l, xd, _d(l)), d[r] = (d[r] || 0) + 1, d._count = (d._count || 0) + 1);
|
|
9630
|
+
s.addEventListener(t, e), i.touchAction && Qo(s, i.touchAction);
|
|
9629
9631
|
}
|
|
9630
|
-
function
|
|
9632
|
+
function Bi(s) {
|
|
9631
9633
|
ye.push(s), s.emits.forEach((t) => {
|
|
9632
|
-
|
|
9634
|
+
Fi[t] = s;
|
|
9633
9635
|
});
|
|
9634
9636
|
}
|
|
9635
|
-
function
|
|
9637
|
+
function Ed(s) {
|
|
9636
9638
|
for (let t = 0, e; t < ye.length; t++) {
|
|
9637
9639
|
e = ye[t];
|
|
9638
9640
|
for (let i = 0, o; i < e.emits.length; i++)
|
|
@@ -9641,14 +9643,14 @@ function Ad(s) {
|
|
|
9641
9643
|
}
|
|
9642
9644
|
return null;
|
|
9643
9645
|
}
|
|
9644
|
-
function
|
|
9645
|
-
|
|
9646
|
+
function Qo(s, t) {
|
|
9647
|
+
Go && s instanceof HTMLElement && od.run(() => {
|
|
9646
9648
|
s.style.touchAction = t;
|
|
9647
9649
|
}), s[fi] = t;
|
|
9648
9650
|
}
|
|
9649
|
-
function
|
|
9651
|
+
function Li(s, t, e) {
|
|
9650
9652
|
const i = new Event(t, { bubbles: !0, cancelable: !0, composed: !0 });
|
|
9651
|
-
if (i.detail = e,
|
|
9653
|
+
if (i.detail = e, cd(
|
|
9652
9654
|
/** @type {!Node} */
|
|
9653
9655
|
s
|
|
9654
9656
|
).dispatchEvent(i), i.defaultPrevented) {
|
|
@@ -9657,10 +9659,10 @@ function Bi(s, t, e) {
|
|
|
9657
9659
|
}
|
|
9658
9660
|
}
|
|
9659
9661
|
function At(s) {
|
|
9660
|
-
const t =
|
|
9662
|
+
const t = Ed(s);
|
|
9661
9663
|
t.info && (t.info.prevent = !0);
|
|
9662
9664
|
}
|
|
9663
|
-
|
|
9665
|
+
Bi({
|
|
9664
9666
|
name: "downup",
|
|
9665
9667
|
deps: ["mousedown", "touchstart", "touchend"],
|
|
9666
9668
|
flow: {
|
|
@@ -9692,7 +9694,7 @@ Fi({
|
|
|
9692
9694
|
}, o = (r) => {
|
|
9693
9695
|
be(r) && qe("up", t, r), Fe(e.info);
|
|
9694
9696
|
};
|
|
9695
|
-
|
|
9697
|
+
Xo(this.info, i, o), qe("down", t, s);
|
|
9696
9698
|
},
|
|
9697
9699
|
/**
|
|
9698
9700
|
* @this {GestureRecognizer}
|
|
@@ -9712,7 +9714,7 @@ Fi({
|
|
|
9712
9714
|
}
|
|
9713
9715
|
});
|
|
9714
9716
|
function qe(s, t, e, i) {
|
|
9715
|
-
t &&
|
|
9717
|
+
t && Li(t, s, {
|
|
9716
9718
|
x: e.clientX,
|
|
9717
9719
|
y: e.clientY,
|
|
9718
9720
|
sourceEvent: e,
|
|
@@ -9722,7 +9724,7 @@ function qe(s, t, e, i) {
|
|
|
9722
9724
|
}
|
|
9723
9725
|
});
|
|
9724
9726
|
}
|
|
9725
|
-
|
|
9727
|
+
Bi({
|
|
9726
9728
|
name: "track",
|
|
9727
9729
|
touchAction: "none",
|
|
9728
9730
|
deps: ["mousedown", "touchstart", "touchmove", "touchend"],
|
|
@@ -9739,7 +9741,7 @@ Fi({
|
|
|
9739
9741
|
moves: [],
|
|
9740
9742
|
/** @this {GestureInfo} */
|
|
9741
9743
|
addMove(s) {
|
|
9742
|
-
this.moves.length >
|
|
9744
|
+
this.moves.length > ud && this.moves.shift(), this.moves.push(s);
|
|
9743
9745
|
},
|
|
9744
9746
|
movefn: null,
|
|
9745
9747
|
upfn: null,
|
|
@@ -9762,11 +9764,11 @@ Fi({
|
|
|
9762
9764
|
return;
|
|
9763
9765
|
const t = de(s), e = this, i = (r) => {
|
|
9764
9766
|
const n = r.clientX, a = r.clientY;
|
|
9765
|
-
|
|
9767
|
+
Is(e.info, n, a) && (e.info.state = e.info.started ? r.type === "mouseup" ? "end" : "track" : "start", e.info.state === "start" && At("tap"), e.info.addMove({ x: n, y: a }), be(r) || (e.info.state = "end", Fe(e.info)), t && jt(e.info, t, r), e.info.started = !0);
|
|
9766
9768
|
}, o = (r) => {
|
|
9767
9769
|
e.info.started && i(r), Fe(e.info);
|
|
9768
9770
|
};
|
|
9769
|
-
|
|
9771
|
+
Xo(this.info, i, o), this.info.x = s.clientX, this.info.y = s.clientY;
|
|
9770
9772
|
},
|
|
9771
9773
|
/**
|
|
9772
9774
|
* @this {GestureRecognizer}
|
|
@@ -9784,7 +9786,7 @@ Fi({
|
|
|
9784
9786
|
*/
|
|
9785
9787
|
touchmove(s) {
|
|
9786
9788
|
const t = de(s), e = s.changedTouches[0], i = e.clientX, o = e.clientY;
|
|
9787
|
-
|
|
9789
|
+
Is(this.info, i, o) && (this.info.state === "start" && At("tap"), this.info.addMove({ x: i, y: o }), jt(this.info, t, e), this.info.state = "track", this.info.started = !0);
|
|
9788
9790
|
},
|
|
9789
9791
|
/**
|
|
9790
9792
|
* @this {GestureRecognizer}
|
|
@@ -9796,20 +9798,20 @@ Fi({
|
|
|
9796
9798
|
this.info.started && (this.info.state = "end", this.info.addMove({ x: e.clientX, y: e.clientY }), jt(this.info, t, e));
|
|
9797
9799
|
}
|
|
9798
9800
|
});
|
|
9799
|
-
function
|
|
9801
|
+
function Is(s, t, e) {
|
|
9800
9802
|
if (s.prevent)
|
|
9801
9803
|
return !1;
|
|
9802
9804
|
if (s.started)
|
|
9803
9805
|
return !0;
|
|
9804
9806
|
const i = Math.abs(s.x - t), o = Math.abs(s.y - e);
|
|
9805
|
-
return i >=
|
|
9807
|
+
return i >= Ms || o >= Ms;
|
|
9806
9808
|
}
|
|
9807
9809
|
function jt(s, t, e) {
|
|
9808
9810
|
if (!t)
|
|
9809
9811
|
return;
|
|
9810
9812
|
const i = s.moves[s.moves.length - 2], o = s.moves[s.moves.length - 1], r = o.x - s.x, n = o.y - s.y;
|
|
9811
9813
|
let a, l = 0;
|
|
9812
|
-
i && (a = o.x - i.x, l = o.y - i.y),
|
|
9814
|
+
i && (a = o.x - i.x, l = o.y - i.y), Li(t, "track", {
|
|
9813
9815
|
state: s.state,
|
|
9814
9816
|
x: e.clientX,
|
|
9815
9817
|
y: e.clientY,
|
|
@@ -9819,11 +9821,11 @@ function jt(s, t, e) {
|
|
|
9819
9821
|
ddy: l,
|
|
9820
9822
|
sourceEvent: e,
|
|
9821
9823
|
hover() {
|
|
9822
|
-
return
|
|
9824
|
+
return wd(e.clientX, e.clientY);
|
|
9823
9825
|
}
|
|
9824
9826
|
});
|
|
9825
9827
|
}
|
|
9826
|
-
|
|
9828
|
+
Bi({
|
|
9827
9829
|
name: "tap",
|
|
9828
9830
|
deps: ["mousedown", "click", "touchstart", "touchend"],
|
|
9829
9831
|
flow: {
|
|
@@ -9857,7 +9859,7 @@ Fi({
|
|
|
9857
9859
|
* @return {void}
|
|
9858
9860
|
*/
|
|
9859
9861
|
click(s) {
|
|
9860
|
-
be(s) &&
|
|
9862
|
+
be(s) && Ns(this.info, s);
|
|
9861
9863
|
},
|
|
9862
9864
|
/**
|
|
9863
9865
|
* @this {GestureRecognizer}
|
|
@@ -9874,15 +9876,15 @@ Fi({
|
|
|
9874
9876
|
* @return {void}
|
|
9875
9877
|
*/
|
|
9876
9878
|
touchend(s) {
|
|
9877
|
-
|
|
9879
|
+
Ns(this.info, s.changedTouches[0], s);
|
|
9878
9880
|
}
|
|
9879
9881
|
});
|
|
9880
|
-
function
|
|
9882
|
+
function Ns(s, t, e) {
|
|
9881
9883
|
const i = Math.abs(t.clientX - s.x), o = Math.abs(t.clientY - s.y), r = de(e || t);
|
|
9882
|
-
!r ||
|
|
9884
|
+
!r || yd[
|
|
9883
9885
|
/** @type {!HTMLElement} */
|
|
9884
9886
|
r.localName
|
|
9885
|
-
] && r.hasAttribute("disabled") || (isNaN(i) || isNaN(o) || i <=
|
|
9887
|
+
] && r.hasAttribute("disabled") || (isNaN(i) || isNaN(o) || i <= Os && o <= Os || bd(t)) && (s.prevent || Li(r, "tap", {
|
|
9886
9888
|
x: t.clientX,
|
|
9887
9889
|
y: t.clientY,
|
|
9888
9890
|
sourceEvent: t,
|
|
@@ -9894,7 +9896,7 @@ function Is(s, t, e) {
|
|
|
9894
9896
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
9895
9897
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9896
9898
|
*/
|
|
9897
|
-
const
|
|
9899
|
+
const Zo = F(
|
|
9898
9900
|
(s) => class extends s {
|
|
9899
9901
|
static get properties() {
|
|
9900
9902
|
return {
|
|
@@ -10001,7 +10003,7 @@ const Mt = F(
|
|
|
10001
10003
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
10002
10004
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10003
10005
|
*/
|
|
10004
|
-
const
|
|
10006
|
+
const Pd = (s) => class extends Zo(Mt(s)) {
|
|
10005
10007
|
/**
|
|
10006
10008
|
* An array of activation keys.
|
|
10007
10009
|
*
|
|
@@ -10064,14 +10066,14 @@ const Ed = (s) => class extends Qo(Mt(s)) {
|
|
|
10064
10066
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
10065
10067
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10066
10068
|
*/
|
|
10067
|
-
const
|
|
10069
|
+
const zi = F(
|
|
10068
10070
|
(s) => class extends s {
|
|
10069
10071
|
/**
|
|
10070
10072
|
* @protected
|
|
10071
10073
|
* @return {boolean}
|
|
10072
10074
|
*/
|
|
10073
10075
|
get _keyboardActive() {
|
|
10074
|
-
return
|
|
10076
|
+
return Mi();
|
|
10075
10077
|
}
|
|
10076
10078
|
/** @protected */
|
|
10077
10079
|
ready() {
|
|
@@ -10121,7 +10123,7 @@ const Li = F(
|
|
|
10121
10123
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
10122
10124
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10123
10125
|
*/
|
|
10124
|
-
const
|
|
10126
|
+
const er = (s) => class extends Zo(s) {
|
|
10125
10127
|
static get properties() {
|
|
10126
10128
|
return {
|
|
10127
10129
|
/**
|
|
@@ -10172,7 +10174,7 @@ const Zo = (s) => class extends Qo(s) {
|
|
|
10172
10174
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
10173
10175
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10174
10176
|
*/
|
|
10175
|
-
const
|
|
10177
|
+
const Dd = (s) => class extends Pd(er(zi(s))) {
|
|
10176
10178
|
static get properties() {
|
|
10177
10179
|
return {
|
|
10178
10180
|
/**
|
|
@@ -10227,17 +10229,17 @@ const Pd = (s) => class extends Ed(Zo(Li(s))) {
|
|
|
10227
10229
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
10228
10230
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10229
10231
|
*/
|
|
10230
|
-
I("vaadin-button",
|
|
10231
|
-
class kd extends
|
|
10232
|
+
I("vaadin-button", ld, { moduleId: "vaadin-button-styles" });
|
|
10233
|
+
class kd extends Dd(jo(we($e(ce)))) {
|
|
10232
10234
|
static get is() {
|
|
10233
10235
|
return "vaadin-button";
|
|
10234
10236
|
}
|
|
10235
10237
|
static get template() {
|
|
10236
|
-
return
|
|
10238
|
+
return dd(Ce);
|
|
10237
10239
|
}
|
|
10238
10240
|
/** @protected */
|
|
10239
10241
|
ready() {
|
|
10240
|
-
super.ready(), this._tooltipController = new
|
|
10242
|
+
super.ready(), this._tooltipController = new Ko(this), this.addController(this._tooltipController);
|
|
10241
10243
|
}
|
|
10242
10244
|
}
|
|
10243
10245
|
ee(kd);
|
|
@@ -10246,7 +10248,7 @@ ee(kd);
|
|
|
10246
10248
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
10247
10249
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10248
10250
|
*/
|
|
10249
|
-
function
|
|
10251
|
+
function Td(s) {
|
|
10250
10252
|
let t = s.getDay();
|
|
10251
10253
|
t === 0 && (t = 7);
|
|
10252
10254
|
const e = 4 - t, i = new Date(s.getTime() + e * 24 * 3600 * 1e3), o = new Date(0, 0);
|
|
@@ -10261,7 +10263,7 @@ function mi(s) {
|
|
|
10261
10263
|
function re(s, t, e = mi) {
|
|
10262
10264
|
return s instanceof Date && t instanceof Date && e(s).getTime() === e(t).getTime();
|
|
10263
10265
|
}
|
|
10264
|
-
function
|
|
10266
|
+
function Ri(s) {
|
|
10265
10267
|
return {
|
|
10266
10268
|
day: s.getDate(),
|
|
10267
10269
|
month: s.getMonth(),
|
|
@@ -10271,12 +10273,12 @@ function zi(s) {
|
|
|
10271
10273
|
function Re(s, t, e, i) {
|
|
10272
10274
|
let o = !1;
|
|
10273
10275
|
if (typeof i == "function" && s) {
|
|
10274
|
-
const r =
|
|
10276
|
+
const r = Ri(s);
|
|
10275
10277
|
o = i(r);
|
|
10276
10278
|
}
|
|
10277
10279
|
return (!t || s >= t) && (!e || s <= e) && !o;
|
|
10278
10280
|
}
|
|
10279
|
-
function
|
|
10281
|
+
function tr(s, t) {
|
|
10280
10282
|
return t.filter((e) => e !== void 0).reduce((e, i) => {
|
|
10281
10283
|
if (!i)
|
|
10282
10284
|
return e;
|
|
@@ -10286,11 +10288,11 @@ function er(s, t) {
|
|
|
10286
10288
|
return o < r ? i : e;
|
|
10287
10289
|
});
|
|
10288
10290
|
}
|
|
10289
|
-
function
|
|
10291
|
+
function ir(s) {
|
|
10290
10292
|
const t = /* @__PURE__ */ new Date(), e = new Date(t);
|
|
10291
10293
|
return e.setDate(1), e.setMonth(parseInt(s) + t.getMonth()), e;
|
|
10292
10294
|
}
|
|
10293
|
-
function
|
|
10295
|
+
function Sd(s, t, e = 0, i = 1) {
|
|
10294
10296
|
if (t > 99)
|
|
10295
10297
|
throw new Error("The provided year cannot have more than 2 digits.");
|
|
10296
10298
|
if (t < 0)
|
|
@@ -10305,15 +10307,15 @@ function Ke(s) {
|
|
|
10305
10307
|
const e = new Date(0, 0);
|
|
10306
10308
|
return e.setFullYear(parseInt(t[1], 10)), e.setMonth(parseInt(t[2], 10) - 1), e.setDate(parseInt(t[3], 10)), e;
|
|
10307
10309
|
}
|
|
10308
|
-
function
|
|
10310
|
+
function Od(s) {
|
|
10309
10311
|
const t = (l, d = "00") => (d + l).substr((d + l).length - d.length);
|
|
10310
10312
|
let e = "", i = "0000", o = s.year;
|
|
10311
10313
|
o < 0 ? (o = -o, e = "-", i = "000000") : s.year >= 1e4 && (e = "+", i = "000000");
|
|
10312
10314
|
const r = e + t(o, i), n = t(s.month + 1), a = t(s.day);
|
|
10313
10315
|
return [r, n, a].join("-");
|
|
10314
10316
|
}
|
|
10315
|
-
function
|
|
10316
|
-
return s instanceof Date ?
|
|
10317
|
+
function Md(s) {
|
|
10318
|
+
return s instanceof Date ? Od({
|
|
10317
10319
|
year: s.getFullYear(),
|
|
10318
10320
|
month: s.getMonth(),
|
|
10319
10321
|
day: s.getDate()
|
|
@@ -10420,9 +10422,9 @@ class Et {
|
|
|
10420
10422
|
}
|
|
10421
10423
|
}
|
|
10422
10424
|
let at = /* @__PURE__ */ new Set();
|
|
10423
|
-
const
|
|
10425
|
+
const Id = function(s) {
|
|
10424
10426
|
at.add(s);
|
|
10425
|
-
},
|
|
10427
|
+
}, Nd = function() {
|
|
10426
10428
|
const s = !!at.size;
|
|
10427
10429
|
return at.forEach((t) => {
|
|
10428
10430
|
try {
|
|
@@ -10443,10 +10445,10 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
10443
10445
|
Code distributed by Google as part of the polymer project is also
|
|
10444
10446
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
10445
10447
|
*/
|
|
10446
|
-
const
|
|
10448
|
+
const Hi = function() {
|
|
10447
10449
|
let s, t;
|
|
10448
10450
|
do
|
|
10449
|
-
s = window.ShadyDOM && ShadyDOM.flush(), window.ShadyCSS && window.ShadyCSS.ScopingShim && window.ShadyCSS.ScopingShim.flush(), t =
|
|
10451
|
+
s = window.ShadyDOM && ShadyDOM.flush(), window.ShadyCSS && window.ShadyCSS.ScopingShim && window.ShadyCSS.ScopingShim.flush(), t = Nd();
|
|
10450
10452
|
while (s || t);
|
|
10451
10453
|
};
|
|
10452
10454
|
/**
|
|
@@ -10454,8 +10456,8 @@ const Ri = function() {
|
|
|
10454
10456
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
10455
10457
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10456
10458
|
*/
|
|
10457
|
-
const
|
|
10458
|
-
|
|
10459
|
+
const sr = document.createElement("template");
|
|
10460
|
+
sr.innerHTML = `
|
|
10459
10461
|
<style>
|
|
10460
10462
|
:host {
|
|
10461
10463
|
display: block;
|
|
@@ -10506,9 +10508,9 @@ ir.innerHTML = `
|
|
|
10506
10508
|
<div id="fullHeight"></div>
|
|
10507
10509
|
</div>
|
|
10508
10510
|
`;
|
|
10509
|
-
class
|
|
10511
|
+
class or extends HTMLElement {
|
|
10510
10512
|
constructor() {
|
|
10511
|
-
super(), this.attachShadow({ mode: "open" }).appendChild(
|
|
10513
|
+
super(), this.attachShadow({ mode: "open" }).appendChild(sr.content.cloneNode(!0)), this.bufferSize = 20, this._initialScroll = 5e5, this._initialIndex = 0, this._activated = !1;
|
|
10512
10514
|
}
|
|
10513
10515
|
/**
|
|
10514
10516
|
* @return {boolean}
|
|
@@ -10568,7 +10570,7 @@ class sr extends HTMLElement {
|
|
|
10568
10570
|
* waiting for the debouncer to resolve.
|
|
10569
10571
|
*/
|
|
10570
10572
|
forceUpdate() {
|
|
10571
|
-
this._debouncerScrollFinish && this._debouncerScrollFinish.flush(), this._debouncerUpdateClones && (this._buffers[0].updated = this._buffers[1].updated = !1, this._updateClones(), this._debouncerUpdateClones.cancel()),
|
|
10573
|
+
this._debouncerScrollFinish && this._debouncerScrollFinish.flush(), this._debouncerUpdateClones && (this._buffers[0].updated = this._buffers[1].updated = !1, this._updateClones(), this._debouncerUpdateClones.cancel()), Hi();
|
|
10572
10574
|
}
|
|
10573
10575
|
/**
|
|
10574
10576
|
* @protected
|
|
@@ -10624,7 +10626,7 @@ class sr extends HTMLElement {
|
|
|
10624
10626
|
for (let i = 0; i < this.bufferSize; i++) {
|
|
10625
10627
|
const o = document.createElement("div");
|
|
10626
10628
|
o.style.height = `${this.itemHeight}px`, o.instance = {};
|
|
10627
|
-
const r = `vaadin-infinite-scroller-item-content-${
|
|
10629
|
+
const r = `vaadin-infinite-scroller-item-content-${qo()}`, n = document.createElement("slot");
|
|
10628
10630
|
n.setAttribute("name", r), n._itemWrapper = o, e.appendChild(n), o.setAttribute("slot", r), this.appendChild(o), this._isVisible(o, t) && this._ensureStampedInstance(o);
|
|
10629
10631
|
}
|
|
10630
10632
|
}), requestAnimationFrame(() => {
|
|
@@ -10665,8 +10667,8 @@ class sr extends HTMLElement {
|
|
|
10665
10667
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
10666
10668
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10667
10669
|
*/
|
|
10668
|
-
const
|
|
10669
|
-
|
|
10670
|
+
const rr = document.createElement("template");
|
|
10671
|
+
rr.innerHTML = `
|
|
10670
10672
|
<style>
|
|
10671
10673
|
:host {
|
|
10672
10674
|
--vaadin-infinite-scroller-item-height: 270px;
|
|
@@ -10679,12 +10681,12 @@ or.innerHTML = `
|
|
|
10679
10681
|
}
|
|
10680
10682
|
</style>
|
|
10681
10683
|
`;
|
|
10682
|
-
class
|
|
10684
|
+
class Fd extends or {
|
|
10683
10685
|
static get is() {
|
|
10684
10686
|
return "vaadin-date-picker-month-scroller";
|
|
10685
10687
|
}
|
|
10686
10688
|
constructor() {
|
|
10687
|
-
super(), this.bufferSize = 3, this.shadowRoot.appendChild(
|
|
10689
|
+
super(), this.bufferSize = 3, this.shadowRoot.appendChild(rr.content.cloneNode(!0));
|
|
10688
10690
|
}
|
|
10689
10691
|
/**
|
|
10690
10692
|
* @protected
|
|
@@ -10700,17 +10702,17 @@ class Nd extends sr {
|
|
|
10700
10702
|
* @override
|
|
10701
10703
|
*/
|
|
10702
10704
|
_updateElement(t, e) {
|
|
10703
|
-
t.month =
|
|
10705
|
+
t.month = ir(e);
|
|
10704
10706
|
}
|
|
10705
10707
|
}
|
|
10706
|
-
ee(
|
|
10708
|
+
ee(Fd);
|
|
10707
10709
|
/**
|
|
10708
10710
|
* @license
|
|
10709
10711
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
10710
10712
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10711
10713
|
*/
|
|
10712
|
-
const
|
|
10713
|
-
|
|
10714
|
+
const nr = document.createElement("template");
|
|
10715
|
+
nr.innerHTML = `
|
|
10714
10716
|
<style>
|
|
10715
10717
|
:host {
|
|
10716
10718
|
--vaadin-infinite-scroller-item-height: 80px;
|
|
@@ -10745,12 +10747,12 @@ rr.innerHTML = `
|
|
|
10745
10747
|
}
|
|
10746
10748
|
</style>
|
|
10747
10749
|
`;
|
|
10748
|
-
class
|
|
10750
|
+
class Bd extends or {
|
|
10749
10751
|
static get is() {
|
|
10750
10752
|
return "vaadin-date-picker-year-scroller";
|
|
10751
10753
|
}
|
|
10752
10754
|
constructor() {
|
|
10753
|
-
super(), this.bufferSize = 12, this.shadowRoot.appendChild(
|
|
10755
|
+
super(), this.bufferSize = 12, this.shadowRoot.appendChild(nr.content.cloneNode(!0));
|
|
10754
10756
|
}
|
|
10755
10757
|
/**
|
|
10756
10758
|
* @protected
|
|
@@ -10774,13 +10776,13 @@ class Fd extends sr {
|
|
|
10774
10776
|
return i.setFullYear(parseInt(t) + e.getFullYear()), i.getFullYear();
|
|
10775
10777
|
}
|
|
10776
10778
|
}
|
|
10777
|
-
ee(
|
|
10779
|
+
ee(Bd);
|
|
10778
10780
|
/**
|
|
10779
10781
|
* @license
|
|
10780
10782
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
10781
10783
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10782
10784
|
*/
|
|
10783
|
-
const
|
|
10785
|
+
const Ld = (s) => class extends s {
|
|
10784
10786
|
static get properties() {
|
|
10785
10787
|
return {
|
|
10786
10788
|
year: {
|
|
@@ -10806,7 +10808,7 @@ const Bd = (s) => class extends s {
|
|
|
10806
10808
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
10807
10809
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10808
10810
|
*/
|
|
10809
|
-
class
|
|
10811
|
+
class zd extends we(Ld(ce)) {
|
|
10810
10812
|
static get is() {
|
|
10811
10813
|
return "vaadin-date-picker-year";
|
|
10812
10814
|
}
|
|
@@ -10823,7 +10825,7 @@ class Ld extends we(Bd(ce)) {
|
|
|
10823
10825
|
`;
|
|
10824
10826
|
}
|
|
10825
10827
|
}
|
|
10826
|
-
ee(
|
|
10828
|
+
ee(zd);
|
|
10827
10829
|
/**
|
|
10828
10830
|
@license
|
|
10829
10831
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -10833,13 +10835,13 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
10833
10835
|
Code distributed by Google as part of the polymer project is also
|
|
10834
10836
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
10835
10837
|
*/
|
|
10836
|
-
function
|
|
10838
|
+
function $i(s, t, e, i, o) {
|
|
10837
10839
|
let r;
|
|
10838
10840
|
o && (r = typeof e == "object" && e !== null, r && (i = s.__dataTemp[t]));
|
|
10839
10841
|
let n = i !== e && (i === i || e === e);
|
|
10840
10842
|
return r && n && (s.__dataTemp[t] = e), n;
|
|
10841
10843
|
}
|
|
10842
|
-
const
|
|
10844
|
+
const Vi = F((s) => {
|
|
10843
10845
|
class t extends s {
|
|
10844
10846
|
/**
|
|
10845
10847
|
* Overrides `PropertyEffects` to provide option for skipping
|
|
@@ -10859,11 +10861,11 @@ const $i = F((s) => {
|
|
|
10859
10861
|
* @protected
|
|
10860
10862
|
*/
|
|
10861
10863
|
_shouldPropertyChange(i, o, r) {
|
|
10862
|
-
return
|
|
10864
|
+
return $i(this, i, o, r, !0);
|
|
10863
10865
|
}
|
|
10864
10866
|
}
|
|
10865
10867
|
return t;
|
|
10866
|
-
}),
|
|
10868
|
+
}), Rd = F((s) => {
|
|
10867
10869
|
class t extends s {
|
|
10868
10870
|
/** @nocollapse */
|
|
10869
10871
|
static get properties() {
|
|
@@ -10895,12 +10897,12 @@ const $i = F((s) => {
|
|
|
10895
10897
|
* @protected
|
|
10896
10898
|
*/
|
|
10897
10899
|
_shouldPropertyChange(i, o, r) {
|
|
10898
|
-
return
|
|
10900
|
+
return $i(this, i, o, r, this.mutableData);
|
|
10899
10901
|
}
|
|
10900
10902
|
}
|
|
10901
10903
|
return t;
|
|
10902
10904
|
});
|
|
10903
|
-
|
|
10905
|
+
Vi._mutablePropertyChange = $i;
|
|
10904
10906
|
/**
|
|
10905
10907
|
@license
|
|
10906
10908
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -10920,13 +10922,13 @@ gi.prototype = Object.create(HTMLTemplateElement.prototype, {
|
|
|
10920
10922
|
writable: !0
|
|
10921
10923
|
}
|
|
10922
10924
|
});
|
|
10923
|
-
const
|
|
10924
|
-
function
|
|
10925
|
+
const ar = Si(gi), Hd = Vi(ar);
|
|
10926
|
+
function $d(s, t) {
|
|
10925
10927
|
_i = s, Object.setPrototypeOf(s, t.prototype), new t(), _i = null;
|
|
10926
10928
|
}
|
|
10927
|
-
const
|
|
10929
|
+
const Vd = Si(class {
|
|
10928
10930
|
});
|
|
10929
|
-
function
|
|
10931
|
+
function Ud(s, t) {
|
|
10930
10932
|
for (let e = 0; e < t.length; e++) {
|
|
10931
10933
|
let i = t[e];
|
|
10932
10934
|
if (!!s != !!i.__hideTemplateChildren__)
|
|
@@ -10944,7 +10946,7 @@ function Vd(s, t) {
|
|
|
10944
10946
|
i.__hideTemplateChildren__ = s, i._showHideChildren && i._showHideChildren(s);
|
|
10945
10947
|
}
|
|
10946
10948
|
}
|
|
10947
|
-
class ue extends
|
|
10949
|
+
class ue extends Vd {
|
|
10948
10950
|
constructor(t) {
|
|
10949
10951
|
super(), this._configureProperties(t), this.root = this._stampTemplate(this.__dataHost);
|
|
10950
10952
|
let e = [];
|
|
@@ -11013,7 +11015,7 @@ class ue extends $d {
|
|
|
11013
11015
|
* @protected
|
|
11014
11016
|
*/
|
|
11015
11017
|
_showHideChildren(t) {
|
|
11016
|
-
|
|
11018
|
+
Ud(t, this.children);
|
|
11017
11019
|
}
|
|
11018
11020
|
/**
|
|
11019
11021
|
* Overrides default property-effects implementation to intercept
|
|
@@ -11066,31 +11068,31 @@ ue.prototype.__templatizeOptions;
|
|
|
11066
11068
|
ue.prototype._methodHost;
|
|
11067
11069
|
ue.prototype.__templatizeOwner;
|
|
11068
11070
|
ue.prototype.__hostProps;
|
|
11069
|
-
const
|
|
11071
|
+
const Yd = Vi(
|
|
11070
11072
|
// This cast shouldn't be neccessary, but Closure doesn't understand that
|
|
11071
11073
|
// TemplateInstanceBase is a constructor function.
|
|
11072
11074
|
/** @type {function(new:TemplateInstanceBase)} */
|
|
11073
11075
|
ue
|
|
11074
11076
|
);
|
|
11075
|
-
function
|
|
11077
|
+
function Fs(s) {
|
|
11076
11078
|
let t = s.__dataHost;
|
|
11077
11079
|
return t && t._methodHost || t;
|
|
11078
11080
|
}
|
|
11079
|
-
function
|
|
11080
|
-
let i = e.mutableData ?
|
|
11081
|
+
function Wd(s, t, e) {
|
|
11082
|
+
let i = e.mutableData ? Yd : ue;
|
|
11081
11083
|
yi.mixin && (i = yi.mixin(i));
|
|
11082
11084
|
let o = class extends i {
|
|
11083
11085
|
};
|
|
11084
|
-
return o.prototype.__templatizeOptions = e, o.prototype._bindTemplate(s),
|
|
11086
|
+
return o.prototype.__templatizeOptions = e, o.prototype._bindTemplate(s), Kd(o, s, t, e), o;
|
|
11085
11087
|
}
|
|
11086
|
-
function
|
|
11088
|
+
function jd(s, t, e, i) {
|
|
11087
11089
|
let o = e.forwardHostProp;
|
|
11088
11090
|
if (o && t.hasHostProps) {
|
|
11089
11091
|
const r = s.localName == "template";
|
|
11090
11092
|
let n = t.templatizeTemplateClass;
|
|
11091
11093
|
if (!n) {
|
|
11092
11094
|
if (r) {
|
|
11093
|
-
let l = e.mutableData ?
|
|
11095
|
+
let l = e.mutableData ? Hd : ar;
|
|
11094
11096
|
class d extends l {
|
|
11095
11097
|
}
|
|
11096
11098
|
n = t.templatizeTemplateClass = d;
|
|
@@ -11105,12 +11107,12 @@ function Wd(s, t, e, i) {
|
|
|
11105
11107
|
n.prototype._addPropertyEffect(
|
|
11106
11108
|
"_host_" + l,
|
|
11107
11109
|
n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,
|
|
11108
|
-
{ fn:
|
|
11110
|
+
{ fn: qd(l, o) }
|
|
11109
11111
|
), n.prototype._createNotifyingProperty("_host_" + l);
|
|
11110
|
-
|
|
11112
|
+
ho && i && Jd(t, e, i);
|
|
11111
11113
|
}
|
|
11112
11114
|
if (s.__dataProto && Object.assign(s.__data, s.__dataProto), r)
|
|
11113
|
-
|
|
11115
|
+
$d(s, n), s.__dataTemp = {}, s.__dataPending = null, s.__dataOld = null, s._enableProperties();
|
|
11114
11116
|
else {
|
|
11115
11117
|
Object.setPrototypeOf(s, n.prototype);
|
|
11116
11118
|
const a = t.hostProps;
|
|
@@ -11122,7 +11124,7 @@ function Wd(s, t, e, i) {
|
|
|
11122
11124
|
}
|
|
11123
11125
|
}
|
|
11124
11126
|
}
|
|
11125
|
-
function
|
|
11127
|
+
function qd(s, t) {
|
|
11126
11128
|
return function(i, o, r) {
|
|
11127
11129
|
t.call(
|
|
11128
11130
|
i.__templatizeOwner,
|
|
@@ -11131,7 +11133,7 @@ function jd(s, t) {
|
|
|
11131
11133
|
);
|
|
11132
11134
|
};
|
|
11133
11135
|
}
|
|
11134
|
-
function
|
|
11136
|
+
function Kd(s, t, e, i) {
|
|
11135
11137
|
let o = e.hostProps || {};
|
|
11136
11138
|
for (let r in i.instanceProps) {
|
|
11137
11139
|
delete o[r];
|
|
@@ -11139,7 +11141,7 @@ function qd(s, t, e, i) {
|
|
|
11139
11141
|
n && s.prototype._addPropertyEffect(
|
|
11140
11142
|
r,
|
|
11141
11143
|
s.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,
|
|
11142
|
-
{ fn:
|
|
11144
|
+
{ fn: Gd(r, n) }
|
|
11143
11145
|
);
|
|
11144
11146
|
}
|
|
11145
11147
|
if (i.forwardHostProp && t.__dataHost)
|
|
@@ -11147,10 +11149,10 @@ function qd(s, t, e, i) {
|
|
|
11147
11149
|
e.hasHostProps || (e.hasHostProps = !0), s.prototype._addPropertyEffect(
|
|
11148
11150
|
r,
|
|
11149
11151
|
s.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,
|
|
11150
|
-
{ fn:
|
|
11152
|
+
{ fn: Xd() }
|
|
11151
11153
|
);
|
|
11152
11154
|
}
|
|
11153
|
-
function
|
|
11155
|
+
function Gd(s, t) {
|
|
11154
11156
|
return function(i, o, r) {
|
|
11155
11157
|
t.call(
|
|
11156
11158
|
i.__templatizeOwner,
|
|
@@ -11160,22 +11162,22 @@ function Kd(s, t) {
|
|
|
11160
11162
|
);
|
|
11161
11163
|
};
|
|
11162
11164
|
}
|
|
11163
|
-
function
|
|
11165
|
+
function Xd() {
|
|
11164
11166
|
return function(t, e, i) {
|
|
11165
11167
|
t.__dataHost._setPendingPropertyOrPath("_host_" + e, i[e], !0, !0);
|
|
11166
11168
|
};
|
|
11167
11169
|
}
|
|
11168
11170
|
function yi(s, t, e) {
|
|
11169
|
-
if (wt && !
|
|
11171
|
+
if (wt && !Fs(s))
|
|
11170
11172
|
throw new Error("strictTemplatePolicy: template owner not trusted");
|
|
11171
11173
|
if (e = /** @type {!TemplatizeOptions} */
|
|
11172
11174
|
e || {}, s.__templatizeOwner)
|
|
11173
11175
|
throw new Error("A <template> can only be templatized once");
|
|
11174
11176
|
s.__templatizeOwner = t;
|
|
11175
11177
|
let o = (t ? t.constructor : ue)._parseTemplate(s), r = o.templatizeInstanceClass;
|
|
11176
|
-
r || (r =
|
|
11177
|
-
const n =
|
|
11178
|
-
|
|
11178
|
+
r || (r = Wd(s, o, e), o.templatizeInstanceClass = r);
|
|
11179
|
+
const n = Fs(s);
|
|
11180
|
+
jd(s, o, e, n);
|
|
11179
11181
|
let a = class extends r {
|
|
11180
11182
|
};
|
|
11181
11183
|
return a.prototype._methodHost = n, a.prototype.__dataHost = /** @type {!DataTemplate} */
|
|
@@ -11183,7 +11185,7 @@ function yi(s, t, e) {
|
|
|
11183
11185
|
t, a.prototype.__hostProps = o.hostProps, a = /** @type {function(new:TemplateInstanceBase)} */
|
|
11184
11186
|
a, a;
|
|
11185
11187
|
}
|
|
11186
|
-
function
|
|
11188
|
+
function Jd(s, t, e) {
|
|
11187
11189
|
const i = e.constructor._properties, { propertyEffects: o } = s, { instanceProps: r } = t;
|
|
11188
11190
|
for (let n in o)
|
|
11189
11191
|
if (!i[n] && !(r && r[n])) {
|
|
@@ -11197,7 +11199,7 @@ function Xd(s, t, e) {
|
|
|
11197
11199
|
}
|
|
11198
11200
|
}
|
|
11199
11201
|
}
|
|
11200
|
-
function
|
|
11202
|
+
function Qd(s, t) {
|
|
11201
11203
|
let e;
|
|
11202
11204
|
for (; t; )
|
|
11203
11205
|
if (e = t.__dataHost ? t : t.__templatizeInstance)
|
|
@@ -11218,11 +11220,11 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
11218
11220
|
Code distributed by Google as part of the polymer project is also
|
|
11219
11221
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
11220
11222
|
*/
|
|
11221
|
-
let
|
|
11222
|
-
function
|
|
11223
|
-
if (
|
|
11224
|
-
if (!
|
|
11225
|
-
|
|
11223
|
+
let Bs = !1;
|
|
11224
|
+
function Zd() {
|
|
11225
|
+
if (uo && !co) {
|
|
11226
|
+
if (!Bs) {
|
|
11227
|
+
Bs = !0;
|
|
11226
11228
|
const s = document.createElement("style");
|
|
11227
11229
|
s.textContent = "dom-bind,dom-if,dom-repeat{display:none;}", document.head.appendChild(s);
|
|
11228
11230
|
}
|
|
@@ -11239,8 +11241,8 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
11239
11241
|
Code distributed by Google as part of the polymer project is also
|
|
11240
11242
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
11241
11243
|
*/
|
|
11242
|
-
const
|
|
11243
|
-
class
|
|
11244
|
+
const ec = Rd(ce);
|
|
11245
|
+
class Ls extends ec {
|
|
11244
11246
|
// Not needed to find template; can be removed once the analyzer
|
|
11245
11247
|
// can find the tag name from customElements.define call
|
|
11246
11248
|
static get is() {
|
|
@@ -11335,7 +11337,7 @@ class Bs extends Zd {
|
|
|
11335
11337
|
*/
|
|
11336
11338
|
renderedItemCount: {
|
|
11337
11339
|
type: Number,
|
|
11338
|
-
notify: !
|
|
11340
|
+
notify: !ds,
|
|
11339
11341
|
readOnly: !0
|
|
11340
11342
|
},
|
|
11341
11343
|
/**
|
|
@@ -11418,7 +11420,7 @@ class Bs extends Zd {
|
|
|
11418
11420
|
* @return {void}
|
|
11419
11421
|
*/
|
|
11420
11422
|
connectedCallback() {
|
|
11421
|
-
if (super.connectedCallback(),
|
|
11423
|
+
if (super.connectedCallback(), Zd() || (this.style.display = "none"), this.__isDetached) {
|
|
11422
11424
|
this.__isDetached = !1;
|
|
11423
11425
|
let t = z(z(this).parentNode);
|
|
11424
11426
|
for (let e = 0; e < this.__instances.length; e++)
|
|
@@ -11468,7 +11470,7 @@ class Bs extends Zd {
|
|
|
11468
11470
|
* @param {*} value Value to notify
|
|
11469
11471
|
*/
|
|
11470
11472
|
notifyInstanceProp: function(o, r, n) {
|
|
11471
|
-
if (
|
|
11473
|
+
if (oa(this.as, r)) {
|
|
11472
11474
|
let a = o[this.itemsIndexAs];
|
|
11473
11475
|
r == this.as && (this.items[a] = n);
|
|
11474
11476
|
let l = ot(this.as, `${JSCompiler_renameProperty("items", this)}.${a}`, r);
|
|
@@ -11524,9 +11526,9 @@ class Bs extends Zd {
|
|
|
11524
11526
|
__debounceRender(t, e = 0) {
|
|
11525
11527
|
this.__renderDebouncer = Et.debounce(
|
|
11526
11528
|
this.__renderDebouncer,
|
|
11527
|
-
e > 0 ?
|
|
11529
|
+
e > 0 ? ca.after(e) : xo,
|
|
11528
11530
|
t.bind(this)
|
|
11529
|
-
),
|
|
11531
|
+
), Id(this.__renderDebouncer);
|
|
11530
11532
|
}
|
|
11531
11533
|
/**
|
|
11532
11534
|
* Forces the element to render its content. Normally rendering is
|
|
@@ -11537,7 +11539,7 @@ class Bs extends Zd {
|
|
|
11537
11539
|
* @return {void}
|
|
11538
11540
|
*/
|
|
11539
11541
|
render() {
|
|
11540
|
-
this.__debounceRender(this.__render),
|
|
11542
|
+
this.__debounceRender(this.__render), Hi();
|
|
11541
11543
|
}
|
|
11542
11544
|
__render() {
|
|
11543
11545
|
if (!this.__ensureTemplatized())
|
|
@@ -11546,7 +11548,7 @@ class Bs extends Zd {
|
|
|
11546
11548
|
const e = this.__sortAndFilterItems(t), i = this.__calculateLimit(e.length);
|
|
11547
11549
|
this.__updateInstances(t, i, e), this.initialCount && (this.__shouldMeasureChunk || this.__shouldContinueChunking) && (cancelAnimationFrame(this.__chunkingId), this.__chunkingId = requestAnimationFrame(() => {
|
|
11548
11550
|
this.__chunkingId = null, this.__continueChunking();
|
|
11549
|
-
})), this._setRenderedItemCount(this.__instances.length), (!
|
|
11551
|
+
})), this._setRenderedItemCount(this.__instances.length), (!ds || this.notifyDomChange) && this.dispatchEvent(new CustomEvent("dom-change", {
|
|
11550
11552
|
bubbles: !0,
|
|
11551
11553
|
composed: !0
|
|
11552
11554
|
}));
|
|
@@ -11686,16 +11688,16 @@ class Bs extends Zd {
|
|
|
11686
11688
|
* the element.
|
|
11687
11689
|
*/
|
|
11688
11690
|
modelForElement(t) {
|
|
11689
|
-
return
|
|
11691
|
+
return Qd(this.template, t);
|
|
11690
11692
|
}
|
|
11691
11693
|
}
|
|
11692
|
-
customElements.define(
|
|
11694
|
+
customElements.define(Ls.is, Ls);
|
|
11693
11695
|
/**
|
|
11694
11696
|
* @license
|
|
11695
11697
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
11696
11698
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11697
11699
|
*/
|
|
11698
|
-
const
|
|
11700
|
+
const tc = (s) => class extends zi(s) {
|
|
11699
11701
|
static get properties() {
|
|
11700
11702
|
return {
|
|
11701
11703
|
/**
|
|
@@ -11878,7 +11880,7 @@ const ec = (s) => class extends Li(s) {
|
|
|
11878
11880
|
/** @protected */
|
|
11879
11881
|
__getWeekNumber(e) {
|
|
11880
11882
|
const i = e.reduce((o, r) => !o && r ? r : o);
|
|
11881
|
-
return
|
|
11883
|
+
return Td(i);
|
|
11882
11884
|
}
|
|
11883
11885
|
/** @protected */
|
|
11884
11886
|
__getDayAriaLabel(e) {
|
|
@@ -11893,7 +11895,7 @@ const ec = (s) => class extends Li(s) {
|
|
|
11893
11895
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
11894
11896
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11895
11897
|
*/
|
|
11896
|
-
const
|
|
11898
|
+
const ic = x`
|
|
11897
11899
|
:host {
|
|
11898
11900
|
display: block;
|
|
11899
11901
|
}
|
|
@@ -11955,10 +11957,10 @@ const tc = x`
|
|
|
11955
11957
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
11956
11958
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11957
11959
|
*/
|
|
11958
|
-
I("vaadin-month-calendar",
|
|
11960
|
+
I("vaadin-month-calendar", ic, {
|
|
11959
11961
|
moduleId: "vaadin-month-calendar-styles"
|
|
11960
11962
|
});
|
|
11961
|
-
class
|
|
11963
|
+
class sc extends tc(we(ce)) {
|
|
11962
11964
|
static get template() {
|
|
11963
11965
|
return Ce`
|
|
11964
11966
|
<div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
|
|
@@ -12066,13 +12068,13 @@ class ic extends ec(we(ce)) {
|
|
|
12066
12068
|
return this.__isDayFocused(t, e) ? "0" : "-1";
|
|
12067
12069
|
}
|
|
12068
12070
|
}
|
|
12069
|
-
ee(
|
|
12071
|
+
ee(sc);
|
|
12070
12072
|
/**
|
|
12071
12073
|
* @license
|
|
12072
12074
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
12073
12075
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12074
12076
|
*/
|
|
12075
|
-
class
|
|
12077
|
+
class lr {
|
|
12076
12078
|
constructor(t, e) {
|
|
12077
12079
|
this.query = t, this.callback = e, this._boundQueryHandler = this._queryHandler.bind(this);
|
|
12078
12080
|
}
|
|
@@ -12100,7 +12102,7 @@ class ar {
|
|
|
12100
12102
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
12101
12103
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12102
12104
|
*/
|
|
12103
|
-
const
|
|
12105
|
+
const oc = (s) => class extends s {
|
|
12104
12106
|
static get properties() {
|
|
12105
12107
|
return {
|
|
12106
12108
|
scrollDuration: {
|
|
@@ -12228,7 +12230,7 @@ const sc = (s) => class extends s {
|
|
|
12228
12230
|
}
|
|
12229
12231
|
/** @protected */
|
|
12230
12232
|
_addListeners() {
|
|
12231
|
-
|
|
12233
|
+
Qo(this.$.scrollers, "pan-y"), J(this.$.scrollers, "track", this._track.bind(this)), J(this.shadowRoot.querySelector('[part="clear-button"]'), "tap", this._clear.bind(this)), J(this.shadowRoot.querySelector('[part="toggle-button"]'), "tap", this._cancel.bind(this)), J(
|
|
12232
12234
|
this.shadowRoot.querySelector('[part="years-toggle-button"]'),
|
|
12233
12235
|
"tap",
|
|
12234
12236
|
this._toggleYearScroller.bind(this)
|
|
@@ -12237,7 +12239,7 @@ const sc = (s) => class extends s {
|
|
|
12237
12239
|
/** @protected */
|
|
12238
12240
|
_initControllers() {
|
|
12239
12241
|
this.addController(
|
|
12240
|
-
new
|
|
12242
|
+
new lr(this._desktopMediaQuery, (e) => {
|
|
12241
12243
|
this._desktopMode = e;
|
|
12242
12244
|
})
|
|
12243
12245
|
), this.addController(
|
|
@@ -12429,7 +12431,7 @@ const sc = (s) => class extends s {
|
|
|
12429
12431
|
}
|
|
12430
12432
|
/** @protected */
|
|
12431
12433
|
_formatDisplayed(e, i, o) {
|
|
12432
|
-
return e && i && typeof i.formatDate == "function" ? i.formatDate(
|
|
12434
|
+
return e && i && typeof i.formatDate == "function" ? i.formatDate(Ri(e)) : o;
|
|
12433
12435
|
}
|
|
12434
12436
|
/** @private */
|
|
12435
12437
|
_onTodayTap() {
|
|
@@ -12546,7 +12548,7 @@ const sc = (s) => class extends s {
|
|
|
12546
12548
|
}
|
|
12547
12549
|
/** @private */
|
|
12548
12550
|
_yearAfterXMonths(e) {
|
|
12549
|
-
return
|
|
12551
|
+
return ir(e).getFullYear();
|
|
12550
12552
|
}
|
|
12551
12553
|
/** @private */
|
|
12552
12554
|
_differenceInMonths(e, i) {
|
|
@@ -12651,14 +12653,14 @@ const sc = (s) => class extends s {
|
|
|
12651
12653
|
}
|
|
12652
12654
|
async focusDateElement(e = !0) {
|
|
12653
12655
|
this.__pendingDateFocus = this.focusedDate, this.calendars.length || await new Promise((i) => {
|
|
12654
|
-
|
|
12655
|
-
|
|
12656
|
+
Ro(this, () => {
|
|
12657
|
+
Hi(), i();
|
|
12656
12658
|
});
|
|
12657
12659
|
}), e && this.revealDate(this.focusedDate), this._revealPromise && await this._revealPromise, this.__tryFocusDate();
|
|
12658
12660
|
}
|
|
12659
12661
|
/** @private */
|
|
12660
12662
|
_focusClosestDate(e) {
|
|
12661
|
-
this.focusDate(
|
|
12663
|
+
this.focusDate(tr(e, [this.minDate, this.maxDate]));
|
|
12662
12664
|
}
|
|
12663
12665
|
/** @private */
|
|
12664
12666
|
_focusAllowedDate(e, i, o) {
|
|
@@ -12709,7 +12711,7 @@ const sc = (s) => class extends s {
|
|
|
12709
12711
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
12710
12712
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12711
12713
|
*/
|
|
12712
|
-
const
|
|
12714
|
+
const rc = x`
|
|
12713
12715
|
:host {
|
|
12714
12716
|
display: flex;
|
|
12715
12717
|
flex-direction: column;
|
|
@@ -12775,10 +12777,10 @@ const oc = x`
|
|
|
12775
12777
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
12776
12778
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12777
12779
|
*/
|
|
12778
|
-
I("vaadin-date-picker-overlay-content",
|
|
12780
|
+
I("vaadin-date-picker-overlay-content", rc, {
|
|
12779
12781
|
moduleId: "vaadin-date-picker-overlay-content-styles"
|
|
12780
12782
|
});
|
|
12781
|
-
class
|
|
12783
|
+
class nc extends oc(
|
|
12782
12784
|
$e(we(Tt(ce)))
|
|
12783
12785
|
) {
|
|
12784
12786
|
static get template() {
|
|
@@ -12812,14 +12814,14 @@ class rc extends sc(
|
|
|
12812
12814
|
super.ready(), this.setAttribute("role", "dialog"), this._addListeners(), this._initControllers();
|
|
12813
12815
|
}
|
|
12814
12816
|
}
|
|
12815
|
-
ee(
|
|
12817
|
+
ee(nc);
|
|
12816
12818
|
/**
|
|
12817
12819
|
* @license
|
|
12818
12820
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
12819
12821
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12820
12822
|
*/
|
|
12821
|
-
const
|
|
12822
|
-
(s) => class extends
|
|
12823
|
+
const dr = F(
|
|
12824
|
+
(s) => class extends zi(er(s)) {
|
|
12823
12825
|
static get properties() {
|
|
12824
12826
|
return {
|
|
12825
12827
|
/**
|
|
@@ -12976,14 +12978,14 @@ const lr = F(
|
|
|
12976
12978
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12977
12979
|
*/
|
|
12978
12980
|
const qt = /* @__PURE__ */ new WeakMap();
|
|
12979
|
-
function
|
|
12981
|
+
function ac(s) {
|
|
12980
12982
|
return qt.has(s) || qt.set(s, /* @__PURE__ */ new Set()), qt.get(s);
|
|
12981
12983
|
}
|
|
12982
|
-
function
|
|
12984
|
+
function lc(s, t) {
|
|
12983
12985
|
const e = document.createElement("style");
|
|
12984
12986
|
e.textContent = s, t === document ? document.head.appendChild(e) : t.insertBefore(e, t.firstChild);
|
|
12985
12987
|
}
|
|
12986
|
-
const
|
|
12988
|
+
const dc = F(
|
|
12987
12989
|
(s) => class extends s {
|
|
12988
12990
|
/**
|
|
12989
12991
|
* List of styles to insert into root.
|
|
@@ -12998,9 +13000,9 @@ const lc = F(
|
|
|
12998
13000
|
}
|
|
12999
13001
|
/** @private */
|
|
13000
13002
|
__applySlotStyles() {
|
|
13001
|
-
const e = this.getRootNode(), i =
|
|
13003
|
+
const e = this.getRootNode(), i = ac(e);
|
|
13002
13004
|
this.slotStyles.forEach((o) => {
|
|
13003
|
-
i.has(o) || (
|
|
13005
|
+
i.has(o) || (lc(o, e), i.add(o));
|
|
13004
13006
|
});
|
|
13005
13007
|
}
|
|
13006
13008
|
}
|
|
@@ -13010,7 +13012,7 @@ const lc = F(
|
|
|
13010
13012
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
13011
13013
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
13012
13014
|
*/
|
|
13013
|
-
const
|
|
13015
|
+
const cr = F(
|
|
13014
13016
|
(s) => class extends s {
|
|
13015
13017
|
static get properties() {
|
|
13016
13018
|
return {
|
|
@@ -13214,7 +13216,7 @@ const dr = F(
|
|
|
13214
13216
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
13215
13217
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
13216
13218
|
*/
|
|
13217
|
-
const
|
|
13219
|
+
const cc = (s) => class extends cr(Mt(s)) {
|
|
13218
13220
|
static get properties() {
|
|
13219
13221
|
return {
|
|
13220
13222
|
/**
|
|
@@ -13259,7 +13261,7 @@ const dc = (s) => class extends dr(Mt(s)) {
|
|
|
13259
13261
|
* @protected
|
|
13260
13262
|
*/
|
|
13261
13263
|
_onClearButtonMouseDown(e) {
|
|
13262
|
-
e.preventDefault(),
|
|
13264
|
+
e.preventDefault(), Tl || this.inputElement.focus();
|
|
13263
13265
|
}
|
|
13264
13266
|
/**
|
|
13265
13267
|
* Override an event listener inherited from `KeydownMixin` to clear on Esc.
|
|
@@ -13290,48 +13292,48 @@ const dc = (s) => class extends dr(Mt(s)) {
|
|
|
13290
13292
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
13291
13293
|
*/
|
|
13292
13294
|
const Kt = /* @__PURE__ */ new Map();
|
|
13293
|
-
function
|
|
13295
|
+
function Ui(s) {
|
|
13294
13296
|
return Kt.has(s) || Kt.set(s, /* @__PURE__ */ new WeakMap()), Kt.get(s);
|
|
13295
13297
|
}
|
|
13296
|
-
function
|
|
13298
|
+
function ur(s, t) {
|
|
13297
13299
|
s && s.removeAttribute(t);
|
|
13298
13300
|
}
|
|
13299
|
-
function
|
|
13301
|
+
function hr(s, t) {
|
|
13300
13302
|
if (!s || !t)
|
|
13301
13303
|
return;
|
|
13302
|
-
const e =
|
|
13304
|
+
const e = Ui(t);
|
|
13303
13305
|
if (e.has(s))
|
|
13304
13306
|
return;
|
|
13305
|
-
const i =
|
|
13307
|
+
const i = Ii(s.getAttribute(t));
|
|
13306
13308
|
e.set(s, new Set(i));
|
|
13307
13309
|
}
|
|
13308
|
-
function
|
|
13310
|
+
function uc(s, t) {
|
|
13309
13311
|
if (!s)
|
|
13310
13312
|
return;
|
|
13311
|
-
const e =
|
|
13312
|
-
!i || i.size === 0 ? s.removeAttribute(t) :
|
|
13313
|
+
const e = Ui(t), i = e.get(s);
|
|
13314
|
+
!i || i.size === 0 ? s.removeAttribute(t) : Uo(s, t, Ot(i)), e.delete(s);
|
|
13313
13315
|
}
|
|
13314
13316
|
function Gt(s, t, e = { newId: null, oldId: null, fromUser: !1 }) {
|
|
13315
13317
|
if (!s || !t)
|
|
13316
13318
|
return;
|
|
13317
|
-
const { newId: i, oldId: o, fromUser: r } = e, n =
|
|
13319
|
+
const { newId: i, oldId: o, fromUser: r } = e, n = Ui(t), a = n.get(s);
|
|
13318
13320
|
if (!r && a) {
|
|
13319
13321
|
o && a.delete(o), i && a.add(i);
|
|
13320
13322
|
return;
|
|
13321
13323
|
}
|
|
13322
|
-
r && (a ? i || n.delete(s) :
|
|
13324
|
+
r && (a ? i || n.delete(s) : hr(s, t), ur(s, t)), Hl(s, t, o);
|
|
13323
13325
|
const l = i || Ot(a);
|
|
13324
|
-
l &&
|
|
13326
|
+
l && Uo(s, t, l);
|
|
13325
13327
|
}
|
|
13326
|
-
function
|
|
13327
|
-
|
|
13328
|
+
function hc(s, t) {
|
|
13329
|
+
hr(s, t), ur(s, t);
|
|
13328
13330
|
}
|
|
13329
13331
|
/**
|
|
13330
13332
|
* @license
|
|
13331
13333
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
13332
13334
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
13333
13335
|
*/
|
|
13334
|
-
class
|
|
13336
|
+
class pc {
|
|
13335
13337
|
constructor(t) {
|
|
13336
13338
|
this.host = t, this.__required = !1;
|
|
13337
13339
|
}
|
|
@@ -13404,7 +13406,7 @@ class hc {
|
|
|
13404
13406
|
* @private
|
|
13405
13407
|
* */
|
|
13406
13408
|
__setAriaLabelToAttribute(t) {
|
|
13407
|
-
this.__target && (t ? (
|
|
13409
|
+
this.__target && (t ? (hc(this.__target, "aria-labelledby"), this.__target.setAttribute("aria-label", t)) : this.__label && (uc(this.__target, "aria-labelledby"), this.__target.removeAttribute("aria-label")));
|
|
13408
13410
|
}
|
|
13409
13411
|
/**
|
|
13410
13412
|
* @param {string | null | undefined} labelId
|
|
@@ -13450,9 +13452,9 @@ K.style.clip = "rect(0px, 0px, 0px, 0px)";
|
|
|
13450
13452
|
K.setAttribute("aria-live", "polite");
|
|
13451
13453
|
document.body.appendChild(K);
|
|
13452
13454
|
let ft;
|
|
13453
|
-
function
|
|
13455
|
+
function fc(s, t = {}) {
|
|
13454
13456
|
const e = t.mode || "polite", i = t.timeout === void 0 ? 150 : t.timeout;
|
|
13455
|
-
e === "alert" ? (K.removeAttribute("aria-live"), K.removeAttribute("role"), ft = ze.debounce(ft,
|
|
13457
|
+
e === "alert" ? (K.removeAttribute("aria-live"), K.removeAttribute("role"), ft = ze.debounce(ft, id, () => {
|
|
13456
13458
|
K.setAttribute("role", "alert");
|
|
13457
13459
|
})) : (ft && ft.cancel(), K.removeAttribute("role"), K.setAttribute("aria-live", e)), K.textContent = "", setTimeout(() => {
|
|
13458
13460
|
K.textContent = s;
|
|
@@ -13463,7 +13465,7 @@ function pc(s, t = {}) {
|
|
|
13463
13465
|
* Copyright (c) 2022 - 2024 Vaadin Ltd.
|
|
13464
13466
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
13465
13467
|
*/
|
|
13466
|
-
class
|
|
13468
|
+
class Yi extends ge {
|
|
13467
13469
|
constructor(t, e, i, o = {}) {
|
|
13468
13470
|
super(t, e, i, { ...o, useUniqueId: !0 });
|
|
13469
13471
|
}
|
|
@@ -13578,7 +13580,7 @@ class Ui extends ge {
|
|
|
13578
13580
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
13579
13581
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
13580
13582
|
*/
|
|
13581
|
-
class
|
|
13583
|
+
class mc extends Yi {
|
|
13582
13584
|
constructor(t) {
|
|
13583
13585
|
super(t, "error-message", "div");
|
|
13584
13586
|
}
|
|
@@ -13652,7 +13654,7 @@ class fc extends Ui {
|
|
|
13652
13654
|
*/
|
|
13653
13655
|
updateDefaultNode(t) {
|
|
13654
13656
|
const { errorMessage: e, invalid: i } = this, o = !!(i && e && e.trim() !== "");
|
|
13655
|
-
t && (t.textContent = o ? e : "", t.hidden = !o, o &&
|
|
13657
|
+
t && (t.textContent = o ? e : "", t.hidden = !o, o && fc(e, { mode: "assertive" })), super.updateDefaultNode(t);
|
|
13656
13658
|
}
|
|
13657
13659
|
}
|
|
13658
13660
|
/**
|
|
@@ -13660,7 +13662,7 @@ class fc extends Ui {
|
|
|
13660
13662
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
13661
13663
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
13662
13664
|
*/
|
|
13663
|
-
class
|
|
13665
|
+
class _c extends Yi {
|
|
13664
13666
|
constructor(t) {
|
|
13665
13667
|
super(t, "helper", null);
|
|
13666
13668
|
}
|
|
@@ -13715,7 +13717,7 @@ class mc extends Ui {
|
|
|
13715
13717
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
13716
13718
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
13717
13719
|
*/
|
|
13718
|
-
class
|
|
13720
|
+
class gc extends Yi {
|
|
13719
13721
|
constructor(t) {
|
|
13720
13722
|
super(t, "label", "label");
|
|
13721
13723
|
}
|
|
@@ -13768,7 +13770,7 @@ class _c extends Ui {
|
|
|
13768
13770
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
13769
13771
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
13770
13772
|
*/
|
|
13771
|
-
const
|
|
13773
|
+
const yc = F(
|
|
13772
13774
|
(s) => class extends $e(s) {
|
|
13773
13775
|
static get properties() {
|
|
13774
13776
|
return {
|
|
@@ -13783,7 +13785,7 @@ const gc = F(
|
|
|
13783
13785
|
};
|
|
13784
13786
|
}
|
|
13785
13787
|
constructor() {
|
|
13786
|
-
super(), this._labelController = new
|
|
13788
|
+
super(), this._labelController = new gc(this), this._labelController.addEventListener("slot-content-changed", (e) => {
|
|
13787
13789
|
this.toggleAttribute("has-label", e.detail.hasContent);
|
|
13788
13790
|
});
|
|
13789
13791
|
}
|
|
@@ -13811,7 +13813,7 @@ const gc = F(
|
|
|
13811
13813
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
13812
13814
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
13813
13815
|
*/
|
|
13814
|
-
const
|
|
13816
|
+
const pr = F(
|
|
13815
13817
|
(s) => class extends s {
|
|
13816
13818
|
static get properties() {
|
|
13817
13819
|
return {
|
|
@@ -13883,7 +13885,7 @@ const hr = F(
|
|
|
13883
13885
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
13884
13886
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
13885
13887
|
*/
|
|
13886
|
-
const
|
|
13888
|
+
const bc = (s) => class extends pr(yc($e(s))) {
|
|
13887
13889
|
static get properties() {
|
|
13888
13890
|
return {
|
|
13889
13891
|
/**
|
|
@@ -13933,7 +13935,7 @@ const yc = (s) => class extends hr(gc($e(s))) {
|
|
|
13933
13935
|
return ["_invalidChanged(invalid)", "_requiredChanged(required)"];
|
|
13934
13936
|
}
|
|
13935
13937
|
constructor() {
|
|
13936
|
-
super(), this._fieldAriaController = new
|
|
13938
|
+
super(), this._fieldAriaController = new pc(this), this._helperController = new _c(this), this._errorController = new mc(this), this._errorController.addEventListener("slot-content-changed", (e) => {
|
|
13937
13939
|
this.toggleAttribute("has-error-message", e.detail.hasContent);
|
|
13938
13940
|
}), this._labelController.addEventListener("slot-content-changed", (e) => {
|
|
13939
13941
|
const { hasContent: i, node: o } = e.detail;
|
|
@@ -14024,7 +14026,7 @@ const yc = (s) => class extends hr(gc($e(s))) {
|
|
|
14024
14026
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
14025
14027
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14026
14028
|
*/
|
|
14027
|
-
const
|
|
14029
|
+
const vc = F(
|
|
14028
14030
|
(s) => class extends s {
|
|
14029
14031
|
static get properties() {
|
|
14030
14032
|
return {
|
|
@@ -14105,8 +14107,8 @@ const bc = F(
|
|
|
14105
14107
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
14106
14108
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14107
14109
|
*/
|
|
14108
|
-
const
|
|
14109
|
-
(s) => class extends
|
|
14110
|
+
const fr = F(
|
|
14111
|
+
(s) => class extends vc(pr(cr(s))) {
|
|
14110
14112
|
/**
|
|
14111
14113
|
* An array of attributes which participate in the input validation.
|
|
14112
14114
|
* Changing these attributes will cause the input to re-validate.
|
|
@@ -14190,8 +14192,8 @@ const pr = F(
|
|
|
14190
14192
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
14191
14193
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14192
14194
|
*/
|
|
14193
|
-
const
|
|
14194
|
-
|
|
14195
|
+
const wc = (s) => class extends dc(
|
|
14196
|
+
dr(fr(bc(cc(Mt(s)))))
|
|
14195
14197
|
) {
|
|
14196
14198
|
static get properties() {
|
|
14197
14199
|
return {
|
|
@@ -14377,7 +14379,7 @@ const vc = (s) => class extends lc(
|
|
|
14377
14379
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
14378
14380
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14379
14381
|
*/
|
|
14380
|
-
class
|
|
14382
|
+
class xc extends ge {
|
|
14381
14383
|
constructor(t, e, i = {}) {
|
|
14382
14384
|
const { uniqueIdPrefix: o } = i;
|
|
14383
14385
|
super(t, "input", "input", {
|
|
@@ -14394,7 +14396,7 @@ class wc extends ge {
|
|
|
14394
14396
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
14395
14397
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14396
14398
|
*/
|
|
14397
|
-
class
|
|
14399
|
+
class Cc {
|
|
14398
14400
|
constructor(t, e) {
|
|
14399
14401
|
this.input = t, this.__preventDuplicateLabelClick = this.__preventDuplicateLabelClick.bind(this), e.addEventListener("slot-content-changed", (i) => {
|
|
14400
14402
|
this.__initLabel(i.detail.node);
|
|
@@ -14427,7 +14429,7 @@ class xc {
|
|
|
14427
14429
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
14428
14430
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14429
14431
|
*/
|
|
14430
|
-
const
|
|
14432
|
+
const Ac = x`
|
|
14431
14433
|
[part='clear-button'] {
|
|
14432
14434
|
display: none;
|
|
14433
14435
|
cursor: default;
|
|
@@ -14446,7 +14448,7 @@ const Cc = x`
|
|
|
14446
14448
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
14447
14449
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14448
14450
|
*/
|
|
14449
|
-
const
|
|
14451
|
+
const Ec = x`
|
|
14450
14452
|
:host {
|
|
14451
14453
|
display: inline-flex;
|
|
14452
14454
|
outline: none;
|
|
@@ -14486,7 +14488,7 @@ const Ac = x`
|
|
|
14486
14488
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
14487
14489
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14488
14490
|
*/
|
|
14489
|
-
const
|
|
14491
|
+
const Pc = x`
|
|
14490
14492
|
[class$='container'] {
|
|
14491
14493
|
display: flex;
|
|
14492
14494
|
flex-direction: column;
|
|
@@ -14500,7 +14502,7 @@ const Ec = x`
|
|
|
14500
14502
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
14501
14503
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14502
14504
|
*/
|
|
14503
|
-
const
|
|
14505
|
+
const Dc = [Ec, Pc, Ac];
|
|
14504
14506
|
/**
|
|
14505
14507
|
* @license
|
|
14506
14508
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
@@ -14553,7 +14555,7 @@ const kc = (s) => class extends s {
|
|
|
14553
14555
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
14554
14556
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14555
14557
|
*/
|
|
14556
|
-
class
|
|
14558
|
+
class Tc {
|
|
14557
14559
|
/**
|
|
14558
14560
|
* @param {{ inputElement?: HTMLElement; opened: boolean } & HTMLElement} host
|
|
14559
14561
|
*/
|
|
@@ -14572,8 +14574,8 @@ class Dc {
|
|
|
14572
14574
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
14573
14575
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14574
14576
|
*/
|
|
14575
|
-
const
|
|
14576
|
-
$e(
|
|
14577
|
+
const Sc = (s) => class extends kc(
|
|
14578
|
+
$e(dr(fr(Mt(s))))
|
|
14577
14579
|
) {
|
|
14578
14580
|
static get properties() {
|
|
14579
14581
|
return {
|
|
@@ -14778,7 +14780,7 @@ const Tc = (s) => class extends kc(
|
|
|
14778
14780
|
if (i.length === 3) {
|
|
14779
14781
|
if (n = parseInt(i[0]) - 1, r = parseInt(i[1]), a = parseInt(i[2]), i[2].length < 3 && a >= 0) {
|
|
14780
14782
|
const l = this.referenceDate ? Ke(this.referenceDate) : /* @__PURE__ */ new Date();
|
|
14781
|
-
a =
|
|
14783
|
+
a = Sd(l, a, n, r);
|
|
14782
14784
|
}
|
|
14783
14785
|
} else
|
|
14784
14786
|
i.length === 2 ? (n = parseInt(i[0]) - 1, r = parseInt(i[1])) : i.length === 1 && (r = parseInt(i[0]));
|
|
@@ -14852,7 +14854,7 @@ const Tc = (s) => class extends kc(
|
|
|
14852
14854
|
/** @private */
|
|
14853
14855
|
_ios: {
|
|
14854
14856
|
type: Boolean,
|
|
14855
|
-
value:
|
|
14857
|
+
value: Ho
|
|
14856
14858
|
},
|
|
14857
14859
|
/** @private */
|
|
14858
14860
|
_focusOverlayOnOpen: Boolean,
|
|
@@ -14940,7 +14942,7 @@ const Tc = (s) => class extends kc(
|
|
|
14940
14942
|
* @protected
|
|
14941
14943
|
*/
|
|
14942
14944
|
_onFocus(e) {
|
|
14943
|
-
super._onFocus(e), this._noInput && !
|
|
14945
|
+
super._onFocus(e), this._noInput && !Mi() && e.target.blur();
|
|
14944
14946
|
}
|
|
14945
14947
|
/**
|
|
14946
14948
|
* Override an event listener from `DelegateFocusMixin`
|
|
@@ -14952,10 +14954,10 @@ const Tc = (s) => class extends kc(
|
|
|
14952
14954
|
/** @protected */
|
|
14953
14955
|
ready() {
|
|
14954
14956
|
super.ready(), this.addEventListener("click", this._boundOnClick), this.addController(
|
|
14955
|
-
new
|
|
14957
|
+
new lr(this._fullscreenMediaQuery, (i) => {
|
|
14956
14958
|
this._fullscreen = i;
|
|
14957
14959
|
})
|
|
14958
|
-
), this.addController(new
|
|
14960
|
+
), this.addController(new Tc(this));
|
|
14959
14961
|
const e = this.$.overlay;
|
|
14960
14962
|
this._overlayElement = e, e.renderer = this._boundOverlayRenderer, this.addEventListener("mousedown", () => this.__bringToFront()), this.addEventListener("touchstart", () => this.__bringToFront());
|
|
14961
14963
|
}
|
|
@@ -15011,7 +15013,7 @@ const Tc = (s) => class extends kc(
|
|
|
15011
15013
|
*/
|
|
15012
15014
|
__formatDate(e) {
|
|
15013
15015
|
if (this.i18n.formatDate)
|
|
15014
|
-
return this.i18n.formatDate(
|
|
15016
|
+
return this.i18n.formatDate(Ri(e));
|
|
15015
15017
|
}
|
|
15016
15018
|
/**
|
|
15017
15019
|
* Returns true if the current input value satisfies all constraints (if any)
|
|
@@ -15113,7 +15115,7 @@ const Tc = (s) => class extends kc(
|
|
|
15113
15115
|
}
|
|
15114
15116
|
/** @private */
|
|
15115
15117
|
_formatISO(e) {
|
|
15116
|
-
return
|
|
15118
|
+
return Md(e);
|
|
15117
15119
|
}
|
|
15118
15120
|
/** @protected */
|
|
15119
15121
|
_inputElementChanged(e) {
|
|
@@ -15179,12 +15181,12 @@ const Tc = (s) => class extends kc(
|
|
|
15179
15181
|
const r = this._nativeInput;
|
|
15180
15182
|
this._noInput && r && (r.blur(), this._overlayContent.focusDateElement());
|
|
15181
15183
|
const n = this._noInput ? e : [r, e];
|
|
15182
|
-
this.__showOthers =
|
|
15184
|
+
this.__showOthers = $o(n);
|
|
15183
15185
|
}
|
|
15184
15186
|
/** @private */
|
|
15185
15187
|
_getInitialPosition() {
|
|
15186
15188
|
const e = Ke(this.initialPosition), i = this._selectedDate || this._overlayContent.initialPosition || e || /* @__PURE__ */ new Date();
|
|
15187
|
-
return e || Re(i, this._minDate, this._maxDate, this.isDateDisabled) ? i : this._minDate || this._maxDate ?
|
|
15189
|
+
return e || Re(i, this._minDate, this._maxDate, this.isDateDisabled) ? i : this._minDate || this._maxDate ? tr(i, [this._minDate, this._maxDate]) : /* @__PURE__ */ new Date();
|
|
15188
15190
|
}
|
|
15189
15191
|
/**
|
|
15190
15192
|
* Tries to parse the input element's value as a date. If the input value
|
|
@@ -15345,7 +15347,7 @@ const Tc = (s) => class extends kc(
|
|
|
15345
15347
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
15346
15348
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15347
15349
|
*/
|
|
15348
|
-
const
|
|
15350
|
+
const Oc = x`
|
|
15349
15351
|
:host([opened]) {
|
|
15350
15352
|
pointer-events: auto;
|
|
15351
15353
|
}
|
|
@@ -15364,8 +15366,8 @@ const Sc = x`
|
|
|
15364
15366
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
15365
15367
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15366
15368
|
*/
|
|
15367
|
-
I("vaadin-date-picker", [
|
|
15368
|
-
class
|
|
15369
|
+
I("vaadin-date-picker", [Dc, Oc], { moduleId: "vaadin-date-picker-styles" });
|
|
15370
|
+
class Mc extends Sc(wc(we(jo(ce)))) {
|
|
15369
15371
|
static get is() {
|
|
15370
15372
|
return "vaadin-date-picker";
|
|
15371
15373
|
}
|
|
@@ -15425,7 +15427,7 @@ class Oc extends Tc(vc(we(Wo(ce)))) {
|
|
|
15425
15427
|
/** @protected */
|
|
15426
15428
|
ready() {
|
|
15427
15429
|
super.ready(), this.addController(
|
|
15428
|
-
new
|
|
15430
|
+
new xc(
|
|
15429
15431
|
this,
|
|
15430
15432
|
(e) => {
|
|
15431
15433
|
this._setInputElement(e), this._setFocusElement(e), this.stateTarget = e, this.ariaTarget = e;
|
|
@@ -15437,7 +15439,7 @@ class Oc extends Tc(vc(we(Wo(ce)))) {
|
|
|
15437
15439
|
uniqueIdPrefix: "search-input"
|
|
15438
15440
|
}
|
|
15439
15441
|
)
|
|
15440
|
-
), this.addController(new
|
|
15442
|
+
), this.addController(new Cc(this.inputElement, this._labelController)), this._tooltipController = new Ko(this), this.addController(this._tooltipController), this._tooltipController.setPosition("top"), this._tooltipController.setAriaTarget(this.inputElement), this._tooltipController.setShouldShow((e) => !e.opened), this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown", (e) => e.preventDefault()), this.$.overlay.addEventListener("vaadin-overlay-close", this._onVaadinOverlayClose.bind(this));
|
|
15441
15443
|
}
|
|
15442
15444
|
/** @private */
|
|
15443
15445
|
_onVaadinOverlayClose(t) {
|
|
@@ -15453,19 +15455,19 @@ class Oc extends Tc(vc(we(Wo(ce)))) {
|
|
|
15453
15455
|
super._openedChanged(t), this.$.overlay.positionTarget = this.shadowRoot.querySelector('[part="input-field"]'), this.$.overlay.noVerticalOverlap = !0;
|
|
15454
15456
|
}
|
|
15455
15457
|
}
|
|
15456
|
-
ee(
|
|
15457
|
-
function
|
|
15458
|
-
|
|
15458
|
+
ee(Mc);
|
|
15459
|
+
function Ic(s) {
|
|
15460
|
+
Lr(s, "svelte-1lo5ai1", ".BonusesWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 10px);color:var(--emw--color-typography-cotrast, #444444);padding:50px;max-width:850px}.BonusesWrapper.BonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.BonusesTitleMobile{font-size:var(--emw--size-standard, 16px)}.BonusesTitleNone{display:none}.BonusCalendarWrapper{display:flex;gap:15px;padding-bottom:30px;align-items:center}.BonusCalendarWrapper.BonusCalendarWrapperMobile{flex-direction:column;gap:10px;padding-bottom:15px}.BonusesCalendarContainer{display:flex;gap:20px}.BonusesCalendarContainer.BonusesCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%}.BonusesCalendarStartDate,.BonusesCalendarEndDate{color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;align-items:center;gap:10px}.BonusesCalendarStartDate.BonusesCalendarMobile,.BonusesCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:48%}.BonusesCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusesCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%;border-radius:var(--emw--border-radius-large, 10px)}.BonusesCalendarStartDate label,.BonusesCalendarEndDate label{font-size:var(--emw--font-size-small, 14px);font-weight:300}.BonusesCalendarStartDate input,.BonusesCalendarEndDate input{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:var(--emw--border-radius-small, 5px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px;outline-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesCalendarFilter{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);color:var(--emw--button-text-color, #FFFFFF);border-radius:var(--emw--button-border-radius, 10px);cursor:pointer;width:120px;height:40px;font-size:var(--emw--font-size-medium, 15px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;outline:none}.BonusesCalendarFilter.BonusesCalendarFilterMobile{width:100%;height:44px}.BonusesCalendarFilter:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesCalendarFilter:disabled{background-image:none;background-color:var(--emw--button-disabled-text-color, #cccccc);color:var(--emw--button-disabled-text-color, #666);cursor:not-allowed;opacity:0.7;pointer-events:none;border:2px solid var(--emw--button-disabled-border-color, #aaaaaa)}.BonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px;border-radius:var(--emw--border-radius-large, 10px)}.BonusesGrid.BonusesGridMobile{grid-template-columns:1fr;gap:20px}.BonusesPaginationWrapper{margin:40px 0;display:block;line-break:anywhere;line-height:2em}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:var(--emw--size-standard, 16px);cursor:pointer;padding:5px 10px;font-weight:var(--emw--font-weight-bold, 700)}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emw--color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emw--color-typography-cotrast, #444444);font-size:var(--emw--size-standard, 16px);cursor:pointer;padding:5px 10px;white-space:nowrap}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emw--color-white, #FFFFFF);font-weight:var(--emw--font-weight-bold, 700)}");
|
|
15459
15461
|
}
|
|
15460
|
-
function
|
|
15462
|
+
function zs(s, t, e) {
|
|
15461
15463
|
const i = s.slice();
|
|
15462
15464
|
return i[52] = t[e], i[54] = e, i;
|
|
15463
15465
|
}
|
|
15464
|
-
function
|
|
15466
|
+
function Rs(s, t, e) {
|
|
15465
15467
|
const i = s.slice();
|
|
15466
15468
|
return i[55] = t[e], i;
|
|
15467
15469
|
}
|
|
15468
|
-
function
|
|
15470
|
+
function Nc(s) {
|
|
15469
15471
|
let t, e, i, o = (
|
|
15470
15472
|
/*$_*/
|
|
15471
15473
|
s[23]("titleBonusesHistory") + ""
|
|
@@ -15475,26 +15477,26 @@ function Ic(s) {
|
|
|
15475
15477
|
), h, f, m, v, y, P, A = (
|
|
15476
15478
|
/*$_*/
|
|
15477
15479
|
s[23]("dateTo") + ""
|
|
15478
|
-
), S, O, b,
|
|
15480
|
+
), S, O, b, k, M, D = (
|
|
15479
15481
|
/*$_*/
|
|
15480
15482
|
s[23]("dateFilter") + ""
|
|
15481
|
-
), G, ne, Ae, te, Ee, Pe,
|
|
15483
|
+
), G, ne, Ae, te, Ee, Pe, De, X = (
|
|
15482
15484
|
/*isMobile*/
|
|
15483
|
-
s[24] &&
|
|
15485
|
+
s[24] && Fc(s)
|
|
15484
15486
|
);
|
|
15485
15487
|
function Ve(E, N) {
|
|
15486
15488
|
return (
|
|
15487
15489
|
/*bonusesList*/
|
|
15488
|
-
E[19].length === 0 ?
|
|
15490
|
+
E[19].length === 0 ? Lc : Bc
|
|
15489
15491
|
);
|
|
15490
15492
|
}
|
|
15491
15493
|
let he = Ve(s), V = he(s), L = (
|
|
15492
15494
|
/*bonusesList*/
|
|
15493
|
-
s[19].length !== 0 &&
|
|
15495
|
+
s[19].length !== 0 && $s(s)
|
|
15494
15496
|
);
|
|
15495
15497
|
return {
|
|
15496
15498
|
c() {
|
|
15497
|
-
t = T("div"), X && X.c(), e = $(), i = T("h2"), r = j(o), n = $(), a = T("div"), l = T("div"), d = T("div"), c = T("label"), h = j(u), f = $(), m = T("vaadin-date-picker"), v = $(), y = T("div"), P = T("label"), S = j(A), O = $(), b = T("vaadin-date-picker"),
|
|
15499
|
+
t = T("div"), X && X.c(), e = $(), i = T("h2"), r = j(o), n = $(), a = T("div"), l = T("div"), d = T("div"), c = T("label"), h = j(u), f = $(), m = T("vaadin-date-picker"), v = $(), y = T("div"), P = T("label"), S = j(A), O = $(), b = T("vaadin-date-picker"), k = $(), M = T("button"), G = j(D), Ae = $(), te = T("div"), V.c(), Ee = $(), L && L.c(), w(i, "class", "BonusesTitle " + /*isMobile*/
|
|
15498
15500
|
(s[24] ? "BonusesTitleNone" : "")), w(i, "part", "BonusesTitle " + /*isMobile*/
|
|
15499
15501
|
(s[24] ? "BonusesTitleNone" : "")), w(c, "for", "BonusCalendarStartDate"), p(
|
|
15500
15502
|
m,
|
|
@@ -15532,7 +15534,7 @@ function Ic(s) {
|
|
|
15532
15534
|
(s[24] ? "BonusesWrapperMobile" : ""));
|
|
15533
15535
|
},
|
|
15534
15536
|
m(E, N) {
|
|
15535
|
-
Z(E, t, N), X && X.m(t, null), g(t, e), g(t, i), g(i, r), g(t, n), g(t, a), g(a, l), g(l, d), g(d, c), g(c, h), g(d, f), g(d, m), s[33](m), g(l, v), g(l, y), g(y, P), g(P, S), g(y, O), g(y, b), s[34](b), g(a,
|
|
15537
|
+
Z(E, t, N), X && X.m(t, null), g(t, e), g(t, i), g(i, r), g(t, n), g(t, a), g(a, l), g(l, d), g(d, c), g(c, h), g(d, f), g(d, m), s[33](m), g(l, v), g(l, y), g(y, P), g(P, S), g(y, O), g(y, b), s[34](b), g(a, k), g(a, M), g(M, G), g(t, Ae), g(t, te), V.m(te, null), g(t, Ee), L && L.m(t, null), Pe || (De = me(
|
|
15536
15538
|
M,
|
|
15537
15539
|
"click",
|
|
15538
15540
|
/*click_handler_1*/
|
|
@@ -15566,25 +15568,25 @@ function Ic(s) {
|
|
|
15566
15568
|
/*bonusCalendarEndDate*/
|
|
15567
15569
|
E[12]
|
|
15568
15570
|
), N[0] & /*$_*/
|
|
15569
|
-
8388608 &&
|
|
15570
|
-
E[23]("dateFilter") + "") && Oe(G,
|
|
15571
|
+
8388608 && D !== (D = /*$_*/
|
|
15572
|
+
E[23]("dateFilter") + "") && Oe(G, D), N[0] & /*submitEnable*/
|
|
15571
15573
|
8192 && ne !== (ne = !/*submitEnable*/
|
|
15572
15574
|
E[13]) && (M.disabled = ne), he === (he = Ve(E)) && V ? V.p(E, N) : (V.d(1), V = he(E), V && (V.c(), V.m(te, null))), /*bonusesList*/
|
|
15573
|
-
E[19].length !== 0 ? L ? L.p(E, N) : (L =
|
|
15575
|
+
E[19].length !== 0 ? L ? L.p(E, N) : (L = $s(E), L.c(), L.m(t, null)) : L && (L.d(1), L = null);
|
|
15574
15576
|
},
|
|
15575
15577
|
d(E) {
|
|
15576
|
-
E && Q(t), X && X.d(), s[33](null), s[34](null), V.d(), L && L.d(), Pe = !1,
|
|
15578
|
+
E && Q(t), X && X.d(), s[33](null), s[34](null), V.d(), L && L.d(), Pe = !1, De();
|
|
15577
15579
|
}
|
|
15578
15580
|
};
|
|
15579
15581
|
}
|
|
15580
|
-
function
|
|
15582
|
+
function Fc(s) {
|
|
15581
15583
|
let t, e, i, o, r, n, a, l, d, c, u = (
|
|
15582
15584
|
/*$_*/
|
|
15583
15585
|
s[23]("titleBonusesHistory") + ""
|
|
15584
15586
|
), h, f, m;
|
|
15585
15587
|
return {
|
|
15586
15588
|
c() {
|
|
15587
|
-
t = T("div"), e =
|
|
15589
|
+
t = T("div"), e = ke("svg"), i = ke("defs"), o = ke("style"), r = j(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), n = ke("g"), a = ke("g"), l = ke("path"), d = $(), c = T("h2"), h = j(u), w(l, "class", "aaa"), w(l, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), w(l, "transform", "translate(15 15) rotate(180)"), w(a, "transform", "translate(20 158)"), w(n, "transform", "translate(-20 -158)"), w(e, "xmlns", "http://www.w3.org/2000/svg"), w(e, "width", "15"), w(e, "height", "15"), w(e, "viewBox", "0 0 15 15"), w(c, "class", "BonusesTitleMobile"), w(t, "class", "MenuReturnButton");
|
|
15588
15590
|
},
|
|
15589
15591
|
m(v, y) {
|
|
15590
15592
|
Z(v, t, y), g(t, e), g(e, i), g(i, o), g(o, r), g(e, n), g(n, a), g(a, l), g(t, d), g(t, c), g(c, h), f || (m = me(
|
|
@@ -15604,18 +15606,18 @@ function Nc(s) {
|
|
|
15604
15606
|
}
|
|
15605
15607
|
};
|
|
15606
15608
|
}
|
|
15607
|
-
function
|
|
15609
|
+
function Bc(s) {
|
|
15608
15610
|
let t, e = gt(
|
|
15609
15611
|
/*bonusesList*/
|
|
15610
15612
|
s[19]
|
|
15611
15613
|
), i = [];
|
|
15612
15614
|
for (let o = 0; o < e.length; o += 1)
|
|
15613
|
-
i[o] = Rs(
|
|
15615
|
+
i[o] = Hs(Rs(s, e, o));
|
|
15614
15616
|
return {
|
|
15615
15617
|
c() {
|
|
15616
15618
|
for (let o = 0; o < i.length; o += 1)
|
|
15617
15619
|
i[o].c();
|
|
15618
|
-
t =
|
|
15620
|
+
t = Ys();
|
|
15619
15621
|
},
|
|
15620
15622
|
m(o, r) {
|
|
15621
15623
|
for (let n = 0; n < i.length; n += 1)
|
|
@@ -15631,8 +15633,8 @@ function Fc(s) {
|
|
|
15631
15633
|
);
|
|
15632
15634
|
let n;
|
|
15633
15635
|
for (n = 0; n < e.length; n += 1) {
|
|
15634
|
-
const a =
|
|
15635
|
-
i[n] ? i[n].p(a, r) : (i[n] =
|
|
15636
|
+
const a = Rs(o, e, n);
|
|
15637
|
+
i[n] ? i[n].p(a, r) : (i[n] = Hs(a), i[n].c(), i[n].m(t.parentNode, t));
|
|
15636
15638
|
}
|
|
15637
15639
|
for (; n < i.length; n += 1)
|
|
15638
15640
|
i[n].d(1);
|
|
@@ -15640,11 +15642,11 @@ function Fc(s) {
|
|
|
15640
15642
|
}
|
|
15641
15643
|
},
|
|
15642
15644
|
d(o) {
|
|
15643
|
-
o && Q(t),
|
|
15645
|
+
o && Q(t), Us(i, o);
|
|
15644
15646
|
}
|
|
15645
15647
|
};
|
|
15646
15648
|
}
|
|
15647
|
-
function
|
|
15649
|
+
function Lc(s) {
|
|
15648
15650
|
let t, e = (
|
|
15649
15651
|
/*$_*/
|
|
15650
15652
|
s[23]("noBonusHistory") + ""
|
|
@@ -15666,7 +15668,7 @@ function Bc(s) {
|
|
|
15666
15668
|
}
|
|
15667
15669
|
};
|
|
15668
15670
|
}
|
|
15669
|
-
function
|
|
15671
|
+
function zc(s) {
|
|
15670
15672
|
let t, e, i, o, r, n, a, l, d, c;
|
|
15671
15673
|
return {
|
|
15672
15674
|
c() {
|
|
@@ -15811,7 +15813,7 @@ function Lc(s) {
|
|
|
15811
15813
|
}
|
|
15812
15814
|
};
|
|
15813
15815
|
}
|
|
15814
|
-
function
|
|
15816
|
+
function Rc(s) {
|
|
15815
15817
|
let t, e, i, o, r, n, a;
|
|
15816
15818
|
return {
|
|
15817
15819
|
c() {
|
|
@@ -15945,18 +15947,18 @@ function zc(s) {
|
|
|
15945
15947
|
}
|
|
15946
15948
|
};
|
|
15947
15949
|
}
|
|
15948
|
-
function
|
|
15950
|
+
function Hs(s) {
|
|
15949
15951
|
let t;
|
|
15950
15952
|
function e(r, n) {
|
|
15951
15953
|
return (
|
|
15952
15954
|
/*bonus*/
|
|
15953
|
-
r[55].type === "freeRound" ?
|
|
15955
|
+
r[55].type === "freeRound" ? Rc : zc
|
|
15954
15956
|
);
|
|
15955
15957
|
}
|
|
15956
15958
|
let i = e(s), o = i(s);
|
|
15957
15959
|
return {
|
|
15958
15960
|
c() {
|
|
15959
|
-
o.c(), t =
|
|
15961
|
+
o.c(), t = Ys();
|
|
15960
15962
|
},
|
|
15961
15963
|
m(r, n) {
|
|
15962
15964
|
o.m(r, n), Z(r, t, n);
|
|
@@ -15969,18 +15971,18 @@ function Rs(s) {
|
|
|
15969
15971
|
}
|
|
15970
15972
|
};
|
|
15971
15973
|
}
|
|
15972
|
-
function
|
|
15974
|
+
function $s(s) {
|
|
15973
15975
|
let t, e, i, o, r, n, a, l, d, c, u, h, f, m, v, y, P, A, S, O = gt(Array(
|
|
15974
15976
|
/*numberOfPages*/
|
|
15975
15977
|
s[17]
|
|
15976
15978
|
)), b = [];
|
|
15977
|
-
for (let
|
|
15978
|
-
b[
|
|
15979
|
+
for (let k = 0; k < O.length; k += 1)
|
|
15980
|
+
b[k] = Vs(zs(s, O, k));
|
|
15979
15981
|
return {
|
|
15980
15982
|
c() {
|
|
15981
15983
|
t = T("div"), e = T("span"), i = j("|<"), r = $(), n = T("span"), a = j("<"), d = $();
|
|
15982
|
-
for (let
|
|
15983
|
-
b[
|
|
15984
|
+
for (let k = 0; k < b.length; k += 1)
|
|
15985
|
+
b[k].c();
|
|
15984
15986
|
c = $(), u = T("span"), h = j(">"), m = $(), v = T("span"), y = j(">|"), w(e, "class", o = "BonusesFirst " + /*currentPage*/
|
|
15985
15987
|
(s[18] === 0 ? "Inactive" : "")), w(n, "class", l = "BonusesPrev " + /*currentPage*/
|
|
15986
15988
|
(s[18] === 0 ? "Inactive" : "")), w(u, "class", f = "BonusesNext " + /*currentPage*/
|
|
@@ -15990,10 +15992,10 @@ function Hs(s) {
|
|
|
15990
15992
|
s[17] - 1 ? "Inactive" : "")), w(t, "class", "BonusesPaginationWrapper " + /*isMobile*/
|
|
15991
15993
|
(s[24] ? "BonusesPaginationWrapperMobile" : ""));
|
|
15992
15994
|
},
|
|
15993
|
-
m(
|
|
15994
|
-
Z(
|
|
15995
|
-
for (let
|
|
15996
|
-
b[
|
|
15995
|
+
m(k, M) {
|
|
15996
|
+
Z(k, t, M), g(t, e), g(e, i), g(t, r), g(t, n), g(n, a), g(t, d);
|
|
15997
|
+
for (let D = 0; D < b.length; D += 1)
|
|
15998
|
+
b[D] && b[D].m(t, null);
|
|
15997
15999
|
g(t, c), g(t, u), g(u, h), g(t, m), g(t, v), g(v, y), A || (S = [
|
|
15998
16000
|
me(
|
|
15999
16001
|
e,
|
|
@@ -16021,40 +16023,40 @@ function Hs(s) {
|
|
|
16021
16023
|
)
|
|
16022
16024
|
], A = !0);
|
|
16023
16025
|
},
|
|
16024
|
-
p(
|
|
16026
|
+
p(k, M) {
|
|
16025
16027
|
if (M[0] & /*currentPage*/
|
|
16026
16028
|
262144 && o !== (o = "BonusesFirst " + /*currentPage*/
|
|
16027
|
-
(
|
|
16029
|
+
(k[18] === 0 ? "Inactive" : "")) && w(e, "class", o), M[0] & /*currentPage*/
|
|
16028
16030
|
262144 && l !== (l = "BonusesPrev " + /*currentPage*/
|
|
16029
|
-
(
|
|
16031
|
+
(k[18] === 0 ? "Inactive" : "")) && w(n, "class", l), M[0] & /*currentPage, getBonuses, bonushistorystatus, bonushistorytype, numberOfPages*/
|
|
16030
16032
|
134611040) {
|
|
16031
16033
|
O = gt(Array(
|
|
16032
16034
|
/*numberOfPages*/
|
|
16033
|
-
|
|
16035
|
+
k[17]
|
|
16034
16036
|
));
|
|
16035
|
-
let
|
|
16036
|
-
for (
|
|
16037
|
-
const G =
|
|
16038
|
-
b[
|
|
16037
|
+
let D;
|
|
16038
|
+
for (D = 0; D < O.length; D += 1) {
|
|
16039
|
+
const G = zs(k, O, D);
|
|
16040
|
+
b[D] ? b[D].p(G, M) : (b[D] = Vs(G), b[D].c(), b[D].m(t, c));
|
|
16039
16041
|
}
|
|
16040
|
-
for (;
|
|
16041
|
-
b[
|
|
16042
|
+
for (; D < b.length; D += 1)
|
|
16043
|
+
b[D].d(1);
|
|
16042
16044
|
b.length = O.length;
|
|
16043
16045
|
}
|
|
16044
16046
|
M[0] & /*currentPage, numberOfPages*/
|
|
16045
16047
|
393216 && f !== (f = "BonusesNext " + /*currentPage*/
|
|
16046
|
-
(
|
|
16047
|
-
|
|
16048
|
+
(k[18] === /*numberOfPages*/
|
|
16049
|
+
k[17] - 1 ? "Inactive" : "")) && w(u, "class", f), M[0] & /*currentPage, numberOfPages*/
|
|
16048
16050
|
393216 && P !== (P = "BonusesLast " + /*currentPage*/
|
|
16049
|
-
(
|
|
16050
|
-
|
|
16051
|
+
(k[18] === /*numberOfPages*/
|
|
16052
|
+
k[17] - 1 ? "Inactive" : "")) && w(v, "class", P);
|
|
16051
16053
|
},
|
|
16052
|
-
d(
|
|
16053
|
-
|
|
16054
|
+
d(k) {
|
|
16055
|
+
k && Q(t), Us(b, k), A = !1, Yr(S);
|
|
16054
16056
|
}
|
|
16055
16057
|
};
|
|
16056
16058
|
}
|
|
16057
|
-
function
|
|
16059
|
+
function Vs(s) {
|
|
16058
16060
|
let t, e = (
|
|
16059
16061
|
/*i*/
|
|
16060
16062
|
s[54] + 1 + ""
|
|
@@ -16088,10 +16090,10 @@ function $s(s) {
|
|
|
16088
16090
|
}
|
|
16089
16091
|
};
|
|
16090
16092
|
}
|
|
16091
|
-
function
|
|
16093
|
+
function Hc(s) {
|
|
16092
16094
|
let t;
|
|
16093
16095
|
function e(r, n) {
|
|
16094
|
-
return
|
|
16096
|
+
return Nc;
|
|
16095
16097
|
}
|
|
16096
16098
|
let o = e()(s);
|
|
16097
16099
|
return {
|
|
@@ -16104,31 +16106,31 @@ function Rc(s) {
|
|
|
16104
16106
|
p(r, n) {
|
|
16105
16107
|
o.p(r, n);
|
|
16106
16108
|
},
|
|
16107
|
-
i:
|
|
16108
|
-
o:
|
|
16109
|
+
i: Gi,
|
|
16110
|
+
o: Gi,
|
|
16109
16111
|
d(r) {
|
|
16110
16112
|
r && Q(t), o.d(), s[41](null);
|
|
16111
16113
|
}
|
|
16112
16114
|
};
|
|
16113
16115
|
}
|
|
16114
16116
|
let ie = 6;
|
|
16115
|
-
function
|
|
16117
|
+
function $c(s, t, e) {
|
|
16116
16118
|
let i;
|
|
16117
|
-
|
|
16118
|
-
let { endpoint: o = "" } = t, { session: r = "" } = t, { playerid: n = "" } = t, { lang: a = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: d = "" } = t, { mbsource: c } = t, { translationurl: u = "" } = t, { bonushistorystatus: h = "" } = t, { bonushistorytype: f = "" } = t, { currencylocale: m = "" } = t, { currency: v = "" } = t, y, P = window.navigator.userAgent, A =
|
|
16119
|
+
zr(s, Wr, (_) => e(23, i = _));
|
|
16120
|
+
let { endpoint: o = "" } = t, { session: r = "" } = t, { playerid: n = "" } = t, { lang: a = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: d = "" } = t, { mbsource: c } = t, { translationurl: u = "" } = t, { bonushistorystatus: h = "" } = t, { bonushistorytype: f = "" } = t, { currencylocale: m = "" } = t, { currency: v = "" } = t, y, P = window.navigator.userAgent, A = Rr(P) !== "PC", S, O;
|
|
16119
16121
|
const b = dt(/* @__PURE__ */ new Date(), "yyyy-MM-dd");
|
|
16120
|
-
let M = dt(
|
|
16122
|
+
let M = dt(Hr(/* @__PURE__ */ new Date(), 3), "yyyy-MM-dd"), D = b, G = !0, ne = 0, Ae = 0, te = 0, Ee = 0, Pe = 0, De = [], X = "", Ve = "", he = "";
|
|
16121
16123
|
const V = () => {
|
|
16122
16124
|
fetch(u).then((U) => U.json()).then((U) => {
|
|
16123
16125
|
Object.keys(U).forEach((Ue) => {
|
|
16124
|
-
|
|
16126
|
+
Xi(Ue, U[Ue]);
|
|
16125
16127
|
});
|
|
16126
16128
|
}).catch((U) => {
|
|
16127
16129
|
console.log(U);
|
|
16128
16130
|
});
|
|
16129
16131
|
};
|
|
16130
|
-
Object.keys(
|
|
16131
|
-
|
|
16132
|
+
Object.keys(Ji).forEach((_) => {
|
|
16133
|
+
Xi(_, Ji[_]);
|
|
16132
16134
|
});
|
|
16133
16135
|
const L = () => {
|
|
16134
16136
|
window.postMessage(
|
|
@@ -16139,18 +16141,18 @@ function Hc(s, t, e) {
|
|
|
16139
16141
|
window.location.href
|
|
16140
16142
|
);
|
|
16141
16143
|
}, E = (_, U, Ue) => {
|
|
16142
|
-
let It = new URL(`${o}/v1/player/${n}/bonusWallet`), kr = dt(
|
|
16143
|
-
U && (
|
|
16144
|
-
let
|
|
16144
|
+
let It = new URL(`${o}/v1/player/${n}/bonusWallet`), kr = dt(Vr(new Date(M)), "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"), Tr = dt(Ur(new Date(D)), "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"), pe = "", qi = "", Ki = "";
|
|
16145
|
+
U && (qi = U.split(",").map((ae) => `status=${ae}`).join(","), pe = pe + qi + ","), Ue && (Ki = Ue.split(",").map((ae) => `type=${ae}`).join(","), pe = pe + Ki + ","), pe = pe + `granted=[${kr}~${Tr}]`, It.searchParams.append("filter", pe), It.searchParams.append("pagination", `offset=${_},limit=${ie}`);
|
|
16146
|
+
let Sr = {
|
|
16145
16147
|
method: "GET",
|
|
16146
16148
|
headers: { "X-SessionId": r }
|
|
16147
16149
|
};
|
|
16148
|
-
fetch(It.href,
|
|
16150
|
+
fetch(It.href, Sr).then((q) => q.json()).then(
|
|
16149
16151
|
(q) => {
|
|
16150
16152
|
Array.isArray(q.items) && q.items.forEach((Y) => {
|
|
16151
16153
|
const ae = Y?.extension?.bonus?.presentation;
|
|
16152
16154
|
ae && (e(20, X = ae.url), e(22, he = ae.description), e(21, Ve = ae.assets));
|
|
16153
|
-
}), e(17, Ee = Math.ceil(q.total / ie)), _ - ie >= 0 && e(14, ne = _ - ie), _ + ie < q.total && e(15, Ae = _ + ie), e(16, te = (Ee - 1) * ie), e(18, Pe = _ / ie), e(19,
|
|
16155
|
+
}), e(17, Ee = Math.ceil(q.total / ie)), _ - ie >= 0 && e(14, ne = _ - ie), _ + ie < q.total && e(15, Ae = _ + ie), e(16, te = (Ee - 1) * ie), e(18, Pe = _ / ie), e(19, De = q?.items || []), m && De.forEach((Y) => {
|
|
16154
16156
|
Y.fulfilledWR = N(Y.fulfilledWR), Y.originalWageringRequirement = N(Y.originalWageringRequirement), Y.currentAmount = N(Y.currentAmount), Y.extension.grantedPlayerCurrencyAmount = N(Y.extension.grantedPlayerCurrencyAmount);
|
|
16155
16157
|
});
|
|
16156
16158
|
},
|
|
@@ -16158,34 +16160,34 @@ function Hc(s, t, e) {
|
|
|
16158
16160
|
console.error(q);
|
|
16159
16161
|
}
|
|
16160
16162
|
), window.postMessage({ type: "ScrollToTop" }, window.location.href);
|
|
16161
|
-
}, N = (_) => new Intl.NumberFormat(m, { style: "currency", currency: v }).format(_).replace(/\s/g, ""),
|
|
16163
|
+
}, N = (_) => new Intl.NumberFormat(m, { style: "currency", currency: v }).format(_).replace(/\s/g, ""), Wi = (_) => {
|
|
16162
16164
|
e(11, M = _.target.value);
|
|
16163
|
-
},
|
|
16164
|
-
e(12,
|
|
16165
|
-
}, fr = () => {
|
|
16166
|
-
const _ = new Date(M), U = new Date(k);
|
|
16167
|
-
_.getTime() > U.getTime() ? e(13, G = !1) : e(13, G = !0);
|
|
16165
|
+
}, ji = (_) => {
|
|
16166
|
+
e(12, D = _.target.value);
|
|
16168
16167
|
}, mr = () => {
|
|
16169
|
-
|
|
16168
|
+
const _ = new Date(M), U = new Date(D);
|
|
16169
|
+
_.getTime() > U.getTime() ? e(13, G = !1) : e(13, G = !0);
|
|
16170
|
+
}, _r = () => {
|
|
16171
|
+
S.addEventListener("change", Wi, !1), O.addEventListener("change", ji, !1);
|
|
16170
16172
|
};
|
|
16171
|
-
|
|
16172
|
-
S.removeEventListener("change",
|
|
16173
|
+
$r(() => () => {
|
|
16174
|
+
S.removeEventListener("change", Wi), O.removeEventListener("change", ji);
|
|
16173
16175
|
});
|
|
16174
|
-
const
|
|
16175
|
-
|
|
16176
|
-
},
|
|
16177
|
-
function
|
|
16176
|
+
const gr = () => {
|
|
16177
|
+
Gr(a);
|
|
16178
|
+
}, yr = () => L();
|
|
16179
|
+
function br(_) {
|
|
16178
16180
|
Nt[_ ? "unshift" : "push"](() => {
|
|
16179
16181
|
S = _, e(9, S);
|
|
16180
16182
|
});
|
|
16181
16183
|
}
|
|
16182
|
-
function
|
|
16184
|
+
function vr(_) {
|
|
16183
16185
|
Nt[_ ? "unshift" : "push"](() => {
|
|
16184
16186
|
O = _, e(10, O);
|
|
16185
16187
|
});
|
|
16186
16188
|
}
|
|
16187
|
-
const
|
|
16188
|
-
function
|
|
16189
|
+
const wr = () => E(0, h, f), xr = () => E(0, h, f), Cr = () => E(ne, h, f), Ar = (_) => E(_ * ie, h, f), Er = () => E(Ae, h, f), Pr = () => E(te, h, f);
|
|
16190
|
+
function Dr(_) {
|
|
16189
16191
|
Nt[_ ? "unshift" : "push"](() => {
|
|
16190
16192
|
y = _, e(8, y);
|
|
16191
16193
|
});
|
|
@@ -16194,13 +16196,13 @@ function Hc(s, t, e) {
|
|
|
16194
16196
|
"endpoint" in _ && e(28, o = _.endpoint), "session" in _ && e(29, r = _.session), "playerid" in _ && e(30, n = _.playerid), "lang" in _ && e(0, a = _.lang), "clientstyling" in _ && e(1, l = _.clientstyling), "clientstylingurl" in _ && e(2, d = _.clientstylingurl), "mbsource" in _ && e(3, c = _.mbsource), "translationurl" in _ && e(4, u = _.translationurl), "bonushistorystatus" in _ && e(5, h = _.bonushistorystatus), "bonushistorytype" in _ && e(6, f = _.bonushistorytype), "currencylocale" in _ && e(7, m = _.currencylocale), "currency" in _ && e(31, v = _.currency);
|
|
16195
16197
|
}, s.$$.update = () => {
|
|
16196
16198
|
s.$$.dirty[0] & /*lang*/
|
|
16197
|
-
1 && a &&
|
|
16198
|
-
1536 && S && O &&
|
|
16199
|
-
6144 && M &&
|
|
16199
|
+
1 && a && gr(), s.$$.dirty[0] & /*startCalendar, endCalendar*/
|
|
16200
|
+
1536 && S && O && _r(), s.$$.dirty[0] & /*bonusCalendarStartDate, bonusCalendarEndDate*/
|
|
16201
|
+
6144 && M && D && mr(), s.$$.dirty[0] & /*session, playerid, endpoint, bonushistorystatus, bonushistorytype*/
|
|
16200
16202
|
1879048288 && r && n && o && E(0, h, f), s.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
16201
|
-
258 && l && y &&
|
|
16202
|
-
260 && d && y &&
|
|
16203
|
-
264 && c && y &&
|
|
16203
|
+
258 && l && y && jr(y, l), s.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
16204
|
+
260 && d && y && qr(y, d), s.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
16205
|
+
264 && c && y && Kr(y, `${c}.Style`), s.$$.dirty[0] & /*translationurl*/
|
|
16204
16206
|
16 && u && V();
|
|
16205
16207
|
}, [
|
|
16206
16208
|
a,
|
|
@@ -16215,14 +16217,14 @@ function Hc(s, t, e) {
|
|
|
16215
16217
|
S,
|
|
16216
16218
|
O,
|
|
16217
16219
|
M,
|
|
16218
|
-
|
|
16220
|
+
D,
|
|
16219
16221
|
G,
|
|
16220
16222
|
ne,
|
|
16221
16223
|
Ae,
|
|
16222
16224
|
te,
|
|
16223
16225
|
Ee,
|
|
16224
16226
|
Pe,
|
|
16225
|
-
|
|
16227
|
+
De,
|
|
16226
16228
|
X,
|
|
16227
16229
|
Ve,
|
|
16228
16230
|
he,
|
|
@@ -16235,7 +16237,6 @@ function Hc(s, t, e) {
|
|
|
16235
16237
|
r,
|
|
16236
16238
|
n,
|
|
16237
16239
|
v,
|
|
16238
|
-
gr,
|
|
16239
16240
|
yr,
|
|
16240
16241
|
br,
|
|
16241
16242
|
vr,
|
|
@@ -16244,17 +16245,18 @@ function Hc(s, t, e) {
|
|
|
16244
16245
|
Cr,
|
|
16245
16246
|
Ar,
|
|
16246
16247
|
Er,
|
|
16247
|
-
Pr
|
|
16248
|
+
Pr,
|
|
16249
|
+
Dr
|
|
16248
16250
|
];
|
|
16249
16251
|
}
|
|
16250
|
-
class
|
|
16252
|
+
class Vc extends Nr {
|
|
16251
16253
|
constructor(t) {
|
|
16252
|
-
super(),
|
|
16254
|
+
super(), Fr(
|
|
16253
16255
|
this,
|
|
16254
16256
|
t,
|
|
16257
|
+
$c,
|
|
16255
16258
|
Hc,
|
|
16256
|
-
|
|
16257
|
-
Fr,
|
|
16259
|
+
Br,
|
|
16258
16260
|
{
|
|
16259
16261
|
endpoint: 28,
|
|
16260
16262
|
session: 29,
|
|
@@ -16269,7 +16271,7 @@ class $c extends Ir {
|
|
|
16269
16271
|
currencylocale: 7,
|
|
16270
16272
|
currency: 31
|
|
16271
16273
|
},
|
|
16272
|
-
|
|
16274
|
+
Ic,
|
|
16273
16275
|
[-1, -1]
|
|
16274
16276
|
);
|
|
16275
16277
|
}
|
|
@@ -16346,7 +16348,7 @@ class $c extends Ir {
|
|
|
16346
16348
|
this.$$set({ currency: t }), W();
|
|
16347
16349
|
}
|
|
16348
16350
|
}
|
|
16349
|
-
|
|
16351
|
+
Ir(Vc, { endpoint: {}, session: {}, playerid: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, bonushistorystatus: {}, bonushistorytype: {}, currencylocale: {}, currency: {} }, [], [], !0);
|
|
16350
16352
|
export {
|
|
16351
|
-
|
|
16353
|
+
Vc as P
|
|
16352
16354
|
};
|