@everymatrix/player-account-timeout 1.86.3 → 1.86.5
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/{PlayerAccountGeneralConfirmationModal-DamAh4bC.js → PlayerAccountGeneralConfirmationModal-BclGH0SY.js} +856 -835
- package/components/{PlayerAccountGeneralConfirmationModal-BYiYUP-W.js → PlayerAccountGeneralConfirmationModal-CpIVlBHH.js} +846 -825
- package/components/PlayerAccountGeneralConfirmationModal-Dw-0WM0v.cjs +18 -0
- package/components/{PlayerAccountTimeout-BIoh3D6t.js → PlayerAccountTimeout-0g-C74ue.js} +388 -389
- package/components/{PlayerAccountTimeout--yyguXTS.js → PlayerAccountTimeout-CF3uidhm.js} +752 -753
- package/components/{PlayerAccountTimeout-DYdWH7az.cjs → PlayerAccountTimeout-CqAaduHA.cjs} +74 -74
- package/es2015/player-account-timeout.cjs +1 -1
- package/es2015/player-account-timeout.js +1 -1
- package/esnext/player-account-timeout.js +1 -1
- package/package.json +1 -1
- package/stencil/index-b2193545-9K-aI7zC.cjs +1 -0
- package/stencil/index-b2193545-DsMHU6jb.js +519 -0
- package/stencil/index-b2193545-R7ZoV-kY.js +503 -0
- package/stencil/{ui-skeleton-C7KTfaPd.cjs → ui-skeleton-BreIU6e5.cjs} +1 -1
- package/stencil/{ui-skeleton-Cn9Rv2BY.js → ui-skeleton-W50o8tfg.js} +2 -2
- package/stencil/{ui-skeleton-ed169f8f-BA-lE0xf.js → ui-skeleton-ed169f8f-CVY4B-CP.js} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-cGTgZqRU.cjs → ui-skeleton-ed169f8f-CpiCXJrP.cjs} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-b70BXhTZ.js → ui-skeleton-ed169f8f-D3TjbVKy.js} +1 -1
- package/stencil/{ui-skeleton-YNoAIoec.js → ui-skeleton-xXZA3rYO.js} +2 -2
- package/components/PlayerAccountGeneralConfirmationModal-mQ-RU129.cjs +0 -18
- package/stencil/index-b2193545-CMoQ4Pov.js +0 -503
- package/stencil/index-b2193545-CQaBo5im.cjs +0 -1
- package/stencil/index-b2193545-DvP9W4Go.js +0 -519
|
@@ -2,15 +2,15 @@ var Dr = Object.defineProperty, kr = Object.defineProperties;
|
|
|
2
2
|
var Sr = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Xi = Object.getOwnPropertySymbols;
|
|
4
4
|
var Pr = Object.prototype.hasOwnProperty, Or = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Zi = (o, t, e) => t in o ? Dr(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e,
|
|
5
|
+
var Zi = (o, t, e) => t in o ? Dr(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e, Lt = (o, t) => {
|
|
6
6
|
for (var e in t || (t = {}))
|
|
7
7
|
Pr.call(t, e) && Zi(o, e, t[e]);
|
|
8
8
|
if (Xi)
|
|
9
9
|
for (var e of Xi(t))
|
|
10
10
|
Or.call(t, e) && Zi(o, e, t[e]);
|
|
11
11
|
return o;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
12
|
+
}, $t = (o, t) => kr(o, Sr(t));
|
|
13
|
+
var ft = (o, t, e) => new Promise((i, s) => {
|
|
14
14
|
var r = (l) => {
|
|
15
15
|
try {
|
|
16
16
|
a(e.next(l));
|
|
@@ -26,8 +26,8 @@ var pt = (o, t, e) => new Promise((i, s) => {
|
|
|
26
26
|
}, a = (l) => l.done ? i(l.value) : Promise.resolve(l.value).then(r, n);
|
|
27
27
|
a((e = e.apply(o, t)).next());
|
|
28
28
|
});
|
|
29
|
-
import { c as Mr, g as Ir, a as Nr, $ as Fr, S as zr, i as Lr, f as ae,
|
|
30
|
-
import "../stencil/ui-skeleton-
|
|
29
|
+
import { c as Mr, g as Ir, a as Nr, $ as Fr, S as zr, i as Lr, f as ae, s as $r, b as Rr, d as Hr, n as oi, e as re, h as ne, j as O, k as Br, l as Vr, o as Ur, m as jr, p as Qi, q as w, r as q, t as T, u as eo, v as z, w as to, x as Yr, y as Wr, z as Re, A as io, B as bt, C as De, D as qr, E as Kr, F as Me, G as oo, H as Gr, I as Jr, J as Xr, K as Zr } from "./PlayerAccountGeneralConfirmationModal-CpIVlBHH.js";
|
|
30
|
+
import "../stencil/ui-skeleton-xXZA3rYO.js";
|
|
31
31
|
/**
|
|
32
32
|
* @license
|
|
33
33
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
@@ -65,17 +65,17 @@ de(Qr);
|
|
|
65
65
|
* Copyright 2019 Google LLC
|
|
66
66
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
67
67
|
*/
|
|
68
|
-
const
|
|
69
|
-
let
|
|
68
|
+
const wt = globalThis, Di = wt.ShadowRoot && (wt.ShadyCSS === void 0 || wt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ki = Symbol(), so = /* @__PURE__ */ new WeakMap();
|
|
69
|
+
let Si = class {
|
|
70
70
|
constructor(t, e, i) {
|
|
71
|
-
if (this._$cssResult$ = !0, i !==
|
|
71
|
+
if (this._$cssResult$ = !0, i !== ki)
|
|
72
72
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
73
73
|
this.cssText = t, this.t = e;
|
|
74
74
|
}
|
|
75
75
|
get styleSheet() {
|
|
76
76
|
let t = this.o;
|
|
77
77
|
const e = this.t;
|
|
78
|
-
if (
|
|
78
|
+
if (Di && t === void 0) {
|
|
79
79
|
const i = e !== void 0 && e.length === 1;
|
|
80
80
|
i && (t = so.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && so.set(e, t));
|
|
81
81
|
}
|
|
@@ -85,7 +85,7 @@ let ki = class {
|
|
|
85
85
|
return this.cssText;
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
|
-
const en = (o) => new
|
|
88
|
+
const en = (o) => new Si(typeof o == "string" ? o : o + "", void 0, ki), k = (o, ...t) => {
|
|
89
89
|
const e = o.length === 1 ? o[0] : t.reduce((i, s, r) => i + ((n) => {
|
|
90
90
|
if (n._$cssResult$ === !0)
|
|
91
91
|
return n.cssText;
|
|
@@ -93,16 +93,16 @@ const en = (o) => new ki(typeof o == "string" ? o : o + "", void 0, Di), k = (o,
|
|
|
93
93
|
return n;
|
|
94
94
|
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.");
|
|
95
95
|
})(s) + o[r + 1], o[0]);
|
|
96
|
-
return new
|
|
96
|
+
return new Si(e, o, ki);
|
|
97
97
|
}, os = (o, t) => {
|
|
98
|
-
if (
|
|
98
|
+
if (Di)
|
|
99
99
|
o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
100
100
|
else
|
|
101
101
|
for (const e of t) {
|
|
102
|
-
const i = document.createElement("style"), s =
|
|
102
|
+
const i = document.createElement("style"), s = wt.litNonce;
|
|
103
103
|
s !== void 0 && i.setAttribute("nonce", s), i.textContent = e.cssText, o.appendChild(i);
|
|
104
104
|
}
|
|
105
|
-
}, ro =
|
|
105
|
+
}, ro = Di ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
|
|
106
106
|
let e = "";
|
|
107
107
|
for (const i of t.cssRules)
|
|
108
108
|
e += i.cssText;
|
|
@@ -113,7 +113,7 @@ const en = (o) => new ki(typeof o == "string" ? o : o + "", void 0, Di), k = (o,
|
|
|
113
113
|
* Copyright 2017 Google LLC
|
|
114
114
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
115
115
|
*/
|
|
116
|
-
const { is: tn, defineProperty: on, getOwnPropertyDescriptor: sn, getOwnPropertyNames: rn, getOwnPropertySymbols: nn, getPrototypeOf: an } = Object, ge = globalThis, no = ge.trustedTypes, ln = no ? no.emptyScript : "",
|
|
116
|
+
const { is: tn, defineProperty: on, getOwnPropertyDescriptor: sn, getOwnPropertyNames: rn, getOwnPropertySymbols: nn, getPrototypeOf: an } = Object, ge = globalThis, no = ge.trustedTypes, ln = no ? no.emptyScript : "", Rt = ge.reactiveElementPolyfillSupport, et = (o, t) => o, si = { toAttribute(o, t) {
|
|
117
117
|
switch (t) {
|
|
118
118
|
case Boolean:
|
|
119
119
|
o = o ? ln : null;
|
|
@@ -141,10 +141,10 @@ const { is: tn, defineProperty: on, getOwnPropertyDescriptor: sn, getOwnProperty
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
return e;
|
|
144
|
-
} }, ss = (o, t) => !tn(o, t), ao = { attribute: !0, type: String, converter:
|
|
144
|
+
} }, ss = (o, t) => !tn(o, t), ao = { attribute: !0, type: String, converter: si, reflect: !1, useDefault: !1, hasChanged: ss };
|
|
145
145
|
var Xo, Zo;
|
|
146
146
|
(Xo = Symbol.metadata) != null || (Symbol.metadata = Symbol("metadata")), (Zo = ge.litPropertyMetadata) != null || (ge.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
147
|
-
class
|
|
147
|
+
class Ne extends HTMLElement {
|
|
148
148
|
static addInitializer(t) {
|
|
149
149
|
var e;
|
|
150
150
|
this._$Ei(), ((e = this.l) != null ? e : this.l = []).push(t);
|
|
@@ -153,7 +153,7 @@ class Ie extends HTMLElement {
|
|
|
153
153
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
154
154
|
}
|
|
155
155
|
static createProperty(t, e = ao) {
|
|
156
|
-
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
156
|
+
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) {
|
|
157
157
|
const i = Symbol(), s = this.getPropertyDescriptor(t, i, e);
|
|
158
158
|
s !== void 0 && on(this.prototype, t, s);
|
|
159
159
|
}
|
|
@@ -165,11 +165,9 @@ class Ie extends HTMLElement {
|
|
|
165
165
|
}, set(a) {
|
|
166
166
|
this[e] = a;
|
|
167
167
|
} };
|
|
168
|
-
return { get() {
|
|
169
|
-
return s == null ? void 0 : s.call(this);
|
|
170
|
-
}, set(a) {
|
|
168
|
+
return { get: s, set(a) {
|
|
171
169
|
const l = s == null ? void 0 : s.call(this);
|
|
172
|
-
r.call(this, a), this.requestUpdate(t, l, i);
|
|
170
|
+
r == null || r.call(this, a), this.requestUpdate(t, l, i);
|
|
173
171
|
}, configurable: !0, enumerable: !0 };
|
|
174
172
|
}
|
|
175
173
|
static getPropertyOptions(t) {
|
|
@@ -177,15 +175,15 @@ class Ie extends HTMLElement {
|
|
|
177
175
|
return (e = this.elementProperties.get(t)) != null ? e : ao;
|
|
178
176
|
}
|
|
179
177
|
static _$Ei() {
|
|
180
|
-
if (this.hasOwnProperty(
|
|
178
|
+
if (this.hasOwnProperty(et("elementProperties")))
|
|
181
179
|
return;
|
|
182
180
|
const t = an(this);
|
|
183
181
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
184
182
|
}
|
|
185
183
|
static finalize() {
|
|
186
|
-
if (this.hasOwnProperty(
|
|
184
|
+
if (this.hasOwnProperty(et("finalized")))
|
|
187
185
|
return;
|
|
188
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
186
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(et("properties"))) {
|
|
189
187
|
const e = this.properties, i = [...rn(e), ...nn(e)];
|
|
190
188
|
for (const s of i)
|
|
191
189
|
this.createProperty(s, e[s]);
|
|
@@ -263,37 +261,40 @@ class Ie extends HTMLElement {
|
|
|
263
261
|
attributeChangedCallback(t, e, i) {
|
|
264
262
|
this._$AK(t, i);
|
|
265
263
|
}
|
|
266
|
-
_$
|
|
264
|
+
_$ET(t, e) {
|
|
267
265
|
var r;
|
|
268
266
|
const i = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, i);
|
|
269
267
|
if (s !== void 0 && i.reflect === !0) {
|
|
270
|
-
const n = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter :
|
|
268
|
+
const n = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : si).toAttribute(e, i.type);
|
|
271
269
|
this._$Em = t, n == null ? this.removeAttribute(s) : this.setAttribute(s, n), this._$Em = null;
|
|
272
270
|
}
|
|
273
271
|
}
|
|
274
272
|
_$AK(t, e) {
|
|
275
|
-
var r;
|
|
273
|
+
var r, n, a;
|
|
276
274
|
const i = this.constructor, s = i._$Eh.get(t);
|
|
277
275
|
if (s !== void 0 && this._$Em !== s) {
|
|
278
|
-
const
|
|
279
|
-
this._$Em = s
|
|
276
|
+
const l = i.getPropertyOptions(s), d = typeof l.converter == "function" ? { fromAttribute: l.converter } : ((r = l.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? l.converter : si;
|
|
277
|
+
this._$Em = s;
|
|
278
|
+
const u = d.fromAttribute(e, l.type);
|
|
279
|
+
this[s] = (a = u != null ? u : (n = this._$Ej) == null ? void 0 : n.get(s)) != null ? a : u, this._$Em = null;
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
requestUpdate(t, e, i) {
|
|
283
|
-
var s;
|
|
283
|
+
var s, r;
|
|
284
284
|
if (t !== void 0) {
|
|
285
|
-
|
|
285
|
+
const n = this.constructor, a = this[t];
|
|
286
|
+
if (i != null || (i = n.getPropertyOptions(t)), !(((s = i.hasChanged) != null ? s : ss)(a, e) || i.useDefault && i.reflect && a === ((r = this._$Ej) == null ? void 0 : r.get(t)) && !this.hasAttribute(n._$Eu(t, i))))
|
|
286
287
|
return;
|
|
287
|
-
this.
|
|
288
|
+
this.C(t, e, i);
|
|
288
289
|
}
|
|
289
|
-
this.isUpdatePending === !1 && (this._$ES = this._$
|
|
290
|
+
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
290
291
|
}
|
|
291
|
-
|
|
292
|
-
var
|
|
293
|
-
this._$AL.has(t) || this._$AL.set(t, e),
|
|
292
|
+
C(t, e, { useDefault: i, reflect: s, wrapped: r }, n) {
|
|
293
|
+
var a, l, d;
|
|
294
|
+
i && !((a = this._$Ej) != null ? a : this._$Ej = /* @__PURE__ */ new Map()).has(t) && (this._$Ej.set(t, (l = n != null ? n : e) != null ? l : this[t]), r !== !0 || n !== void 0) || (this._$AL.has(t) || (this.hasUpdated || i || (e = void 0), this._$AL.set(t, e)), s === !0 && this._$Em !== t && ((d = this._$Eq) != null ? d : this._$Eq = /* @__PURE__ */ new Set()).add(t));
|
|
294
295
|
}
|
|
295
|
-
_$
|
|
296
|
-
return
|
|
296
|
+
_$EP() {
|
|
297
|
+
return ft(this, null, function* () {
|
|
297
298
|
this.isUpdatePending = !0;
|
|
298
299
|
try {
|
|
299
300
|
yield this._$ES;
|
|
@@ -319,8 +320,10 @@ class Ie extends HTMLElement {
|
|
|
319
320
|
}
|
|
320
321
|
const r = this.constructor.elementProperties;
|
|
321
322
|
if (r.size > 0)
|
|
322
|
-
for (const [n, a] of r)
|
|
323
|
-
|
|
323
|
+
for (const [n, a] of r) {
|
|
324
|
+
const { wrapped: l } = a, d = this[n];
|
|
325
|
+
l !== !0 || this._$AL.has(n) || d === void 0 || this.C(n, void 0, a, d);
|
|
326
|
+
}
|
|
324
327
|
}
|
|
325
328
|
let t = !1;
|
|
326
329
|
const e = this._$AL;
|
|
@@ -328,9 +331,9 @@ class Ie extends HTMLElement {
|
|
|
328
331
|
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((r) => {
|
|
329
332
|
var n;
|
|
330
333
|
return (n = r.hostUpdate) == null ? void 0 : n.call(r);
|
|
331
|
-
}), this.update(e)) : this._$
|
|
334
|
+
}), this.update(e)) : this._$EM();
|
|
332
335
|
} catch (r) {
|
|
333
|
-
throw t = !1, this._$
|
|
336
|
+
throw t = !1, this._$EM(), r;
|
|
334
337
|
}
|
|
335
338
|
t && this._$AE(e);
|
|
336
339
|
}
|
|
@@ -343,7 +346,7 @@ class Ie extends HTMLElement {
|
|
|
343
346
|
return (s = i.hostUpdated) == null ? void 0 : s.call(i);
|
|
344
347
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
345
348
|
}
|
|
346
|
-
_$
|
|
349
|
+
_$EM() {
|
|
347
350
|
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
|
348
351
|
}
|
|
349
352
|
get updateComplete() {
|
|
@@ -356,7 +359,7 @@ class Ie extends HTMLElement {
|
|
|
356
359
|
return !0;
|
|
357
360
|
}
|
|
358
361
|
update(t) {
|
|
359
|
-
this._$
|
|
362
|
+
this._$Eq && (this._$Eq = this._$Eq.forEach((e) => this._$ET(e, this[e]))), this._$EM();
|
|
360
363
|
}
|
|
361
364
|
updated(t) {
|
|
362
365
|
}
|
|
@@ -364,84 +367,84 @@ class Ie extends HTMLElement {
|
|
|
364
367
|
}
|
|
365
368
|
}
|
|
366
369
|
var Qo;
|
|
367
|
-
|
|
370
|
+
Ne.elementStyles = [], Ne.shadowRootOptions = { mode: "open" }, Ne[et("elementProperties")] = /* @__PURE__ */ new Map(), Ne[et("finalized")] = /* @__PURE__ */ new Map(), Rt == null || Rt({ ReactiveElement: Ne }), ((Qo = ge.reactiveElementVersions) != null ? Qo : ge.reactiveElementVersions = []).push("2.1.1");
|
|
368
371
|
/**
|
|
369
372
|
* @license
|
|
370
373
|
* Copyright 2017 Google LLC
|
|
371
374
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
372
375
|
*/
|
|
373
|
-
const
|
|
374
|
-
\f\r]`,
|
|
375
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), ho = /'/g, po = /"/g, as = /^(?:script|style|textarea|title)$/i,
|
|
376
|
+
const tt = globalThis, Ct = tt.trustedTypes, lo = Ct ? Ct.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, rs = "$lit$", _e = `lit$${Math.random().toFixed(9).slice(2)}$`, ns = "?" + _e, dn = `<${ns}>`, ke = document, ot = () => ke.createComment(""), st = (o) => o === null || typeof o != "object" && typeof o != "function", Pi = Array.isArray, un = (o) => Pi(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", Ht = `[
|
|
377
|
+
\f\r]`, qe = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, uo = /-->/g, co = />/g, we = RegExp(`>|${Ht}(?:([^\\s"'>=/]+)(${Ht}*=${Ht}*(?:[^
|
|
378
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), ho = /'/g, po = /"/g, as = /^(?:script|style|textarea|title)$/i, He = Symbol.for("lit-noChange"), W = Symbol.for("lit-nothing"), fo = /* @__PURE__ */ new WeakMap(), xe = ke.createTreeWalker(ke, 129);
|
|
376
379
|
function ls(o, t) {
|
|
377
|
-
if (!
|
|
380
|
+
if (!Pi(o) || !o.hasOwnProperty("raw"))
|
|
378
381
|
throw Error("invalid template strings array");
|
|
379
382
|
return lo !== void 0 ? lo.createHTML(t) : t;
|
|
380
383
|
}
|
|
381
|
-
const
|
|
384
|
+
const cn = (o, t) => {
|
|
382
385
|
const e = o.length - 1, i = [];
|
|
383
|
-
let s, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n =
|
|
386
|
+
let s, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = qe;
|
|
384
387
|
for (let a = 0; a < e; a++) {
|
|
385
388
|
const l = o[a];
|
|
386
|
-
let d,
|
|
387
|
-
for (; p < l.length && (n.lastIndex = p,
|
|
388
|
-
p = n.lastIndex, n ===
|
|
389
|
+
let d, u, c = -1, p = 0;
|
|
390
|
+
for (; p < l.length && (n.lastIndex = p, u = n.exec(l), u !== null); )
|
|
391
|
+
p = n.lastIndex, n === qe ? u[1] === "!--" ? n = uo : u[1] !== void 0 ? n = co : u[2] !== void 0 ? (as.test(u[2]) && (s = RegExp("</" + u[2], "g")), n = we) : u[3] !== void 0 && (n = we) : n === we ? u[0] === ">" ? (n = s != null ? s : qe, c = -1) : u[1] === void 0 ? c = -2 : (c = n.lastIndex - u[2].length, d = u[1], n = u[3] === void 0 ? we : u[3] === '"' ? po : ho) : n === po || n === ho ? n = we : n === uo || n === co ? n = qe : (n = we, s = void 0);
|
|
389
392
|
const m = n === we && o[a + 1].startsWith("/>") ? " " : "";
|
|
390
|
-
r += n ===
|
|
393
|
+
r += n === qe ? l + dn : c >= 0 ? (i.push(d), l.slice(0, c) + rs + l.slice(c) + _e + m) : l + _e + (c === -2 ? a : m);
|
|
391
394
|
}
|
|
392
395
|
return [ls(o, r + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
|
393
396
|
};
|
|
394
|
-
class
|
|
397
|
+
class rt {
|
|
395
398
|
constructor({ strings: t, _$litType$: e }, i) {
|
|
396
399
|
let s;
|
|
397
400
|
this.parts = [];
|
|
398
401
|
let r = 0, n = 0;
|
|
399
|
-
const a = t.length - 1, l = this.parts, [d,
|
|
400
|
-
if (this.el =
|
|
401
|
-
const
|
|
402
|
-
|
|
402
|
+
const a = t.length - 1, l = this.parts, [d, u] = cn(t, e);
|
|
403
|
+
if (this.el = rt.createElement(d, i), xe.currentNode = this.el.content, e === 2 || e === 3) {
|
|
404
|
+
const c = this.el.content.firstChild;
|
|
405
|
+
c.replaceWith(...c.childNodes);
|
|
403
406
|
}
|
|
404
407
|
for (; (s = xe.nextNode()) !== null && l.length < a; ) {
|
|
405
408
|
if (s.nodeType === 1) {
|
|
406
409
|
if (s.hasAttributes())
|
|
407
|
-
for (const
|
|
408
|
-
if (
|
|
409
|
-
const p =
|
|
410
|
-
l.push({ type: 1, index: r, name: _[2], strings: m, ctor: _[1] === "." ? pn : _[1] === "?" ? fn : _[1] === "@" ? mn :
|
|
410
|
+
for (const c of s.getAttributeNames())
|
|
411
|
+
if (c.endsWith(rs)) {
|
|
412
|
+
const p = u[n++], m = s.getAttribute(c).split(_e), _ = /([.?@])?(.*)/.exec(p);
|
|
413
|
+
l.push({ type: 1, index: r, name: _[2], strings: m, ctor: _[1] === "." ? pn : _[1] === "?" ? fn : _[1] === "@" ? mn : Ot }), s.removeAttribute(c);
|
|
411
414
|
} else
|
|
412
|
-
|
|
415
|
+
c.startsWith(_e) && (l.push({ type: 6, index: r }), s.removeAttribute(c));
|
|
413
416
|
if (as.test(s.tagName)) {
|
|
414
|
-
const
|
|
417
|
+
const c = s.textContent.split(_e), p = c.length - 1;
|
|
415
418
|
if (p > 0) {
|
|
416
|
-
s.textContent =
|
|
419
|
+
s.textContent = Ct ? Ct.emptyScript : "";
|
|
417
420
|
for (let m = 0; m < p; m++)
|
|
418
|
-
s.append(
|
|
419
|
-
s.append(
|
|
421
|
+
s.append(c[m], ot()), xe.nextNode(), l.push({ type: 2, index: ++r });
|
|
422
|
+
s.append(c[p], ot());
|
|
420
423
|
}
|
|
421
424
|
}
|
|
422
425
|
} else if (s.nodeType === 8)
|
|
423
426
|
if (s.data === ns)
|
|
424
427
|
l.push({ type: 2, index: r });
|
|
425
428
|
else {
|
|
426
|
-
let
|
|
427
|
-
for (; (
|
|
428
|
-
l.push({ type: 7, index: r }),
|
|
429
|
+
let c = -1;
|
|
430
|
+
for (; (c = s.data.indexOf(_e, c + 1)) !== -1; )
|
|
431
|
+
l.push({ type: 7, index: r }), c += _e.length - 1;
|
|
429
432
|
}
|
|
430
433
|
r++;
|
|
431
434
|
}
|
|
432
435
|
}
|
|
433
436
|
static createElement(t, e) {
|
|
434
|
-
const i =
|
|
437
|
+
const i = ke.createElement("template");
|
|
435
438
|
return i.innerHTML = t, i;
|
|
436
439
|
}
|
|
437
440
|
}
|
|
438
|
-
function
|
|
441
|
+
function Be(o, t, e = o, i) {
|
|
439
442
|
var n, a, l;
|
|
440
|
-
if (t ===
|
|
443
|
+
if (t === He)
|
|
441
444
|
return t;
|
|
442
445
|
let s = i !== void 0 ? (n = e._$Co) == null ? void 0 : n[i] : e._$Cl;
|
|
443
|
-
const r =
|
|
444
|
-
return (s == null ? void 0 : s.constructor) !== r && ((a = s == null ? void 0 : s._$AO) == null || a.call(s, !1), r === void 0 ? s = void 0 : (s = new r(o), s._$AT(o, e, i)), i !== void 0 ? ((l = e._$Co) != null ? l : e._$Co = [])[i] = s : e._$Cl = s), s !== void 0 && (t =
|
|
446
|
+
const r = st(t) ? void 0 : t._$litDirective$;
|
|
447
|
+
return (s == null ? void 0 : s.constructor) !== r && ((a = s == null ? void 0 : s._$AO) == null || a.call(s, !1), r === void 0 ? s = void 0 : (s = new r(o), s._$AT(o, e, i)), i !== void 0 ? ((l = e._$Co) != null ? l : e._$Co = [])[i] = s : e._$Cl = s), s !== void 0 && (t = Be(o, s._$AS(o, t.values), s, i)), t;
|
|
445
448
|
}
|
|
446
449
|
class hn {
|
|
447
450
|
constructor(t, e) {
|
|
@@ -455,17 +458,17 @@ class hn {
|
|
|
455
458
|
}
|
|
456
459
|
u(t) {
|
|
457
460
|
var d;
|
|
458
|
-
const { el: { content: e }, parts: i } = this._$AD, s = ((d = t == null ? void 0 : t.creationScope) != null ? d :
|
|
461
|
+
const { el: { content: e }, parts: i } = this._$AD, s = ((d = t == null ? void 0 : t.creationScope) != null ? d : ke).importNode(e, !0);
|
|
459
462
|
xe.currentNode = s;
|
|
460
463
|
let r = xe.nextNode(), n = 0, a = 0, l = i[0];
|
|
461
464
|
for (; l !== void 0; ) {
|
|
462
465
|
if (n === l.index) {
|
|
463
|
-
let
|
|
464
|
-
l.type === 2 ?
|
|
466
|
+
let u;
|
|
467
|
+
l.type === 2 ? u = new ht(r, r.nextSibling, this, t) : l.type === 1 ? u = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (u = new _n(r, this, t)), this._$AV.push(u), l = i[++a];
|
|
465
468
|
}
|
|
466
469
|
n !== (l == null ? void 0 : l.index) && (r = xe.nextNode(), n++);
|
|
467
470
|
}
|
|
468
|
-
return xe.currentNode =
|
|
471
|
+
return xe.currentNode = ke, s;
|
|
469
472
|
}
|
|
470
473
|
p(t) {
|
|
471
474
|
let e = 0;
|
|
@@ -473,7 +476,7 @@ class hn {
|
|
|
473
476
|
i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
|
|
474
477
|
}
|
|
475
478
|
}
|
|
476
|
-
class
|
|
479
|
+
class ht {
|
|
477
480
|
get _$AU() {
|
|
478
481
|
var t, e;
|
|
479
482
|
return (e = (t = this._$AM) == null ? void 0 : t._$AU) != null ? e : this._$Cv;
|
|
@@ -494,7 +497,7 @@ class ut {
|
|
|
494
497
|
return this._$AB;
|
|
495
498
|
}
|
|
496
499
|
_$AI(t, e = this) {
|
|
497
|
-
t =
|
|
500
|
+
t = Be(this, t, e), st(t) ? t === W || t == null || t === "" ? (this._$AH !== W && this._$AR(), this._$AH = W) : t !== this._$AH && t !== He && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : un(t) ? this.k(t) : this._(t);
|
|
498
501
|
}
|
|
499
502
|
O(t) {
|
|
500
503
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -503,11 +506,11 @@ class ut {
|
|
|
503
506
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
504
507
|
}
|
|
505
508
|
_(t) {
|
|
506
|
-
this._$AH !== W &&
|
|
509
|
+
this._$AH !== W && st(this._$AH) ? this._$AA.nextSibling.data = t : this.T(ke.createTextNode(t)), this._$AH = t;
|
|
507
510
|
}
|
|
508
511
|
$(t) {
|
|
509
512
|
var r;
|
|
510
|
-
const { values: e, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el =
|
|
513
|
+
const { values: e, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = rt.createElement(ls(i.h, i.h[0]), this.options)), i);
|
|
511
514
|
if (((r = this._$AH) == null ? void 0 : r._$AD) === s)
|
|
512
515
|
this._$AH.p(e);
|
|
513
516
|
else {
|
|
@@ -517,19 +520,19 @@ class ut {
|
|
|
517
520
|
}
|
|
518
521
|
_$AC(t) {
|
|
519
522
|
let e = fo.get(t.strings);
|
|
520
|
-
return e === void 0 && fo.set(t.strings, e = new
|
|
523
|
+
return e === void 0 && fo.set(t.strings, e = new rt(t)), e;
|
|
521
524
|
}
|
|
522
525
|
k(t) {
|
|
523
|
-
|
|
526
|
+
Pi(this._$AH) || (this._$AH = [], this._$AR());
|
|
524
527
|
const e = this._$AH;
|
|
525
528
|
let i, s = 0;
|
|
526
529
|
for (const r of t)
|
|
527
|
-
s === e.length ? e.push(i = new
|
|
530
|
+
s === e.length ? e.push(i = new ht(this.O(ot()), this.O(ot()), this, this.options)) : i = e[s], i._$AI(r), s++;
|
|
528
531
|
s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
|
|
529
532
|
}
|
|
530
533
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
531
534
|
var i;
|
|
532
|
-
for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t
|
|
535
|
+
for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t !== this._$AB; ) {
|
|
533
536
|
const s = t.nextSibling;
|
|
534
537
|
t.remove(), t = s;
|
|
535
538
|
}
|
|
@@ -539,7 +542,7 @@ class ut {
|
|
|
539
542
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
|
540
543
|
}
|
|
541
544
|
}
|
|
542
|
-
class
|
|
545
|
+
class Ot {
|
|
543
546
|
get tagName() {
|
|
544
547
|
return this.element.tagName;
|
|
545
548
|
}
|
|
@@ -553,12 +556,12 @@ class Pt {
|
|
|
553
556
|
const r = this.strings;
|
|
554
557
|
let n = !1;
|
|
555
558
|
if (r === void 0)
|
|
556
|
-
t =
|
|
559
|
+
t = Be(this, t, e, 0), n = !st(t) || t !== this._$AH && t !== He, n && (this._$AH = t);
|
|
557
560
|
else {
|
|
558
561
|
const a = t;
|
|
559
562
|
let l, d;
|
|
560
563
|
for (t = r[0], l = 0; l < r.length - 1; l++)
|
|
561
|
-
d =
|
|
564
|
+
d = Be(this, a[i + l], e, l), d === He && (d = this._$AH[l]), n || (n = !st(d) || d !== this._$AH[l]), d === W ? t = W : t !== W && (t += (d != null ? d : "") + r[l + 1]), this._$AH[l] = d;
|
|
562
565
|
}
|
|
563
566
|
n && !s && this.j(t);
|
|
564
567
|
}
|
|
@@ -566,7 +569,7 @@ class Pt {
|
|
|
566
569
|
t === W ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t != null ? t : "");
|
|
567
570
|
}
|
|
568
571
|
}
|
|
569
|
-
class pn extends
|
|
572
|
+
class pn extends Ot {
|
|
570
573
|
constructor() {
|
|
571
574
|
super(...arguments), this.type = 3;
|
|
572
575
|
}
|
|
@@ -574,7 +577,7 @@ class pn extends Pt {
|
|
|
574
577
|
this.element[this.name] = t === W ? void 0 : t;
|
|
575
578
|
}
|
|
576
579
|
}
|
|
577
|
-
class fn extends
|
|
580
|
+
class fn extends Ot {
|
|
578
581
|
constructor() {
|
|
579
582
|
super(...arguments), this.type = 4;
|
|
580
583
|
}
|
|
@@ -582,13 +585,13 @@ class fn extends Pt {
|
|
|
582
585
|
this.element.toggleAttribute(this.name, !!t && t !== W);
|
|
583
586
|
}
|
|
584
587
|
}
|
|
585
|
-
class mn extends
|
|
588
|
+
class mn extends Ot {
|
|
586
589
|
constructor(t, e, i, s, r) {
|
|
587
590
|
super(t, e, i, s, r), this.type = 5;
|
|
588
591
|
}
|
|
589
592
|
_$AI(t, e = this) {
|
|
590
593
|
var n;
|
|
591
|
-
if ((t = (n =
|
|
594
|
+
if ((t = (n = Be(this, t, e, 0)) != null ? n : W) === He)
|
|
592
595
|
return;
|
|
593
596
|
const i = this._$AH, s = t === W && i !== W || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, r = t !== W && (i === W || s);
|
|
594
597
|
s && this.element.removeEventListener(this.name, this, i), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
@@ -606,19 +609,19 @@ class _n {
|
|
|
606
609
|
return this._$AM._$AU;
|
|
607
610
|
}
|
|
608
611
|
_$AI(t) {
|
|
609
|
-
|
|
612
|
+
Be(this, t);
|
|
610
613
|
}
|
|
611
614
|
}
|
|
612
|
-
const
|
|
615
|
+
const Bt = tt.litHtmlPolyfillSupport;
|
|
613
616
|
var es;
|
|
614
|
-
|
|
617
|
+
Bt == null || Bt(rt, ht), ((es = tt.litHtmlVersions) != null ? es : tt.litHtmlVersions = []).push("3.3.1");
|
|
615
618
|
const gn = (o, t, e) => {
|
|
616
619
|
var r, n;
|
|
617
620
|
const i = (r = e == null ? void 0 : e.renderBefore) != null ? r : t;
|
|
618
621
|
let s = i._$litPart$;
|
|
619
622
|
if (s === void 0) {
|
|
620
623
|
const a = (n = e == null ? void 0 : e.renderBefore) != null ? n : null;
|
|
621
|
-
i._$litPart$ = s = new
|
|
624
|
+
i._$litPart$ = s = new ht(t.insertBefore(ot(), a), a, void 0, e != null ? e : {});
|
|
622
625
|
}
|
|
623
626
|
return s._$AI(o), s;
|
|
624
627
|
};
|
|
@@ -627,7 +630,8 @@ const gn = (o, t, e) => {
|
|
|
627
630
|
* Copyright 2017 Google LLC
|
|
628
631
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
629
632
|
*/
|
|
630
|
-
|
|
633
|
+
const Te = globalThis;
|
|
634
|
+
class Fe extends Ne {
|
|
631
635
|
constructor() {
|
|
632
636
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
633
637
|
}
|
|
@@ -649,15 +653,15 @@ class Ne extends Ie {
|
|
|
649
653
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
|
650
654
|
}
|
|
651
655
|
render() {
|
|
652
|
-
return
|
|
656
|
+
return He;
|
|
653
657
|
}
|
|
654
658
|
}
|
|
655
659
|
var ts;
|
|
656
|
-
|
|
657
|
-
const
|
|
658
|
-
|
|
660
|
+
Fe._$litElement$ = !0, Fe.finalized = !0, (ts = Te.litElementHydrateSupport) == null || ts.call(Te, { LitElement: Fe });
|
|
661
|
+
const Vt = Te.litElementPolyfillSupport;
|
|
662
|
+
Vt == null || Vt({ LitElement: Fe });
|
|
659
663
|
var is;
|
|
660
|
-
((is =
|
|
664
|
+
((is = Te.litElementVersions) != null ? is : Te.litElementVersions = []).push("4.2.1");
|
|
661
665
|
/**
|
|
662
666
|
* @license
|
|
663
667
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
@@ -702,53 +706,53 @@ const yn = (o) => class extends o {
|
|
|
702
706
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
703
707
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
704
708
|
*/
|
|
705
|
-
const ds = [],
|
|
706
|
-
function
|
|
709
|
+
const ds = [], ri = /* @__PURE__ */ new Set(), Oi = /* @__PURE__ */ new Set();
|
|
710
|
+
function us(o) {
|
|
707
711
|
return o && Object.prototype.hasOwnProperty.call(o, "__themes");
|
|
708
712
|
}
|
|
709
713
|
function vn(o) {
|
|
710
|
-
return
|
|
714
|
+
return us(customElements.get(o));
|
|
711
715
|
}
|
|
712
716
|
function bn(o = []) {
|
|
713
|
-
return [o].flat(1 / 0).filter((t) => t instanceof
|
|
717
|
+
return [o].flat(1 / 0).filter((t) => t instanceof Si ? !0 : (console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."), !1));
|
|
714
718
|
}
|
|
715
|
-
function
|
|
719
|
+
function cs(o, t) {
|
|
716
720
|
return (o || "").split(" ").some((e) => new RegExp(`^${e.split("*").join(".*")}$`, "u").test(t));
|
|
717
721
|
}
|
|
718
722
|
function hs(o) {
|
|
719
723
|
return o.map((t) => t.cssText).join(`
|
|
720
724
|
`);
|
|
721
725
|
}
|
|
722
|
-
const
|
|
726
|
+
const At = "vaadin-themable-mixin-style";
|
|
723
727
|
function wn(o, t) {
|
|
724
728
|
const e = document.createElement("style");
|
|
725
|
-
e.id =
|
|
729
|
+
e.id = At, e.textContent = hs(o), t.content.appendChild(e);
|
|
726
730
|
}
|
|
727
731
|
function xn(o) {
|
|
728
732
|
if (!o.shadowRoot)
|
|
729
733
|
return;
|
|
730
734
|
const t = o.constructor;
|
|
731
|
-
if (o instanceof
|
|
735
|
+
if (o instanceof Fe)
|
|
732
736
|
[...o.shadowRoot.querySelectorAll("style")].forEach((e) => e.remove()), os(o.shadowRoot, t.elementStyles);
|
|
733
737
|
else {
|
|
734
|
-
const e = o.shadowRoot.getElementById(
|
|
735
|
-
e.textContent = i.content.getElementById(
|
|
738
|
+
const e = o.shadowRoot.getElementById(At), i = t.prototype._template;
|
|
739
|
+
e.textContent = i.content.getElementById(At).textContent;
|
|
736
740
|
}
|
|
737
741
|
}
|
|
738
742
|
function Cn(o) {
|
|
739
|
-
|
|
743
|
+
ri.forEach((t) => {
|
|
740
744
|
const e = t.deref();
|
|
741
|
-
e instanceof o ? xn(e) : e ||
|
|
745
|
+
e instanceof o ? xn(e) : e || ri.delete(t);
|
|
742
746
|
});
|
|
743
747
|
}
|
|
744
748
|
function ps(o) {
|
|
745
|
-
if (o.prototype instanceof
|
|
749
|
+
if (o.prototype instanceof Fe)
|
|
746
750
|
o.elementStyles = o.finalizeStyles(o.styles);
|
|
747
751
|
else {
|
|
748
752
|
const t = o.prototype._template;
|
|
749
|
-
t.content.getElementById(
|
|
753
|
+
t.content.getElementById(At).textContent = hs(o.getStylesForThis());
|
|
750
754
|
}
|
|
751
|
-
|
|
755
|
+
Oi.forEach((t) => {
|
|
752
756
|
const e = customElements.get(t);
|
|
753
757
|
e !== o && e.prototype instanceof o && ps(e);
|
|
754
758
|
});
|
|
@@ -765,8 +769,8 @@ function B(o, t, e = {}) {
|
|
|
765
769
|
styles: t,
|
|
766
770
|
include: e.include,
|
|
767
771
|
moduleId: e.moduleId
|
|
768
|
-
}), o &&
|
|
769
|
-
if (
|
|
772
|
+
}), o && Oi.forEach((i) => {
|
|
773
|
+
if (cs(o, i) && vn(i)) {
|
|
770
774
|
const s = customElements.get(i);
|
|
771
775
|
An(s, t) ? console.warn(`Registering styles that already exist for ${i}`) : (!window.Vaadin || !window.Vaadin.suppressPostFinalizeStylesWarning) && console.warn(
|
|
772
776
|
`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".`
|
|
@@ -774,7 +778,7 @@ function B(o, t, e = {}) {
|
|
|
774
778
|
}
|
|
775
779
|
});
|
|
776
780
|
}
|
|
777
|
-
function
|
|
781
|
+
function ni() {
|
|
778
782
|
return window.Vaadin && window.Vaadin.styleModules ? window.Vaadin.styleModules.getAllThemes() : ds;
|
|
779
783
|
}
|
|
780
784
|
function Tn(o = "") {
|
|
@@ -784,32 +788,32 @@ function Tn(o = "") {
|
|
|
784
788
|
function fs(o) {
|
|
785
789
|
const t = [];
|
|
786
790
|
return o.include && [].concat(o.include).forEach((e) => {
|
|
787
|
-
const i =
|
|
791
|
+
const i = ni().find((s) => s.moduleId === e);
|
|
788
792
|
i ? t.push(...fs(i), ...i.styles) : console.warn(`Included moduleId ${e} not found in style registry`);
|
|
789
793
|
}, o.styles), t;
|
|
790
794
|
}
|
|
791
795
|
function En(o) {
|
|
792
|
-
const t = `${o}-default-theme`, e =
|
|
796
|
+
const t = `${o}-default-theme`, e = ni().filter((i) => i.moduleId !== t && cs(i.themeFor, o)).map((i) => $t(Lt({}, i), {
|
|
793
797
|
// Prepend styles from included themes
|
|
794
798
|
styles: [...fs(i), ...i.styles],
|
|
795
799
|
// Map moduleId to includePriority
|
|
796
800
|
includePriority: Tn(i.moduleId)
|
|
797
801
|
})).sort((i, s) => s.includePriority - i.includePriority);
|
|
798
|
-
return e.length > 0 ? e :
|
|
802
|
+
return e.length > 0 ? e : ni().filter((i) => i.moduleId === t);
|
|
799
803
|
}
|
|
800
|
-
const
|
|
804
|
+
const Se = (o) => class extends yn(o) {
|
|
801
805
|
constructor() {
|
|
802
|
-
super(),
|
|
806
|
+
super(), ri.add(new WeakRef(this));
|
|
803
807
|
}
|
|
804
808
|
/**
|
|
805
809
|
* Covers PolymerElement based component styling
|
|
806
810
|
* @protected
|
|
807
811
|
*/
|
|
808
812
|
static finalize() {
|
|
809
|
-
if (super.finalize(), this.is &&
|
|
813
|
+
if (super.finalize(), this.is && Oi.add(this.is), this.elementStyles)
|
|
810
814
|
return;
|
|
811
815
|
const e = this.prototype._template;
|
|
812
|
-
!e ||
|
|
816
|
+
!e || us(this) || wn(this.getStylesForThis(), e);
|
|
813
817
|
}
|
|
814
818
|
/**
|
|
815
819
|
* Covers LitElement based component styling
|
|
@@ -841,7 +845,7 @@ const Dn = (o, ...t) => {
|
|
|
841
845
|
const e = document.createElement("style");
|
|
842
846
|
e.id = o, e.textContent = t.map((i) => i.toString()).join(`
|
|
843
847
|
`).replace(":host", "html"), document.head.insertAdjacentElement("afterbegin", e);
|
|
844
|
-
},
|
|
848
|
+
}, je = (o, ...t) => {
|
|
845
849
|
Dn(`lumo-${o}`, t);
|
|
846
850
|
};
|
|
847
851
|
/**
|
|
@@ -865,7 +869,7 @@ const kn = k`
|
|
|
865
869
|
--lumo-icon-size: var(--lumo-icon-size-m);
|
|
866
870
|
}
|
|
867
871
|
`;
|
|
868
|
-
|
|
872
|
+
je("sizing-props", kn);
|
|
869
873
|
/**
|
|
870
874
|
* @license
|
|
871
875
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
@@ -895,7 +899,7 @@ const Sn = k`
|
|
|
895
899
|
--lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
|
|
896
900
|
}
|
|
897
901
|
`;
|
|
898
|
-
|
|
902
|
+
je("spacing-props", Sn);
|
|
899
903
|
/**
|
|
900
904
|
* @license
|
|
901
905
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
@@ -1003,7 +1007,7 @@ k`
|
|
|
1003
1007
|
--vaadin-input-field-value-font-weight: 500;
|
|
1004
1008
|
}
|
|
1005
1009
|
`;
|
|
1006
|
-
|
|
1010
|
+
je("style-props", Pn);
|
|
1007
1011
|
/**
|
|
1008
1012
|
* @license
|
|
1009
1013
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
@@ -1095,7 +1099,7 @@ const On = k`
|
|
|
1095
1099
|
}
|
|
1096
1100
|
}
|
|
1097
1101
|
`;
|
|
1098
|
-
|
|
1102
|
+
je("color-props", On);
|
|
1099
1103
|
const Mn = k`
|
|
1100
1104
|
[theme~='dark'] {
|
|
1101
1105
|
/* Base (background) */
|
|
@@ -1335,7 +1339,7 @@ const In = k`
|
|
|
1335
1339
|
}
|
|
1336
1340
|
`;
|
|
1337
1341
|
B("", Nn, { moduleId: "lumo-typography" });
|
|
1338
|
-
|
|
1342
|
+
je("typography-props", In);
|
|
1339
1343
|
/**
|
|
1340
1344
|
* @license
|
|
1341
1345
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
@@ -2414,7 +2418,7 @@ const $n = k`
|
|
|
2414
2418
|
--lumo-icons-user: '\\ea2a';
|
|
2415
2419
|
}
|
|
2416
2420
|
`;
|
|
2417
|
-
|
|
2421
|
+
je("font-icons", $n);
|
|
2418
2422
|
/**
|
|
2419
2423
|
* @license
|
|
2420
2424
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
@@ -2815,19 +2819,19 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
2815
2819
|
Code distributed by Google as part of the polymer project is also
|
|
2816
2820
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2817
2821
|
*/
|
|
2818
|
-
let Vn = /(url\()([^)]*)(\))/g, Un = /(^\/[^\/])|(^#)|(^[\w-\d]*:)/,
|
|
2819
|
-
function
|
|
2822
|
+
let Vn = /(url\()([^)]*)(\))/g, Un = /(^\/[^\/])|(^#)|(^[\w-\d]*:)/, mt, te;
|
|
2823
|
+
function it(o, t) {
|
|
2820
2824
|
if (o && Un.test(o) || o === "//")
|
|
2821
2825
|
return o;
|
|
2822
|
-
if (
|
|
2823
|
-
|
|
2826
|
+
if (mt === void 0) {
|
|
2827
|
+
mt = !1;
|
|
2824
2828
|
try {
|
|
2825
2829
|
const e = new URL("b", "http://a");
|
|
2826
|
-
e.pathname = "c%20d",
|
|
2830
|
+
e.pathname = "c%20d", mt = e.href === "http://a/c%20d";
|
|
2827
2831
|
} catch (e) {
|
|
2828
2832
|
}
|
|
2829
2833
|
}
|
|
2830
|
-
if (t || (t = document.baseURI || window.location.href),
|
|
2834
|
+
if (t || (t = document.baseURI || window.location.href), mt)
|
|
2831
2835
|
try {
|
|
2832
2836
|
return new URL(o, t).href;
|
|
2833
2837
|
} catch (e) {
|
|
@@ -2835,12 +2839,12 @@ function tt(o, t) {
|
|
|
2835
2839
|
}
|
|
2836
2840
|
return te || (te = document.implementation.createHTMLDocument("temp"), te.base = te.createElement("base"), te.head.appendChild(te.base), te.anchor = te.createElement("a"), te.body.appendChild(te.anchor)), te.base.href = t, te.anchor.href = o, te.anchor.href || o;
|
|
2837
2841
|
}
|
|
2838
|
-
function
|
|
2842
|
+
function Mi(o, t) {
|
|
2839
2843
|
return o.replace(Vn, function(e, i, s, r) {
|
|
2840
|
-
return i + "'" +
|
|
2844
|
+
return i + "'" + it(s.replace(/["']/g, ""), t) + "'" + r;
|
|
2841
2845
|
});
|
|
2842
2846
|
}
|
|
2843
|
-
function
|
|
2847
|
+
function Ii(o) {
|
|
2844
2848
|
return o.substring(0, o.lastIndexOf("/") + 1);
|
|
2845
2849
|
}
|
|
2846
2850
|
/**
|
|
@@ -2865,9 +2869,9 @@ const jn = ws && "adoptedStyleSheets" in Document.prototype && "replaceSync" in
|
|
|
2865
2869
|
return !1;
|
|
2866
2870
|
}
|
|
2867
2871
|
})();
|
|
2868
|
-
let Yn = window.Polymer && window.Polymer.rootPath ||
|
|
2872
|
+
let Yn = window.Polymer && window.Polymer.rootPath || Ii(document.baseURI || window.location.href), Tt = window.Polymer && window.Polymer.sanitizeDOMValue || void 0;
|
|
2869
2873
|
window.Polymer && window.Polymer.setPassiveTouchGestures;
|
|
2870
|
-
let
|
|
2874
|
+
let Et = window.Polymer && window.Polymer.strictTemplatePolicy || !1, Wn = window.Polymer && window.Polymer.allowTemplateFromDomModule || !1, xs = window.Polymer && window.Polymer.legacyOptimizations || !1, Cs = window.Polymer && window.Polymer.legacyWarnings || !1, qn = window.Polymer && window.Polymer.syncInitialRender || !1, ai = window.Polymer && window.Polymer.legacyUndefined || !1, Kn = window.Polymer && window.Polymer.orderedComputed || !1, mo = window.Polymer && window.Polymer.removeNestedTemplates || !1, Gn = window.Polymer && window.Polymer.fastDomIf || !1, _o = window.Polymer && window.Polymer.suppressTemplateNotifications || !1;
|
|
2871
2875
|
window.Polymer && window.Polymer.legacyNoObservedAttributes;
|
|
2872
2876
|
let Jn = window.Polymer && window.Polymer.useAdoptedStyleSheetsWithBuiltCSS || !1;
|
|
2873
2877
|
/**
|
|
@@ -2917,17 +2921,17 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
2917
2921
|
Code distributed by Google as part of the polymer project is also
|
|
2918
2922
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
2919
2923
|
*/
|
|
2920
|
-
let
|
|
2924
|
+
let Ni = {}, As = {};
|
|
2921
2925
|
function go(o, t) {
|
|
2922
|
-
|
|
2926
|
+
Ni[o] = As[o.toLowerCase()] = t;
|
|
2923
2927
|
}
|
|
2924
2928
|
function yo(o) {
|
|
2925
|
-
return
|
|
2929
|
+
return Ni[o] || As[o.toLowerCase()];
|
|
2926
2930
|
}
|
|
2927
2931
|
function Zn(o) {
|
|
2928
2932
|
o.querySelector("style") && console.warn("dom-module %s has style outside template", o.id);
|
|
2929
2933
|
}
|
|
2930
|
-
class
|
|
2934
|
+
class nt extends HTMLElement {
|
|
2931
2935
|
/** @override */
|
|
2932
2936
|
static get observedAttributes() {
|
|
2933
2937
|
return ["id"];
|
|
@@ -2976,11 +2980,11 @@ class rt extends HTMLElement {
|
|
|
2976
2980
|
*/
|
|
2977
2981
|
get assetpath() {
|
|
2978
2982
|
if (!this.__assetpath) {
|
|
2979
|
-
const t = window.HTMLImports && HTMLImports.importForElement ? HTMLImports.importForElement(this) || document : this.ownerDocument, e =
|
|
2983
|
+
const t = window.HTMLImports && HTMLImports.importForElement ? HTMLImports.importForElement(this) || document : this.ownerDocument, e = it(
|
|
2980
2984
|
this.getAttribute("assetpath") || "",
|
|
2981
2985
|
t.baseURI
|
|
2982
2986
|
);
|
|
2983
|
-
this.__assetpath =
|
|
2987
|
+
this.__assetpath = Ii(e);
|
|
2984
2988
|
}
|
|
2985
2989
|
return this.__assetpath;
|
|
2986
2990
|
}
|
|
@@ -2993,14 +2997,14 @@ class rt extends HTMLElement {
|
|
|
2993
2997
|
*/
|
|
2994
2998
|
register(t) {
|
|
2995
2999
|
if (t = t || this.id, t) {
|
|
2996
|
-
if (
|
|
3000
|
+
if (Et && yo(t) !== void 0)
|
|
2997
3001
|
throw go(t, null), new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);
|
|
2998
3002
|
this.id = t, go(t, this), Zn(this);
|
|
2999
3003
|
}
|
|
3000
3004
|
}
|
|
3001
3005
|
}
|
|
3002
|
-
|
|
3003
|
-
customElements.define("dom-module",
|
|
3006
|
+
nt.prototype.modules = Ni;
|
|
3007
|
+
customElements.define("dom-module", nt);
|
|
3004
3008
|
/**
|
|
3005
3009
|
@license
|
|
3006
3010
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -3014,12 +3018,12 @@ const Qn = "link[rel=import][type~=css]", ea = "include", vo = "shady-unscoped";
|
|
|
3014
3018
|
function Ts(o) {
|
|
3015
3019
|
return (
|
|
3016
3020
|
/** @type {?DomModule} */
|
|
3017
|
-
|
|
3021
|
+
nt.import(o)
|
|
3018
3022
|
);
|
|
3019
3023
|
}
|
|
3020
3024
|
function bo(o) {
|
|
3021
3025
|
let t = o.body ? o.body : o;
|
|
3022
|
-
const e =
|
|
3026
|
+
const e = Mi(
|
|
3023
3027
|
t.textContent,
|
|
3024
3028
|
o.baseURI
|
|
3025
3029
|
), i = document.createElement("style");
|
|
@@ -3057,7 +3061,7 @@ function Es(o, t) {
|
|
|
3057
3061
|
let r = i[s], n = r.getAttribute(ea);
|
|
3058
3062
|
n && e.push(...ta(n).filter(function(a, l, d) {
|
|
3059
3063
|
return d.indexOf(a) === l;
|
|
3060
|
-
})), t && (r.textContent =
|
|
3064
|
+
})), t && (r.textContent = Mi(
|
|
3061
3065
|
r.textContent,
|
|
3062
3066
|
/** @type {string} */
|
|
3063
3067
|
t
|
|
@@ -3106,26 +3110,26 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
3106
3110
|
Code distributed by Google as part of the polymer project is also
|
|
3107
3111
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3108
3112
|
*/
|
|
3109
|
-
function
|
|
3113
|
+
function li(o) {
|
|
3110
3114
|
return o.indexOf(".") >= 0;
|
|
3111
3115
|
}
|
|
3112
|
-
function
|
|
3116
|
+
function Pe(o) {
|
|
3113
3117
|
let t = o.indexOf(".");
|
|
3114
3118
|
return t === -1 ? o : o.slice(0, t);
|
|
3115
3119
|
}
|
|
3116
3120
|
function ks(o, t) {
|
|
3117
3121
|
return o.indexOf(t + ".") === 0;
|
|
3118
3122
|
}
|
|
3119
|
-
function
|
|
3123
|
+
function at(o, t) {
|
|
3120
3124
|
return t.indexOf(o + ".") === 0;
|
|
3121
3125
|
}
|
|
3122
|
-
function
|
|
3126
|
+
function lt(o, t, e) {
|
|
3123
3127
|
return t + e.slice(o.length);
|
|
3124
3128
|
}
|
|
3125
3129
|
function sa(o, t) {
|
|
3126
|
-
return o === t || ks(o, t) ||
|
|
3130
|
+
return o === t || ks(o, t) || at(o, t);
|
|
3127
3131
|
}
|
|
3128
|
-
function
|
|
3132
|
+
function Ze(o) {
|
|
3129
3133
|
if (Array.isArray(o)) {
|
|
3130
3134
|
let t = [];
|
|
3131
3135
|
for (let e = 0; e < o.length; e++) {
|
|
@@ -3138,7 +3142,7 @@ function Xe(o) {
|
|
|
3138
3142
|
return o;
|
|
3139
3143
|
}
|
|
3140
3144
|
function Ss(o) {
|
|
3141
|
-
return Array.isArray(o) ?
|
|
3145
|
+
return Array.isArray(o) ? Ze(o).split(".") : o.toString().split(".");
|
|
3142
3146
|
}
|
|
3143
3147
|
function Z(o, t, e) {
|
|
3144
3148
|
let i = o, s = Ss(t);
|
|
@@ -3172,15 +3176,15 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
3172
3176
|
Code distributed by Google as part of the polymer project is also
|
|
3173
3177
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3174
3178
|
*/
|
|
3175
|
-
const
|
|
3179
|
+
const Dt = {}, ra = /-[a-z]/g, na = /([A-Z])/g;
|
|
3176
3180
|
function Ps(o) {
|
|
3177
|
-
return
|
|
3181
|
+
return Dt[o] || (Dt[o] = o.indexOf("-") < 0 ? o : o.replace(
|
|
3178
3182
|
ra,
|
|
3179
3183
|
(t) => t[1].toUpperCase()
|
|
3180
3184
|
));
|
|
3181
3185
|
}
|
|
3182
|
-
function
|
|
3183
|
-
return
|
|
3186
|
+
function Mt(o) {
|
|
3187
|
+
return Dt[o] || (Dt[o] = o.replace(na, "-$1").toLowerCase());
|
|
3184
3188
|
}
|
|
3185
3189
|
/**
|
|
3186
3190
|
@license
|
|
@@ -3191,13 +3195,13 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
3191
3195
|
Code distributed by Google as part of the polymer project is also
|
|
3192
3196
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3193
3197
|
*/
|
|
3194
|
-
let aa = 0, Os = 0,
|
|
3198
|
+
let aa = 0, Os = 0, ze = [], la = 0, di = !1, Ms = document.createTextNode("");
|
|
3195
3199
|
new window.MutationObserver(da).observe(Ms, { characterData: !0 });
|
|
3196
3200
|
function da() {
|
|
3197
|
-
|
|
3198
|
-
const o =
|
|
3201
|
+
di = !1;
|
|
3202
|
+
const o = ze.length;
|
|
3199
3203
|
for (let t = 0; t < o; t++) {
|
|
3200
|
-
let e =
|
|
3204
|
+
let e = ze[t];
|
|
3201
3205
|
if (e)
|
|
3202
3206
|
try {
|
|
3203
3207
|
e();
|
|
@@ -3207,9 +3211,9 @@ function da() {
|
|
|
3207
3211
|
});
|
|
3208
3212
|
}
|
|
3209
3213
|
}
|
|
3210
|
-
|
|
3214
|
+
ze.splice(0, o), Os += o;
|
|
3211
3215
|
}
|
|
3212
|
-
const
|
|
3216
|
+
const ua = {
|
|
3213
3217
|
/**
|
|
3214
3218
|
* Returns a sub-module with the async interface providing the provided
|
|
3215
3219
|
* delay.
|
|
@@ -3258,7 +3262,7 @@ const ca = {
|
|
|
3258
3262
|
* @return {number} Handle used for canceling task
|
|
3259
3263
|
*/
|
|
3260
3264
|
run(o) {
|
|
3261
|
-
return
|
|
3265
|
+
return di || (di = !0, Ms.textContent = la++), ze.push(o), aa++;
|
|
3262
3266
|
},
|
|
3263
3267
|
/**
|
|
3264
3268
|
* Cancels a previously enqueued `microTask` callback.
|
|
@@ -3270,9 +3274,9 @@ const ca = {
|
|
|
3270
3274
|
cancel(o) {
|
|
3271
3275
|
const t = o - Os;
|
|
3272
3276
|
if (t >= 0) {
|
|
3273
|
-
if (!
|
|
3277
|
+
if (!ze[t])
|
|
3274
3278
|
throw new Error("invalid async handle: " + o);
|
|
3275
|
-
|
|
3279
|
+
ze[t] = null;
|
|
3276
3280
|
}
|
|
3277
3281
|
}
|
|
3278
3282
|
};
|
|
@@ -3285,7 +3289,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
3285
3289
|
Code distributed by Google as part of the polymer project is also
|
|
3286
3290
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3287
3291
|
*/
|
|
3288
|
-
const
|
|
3292
|
+
const ca = Is, Ns = j(
|
|
3289
3293
|
/**
|
|
3290
3294
|
* @template T
|
|
3291
3295
|
* @param {function(new:T)} superClass Class to apply mixin to.
|
|
@@ -3494,7 +3498,7 @@ const ua = Is, Ns = j(
|
|
|
3494
3498
|
* @override
|
|
3495
3499
|
*/
|
|
3496
3500
|
_invalidateProperties() {
|
|
3497
|
-
!this.__dataInvalid && this.__dataReady && (this.__dataInvalid = !0,
|
|
3501
|
+
!this.__dataInvalid && this.__dataReady && (this.__dataInvalid = !0, ca.run(() => {
|
|
3498
3502
|
this.__dataInvalid && (this.__dataInvalid = !1, this._flushProperties());
|
|
3499
3503
|
}));
|
|
3500
3504
|
}
|
|
@@ -3722,12 +3726,12 @@ Code distributed by Google as part of the polymer project is also
|
|
|
3722
3726
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
3723
3727
|
*/
|
|
3724
3728
|
const Fs = {};
|
|
3725
|
-
let
|
|
3726
|
-
for (;
|
|
3727
|
-
let o = Object.getOwnPropertyNames(
|
|
3729
|
+
let _t = HTMLElement.prototype;
|
|
3730
|
+
for (; _t; ) {
|
|
3731
|
+
let o = Object.getOwnPropertyNames(_t);
|
|
3728
3732
|
for (let t = 0; t < o.length; t++)
|
|
3729
3733
|
Fs[o[t]] = !0;
|
|
3730
|
-
|
|
3734
|
+
_t = Object.getPrototypeOf(_t);
|
|
3731
3735
|
}
|
|
3732
3736
|
const ha = window.trustedTypes ? (o) => trustedTypes.isHTML(o) || trustedTypes.isScript(o) || trustedTypes.isScriptURL(o) : () => !1;
|
|
3733
3737
|
function pa(o, t) {
|
|
@@ -3767,7 +3771,7 @@ const fa = j((o) => {
|
|
|
3767
3771
|
* @nocollapse
|
|
3768
3772
|
*/
|
|
3769
3773
|
static attributeNameForProperty(s) {
|
|
3770
|
-
return
|
|
3774
|
+
return Mt(s);
|
|
3771
3775
|
}
|
|
3772
3776
|
/**
|
|
3773
3777
|
* Overrides PropertiesChanged implementation to initialize values for
|
|
@@ -4165,9 +4169,9 @@ const Aa = j(
|
|
|
4165
4169
|
if (!(i.localName === "script" || i.localName === "style"))
|
|
4166
4170
|
for (let n = i.firstChild, a = 0, l; n; n = l) {
|
|
4167
4171
|
if (n.localName == "template" && (n = va(n)), l = n.nextSibling, n.nodeType === Node.TEXT_NODE) {
|
|
4168
|
-
let
|
|
4169
|
-
for (;
|
|
4170
|
-
n.textContent +=
|
|
4172
|
+
let u = l;
|
|
4173
|
+
for (; u && u.nodeType === Node.TEXT_NODE; )
|
|
4174
|
+
n.textContent += u.textContent, l = u.nextSibling, i.removeChild(u), u = l;
|
|
4171
4175
|
if (s.stripWhiteSpace && !n.textContent.trim()) {
|
|
4172
4176
|
i.removeChild(n);
|
|
4173
4177
|
continue;
|
|
@@ -4298,9 +4302,9 @@ const Aa = j(
|
|
|
4298
4302
|
a.__noInsertionPoint = !s.hasInsertionPoint;
|
|
4299
4303
|
let l = a.nodeList = new Array(r.length);
|
|
4300
4304
|
a.$ = {};
|
|
4301
|
-
for (let d = 0,
|
|
4302
|
-
let p = l[d] = zs(a,
|
|
4303
|
-
ba(this, a.$, p,
|
|
4305
|
+
for (let d = 0, u = r.length, c; d < u && (c = r[d]); d++) {
|
|
4306
|
+
let p = l[d] = zs(a, c);
|
|
4307
|
+
ba(this, a.$, p, c), xa(this, p, c, s), wa(this, p, c);
|
|
4304
4308
|
}
|
|
4305
4309
|
return a = /** @type {!StampedTemplate} */
|
|
4306
4310
|
a, a;
|
|
@@ -4363,8 +4367,8 @@ const Aa = j(
|
|
|
4363
4367
|
* Google as part of the polymer project is also subject to an additional IP
|
|
4364
4368
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
4365
4369
|
*/
|
|
4366
|
-
let
|
|
4367
|
-
const
|
|
4370
|
+
let dt = 0;
|
|
4371
|
+
const ut = [], P = {
|
|
4368
4372
|
COMPUTE: "__computeEffects",
|
|
4369
4373
|
REFLECT: "__reflectEffects",
|
|
4370
4374
|
NOTIFY: "__notifyEffects",
|
|
@@ -4372,7 +4376,7 @@ const dt = [], P = {
|
|
|
4372
4376
|
OBSERVE: "__observeEffects",
|
|
4373
4377
|
READ_ONLY: "__readOnly"
|
|
4374
4378
|
}, Ls = "__computeInfo", Ta = /[A-Z]/;
|
|
4375
|
-
function
|
|
4379
|
+
function Ut(o, t, e) {
|
|
4376
4380
|
let i = o[t];
|
|
4377
4381
|
if (!i)
|
|
4378
4382
|
i = o[t] = {};
|
|
@@ -4384,34 +4388,34 @@ function Vt(o, t, e) {
|
|
|
4384
4388
|
}
|
|
4385
4389
|
return i;
|
|
4386
4390
|
}
|
|
4387
|
-
function
|
|
4391
|
+
function Qe(o, t, e, i, s, r) {
|
|
4388
4392
|
if (t) {
|
|
4389
4393
|
let n = !1;
|
|
4390
|
-
const a =
|
|
4394
|
+
const a = dt++;
|
|
4391
4395
|
for (let l in e) {
|
|
4392
|
-
let d = s ?
|
|
4393
|
-
if (
|
|
4394
|
-
for (let
|
|
4395
|
-
(!m.info || m.info.lastRun !== a) && (!s ||
|
|
4396
|
+
let d = s ? Pe(l) : l, u = t[d];
|
|
4397
|
+
if (u)
|
|
4398
|
+
for (let c = 0, p = u.length, m; c < p && (m = u[c]); c++)
|
|
4399
|
+
(!m.info || m.info.lastRun !== a) && (!s || Fi(l, m.trigger)) && (m.info && (m.info.lastRun = a), m.fn(o, l, e, i, m.info, s, r), n = !0);
|
|
4396
4400
|
}
|
|
4397
4401
|
return n;
|
|
4398
4402
|
}
|
|
4399
4403
|
return !1;
|
|
4400
4404
|
}
|
|
4401
4405
|
function Ea(o, t, e, i, s, r, n, a) {
|
|
4402
|
-
let l = !1, d = n ?
|
|
4403
|
-
if (
|
|
4404
|
-
for (let
|
|
4405
|
-
(!m.info || m.info.lastRun !== e) && (!n ||
|
|
4406
|
+
let l = !1, d = n ? Pe(i) : i, u = t[d];
|
|
4407
|
+
if (u)
|
|
4408
|
+
for (let c = 0, p = u.length, m; c < p && (m = u[c]); c++)
|
|
4409
|
+
(!m.info || m.info.lastRun !== e) && (!n || Fi(i, m.trigger)) && (m.info && (m.info.lastRun = e), m.fn(o, i, s, r, m.info, n, a), l = !0);
|
|
4406
4410
|
return l;
|
|
4407
4411
|
}
|
|
4408
|
-
function
|
|
4412
|
+
function Fi(o, t) {
|
|
4409
4413
|
if (t) {
|
|
4410
4414
|
let e = (
|
|
4411
4415
|
/** @type {string} */
|
|
4412
4416
|
t.name
|
|
4413
4417
|
);
|
|
4414
|
-
return e == o || !!(t.structured && ks(e, o)) || !!(t.wildcard &&
|
|
4418
|
+
return e == o || !!(t.structured && ks(e, o)) || !!(t.wildcard && at(e, o));
|
|
4415
4419
|
} else
|
|
4416
4420
|
return !0;
|
|
4417
4421
|
}
|
|
@@ -4420,16 +4424,16 @@ function Ao(o, t, e, i, s) {
|
|
|
4420
4424
|
r ? r.call(o, o.__data[n], i[n]) : s.dynamicFn || console.warn("observer method `" + s.method + "` not defined");
|
|
4421
4425
|
}
|
|
4422
4426
|
function Da(o, t, e, i, s) {
|
|
4423
|
-
let r = o[P.NOTIFY], n, a =
|
|
4427
|
+
let r = o[P.NOTIFY], n, a = dt++;
|
|
4424
4428
|
for (let d in t)
|
|
4425
4429
|
t[d] && (r && Ea(o, r, a, d, e, i, s) || s && ka(o, d, e)) && (n = !0);
|
|
4426
4430
|
let l;
|
|
4427
4431
|
n && (l = o.__dataHost) && l._invalidateProperties && l._invalidateProperties();
|
|
4428
4432
|
}
|
|
4429
4433
|
function ka(o, t, e) {
|
|
4430
|
-
let i =
|
|
4434
|
+
let i = Pe(t);
|
|
4431
4435
|
if (i !== t) {
|
|
4432
|
-
let s =
|
|
4436
|
+
let s = Mt(i) + "-changed";
|
|
4433
4437
|
return $s(o, s, e[t], t), !0;
|
|
4434
4438
|
}
|
|
4435
4439
|
return !1;
|
|
@@ -4445,7 +4449,7 @@ function $s(o, t, e, i) {
|
|
|
4445
4449
|
).dispatchEvent(new CustomEvent(t, { detail: s }));
|
|
4446
4450
|
}
|
|
4447
4451
|
function Sa(o, t, e, i, s, r) {
|
|
4448
|
-
let a = (r ?
|
|
4452
|
+
let a = (r ? Pe(t) : t) != t ? t : null, l = a ? Z(o, a) : o.__data[t];
|
|
4449
4453
|
a && l === void 0 && (l = e[t]), $s(o, s.eventName, l, a);
|
|
4450
4454
|
}
|
|
4451
4455
|
function Pa(o, t, e, i, s) {
|
|
@@ -4453,11 +4457,11 @@ function Pa(o, t, e, i, s) {
|
|
|
4453
4457
|
/** @type {Object} */
|
|
4454
4458
|
o.detail
|
|
4455
4459
|
), a = n && n.path;
|
|
4456
|
-
a ? (i =
|
|
4460
|
+
a ? (i = lt(e, i, a), r = n && n.value) : r = o.currentTarget[e], r = s ? !r : r, (!t[P.READ_ONLY] || !t[P.READ_ONLY][i]) && t._setPendingPropertyOrPath(i, r, !0, !!a) && (!n || !n.queueProperty) && t._invalidateProperties();
|
|
4457
4461
|
}
|
|
4458
4462
|
function Oa(o, t, e, i, s) {
|
|
4459
4463
|
let r = o.__data[t];
|
|
4460
|
-
|
|
4464
|
+
Tt && (r = Tt(
|
|
4461
4465
|
r,
|
|
4462
4466
|
s.attrName,
|
|
4463
4467
|
"attribute",
|
|
@@ -4469,7 +4473,7 @@ function Ma(o, t, e, i) {
|
|
|
4469
4473
|
let s = o[P.COMPUTE];
|
|
4470
4474
|
if (s)
|
|
4471
4475
|
if (Kn) {
|
|
4472
|
-
|
|
4476
|
+
dt++;
|
|
4473
4477
|
const r = Na(o), n = [];
|
|
4474
4478
|
for (let l in t)
|
|
4475
4479
|
To(l, s, n, r, i);
|
|
@@ -4487,7 +4491,7 @@ function Ma(o, t, e, i) {
|
|
|
4487
4491
|
), o.__dataPending = null;
|
|
4488
4492
|
} else {
|
|
4489
4493
|
let r = t;
|
|
4490
|
-
for (;
|
|
4494
|
+
for (; Qe(o, s, r, e, i); )
|
|
4491
4495
|
Object.assign(
|
|
4492
4496
|
/** @type {!Object} */
|
|
4493
4497
|
e,
|
|
@@ -4514,11 +4518,11 @@ const Ia = (o, t, e) => {
|
|
|
4514
4518
|
}
|
|
4515
4519
|
r < 0 && (r = s + 1), t.splice(r, 0, o);
|
|
4516
4520
|
}, To = (o, t, e, i, s) => {
|
|
4517
|
-
const r = s ?
|
|
4521
|
+
const r = s ? Pe(o) : o, n = t[r];
|
|
4518
4522
|
if (n)
|
|
4519
4523
|
for (let a = 0; a < n.length; a++) {
|
|
4520
4524
|
const l = n[a];
|
|
4521
|
-
l.info.lastRun !==
|
|
4525
|
+
l.info.lastRun !== dt && (!s || Fi(o, l.trigger)) && (l.info.lastRun = dt, Ia(l.info, e, i));
|
|
4522
4526
|
}
|
|
4523
4527
|
};
|
|
4524
4528
|
function Na(o) {
|
|
@@ -4552,8 +4556,8 @@ function Fa(o) {
|
|
|
4552
4556
|
return { counts: e, ready: s, total: r };
|
|
4553
4557
|
}
|
|
4554
4558
|
function Rs(o, t, e, i, s) {
|
|
4555
|
-
let r =
|
|
4556
|
-
if (r ===
|
|
4559
|
+
let r = ui(o, t, e, i, s);
|
|
4560
|
+
if (r === ut)
|
|
4557
4561
|
return !1;
|
|
4558
4562
|
let n = s.methodInfo;
|
|
4559
4563
|
return o.__dataHasAccessor && o.__dataHasAccessor[n] ? o._setPendingProperty(n, r, !0) : (o[n] = r, !1);
|
|
@@ -4564,21 +4568,21 @@ function za(o, t, e) {
|
|
|
4564
4568
|
let s;
|
|
4565
4569
|
for (let r in i) {
|
|
4566
4570
|
let n = i[r];
|
|
4567
|
-
|
|
4571
|
+
at(r, t) ? (s = lt(r, n, t), o._setPendingPropertyOrPath(s, e, !0, !0)) : at(n, t) && (s = lt(n, r, t), o._setPendingPropertyOrPath(s, e, !0, !0));
|
|
4568
4572
|
}
|
|
4569
4573
|
}
|
|
4570
4574
|
}
|
|
4571
|
-
function
|
|
4575
|
+
function jt(o, t, e, i, s, r, n) {
|
|
4572
4576
|
e.bindings = e.bindings || [];
|
|
4573
4577
|
let a = { kind: i, target: s, parts: r, literal: n, isCompound: r.length !== 1 };
|
|
4574
4578
|
if (e.bindings.push(a), Ba(a)) {
|
|
4575
|
-
let { event: d, negate:
|
|
4576
|
-
a.listenerEvent = d ||
|
|
4579
|
+
let { event: d, negate: u } = a.parts[0];
|
|
4580
|
+
a.listenerEvent = d || Mt(s) + "-changed", a.listenerNegate = u;
|
|
4577
4581
|
}
|
|
4578
4582
|
let l = t.nodeInfoList.length;
|
|
4579
4583
|
for (let d = 0; d < a.parts.length; d++) {
|
|
4580
|
-
let
|
|
4581
|
-
|
|
4584
|
+
let u = a.parts[d];
|
|
4585
|
+
u.compoundIndex = d, La(o, t, a, u, l);
|
|
4582
4586
|
}
|
|
4583
4587
|
}
|
|
4584
4588
|
function La(o, t, e, i, s) {
|
|
@@ -4600,15 +4604,15 @@ function La(o, t, e, i, s) {
|
|
|
4600
4604
|
function $a(o, t, e, i, s, r, n) {
|
|
4601
4605
|
let a = n[s.index], l = s.binding, d = s.part;
|
|
4602
4606
|
if (r && d.source && t.length > d.source.length && l.kind == "property" && !l.isCompound && a.__isPropertyEffectsClient && a.__dataHasAccessor && a.__dataHasAccessor[l.target]) {
|
|
4603
|
-
let
|
|
4604
|
-
t =
|
|
4607
|
+
let u = e[t];
|
|
4608
|
+
t = lt(d.source, l.target, t), a._setPendingPropertyOrPath(t, u, !1, !0) && o._enqueueClient(a);
|
|
4605
4609
|
} else {
|
|
4606
|
-
let
|
|
4607
|
-
|
|
4610
|
+
let u = s.evaluator._evaluateBinding(o, d, t, e, i, r);
|
|
4611
|
+
u !== ut && Ra(o, a, l, d, u);
|
|
4608
4612
|
}
|
|
4609
4613
|
}
|
|
4610
4614
|
function Ra(o, t, e, i, s) {
|
|
4611
|
-
if (s = Ha(t, s, e, i),
|
|
4615
|
+
if (s = Ha(t, s, e, i), Tt && (s = Tt(s, e.target, e.kind, t)), e.kind == "attribute")
|
|
4612
4616
|
o._valueToNodeAttribute(
|
|
4613
4617
|
/** @type {Element} */
|
|
4614
4618
|
t,
|
|
@@ -4679,11 +4683,11 @@ function Eo(o, t, e, i, s, r) {
|
|
|
4679
4683
|
info: n
|
|
4680
4684
|
}), n;
|
|
4681
4685
|
}
|
|
4682
|
-
function
|
|
4686
|
+
function ui(o, t, e, i, s) {
|
|
4683
4687
|
let r = o._methodHost || o, n = r[s.methodName];
|
|
4684
4688
|
if (n) {
|
|
4685
4689
|
let a = o._marshalArgs(s.args, t, e);
|
|
4686
|
-
return a ===
|
|
4690
|
+
return a === ut ? ut : n.apply(r, a);
|
|
4687
4691
|
} else
|
|
4688
4692
|
s.dynamicFn || console.warn("method `" + s.methodName + "` not defined");
|
|
4689
4693
|
}
|
|
@@ -4696,7 +4700,7 @@ function So(o) {
|
|
|
4696
4700
|
}
|
|
4697
4701
|
return t;
|
|
4698
4702
|
}
|
|
4699
|
-
function
|
|
4703
|
+
function Yt(o) {
|
|
4700
4704
|
let t = o.match(/([^\s]+?)\(([\s\S]*)\)/);
|
|
4701
4705
|
if (t) {
|
|
4702
4706
|
let i = { methodName: t[1], static: !0, args: Ya };
|
|
@@ -4729,7 +4733,7 @@ function Bs(o) {
|
|
|
4729
4733
|
e.value = Number(t), e.literal = !0;
|
|
4730
4734
|
break;
|
|
4731
4735
|
}
|
|
4732
|
-
return e.literal || (e.rootProperty =
|
|
4736
|
+
return e.literal || (e.rootProperty = Pe(t), e.structured = li(t), e.structured && (e.wildcard = t.slice(-2) == ".*", e.wildcard && (e.name = t.slice(0, -2)))), e;
|
|
4733
4737
|
}
|
|
4734
4738
|
function Po(o, t, e) {
|
|
4735
4739
|
let i = Z(o, e);
|
|
@@ -4737,9 +4741,9 @@ function Po(o, t, e) {
|
|
|
4737
4741
|
}
|
|
4738
4742
|
function Vs(o, t, e, i) {
|
|
4739
4743
|
const s = { indexSplices: i };
|
|
4740
|
-
|
|
4744
|
+
ai && !o._overrideLegacyUndefined && (t.splices = s), o.notifyPath(e + ".splices", s), o.notifyPath(e + ".length", t.length), ai && !o._overrideLegacyUndefined && (s.indexSplices = []);
|
|
4741
4745
|
}
|
|
4742
|
-
function
|
|
4746
|
+
function Ke(o, t, e, i, s, r) {
|
|
4743
4747
|
Vs(o, t, e, [{
|
|
4744
4748
|
index: i,
|
|
4745
4749
|
addedCount: s,
|
|
@@ -4751,7 +4755,7 @@ function qe(o, t, e, i, s, r) {
|
|
|
4751
4755
|
function sl(o) {
|
|
4752
4756
|
return o[0].toUpperCase() + o.substring(1);
|
|
4753
4757
|
}
|
|
4754
|
-
const
|
|
4758
|
+
const zi = j((o) => {
|
|
4755
4759
|
const t = Aa(fa(o));
|
|
4756
4760
|
class e extends t {
|
|
4757
4761
|
constructor() {
|
|
@@ -4768,8 +4772,8 @@ const Fi = j((o) => {
|
|
|
4768
4772
|
super._initializeProperties(), this._registerHost(), this.__dataClientsReady = !1, this.__dataPendingClients = null, this.__dataToNotify = null, this.__dataLinkedPaths = null, this.__dataHasPaths = !1, this.__dataCompoundStorage = this.__dataCompoundStorage || null, this.__dataHost = this.__dataHost || null, this.__dataTemp = {}, this.__dataClientsInitialized = !1;
|
|
4769
4773
|
}
|
|
4770
4774
|
_registerHost() {
|
|
4771
|
-
if (
|
|
4772
|
-
let s =
|
|
4775
|
+
if (Ge.length) {
|
|
4776
|
+
let s = Ge[Ge.length - 1];
|
|
4773
4777
|
s._enqueueClient(this), this.__dataHost = s;
|
|
4774
4778
|
}
|
|
4775
4779
|
}
|
|
@@ -4813,7 +4817,7 @@ const Fi = j((o) => {
|
|
|
4813
4817
|
*/
|
|
4814
4818
|
_addPropertyEffect(s, r, n) {
|
|
4815
4819
|
this._createPropertyAccessor(s, r == P.READ_ONLY);
|
|
4816
|
-
let a =
|
|
4820
|
+
let a = Ut(this, r, !0)[s];
|
|
4817
4821
|
a || (a = this[r][s] = []), a.push(n);
|
|
4818
4822
|
}
|
|
4819
4823
|
/**
|
|
@@ -4826,7 +4830,7 @@ const Fi = j((o) => {
|
|
|
4826
4830
|
* @return {void}
|
|
4827
4831
|
*/
|
|
4828
4832
|
_removePropertyEffect(s, r, n) {
|
|
4829
|
-
let a =
|
|
4833
|
+
let a = Ut(this, r, !0)[s], l = a.indexOf(n);
|
|
4830
4834
|
l >= 0 && a.splice(l, 1);
|
|
4831
4835
|
}
|
|
4832
4836
|
/**
|
|
@@ -4927,7 +4931,7 @@ const Fi = j((o) => {
|
|
|
4927
4931
|
* @protected
|
|
4928
4932
|
*/
|
|
4929
4933
|
_setPendingPropertyOrPath(s, r, n, a) {
|
|
4930
|
-
if (a ||
|
|
4934
|
+
if (a || Pe(Array.isArray(s) ? s[0] : s) !== s) {
|
|
4931
4935
|
if (!a) {
|
|
4932
4936
|
let l = Z(this, s);
|
|
4933
4937
|
if (s = /** @type {string} */
|
|
@@ -5020,7 +5024,7 @@ const Fi = j((o) => {
|
|
|
5020
5024
|
* @return {boolean} Returns true if the property changed
|
|
5021
5025
|
*/
|
|
5022
5026
|
_setPendingProperty(s, r, n) {
|
|
5023
|
-
let a = this.__dataHasPaths &&
|
|
5027
|
+
let a = this.__dataHasPaths && li(s), l = a ? this.__dataTemp : this.__data;
|
|
5024
5028
|
return this._shouldPropertyChange(s, r, l[s]) ? (this.__dataPending || (this.__dataPending = {}, this.__dataOld = {}), s in this.__dataOld || (this.__dataOld[s] = this.__data[s]), a ? this.__dataTemp[s] = r : this.__data[s] = r, this.__dataPending[s] = r, (a || this[P.NOTIFY] && this[P.NOTIFY][s]) && (this.__dataToNotify = this.__dataToNotify || {}, this.__dataToNotify[s] = n), !0) : !1;
|
|
5025
5029
|
}
|
|
5026
5030
|
/**
|
|
@@ -5156,7 +5160,7 @@ const Fi = j((o) => {
|
|
|
5156
5160
|
let a = this.__dataHasPaths;
|
|
5157
5161
|
this.__dataHasPaths = !1;
|
|
5158
5162
|
let l;
|
|
5159
|
-
Ma(this, r, n, a), l = this.__dataToNotify, this.__dataToNotify = null, this._propagatePropertyChanges(r, n, a), this._flushClients(),
|
|
5163
|
+
Ma(this, r, n, a), l = this.__dataToNotify, this.__dataToNotify = null, this._propagatePropertyChanges(r, n, a), this._flushClients(), Qe(this, this[P.REFLECT], r, n, a), Qe(this, this[P.OBSERVE], r, n, a), l && Da(this, l, r, n, a), this.__dataCounter == 1 && (this.__dataTemp = {});
|
|
5160
5164
|
}
|
|
5161
5165
|
/**
|
|
5162
5166
|
* Called to propagate any property changes to stamped template nodes
|
|
@@ -5170,20 +5174,20 @@ const Fi = j((o) => {
|
|
|
5170
5174
|
* @protected
|
|
5171
5175
|
*/
|
|
5172
5176
|
_propagatePropertyChanges(s, r, n) {
|
|
5173
|
-
this[P.PROPAGATE] &&
|
|
5177
|
+
this[P.PROPAGATE] && Qe(this, this[P.PROPAGATE], s, r, n), this.__templateInfo && this._runEffectsForTemplate(this.__templateInfo, s, r, n);
|
|
5174
5178
|
}
|
|
5175
5179
|
_runEffectsForTemplate(s, r, n, a) {
|
|
5176
|
-
const l = (d,
|
|
5177
|
-
|
|
5180
|
+
const l = (d, u) => {
|
|
5181
|
+
Qe(
|
|
5178
5182
|
this,
|
|
5179
5183
|
s.propertyEffects,
|
|
5180
5184
|
d,
|
|
5181
5185
|
n,
|
|
5182
|
-
|
|
5186
|
+
u,
|
|
5183
5187
|
s.nodeList
|
|
5184
5188
|
);
|
|
5185
|
-
for (let
|
|
5186
|
-
this._runEffectsForTemplate(
|
|
5189
|
+
for (let c = s.firstChild; c; c = c.nextSibling)
|
|
5190
|
+
this._runEffectsForTemplate(c, d, n, u);
|
|
5187
5191
|
};
|
|
5188
5192
|
s.runEffects ? s.runEffects(l, r, a) : l(r, a);
|
|
5189
5193
|
}
|
|
@@ -5198,7 +5202,7 @@ const Fi = j((o) => {
|
|
|
5198
5202
|
* @public
|
|
5199
5203
|
*/
|
|
5200
5204
|
linkPaths(s, r) {
|
|
5201
|
-
s =
|
|
5205
|
+
s = Ze(s), r = Ze(r), this.__dataLinkedPaths = this.__dataLinkedPaths || {}, this.__dataLinkedPaths[s] = r;
|
|
5202
5206
|
}
|
|
5203
5207
|
/**
|
|
5204
5208
|
* Removes a data path alias previously established with `_linkPaths`.
|
|
@@ -5212,7 +5216,7 @@ const Fi = j((o) => {
|
|
|
5212
5216
|
* @public
|
|
5213
5217
|
*/
|
|
5214
5218
|
unlinkPaths(s) {
|
|
5215
|
-
s =
|
|
5219
|
+
s = Ze(s), this.__dataLinkedPaths && delete this.__dataLinkedPaths[s];
|
|
5216
5220
|
}
|
|
5217
5221
|
/**
|
|
5218
5222
|
* Notify that an array has changed.
|
|
@@ -5326,7 +5330,7 @@ const Fi = j((o) => {
|
|
|
5326
5330
|
/** @type {Array}*/
|
|
5327
5331
|
Z(this, s, n)
|
|
5328
5332
|
), l = a.length, d = a.push(...r);
|
|
5329
|
-
return r.length &&
|
|
5333
|
+
return r.length && Ke(this, a, n.path, l, r.length, []), d;
|
|
5330
5334
|
}
|
|
5331
5335
|
/**
|
|
5332
5336
|
* Removes an item from the end of array at the path specified.
|
|
@@ -5347,7 +5351,7 @@ const Fi = j((o) => {
|
|
|
5347
5351
|
/** @type {Array} */
|
|
5348
5352
|
Z(this, s, r)
|
|
5349
5353
|
), a = !!n.length, l = n.pop();
|
|
5350
|
-
return a &&
|
|
5354
|
+
return a && Ke(this, n, r.path, n.length, 0, [l]), l;
|
|
5351
5355
|
}
|
|
5352
5356
|
/**
|
|
5353
5357
|
* Starting from the start index specified, removes 0 or more items
|
|
@@ -5373,8 +5377,8 @@ const Fi = j((o) => {
|
|
|
5373
5377
|
Z(this, s, l)
|
|
5374
5378
|
);
|
|
5375
5379
|
r < 0 ? r = d.length - Math.floor(-r) : r && (r = Math.floor(r));
|
|
5376
|
-
let
|
|
5377
|
-
return arguments.length === 2 ?
|
|
5380
|
+
let u;
|
|
5381
|
+
return arguments.length === 2 ? u = d.splice(r) : u = d.splice(r, n, ...a), (a.length || u.length) && Ke(this, d, l.path, r, a.length, u), u;
|
|
5378
5382
|
}
|
|
5379
5383
|
/**
|
|
5380
5384
|
* Removes an item from the beginning of array at the path specified.
|
|
@@ -5395,7 +5399,7 @@ const Fi = j((o) => {
|
|
|
5395
5399
|
/** @type {Array} */
|
|
5396
5400
|
Z(this, s, r)
|
|
5397
5401
|
), a = !!n.length, l = n.shift();
|
|
5398
|
-
return a &&
|
|
5402
|
+
return a && Ke(this, n, r.path, 0, 0, [l]), l;
|
|
5399
5403
|
}
|
|
5400
5404
|
/**
|
|
5401
5405
|
* Adds items onto the beginning of the array at the path specified.
|
|
@@ -5417,7 +5421,7 @@ const Fi = j((o) => {
|
|
|
5417
5421
|
/** @type {Array} */
|
|
5418
5422
|
Z(this, s, n)
|
|
5419
5423
|
), l = a.unshift(...r);
|
|
5420
|
-
return r.length &&
|
|
5424
|
+
return r.length && Ke(this, a, n.path, 0, r.length, []), l;
|
|
5421
5425
|
}
|
|
5422
5426
|
/**
|
|
5423
5427
|
* Notify that a path has changed.
|
|
@@ -5439,7 +5443,7 @@ const Fi = j((o) => {
|
|
|
5439
5443
|
let a = { path: "" };
|
|
5440
5444
|
r = Z(this, s, a), n = a.path;
|
|
5441
5445
|
} else
|
|
5442
|
-
Array.isArray(s) ? n =
|
|
5446
|
+
Array.isArray(s) ? n = Ze(s) : n = /** @type{string} */
|
|
5443
5447
|
s;
|
|
5444
5448
|
this._setPendingPropertyOrPath(n, r, !0, !0) && this._invalidateProperties();
|
|
5445
5449
|
}
|
|
@@ -5505,10 +5509,10 @@ const Fi = j((o) => {
|
|
|
5505
5509
|
* @protected
|
|
5506
5510
|
*/
|
|
5507
5511
|
_createMethodObserver(s, r) {
|
|
5508
|
-
let n =
|
|
5512
|
+
let n = Yt(s);
|
|
5509
5513
|
if (!n)
|
|
5510
5514
|
throw new Error("Malformed observer expression '" + s + "'");
|
|
5511
|
-
Eo(this, n, P.OBSERVE,
|
|
5515
|
+
Eo(this, n, P.OBSERVE, ui, null, r);
|
|
5512
5516
|
}
|
|
5513
5517
|
/**
|
|
5514
5518
|
* Equivalent to static `createNotifyingProperty` API but can be called on
|
|
@@ -5524,7 +5528,7 @@ const Fi = j((o) => {
|
|
|
5524
5528
|
this._addPropertyEffect(s, P.NOTIFY, {
|
|
5525
5529
|
fn: Sa,
|
|
5526
5530
|
info: {
|
|
5527
|
-
eventName:
|
|
5531
|
+
eventName: Mt(s) + "-changed",
|
|
5528
5532
|
property: s
|
|
5529
5533
|
}
|
|
5530
5534
|
});
|
|
@@ -5563,11 +5567,11 @@ const Fi = j((o) => {
|
|
|
5563
5567
|
* @protected
|
|
5564
5568
|
*/
|
|
5565
5569
|
_createComputedProperty(s, r, n) {
|
|
5566
|
-
let a =
|
|
5570
|
+
let a = Yt(r);
|
|
5567
5571
|
if (!a)
|
|
5568
5572
|
throw new Error("Malformed computed expression '" + r + "'");
|
|
5569
5573
|
const l = Eo(this, a, P.COMPUTE, Rs, s, n);
|
|
5570
|
-
|
|
5574
|
+
Ut(this, Ls)[s] = l;
|
|
5571
5575
|
}
|
|
5572
5576
|
/**
|
|
5573
5577
|
* Gather the argument values for a method specified in the provided array
|
|
@@ -5584,20 +5588,20 @@ const Fi = j((o) => {
|
|
|
5584
5588
|
*/
|
|
5585
5589
|
_marshalArgs(s, r, n) {
|
|
5586
5590
|
const a = this.__data, l = [];
|
|
5587
|
-
for (let d = 0,
|
|
5588
|
-
let { name:
|
|
5591
|
+
for (let d = 0, u = s.length; d < u; d++) {
|
|
5592
|
+
let { name: c, structured: p, wildcard: m, value: _, literal: x } = s[d];
|
|
5589
5593
|
if (!x)
|
|
5590
5594
|
if (m) {
|
|
5591
|
-
const S =
|
|
5595
|
+
const S = at(c, r), I = Po(a, n, S ? r : c);
|
|
5592
5596
|
_ = {
|
|
5593
|
-
path: S ? r :
|
|
5597
|
+
path: S ? r : c,
|
|
5594
5598
|
value: I,
|
|
5595
|
-
base: S ? Z(a,
|
|
5599
|
+
base: S ? Z(a, c) : I
|
|
5596
5600
|
};
|
|
5597
5601
|
} else
|
|
5598
|
-
_ = p ? Po(a, n,
|
|
5599
|
-
if (
|
|
5600
|
-
return
|
|
5602
|
+
_ = p ? Po(a, n, c) : a[c];
|
|
5603
|
+
if (ai && !this._overrideLegacyUndefined && _ === void 0 && s.length > 1)
|
|
5604
|
+
return ut;
|
|
5601
5605
|
l[d] = _;
|
|
5602
5606
|
}
|
|
5603
5607
|
return l;
|
|
@@ -5871,9 +5875,9 @@ const Fi = j((o) => {
|
|
|
5871
5875
|
*/
|
|
5872
5876
|
_stampTemplate(s, r) {
|
|
5873
5877
|
r = r || /** @type {!TemplateInfo} */
|
|
5874
|
-
this._bindTemplate(s, !0),
|
|
5878
|
+
this._bindTemplate(s, !0), Ge.push(this);
|
|
5875
5879
|
let n = super._stampTemplate(s, r);
|
|
5876
|
-
if (
|
|
5880
|
+
if (Ge.pop(), r.nodeList = n.nodeList, !r.wasPreBound) {
|
|
5877
5881
|
let a = r.childNodes = [];
|
|
5878
5882
|
for (let l = n.firstChild; l; l = l.nextSibling)
|
|
5879
5883
|
a.push(l);
|
|
@@ -5894,9 +5898,9 @@ const Fi = j((o) => {
|
|
|
5894
5898
|
const r = s.templateInfo, { previousSibling: n, nextSibling: a, parent: l } = r;
|
|
5895
5899
|
n ? n.nextSibling = a : l && (l.firstChild = a), a ? a.previousSibling = n : l && (l.lastChild = n), r.nextSibling = r.previousSibling = null;
|
|
5896
5900
|
let d = r.childNodes;
|
|
5897
|
-
for (let
|
|
5898
|
-
let
|
|
5899
|
-
K(K(
|
|
5901
|
+
for (let u = 0; u < d.length; u++) {
|
|
5902
|
+
let c = d[u];
|
|
5903
|
+
K(K(c).parentNode).removeChild(c);
|
|
5900
5904
|
}
|
|
5901
5905
|
}
|
|
5902
5906
|
/**
|
|
@@ -5925,7 +5929,7 @@ const Fi = j((o) => {
|
|
|
5925
5929
|
);
|
|
5926
5930
|
if (s.nodeType === Node.TEXT_NODE) {
|
|
5927
5931
|
let l = this._parseBindings(s.textContent, r);
|
|
5928
|
-
l && (s.textContent = So(l) || " ",
|
|
5932
|
+
l && (s.textContent = So(l) || " ", jt(this, r, n, "text", "textContent", l), a = !0);
|
|
5929
5933
|
}
|
|
5930
5934
|
return a;
|
|
5931
5935
|
}
|
|
@@ -5951,10 +5955,10 @@ const Fi = j((o) => {
|
|
|
5951
5955
|
static _parseTemplateNodeAttribute(s, r, n, a, l) {
|
|
5952
5956
|
let d = this._parseBindings(l, r);
|
|
5953
5957
|
if (d) {
|
|
5954
|
-
let
|
|
5955
|
-
Ta.test(a) ?
|
|
5958
|
+
let u = a, c = "property";
|
|
5959
|
+
Ta.test(a) ? c = "attribute" : a[a.length - 1] == "$" && (a = a.slice(0, -1), c = "attribute");
|
|
5956
5960
|
let p = So(d);
|
|
5957
|
-
return p &&
|
|
5961
|
+
return p && c == "attribute" && (a == "class" && s.hasAttribute("class") && (p += " " + s.getAttribute(a)), s.setAttribute(a, p)), c == "attribute" && u == "disable-upgrade$" && s.setAttribute(a, ""), s.localName === "input" && u === "value" && s.setAttribute(u, ""), s.removeAttribute(u), c === "property" && (a = Ps(a)), jt(this, r, n, c, a, d, p), !0;
|
|
5958
5962
|
} else
|
|
5959
5963
|
return t._parseTemplateNodeAttribute.call(
|
|
5960
5964
|
this,
|
|
@@ -5986,16 +5990,16 @@ const Fi = j((o) => {
|
|
|
5986
5990
|
r,
|
|
5987
5991
|
n
|
|
5988
5992
|
);
|
|
5989
|
-
const l = s.parentNode, d = n.templateInfo,
|
|
5990
|
-
mo && (
|
|
5993
|
+
const l = s.parentNode, d = n.templateInfo, u = l.localName === "dom-if", c = l.localName === "dom-repeat";
|
|
5994
|
+
mo && (u || c) && (l.removeChild(s), n = n.parentInfo, n.templateInfo = d, n.noted = !0, a = !1);
|
|
5991
5995
|
let p = d.hostProps;
|
|
5992
|
-
if (Gn &&
|
|
5996
|
+
if (Gn && u)
|
|
5993
5997
|
p && (r.hostProps = Object.assign(r.hostProps || {}, p), mo || (n.parentInfo.noted = !0));
|
|
5994
5998
|
else {
|
|
5995
5999
|
let m = "{";
|
|
5996
6000
|
for (let _ in p) {
|
|
5997
6001
|
let x = [{ mode: m, source: _, dependencies: [_], hostProp: !0 }];
|
|
5998
|
-
|
|
6002
|
+
jt(this, r, n, "property", "_host_" + _, x);
|
|
5999
6003
|
}
|
|
6000
6004
|
}
|
|
6001
6005
|
return a;
|
|
@@ -6049,9 +6053,9 @@ const Fi = j((o) => {
|
|
|
6049
6053
|
let n = [], a = 0, l;
|
|
6050
6054
|
for (; (l = ko.exec(s)) !== null; ) {
|
|
6051
6055
|
l.index > a && n.push({ literal: s.slice(a, l.index) });
|
|
6052
|
-
let d = l[1][0],
|
|
6053
|
-
d == "{" && (_ =
|
|
6054
|
-
let x =
|
|
6056
|
+
let d = l[1][0], u = !!l[2], c = l[3].trim(), p = !1, m = "", _ = -1;
|
|
6057
|
+
d == "{" && (_ = c.indexOf("::")) > 0 && (m = c.substring(_ + 2), c = c.substring(0, _), p = !0);
|
|
6058
|
+
let x = Yt(c), S = [];
|
|
6055
6059
|
if (x) {
|
|
6056
6060
|
let { args: I, methodName: D } = x;
|
|
6057
6061
|
for (let $ = 0; $ < I.length; $++) {
|
|
@@ -6061,11 +6065,11 @@ const Fi = j((o) => {
|
|
|
6061
6065
|
let M = r.dynamicFns;
|
|
6062
6066
|
(M && M[D] || x.static) && (S.push(D), x.dynamicFn = !0);
|
|
6063
6067
|
} else
|
|
6064
|
-
S.push(
|
|
6068
|
+
S.push(c);
|
|
6065
6069
|
n.push({
|
|
6066
|
-
source:
|
|
6070
|
+
source: c,
|
|
6067
6071
|
mode: d,
|
|
6068
|
-
negate:
|
|
6072
|
+
negate: u,
|
|
6069
6073
|
customEvent: p,
|
|
6070
6074
|
signature: x,
|
|
6071
6075
|
dependencies: S,
|
|
@@ -6096,12 +6100,12 @@ const Fi = j((o) => {
|
|
|
6096
6100
|
* @nocollapse
|
|
6097
6101
|
*/
|
|
6098
6102
|
static _evaluateBinding(s, r, n, a, l, d) {
|
|
6099
|
-
let
|
|
6100
|
-
return r.signature ?
|
|
6103
|
+
let u;
|
|
6104
|
+
return r.signature ? u = ui(s, n, a, l, r.signature) : n != r.source ? u = Z(s, r.source) : d && li(n) ? u = Z(s, n) : u = s.__data[n], r.negate && (u = !u), u;
|
|
6101
6105
|
}
|
|
6102
6106
|
}
|
|
6103
6107
|
return e;
|
|
6104
|
-
}),
|
|
6108
|
+
}), Ge = [];
|
|
6105
6109
|
/**
|
|
6106
6110
|
@license
|
|
6107
6111
|
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
|
|
@@ -6280,16 +6284,16 @@ const nl = j((o) => {
|
|
|
6280
6284
|
* rights grant found at http://polymer.github.io/PATENTS.txt
|
|
6281
6285
|
*/
|
|
6282
6286
|
const al = "3.5.2", Oo = window.ShadyCSS && window.ShadyCSS.cssBuild, ll = j((o) => {
|
|
6283
|
-
const t = nl(
|
|
6287
|
+
const t = nl(zi(o));
|
|
6284
6288
|
function e(l) {
|
|
6285
6289
|
if (!l.hasOwnProperty(
|
|
6286
6290
|
JSCompiler_renameProperty("__propertyDefaults", l)
|
|
6287
6291
|
)) {
|
|
6288
6292
|
l.__propertyDefaults = null;
|
|
6289
6293
|
let d = l._properties;
|
|
6290
|
-
for (let
|
|
6291
|
-
let
|
|
6292
|
-
"value" in
|
|
6294
|
+
for (let u in d) {
|
|
6295
|
+
let c = d[u];
|
|
6296
|
+
"value" in c && (l.__propertyDefaults = l.__propertyDefaults || {}, l.__propertyDefaults[u] = c);
|
|
6293
6297
|
}
|
|
6294
6298
|
}
|
|
6295
6299
|
return l.__propertyDefaults;
|
|
@@ -6304,23 +6308,23 @@ const al = "3.5.2", Oo = window.ShadyCSS && window.ShadyCSS.cssBuild, ll = j((o)
|
|
|
6304
6308
|
l.observers
|
|
6305
6309
|
) : null), l.__ownObservers;
|
|
6306
6310
|
}
|
|
6307
|
-
function s(l, d,
|
|
6308
|
-
|
|
6311
|
+
function s(l, d, u, c) {
|
|
6312
|
+
u.computed && (u.readOnly = !0), u.computed && (l._hasReadOnlyEffect(d) ? console.warn(`Cannot redefine computed property '${d}'.`) : l._createComputedProperty(d, u.computed, c)), u.readOnly && !l._hasReadOnlyEffect(d) ? l._createReadOnlyProperty(d, !u.computed) : u.readOnly === !1 && l._hasReadOnlyEffect(d) && console.warn(`Cannot make readOnly property '${d}' non-readOnly.`), u.reflectToAttribute && !l._hasReflectEffect(d) ? l._createReflectedProperty(d) : u.reflectToAttribute === !1 && l._hasReflectEffect(d) && console.warn(`Cannot make reflected property '${d}' non-reflected.`), u.notify && !l._hasNotifyEffect(d) ? l._createNotifyingProperty(d) : u.notify === !1 && l._hasNotifyEffect(d) && console.warn(`Cannot make notify property '${d}' non-notify.`), u.observer && l._createPropertyObserver(d, u.observer, c[u.observer]), l._addPropertyToAttributeMap(d);
|
|
6309
6313
|
}
|
|
6310
|
-
function r(l, d,
|
|
6314
|
+
function r(l, d, u, c) {
|
|
6311
6315
|
if (!Oo) {
|
|
6312
|
-
const p = d.content.querySelectorAll("style"), m = Es(d), _ = oa(
|
|
6316
|
+
const p = d.content.querySelectorAll("style"), m = Es(d), _ = oa(u), x = d.content.firstElementChild;
|
|
6313
6317
|
for (let I = 0; I < _.length; I++) {
|
|
6314
6318
|
let D = _[I];
|
|
6315
|
-
D.textContent = l._processStyleText(D.textContent,
|
|
6319
|
+
D.textContent = l._processStyleText(D.textContent, c), d.content.insertBefore(D, x);
|
|
6316
6320
|
}
|
|
6317
6321
|
let S = 0;
|
|
6318
6322
|
for (let I = 0; I < m.length; I++) {
|
|
6319
6323
|
let D = m[I], M = p[S];
|
|
6320
|
-
M !== D ? (D = D.cloneNode(!0), M.parentNode.insertBefore(D, M)) : S++, D.textContent = l._processStyleText(D.textContent,
|
|
6324
|
+
M !== D ? (D = D.cloneNode(!0), M.parentNode.insertBefore(D, M)) : S++, D.textContent = l._processStyleText(D.textContent, c);
|
|
6321
6325
|
}
|
|
6322
6326
|
}
|
|
6323
|
-
if (window.ShadyCSS && window.ShadyCSS.prepareTemplate(d,
|
|
6327
|
+
if (window.ShadyCSS && window.ShadyCSS.prepareTemplate(d, u), Jn && Oo && jn) {
|
|
6324
6328
|
const p = d.content.querySelectorAll("style");
|
|
6325
6329
|
if (p) {
|
|
6326
6330
|
let m = "";
|
|
@@ -6332,8 +6336,8 @@ const al = "3.5.2", Oo = window.ShadyCSS && window.ShadyCSS.cssBuild, ll = j((o)
|
|
|
6332
6336
|
}
|
|
6333
6337
|
function n(l) {
|
|
6334
6338
|
let d = null;
|
|
6335
|
-
if (l && (!
|
|
6336
|
-
|
|
6339
|
+
if (l && (!Et || Wn) && (d = /** @type {?HTMLTemplateElement} */
|
|
6340
|
+
nt.import(l, "template"), Et && !d))
|
|
6337
6341
|
throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);
|
|
6338
6342
|
return d;
|
|
6339
6343
|
}
|
|
@@ -6376,12 +6380,12 @@ const al = "3.5.2", Oo = window.ShadyCSS && window.ShadyCSS.cssBuild, ll = j((o)
|
|
|
6376
6380
|
* @nocollapse
|
|
6377
6381
|
*/
|
|
6378
6382
|
static createProperties(d) {
|
|
6379
|
-
for (let
|
|
6383
|
+
for (let u in d)
|
|
6380
6384
|
s(
|
|
6381
6385
|
/** @type {?} */
|
|
6382
6386
|
this.prototype,
|
|
6383
|
-
|
|
6384
|
-
d[
|
|
6387
|
+
u,
|
|
6388
|
+
d[u],
|
|
6385
6389
|
d
|
|
6386
6390
|
);
|
|
6387
6391
|
}
|
|
@@ -6397,10 +6401,10 @@ const al = "3.5.2", Oo = window.ShadyCSS && window.ShadyCSS.cssBuild, ll = j((o)
|
|
|
6397
6401
|
* @protected
|
|
6398
6402
|
* @nocollapse
|
|
6399
6403
|
*/
|
|
6400
|
-
static createObservers(d,
|
|
6401
|
-
const
|
|
6404
|
+
static createObservers(d, u) {
|
|
6405
|
+
const c = this.prototype;
|
|
6402
6406
|
for (let p = 0; p < d.length; p++)
|
|
6403
|
-
|
|
6407
|
+
c._createMethodObserver(d[p], u);
|
|
6404
6408
|
}
|
|
6405
6409
|
/**
|
|
6406
6410
|
* Returns the template that will be stamped into this element's shadow root.
|
|
@@ -6502,13 +6506,13 @@ const al = "3.5.2", Oo = window.ShadyCSS && window.ShadyCSS.cssBuild, ll = j((o)
|
|
|
6502
6506
|
if (!this.hasOwnProperty(JSCompiler_renameProperty("_importPath", this))) {
|
|
6503
6507
|
const d = this.importMeta;
|
|
6504
6508
|
if (d)
|
|
6505
|
-
this._importPath =
|
|
6509
|
+
this._importPath = Ii(d.url);
|
|
6506
6510
|
else {
|
|
6507
|
-
const
|
|
6511
|
+
const u = nt.import(
|
|
6508
6512
|
/** @type {PolymerElementConstructor} */
|
|
6509
6513
|
this.is
|
|
6510
6514
|
);
|
|
6511
|
-
this._importPath =
|
|
6515
|
+
this._importPath = u && u.assetpath || Object.getPrototypeOf(
|
|
6512
6516
|
/** @type {PolymerElementConstructor}*/
|
|
6513
6517
|
this.prototype
|
|
6514
6518
|
).constructor.importPath;
|
|
@@ -6538,11 +6542,11 @@ const al = "3.5.2", Oo = window.ShadyCSS && window.ShadyCSS.cssBuild, ll = j((o)
|
|
|
6538
6542
|
), super._initializeProperties(), this.rootPath = Yn, this.importPath = this.constructor.importPath;
|
|
6539
6543
|
let d = e(this.constructor);
|
|
6540
6544
|
if (d)
|
|
6541
|
-
for (let
|
|
6542
|
-
let
|
|
6543
|
-
if (this._canApplyPropertyDefault(
|
|
6544
|
-
let p = typeof
|
|
6545
|
-
this._hasAccessor(
|
|
6545
|
+
for (let u in d) {
|
|
6546
|
+
let c = d[u];
|
|
6547
|
+
if (this._canApplyPropertyDefault(u)) {
|
|
6548
|
+
let p = typeof c.value == "function" ? c.value.call(this) : c.value;
|
|
6549
|
+
this._hasAccessor(u) ? this._setPendingProperty(u, p, !0) : this[u] = p;
|
|
6546
6550
|
}
|
|
6547
6551
|
}
|
|
6548
6552
|
}
|
|
@@ -6566,8 +6570,8 @@ const al = "3.5.2", Oo = window.ShadyCSS && window.ShadyCSS.cssBuild, ll = j((o)
|
|
|
6566
6570
|
* @protected
|
|
6567
6571
|
* @nocollapse
|
|
6568
6572
|
*/
|
|
6569
|
-
static _processStyleText(d,
|
|
6570
|
-
return
|
|
6573
|
+
static _processStyleText(d, u) {
|
|
6574
|
+
return Mi(d, u);
|
|
6571
6575
|
}
|
|
6572
6576
|
/**
|
|
6573
6577
|
* Configures an element `proto` to function with a given `template`.
|
|
@@ -6580,11 +6584,11 @@ const al = "3.5.2", Oo = window.ShadyCSS && window.ShadyCSS.cssBuild, ll = j((o)
|
|
|
6580
6584
|
* @nocollapse
|
|
6581
6585
|
*/
|
|
6582
6586
|
static _finalizeTemplate(d) {
|
|
6583
|
-
const
|
|
6584
|
-
if (
|
|
6585
|
-
|
|
6586
|
-
const
|
|
6587
|
-
r(this,
|
|
6587
|
+
const u = this.prototype._template;
|
|
6588
|
+
if (u && !u.__polymerFinalized) {
|
|
6589
|
+
u.__polymerFinalized = !0;
|
|
6590
|
+
const c = this.importPath, p = c ? it(c) : "";
|
|
6591
|
+
r(this, u, d, p), this.prototype._bindTemplate(u);
|
|
6588
6592
|
}
|
|
6589
6593
|
}
|
|
6590
6594
|
/**
|
|
@@ -6644,9 +6648,9 @@ const al = "3.5.2", Oo = window.ShadyCSS && window.ShadyCSS.cssBuild, ll = j((o)
|
|
|
6644
6648
|
* @return {ShadowRoot} node to which the dom has been attached.
|
|
6645
6649
|
*/
|
|
6646
6650
|
_attachDom(d) {
|
|
6647
|
-
const
|
|
6648
|
-
if (
|
|
6649
|
-
return d ? (
|
|
6651
|
+
const u = K(this);
|
|
6652
|
+
if (u.attachShadow)
|
|
6653
|
+
return d ? (u.shadowRoot || (u.attachShadow({ mode: "open", shadyUpgradeFragment: d }), u.shadowRoot.appendChild(d), this.constructor._styleSheet && (u.shadowRoot.adoptedStyleSheets = [this.constructor._styleSheet])), qn && window.ShadyDOM && window.ShadyDOM.flushInitial(u.shadowRoot), u.shadowRoot) : null;
|
|
6650
6654
|
throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.");
|
|
6651
6655
|
}
|
|
6652
6656
|
/**
|
|
@@ -6694,8 +6698,8 @@ const al = "3.5.2", Oo = window.ShadyCSS && window.ShadyCSS.cssBuild, ll = j((o)
|
|
|
6694
6698
|
* to the element's `importPath`
|
|
6695
6699
|
* @return {string} Rewritten URL relative to base
|
|
6696
6700
|
*/
|
|
6697
|
-
resolveUrl(d,
|
|
6698
|
-
return !
|
|
6701
|
+
resolveUrl(d, u) {
|
|
6702
|
+
return !u && this.importPath && (u = it(this.importPath)), it(d, u);
|
|
6699
6703
|
}
|
|
6700
6704
|
/**
|
|
6701
6705
|
* Overrides `PropertyEffects` to add map of dynamic functions on
|
|
@@ -6710,12 +6714,12 @@ const al = "3.5.2", Oo = window.ShadyCSS && window.ShadyCSS.cssBuild, ll = j((o)
|
|
|
6710
6714
|
* @suppress {missingProperties} Interfaces in closure do not inherit statics, but classes do
|
|
6711
6715
|
* @nocollapse
|
|
6712
6716
|
*/
|
|
6713
|
-
static _parseTemplateContent(d,
|
|
6714
|
-
return
|
|
6717
|
+
static _parseTemplateContent(d, u, c) {
|
|
6718
|
+
return u.dynamicFns = u.dynamicFns || this._properties, t._parseTemplateContent.call(
|
|
6715
6719
|
this,
|
|
6716
6720
|
d,
|
|
6717
|
-
|
|
6718
|
-
|
|
6721
|
+
u,
|
|
6722
|
+
c
|
|
6719
6723
|
);
|
|
6720
6724
|
}
|
|
6721
6725
|
/**
|
|
@@ -6730,18 +6734,18 @@ const al = "3.5.2", Oo = window.ShadyCSS && window.ShadyCSS.cssBuild, ll = j((o)
|
|
|
6730
6734
|
* @suppress {missingProperties} Interfaces in closure do not inherit statics, but classes do
|
|
6731
6735
|
* @nocollapse
|
|
6732
6736
|
*/
|
|
6733
|
-
static _addTemplatePropertyEffect(d,
|
|
6734
|
-
return Cs && !(
|
|
6737
|
+
static _addTemplatePropertyEffect(d, u, c) {
|
|
6738
|
+
return Cs && !(u in this._properties) && // Methods used in templates with no dependencies (or only literal
|
|
6735
6739
|
// dependencies) become accessors with template effects; ignore these
|
|
6736
|
-
!(
|
|
6740
|
+
!(c.info.part.signature && c.info.part.signature.static) && // Warnings for bindings added to nested templates are handled by
|
|
6737
6741
|
// templatizer so ignore both the host-to-template bindings
|
|
6738
6742
|
// (`hostProp`) and TemplateInstance-to-child bindings
|
|
6739
6743
|
// (`nestedTemplate`)
|
|
6740
|
-
!
|
|
6744
|
+
!c.info.part.hostProp && !d.nestedTemplate && console.warn(`Property '${u}' used in template but not declared in 'properties'; attribute will not be observed.`), t._addTemplatePropertyEffect.call(
|
|
6741
6745
|
this,
|
|
6742
6746
|
d,
|
|
6743
|
-
|
|
6744
|
-
|
|
6747
|
+
u,
|
|
6748
|
+
c
|
|
6745
6749
|
);
|
|
6746
6750
|
}
|
|
6747
6751
|
}
|
|
@@ -6800,7 +6804,7 @@ function dl(o) {
|
|
|
6800
6804
|
`non-template value passed to Polymer's html function: ${o}`
|
|
6801
6805
|
);
|
|
6802
6806
|
}
|
|
6803
|
-
const
|
|
6807
|
+
const Oe = function(t, ...e) {
|
|
6804
6808
|
Ys(t, e);
|
|
6805
6809
|
const i = (
|
|
6806
6810
|
/** @type {!HTMLTemplateElement} */
|
|
@@ -6830,22 +6834,22 @@ const ve = ll(HTMLElement);
|
|
|
6830
6834
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
6831
6835
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
6832
6836
|
*/
|
|
6833
|
-
const
|
|
6837
|
+
const ce = [];
|
|
6834
6838
|
function ci(o, t, e = o.getAttribute("dir")) {
|
|
6835
6839
|
t ? o.setAttribute("dir", t) : e != null && o.removeAttribute("dir");
|
|
6836
6840
|
}
|
|
6837
|
-
function
|
|
6841
|
+
function hi() {
|
|
6838
6842
|
return document.documentElement.getAttribute("dir");
|
|
6839
6843
|
}
|
|
6840
|
-
function
|
|
6841
|
-
const o =
|
|
6842
|
-
|
|
6844
|
+
function ul() {
|
|
6845
|
+
const o = hi();
|
|
6846
|
+
ce.forEach((t) => {
|
|
6843
6847
|
ci(t, o);
|
|
6844
6848
|
});
|
|
6845
6849
|
}
|
|
6846
|
-
const
|
|
6847
|
-
|
|
6848
|
-
const
|
|
6850
|
+
const cl = new MutationObserver(ul);
|
|
6851
|
+
cl.observe(document.documentElement, { attributes: !0, attributeFilter: ["dir"] });
|
|
6852
|
+
const It = (o) => class extends o {
|
|
6849
6853
|
static get properties() {
|
|
6850
6854
|
return {
|
|
6851
6855
|
/**
|
|
@@ -6871,18 +6875,18 @@ const Mt = (o) => class extends o {
|
|
|
6871
6875
|
}
|
|
6872
6876
|
/** @protected */
|
|
6873
6877
|
connectedCallback() {
|
|
6874
|
-
super.connectedCallback(), (!this.hasAttribute("dir") || this.__restoreSubscription) && (this.__subscribe(), ci(this,
|
|
6878
|
+
super.connectedCallback(), (!this.hasAttribute("dir") || this.__restoreSubscription) && (this.__subscribe(), ci(this, hi(), null));
|
|
6875
6879
|
}
|
|
6876
6880
|
/** @protected */
|
|
6877
6881
|
attributeChangedCallback(e, i, s) {
|
|
6878
6882
|
if (super.attributeChangedCallback(e, i, s), e !== "dir")
|
|
6879
6883
|
return;
|
|
6880
|
-
const r =
|
|
6884
|
+
const r = hi(), n = s === r && ce.indexOf(this) === -1, a = !s && i && ce.indexOf(this) === -1;
|
|
6881
6885
|
n || a ? (this.__subscribe(), ci(this, r, s)) : s !== r && i === r && this.__unsubscribe();
|
|
6882
6886
|
}
|
|
6883
6887
|
/** @protected */
|
|
6884
6888
|
disconnectedCallback() {
|
|
6885
|
-
super.disconnectedCallback(), this.__restoreSubscription =
|
|
6889
|
+
super.disconnectedCallback(), this.__restoreSubscription = ce.includes(this), this.__unsubscribe();
|
|
6886
6890
|
}
|
|
6887
6891
|
/** @protected */
|
|
6888
6892
|
_valueToNodeAttribute(e, i, s) {
|
|
@@ -6894,11 +6898,11 @@ const Mt = (o) => class extends o {
|
|
|
6894
6898
|
}
|
|
6895
6899
|
/** @private */
|
|
6896
6900
|
__subscribe() {
|
|
6897
|
-
|
|
6901
|
+
ce.includes(this) || ce.push(this);
|
|
6898
6902
|
}
|
|
6899
6903
|
/** @private */
|
|
6900
6904
|
__unsubscribe() {
|
|
6901
|
-
|
|
6905
|
+
ce.includes(this) && ce.splice(ce.indexOf(this), 1);
|
|
6902
6906
|
}
|
|
6903
6907
|
};
|
|
6904
6908
|
/**
|
|
@@ -7018,12 +7022,12 @@ const pl = k`
|
|
|
7018
7022
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7019
7023
|
*/
|
|
7020
7024
|
B("vaadin-input-container", pl, { moduleId: "vaadin-input-container-styles" });
|
|
7021
|
-
class fl extends hl(
|
|
7025
|
+
class fl extends hl(Se(It(ve))) {
|
|
7022
7026
|
static get is() {
|
|
7023
7027
|
return "vaadin-input-container";
|
|
7024
7028
|
}
|
|
7025
7029
|
static get template() {
|
|
7026
|
-
return
|
|
7030
|
+
return Oe`
|
|
7027
7031
|
<slot name="prefix"></slot>
|
|
7028
7032
|
<slot></slot>
|
|
7029
7033
|
<slot name="suffix"></slot>
|
|
@@ -7101,29 +7105,29 @@ const ml = k`
|
|
|
7101
7105
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7102
7106
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7103
7107
|
*/
|
|
7104
|
-
let
|
|
7108
|
+
let Li = !1;
|
|
7105
7109
|
window.addEventListener(
|
|
7106
7110
|
"keydown",
|
|
7107
7111
|
() => {
|
|
7108
|
-
|
|
7112
|
+
Li = !0;
|
|
7109
7113
|
},
|
|
7110
7114
|
{ capture: !0 }
|
|
7111
7115
|
);
|
|
7112
7116
|
window.addEventListener(
|
|
7113
7117
|
"mousedown",
|
|
7114
7118
|
() => {
|
|
7115
|
-
|
|
7119
|
+
Li = !1;
|
|
7116
7120
|
},
|
|
7117
7121
|
{ capture: !0 }
|
|
7118
7122
|
);
|
|
7119
|
-
function
|
|
7123
|
+
function pi() {
|
|
7120
7124
|
let o = document.activeElement || document.body;
|
|
7121
7125
|
for (; o.shadowRoot && o.shadowRoot.activeElement; )
|
|
7122
7126
|
o = o.shadowRoot.activeElement;
|
|
7123
7127
|
return o;
|
|
7124
7128
|
}
|
|
7125
|
-
function
|
|
7126
|
-
return
|
|
7129
|
+
function $i() {
|
|
7130
|
+
return Li;
|
|
7127
7131
|
}
|
|
7128
7132
|
function _l(o) {
|
|
7129
7133
|
const t = o.style;
|
|
@@ -7142,11 +7146,11 @@ function yl(o, t) {
|
|
|
7142
7146
|
gl(o[0], t[0]) ? e.push(t.shift()) : e.push(o.shift());
|
|
7143
7147
|
return e.concat(o, t);
|
|
7144
7148
|
}
|
|
7145
|
-
function
|
|
7149
|
+
function fi(o) {
|
|
7146
7150
|
const t = o.length;
|
|
7147
7151
|
if (t < 2)
|
|
7148
7152
|
return o;
|
|
7149
|
-
const e = Math.ceil(t / 2), i =
|
|
7153
|
+
const e = Math.ceil(t / 2), i = fi(o.slice(0, e)), s = fi(o.slice(e));
|
|
7150
7154
|
return yl(i, s);
|
|
7151
7155
|
}
|
|
7152
7156
|
function Ws(o) {
|
|
@@ -7177,7 +7181,7 @@ function qs(o, t) {
|
|
|
7177
7181
|
}
|
|
7178
7182
|
function wl(o) {
|
|
7179
7183
|
const t = [];
|
|
7180
|
-
return qs(o, t) ?
|
|
7184
|
+
return qs(o, t) ? fi(t) : t;
|
|
7181
7185
|
}
|
|
7182
7186
|
/**
|
|
7183
7187
|
@license
|
|
@@ -7188,10 +7192,10 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
7188
7192
|
Code distributed by Google as part of the polymer project is also
|
|
7189
7193
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
7190
7194
|
*/
|
|
7191
|
-
let
|
|
7195
|
+
let mi = !1, xl = [], Ks = [];
|
|
7192
7196
|
function Cl() {
|
|
7193
|
-
|
|
7194
|
-
|
|
7197
|
+
mi = !0, requestAnimationFrame(function() {
|
|
7198
|
+
mi = !1, Al(xl), setTimeout(function() {
|
|
7195
7199
|
Tl(Ks);
|
|
7196
7200
|
});
|
|
7197
7201
|
});
|
|
@@ -7215,19 +7219,19 @@ function Gs(o) {
|
|
|
7215
7219
|
}
|
|
7216
7220
|
}
|
|
7217
7221
|
function Js(o, t, e) {
|
|
7218
|
-
|
|
7222
|
+
mi || Cl(), Ks.push([o, t, e]);
|
|
7219
7223
|
}
|
|
7220
7224
|
/**
|
|
7221
7225
|
* @license
|
|
7222
7226
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7223
7227
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7224
7228
|
*/
|
|
7225
|
-
const
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
const Dl =
|
|
7230
|
-
|
|
7229
|
+
const Nt = (o) => o.test(navigator.userAgent), _i = (o) => o.test(navigator.platform), El = (o) => o.test(navigator.vendor);
|
|
7230
|
+
Nt(/Android/u);
|
|
7231
|
+
Nt(/Chrome/u) && El(/Google Inc/u);
|
|
7232
|
+
Nt(/Firefox/u);
|
|
7233
|
+
const Dl = _i(/^iPad/u) || _i(/^Mac/u) && navigator.maxTouchPoints > 1, kl = _i(/^iPhone/u), Xs = kl || Dl;
|
|
7234
|
+
Nt(/^((?!chrome|android).)*safari/iu);
|
|
7231
7235
|
const Sl = (() => {
|
|
7232
7236
|
try {
|
|
7233
7237
|
return document.createEvent("TouchEvent"), !0;
|
|
@@ -7240,49 +7244,49 @@ const Sl = (() => {
|
|
|
7240
7244
|
* Copyright (c) 2017 Anton Korzunov
|
|
7241
7245
|
* SPDX-License-Identifier: MIT
|
|
7242
7246
|
*/
|
|
7243
|
-
let
|
|
7244
|
-
const Io = (o) => o && o.nodeType === Node.ELEMENT_NODE,
|
|
7247
|
+
let Ie = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), yt = {}, Wt = 0;
|
|
7248
|
+
const Io = (o) => o && o.nodeType === Node.ELEMENT_NODE, qt = (...o) => {
|
|
7245
7249
|
console.error(`Error: ${o.join(" ")}. Skip setting aria-hidden.`);
|
|
7246
7250
|
}, Pl = (o, t) => Io(o) ? t.map((e) => {
|
|
7247
7251
|
if (!Io(e))
|
|
7248
|
-
return
|
|
7252
|
+
return qt(e, "is not a valid element"), null;
|
|
7249
7253
|
let i = e;
|
|
7250
7254
|
for (; i && i !== o; ) {
|
|
7251
7255
|
if (o.contains(i))
|
|
7252
7256
|
return e;
|
|
7253
7257
|
i = i.getRootNode().host;
|
|
7254
7258
|
}
|
|
7255
|
-
return
|
|
7256
|
-
}).filter((e) => !!e) : (
|
|
7259
|
+
return qt(e, "is not contained inside", o), null;
|
|
7260
|
+
}).filter((e) => !!e) : (qt(o, "is not a valid element"), []), Ol = (o, t, e, i) => {
|
|
7257
7261
|
const s = Pl(t, Array.isArray(o) ? o : [o]);
|
|
7258
|
-
|
|
7259
|
-
const r =
|
|
7260
|
-
if (!
|
|
7262
|
+
yt[e] || (yt[e] = /* @__PURE__ */ new WeakMap());
|
|
7263
|
+
const r = yt[e], n = [], a = /* @__PURE__ */ new Set(), l = new Set(s), d = (c) => {
|
|
7264
|
+
if (!c || a.has(c))
|
|
7261
7265
|
return;
|
|
7262
|
-
a.add(
|
|
7263
|
-
const p =
|
|
7264
|
-
p && d(p), d(
|
|
7266
|
+
a.add(c);
|
|
7267
|
+
const p = c.assignedSlot;
|
|
7268
|
+
p && d(p), d(c.parentNode || c.host);
|
|
7265
7269
|
};
|
|
7266
7270
|
s.forEach(d);
|
|
7267
|
-
const
|
|
7268
|
-
if (!
|
|
7271
|
+
const u = (c) => {
|
|
7272
|
+
if (!c || l.has(c))
|
|
7269
7273
|
return;
|
|
7270
|
-
const p =
|
|
7271
|
-
(p ? [...
|
|
7274
|
+
const p = c.shadowRoot;
|
|
7275
|
+
(p ? [...c.children, ...p.children] : [...c.children]).forEach((_) => {
|
|
7272
7276
|
if (!["template", "script", "style"].includes(_.localName))
|
|
7273
7277
|
if (a.has(_))
|
|
7274
|
-
|
|
7278
|
+
u(_);
|
|
7275
7279
|
else {
|
|
7276
|
-
const x = _.getAttribute(i), S = x !== null && x !== "false", I = (
|
|
7277
|
-
|
|
7280
|
+
const x = _.getAttribute(i), S = x !== null && x !== "false", I = (Ie.get(_) || 0) + 1, D = (r.get(_) || 0) + 1;
|
|
7281
|
+
Ie.set(_, I), r.set(_, D), n.push(_), I === 1 && S && gt.set(_, !0), D === 1 && _.setAttribute(e, "true"), S || _.setAttribute(i, "true");
|
|
7278
7282
|
}
|
|
7279
7283
|
});
|
|
7280
7284
|
};
|
|
7281
|
-
return
|
|
7282
|
-
n.forEach((
|
|
7283
|
-
const p =
|
|
7284
|
-
|
|
7285
|
-
}),
|
|
7285
|
+
return u(t), a.clear(), Wt += 1, () => {
|
|
7286
|
+
n.forEach((c) => {
|
|
7287
|
+
const p = Ie.get(c) - 1, m = r.get(c) - 1;
|
|
7288
|
+
Ie.set(c, p), r.set(c, m), p || (gt.has(c) ? gt.delete(c) : c.removeAttribute(i)), m || c.removeAttribute(e);
|
|
7289
|
+
}), Wt -= 1, Wt || (Ie = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), yt = {});
|
|
7286
7290
|
};
|
|
7287
7291
|
}, Zs = (o, t = document.body, e = "data-aria-hidden") => {
|
|
7288
7292
|
const i = Array.from(Array.isArray(o) ? o : [o]);
|
|
@@ -7333,7 +7337,7 @@ class Il {
|
|
|
7333
7337
|
* @param {Node | null | undefined} focusNode
|
|
7334
7338
|
*/
|
|
7335
7339
|
saveFocus(t) {
|
|
7336
|
-
this.focusNode = t ||
|
|
7340
|
+
this.focusNode = t || pi();
|
|
7337
7341
|
}
|
|
7338
7342
|
/**
|
|
7339
7343
|
* Restores focus to the target node that was saved previously with `saveFocus()`.
|
|
@@ -7343,7 +7347,7 @@ class Il {
|
|
|
7343
7347
|
if (!e)
|
|
7344
7348
|
return;
|
|
7345
7349
|
const i = t ? t.preventScroll : !1;
|
|
7346
|
-
|
|
7350
|
+
pi() === document.body ? setTimeout(() => e.focus({ preventScroll: i })) : e.focus({ preventScroll: i }), this.focusNode = null;
|
|
7347
7351
|
}
|
|
7348
7352
|
}
|
|
7349
7353
|
/**
|
|
@@ -7351,7 +7355,7 @@ class Il {
|
|
|
7351
7355
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7352
7356
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7353
7357
|
*/
|
|
7354
|
-
const
|
|
7358
|
+
const Kt = [];
|
|
7355
7359
|
class Nl {
|
|
7356
7360
|
/**
|
|
7357
7361
|
* @param {HTMLElement} host
|
|
@@ -7401,14 +7405,14 @@ class Nl {
|
|
|
7401
7405
|
trapFocus(t) {
|
|
7402
7406
|
if (this.__trapNode = t, this.__focusableElements.length === 0)
|
|
7403
7407
|
throw this.__trapNode = null, new Error("The trap node should have at least one focusable descendant or be focusable itself.");
|
|
7404
|
-
|
|
7408
|
+
Kt.push(this), this.__focusedElementIndex === -1 && this.__focusableElements[0].focus();
|
|
7405
7409
|
}
|
|
7406
7410
|
/**
|
|
7407
7411
|
* Deactivates the focus trap set with the `.trapFocus()` method
|
|
7408
7412
|
* so that it becomes possible to tab outside the trap node.
|
|
7409
7413
|
*/
|
|
7410
7414
|
releaseFocus() {
|
|
7411
|
-
this.__trapNode = null,
|
|
7415
|
+
this.__trapNode = null, Kt.pop();
|
|
7412
7416
|
}
|
|
7413
7417
|
/**
|
|
7414
7418
|
* A `keydown` event handler that manages tabbing navigation when the trap is enabled.
|
|
@@ -7422,7 +7426,7 @@ class Nl {
|
|
|
7422
7426
|
* @private
|
|
7423
7427
|
*/
|
|
7424
7428
|
__onKeyDown(t) {
|
|
7425
|
-
if (this.__trapNode && this === Array.from(
|
|
7429
|
+
if (this.__trapNode && this === Array.from(Kt).pop() && t.key === "Tab") {
|
|
7426
7430
|
t.preventDefault();
|
|
7427
7431
|
const e = t.shiftKey;
|
|
7428
7432
|
this.__focusNextElement(e);
|
|
@@ -7449,7 +7453,7 @@ class Nl {
|
|
|
7449
7453
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
7450
7454
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7451
7455
|
*/
|
|
7452
|
-
const
|
|
7456
|
+
const Ye = j((o) => typeof o.prototype.addController == "function" ? o : class extends o {
|
|
7453
7457
|
constructor() {
|
|
7454
7458
|
super(), this.__controllers = /* @__PURE__ */ new Set();
|
|
7455
7459
|
}
|
|
@@ -7489,7 +7493,7 @@ const je = j((o) => typeof o.prototype.addController == "function" ? o : class e
|
|
|
7489
7493
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
7490
7494
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7491
7495
|
*/
|
|
7492
|
-
const Fl = (o) => class extends
|
|
7496
|
+
const Fl = (o) => class extends Ye(o) {
|
|
7493
7497
|
static get properties() {
|
|
7494
7498
|
return {
|
|
7495
7499
|
/**
|
|
@@ -7533,7 +7537,7 @@ const Fl = (o) => class extends je(o) {
|
|
|
7533
7537
|
*/
|
|
7534
7538
|
_resetFocus() {
|
|
7535
7539
|
if (this.focusTrap && (this.__ariaModalController.close(), this.__focusTrapController.releaseFocus()), this.restoreFocusOnClose && this._shouldRestoreFocus()) {
|
|
7536
|
-
const e =
|
|
7540
|
+
const e = !$i();
|
|
7537
7541
|
this.__focusRestorationController.restoreFocus({ preventScroll: e });
|
|
7538
7542
|
}
|
|
7539
7543
|
}
|
|
@@ -7565,7 +7569,7 @@ const Fl = (o) => class extends je(o) {
|
|
|
7565
7569
|
* @return {boolean}
|
|
7566
7570
|
*/
|
|
7567
7571
|
_shouldRestoreFocus() {
|
|
7568
|
-
const e =
|
|
7572
|
+
const e = pi();
|
|
7569
7573
|
return e === document.body || this._deepContains(e);
|
|
7570
7574
|
}
|
|
7571
7575
|
/**
|
|
@@ -7591,7 +7595,7 @@ const Fl = (o) => class extends je(o) {
|
|
|
7591
7595
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
7592
7596
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7593
7597
|
*/
|
|
7594
|
-
const Qs = () => Array.from(document.body.children).filter((o) => o instanceof HTMLElement && o._hasOverlayStackMixin && !o.hasAttribute("closing")).sort((o, t) => o.__zIndex - t.__zIndex || 0),
|
|
7598
|
+
const Qs = () => Array.from(document.body.children).filter((o) => o instanceof HTMLElement && o._hasOverlayStackMixin && !o.hasAttribute("closing")).sort((o, t) => o.__zIndex - t.__zIndex || 0), gi = () => Qs().filter((o) => o.$.overlay), zl = (o) => o === gi().pop(), Ll = (o) => class extends o {
|
|
7595
7599
|
constructor() {
|
|
7596
7600
|
super(), this._hasOverlayStackMixin = !0;
|
|
7597
7601
|
}
|
|
@@ -7614,14 +7618,14 @@ const Qs = () => Array.from(document.body.children).filter((o) => o instanceof H
|
|
|
7614
7618
|
}
|
|
7615
7619
|
/** @protected */
|
|
7616
7620
|
_enterModalState() {
|
|
7617
|
-
document.body.style.pointerEvents !== "none" && (this._previousDocumentPointerEvents = document.body.style.pointerEvents, document.body.style.pointerEvents = "none"),
|
|
7621
|
+
document.body.style.pointerEvents !== "none" && (this._previousDocumentPointerEvents = document.body.style.pointerEvents, document.body.style.pointerEvents = "none"), gi().forEach((e) => {
|
|
7618
7622
|
e !== this && (e.$.overlay.style.pointerEvents = "none");
|
|
7619
7623
|
});
|
|
7620
7624
|
}
|
|
7621
7625
|
/** @protected */
|
|
7622
7626
|
_exitModalState() {
|
|
7623
7627
|
this._previousDocumentPointerEvents !== void 0 && (document.body.style.pointerEvents = this._previousDocumentPointerEvents, delete this._previousDocumentPointerEvents);
|
|
7624
|
-
const e =
|
|
7628
|
+
const e = gi();
|
|
7625
7629
|
let i;
|
|
7626
7630
|
for (; (i = e.pop()) && !(i !== this && (i.$.overlay.style.removeProperty("pointer-events"), !i.modeless)); )
|
|
7627
7631
|
;
|
|
@@ -7917,23 +7921,23 @@ function Rl(o) {
|
|
|
7917
7921
|
}
|
|
7918
7922
|
return t;
|
|
7919
7923
|
}
|
|
7920
|
-
function
|
|
7924
|
+
function Ri(o) {
|
|
7921
7925
|
return o ? new Set(o.split(" ")) : /* @__PURE__ */ new Set();
|
|
7922
7926
|
}
|
|
7923
|
-
function
|
|
7927
|
+
function Ft(o) {
|
|
7924
7928
|
return o ? [...o].join(" ") : "";
|
|
7925
7929
|
}
|
|
7926
7930
|
function er(o, t, e) {
|
|
7927
|
-
const i =
|
|
7928
|
-
i.add(e), o.setAttribute(t,
|
|
7931
|
+
const i = Ri(o.getAttribute(t));
|
|
7932
|
+
i.add(e), o.setAttribute(t, Ft(i));
|
|
7929
7933
|
}
|
|
7930
7934
|
function Hl(o, t, e) {
|
|
7931
|
-
const i =
|
|
7935
|
+
const i = Ri(o.getAttribute(t));
|
|
7932
7936
|
if (i.delete(e), i.size === 0) {
|
|
7933
7937
|
o.removeAttribute(t);
|
|
7934
7938
|
return;
|
|
7935
7939
|
}
|
|
7936
|
-
o.setAttribute(t,
|
|
7940
|
+
o.setAttribute(t, Ft(i));
|
|
7937
7941
|
}
|
|
7938
7942
|
function Bl(o) {
|
|
7939
7943
|
return o.nodeType === Node.TEXT_NODE && o.textContent.trim() === "";
|
|
@@ -7951,10 +7955,10 @@ function Vl(o, t) {
|
|
|
7951
7955
|
}
|
|
7952
7956
|
function r(n = !1, a = 1) {
|
|
7953
7957
|
s();
|
|
7954
|
-
const { left: l, top: d, width:
|
|
7955
|
-
if (n || t(), !
|
|
7958
|
+
const { left: l, top: d, width: u, height: c } = o.getBoundingClientRect();
|
|
7959
|
+
if (n || t(), !u || !c)
|
|
7956
7960
|
return;
|
|
7957
|
-
const p = Math.floor(d), m = Math.floor(i.clientWidth - (l +
|
|
7961
|
+
const p = Math.floor(d), m = Math.floor(i.clientWidth - (l + u)), _ = Math.floor(i.clientHeight - (d + c)), x = Math.floor(l), I = {
|
|
7958
7962
|
rootMargin: `${-p}px ${-m}px ${-_}px ${-x}px`,
|
|
7959
7963
|
threshold: Math.max(0, Math.min(1, a)) || 1
|
|
7960
7964
|
};
|
|
@@ -7977,10 +7981,10 @@ function Vl(o, t) {
|
|
|
7977
7981
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
7978
7982
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
7979
7983
|
*/
|
|
7980
|
-
const
|
|
7984
|
+
const Gt = {
|
|
7981
7985
|
start: "top",
|
|
7982
7986
|
end: "bottom"
|
|
7983
|
-
},
|
|
7987
|
+
}, Jt = {
|
|
7984
7988
|
start: "left",
|
|
7985
7989
|
end: "right"
|
|
7986
7990
|
}, No = new ResizeObserver((o) => {
|
|
@@ -8132,14 +8136,14 @@ const Kt = {
|
|
|
8132
8136
|
e,
|
|
8133
8137
|
a,
|
|
8134
8138
|
this.noVerticalOverlap,
|
|
8135
|
-
|
|
8139
|
+
Gt,
|
|
8136
8140
|
this,
|
|
8137
8141
|
i
|
|
8138
8142
|
), d = this.__calculatePositionInOneDimension(
|
|
8139
8143
|
e,
|
|
8140
8144
|
a,
|
|
8141
8145
|
this.noHorizontalOverlap,
|
|
8142
|
-
|
|
8146
|
+
Jt,
|
|
8143
8147
|
this,
|
|
8144
8148
|
r
|
|
8145
8149
|
);
|
|
@@ -8156,7 +8160,7 @@ const Kt = {
|
|
|
8156
8160
|
this.__margins,
|
|
8157
8161
|
n,
|
|
8158
8162
|
this.noHorizontalOverlap,
|
|
8159
|
-
|
|
8163
|
+
Jt
|
|
8160
8164
|
);
|
|
8161
8165
|
}
|
|
8162
8166
|
__shouldAlignStartVertically(e) {
|
|
@@ -8170,12 +8174,12 @@ const Kt = {
|
|
|
8170
8174
|
this.__margins,
|
|
8171
8175
|
r,
|
|
8172
8176
|
this.noVerticalOverlap,
|
|
8173
|
-
|
|
8177
|
+
Gt
|
|
8174
8178
|
);
|
|
8175
8179
|
}
|
|
8176
8180
|
// eslint-disable-next-line @typescript-eslint/max-params
|
|
8177
8181
|
__shouldAlignStart(e, i, s, r, n, a, l) {
|
|
8178
|
-
const d = s - e[a ? l.end : l.start] - r[l.end],
|
|
8182
|
+
const d = s - e[a ? l.end : l.start] - r[l.end], u = e[a ? l.start : l.end] - r[l.start], c = n ? d : u, m = c > (n ? u : d) || c > i;
|
|
8179
8183
|
return n === m;
|
|
8180
8184
|
}
|
|
8181
8185
|
/**
|
|
@@ -8187,7 +8191,7 @@ const Kt = {
|
|
|
8187
8191
|
__adjustBottomProperty(e, i, s) {
|
|
8188
8192
|
let r;
|
|
8189
8193
|
if (e === i.end) {
|
|
8190
|
-
if (i.end ===
|
|
8194
|
+
if (i.end === Gt.end) {
|
|
8191
8195
|
const n = Math.min(window.innerHeight, document.documentElement.clientHeight);
|
|
8192
8196
|
if (s > n && this.__oldViewportHeight) {
|
|
8193
8197
|
const a = this.__oldViewportHeight - n;
|
|
@@ -8195,7 +8199,7 @@ const Kt = {
|
|
|
8195
8199
|
}
|
|
8196
8200
|
this.__oldViewportHeight = n;
|
|
8197
8201
|
}
|
|
8198
|
-
if (i.end ===
|
|
8202
|
+
if (i.end === Jt.end) {
|
|
8199
8203
|
const n = Math.min(window.innerWidth, document.documentElement.clientWidth);
|
|
8200
8204
|
if (s > n && this.__oldViewportWidth) {
|
|
8201
8205
|
const a = this.__oldViewportWidth - n;
|
|
@@ -8212,7 +8216,7 @@ const Kt = {
|
|
|
8212
8216
|
*/
|
|
8213
8217
|
// eslint-disable-next-line @typescript-eslint/max-params
|
|
8214
8218
|
__calculatePositionInOneDimension(e, i, s, r, n, a) {
|
|
8215
|
-
const l = a ? r.start : r.end, d = a ? r.end : r.start,
|
|
8219
|
+
const l = a ? r.start : r.end, d = a ? r.end : r.start, u = parseFloat(n.style[l] || getComputedStyle(n)[l]), c = this.__adjustBottomProperty(l, r, u), p = i[a ? r.start : r.end] - e[s === a ? r.end : r.start], m = c ? `${c}px` : `${u + p * (a ? -1 : 1)}px`;
|
|
8216
8220
|
return {
|
|
8217
8221
|
[l]: m,
|
|
8218
8222
|
[d]: ""
|
|
@@ -8273,12 +8277,12 @@ const Yl = k`
|
|
|
8273
8277
|
B("vaadin-date-picker-overlay", [ml, Yl], {
|
|
8274
8278
|
moduleId: "vaadin-date-picker-overlay-styles"
|
|
8275
8279
|
});
|
|
8276
|
-
class Wl extends jl(
|
|
8280
|
+
class Wl extends jl(It(Se(ve))) {
|
|
8277
8281
|
static get is() {
|
|
8278
8282
|
return "vaadin-date-picker-overlay";
|
|
8279
8283
|
}
|
|
8280
8284
|
static get template() {
|
|
8281
|
-
return
|
|
8285
|
+
return Oe`
|
|
8282
8286
|
<div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
|
|
8283
8287
|
<div part="overlay" id="overlay">
|
|
8284
8288
|
<div part="content" id="content">
|
|
@@ -8289,7 +8293,7 @@ class Wl extends jl(Mt(ke(ve))) {
|
|
|
8289
8293
|
}
|
|
8290
8294
|
}
|
|
8291
8295
|
de(Wl);
|
|
8292
|
-
const ql = /\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,
|
|
8296
|
+
const ql = /\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i, xt = window.Vaadin && window.Vaadin.Flow && window.Vaadin.Flow.clients;
|
|
8293
8297
|
function Kl() {
|
|
8294
8298
|
function o() {
|
|
8295
8299
|
return !0;
|
|
@@ -8298,7 +8302,7 @@ function Kl() {
|
|
|
8298
8302
|
}
|
|
8299
8303
|
function Gl() {
|
|
8300
8304
|
try {
|
|
8301
|
-
return Jl() ? !0 : Xl() ?
|
|
8305
|
+
return Jl() ? !0 : Xl() ? xt ? !Zl() : !Kl() : !1;
|
|
8302
8306
|
} catch (o) {
|
|
8303
8307
|
return !1;
|
|
8304
8308
|
}
|
|
@@ -8310,7 +8314,7 @@ function Xl() {
|
|
|
8310
8314
|
return ["localhost", "127.0.0.1"].indexOf(window.location.hostname) >= 0;
|
|
8311
8315
|
}
|
|
8312
8316
|
function Zl() {
|
|
8313
|
-
return !!(
|
|
8317
|
+
return !!(xt && Object.keys(xt).map((t) => xt[t]).filter((t) => t.productionMode).length > 0);
|
|
8314
8318
|
}
|
|
8315
8319
|
function tr(o, t) {
|
|
8316
8320
|
if (typeof o != "function")
|
|
@@ -8825,13 +8829,13 @@ const ed = function() {
|
|
|
8825
8829
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
8826
8830
|
*/
|
|
8827
8831
|
let zo = 0, ir = 0;
|
|
8828
|
-
const
|
|
8829
|
-
let
|
|
8832
|
+
const Le = [];
|
|
8833
|
+
let yi = !1;
|
|
8830
8834
|
function td() {
|
|
8831
|
-
|
|
8832
|
-
const o =
|
|
8835
|
+
yi = !1;
|
|
8836
|
+
const o = Le.length;
|
|
8833
8837
|
for (let t = 0; t < o; t++) {
|
|
8834
|
-
const e =
|
|
8838
|
+
const e = Le[t];
|
|
8835
8839
|
if (e)
|
|
8836
8840
|
try {
|
|
8837
8841
|
e();
|
|
@@ -8841,9 +8845,9 @@ function td() {
|
|
|
8841
8845
|
});
|
|
8842
8846
|
}
|
|
8843
8847
|
}
|
|
8844
|
-
|
|
8848
|
+
Le.splice(0, o), ir += o;
|
|
8845
8849
|
}
|
|
8846
|
-
const
|
|
8850
|
+
const kt = {
|
|
8847
8851
|
/**
|
|
8848
8852
|
* Returns a sub-module with the async interface providing the provided
|
|
8849
8853
|
* delay.
|
|
@@ -8934,7 +8938,7 @@ const Dt = {
|
|
|
8934
8938
|
* @return {number} Handle used for canceling task
|
|
8935
8939
|
*/
|
|
8936
8940
|
run(o) {
|
|
8937
|
-
|
|
8941
|
+
yi || (yi = !0, queueMicrotask(() => td())), Le.push(o);
|
|
8938
8942
|
const t = zo;
|
|
8939
8943
|
return zo += 1, t;
|
|
8940
8944
|
},
|
|
@@ -8948,9 +8952,9 @@ const Dt = {
|
|
|
8948
8952
|
cancel(o) {
|
|
8949
8953
|
const t = o - ir;
|
|
8950
8954
|
if (t >= 0) {
|
|
8951
|
-
if (!
|
|
8955
|
+
if (!Le[t])
|
|
8952
8956
|
throw new Error(`invalid async handle: ${o}`);
|
|
8953
|
-
|
|
8957
|
+
Le[t] = null;
|
|
8954
8958
|
}
|
|
8955
8959
|
}
|
|
8956
8960
|
};
|
|
@@ -8963,8 +8967,8 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
8963
8967
|
Code distributed by Google as part of the polymer project is also
|
|
8964
8968
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
8965
8969
|
*/
|
|
8966
|
-
const
|
|
8967
|
-
let
|
|
8970
|
+
const vi = /* @__PURE__ */ new Set();
|
|
8971
|
+
let Ve = class bi {
|
|
8968
8972
|
/**
|
|
8969
8973
|
* Creates a debouncer if no debouncer is passed as a parameter
|
|
8970
8974
|
* or it cancels an active debouncer otherwise. The following
|
|
@@ -9000,7 +9004,7 @@ let Be = class vi {
|
|
|
9000
9004
|
* @return {!Debouncer} Returns a debouncer object.
|
|
9001
9005
|
*/
|
|
9002
9006
|
static debounce(t, e, i) {
|
|
9003
|
-
return t instanceof
|
|
9007
|
+
return t instanceof bi ? t._cancelAsync() : t = new bi(), t.setConfig(e, i), t;
|
|
9004
9008
|
}
|
|
9005
9009
|
constructor() {
|
|
9006
9010
|
this._asyncModule = null, this._callback = null, this._timer = null;
|
|
@@ -9016,7 +9020,7 @@ let Be = class vi {
|
|
|
9016
9020
|
*/
|
|
9017
9021
|
setConfig(t, e) {
|
|
9018
9022
|
this._asyncModule = t, this._callback = e, this._timer = this._asyncModule.run(() => {
|
|
9019
|
-
this._timer = null,
|
|
9023
|
+
this._timer = null, vi.delete(this), this._callback();
|
|
9020
9024
|
});
|
|
9021
9025
|
}
|
|
9022
9026
|
/**
|
|
@@ -9025,7 +9029,7 @@ let Be = class vi {
|
|
|
9025
9029
|
* @return {void}
|
|
9026
9030
|
*/
|
|
9027
9031
|
cancel() {
|
|
9028
|
-
this.isActive() && (this._cancelAsync(),
|
|
9032
|
+
this.isActive() && (this._cancelAsync(), vi.delete(this));
|
|
9029
9033
|
}
|
|
9030
9034
|
/**
|
|
9031
9035
|
* Cancels a debouncer's async callback.
|
|
@@ -9056,7 +9060,7 @@ let Be = class vi {
|
|
|
9056
9060
|
}
|
|
9057
9061
|
};
|
|
9058
9062
|
function rd(o) {
|
|
9059
|
-
|
|
9063
|
+
vi.add(o);
|
|
9060
9064
|
}
|
|
9061
9065
|
/**
|
|
9062
9066
|
* @license
|
|
@@ -9069,15 +9073,15 @@ window.Vaadin.developmentModeCallback || (window.Vaadin.developmentModeCallback
|
|
|
9069
9073
|
window.Vaadin.developmentModeCallback["vaadin-usage-statistics"] = function() {
|
|
9070
9074
|
ed();
|
|
9071
9075
|
};
|
|
9072
|
-
let
|
|
9073
|
-
const Lo = /* @__PURE__ */ new Set(), or = (o) => class extends
|
|
9076
|
+
let Xt;
|
|
9077
|
+
const Lo = /* @__PURE__ */ new Set(), or = (o) => class extends It(o) {
|
|
9074
9078
|
/** @protected */
|
|
9075
9079
|
static finalize() {
|
|
9076
9080
|
super.finalize();
|
|
9077
9081
|
const { is: e } = this;
|
|
9078
|
-
e && !Lo.has(e) && (window.Vaadin.registrations.push(this), Lo.add(e), window.Vaadin.developmentModeCallback && (
|
|
9082
|
+
e && !Lo.has(e) && (window.Vaadin.registrations.push(this), Lo.add(e), window.Vaadin.developmentModeCallback && (Xt = Ve.debounce(Xt, od, () => {
|
|
9079
9083
|
window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]();
|
|
9080
|
-
}), rd(
|
|
9084
|
+
}), rd(Xt)));
|
|
9081
9085
|
}
|
|
9082
9086
|
constructor() {
|
|
9083
9087
|
super(), document.doctype === null && console.warn(
|
|
@@ -9450,7 +9454,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
9450
9454
|
Code distributed by Google as part of the polymer project is also
|
|
9451
9455
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
9452
9456
|
*/
|
|
9453
|
-
const
|
|
9457
|
+
const ud = (o) => o, nr = typeof document.head.style.touchAction == "string", wi = "__polymerGestures", Zt = "__polymerGesturesHandled", xi = "__polymerGesturesTouchAction", $o = 25, Ro = 5, cd = 2, hd = ["mousedown", "mousemove", "mouseup", "click"], pd = [0, 1, 4, 2], fd = function() {
|
|
9454
9458
|
try {
|
|
9455
9459
|
return new MouseEvent("test", { buttons: 1 }).buttons === 1;
|
|
9456
9460
|
} catch (o) {
|
|
@@ -9458,15 +9462,15 @@ const cd = !1, ud = (o) => o, Ri = typeof document.head.style.touchAction == "st
|
|
|
9458
9462
|
}
|
|
9459
9463
|
}();
|
|
9460
9464
|
function Hi(o) {
|
|
9461
|
-
return
|
|
9465
|
+
return hd.indexOf(o) > -1;
|
|
9462
9466
|
}
|
|
9463
|
-
let
|
|
9467
|
+
let md = !1;
|
|
9464
9468
|
(function() {
|
|
9465
9469
|
try {
|
|
9466
9470
|
const o = Object.defineProperty({}, "passive", {
|
|
9467
9471
|
// eslint-disable-next-line getter-return
|
|
9468
9472
|
get() {
|
|
9469
|
-
|
|
9473
|
+
md = !0;
|
|
9470
9474
|
}
|
|
9471
9475
|
});
|
|
9472
9476
|
window.addEventListener("test", null, o), window.removeEventListener("test", null, o);
|
|
@@ -9474,8 +9478,7 @@ let nr = !1;
|
|
|
9474
9478
|
}
|
|
9475
9479
|
})();
|
|
9476
9480
|
function _d(o) {
|
|
9477
|
-
|
|
9478
|
-
return { passive: !0 };
|
|
9481
|
+
Hi(o);
|
|
9479
9482
|
}
|
|
9480
9483
|
const gd = navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u), yd = {
|
|
9481
9484
|
button: !0,
|
|
@@ -9488,13 +9491,13 @@ const gd = navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u), yd = {
|
|
|
9488
9491
|
select: !0,
|
|
9489
9492
|
textarea: !0
|
|
9490
9493
|
};
|
|
9491
|
-
function
|
|
9494
|
+
function Ee(o) {
|
|
9492
9495
|
const t = o.type;
|
|
9493
9496
|
if (!Hi(t))
|
|
9494
9497
|
return !1;
|
|
9495
9498
|
if (t === "mousemove") {
|
|
9496
9499
|
let i = o.buttons === void 0 ? 1 : o.buttons;
|
|
9497
|
-
return o instanceof window.MouseEvent && !
|
|
9500
|
+
return o instanceof window.MouseEvent && !fd && (i = pd[o.which] || 0), !!(i & 1);
|
|
9498
9501
|
}
|
|
9499
9502
|
return (o.button === void 0 ? 0 : o.button) === 0;
|
|
9500
9503
|
}
|
|
@@ -9515,10 +9518,6 @@ function vd(o) {
|
|
|
9515
9518
|
return !1;
|
|
9516
9519
|
}
|
|
9517
9520
|
const he = {
|
|
9518
|
-
mouse: {
|
|
9519
|
-
target: null,
|
|
9520
|
-
mouseIgnoreJob: null
|
|
9521
|
-
},
|
|
9522
9521
|
touch: {
|
|
9523
9522
|
x: 0,
|
|
9524
9523
|
y: 0,
|
|
@@ -9530,8 +9529,8 @@ function bd(o) {
|
|
|
9530
9529
|
let t = "auto";
|
|
9531
9530
|
const e = lr(o);
|
|
9532
9531
|
for (let i = 0, s; i < e.length; i++)
|
|
9533
|
-
if (s = e[i], s[
|
|
9534
|
-
t = s[
|
|
9532
|
+
if (s = e[i], s[xi]) {
|
|
9533
|
+
t = s[xi];
|
|
9535
9534
|
break;
|
|
9536
9535
|
}
|
|
9537
9536
|
return t;
|
|
@@ -9539,7 +9538,7 @@ function bd(o) {
|
|
|
9539
9538
|
function ar(o, t, e) {
|
|
9540
9539
|
o.movefn = t, o.upfn = e, document.addEventListener("mousemove", t), document.addEventListener("mouseup", e);
|
|
9541
9540
|
}
|
|
9542
|
-
function
|
|
9541
|
+
function $e(o) {
|
|
9543
9542
|
document.removeEventListener("mousemove", o.movefn), document.removeEventListener("mouseup", o.upfn), o.movefn = null, o.upfn = null;
|
|
9544
9543
|
}
|
|
9545
9544
|
const lr = window.ShadyDOM && window.ShadyDOM.noPatch ? window.ShadyDOM.composedPath : (o) => o.composedPath && o.composedPath() || [], Bi = {}, Ae = [];
|
|
@@ -9561,19 +9560,19 @@ function ye(o) {
|
|
|
9561
9560
|
return t.length > 0 ? t[0] : o.target;
|
|
9562
9561
|
}
|
|
9563
9562
|
function xd(o) {
|
|
9564
|
-
const t = o.type, i = o.currentTarget[
|
|
9563
|
+
const t = o.type, i = o.currentTarget[wi];
|
|
9565
9564
|
if (!i)
|
|
9566
9565
|
return;
|
|
9567
9566
|
const s = i[t];
|
|
9568
9567
|
if (!s)
|
|
9569
9568
|
return;
|
|
9570
|
-
if (!o[
|
|
9569
|
+
if (!o[Zt] && (o[Zt] = {}, t.startsWith("touch"))) {
|
|
9571
9570
|
const n = o.changedTouches[0];
|
|
9572
9571
|
if (t === "touchstart" && o.touches.length === 1 && (he.touch.id = n.identifier), he.touch.id !== n.identifier)
|
|
9573
9572
|
return;
|
|
9574
|
-
|
|
9573
|
+
nr || (t === "touchstart" || t === "touchmove") && Cd(o);
|
|
9575
9574
|
}
|
|
9576
|
-
const r = o[
|
|
9575
|
+
const r = o[Zt];
|
|
9577
9576
|
if (!r.skip) {
|
|
9578
9577
|
for (let n = 0, a; n < Ae.length; n++)
|
|
9579
9578
|
a = Ae[n], s[a.name] && !r[a.name] && a.flow && a.flow.start.indexOf(o.type) > -1 && a.reset && a.reset();
|
|
@@ -9592,7 +9591,7 @@ function Cd(o) {
|
|
|
9592
9591
|
const i = bd(o);
|
|
9593
9592
|
let s = !1;
|
|
9594
9593
|
const r = Math.abs(he.touch.x - t.clientX), n = Math.abs(he.touch.y - t.clientY);
|
|
9595
|
-
o.cancelable && (i === "none" ? s = !0 : i === "pan-x" ? s = n > r : i === "pan-y" && (s = r > n)), s ? o.preventDefault() :
|
|
9594
|
+
o.cancelable && (i === "none" ? s = !0 : i === "pan-x" ? s = n > r : i === "pan-y" && (s = r > n)), s ? o.preventDefault() : St("track");
|
|
9596
9595
|
}
|
|
9597
9596
|
}
|
|
9598
9597
|
function le(o, t, e) {
|
|
@@ -9600,8 +9599,8 @@ function le(o, t, e) {
|
|
|
9600
9599
|
}
|
|
9601
9600
|
function Ad(o, t, e) {
|
|
9602
9601
|
const i = Bi[t], s = i.deps, r = i.name;
|
|
9603
|
-
let n = o[
|
|
9604
|
-
n || (o[
|
|
9602
|
+
let n = o[wi];
|
|
9603
|
+
n || (o[wi] = n = {});
|
|
9605
9604
|
for (let a = 0, l, d; a < s.length; a++)
|
|
9606
9605
|
l = s[a], !(gd && Hi(l) && l !== "click") && (d = n[l], d || (n[l] = d = { _count: 0 }), d._count === 0 && o.addEventListener(l, xd, _d(l)), d[r] = (d[r] || 0) + 1, d._count = (d._count || 0) + 1);
|
|
9607
9606
|
o.addEventListener(t, e), i.touchAction && dr(o, i.touchAction);
|
|
@@ -9621,9 +9620,9 @@ function Td(o) {
|
|
|
9621
9620
|
return null;
|
|
9622
9621
|
}
|
|
9623
9622
|
function dr(o, t) {
|
|
9624
|
-
|
|
9623
|
+
nr && o instanceof HTMLElement && sd.run(() => {
|
|
9625
9624
|
o.style.touchAction = t;
|
|
9626
|
-
}), o[
|
|
9625
|
+
}), o[xi] = t;
|
|
9627
9626
|
}
|
|
9628
9627
|
function Ui(o, t, e) {
|
|
9629
9628
|
const i = new Event(t, { bubbles: !0, cancelable: !0, composed: !0 });
|
|
@@ -9635,7 +9634,7 @@ function Ui(o, t, e) {
|
|
|
9635
9634
|
s && s.preventDefault && s.preventDefault();
|
|
9636
9635
|
}
|
|
9637
9636
|
}
|
|
9638
|
-
function
|
|
9637
|
+
function St(o) {
|
|
9639
9638
|
const t = Td(o);
|
|
9640
9639
|
t.info && (t.info.prevent = !0);
|
|
9641
9640
|
}
|
|
@@ -9656,7 +9655,7 @@ Vi({
|
|
|
9656
9655
|
* @return {void}
|
|
9657
9656
|
*/
|
|
9658
9657
|
reset() {
|
|
9659
|
-
|
|
9658
|
+
$e(this.info);
|
|
9660
9659
|
},
|
|
9661
9660
|
/**
|
|
9662
9661
|
* @this {GestureRecognizer}
|
|
@@ -9664,14 +9663,14 @@ Vi({
|
|
|
9664
9663
|
* @return {void}
|
|
9665
9664
|
*/
|
|
9666
9665
|
mousedown(o) {
|
|
9667
|
-
if (!
|
|
9666
|
+
if (!Ee(o))
|
|
9668
9667
|
return;
|
|
9669
9668
|
const t = ye(o), e = this, i = (r) => {
|
|
9670
|
-
|
|
9669
|
+
Ee(r) || (Je("up", t, r), $e(e.info));
|
|
9671
9670
|
}, s = (r) => {
|
|
9672
|
-
|
|
9671
|
+
Ee(r) && Je("up", t, r), $e(e.info);
|
|
9673
9672
|
};
|
|
9674
|
-
ar(this.info, i, s),
|
|
9673
|
+
ar(this.info, i, s), Je("down", t, o);
|
|
9675
9674
|
},
|
|
9676
9675
|
/**
|
|
9677
9676
|
* @this {GestureRecognizer}
|
|
@@ -9679,7 +9678,7 @@ Vi({
|
|
|
9679
9678
|
* @return {void}
|
|
9680
9679
|
*/
|
|
9681
9680
|
touchstart(o) {
|
|
9682
|
-
|
|
9681
|
+
Je("down", ye(o), o.changedTouches[0], o);
|
|
9683
9682
|
},
|
|
9684
9683
|
/**
|
|
9685
9684
|
* @this {GestureRecognizer}
|
|
@@ -9687,17 +9686,17 @@ Vi({
|
|
|
9687
9686
|
* @return {void}
|
|
9688
9687
|
*/
|
|
9689
9688
|
touchend(o) {
|
|
9690
|
-
|
|
9689
|
+
Je("up", ye(o), o.changedTouches[0], o);
|
|
9691
9690
|
}
|
|
9692
9691
|
});
|
|
9693
|
-
function
|
|
9692
|
+
function Je(o, t, e, i) {
|
|
9694
9693
|
t && Ui(t, o, {
|
|
9695
9694
|
x: e.clientX,
|
|
9696
9695
|
y: e.clientY,
|
|
9697
9696
|
sourceEvent: e,
|
|
9698
9697
|
preventer: i,
|
|
9699
9698
|
prevent(s) {
|
|
9700
|
-
return
|
|
9699
|
+
return St(s);
|
|
9701
9700
|
}
|
|
9702
9701
|
});
|
|
9703
9702
|
}
|
|
@@ -9718,7 +9717,7 @@ Vi({
|
|
|
9718
9717
|
moves: [],
|
|
9719
9718
|
/** @this {GestureInfo} */
|
|
9720
9719
|
addMove(o) {
|
|
9721
|
-
this.moves.length >
|
|
9720
|
+
this.moves.length > cd && this.moves.shift(), this.moves.push(o);
|
|
9722
9721
|
},
|
|
9723
9722
|
movefn: null,
|
|
9724
9723
|
upfn: null,
|
|
@@ -9729,7 +9728,7 @@ Vi({
|
|
|
9729
9728
|
* @return {void}
|
|
9730
9729
|
*/
|
|
9731
9730
|
reset() {
|
|
9732
|
-
this.info.state = "start", this.info.started = !1, this.info.moves = [], this.info.x = 0, this.info.y = 0, this.info.prevent = !1,
|
|
9731
|
+
this.info.state = "start", this.info.started = !1, this.info.moves = [], this.info.x = 0, this.info.y = 0, this.info.prevent = !1, $e(this.info);
|
|
9733
9732
|
},
|
|
9734
9733
|
/**
|
|
9735
9734
|
* @this {GestureRecognizer}
|
|
@@ -9737,13 +9736,13 @@ Vi({
|
|
|
9737
9736
|
* @return {void}
|
|
9738
9737
|
*/
|
|
9739
9738
|
mousedown(o) {
|
|
9740
|
-
if (!
|
|
9739
|
+
if (!Ee(o))
|
|
9741
9740
|
return;
|
|
9742
9741
|
const t = ye(o), e = this, i = (r) => {
|
|
9743
9742
|
const n = r.clientX, a = r.clientY;
|
|
9744
|
-
Ho(e.info, n, a) && (e.info.state = e.info.started ? r.type === "mouseup" ? "end" : "track" : "start", e.info.state === "start" &&
|
|
9743
|
+
Ho(e.info, n, a) && (e.info.state = e.info.started ? r.type === "mouseup" ? "end" : "track" : "start", e.info.state === "start" && St("tap"), e.info.addMove({ x: n, y: a }), Ee(r) || (e.info.state = "end", $e(e.info)), t && Qt(e.info, t, r), e.info.started = !0);
|
|
9745
9744
|
}, s = (r) => {
|
|
9746
|
-
e.info.started && i(r),
|
|
9745
|
+
e.info.started && i(r), $e(e.info);
|
|
9747
9746
|
};
|
|
9748
9747
|
ar(this.info, i, s), this.info.x = o.clientX, this.info.y = o.clientY;
|
|
9749
9748
|
},
|
|
@@ -9763,7 +9762,7 @@ Vi({
|
|
|
9763
9762
|
*/
|
|
9764
9763
|
touchmove(o) {
|
|
9765
9764
|
const t = ye(o), e = o.changedTouches[0], i = e.clientX, s = e.clientY;
|
|
9766
|
-
Ho(this.info, i, s) && (this.info.state === "start" &&
|
|
9765
|
+
Ho(this.info, i, s) && (this.info.state === "start" && St("tap"), this.info.addMove({ x: i, y: s }), Qt(this.info, t, e), this.info.state = "track", this.info.started = !0);
|
|
9767
9766
|
},
|
|
9768
9767
|
/**
|
|
9769
9768
|
* @this {GestureRecognizer}
|
|
@@ -9772,7 +9771,7 @@ Vi({
|
|
|
9772
9771
|
*/
|
|
9773
9772
|
touchend(o) {
|
|
9774
9773
|
const t = ye(o), e = o.changedTouches[0];
|
|
9775
|
-
this.info.started && (this.info.state = "end", this.info.addMove({ x: e.clientX, y: e.clientY }),
|
|
9774
|
+
this.info.started && (this.info.state = "end", this.info.addMove({ x: e.clientX, y: e.clientY }), Qt(this.info, t, e));
|
|
9776
9775
|
}
|
|
9777
9776
|
});
|
|
9778
9777
|
function Ho(o, t, e) {
|
|
@@ -9783,7 +9782,7 @@ function Ho(o, t, e) {
|
|
|
9783
9782
|
const i = Math.abs(o.x - t), s = Math.abs(o.y - e);
|
|
9784
9783
|
return i >= Ro || s >= Ro;
|
|
9785
9784
|
}
|
|
9786
|
-
function
|
|
9785
|
+
function Qt(o, t, e) {
|
|
9787
9786
|
if (!t)
|
|
9788
9787
|
return;
|
|
9789
9788
|
const i = o.moves[o.moves.length - 2], s = o.moves[o.moves.length - 1], r = s.x - o.x, n = s.y - o.y;
|
|
@@ -9828,7 +9827,7 @@ Vi({
|
|
|
9828
9827
|
* @return {void}
|
|
9829
9828
|
*/
|
|
9830
9829
|
mousedown(o) {
|
|
9831
|
-
|
|
9830
|
+
Ee(o) && (this.info.x = o.clientX, this.info.y = o.clientY);
|
|
9832
9831
|
},
|
|
9833
9832
|
/**
|
|
9834
9833
|
* @this {GestureRecognizer}
|
|
@@ -9836,7 +9835,7 @@ Vi({
|
|
|
9836
9835
|
* @return {void}
|
|
9837
9836
|
*/
|
|
9838
9837
|
click(o) {
|
|
9839
|
-
|
|
9838
|
+
Ee(o) && Bo(this.info, o);
|
|
9840
9839
|
},
|
|
9841
9840
|
/**
|
|
9842
9841
|
* @this {GestureRecognizer}
|
|
@@ -9873,7 +9872,7 @@ function Bo(o, t, e) {
|
|
|
9873
9872
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
9874
9873
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9875
9874
|
*/
|
|
9876
|
-
const
|
|
9875
|
+
const ur = j(
|
|
9877
9876
|
(o) => class extends o {
|
|
9878
9877
|
static get properties() {
|
|
9879
9878
|
return {
|
|
@@ -9918,7 +9917,7 @@ const cr = j(
|
|
|
9918
9917
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
9919
9918
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9920
9919
|
*/
|
|
9921
|
-
const
|
|
9920
|
+
const zt = j(
|
|
9922
9921
|
(o) => class extends o {
|
|
9923
9922
|
/** @protected */
|
|
9924
9923
|
ready() {
|
|
@@ -9980,7 +9979,7 @@ const Ft = j(
|
|
|
9980
9979
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
9981
9980
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
9982
9981
|
*/
|
|
9983
|
-
const Ed = (o) => class extends
|
|
9982
|
+
const Ed = (o) => class extends ur(zt(o)) {
|
|
9984
9983
|
/**
|
|
9985
9984
|
* An array of activation keys.
|
|
9986
9985
|
*
|
|
@@ -10050,7 +10049,7 @@ const ji = j(
|
|
|
10050
10049
|
* @return {boolean}
|
|
10051
10050
|
*/
|
|
10052
10051
|
get _keyboardActive() {
|
|
10053
|
-
return
|
|
10052
|
+
return $i();
|
|
10054
10053
|
}
|
|
10055
10054
|
/** @protected */
|
|
10056
10055
|
ready() {
|
|
@@ -10100,7 +10099,7 @@ const ji = j(
|
|
|
10100
10099
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
10101
10100
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10102
10101
|
*/
|
|
10103
|
-
const
|
|
10102
|
+
const cr = (o) => class extends ur(o) {
|
|
10104
10103
|
static get properties() {
|
|
10105
10104
|
return {
|
|
10106
10105
|
/**
|
|
@@ -10151,7 +10150,7 @@ const ur = (o) => class extends cr(o) {
|
|
|
10151
10150
|
* Copyright (c) 2017 - 2024 Vaadin Ltd.
|
|
10152
10151
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10153
10152
|
*/
|
|
10154
|
-
const Dd = (o) => class extends Ed(
|
|
10153
|
+
const Dd = (o) => class extends Ed(cr(ji(o))) {
|
|
10155
10154
|
static get properties() {
|
|
10156
10155
|
return {
|
|
10157
10156
|
/**
|
|
@@ -10207,12 +10206,12 @@ const Dd = (o) => class extends Ed(ur(ji(o))) {
|
|
|
10207
10206
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10208
10207
|
*/
|
|
10209
10208
|
B("vaadin-button", ld, { moduleId: "vaadin-button-styles" });
|
|
10210
|
-
class kd extends Dd(or(
|
|
10209
|
+
class kd extends Dd(or(Se(Ye(ve)))) {
|
|
10211
10210
|
static get is() {
|
|
10212
10211
|
return "vaadin-button";
|
|
10213
10212
|
}
|
|
10214
10213
|
static get template() {
|
|
10215
|
-
return dd(
|
|
10214
|
+
return dd(Oe);
|
|
10216
10215
|
}
|
|
10217
10216
|
/** @protected */
|
|
10218
10217
|
ready() {
|
|
@@ -10233,11 +10232,11 @@ function Sd(o) {
|
|
|
10233
10232
|
const r = i.getTime() - s.getTime(), n = Math.round(r / (24 * 3600 * 1e3));
|
|
10234
10233
|
return Math.floor(n / 7 + 1);
|
|
10235
10234
|
}
|
|
10236
|
-
function
|
|
10235
|
+
function Ci(o) {
|
|
10237
10236
|
const t = new Date(o);
|
|
10238
10237
|
return t.setHours(0, 0, 0, 0), t;
|
|
10239
10238
|
}
|
|
10240
|
-
function pe(o, t, e =
|
|
10239
|
+
function pe(o, t, e = Ci) {
|
|
10241
10240
|
return o instanceof Date && t instanceof Date && e(o).getTime() === e(t).getTime();
|
|
10242
10241
|
}
|
|
10243
10242
|
function Yi(o) {
|
|
@@ -10247,7 +10246,7 @@ function Yi(o) {
|
|
|
10247
10246
|
year: o.getFullYear()
|
|
10248
10247
|
};
|
|
10249
10248
|
}
|
|
10250
|
-
function
|
|
10249
|
+
function Ue(o, t, e, i) {
|
|
10251
10250
|
let s = !1;
|
|
10252
10251
|
if (typeof i == "function" && o) {
|
|
10253
10252
|
const r = Yi(o);
|
|
@@ -10277,7 +10276,7 @@ function Pd(o, t, e = 0, i = 1) {
|
|
|
10277
10276
|
let s = t + Math.floor(o.getFullYear() / 100) * 100;
|
|
10278
10277
|
return o < new Date(s - 50, e, i) ? s -= 100 : o > new Date(s + 50, e, i) && (s += 100), s;
|
|
10279
10278
|
}
|
|
10280
|
-
function
|
|
10279
|
+
function Xe(o) {
|
|
10281
10280
|
const t = /^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(o);
|
|
10282
10281
|
if (!t)
|
|
10283
10282
|
return;
|
|
@@ -10307,7 +10306,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
10307
10306
|
Code distributed by Google as part of the polymer project is also
|
|
10308
10307
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
10309
10308
|
*/
|
|
10310
|
-
class
|
|
10309
|
+
class Pt {
|
|
10311
10310
|
constructor() {
|
|
10312
10311
|
this._asyncModule = null, this._callback = null, this._timer = null;
|
|
10313
10312
|
}
|
|
@@ -10395,7 +10394,7 @@ class St {
|
|
|
10395
10394
|
* @return {!Debouncer} Returns a debouncer object.
|
|
10396
10395
|
*/
|
|
10397
10396
|
static debounce(t, e, i) {
|
|
10398
|
-
return t instanceof
|
|
10397
|
+
return t instanceof Pt ? t._cancelAsync() : t = new Pt(), t.setConfig(e, i), t;
|
|
10399
10398
|
}
|
|
10400
10399
|
}
|
|
10401
10400
|
let ct = /* @__PURE__ */ new Set();
|
|
@@ -10583,7 +10582,7 @@ class mr extends HTMLElement {
|
|
|
10583
10582
|
const t = this.$.scroller.scrollTop;
|
|
10584
10583
|
(t < this._bufferHeight || t > this._initialScroll * 2 - this._bufferHeight) && (this._initialIndex = ~~this.position, this._reset());
|
|
10585
10584
|
const e = this.itemHeight + this.bufferOffset, i = t > this._buffers[1].translateY + e, s = t < this._buffers[0].translateY + e;
|
|
10586
|
-
(i || s) && (this._translateBuffer(s), this._updateClones()), this._preventScrollEvent || (this.dispatchEvent(new CustomEvent("custom-scroll", { bubbles: !1, composed: !0 })), this._mayHaveMomentum = !0), this._preventScrollEvent = !1, this._debouncerScrollFinish =
|
|
10585
|
+
(i || s) && (this._translateBuffer(s), this._updateClones()), this._preventScrollEvent || (this.dispatchEvent(new CustomEvent("custom-scroll", { bubbles: !1, composed: !0 })), this._mayHaveMomentum = !0), this._preventScrollEvent = !1, this._debouncerScrollFinish = Ve.debounce(this._debouncerScrollFinish, kt.after(200), () => {
|
|
10587
10586
|
const r = this.$.scroller.getBoundingClientRect();
|
|
10588
10587
|
!this._isVisible(this._buffers[0], r) && !this._isVisible(this._buffers[1], r) && (this.position = this.position);
|
|
10589
10588
|
});
|
|
@@ -10592,7 +10591,7 @@ class mr extends HTMLElement {
|
|
|
10592
10591
|
_reset() {
|
|
10593
10592
|
this._scrollDisabled = !0, this.$.scroller.scrollTop = this._initialScroll, this._buffers[0].translateY = this._initialScroll - this._bufferHeight, this._buffers[1].translateY = this._initialScroll, this._buffers.forEach((t) => {
|
|
10594
10593
|
t.style.transform = `translate3d(0, ${t.translateY}px, 0)`;
|
|
10595
|
-
}), this._buffers[0].updated = this._buffers[1].updated = !1, this._updateClones(!0), this._debouncerUpdateClones =
|
|
10594
|
+
}), this._buffers[0].updated = this._buffers[1].updated = !1, this._updateClones(!0), this._debouncerUpdateClones = Ve.debounce(this._debouncerUpdateClones, kt.after(200), () => {
|
|
10596
10595
|
this._buffers[0].updated = this._buffers[1].updated = !1, this._updateClones();
|
|
10597
10596
|
}), this._scrollDisabled = !1;
|
|
10598
10597
|
}
|
|
@@ -10785,12 +10784,12 @@ const Ld = (o) => class extends o {
|
|
|
10785
10784
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
10786
10785
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
10787
10786
|
*/
|
|
10788
|
-
class $d extends
|
|
10787
|
+
class $d extends Se(Ld(ve)) {
|
|
10789
10788
|
static get is() {
|
|
10790
10789
|
return "vaadin-date-picker-year";
|
|
10791
10790
|
}
|
|
10792
10791
|
static get template() {
|
|
10793
|
-
return
|
|
10792
|
+
return Oe`
|
|
10794
10793
|
<style>
|
|
10795
10794
|
:host {
|
|
10796
10795
|
display: block;
|
|
@@ -10889,21 +10888,21 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
10889
10888
|
Code distributed by Google as part of the polymer project is also
|
|
10890
10889
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
10891
10890
|
*/
|
|
10892
|
-
let
|
|
10893
|
-
function
|
|
10894
|
-
return
|
|
10891
|
+
let Ai = null;
|
|
10892
|
+
function Ti() {
|
|
10893
|
+
return Ai;
|
|
10895
10894
|
}
|
|
10896
|
-
|
|
10895
|
+
Ti.prototype = Object.create(HTMLTemplateElement.prototype, {
|
|
10897
10896
|
constructor: {
|
|
10898
|
-
value:
|
|
10897
|
+
value: Ti,
|
|
10899
10898
|
writable: !0
|
|
10900
10899
|
}
|
|
10901
10900
|
});
|
|
10902
|
-
const yr =
|
|
10901
|
+
const yr = zi(Ti), Hd = Ki(yr);
|
|
10903
10902
|
function Bd(o, t) {
|
|
10904
|
-
|
|
10903
|
+
Ai = o, Object.setPrototypeOf(o, t.prototype), new t(), Ai = null;
|
|
10905
10904
|
}
|
|
10906
|
-
const Vd =
|
|
10905
|
+
const Vd = zi(class {
|
|
10907
10906
|
});
|
|
10908
10907
|
function Ud(o, t) {
|
|
10909
10908
|
for (let e = 0; e < t.length; e++) {
|
|
@@ -11057,7 +11056,7 @@ function Vo(o) {
|
|
|
11057
11056
|
}
|
|
11058
11057
|
function Yd(o, t, e) {
|
|
11059
11058
|
let i = e.mutableData ? jd : be;
|
|
11060
|
-
|
|
11059
|
+
Ei.mixin && (i = Ei.mixin(i));
|
|
11061
11060
|
let s = class extends i {
|
|
11062
11061
|
};
|
|
11063
11062
|
return s.prototype.__templatizeOptions = e, s.prototype._bindTemplate(o), Kd(s, o, t, e), s;
|
|
@@ -11144,8 +11143,8 @@ function Jd() {
|
|
|
11144
11143
|
t.__dataHost._setPendingPropertyOrPath("_host_" + e, i[e], !0, !0);
|
|
11145
11144
|
};
|
|
11146
11145
|
}
|
|
11147
|
-
function
|
|
11148
|
-
if (
|
|
11146
|
+
function Ei(o, t, e) {
|
|
11147
|
+
if (Et && !Vo(o))
|
|
11149
11148
|
throw new Error("strictTemplatePolicy: template owner not trusted");
|
|
11150
11149
|
if (e = /** @type {!TemplatizeOptions} */
|
|
11151
11150
|
e || {}, o.__templatizeOwner)
|
|
@@ -11218,8 +11217,8 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
|
|
|
11218
11217
|
Code distributed by Google as part of the polymer project is also
|
|
11219
11218
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
|
11220
11219
|
*/
|
|
11221
|
-
const
|
|
11222
|
-
class jo extends
|
|
11220
|
+
const eu = Rd(ve);
|
|
11221
|
+
class jo extends eu {
|
|
11223
11222
|
// Not needed to find template; can be removed once the analyzer
|
|
11224
11223
|
// can find the tag name from customElements.define call
|
|
11225
11224
|
static get is() {
|
|
@@ -11426,7 +11425,7 @@ class jo extends ec {
|
|
|
11426
11425
|
return s.observe(this, { childList: !0 }), !1;
|
|
11427
11426
|
}
|
|
11428
11427
|
let i = {};
|
|
11429
|
-
i[this.as] = !0, i[this.indexAs] = !0, i[this.itemsIndexAs] = !0, this.__ctor =
|
|
11428
|
+
i[this.as] = !0, i[this.indexAs] = !0, i[this.itemsIndexAs] = !0, this.__ctor = Ei(e, this, {
|
|
11430
11429
|
mutableData: this.mutableData,
|
|
11431
11430
|
parentModel: !0,
|
|
11432
11431
|
instanceProps: i,
|
|
@@ -11450,7 +11449,7 @@ class jo extends ec {
|
|
|
11450
11449
|
if (sa(this.as, r)) {
|
|
11451
11450
|
let a = s[this.itemsIndexAs];
|
|
11452
11451
|
r == this.as && (this.items[a] = n);
|
|
11453
|
-
let l =
|
|
11452
|
+
let l = lt(this.as, `${JSCompiler_renameProperty("items", this)}.${a}`, r);
|
|
11454
11453
|
this.notifyPath(l, n);
|
|
11455
11454
|
}
|
|
11456
11455
|
}
|
|
@@ -11501,9 +11500,9 @@ class jo extends ec {
|
|
|
11501
11500
|
* @param {number=} delay Delay in ms to debounce by.
|
|
11502
11501
|
*/
|
|
11503
11502
|
__debounceRender(t, e = 0) {
|
|
11504
|
-
this.__renderDebouncer =
|
|
11503
|
+
this.__renderDebouncer = Pt.debounce(
|
|
11505
11504
|
this.__renderDebouncer,
|
|
11506
|
-
e > 0 ?
|
|
11505
|
+
e > 0 ? ua.after(e) : Is,
|
|
11507
11506
|
t.bind(this)
|
|
11508
11507
|
), Id(this.__renderDebouncer);
|
|
11509
11508
|
}
|
|
@@ -11674,7 +11673,7 @@ customElements.define(jo.is, jo);
|
|
|
11674
11673
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
11675
11674
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11676
11675
|
*/
|
|
11677
|
-
const
|
|
11676
|
+
const tu = (o) => class extends ji(o) {
|
|
11678
11677
|
static get properties() {
|
|
11679
11678
|
return {
|
|
11680
11679
|
/**
|
|
@@ -11780,7 +11779,7 @@ const tc = (o) => class extends ji(o) {
|
|
|
11780
11779
|
const r = new Date(0, 0);
|
|
11781
11780
|
r.setFullYear(e.getFullYear()), r.setMonth(e.getMonth()), r.setDate(1);
|
|
11782
11781
|
const n = new Date(0, 0);
|
|
11783
|
-
return n.setFullYear(e.getFullYear()), n.setMonth(e.getMonth() + 1), n.setDate(0), i && s && i.getMonth() === s.getMonth() && i.getMonth() === e.getMonth() && s.getDate() - i.getDate() >= 0 ? !1 : !
|
|
11782
|
+
return n.setFullYear(e.getFullYear()), n.setMonth(e.getMonth() + 1), n.setDate(0), i && s && i.getMonth() === s.getMonth() && i.getMonth() === e.getMonth() && s.getDate() - i.getDate() >= 0 ? !1 : !Ue(r, i, s) && !Ue(n, i, s);
|
|
11784
11783
|
}
|
|
11785
11784
|
/** @protected */
|
|
11786
11785
|
_getTitle(e, i) {
|
|
@@ -11807,9 +11806,9 @@ const tc = (o) => class extends ji(o) {
|
|
|
11807
11806
|
if (e === void 0 || i === void 0)
|
|
11808
11807
|
return [];
|
|
11809
11808
|
const { weekdays: s, weekdaysShort: r, firstDayOfWeek: n } = e, a = this._applyFirstDayOfWeek(r, n);
|
|
11810
|
-
return this._applyFirstDayOfWeek(s, n).map((d,
|
|
11809
|
+
return this._applyFirstDayOfWeek(s, n).map((d, u) => ({
|
|
11811
11810
|
weekDay: d,
|
|
11812
|
-
weekDayShort: a[
|
|
11811
|
+
weekDayShort: a[u]
|
|
11813
11812
|
})).slice(0, 7);
|
|
11814
11813
|
}
|
|
11815
11814
|
/** @private */
|
|
@@ -11872,7 +11871,7 @@ const tc = (o) => class extends ji(o) {
|
|
|
11872
11871
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
11873
11872
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11874
11873
|
*/
|
|
11875
|
-
const
|
|
11874
|
+
const iu = k`
|
|
11876
11875
|
:host {
|
|
11877
11876
|
display: block;
|
|
11878
11877
|
}
|
|
@@ -11934,12 +11933,12 @@ const ic = k`
|
|
|
11934
11933
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
11935
11934
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
11936
11935
|
*/
|
|
11937
|
-
B("vaadin-month-calendar",
|
|
11936
|
+
B("vaadin-month-calendar", iu, {
|
|
11938
11937
|
moduleId: "vaadin-month-calendar-styles"
|
|
11939
11938
|
});
|
|
11940
|
-
class
|
|
11939
|
+
class ou extends tu(Se(ve)) {
|
|
11941
11940
|
static get template() {
|
|
11942
|
-
return
|
|
11941
|
+
return Oe`
|
|
11943
11942
|
<div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
|
|
11944
11943
|
<table
|
|
11945
11944
|
id="monthGrid"
|
|
@@ -12015,7 +12014,7 @@ class oc extends tc(ke(ve)) {
|
|
|
12015
12014
|
/** @private */
|
|
12016
12015
|
// eslint-disable-next-line @typescript-eslint/max-params
|
|
12017
12016
|
__getDatePart(t, e, i, s, r, n) {
|
|
12018
|
-
const a = ["date"], l = t >
|
|
12017
|
+
const a = ["date"], l = t > Ci(/* @__PURE__ */ new Date()), d = t < Ci(/* @__PURE__ */ new Date());
|
|
12019
12018
|
return this.__isDayDisabled(t, s, r, n) && a.push("disabled"), this.__isDayFocused(t, e) && a.push("focused"), this.__isDaySelected(t, i) && a.push("selected"), this._isToday(t) && a.push("today"), d && a.push("past"), l && a.push("future"), a.join(" ");
|
|
12020
12019
|
}
|
|
12021
12020
|
/** @private */
|
|
@@ -12033,7 +12032,7 @@ class oc extends tc(ke(ve)) {
|
|
|
12033
12032
|
}
|
|
12034
12033
|
/** @private */
|
|
12035
12034
|
__isDayDisabled(t, e, i, s) {
|
|
12036
|
-
return !
|
|
12035
|
+
return !Ue(t, e, i, s);
|
|
12037
12036
|
}
|
|
12038
12037
|
/** @private */
|
|
12039
12038
|
__getDayAriaDisabled(t, e, i, s) {
|
|
@@ -12045,7 +12044,7 @@ class oc extends tc(ke(ve)) {
|
|
|
12045
12044
|
return this.__isDayFocused(t, e) ? "0" : "-1";
|
|
12046
12045
|
}
|
|
12047
12046
|
}
|
|
12048
|
-
de(
|
|
12047
|
+
de(ou);
|
|
12049
12048
|
/**
|
|
12050
12049
|
* @license
|
|
12051
12050
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
@@ -12079,7 +12078,7 @@ class vr {
|
|
|
12079
12078
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
12080
12079
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12081
12080
|
*/
|
|
12082
|
-
const
|
|
12081
|
+
const su = (o) => class extends o {
|
|
12083
12082
|
static get properties() {
|
|
12084
12083
|
return {
|
|
12085
12084
|
scrollDuration: {
|
|
@@ -12303,9 +12302,9 @@ const sc = (o) => class extends o {
|
|
|
12303
12302
|
e && (e.textContent = i && i.today, e.disabled = !this._isTodayAllowed(s, r, n));
|
|
12304
12303
|
}
|
|
12305
12304
|
// eslint-disable-next-line @typescript-eslint/max-params
|
|
12306
|
-
__updateCalendars(e, i, s, r, n, a, l, d,
|
|
12305
|
+
__updateCalendars(e, i, s, r, n, a, l, d, u, c) {
|
|
12307
12306
|
e && e.length && e.forEach((p) => {
|
|
12308
|
-
p.i18n = i, p.minDate = s, p.maxDate = r, p.isDateDisabled =
|
|
12307
|
+
p.i18n = i, p.minDate = s, p.maxDate = r, p.isDateDisabled = c, p.focusedDate = a, p.selectedDate = n, p.showWeekNumbers = l, p.ignoreTaps = d, u ? p.setAttribute("theme", u) : p.removeAttribute("theme");
|
|
12309
12308
|
});
|
|
12310
12309
|
}
|
|
12311
12310
|
/** @private */
|
|
@@ -12402,7 +12401,7 @@ const sc = (o) => class extends o {
|
|
|
12402
12401
|
}
|
|
12403
12402
|
/** @private */
|
|
12404
12403
|
_doIgnoreTaps() {
|
|
12405
|
-
this._ignoreTaps = !0, this._debouncer =
|
|
12404
|
+
this._ignoreTaps = !0, this._debouncer = Ve.debounce(this._debouncer, kt.after(300), () => {
|
|
12406
12405
|
this._ignoreTaps = !1;
|
|
12407
12406
|
});
|
|
12408
12407
|
}
|
|
@@ -12441,19 +12440,19 @@ const sc = (o) => class extends o {
|
|
|
12441
12440
|
this._revealPromise = new Promise((d) => {
|
|
12442
12441
|
s = d;
|
|
12443
12442
|
});
|
|
12444
|
-
const r = (d,
|
|
12443
|
+
const r = (d, u, c, p) => (d /= p / 2, d < 1 ? c / 2 * d * d + u : (d -= 1, -c / 2 * (d * (d - 2) - 1) + u));
|
|
12445
12444
|
let n = 0;
|
|
12446
12445
|
const a = this._monthScroller.position, l = (d) => {
|
|
12447
12446
|
n || (n = d);
|
|
12448
|
-
const
|
|
12449
|
-
if (
|
|
12450
|
-
const
|
|
12451
|
-
|
|
12447
|
+
const u = d - n;
|
|
12448
|
+
if (u < this.scrollDuration) {
|
|
12449
|
+
const c = r(
|
|
12450
|
+
u,
|
|
12452
12451
|
a,
|
|
12453
12452
|
this._targetPosition - a,
|
|
12454
12453
|
this.scrollDuration
|
|
12455
12454
|
);
|
|
12456
|
-
this._monthScroller.position =
|
|
12455
|
+
this._monthScroller.position = c, window.requestAnimationFrame(l);
|
|
12457
12456
|
} else
|
|
12458
12457
|
this.dispatchEvent(
|
|
12459
12458
|
new CustomEvent("scroll-animation-finished", {
|
|
@@ -12625,13 +12624,13 @@ const sc = (o) => class extends o {
|
|
|
12625
12624
|
}
|
|
12626
12625
|
}
|
|
12627
12626
|
focusDate(e, i) {
|
|
12628
|
-
return
|
|
12627
|
+
return ft(this, null, function* () {
|
|
12629
12628
|
const s = e || this.selectedDate || this.initialPosition || /* @__PURE__ */ new Date();
|
|
12630
12629
|
this.focusedDate = s, i || (this._focusedMonthDate = s.getDate()), yield this.focusDateElement(!1);
|
|
12631
12630
|
});
|
|
12632
12631
|
}
|
|
12633
12632
|
focusDateElement(e = !0) {
|
|
12634
|
-
return
|
|
12633
|
+
return ft(this, null, function* () {
|
|
12635
12634
|
this.__pendingDateFocus = this.focusedDate, this.calendars.length || (yield new Promise((i) => {
|
|
12636
12635
|
Js(this, () => {
|
|
12637
12636
|
Wi(), i();
|
|
@@ -12669,7 +12668,7 @@ const sc = (o) => class extends o {
|
|
|
12669
12668
|
}
|
|
12670
12669
|
/** @private */
|
|
12671
12670
|
_dateAllowed(e, i = this.minDate, s = this.maxDate, r = this.isDateDisabled) {
|
|
12672
|
-
return
|
|
12671
|
+
return Ue(e, i, s, r);
|
|
12673
12672
|
}
|
|
12674
12673
|
/** @private */
|
|
12675
12674
|
_isTodayAllowed(e, i, s) {
|
|
@@ -12692,7 +12691,7 @@ const sc = (o) => class extends o {
|
|
|
12692
12691
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
12693
12692
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12694
12693
|
*/
|
|
12695
|
-
const
|
|
12694
|
+
const ru = k`
|
|
12696
12695
|
:host {
|
|
12697
12696
|
display: flex;
|
|
12698
12697
|
flex-direction: column;
|
|
@@ -12758,14 +12757,14 @@ const rc = k`
|
|
|
12758
12757
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
12759
12758
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12760
12759
|
*/
|
|
12761
|
-
B("vaadin-date-picker-overlay-content",
|
|
12760
|
+
B("vaadin-date-picker-overlay-content", ru, {
|
|
12762
12761
|
moduleId: "vaadin-date-picker-overlay-content-styles"
|
|
12763
12762
|
});
|
|
12764
|
-
class
|
|
12765
|
-
|
|
12763
|
+
class nu extends su(
|
|
12764
|
+
Ye(Se(It(ve)))
|
|
12766
12765
|
) {
|
|
12767
12766
|
static get template() {
|
|
12768
|
-
return
|
|
12767
|
+
return Oe`
|
|
12769
12768
|
<div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
|
|
12770
12769
|
<div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
|
|
12771
12770
|
<div part="clear-button" hidden$="[[!selectedDate]]"></div>
|
|
@@ -12795,14 +12794,14 @@ class nc extends sc(
|
|
|
12795
12794
|
super.ready(), this.setAttribute("role", "dialog"), this._addListeners(), this._initControllers();
|
|
12796
12795
|
}
|
|
12797
12796
|
}
|
|
12798
|
-
de(
|
|
12797
|
+
de(nu);
|
|
12799
12798
|
/**
|
|
12800
12799
|
* @license
|
|
12801
12800
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
12802
12801
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12803
12802
|
*/
|
|
12804
12803
|
const br = j(
|
|
12805
|
-
(o) => class extends ji(
|
|
12804
|
+
(o) => class extends ji(cr(o)) {
|
|
12806
12805
|
static get properties() {
|
|
12807
12806
|
return {
|
|
12808
12807
|
/**
|
|
@@ -12958,15 +12957,15 @@ const br = j(
|
|
|
12958
12957
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
12959
12958
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
12960
12959
|
*/
|
|
12961
|
-
const
|
|
12962
|
-
function
|
|
12963
|
-
return
|
|
12960
|
+
const ei = /* @__PURE__ */ new WeakMap();
|
|
12961
|
+
function au(o) {
|
|
12962
|
+
return ei.has(o) || ei.set(o, /* @__PURE__ */ new Set()), ei.get(o);
|
|
12964
12963
|
}
|
|
12965
|
-
function
|
|
12964
|
+
function lu(o, t) {
|
|
12966
12965
|
const e = document.createElement("style");
|
|
12967
12966
|
e.textContent = o, t === document ? document.head.appendChild(e) : t.insertBefore(e, t.firstChild);
|
|
12968
12967
|
}
|
|
12969
|
-
const
|
|
12968
|
+
const du = j(
|
|
12970
12969
|
(o) => class extends o {
|
|
12971
12970
|
/**
|
|
12972
12971
|
* List of styles to insert into root.
|
|
@@ -12981,9 +12980,9 @@ const dc = j(
|
|
|
12981
12980
|
}
|
|
12982
12981
|
/** @private */
|
|
12983
12982
|
__applySlotStyles() {
|
|
12984
|
-
const e = this.getRootNode(), i =
|
|
12983
|
+
const e = this.getRootNode(), i = au(e);
|
|
12985
12984
|
this.slotStyles.forEach((s) => {
|
|
12986
|
-
i.has(s) || (
|
|
12985
|
+
i.has(s) || (lu(s, e), i.add(s));
|
|
12987
12986
|
});
|
|
12988
12987
|
}
|
|
12989
12988
|
}
|
|
@@ -13197,7 +13196,7 @@ const wr = j(
|
|
|
13197
13196
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
13198
13197
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
13199
13198
|
*/
|
|
13200
|
-
const
|
|
13199
|
+
const uu = (o) => class extends wr(zt(o)) {
|
|
13201
13200
|
static get properties() {
|
|
13202
13201
|
return {
|
|
13203
13202
|
/**
|
|
@@ -13272,9 +13271,9 @@ const cc = (o) => class extends wr(Ft(o)) {
|
|
|
13272
13271
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
13273
13272
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
13274
13273
|
*/
|
|
13275
|
-
const
|
|
13274
|
+
const ti = /* @__PURE__ */ new Map();
|
|
13276
13275
|
function Gi(o) {
|
|
13277
|
-
return
|
|
13276
|
+
return ti.has(o) || ti.set(o, /* @__PURE__ */ new WeakMap()), ti.get(o);
|
|
13278
13277
|
}
|
|
13279
13278
|
function xr(o, t) {
|
|
13280
13279
|
o && o.removeAttribute(t);
|
|
@@ -13285,16 +13284,16 @@ function Cr(o, t) {
|
|
|
13285
13284
|
const e = Gi(t);
|
|
13286
13285
|
if (e.has(o))
|
|
13287
13286
|
return;
|
|
13288
|
-
const i =
|
|
13287
|
+
const i = Ri(o.getAttribute(t));
|
|
13289
13288
|
e.set(o, new Set(i));
|
|
13290
13289
|
}
|
|
13291
|
-
function
|
|
13290
|
+
function cu(o, t) {
|
|
13292
13291
|
if (!o || !t)
|
|
13293
13292
|
return;
|
|
13294
13293
|
const e = Gi(t), i = e.get(o);
|
|
13295
|
-
!i || i.size === 0 ? o.removeAttribute(t) : er(o, t,
|
|
13294
|
+
!i || i.size === 0 ? o.removeAttribute(t) : er(o, t, Ft(i)), e.delete(o);
|
|
13296
13295
|
}
|
|
13297
|
-
function
|
|
13296
|
+
function ii(o, t, e = { newId: null, oldId: null, fromUser: !1 }) {
|
|
13298
13297
|
if (!o || !t)
|
|
13299
13298
|
return;
|
|
13300
13299
|
const { newId: i, oldId: s, fromUser: r } = e, n = Gi(t), a = n.get(o);
|
|
@@ -13303,10 +13302,10 @@ function ti(o, t, e = { newId: null, oldId: null, fromUser: !1 }) {
|
|
|
13303
13302
|
return;
|
|
13304
13303
|
}
|
|
13305
13304
|
r && (a ? i || n.delete(o) : Cr(o, t), xr(o, t)), Hl(o, t, s);
|
|
13306
|
-
const l = i ||
|
|
13305
|
+
const l = i || Ft(a);
|
|
13307
13306
|
l && er(o, t, l);
|
|
13308
13307
|
}
|
|
13309
|
-
function
|
|
13308
|
+
function hu(o, t) {
|
|
13310
13309
|
Cr(o, t), xr(o, t);
|
|
13311
13310
|
}
|
|
13312
13311
|
/**
|
|
@@ -13314,7 +13313,7 @@ function hc(o, t) {
|
|
|
13314
13313
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
13315
13314
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
13316
13315
|
*/
|
|
13317
|
-
class
|
|
13316
|
+
class pu {
|
|
13318
13317
|
constructor(t) {
|
|
13319
13318
|
this.host = t, this.__required = !1;
|
|
13320
13319
|
}
|
|
@@ -13387,7 +13386,7 @@ class pc {
|
|
|
13387
13386
|
* @private
|
|
13388
13387
|
* */
|
|
13389
13388
|
__setAriaLabelToAttribute(t) {
|
|
13390
|
-
this.__target && (t ? (
|
|
13389
|
+
this.__target && (t ? (hu(this.__target, "aria-labelledby"), this.__target.setAttribute("aria-label", t)) : this.__label && (cu(this.__target, "aria-labelledby"), this.__target.removeAttribute("aria-label")));
|
|
13391
13390
|
}
|
|
13392
13391
|
/**
|
|
13393
13392
|
* @param {string | null | undefined} labelId
|
|
@@ -13396,7 +13395,7 @@ class pc {
|
|
|
13396
13395
|
* @private
|
|
13397
13396
|
*/
|
|
13398
13397
|
__setLabelIdToAriaAttribute(t, e, i) {
|
|
13399
|
-
|
|
13398
|
+
ii(this.__target, "aria-labelledby", { newId: t, oldId: e, fromUser: i });
|
|
13400
13399
|
}
|
|
13401
13400
|
/**
|
|
13402
13401
|
* @param {string | null | undefined} errorId
|
|
@@ -13404,7 +13403,7 @@ class pc {
|
|
|
13404
13403
|
* @private
|
|
13405
13404
|
*/
|
|
13406
13405
|
__setErrorIdToAriaAttribute(t, e) {
|
|
13407
|
-
|
|
13406
|
+
ii(this.__target, "aria-describedby", { newId: t, oldId: e, fromUser: !1 });
|
|
13408
13407
|
}
|
|
13409
13408
|
/**
|
|
13410
13409
|
* @param {string | null | undefined} helperId
|
|
@@ -13412,7 +13411,7 @@ class pc {
|
|
|
13412
13411
|
* @private
|
|
13413
13412
|
*/
|
|
13414
13413
|
__setHelperIdToAriaAttribute(t, e) {
|
|
13415
|
-
|
|
13414
|
+
ii(this.__target, "aria-describedby", { newId: t, oldId: e, fromUser: !1 });
|
|
13416
13415
|
}
|
|
13417
13416
|
/**
|
|
13418
13417
|
* @param {boolean} required
|
|
@@ -13432,12 +13431,12 @@ se.style.position = "fixed";
|
|
|
13432
13431
|
se.style.clip = "rect(0px, 0px, 0px, 0px)";
|
|
13433
13432
|
se.setAttribute("aria-live", "polite");
|
|
13434
13433
|
document.body.appendChild(se);
|
|
13435
|
-
let
|
|
13436
|
-
function
|
|
13434
|
+
let vt;
|
|
13435
|
+
function fu(o, t = {}) {
|
|
13437
13436
|
const e = t.mode || "polite", i = t.timeout === void 0 ? 150 : t.timeout;
|
|
13438
|
-
e === "alert" ? (se.removeAttribute("aria-live"), se.removeAttribute("role"),
|
|
13437
|
+
e === "alert" ? (se.removeAttribute("aria-live"), se.removeAttribute("role"), vt = Ve.debounce(vt, id, () => {
|
|
13439
13438
|
se.setAttribute("role", "alert");
|
|
13440
|
-
})) : (
|
|
13439
|
+
})) : (vt && vt.cancel(), se.removeAttribute("role"), se.setAttribute("aria-live", e)), se.textContent = "", setTimeout(() => {
|
|
13441
13440
|
se.textContent = o;
|
|
13442
13441
|
}, i);
|
|
13443
13442
|
}
|
|
@@ -13448,7 +13447,7 @@ function fc(o, t = {}) {
|
|
|
13448
13447
|
*/
|
|
13449
13448
|
class Ji extends Ce {
|
|
13450
13449
|
constructor(t, e, i, s = {}) {
|
|
13451
|
-
super(t, e, i, Lt(
|
|
13450
|
+
super(t, e, i, $t(Lt({}, s), { useUniqueId: !0 }));
|
|
13452
13451
|
}
|
|
13453
13452
|
/**
|
|
13454
13453
|
* Override to initialize the newly added custom node.
|
|
@@ -13561,7 +13560,7 @@ class Ji extends Ce {
|
|
|
13561
13560
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
13562
13561
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
13563
13562
|
*/
|
|
13564
|
-
class
|
|
13563
|
+
class mu extends Ji {
|
|
13565
13564
|
constructor(t) {
|
|
13566
13565
|
super(t, "error-message", "div");
|
|
13567
13566
|
}
|
|
@@ -13635,7 +13634,7 @@ class mc extends Ji {
|
|
|
13635
13634
|
*/
|
|
13636
13635
|
updateDefaultNode(t) {
|
|
13637
13636
|
const { errorMessage: e, invalid: i } = this, s = !!(i && e && e.trim() !== "");
|
|
13638
|
-
t && (t.textContent = s ? e : "", t.hidden = !s, s &&
|
|
13637
|
+
t && (t.textContent = s ? e : "", t.hidden = !s, s && fu(e, { mode: "assertive" })), super.updateDefaultNode(t);
|
|
13639
13638
|
}
|
|
13640
13639
|
}
|
|
13641
13640
|
/**
|
|
@@ -13643,7 +13642,7 @@ class mc extends Ji {
|
|
|
13643
13642
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
13644
13643
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
13645
13644
|
*/
|
|
13646
|
-
class
|
|
13645
|
+
class _u extends Ji {
|
|
13647
13646
|
constructor(t) {
|
|
13648
13647
|
super(t, "helper", null);
|
|
13649
13648
|
}
|
|
@@ -13698,7 +13697,7 @@ class _c extends Ji {
|
|
|
13698
13697
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
13699
13698
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
13700
13699
|
*/
|
|
13701
|
-
class
|
|
13700
|
+
class gu extends Ji {
|
|
13702
13701
|
constructor(t) {
|
|
13703
13702
|
super(t, "label", "label");
|
|
13704
13703
|
}
|
|
@@ -13751,8 +13750,8 @@ class gc extends Ji {
|
|
|
13751
13750
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
13752
13751
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
13753
13752
|
*/
|
|
13754
|
-
const
|
|
13755
|
-
(o) => class extends
|
|
13753
|
+
const yu = j(
|
|
13754
|
+
(o) => class extends Ye(o) {
|
|
13756
13755
|
static get properties() {
|
|
13757
13756
|
return {
|
|
13758
13757
|
/**
|
|
@@ -13766,7 +13765,7 @@ const yc = j(
|
|
|
13766
13765
|
};
|
|
13767
13766
|
}
|
|
13768
13767
|
constructor() {
|
|
13769
|
-
super(), this._labelController = new
|
|
13768
|
+
super(), this._labelController = new gu(this), this._labelController.addEventListener("slot-content-changed", (e) => {
|
|
13770
13769
|
this.toggleAttribute("has-label", e.detail.hasContent);
|
|
13771
13770
|
});
|
|
13772
13771
|
}
|
|
@@ -13866,7 +13865,7 @@ const Ar = j(
|
|
|
13866
13865
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
13867
13866
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
13868
13867
|
*/
|
|
13869
|
-
const
|
|
13868
|
+
const vu = (o) => class extends Ar(yu(Ye(o))) {
|
|
13870
13869
|
static get properties() {
|
|
13871
13870
|
return {
|
|
13872
13871
|
/**
|
|
@@ -13916,7 +13915,7 @@ const vc = (o) => class extends Ar(yc(je(o))) {
|
|
|
13916
13915
|
return ["_invalidChanged(invalid)", "_requiredChanged(required)"];
|
|
13917
13916
|
}
|
|
13918
13917
|
constructor() {
|
|
13919
|
-
super(), this._fieldAriaController = new
|
|
13918
|
+
super(), this._fieldAriaController = new pu(this), this._helperController = new _u(this), this._errorController = new mu(this), this._errorController.addEventListener("slot-content-changed", (e) => {
|
|
13920
13919
|
this.toggleAttribute("has-error-message", e.detail.hasContent);
|
|
13921
13920
|
}), this._labelController.addEventListener("slot-content-changed", (e) => {
|
|
13922
13921
|
const { hasContent: i, node: s } = e.detail;
|
|
@@ -14007,7 +14006,7 @@ const vc = (o) => class extends Ar(yc(je(o))) {
|
|
|
14007
14006
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
14008
14007
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14009
14008
|
*/
|
|
14010
|
-
const
|
|
14009
|
+
const bu = j(
|
|
14011
14010
|
(o) => class extends o {
|
|
14012
14011
|
static get properties() {
|
|
14013
14012
|
return {
|
|
@@ -14089,7 +14088,7 @@ const bc = j(
|
|
|
14089
14088
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14090
14089
|
*/
|
|
14091
14090
|
const Tr = j(
|
|
14092
|
-
(o) => class extends
|
|
14091
|
+
(o) => class extends bu(Ar(wr(o))) {
|
|
14093
14092
|
/**
|
|
14094
14093
|
* An array of attributes which participate in the input validation.
|
|
14095
14094
|
* Changing these attributes will cause the input to re-validate.
|
|
@@ -14173,8 +14172,8 @@ const Tr = j(
|
|
|
14173
14172
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
14174
14173
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14175
14174
|
*/
|
|
14176
|
-
const
|
|
14177
|
-
br(Tr(
|
|
14175
|
+
const wu = (o) => class extends du(
|
|
14176
|
+
br(Tr(vu(uu(zt(o)))))
|
|
14178
14177
|
) {
|
|
14179
14178
|
static get properties() {
|
|
14180
14179
|
return {
|
|
@@ -14306,7 +14305,7 @@ const wc = (o) => class extends dc(
|
|
|
14306
14305
|
}
|
|
14307
14306
|
/** @protected */
|
|
14308
14307
|
_markInputPrevented() {
|
|
14309
|
-
this.setAttribute("input-prevented", ""), this._preventInputDebouncer =
|
|
14308
|
+
this.setAttribute("input-prevented", ""), this._preventInputDebouncer = Ve.debounce(this._preventInputDebouncer, kt.after(200), () => {
|
|
14310
14309
|
this.removeAttribute("input-prevented");
|
|
14311
14310
|
});
|
|
14312
14311
|
}
|
|
@@ -14360,7 +14359,7 @@ const wc = (o) => class extends dc(
|
|
|
14360
14359
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
14361
14360
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14362
14361
|
*/
|
|
14363
|
-
class
|
|
14362
|
+
class xu extends Ce {
|
|
14364
14363
|
constructor(t, e, i = {}) {
|
|
14365
14364
|
const { uniqueIdPrefix: s } = i;
|
|
14366
14365
|
super(t, "input", "input", {
|
|
@@ -14377,7 +14376,7 @@ class xc extends Ce {
|
|
|
14377
14376
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
14378
14377
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14379
14378
|
*/
|
|
14380
|
-
class
|
|
14379
|
+
class Cu {
|
|
14381
14380
|
constructor(t, e) {
|
|
14382
14381
|
this.input = t, this.__preventDuplicateLabelClick = this.__preventDuplicateLabelClick.bind(this), e.addEventListener("slot-content-changed", (i) => {
|
|
14383
14382
|
this.__initLabel(i.detail.node);
|
|
@@ -14410,7 +14409,7 @@ class Cc {
|
|
|
14410
14409
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
14411
14410
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14412
14411
|
*/
|
|
14413
|
-
const
|
|
14412
|
+
const Au = k`
|
|
14414
14413
|
[part='clear-button'] {
|
|
14415
14414
|
display: none;
|
|
14416
14415
|
cursor: default;
|
|
@@ -14429,7 +14428,7 @@ const Ac = k`
|
|
|
14429
14428
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
14430
14429
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14431
14430
|
*/
|
|
14432
|
-
const
|
|
14431
|
+
const Tu = k`
|
|
14433
14432
|
:host {
|
|
14434
14433
|
display: inline-flex;
|
|
14435
14434
|
outline: none;
|
|
@@ -14469,7 +14468,7 @@ const Tc = k`
|
|
|
14469
14468
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
14470
14469
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14471
14470
|
*/
|
|
14472
|
-
const
|
|
14471
|
+
const Eu = k`
|
|
14473
14472
|
[class$='container'] {
|
|
14474
14473
|
display: flex;
|
|
14475
14474
|
flex-direction: column;
|
|
@@ -14483,13 +14482,13 @@ const Ec = k`
|
|
|
14483
14482
|
* Copyright (c) 2021 - 2024 Vaadin Ltd..
|
|
14484
14483
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14485
14484
|
*/
|
|
14486
|
-
const
|
|
14485
|
+
const Du = [Tu, Eu, Au];
|
|
14487
14486
|
/**
|
|
14488
14487
|
* @license
|
|
14489
14488
|
* Copyright (c) 2023 - 2024 Vaadin Ltd.
|
|
14490
14489
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14491
14490
|
*/
|
|
14492
|
-
const
|
|
14491
|
+
const ku = (o) => class extends o {
|
|
14493
14492
|
static get properties() {
|
|
14494
14493
|
return {
|
|
14495
14494
|
/**
|
|
@@ -14536,7 +14535,7 @@ const kc = (o) => class extends o {
|
|
|
14536
14535
|
* Copyright (c) 2021 - 2024 Vaadin Ltd.
|
|
14537
14536
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14538
14537
|
*/
|
|
14539
|
-
class
|
|
14538
|
+
class Su {
|
|
14540
14539
|
/**
|
|
14541
14540
|
* @param {{ inputElement?: HTMLElement; opened: boolean } & HTMLElement} host
|
|
14542
14541
|
*/
|
|
@@ -14555,8 +14554,8 @@ class Sc {
|
|
|
14555
14554
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
14556
14555
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
14557
14556
|
*/
|
|
14558
|
-
const
|
|
14559
|
-
|
|
14557
|
+
const Pu = (o) => class extends ku(
|
|
14558
|
+
Ye(br(Tr(zt(o))))
|
|
14560
14559
|
) {
|
|
14561
14560
|
static get properties() {
|
|
14562
14561
|
return {
|
|
@@ -14760,7 +14759,7 @@ const Pc = (o) => class extends kc(
|
|
|
14760
14759
|
let r, n = s.getMonth(), a = s.getFullYear();
|
|
14761
14760
|
if (i.length === 3) {
|
|
14762
14761
|
if (n = parseInt(i[0]) - 1, r = parseInt(i[1]), a = parseInt(i[2]), i[2].length < 3 && a >= 0) {
|
|
14763
|
-
const l = this.referenceDate ?
|
|
14762
|
+
const l = this.referenceDate ? Xe(this.referenceDate) : /* @__PURE__ */ new Date();
|
|
14764
14763
|
a = Pd(l, a, n, r);
|
|
14765
14764
|
}
|
|
14766
14765
|
} else
|
|
@@ -14923,7 +14922,7 @@ const Pc = (o) => class extends kc(
|
|
|
14923
14922
|
* @protected
|
|
14924
14923
|
*/
|
|
14925
14924
|
_onFocus(e) {
|
|
14926
|
-
super._onFocus(e), this._noInput &&
|
|
14925
|
+
super._onFocus(e), this._noInput && !$i() && e.target.blur();
|
|
14927
14926
|
}
|
|
14928
14927
|
/**
|
|
14929
14928
|
* Override an event listener from `DelegateFocusMixin`
|
|
@@ -14938,7 +14937,7 @@ const Pc = (o) => class extends kc(
|
|
|
14938
14937
|
new vr(this._fullscreenMediaQuery, (i) => {
|
|
14939
14938
|
this._fullscreen = i;
|
|
14940
14939
|
})
|
|
14941
|
-
), this.addController(new
|
|
14940
|
+
), this.addController(new Su(this));
|
|
14942
14941
|
const e = this.$.overlay;
|
|
14943
14942
|
this._overlayElement = e, e.renderer = this._boundOverlayRenderer, this.addEventListener("mousedown", () => this.__bringToFront()), this.addEventListener("touchstart", () => this.__bringToFront());
|
|
14944
14943
|
}
|
|
@@ -14985,7 +14984,7 @@ const Pc = (o) => class extends kc(
|
|
|
14985
14984
|
if (!this.i18n.parseDate)
|
|
14986
14985
|
return;
|
|
14987
14986
|
let i = this.i18n.parseDate(e);
|
|
14988
|
-
if (i && (i =
|
|
14987
|
+
if (i && (i = Xe(`${i.year}-${i.month + 1}-${i.day}`)), i && !isNaN(i.getTime()))
|
|
14989
14988
|
return i;
|
|
14990
14989
|
}
|
|
14991
14990
|
/**
|
|
@@ -15004,7 +15003,7 @@ const Pc = (o) => class extends kc(
|
|
|
15004
15003
|
* @return {boolean} True if the value is valid
|
|
15005
15004
|
*/
|
|
15006
15005
|
checkValidity() {
|
|
15007
|
-
const e = this._inputElementValue, i = !e || !!this._selectedDate && e === this.__formatDate(this._selectedDate), s = !this._selectedDate ||
|
|
15006
|
+
const e = this._inputElementValue, i = !e || !!this._selectedDate && e === this.__formatDate(this._selectedDate), s = !this._selectedDate || Ue(this._selectedDate, this._minDate, this._maxDate, this.isDateDisabled);
|
|
15008
15007
|
let r = !0;
|
|
15009
15008
|
return this.inputElement && (this.inputElement.checkValidity ? r = this.inputElement.checkValidity() : this.inputElement.validate && (r = this.inputElement.validate())), i && s && r;
|
|
15010
15009
|
}
|
|
@@ -15127,7 +15126,7 @@ const Pc = (o) => class extends kc(
|
|
|
15127
15126
|
* @override
|
|
15128
15127
|
*/
|
|
15129
15128
|
_valueChanged(e, i) {
|
|
15130
|
-
const s =
|
|
15129
|
+
const s = Xe(e);
|
|
15131
15130
|
if (e && !s) {
|
|
15132
15131
|
this.value = i;
|
|
15133
15132
|
return;
|
|
@@ -15136,8 +15135,8 @@ const Pc = (o) => class extends kc(
|
|
|
15136
15135
|
}
|
|
15137
15136
|
/** @private */
|
|
15138
15137
|
// eslint-disable-next-line @typescript-eslint/max-params
|
|
15139
|
-
__updateOverlayContent(e, i, s, r, n, a, l, d,
|
|
15140
|
-
e && (e.i18n = i, e.label = s, e.minDate = r, e.maxDate = n, e.focusedDate = a, e.selectedDate = l, e.showWeekNumbers = d, e.isDateDisabled =
|
|
15138
|
+
__updateOverlayContent(e, i, s, r, n, a, l, d, u) {
|
|
15139
|
+
e && (e.i18n = i, e.label = s, e.minDate = r, e.maxDate = n, e.focusedDate = a, e.selectedDate = l, e.showWeekNumbers = d, e.isDateDisabled = u);
|
|
15141
15140
|
}
|
|
15142
15141
|
/** @private */
|
|
15143
15142
|
__updateOverlayContentTheme(e, i) {
|
|
@@ -15166,8 +15165,8 @@ const Pc = (o) => class extends kc(
|
|
|
15166
15165
|
}
|
|
15167
15166
|
/** @private */
|
|
15168
15167
|
_getInitialPosition() {
|
|
15169
|
-
const e =
|
|
15170
|
-
return e ||
|
|
15168
|
+
const e = Xe(this.initialPosition), i = this._selectedDate || this._overlayContent.initialPosition || e || /* @__PURE__ */ new Date();
|
|
15169
|
+
return e || Ue(i, this._minDate, this._maxDate, this.isDateDisabled) ? i : this._minDate || this._maxDate ? hr(i, [this._minDate, this._maxDate]) : /* @__PURE__ */ new Date();
|
|
15171
15170
|
}
|
|
15172
15171
|
/**
|
|
15173
15172
|
* Tries to parse the input element's value as a date. If the input value
|
|
@@ -15305,7 +15304,7 @@ const Pc = (o) => class extends kc(
|
|
|
15305
15304
|
}
|
|
15306
15305
|
/** @private */
|
|
15307
15306
|
__computeMinOrMaxDate(e) {
|
|
15308
|
-
return
|
|
15307
|
+
return Xe(e);
|
|
15309
15308
|
}
|
|
15310
15309
|
/**
|
|
15311
15310
|
* Fired when the user commits a value change.
|
|
@@ -15328,7 +15327,7 @@ const Pc = (o) => class extends kc(
|
|
|
15328
15327
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
15329
15328
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15330
15329
|
*/
|
|
15331
|
-
const
|
|
15330
|
+
const Ou = k`
|
|
15332
15331
|
:host([opened]) {
|
|
15333
15332
|
pointer-events: auto;
|
|
15334
15333
|
}
|
|
@@ -15347,13 +15346,13 @@ const Oc = k`
|
|
|
15347
15346
|
* Copyright (c) 2016 - 2024 Vaadin Ltd.
|
|
15348
15347
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
15349
15348
|
*/
|
|
15350
|
-
B("vaadin-date-picker", [
|
|
15351
|
-
class
|
|
15349
|
+
B("vaadin-date-picker", [Du, Ou], { moduleId: "vaadin-date-picker-styles" });
|
|
15350
|
+
class Mu extends Pu(wu(Se(or(ve)))) {
|
|
15352
15351
|
static get is() {
|
|
15353
15352
|
return "vaadin-date-picker";
|
|
15354
15353
|
}
|
|
15355
15354
|
static get template() {
|
|
15356
|
-
return
|
|
15355
|
+
return Oe`
|
|
15357
15356
|
<div class="vaadin-date-picker-container">
|
|
15358
15357
|
<div part="label">
|
|
15359
15358
|
<slot name="label"></slot>
|
|
@@ -15408,7 +15407,7 @@ class Mc extends Pc(wc(ke(or(ve)))) {
|
|
|
15408
15407
|
/** @protected */
|
|
15409
15408
|
ready() {
|
|
15410
15409
|
super.ready(), this.addController(
|
|
15411
|
-
new
|
|
15410
|
+
new xu(
|
|
15412
15411
|
this,
|
|
15413
15412
|
(e) => {
|
|
15414
15413
|
this._setInputElement(e), this._setFocusElement(e), this.stateTarget = e, this.ariaTarget = e;
|
|
@@ -15420,7 +15419,7 @@ class Mc extends Pc(wc(ke(or(ve)))) {
|
|
|
15420
15419
|
uniqueIdPrefix: "search-input"
|
|
15421
15420
|
}
|
|
15422
15421
|
)
|
|
15423
|
-
), this.addController(new
|
|
15422
|
+
), this.addController(new Cu(this.inputElement, this._labelController)), this._tooltipController = new rr(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));
|
|
15424
15423
|
}
|
|
15425
15424
|
/** @private */
|
|
15426
15425
|
_onVaadinOverlayClose(t) {
|
|
@@ -15436,7 +15435,7 @@ class Mc extends Pc(wc(ke(or(ve)))) {
|
|
|
15436
15435
|
super._openedChanged(t), this.$.overlay.positionTarget = this.shadowRoot.querySelector('[part="input-field"]'), this.$.overlay.noVerticalOverlap = !0;
|
|
15437
15436
|
}
|
|
15438
15437
|
}
|
|
15439
|
-
de(
|
|
15438
|
+
de(Mu);
|
|
15440
15439
|
if (typeof window != "undefined") {
|
|
15441
15440
|
let o = function(t) {
|
|
15442
15441
|
return function(...e) {
|
|
@@ -15449,7 +15448,7 @@ if (typeof window != "undefined") {
|
|
|
15449
15448
|
}
|
|
15450
15449
|
};
|
|
15451
15450
|
};
|
|
15452
|
-
customElements.define = o(customElements.define), import("./PlayerAccountGeneralConfirmationModal-
|
|
15451
|
+
customElements.define = o(customElements.define), import("./PlayerAccountGeneralConfirmationModal-CpIVlBHH.js").then((t) => t.P).then(
|
|
15453
15452
|
({ default: t }) => {
|
|
15454
15453
|
!customElements.get("player-account-general-confirmation-modal") && customElements.define(
|
|
15455
15454
|
"player-account-general-confirmation-modal",
|
|
@@ -15463,7 +15462,7 @@ var Er = { exports: {} };
|
|
|
15463
15462
|
(function(e, i) {
|
|
15464
15463
|
o.exports = i();
|
|
15465
15464
|
})(Mr, function() {
|
|
15466
|
-
var e = 1e3, i = 6e4, s = 36e5, r = "millisecond", n = "second", a = "minute", l = "hour", d = "day",
|
|
15465
|
+
var e = 1e3, i = 6e4, s = 36e5, r = "millisecond", n = "second", a = "minute", l = "hour", d = "day", u = "week", c = "month", p = "quarter", m = "year", _ = "date", x = "Invalid Date", S = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, I = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, D = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(b) {
|
|
15467
15466
|
var h = ["th", "st", "nd", "rd"], f = b % 100;
|
|
15468
15467
|
return "[" + b + (h[(f - 20) % 10] || h[f] || h[0]) + "]";
|
|
15469
15468
|
} }, M = function(b, h, f) {
|
|
@@ -15475,18 +15474,18 @@ var Er = { exports: {} };
|
|
|
15475
15474
|
}, m: function b(h, f) {
|
|
15476
15475
|
if (h.date() < f.date())
|
|
15477
15476
|
return -b(f, h);
|
|
15478
|
-
var g = 12 * (f.year() - h.year()) + (f.month() - h.month()), y = h.clone().add(g,
|
|
15477
|
+
var g = 12 * (f.year() - h.year()) + (f.month() - h.month()), y = h.clone().add(g, c), C = f - y < 0, A = h.clone().add(g + (C ? -1 : 1), c);
|
|
15479
15478
|
return +(-(g + (f - y) / (C ? y - A : A - y)) || 0);
|
|
15480
15479
|
}, a: function(b) {
|
|
15481
15480
|
return b < 0 ? Math.ceil(b) || 0 : Math.floor(b);
|
|
15482
15481
|
}, p: function(b) {
|
|
15483
|
-
return { M:
|
|
15482
|
+
return { M: c, y: m, w: u, d, D: _, h: l, m: a, s: n, ms: r, Q: p }[b] || String(b || "").toLowerCase().replace(/s$/, "");
|
|
15484
15483
|
}, u: function(b) {
|
|
15485
15484
|
return b === void 0;
|
|
15486
15485
|
} }, L = "en", G = {};
|
|
15487
15486
|
G[L] = D;
|
|
15488
|
-
var
|
|
15489
|
-
return b instanceof H || !(!b || !b[
|
|
15487
|
+
var ue = "$isDayjsObject", ie = function(b) {
|
|
15488
|
+
return b instanceof H || !(!b || !b[ue]);
|
|
15490
15489
|
}, Q = function b(h, f, g) {
|
|
15491
15490
|
var y;
|
|
15492
15491
|
if (!h)
|
|
@@ -15513,7 +15512,7 @@ var Er = { exports: {} };
|
|
|
15513
15512
|
};
|
|
15514
15513
|
var H = function() {
|
|
15515
15514
|
function b(f) {
|
|
15516
|
-
this.$L = Q(f.locale, null, !0), this.parse(f), this.$x = this.$x || f.x || {}, this[
|
|
15515
|
+
this.$L = Q(f.locale, null, !0), this.parse(f), this.$x = this.$x || f.x || {}, this[ue] = !0;
|
|
15517
15516
|
}
|
|
15518
15517
|
var h = b.prototype;
|
|
15519
15518
|
return h.parse = function(f) {
|
|
@@ -15564,9 +15563,9 @@ var Er = { exports: {} };
|
|
|
15564
15563
|
switch (A) {
|
|
15565
15564
|
case m:
|
|
15566
15565
|
return C ? F(1, 0) : F(31, 11);
|
|
15567
|
-
case u:
|
|
15568
|
-
return C ? F(1, Y) : F(0, Y + 1);
|
|
15569
15566
|
case c:
|
|
15567
|
+
return C ? F(1, Y) : F(0, Y + 1);
|
|
15568
|
+
case u:
|
|
15570
15569
|
var J = this.$locale().weekStart || 0, fe = (U < J ? U + 7 : U) - J;
|
|
15571
15570
|
return F(C ? v - fe : v + (6 - fe), Y);
|
|
15572
15571
|
case d:
|
|
@@ -15584,8 +15583,8 @@ var Er = { exports: {} };
|
|
|
15584
15583
|
}, h.endOf = function(f) {
|
|
15585
15584
|
return this.startOf(f, !1);
|
|
15586
15585
|
}, h.$set = function(f, g) {
|
|
15587
|
-
var y, C = E.p(f), A = "set" + (this.$u ? "UTC" : ""), F = (y = {}, y[d] = A + "Date", y[_] = A + "Date", y[
|
|
15588
|
-
if (C ===
|
|
15586
|
+
var y, C = E.p(f), A = "set" + (this.$u ? "UTC" : ""), F = (y = {}, y[d] = A + "Date", y[_] = A + "Date", y[c] = A + "Month", y[m] = A + "FullYear", y[l] = A + "Hours", y[a] = A + "Minutes", y[n] = A + "Seconds", y[r] = A + "Milliseconds", y)[C], R = C === d ? this.$D + (g - this.$W) : g;
|
|
15587
|
+
if (C === c || C === m) {
|
|
15589
15588
|
var U = this.clone().set(_, 1);
|
|
15590
15589
|
U.$d[F](R), U.init(), this.$d = U.set(_, Math.min(this.$D, U.daysInMonth())).$d;
|
|
15591
15590
|
} else
|
|
@@ -15602,13 +15601,13 @@ var Er = { exports: {} };
|
|
|
15602
15601
|
var v = N(C);
|
|
15603
15602
|
return E.w(v.date(v.date() + Math.round(Y * f)), C);
|
|
15604
15603
|
};
|
|
15605
|
-
if (A ===
|
|
15606
|
-
return this.set(
|
|
15604
|
+
if (A === c)
|
|
15605
|
+
return this.set(c, this.$M + f);
|
|
15607
15606
|
if (A === m)
|
|
15608
15607
|
return this.set(m, this.$y + f);
|
|
15609
15608
|
if (A === d)
|
|
15610
15609
|
return F(1);
|
|
15611
|
-
if (A ===
|
|
15610
|
+
if (A === u)
|
|
15612
15611
|
return F(7);
|
|
15613
15612
|
var R = (y = {}, y[a] = i, y[l] = s, y[n] = e, y)[A] || 1, U = this.$d.getTime() + f * R;
|
|
15614
15613
|
return E.w(U, this);
|
|
@@ -15618,17 +15617,17 @@ var Er = { exports: {} };
|
|
|
15618
15617
|
var g = this, y = this.$locale();
|
|
15619
15618
|
if (!this.isValid())
|
|
15620
15619
|
return y.invalidDate || x;
|
|
15621
|
-
var C = f || "YYYY-MM-DDTHH:mm:ssZ", A = E.z(this), F = this.$H, R = this.$m, U = this.$M, Y = y.weekdays, v = y.months, ee = y.meridiem, J = function(X, me,
|
|
15622
|
-
return X && (X[me] || X(g, C)) ||
|
|
15620
|
+
var C = f || "YYYY-MM-DDTHH:mm:ssZ", A = E.z(this), F = this.$H, R = this.$m, U = this.$M, Y = y.weekdays, v = y.months, ee = y.meridiem, J = function(X, me, We, pt) {
|
|
15621
|
+
return X && (X[me] || X(g, C)) || We[me].slice(0, pt);
|
|
15623
15622
|
}, fe = function(X) {
|
|
15624
15623
|
return E.s(F % 12 || 12, X, "0");
|
|
15625
|
-
}, oe = ee || function(X, me,
|
|
15626
|
-
var
|
|
15627
|
-
return
|
|
15624
|
+
}, oe = ee || function(X, me, We) {
|
|
15625
|
+
var pt = X < 12 ? "AM" : "PM";
|
|
15626
|
+
return We ? pt.toLowerCase() : pt;
|
|
15628
15627
|
};
|
|
15629
15628
|
return C.replace(I, function(X, me) {
|
|
15630
|
-
return me || function(
|
|
15631
|
-
switch (
|
|
15629
|
+
return me || function(We) {
|
|
15630
|
+
switch (We) {
|
|
15632
15631
|
case "YY":
|
|
15633
15632
|
return String(g.$y).slice(-2);
|
|
15634
15633
|
case "YYYY":
|
|
@@ -15691,13 +15690,13 @@ var Er = { exports: {} };
|
|
|
15691
15690
|
case m:
|
|
15692
15691
|
C = v() / 12;
|
|
15693
15692
|
break;
|
|
15694
|
-
case
|
|
15693
|
+
case c:
|
|
15695
15694
|
C = v();
|
|
15696
15695
|
break;
|
|
15697
15696
|
case p:
|
|
15698
15697
|
C = v() / 3;
|
|
15699
15698
|
break;
|
|
15700
|
-
case
|
|
15699
|
+
case u:
|
|
15701
15700
|
C = (Y - U) / 6048e5;
|
|
15702
15701
|
break;
|
|
15703
15702
|
case d:
|
|
@@ -15717,7 +15716,7 @@ var Er = { exports: {} };
|
|
|
15717
15716
|
}
|
|
15718
15717
|
return y ? C : E.a(C);
|
|
15719
15718
|
}, h.daysInMonth = function() {
|
|
15720
|
-
return this.endOf(
|
|
15719
|
+
return this.endOf(c).$D;
|
|
15721
15720
|
}, h.$locale = function() {
|
|
15722
15721
|
return G[this.$L];
|
|
15723
15722
|
}, h.locale = function(f, g) {
|
|
@@ -15737,7 +15736,7 @@ var Er = { exports: {} };
|
|
|
15737
15736
|
return this.$d.toUTCString();
|
|
15738
15737
|
}, b;
|
|
15739
15738
|
}(), V = H.prototype;
|
|
15740
|
-
return N.prototype = V, [["$ms", r], ["$s", n], ["$m", a], ["$H", l], ["$W", d], ["$M",
|
|
15739
|
+
return N.prototype = V, [["$ms", r], ["$s", n], ["$m", a], ["$H", l], ["$W", d], ["$M", c], ["$y", m], ["$D", _]].forEach(function(b) {
|
|
15741
15740
|
V[b[1]] = function(h) {
|
|
15742
15741
|
return this.$g(h, b[0], b[1]);
|
|
15743
15742
|
};
|
|
@@ -15748,12 +15747,12 @@ var Er = { exports: {} };
|
|
|
15748
15747
|
}, N.en = G[L], N.Ls = G, N.p = {}, N;
|
|
15749
15748
|
});
|
|
15750
15749
|
})(Er);
|
|
15751
|
-
var
|
|
15752
|
-
const Yo = /* @__PURE__ */ Ir(
|
|
15750
|
+
var Iu = Er.exports;
|
|
15751
|
+
const Yo = /* @__PURE__ */ Ir(Iu);
|
|
15753
15752
|
function Wo(o, t) {
|
|
15754
15753
|
Nr(o, t);
|
|
15755
15754
|
}
|
|
15756
|
-
function
|
|
15755
|
+
function Nu(o) {
|
|
15757
15756
|
Fr.set(o);
|
|
15758
15757
|
}
|
|
15759
15758
|
const qo = {
|
|
@@ -15967,14 +15966,14 @@ const qo = {
|
|
|
15967
15966
|
confirmationModalTextUntilTimeout: "{date} tarihine kadar kendinizi soğutmak istediğinizden emin misiniz?"
|
|
15968
15967
|
}
|
|
15969
15968
|
};
|
|
15970
|
-
function
|
|
15969
|
+
function Fu(o) {
|
|
15971
15970
|
Hr(o, "svelte-u6jylo", `.TimeoutWrapper{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));padding:50px;max-width:760px;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.TimeoutWrapper.TimeoutWrapperMobile{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:20px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.TimeoutTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.TimeoutTitleMobile{font-size:16px}.TimeoutTitleNone{display:none}.TimeoutDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px}.TimeoutDescription.TimeoutDescriptionMobile{font-size:12px;line-height:18px}.TimeoutSelectWrapper{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;position:relative}.TimeoutSelectWrapper .TimeoutSelect{width:50%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background:var(--emw--color-white, #FFFFFF);border-radius:5px;box-sizing:border-box;padding:5px 10px;font-size:16px;line-height:18px;margin-bottom:16px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat var(--emw--color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.TimeoutSelectWrapper .TimeoutSelect:focus,.TimeoutSelectWrapper .TimeoutSelect :focus-within,.TimeoutSelectWrapper .TimeoutSelect :focus-visible,.TimeoutSelectWrapper .TimeoutSelect :visited{border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.TimeoutSelectWrapper .TimeoutSelect.TimeoutSelectMobile{width:100%;height:36px;font-size:12px}.TimeoutDateWrapper{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.TimeoutDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.TimeoutDateWrapper .TimeoutDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.TimeoutActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.TimeoutActionButtons .TimeoutSave{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.TimeoutActionButtons.TimeoutActionButtonsMobile{width:100%;grid-template-columns:1fr}.TimeoutActionButtons.TimeoutActionButtonsMobile .TimeoutSave{height:40px;font-size:12px}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}`);
|
|
15972
15971
|
}
|
|
15973
15972
|
function Ko(o, t, e) {
|
|
15974
15973
|
const i = o.slice();
|
|
15975
15974
|
return i[39] = t[e].value, i;
|
|
15976
15975
|
}
|
|
15977
|
-
function
|
|
15976
|
+
function zu(o) {
|
|
15978
15977
|
let t, e, i, s = (
|
|
15979
15978
|
/*$_*/
|
|
15980
15979
|
o[17]("titleTimeout") + ""
|
|
@@ -15996,7 +15995,7 @@ function zc(o) {
|
|
|
15996
15995
|
)
|
|
15997
15996
|
}
|
|
15998
15997
|
}) + ""
|
|
15999
|
-
),
|
|
15998
|
+
), u, c, p = (
|
|
16000
15999
|
/*$_*/
|
|
16001
16000
|
o[17]("timeoutTextSecondary", {
|
|
16002
16001
|
values: {
|
|
@@ -16017,10 +16016,10 @@ function zc(o) {
|
|
|
16017
16016
|
), m, _, x, S, I, D, M, $ = (
|
|
16018
16017
|
/*$_*/
|
|
16019
16018
|
o[17]("save") + ""
|
|
16020
|
-
), L, G,
|
|
16019
|
+
), L, G, ue, ie, Q, N = (
|
|
16021
16020
|
/*isMobile*/
|
|
16022
|
-
o[18] && $
|
|
16023
|
-
), E =
|
|
16021
|
+
o[18] && $u(o)
|
|
16022
|
+
), E = to(
|
|
16024
16023
|
/*timeoutOptions*/
|
|
16025
16024
|
o[9]
|
|
16026
16025
|
), H = [];
|
|
@@ -16031,18 +16030,18 @@ function zc(o) {
|
|
|
16031
16030
|
o[11] && Jo(o)
|
|
16032
16031
|
), b = (
|
|
16033
16032
|
/*showConfirmationModal*/
|
|
16034
|
-
o[19] &&
|
|
16033
|
+
o[19] && Ru(o)
|
|
16035
16034
|
);
|
|
16036
16035
|
return {
|
|
16037
16036
|
c() {
|
|
16038
|
-
t = O("form"), N && N.c(), e = q(), i = O("h2"), r =
|
|
16037
|
+
t = O("form"), N && N.c(), e = q(), i = O("h2"), r = De(s), n = q(), a = O("div"), l = O("p"), u = q(), c = O("p"), m = q(), _ = O("div"), x = O("select");
|
|
16039
16038
|
for (let h = 0; h < H.length; h += 1)
|
|
16040
16039
|
H[h].c();
|
|
16041
|
-
S = q(), V && V.c(), I = q(), D = O("div"), M = O("button"), L =
|
|
16040
|
+
S = q(), V && V.c(), I = q(), D = O("div"), M = O("button"), L = De($), G = q(), b && b.c(), ue = qr(), z(i, "class", "TimeoutTitle " + /*isMobile*/
|
|
16042
16041
|
(o[18] ? "TimeoutTitleNone" : "")), z(a, "class", "TimeoutDescription " + /*isMobile*/
|
|
16043
16042
|
(o[18] ? "TimeoutDescriptionMobile" : "")), z(x, "class", "TimeoutSelect " + /*isMobile*/
|
|
16044
16043
|
(o[18] ? "TimeoutSelectMobile" : "")), /*timeoutSelected*/
|
|
16045
|
-
o[10] === void 0 &&
|
|
16044
|
+
o[10] === void 0 && Kr(() => (
|
|
16046
16045
|
/*select_change_handler*/
|
|
16047
16046
|
o[27].call(x)
|
|
16048
16047
|
)), z(_, "class", "TimeoutSelectWrapper"), z(M, "class", "TimeoutSave"), z(D, "class", "TimeoutActionButtons " + /*isMobile*/
|
|
@@ -16050,28 +16049,28 @@ function zc(o) {
|
|
|
16050
16049
|
(o[18] ? "TimeoutWrapperMobile" : ""));
|
|
16051
16050
|
},
|
|
16052
16051
|
m(h, f) {
|
|
16053
|
-
|
|
16052
|
+
ne(h, t, f), N && N.m(t, null), w(t, e), w(t, i), w(i, r), w(t, n), w(t, a), w(a, l), l.innerHTML = d, w(a, u), w(a, c), c.innerHTML = p, w(t, m), w(t, _), w(_, x);
|
|
16054
16053
|
for (let g = 0; g < H.length; g += 1)
|
|
16055
16054
|
H[g] && H[g].m(x, null);
|
|
16056
|
-
|
|
16055
|
+
io(
|
|
16057
16056
|
x,
|
|
16058
16057
|
/*timeoutSelected*/
|
|
16059
16058
|
o[10],
|
|
16060
16059
|
!0
|
|
16061
|
-
), w(t, S), V && V.m(t, null), w(t, I), w(t, D), w(D, M), w(M, L),
|
|
16062
|
-
|
|
16060
|
+
), w(t, S), V && V.m(t, null), w(t, I), w(t, D), w(D, M), w(M, L), ne(h, G, f), b && b.m(h, f), ne(h, ue, f), ie || (Q = [
|
|
16061
|
+
bt(
|
|
16063
16062
|
x,
|
|
16064
16063
|
"change",
|
|
16065
16064
|
/*select_change_handler*/
|
|
16066
16065
|
o[27]
|
|
16067
16066
|
),
|
|
16068
|
-
|
|
16067
|
+
bt(
|
|
16069
16068
|
x,
|
|
16070
16069
|
"change",
|
|
16071
16070
|
/*selectPeriod*/
|
|
16072
16071
|
o[22]
|
|
16073
16072
|
),
|
|
16074
|
-
|
|
16073
|
+
bt(
|
|
16075
16074
|
M,
|
|
16076
16075
|
"click",
|
|
16077
16076
|
/*click_handler_1*/
|
|
@@ -16084,7 +16083,7 @@ function zc(o) {
|
|
|
16084
16083
|
/*isMobile*/
|
|
16085
16084
|
h[18] && N.p(h, f), f[0] & /*$_*/
|
|
16086
16085
|
131072 && s !== (s = /*$_*/
|
|
16087
|
-
h[17]("titleTimeout") + "") &&
|
|
16086
|
+
h[17]("titleTimeout") + "") && Re(r, s), f[0] & /*$_, operator, baseurl, lang*/
|
|
16088
16087
|
131139 && d !== (d = /*$_*/
|
|
16089
16088
|
h[17]("timeoutTextFirst", {
|
|
16090
16089
|
values: {
|
|
@@ -16118,10 +16117,10 @@ function zc(o) {
|
|
|
16118
16117
|
h[1]
|
|
16119
16118
|
)
|
|
16120
16119
|
}
|
|
16121
|
-
}) + "") && (
|
|
16120
|
+
}) + "") && (c.innerHTML = p), f[0] & /*timeoutOptions, $_*/
|
|
16122
16121
|
131584
|
|
16123
16122
|
) {
|
|
16124
|
-
E =
|
|
16123
|
+
E = to(
|
|
16125
16124
|
/*timeoutOptions*/
|
|
16126
16125
|
h[9]
|
|
16127
16126
|
);
|
|
@@ -16135,38 +16134,38 @@ function zc(o) {
|
|
|
16135
16134
|
H.length = E.length;
|
|
16136
16135
|
}
|
|
16137
16136
|
f[0] & /*timeoutSelected, timeoutOptions*/
|
|
16138
|
-
1536 &&
|
|
16137
|
+
1536 && io(
|
|
16139
16138
|
x,
|
|
16140
16139
|
/*timeoutSelected*/
|
|
16141
16140
|
h[10]
|
|
16142
16141
|
), /*isUntilDate*/
|
|
16143
16142
|
h[11] ? V ? V.p(h, f) : (V = Jo(h), V.c(), V.m(t, I)) : V && (V.d(1), V = null), f[0] & /*$_*/
|
|
16144
16143
|
131072 && $ !== ($ = /*$_*/
|
|
16145
|
-
h[17]("save") + "") &&
|
|
16144
|
+
h[17]("save") + "") && Re(L, $), /*showConfirmationModal*/
|
|
16146
16145
|
h[19] && b.p(h, f);
|
|
16147
16146
|
},
|
|
16148
16147
|
d(h) {
|
|
16149
|
-
h && (
|
|
16148
|
+
h && (re(t), re(G), re(ue)), N && N.d(), Yr(H, h), V && V.d(), b && b.d(h), ie = !1, Wr(Q);
|
|
16150
16149
|
}
|
|
16151
16150
|
};
|
|
16152
16151
|
}
|
|
16153
|
-
function
|
|
16154
|
-
let t, e, i, s, r, n, a, l, d,
|
|
16152
|
+
function Lu(o) {
|
|
16153
|
+
let t, e, i, s, r, n, a, l, d, u, c, p, m, _, x, S;
|
|
16155
16154
|
function I($, L) {
|
|
16156
16155
|
return (
|
|
16157
16156
|
/*isMobile*/
|
|
16158
|
-
$[18] ?
|
|
16157
|
+
$[18] ? Bu : Hu
|
|
16159
16158
|
);
|
|
16160
16159
|
}
|
|
16161
16160
|
let M = I(o)(o);
|
|
16162
16161
|
return {
|
|
16163
16162
|
c() {
|
|
16164
|
-
t = O("div"), M.c(), e = q(), i = O("div"), s = O("ui-skeleton"), r = q(), n = O("div"), a = q(), l = O("ui-skeleton"), d = q(),
|
|
16163
|
+
t = O("div"), M.c(), e = q(), i = O("div"), s = O("ui-skeleton"), r = q(), n = O("div"), a = q(), l = O("ui-skeleton"), d = q(), u = O("div"), c = q(), p = O("div"), m = O("ui-skeleton"), _ = q(), x = O("div"), S = O("ui-skeleton"), T(s, "structure", "text"), T(
|
|
16165
16164
|
s,
|
|
16166
16165
|
"height",
|
|
16167
16166
|
/*isMobile*/
|
|
16168
16167
|
o[18] ? "15px" : "20px"
|
|
16169
|
-
), T(s, "rows", "3"), T(s, "width", "100%"),
|
|
16168
|
+
), T(s, "rows", "3"), T(s, "width", "100%"), eo(
|
|
16170
16169
|
n,
|
|
16171
16170
|
"height",
|
|
16172
16171
|
/*isMobile*/
|
|
@@ -16176,8 +16175,8 @@ function Lc(o) {
|
|
|
16176
16175
|
"height",
|
|
16177
16176
|
/*isMobile*/
|
|
16178
16177
|
o[18] ? "15px" : "20px"
|
|
16179
|
-
), T(l, "rows", "3"), T(l, "width", "100%"),
|
|
16180
|
-
|
|
16178
|
+
), T(l, "rows", "3"), T(l, "width", "100%"), eo(
|
|
16179
|
+
u,
|
|
16181
16180
|
"height",
|
|
16182
16181
|
/*isMobile*/
|
|
16183
16182
|
o[18] ? "10px" : "30px"
|
|
@@ -16201,25 +16200,25 @@ function Lc(o) {
|
|
|
16201
16200
|
(o[18] ? "TimeoutWrapperMobile" : ""));
|
|
16202
16201
|
},
|
|
16203
16202
|
m($, L) {
|
|
16204
|
-
|
|
16203
|
+
ne($, t, L), M.m(t, null), w(t, e), w(t, i), w(i, s), w(i, r), w(i, n), w(i, a), w(i, l), w(i, d), w(i, u), w(t, c), w(t, p), w(p, m), w(t, _), w(t, x), w(x, S);
|
|
16205
16204
|
},
|
|
16206
|
-
p:
|
|
16205
|
+
p: oi,
|
|
16207
16206
|
d($) {
|
|
16208
|
-
$ &&
|
|
16207
|
+
$ && re(t), M.d();
|
|
16209
16208
|
}
|
|
16210
16209
|
};
|
|
16211
16210
|
}
|
|
16212
|
-
function $
|
|
16213
|
-
let t, e, i, s, r, n, a, l, d,
|
|
16211
|
+
function $u(o) {
|
|
16212
|
+
let t, e, i, s, r, n, a, l, d, u, c = (
|
|
16214
16213
|
/*$_*/
|
|
16215
16214
|
o[17]("titleTimeout") + ""
|
|
16216
16215
|
), p, m, _;
|
|
16217
16216
|
return {
|
|
16218
16217
|
c() {
|
|
16219
|
-
t = O("div"), e =
|
|
16218
|
+
t = O("div"), e = Me("svg"), i = Me("defs"), s = Me("style"), r = De(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"), n = Me("g"), a = Me("g"), l = Me("path"), d = q(), u = O("h2"), p = De(c), z(l, "class", "aaa"), z(l, "d", "M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"), z(l, "transform", "translate(15 15) rotate(180)"), z(a, "transform", "translate(20 158)"), z(n, "transform", "translate(-20 -158)"), z(e, "xmlns", "http://www.w3.org/2000/svg"), z(e, "width", "15"), z(e, "height", "15"), z(e, "viewBox", "0 0 15 15"), z(u, "class", "TimeoutTitleMobile"), z(u, "part", "TimeoutTitleMobile"), z(t, "class", "MenuReturnButton"), z(t, "part", "MenuReturnButton");
|
|
16220
16219
|
},
|
|
16221
16220
|
m(x, S) {
|
|
16222
|
-
|
|
16221
|
+
ne(x, t, S), w(t, e), w(e, i), w(i, s), w(s, r), w(e, n), w(n, a), w(a, l), w(t, d), w(t, u), w(u, p), m || (_ = bt(
|
|
16223
16222
|
t,
|
|
16224
16223
|
"click",
|
|
16225
16224
|
/*click_handler*/
|
|
@@ -16228,11 +16227,11 @@ function $c(o) {
|
|
|
16228
16227
|
},
|
|
16229
16228
|
p(x, S) {
|
|
16230
16229
|
S[0] & /*$_*/
|
|
16231
|
-
131072 &&
|
|
16232
|
-
x[17]("titleTimeout") + "") &&
|
|
16230
|
+
131072 && c !== (c = /*$_*/
|
|
16231
|
+
x[17]("titleTimeout") + "") && Re(p, c);
|
|
16233
16232
|
},
|
|
16234
16233
|
d(x) {
|
|
16235
|
-
x &&
|
|
16234
|
+
x && re(t), m = !1, _();
|
|
16236
16235
|
}
|
|
16237
16236
|
};
|
|
16238
16237
|
}
|
|
@@ -16246,11 +16245,11 @@ function Go(o) {
|
|
|
16246
16245
|
), i, s;
|
|
16247
16246
|
return {
|
|
16248
16247
|
c() {
|
|
16249
|
-
t = O("option"), i =
|
|
16248
|
+
t = O("option"), i = De(e), t.__value = s = /*value*/
|
|
16250
16249
|
o[39], oo(t, t.__value);
|
|
16251
16250
|
},
|
|
16252
16251
|
m(r, n) {
|
|
16253
|
-
|
|
16252
|
+
ne(r, t, n), w(t, i);
|
|
16254
16253
|
},
|
|
16255
16254
|
p(r, n) {
|
|
16256
16255
|
n[0] & /*$_, timeoutOptions*/
|
|
@@ -16258,12 +16257,12 @@ function Go(o) {
|
|
|
16258
16257
|
r[17](
|
|
16259
16258
|
/*value*/
|
|
16260
16259
|
r[39]
|
|
16261
|
-
) + "") &&
|
|
16260
|
+
) + "") && Re(i, e), n[0] & /*timeoutOptions*/
|
|
16262
16261
|
512 && s !== (s = /*value*/
|
|
16263
16262
|
r[39]) && (t.__value = s, oo(t, t.__value));
|
|
16264
16263
|
},
|
|
16265
16264
|
d(r) {
|
|
16266
|
-
r &&
|
|
16265
|
+
r && re(t);
|
|
16267
16266
|
}
|
|
16268
16267
|
};
|
|
16269
16268
|
}
|
|
@@ -16274,10 +16273,10 @@ function Jo(o) {
|
|
|
16274
16273
|
), s, r, n, a = (
|
|
16275
16274
|
/*$_*/
|
|
16276
16275
|
o[17]("dateInstructions") + ""
|
|
16277
|
-
), l, d,
|
|
16276
|
+
), l, d, u, c, p;
|
|
16278
16277
|
return {
|
|
16279
16278
|
c() {
|
|
16280
|
-
t = O("div"), e = O("label"), s =
|
|
16279
|
+
t = O("div"), e = O("label"), s = De(i), r = q(), n = O("span"), l = De(a), d = q(), u = O("strong"), u.innerHTML = "MM/DD/YYYY<strong></strong>", c = q(), p = O("vaadin-date-picker"), z(e, "for", "TimeoutDate"), z(n, "class", "TimeoutDateInstructions"), T(
|
|
16281
16280
|
p,
|
|
16282
16281
|
"min",
|
|
16283
16282
|
/*minDate*/
|
|
@@ -16296,14 +16295,14 @@ function Jo(o) {
|
|
|
16296
16295
|
(o[18] ? "TimeoutDateWrapperMobile" : ""));
|
|
16297
16296
|
},
|
|
16298
16297
|
m(m, _) {
|
|
16299
|
-
|
|
16298
|
+
ne(m, t, _), w(t, e), w(e, s), w(t, r), w(t, n), w(n, l), w(n, d), w(n, u), w(t, c), w(t, p), o[28](p);
|
|
16300
16299
|
},
|
|
16301
16300
|
p(m, _) {
|
|
16302
16301
|
_[0] & /*$_*/
|
|
16303
16302
|
131072 && i !== (i = /*$_*/
|
|
16304
|
-
m[17]("duration") + "") &&
|
|
16303
|
+
m[17]("duration") + "") && Re(s, i), _[0] & /*$_*/
|
|
16305
16304
|
131072 && a !== (a = /*$_*/
|
|
16306
|
-
m[17]("dateInstructions") + "") &&
|
|
16305
|
+
m[17]("dateInstructions") + "") && Re(l, a), _[0] & /*minDate*/
|
|
16307
16306
|
8192 && T(
|
|
16308
16307
|
p,
|
|
16309
16308
|
"min",
|
|
@@ -16324,11 +16323,11 @@ function Jo(o) {
|
|
|
16324
16323
|
);
|
|
16325
16324
|
},
|
|
16326
16325
|
d(m) {
|
|
16327
|
-
m &&
|
|
16326
|
+
m && re(t), o[28](null);
|
|
16328
16327
|
}
|
|
16329
16328
|
};
|
|
16330
16329
|
}
|
|
16331
|
-
function
|
|
16330
|
+
function Ru(o) {
|
|
16332
16331
|
let t, e, i, s;
|
|
16333
16332
|
return {
|
|
16334
16333
|
c() {
|
|
@@ -16376,7 +16375,7 @@ function Rc(o) {
|
|
|
16376
16375
|
), T(t, "showmodaleventname", "ShowTimeoutConfirmationModal");
|
|
16377
16376
|
},
|
|
16378
16377
|
m(r, n) {
|
|
16379
|
-
|
|
16378
|
+
ne(r, t, n), w(t, e);
|
|
16380
16379
|
},
|
|
16381
16380
|
p(r, n) {
|
|
16382
16381
|
n[0] & /*$_*/
|
|
@@ -16431,44 +16430,44 @@ function Rc(o) {
|
|
|
16431
16430
|
);
|
|
16432
16431
|
},
|
|
16433
16432
|
d(r) {
|
|
16434
|
-
r &&
|
|
16433
|
+
r && re(t);
|
|
16435
16434
|
}
|
|
16436
16435
|
};
|
|
16437
16436
|
}
|
|
16438
|
-
function
|
|
16437
|
+
function Hu(o) {
|
|
16439
16438
|
let t;
|
|
16440
16439
|
return {
|
|
16441
16440
|
c() {
|
|
16442
16441
|
t = O("ui-skeleton"), T(t, "structure", "title"), T(t, "width", "100px"), T(t, "margin-top", "20px"), T(t, "margin-bottom", "20px");
|
|
16443
16442
|
},
|
|
16444
16443
|
m(e, i) {
|
|
16445
|
-
|
|
16444
|
+
ne(e, t, i);
|
|
16446
16445
|
},
|
|
16447
16446
|
d(e) {
|
|
16448
|
-
e &&
|
|
16447
|
+
e && re(t);
|
|
16449
16448
|
}
|
|
16450
16449
|
};
|
|
16451
16450
|
}
|
|
16452
|
-
function
|
|
16451
|
+
function Bu(o) {
|
|
16453
16452
|
let t;
|
|
16454
16453
|
return {
|
|
16455
16454
|
c() {
|
|
16456
16455
|
t = O("div"), t.innerHTML = '<ui-skeleton structure="title" width="20px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton> <ui-skeleton structure="title" width="100px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton>', z(t, "class", "MenuReturnButton");
|
|
16457
16456
|
},
|
|
16458
16457
|
m(e, i) {
|
|
16459
|
-
|
|
16458
|
+
ne(e, t, i);
|
|
16460
16459
|
},
|
|
16461
16460
|
d(e) {
|
|
16462
|
-
e &&
|
|
16461
|
+
e && re(t);
|
|
16463
16462
|
}
|
|
16464
16463
|
};
|
|
16465
16464
|
}
|
|
16466
|
-
function
|
|
16465
|
+
function Vu(o) {
|
|
16467
16466
|
let t;
|
|
16468
16467
|
function e(r, n) {
|
|
16469
16468
|
return (
|
|
16470
16469
|
/*skeletonLoading*/
|
|
16471
|
-
r[16] ?
|
|
16470
|
+
r[16] ? Lu : zu
|
|
16472
16471
|
);
|
|
16473
16472
|
}
|
|
16474
16473
|
let i = e(o), s = i(o);
|
|
@@ -16477,22 +16476,22 @@ function Vc(o) {
|
|
|
16477
16476
|
t = O("div"), s.c();
|
|
16478
16477
|
},
|
|
16479
16478
|
m(r, n) {
|
|
16480
|
-
|
|
16479
|
+
ne(r, t, n), s.m(t, null), o[30](t);
|
|
16481
16480
|
},
|
|
16482
16481
|
p(r, n) {
|
|
16483
16482
|
i === (i = e(r)) && s ? s.p(r, n) : (s.d(1), s = i(r), s && (s.c(), s.m(t, null)));
|
|
16484
16483
|
},
|
|
16485
|
-
i:
|
|
16486
|
-
o:
|
|
16484
|
+
i: oi,
|
|
16485
|
+
o: oi,
|
|
16487
16486
|
d(r) {
|
|
16488
|
-
r &&
|
|
16487
|
+
r && re(t), s.d(), o[30](null);
|
|
16489
16488
|
}
|
|
16490
16489
|
};
|
|
16491
16490
|
}
|
|
16492
|
-
function
|
|
16491
|
+
function Uu(o, t, e) {
|
|
16493
16492
|
let i;
|
|
16494
|
-
Br(o,
|
|
16495
|
-
let { operator: s = "Everymatrix" } = t, { lang: r = "en" } = t, { clientstyling: n = "" } = t, { clientstylingurl: a = "" } = t, { mbsource: l } = t, { translationurl: d = "" } = t, { supportemail:
|
|
16493
|
+
Br(o, Gr, (v) => e(17, i = v));
|
|
16494
|
+
let { operator: s = "Everymatrix" } = t, { lang: r = "en" } = t, { clientstyling: n = "" } = t, { clientstylingurl: a = "" } = t, { mbsource: l } = t, { translationurl: d = "" } = t, { supportemail: u = "" } = t, { endpoint: c = "" } = t, { baseurl: p = "" } = t, { hasconfirmationmodal: m = "false" } = t, _, x, S = window.navigator.userAgent, I = Vr(S) !== "PC", D = [
|
|
16496
16495
|
{
|
|
16497
16496
|
value: "CoolOffFor24Hours",
|
|
16498
16497
|
dateSelector: !1
|
|
@@ -16509,7 +16508,7 @@ function Uc(o, t, e) {
|
|
|
16509
16508
|
value: "CoolOffFor3Months",
|
|
16510
16509
|
dateSelector: !1
|
|
16511
16510
|
}
|
|
16512
|
-
], M = D[0].value, $ = !1, L = "", G,
|
|
16511
|
+
], M = D[0].value, $ = !1, L = "", G, ue, ie = "", Q = m === "true", N = !0;
|
|
16513
16512
|
const E = () => {
|
|
16514
16513
|
fetch(d).then((v) => v.json()).then((v) => {
|
|
16515
16514
|
Object.keys(v).forEach((ee) => {
|
|
@@ -16523,7 +16522,7 @@ function Uc(o, t, e) {
|
|
|
16523
16522
|
Wo(v, qo[v]);
|
|
16524
16523
|
});
|
|
16525
16524
|
const H = () => {
|
|
16526
|
-
const v = new URL("/v1/player/coolOffSettings",
|
|
16525
|
+
const v = new URL("/v1/player/coolOffSettings", c), ee = { method: "GET" };
|
|
16527
16526
|
fetch(v.href, ee).then((J) => {
|
|
16528
16527
|
if (!J.ok)
|
|
16529
16528
|
throw new Error("There was an error while fetching the configuration");
|
|
@@ -16564,10 +16563,10 @@ function Uc(o, t, e) {
|
|
|
16564
16563
|
window.location.href
|
|
16565
16564
|
);
|
|
16566
16565
|
}, f = () => {
|
|
16567
|
-
|
|
16566
|
+
Nu(r), H();
|
|
16568
16567
|
}, g = () => {
|
|
16569
16568
|
const v = D.find((ee) => ee.value === M);
|
|
16570
|
-
e(11, $ = !1), v.dateSelector && (e(11, $ = !0), e(13, G = Yo().format("YYYY-MM-DD")), e(14,
|
|
16569
|
+
e(11, $ = !1), v.dateSelector && (e(11, $ = !0), e(13, G = Yo().format("YYYY-MM-DD")), e(14, ue = Yo().add(6, "months").format("YYYY-MM-DD")), e(12, L = G)), Q && V();
|
|
16571
16570
|
}, y = (v) => {
|
|
16572
16571
|
e(12, L = v.target.value);
|
|
16573
16572
|
}, C = () => {
|
|
@@ -16578,7 +16577,7 @@ function Uc(o, t, e) {
|
|
|
16578
16577
|
});
|
|
16579
16578
|
const A = () => h();
|
|
16580
16579
|
function F() {
|
|
16581
|
-
M =
|
|
16580
|
+
M = jr(this), e(10, M), e(9, D);
|
|
16582
16581
|
}
|
|
16583
16582
|
function R(v) {
|
|
16584
16583
|
Qi[v ? "unshift" : "push"](() => {
|
|
@@ -16592,14 +16591,14 @@ function Uc(o, t, e) {
|
|
|
16592
16591
|
});
|
|
16593
16592
|
}
|
|
16594
16593
|
return o.$$set = (v) => {
|
|
16595
|
-
"operator" in v && e(0, s = v.operator), "lang" in v && e(1, r = v.lang), "clientstyling" in v && e(2, n = v.clientstyling), "clientstylingurl" in v && e(3, a = v.clientstylingurl), "mbsource" in v && e(4, l = v.mbsource), "translationurl" in v && e(23, d = v.translationurl), "supportemail" in v && e(5,
|
|
16594
|
+
"operator" in v && e(0, s = v.operator), "lang" in v && e(1, r = v.lang), "clientstyling" in v && e(2, n = v.clientstyling), "clientstylingurl" in v && e(3, a = v.clientstylingurl), "mbsource" in v && e(4, l = v.mbsource), "translationurl" in v && e(23, d = v.translationurl), "supportemail" in v && e(5, u = v.supportemail), "endpoint" in v && e(24, c = v.endpoint), "baseurl" in v && e(6, p = v.baseurl), "hasconfirmationmodal" in v && e(25, m = v.hasconfirmationmodal);
|
|
16596
16595
|
}, o.$$.update = () => {
|
|
16597
16596
|
o.$$.dirty[0] & /*calendar*/
|
|
16598
16597
|
256 && x && C(), o.$$.dirty[0] & /*lang*/
|
|
16599
16598
|
2 && r && f(), o.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
16600
|
-
132 && n && _ &&
|
|
16601
|
-
136 && a && _ &&
|
|
16602
|
-
144 && l && _ &&
|
|
16599
|
+
132 && n && _ && Jr(_, n), o.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
16600
|
+
136 && a && _ && Xr(_, a), o.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
16601
|
+
144 && l && _ && Zr(_, `${l}.Style`), o.$$.dirty[0] & /*translationurl*/
|
|
16603
16602
|
8388608 && d && E();
|
|
16604
16603
|
}, Q && V(), [
|
|
16605
16604
|
s,
|
|
@@ -16607,7 +16606,7 @@ function Uc(o, t, e) {
|
|
|
16607
16606
|
n,
|
|
16608
16607
|
a,
|
|
16609
16608
|
l,
|
|
16610
|
-
|
|
16609
|
+
u,
|
|
16611
16610
|
p,
|
|
16612
16611
|
_,
|
|
16613
16612
|
x,
|
|
@@ -16616,7 +16615,7 @@ function Uc(o, t, e) {
|
|
|
16616
16615
|
$,
|
|
16617
16616
|
L,
|
|
16618
16617
|
G,
|
|
16619
|
-
|
|
16618
|
+
ue,
|
|
16620
16619
|
ie,
|
|
16621
16620
|
N,
|
|
16622
16621
|
i,
|
|
@@ -16626,7 +16625,7 @@ function Uc(o, t, e) {
|
|
|
16626
16625
|
h,
|
|
16627
16626
|
g,
|
|
16628
16627
|
d,
|
|
16629
|
-
|
|
16628
|
+
c,
|
|
16630
16629
|
m,
|
|
16631
16630
|
A,
|
|
16632
16631
|
F,
|
|
@@ -16635,14 +16634,14 @@ function Uc(o, t, e) {
|
|
|
16635
16634
|
Y
|
|
16636
16635
|
];
|
|
16637
16636
|
}
|
|
16638
|
-
class
|
|
16637
|
+
class ju extends zr {
|
|
16639
16638
|
constructor(t) {
|
|
16640
16639
|
super(), Lr(
|
|
16641
16640
|
this,
|
|
16642
16641
|
t,
|
|
16643
|
-
|
|
16644
|
-
|
|
16645
|
-
|
|
16642
|
+
Uu,
|
|
16643
|
+
Vu,
|
|
16644
|
+
$r,
|
|
16646
16645
|
{
|
|
16647
16646
|
operator: 0,
|
|
16648
16647
|
lang: 1,
|
|
@@ -16655,7 +16654,7 @@ class jc extends zr {
|
|
|
16655
16654
|
baseurl: 6,
|
|
16656
16655
|
hasconfirmationmodal: 25
|
|
16657
16656
|
},
|
|
16658
|
-
|
|
16657
|
+
Fu,
|
|
16659
16658
|
[-1, -1]
|
|
16660
16659
|
);
|
|
16661
16660
|
}
|
|
@@ -16720,7 +16719,7 @@ class jc extends zr {
|
|
|
16720
16719
|
this.$$set({ hasconfirmationmodal: t }), ae();
|
|
16721
16720
|
}
|
|
16722
16721
|
}
|
|
16723
|
-
|
|
16722
|
+
Rr(ju, { operator: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, translationurl: {}, supportemail: {}, endpoint: {}, baseurl: {}, hasconfirmationmodal: {} }, [], [], !0);
|
|
16724
16723
|
export {
|
|
16725
|
-
|
|
16724
|
+
ju as default
|
|
16726
16725
|
};
|