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