ui.shipaid.com 0.3.105 → 0.3.107
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/dist/widget.es.js +451 -446
- package/dist/widget.iife.js +85 -91
- package/dist/widget.umd.js +79 -85
- package/dist-types/widget/src/shipaid-widget.d.ts +1 -0
- package/dist-types/widget/src/utils/graphql.d.ts +6 -0
- package/package.json +1 -1
- package/dist-types/widget/src/components/product-add-confirmation.d.ts +0 -13
package/dist/widget.es.js
CHANGED
|
@@ -88,14 +88,14 @@ const common = { calculateProtectionTotal, findProtectionVariant };
|
|
|
88
88
|
* Copyright 2017 Google LLC
|
|
89
89
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
90
90
|
*/
|
|
91
|
-
const i$3 = (
|
|
92
|
-
n2.createProperty(
|
|
93
|
-
} } : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey:
|
|
94
|
-
"function" == typeof
|
|
91
|
+
const i$3 = (i3, e3) => "method" === e3.kind && e3.descriptor && !("value" in e3.descriptor) ? { ...e3, finisher(n2) {
|
|
92
|
+
n2.createProperty(e3.key, i3);
|
|
93
|
+
} } : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: e3.key, initializer() {
|
|
94
|
+
"function" == typeof e3.initializer && (this[e3.key] = e3.initializer.call(this));
|
|
95
95
|
}, finisher(n2) {
|
|
96
|
-
n2.createProperty(
|
|
97
|
-
} }, e$6 = (
|
|
98
|
-
|
|
96
|
+
n2.createProperty(e3.key, i3);
|
|
97
|
+
} }, e$6 = (i3, e3, n2) => {
|
|
98
|
+
e3.constructor.createProperty(n2, i3);
|
|
99
99
|
};
|
|
100
100
|
function n$7(n2) {
|
|
101
101
|
return (t2, o3) => void 0 !== o3 ? e$6(n2, t2, o3) : i$3(n2, t2);
|
|
@@ -115,23 +115,314 @@ function t$3(t2) {
|
|
|
115
115
|
*/
|
|
116
116
|
var n$6;
|
|
117
117
|
null != (null === (n$6 = window.HTMLSlotElement) || void 0 === n$6 ? void 0 : n$6.prototype.assignedElements) ? (o3, n2) => o3.assignedElements(n2) : (o3, n2) => o3.assignedNodes(n2).filter((o4) => o4.nodeType === Node.ELEMENT_NODE);
|
|
118
|
+
/**
|
|
119
|
+
* @license
|
|
120
|
+
* Copyright 2017 Google LLC
|
|
121
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
122
|
+
*/
|
|
123
|
+
var t$2;
|
|
124
|
+
const i$2 = window, s$4 = i$2.trustedTypes, e$5 = s$4 ? s$4.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, o$5 = "$lit$", n$5 = `lit$${(Math.random() + "").slice(9)}$`, l$3 = "?" + n$5, h$2 = `<${l$3}>`, r$3 = document, u$1 = () => r$3.createComment(""), d$1 = (t2) => null === t2 || "object" != typeof t2 && "function" != typeof t2, c$2 = Array.isArray, v = (t2) => c$2(t2) || "function" == typeof (null == t2 ? void 0 : t2[Symbol.iterator]), a$1 = "[ \n\f\r]", f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, _ = /-->/g, m = />/g, p = RegExp(`>|${a$1}(?:([^\\s"'>=/]+)(${a$1}*=${a$1}*(?:[^
|
|
125
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), g = /'/g, $ = /"/g, y = /^(?:script|style|textarea|title)$/i, w = (t2) => (i3, ...s3) => ({ _$litType$: t2, strings: i3, values: s3 }), x = w(1), T = Symbol.for("lit-noChange"), A = Symbol.for("lit-nothing"), E = /* @__PURE__ */ new WeakMap(), C = r$3.createTreeWalker(r$3, 129, null, false);
|
|
126
|
+
function P(t2, i3) {
|
|
127
|
+
if (!Array.isArray(t2) || !t2.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
128
|
+
return void 0 !== e$5 ? e$5.createHTML(i3) : i3;
|
|
129
|
+
}
|
|
130
|
+
const V = (t2, i3) => {
|
|
131
|
+
const s3 = t2.length - 1, e3 = [];
|
|
132
|
+
let l2, r2 = 2 === i3 ? "<svg>" : "", u2 = f;
|
|
133
|
+
for (let i4 = 0; i4 < s3; i4++) {
|
|
134
|
+
const s4 = t2[i4];
|
|
135
|
+
let d2, c2, v2 = -1, a2 = 0;
|
|
136
|
+
for (; a2 < s4.length && (u2.lastIndex = a2, c2 = u2.exec(s4), null !== c2); ) a2 = u2.lastIndex, u2 === f ? "!--" === c2[1] ? u2 = _ : void 0 !== c2[1] ? u2 = m : void 0 !== c2[2] ? (y.test(c2[2]) && (l2 = RegExp("</" + c2[2], "g")), u2 = p) : void 0 !== c2[3] && (u2 = p) : u2 === p ? ">" === c2[0] ? (u2 = null != l2 ? l2 : f, v2 = -1) : void 0 === c2[1] ? v2 = -2 : (v2 = u2.lastIndex - c2[2].length, d2 = c2[1], u2 = void 0 === c2[3] ? p : '"' === c2[3] ? $ : g) : u2 === $ || u2 === g ? u2 = p : u2 === _ || u2 === m ? u2 = f : (u2 = p, l2 = void 0);
|
|
137
|
+
const w2 = u2 === p && t2[i4 + 1].startsWith("/>") ? " " : "";
|
|
138
|
+
r2 += u2 === f ? s4 + h$2 : v2 >= 0 ? (e3.push(d2), s4.slice(0, v2) + o$5 + s4.slice(v2) + n$5 + w2) : s4 + n$5 + (-2 === v2 ? (e3.push(void 0), i4) : w2);
|
|
139
|
+
}
|
|
140
|
+
return [P(t2, r2 + (t2[s3] || "<?>") + (2 === i3 ? "</svg>" : "")), e3];
|
|
141
|
+
};
|
|
142
|
+
class N {
|
|
143
|
+
constructor({ strings: t2, _$litType$: i3 }, e3) {
|
|
144
|
+
let h2;
|
|
145
|
+
this.parts = [];
|
|
146
|
+
let r2 = 0, d2 = 0;
|
|
147
|
+
const c2 = t2.length - 1, v2 = this.parts, [a2, f2] = V(t2, i3);
|
|
148
|
+
if (this.el = N.createElement(a2, e3), C.currentNode = this.el.content, 2 === i3) {
|
|
149
|
+
const t3 = this.el.content, i4 = t3.firstChild;
|
|
150
|
+
i4.remove(), t3.append(...i4.childNodes);
|
|
151
|
+
}
|
|
152
|
+
for (; null !== (h2 = C.nextNode()) && v2.length < c2; ) {
|
|
153
|
+
if (1 === h2.nodeType) {
|
|
154
|
+
if (h2.hasAttributes()) {
|
|
155
|
+
const t3 = [];
|
|
156
|
+
for (const i4 of h2.getAttributeNames()) if (i4.endsWith(o$5) || i4.startsWith(n$5)) {
|
|
157
|
+
const s3 = f2[d2++];
|
|
158
|
+
if (t3.push(i4), void 0 !== s3) {
|
|
159
|
+
const t4 = h2.getAttribute(s3.toLowerCase() + o$5).split(n$5), i5 = /([.?@])?(.*)/.exec(s3);
|
|
160
|
+
v2.push({ type: 1, index: r2, name: i5[2], strings: t4, ctor: "." === i5[1] ? H : "?" === i5[1] ? L : "@" === i5[1] ? z : k });
|
|
161
|
+
} else v2.push({ type: 6, index: r2 });
|
|
162
|
+
}
|
|
163
|
+
for (const i4 of t3) h2.removeAttribute(i4);
|
|
164
|
+
}
|
|
165
|
+
if (y.test(h2.tagName)) {
|
|
166
|
+
const t3 = h2.textContent.split(n$5), i4 = t3.length - 1;
|
|
167
|
+
if (i4 > 0) {
|
|
168
|
+
h2.textContent = s$4 ? s$4.emptyScript : "";
|
|
169
|
+
for (let s3 = 0; s3 < i4; s3++) h2.append(t3[s3], u$1()), C.nextNode(), v2.push({ type: 2, index: ++r2 });
|
|
170
|
+
h2.append(t3[i4], u$1());
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
} else if (8 === h2.nodeType) if (h2.data === l$3) v2.push({ type: 2, index: r2 });
|
|
174
|
+
else {
|
|
175
|
+
let t3 = -1;
|
|
176
|
+
for (; -1 !== (t3 = h2.data.indexOf(n$5, t3 + 1)); ) v2.push({ type: 7, index: r2 }), t3 += n$5.length - 1;
|
|
177
|
+
}
|
|
178
|
+
r2++;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
static createElement(t2, i3) {
|
|
182
|
+
const s3 = r$3.createElement("template");
|
|
183
|
+
return s3.innerHTML = t2, s3;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
function S$1(t2, i3, s3 = t2, e3) {
|
|
187
|
+
var o3, n2, l2, h2;
|
|
188
|
+
if (i3 === T) return i3;
|
|
189
|
+
let r2 = void 0 !== e3 ? null === (o3 = s3._$Co) || void 0 === o3 ? void 0 : o3[e3] : s3._$Cl;
|
|
190
|
+
const u2 = d$1(i3) ? void 0 : i3._$litDirective$;
|
|
191
|
+
return (null == r2 ? void 0 : r2.constructor) !== u2 && (null === (n2 = null == r2 ? void 0 : r2._$AO) || void 0 === n2 || n2.call(r2, false), void 0 === u2 ? r2 = void 0 : (r2 = new u2(t2), r2._$AT(t2, s3, e3)), void 0 !== e3 ? (null !== (l2 = (h2 = s3)._$Co) && void 0 !== l2 ? l2 : h2._$Co = [])[e3] = r2 : s3._$Cl = r2), void 0 !== r2 && (i3 = S$1(t2, r2._$AS(t2, i3.values), r2, e3)), i3;
|
|
192
|
+
}
|
|
193
|
+
class M {
|
|
194
|
+
constructor(t2, i3) {
|
|
195
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t2, this._$AM = i3;
|
|
196
|
+
}
|
|
197
|
+
get parentNode() {
|
|
198
|
+
return this._$AM.parentNode;
|
|
199
|
+
}
|
|
200
|
+
get _$AU() {
|
|
201
|
+
return this._$AM._$AU;
|
|
202
|
+
}
|
|
203
|
+
u(t2) {
|
|
204
|
+
var i3;
|
|
205
|
+
const { el: { content: s3 }, parts: e3 } = this._$AD, o3 = (null !== (i3 = null == t2 ? void 0 : t2.creationScope) && void 0 !== i3 ? i3 : r$3).importNode(s3, true);
|
|
206
|
+
C.currentNode = o3;
|
|
207
|
+
let n2 = C.nextNode(), l2 = 0, h2 = 0, u2 = e3[0];
|
|
208
|
+
for (; void 0 !== u2; ) {
|
|
209
|
+
if (l2 === u2.index) {
|
|
210
|
+
let i4;
|
|
211
|
+
2 === u2.type ? i4 = new R(n2, n2.nextSibling, this, t2) : 1 === u2.type ? i4 = new u2.ctor(n2, u2.name, u2.strings, this, t2) : 6 === u2.type && (i4 = new Z(n2, this, t2)), this._$AV.push(i4), u2 = e3[++h2];
|
|
212
|
+
}
|
|
213
|
+
l2 !== (null == u2 ? void 0 : u2.index) && (n2 = C.nextNode(), l2++);
|
|
214
|
+
}
|
|
215
|
+
return C.currentNode = r$3, o3;
|
|
216
|
+
}
|
|
217
|
+
v(t2) {
|
|
218
|
+
let i3 = 0;
|
|
219
|
+
for (const s3 of this._$AV) void 0 !== s3 && (void 0 !== s3.strings ? (s3._$AI(t2, s3, i3), i3 += s3.strings.length - 2) : s3._$AI(t2[i3])), i3++;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
class R {
|
|
223
|
+
constructor(t2, i3, s3, e3) {
|
|
224
|
+
var o3;
|
|
225
|
+
this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA = t2, this._$AB = i3, this._$AM = s3, this.options = e3, this._$Cp = null === (o3 = null == e3 ? void 0 : e3.isConnected) || void 0 === o3 || o3;
|
|
226
|
+
}
|
|
227
|
+
get _$AU() {
|
|
228
|
+
var t2, i3;
|
|
229
|
+
return null !== (i3 = null === (t2 = this._$AM) || void 0 === t2 ? void 0 : t2._$AU) && void 0 !== i3 ? i3 : this._$Cp;
|
|
230
|
+
}
|
|
231
|
+
get parentNode() {
|
|
232
|
+
let t2 = this._$AA.parentNode;
|
|
233
|
+
const i3 = this._$AM;
|
|
234
|
+
return void 0 !== i3 && 11 === (null == t2 ? void 0 : t2.nodeType) && (t2 = i3.parentNode), t2;
|
|
235
|
+
}
|
|
236
|
+
get startNode() {
|
|
237
|
+
return this._$AA;
|
|
238
|
+
}
|
|
239
|
+
get endNode() {
|
|
240
|
+
return this._$AB;
|
|
241
|
+
}
|
|
242
|
+
_$AI(t2, i3 = this) {
|
|
243
|
+
t2 = S$1(this, t2, i3), d$1(t2) ? t2 === A || null == t2 || "" === t2 ? (this._$AH !== A && this._$AR(), this._$AH = A) : t2 !== this._$AH && t2 !== T && this._(t2) : void 0 !== t2._$litType$ ? this.g(t2) : void 0 !== t2.nodeType ? this.$(t2) : v(t2) ? this.T(t2) : this._(t2);
|
|
244
|
+
}
|
|
245
|
+
k(t2) {
|
|
246
|
+
return this._$AA.parentNode.insertBefore(t2, this._$AB);
|
|
247
|
+
}
|
|
248
|
+
$(t2) {
|
|
249
|
+
this._$AH !== t2 && (this._$AR(), this._$AH = this.k(t2));
|
|
250
|
+
}
|
|
251
|
+
_(t2) {
|
|
252
|
+
this._$AH !== A && d$1(this._$AH) ? this._$AA.nextSibling.data = t2 : this.$(r$3.createTextNode(t2)), this._$AH = t2;
|
|
253
|
+
}
|
|
254
|
+
g(t2) {
|
|
255
|
+
var i3;
|
|
256
|
+
const { values: s3, _$litType$: e3 } = t2, o3 = "number" == typeof e3 ? this._$AC(t2) : (void 0 === e3.el && (e3.el = N.createElement(P(e3.h, e3.h[0]), this.options)), e3);
|
|
257
|
+
if ((null === (i3 = this._$AH) || void 0 === i3 ? void 0 : i3._$AD) === o3) this._$AH.v(s3);
|
|
258
|
+
else {
|
|
259
|
+
const t3 = new M(o3, this), i4 = t3.u(this.options);
|
|
260
|
+
t3.v(s3), this.$(i4), this._$AH = t3;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
_$AC(t2) {
|
|
264
|
+
let i3 = E.get(t2.strings);
|
|
265
|
+
return void 0 === i3 && E.set(t2.strings, i3 = new N(t2)), i3;
|
|
266
|
+
}
|
|
267
|
+
T(t2) {
|
|
268
|
+
c$2(this._$AH) || (this._$AH = [], this._$AR());
|
|
269
|
+
const i3 = this._$AH;
|
|
270
|
+
let s3, e3 = 0;
|
|
271
|
+
for (const o3 of t2) e3 === i3.length ? i3.push(s3 = new R(this.k(u$1()), this.k(u$1()), this, this.options)) : s3 = i3[e3], s3._$AI(o3), e3++;
|
|
272
|
+
e3 < i3.length && (this._$AR(s3 && s3._$AB.nextSibling, e3), i3.length = e3);
|
|
273
|
+
}
|
|
274
|
+
_$AR(t2 = this._$AA.nextSibling, i3) {
|
|
275
|
+
var s3;
|
|
276
|
+
for (null === (s3 = this._$AP) || void 0 === s3 || s3.call(this, false, true, i3); t2 && t2 !== this._$AB; ) {
|
|
277
|
+
const i4 = t2.nextSibling;
|
|
278
|
+
t2.remove(), t2 = i4;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
setConnected(t2) {
|
|
282
|
+
var i3;
|
|
283
|
+
void 0 === this._$AM && (this._$Cp = t2, null === (i3 = this._$AP) || void 0 === i3 || i3.call(this, t2));
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
class k {
|
|
287
|
+
constructor(t2, i3, s3, e3, o3) {
|
|
288
|
+
this.type = 1, this._$AH = A, this._$AN = void 0, this.element = t2, this.name = i3, this._$AM = e3, this.options = o3, s3.length > 2 || "" !== s3[0] || "" !== s3[1] ? (this._$AH = Array(s3.length - 1).fill(new String()), this.strings = s3) : this._$AH = A;
|
|
289
|
+
}
|
|
290
|
+
get tagName() {
|
|
291
|
+
return this.element.tagName;
|
|
292
|
+
}
|
|
293
|
+
get _$AU() {
|
|
294
|
+
return this._$AM._$AU;
|
|
295
|
+
}
|
|
296
|
+
_$AI(t2, i3 = this, s3, e3) {
|
|
297
|
+
const o3 = this.strings;
|
|
298
|
+
let n2 = false;
|
|
299
|
+
if (void 0 === o3) t2 = S$1(this, t2, i3, 0), n2 = !d$1(t2) || t2 !== this._$AH && t2 !== T, n2 && (this._$AH = t2);
|
|
300
|
+
else {
|
|
301
|
+
const e4 = t2;
|
|
302
|
+
let l2, h2;
|
|
303
|
+
for (t2 = o3[0], l2 = 0; l2 < o3.length - 1; l2++) h2 = S$1(this, e4[s3 + l2], i3, l2), h2 === T && (h2 = this._$AH[l2]), n2 || (n2 = !d$1(h2) || h2 !== this._$AH[l2]), h2 === A ? t2 = A : t2 !== A && (t2 += (null != h2 ? h2 : "") + o3[l2 + 1]), this._$AH[l2] = h2;
|
|
304
|
+
}
|
|
305
|
+
n2 && !e3 && this.j(t2);
|
|
306
|
+
}
|
|
307
|
+
j(t2) {
|
|
308
|
+
t2 === A ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, null != t2 ? t2 : "");
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
class H extends k {
|
|
312
|
+
constructor() {
|
|
313
|
+
super(...arguments), this.type = 3;
|
|
314
|
+
}
|
|
315
|
+
j(t2) {
|
|
316
|
+
this.element[this.name] = t2 === A ? void 0 : t2;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
const I = s$4 ? s$4.emptyScript : "";
|
|
320
|
+
class L extends k {
|
|
321
|
+
constructor() {
|
|
322
|
+
super(...arguments), this.type = 4;
|
|
323
|
+
}
|
|
324
|
+
j(t2) {
|
|
325
|
+
t2 && t2 !== A ? this.element.setAttribute(this.name, I) : this.element.removeAttribute(this.name);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
class z extends k {
|
|
329
|
+
constructor(t2, i3, s3, e3, o3) {
|
|
330
|
+
super(t2, i3, s3, e3, o3), this.type = 5;
|
|
331
|
+
}
|
|
332
|
+
_$AI(t2, i3 = this) {
|
|
333
|
+
var s3;
|
|
334
|
+
if ((t2 = null !== (s3 = S$1(this, t2, i3, 0)) && void 0 !== s3 ? s3 : A) === T) return;
|
|
335
|
+
const e3 = this._$AH, o3 = t2 === A && e3 !== A || t2.capture !== e3.capture || t2.once !== e3.once || t2.passive !== e3.passive, n2 = t2 !== A && (e3 === A || o3);
|
|
336
|
+
o3 && this.element.removeEventListener(this.name, this, e3), n2 && this.element.addEventListener(this.name, this, t2), this._$AH = t2;
|
|
337
|
+
}
|
|
338
|
+
handleEvent(t2) {
|
|
339
|
+
var i3, s3;
|
|
340
|
+
"function" == typeof this._$AH ? this._$AH.call(null !== (s3 = null === (i3 = this.options) || void 0 === i3 ? void 0 : i3.host) && void 0 !== s3 ? s3 : this.element, t2) : this._$AH.handleEvent(t2);
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
class Z {
|
|
344
|
+
constructor(t2, i3, s3) {
|
|
345
|
+
this.element = t2, this.type = 6, this._$AN = void 0, this._$AM = i3, this.options = s3;
|
|
346
|
+
}
|
|
347
|
+
get _$AU() {
|
|
348
|
+
return this._$AM._$AU;
|
|
349
|
+
}
|
|
350
|
+
_$AI(t2) {
|
|
351
|
+
S$1(this, t2);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
const B = i$2.litHtmlPolyfillSupport;
|
|
355
|
+
null == B || B(N, R), (null !== (t$2 = i$2.litHtmlVersions) && void 0 !== t$2 ? t$2 : i$2.litHtmlVersions = []).push("2.8.0");
|
|
356
|
+
const D = (t2, i3, s3) => {
|
|
357
|
+
var e3, o3;
|
|
358
|
+
const n2 = null !== (e3 = null == s3 ? void 0 : s3.renderBefore) && void 0 !== e3 ? e3 : i3;
|
|
359
|
+
let l2 = n2._$litPart$;
|
|
360
|
+
if (void 0 === l2) {
|
|
361
|
+
const t3 = null !== (o3 = null == s3 ? void 0 : s3.renderBefore) && void 0 !== o3 ? o3 : null;
|
|
362
|
+
n2._$litPart$ = l2 = new R(i3.insertBefore(u$1(), t3), t3, void 0, null != s3 ? s3 : {});
|
|
363
|
+
}
|
|
364
|
+
return l2._$AI(t2), l2;
|
|
365
|
+
};
|
|
366
|
+
/**
|
|
367
|
+
* @license
|
|
368
|
+
* Copyright 2017 Google LLC
|
|
369
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
370
|
+
*/
|
|
371
|
+
const t$1 = { CHILD: 2 }, e$4 = (t2) => (...e3) => ({ _$litDirective$: t2, values: e3 });
|
|
372
|
+
let i$1 = class i {
|
|
373
|
+
constructor(t2) {
|
|
374
|
+
}
|
|
375
|
+
get _$AU() {
|
|
376
|
+
return this._$AM._$AU;
|
|
377
|
+
}
|
|
378
|
+
_$AT(t2, e3, i3) {
|
|
379
|
+
this._$Ct = t2, this._$AM = e3, this._$Ci = i3;
|
|
380
|
+
}
|
|
381
|
+
_$AS(t2, e3) {
|
|
382
|
+
return this.update(t2, e3);
|
|
383
|
+
}
|
|
384
|
+
update(t2, e3) {
|
|
385
|
+
return this.render(...e3);
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
/**
|
|
389
|
+
* @license
|
|
390
|
+
* Copyright 2017 Google LLC
|
|
391
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
392
|
+
*/
|
|
393
|
+
let e$3 = class e extends i$1 {
|
|
394
|
+
constructor(i3) {
|
|
395
|
+
if (super(i3), this.et = A, i3.type !== t$1.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
396
|
+
}
|
|
397
|
+
render(r2) {
|
|
398
|
+
if (r2 === A || null == r2) return this.ft = void 0, this.et = r2;
|
|
399
|
+
if (r2 === T) return r2;
|
|
400
|
+
if ("string" != typeof r2) throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
401
|
+
if (r2 === this.et) return this.ft;
|
|
402
|
+
this.et = r2;
|
|
403
|
+
const s3 = [r2];
|
|
404
|
+
return s3.raw = s3, this.ft = { _$litType$: this.constructor.resultType, strings: s3, values: [] };
|
|
405
|
+
}
|
|
406
|
+
};
|
|
407
|
+
e$3.directiveName = "unsafeHTML", e$3.resultType = 1;
|
|
408
|
+
const o$4 = e$4(e$3);
|
|
118
409
|
/**
|
|
119
410
|
* @license
|
|
120
411
|
* Copyright 2019 Google LLC
|
|
121
412
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
122
413
|
*/
|
|
123
|
-
const t
|
|
124
|
-
let o$
|
|
125
|
-
constructor(t2,
|
|
126
|
-
if (this._$cssResult$ = true, n2 !== s$
|
|
127
|
-
this.cssText = t2, this.t =
|
|
414
|
+
const t = window, e$2 = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$3 = Symbol(), n$4 = /* @__PURE__ */ new WeakMap();
|
|
415
|
+
let o$3 = class o {
|
|
416
|
+
constructor(t2, e3, n2) {
|
|
417
|
+
if (this._$cssResult$ = true, n2 !== s$3) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
418
|
+
this.cssText = t2, this.t = e3;
|
|
128
419
|
}
|
|
129
420
|
get styleSheet() {
|
|
130
421
|
let t2 = this.o;
|
|
131
422
|
const s3 = this.t;
|
|
132
|
-
if (e$
|
|
133
|
-
const
|
|
134
|
-
|
|
423
|
+
if (e$2 && void 0 === t2) {
|
|
424
|
+
const e3 = void 0 !== s3 && 1 === s3.length;
|
|
425
|
+
e3 && (t2 = n$4.get(s3)), void 0 === t2 && ((this.o = t2 = new CSSStyleSheet()).replaceSync(this.cssText), e3 && n$4.set(s3, t2));
|
|
135
426
|
}
|
|
136
427
|
return t2;
|
|
137
428
|
}
|
|
@@ -139,42 +430,42 @@ let o$4 = class o {
|
|
|
139
430
|
return this.cssText;
|
|
140
431
|
}
|
|
141
432
|
};
|
|
142
|
-
const r$
|
|
143
|
-
const n2 = 1 === t2.length ? t2[0] :
|
|
433
|
+
const r$2 = (t2) => new o$3("string" == typeof t2 ? t2 : t2 + "", void 0, s$3), i2 = (t2, ...e3) => {
|
|
434
|
+
const n2 = 1 === t2.length ? t2[0] : e3.reduce((e4, s3, n3) => e4 + ((t3) => {
|
|
144
435
|
if (true === t3._$cssResult$) return t3.cssText;
|
|
145
436
|
if ("number" == typeof t3) return t3;
|
|
146
437
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + t3 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
147
438
|
})(s3) + t2[n3 + 1], t2[0]);
|
|
148
|
-
return new o$
|
|
149
|
-
}, S
|
|
150
|
-
e$
|
|
151
|
-
const n3 = document.createElement("style"), o3 = t
|
|
152
|
-
void 0 !== o3 && n3.setAttribute("nonce", o3), n3.textContent =
|
|
439
|
+
return new o$3(n2, t2, s$3);
|
|
440
|
+
}, S = (s3, n2) => {
|
|
441
|
+
e$2 ? s3.adoptedStyleSheets = n2.map((t2) => t2 instanceof CSSStyleSheet ? t2 : t2.styleSheet) : n2.forEach((e3) => {
|
|
442
|
+
const n3 = document.createElement("style"), o3 = t.litNonce;
|
|
443
|
+
void 0 !== o3 && n3.setAttribute("nonce", o3), n3.textContent = e3.cssText, s3.appendChild(n3);
|
|
153
444
|
});
|
|
154
|
-
}, c$
|
|
155
|
-
let
|
|
156
|
-
for (const s3 of t3.cssRules)
|
|
157
|
-
return r$
|
|
445
|
+
}, c$1 = e$2 ? (t2) => t2 : (t2) => t2 instanceof CSSStyleSheet ? ((t3) => {
|
|
446
|
+
let e3 = "";
|
|
447
|
+
for (const s3 of t3.cssRules) e3 += s3.cssText;
|
|
448
|
+
return r$2(e3);
|
|
158
449
|
})(t2) : t2;
|
|
159
450
|
/**
|
|
160
451
|
* @license
|
|
161
452
|
* Copyright 2017 Google LLC
|
|
162
453
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
163
454
|
*/
|
|
164
|
-
var s$
|
|
165
|
-
const e$
|
|
166
|
-
switch (
|
|
455
|
+
var s$2;
|
|
456
|
+
const e$1 = window, r$1 = e$1.trustedTypes, h$1 = r$1 ? r$1.emptyScript : "", o$2 = e$1.reactiveElementPolyfillSupport, n$3 = { toAttribute(t2, i3) {
|
|
457
|
+
switch (i3) {
|
|
167
458
|
case Boolean:
|
|
168
|
-
t2 = t2 ? h$
|
|
459
|
+
t2 = t2 ? h$1 : null;
|
|
169
460
|
break;
|
|
170
461
|
case Object:
|
|
171
462
|
case Array:
|
|
172
463
|
t2 = null == t2 ? t2 : JSON.stringify(t2);
|
|
173
464
|
}
|
|
174
465
|
return t2;
|
|
175
|
-
}, fromAttribute(t2,
|
|
466
|
+
}, fromAttribute(t2, i3) {
|
|
176
467
|
let s3 = t2;
|
|
177
|
-
switch (
|
|
468
|
+
switch (i3) {
|
|
178
469
|
case Boolean:
|
|
179
470
|
s3 = null !== t2;
|
|
180
471
|
break;
|
|
@@ -190,60 +481,60 @@ const e$4 = window, r$2 = e$4.trustedTypes, h$2 = r$2 ? r$2.emptyScript : "", o$
|
|
|
190
481
|
}
|
|
191
482
|
}
|
|
192
483
|
return s3;
|
|
193
|
-
} }, a
|
|
194
|
-
|
|
484
|
+
} }, a = (t2, i3) => i3 !== t2 && (i3 == i3 || t2 == t2), l$2 = { attribute: true, type: String, converter: n$3, reflect: false, hasChanged: a }, d = "finalized";
|
|
485
|
+
class u extends HTMLElement {
|
|
195
486
|
constructor() {
|
|
196
487
|
super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = false, this.hasUpdated = false, this._$El = null, this._$Eu();
|
|
197
488
|
}
|
|
198
489
|
static addInitializer(t2) {
|
|
199
|
-
var
|
|
200
|
-
this.finalize(), (null !== (
|
|
490
|
+
var i3;
|
|
491
|
+
this.finalize(), (null !== (i3 = this.h) && void 0 !== i3 ? i3 : this.h = []).push(t2);
|
|
201
492
|
}
|
|
202
493
|
static get observedAttributes() {
|
|
203
494
|
this.finalize();
|
|
204
495
|
const t2 = [];
|
|
205
|
-
return this.elementProperties.forEach((
|
|
206
|
-
const
|
|
207
|
-
void 0 !==
|
|
496
|
+
return this.elementProperties.forEach((i3, s3) => {
|
|
497
|
+
const e3 = this._$Ep(s3, i3);
|
|
498
|
+
void 0 !== e3 && (this._$Ev.set(e3, s3), t2.push(e3));
|
|
208
499
|
}), t2;
|
|
209
500
|
}
|
|
210
|
-
static createProperty(t2,
|
|
211
|
-
if (
|
|
212
|
-
const s3 = "symbol" == typeof t2 ? Symbol() : "__" + t2,
|
|
213
|
-
void 0 !==
|
|
501
|
+
static createProperty(t2, i3 = l$2) {
|
|
502
|
+
if (i3.state && (i3.attribute = false), this.finalize(), this.elementProperties.set(t2, i3), !i3.noAccessor && !this.prototype.hasOwnProperty(t2)) {
|
|
503
|
+
const s3 = "symbol" == typeof t2 ? Symbol() : "__" + t2, e3 = this.getPropertyDescriptor(t2, s3, i3);
|
|
504
|
+
void 0 !== e3 && Object.defineProperty(this.prototype, t2, e3);
|
|
214
505
|
}
|
|
215
506
|
}
|
|
216
|
-
static getPropertyDescriptor(t2,
|
|
507
|
+
static getPropertyDescriptor(t2, i3, s3) {
|
|
217
508
|
return { get() {
|
|
218
|
-
return this[
|
|
219
|
-
}, set(
|
|
509
|
+
return this[i3];
|
|
510
|
+
}, set(e3) {
|
|
220
511
|
const r2 = this[t2];
|
|
221
|
-
this[
|
|
512
|
+
this[i3] = e3, this.requestUpdate(t2, r2, s3);
|
|
222
513
|
}, configurable: true, enumerable: true };
|
|
223
514
|
}
|
|
224
515
|
static getPropertyOptions(t2) {
|
|
225
|
-
return this.elementProperties.get(t2) || l$
|
|
516
|
+
return this.elementProperties.get(t2) || l$2;
|
|
226
517
|
}
|
|
227
518
|
static finalize() {
|
|
228
|
-
if (this.hasOwnProperty(d
|
|
229
|
-
this[d
|
|
519
|
+
if (this.hasOwnProperty(d)) return false;
|
|
520
|
+
this[d] = true;
|
|
230
521
|
const t2 = Object.getPrototypeOf(this);
|
|
231
522
|
if (t2.finalize(), void 0 !== t2.h && (this.h = [...t2.h]), this.elementProperties = new Map(t2.elementProperties), this._$Ev = /* @__PURE__ */ new Map(), this.hasOwnProperty("properties")) {
|
|
232
|
-
const t3 = this.properties,
|
|
233
|
-
for (const s3 of
|
|
523
|
+
const t3 = this.properties, i3 = [...Object.getOwnPropertyNames(t3), ...Object.getOwnPropertySymbols(t3)];
|
|
524
|
+
for (const s3 of i3) this.createProperty(s3, t3[s3]);
|
|
234
525
|
}
|
|
235
526
|
return this.elementStyles = this.finalizeStyles(this.styles), true;
|
|
236
527
|
}
|
|
237
|
-
static finalizeStyles(
|
|
528
|
+
static finalizeStyles(i3) {
|
|
238
529
|
const s3 = [];
|
|
239
|
-
if (Array.isArray(
|
|
240
|
-
const
|
|
241
|
-
for (const
|
|
242
|
-
} else void 0 !==
|
|
530
|
+
if (Array.isArray(i3)) {
|
|
531
|
+
const e3 = new Set(i3.flat(1 / 0).reverse());
|
|
532
|
+
for (const i4 of e3) s3.unshift(c$1(i4));
|
|
533
|
+
} else void 0 !== i3 && s3.push(c$1(i3));
|
|
243
534
|
return s3;
|
|
244
535
|
}
|
|
245
|
-
static _$Ep(t2,
|
|
246
|
-
const s3 =
|
|
536
|
+
static _$Ep(t2, i3) {
|
|
537
|
+
const s3 = i3.attribute;
|
|
247
538
|
return false === s3 ? void 0 : "string" == typeof s3 ? s3 : "string" == typeof t2 ? t2.toLowerCase() : void 0;
|
|
248
539
|
}
|
|
249
540
|
_$Eu() {
|
|
@@ -251,28 +542,28 @@ let u$1 = class u extends HTMLElement {
|
|
|
251
542
|
this._$E_ = new Promise((t3) => this.enableUpdating = t3), this._$AL = /* @__PURE__ */ new Map(), this._$Eg(), this.requestUpdate(), null === (t2 = this.constructor.h) || void 0 === t2 || t2.forEach((t3) => t3(this));
|
|
252
543
|
}
|
|
253
544
|
addController(t2) {
|
|
254
|
-
var
|
|
255
|
-
(null !== (
|
|
545
|
+
var i3, s3;
|
|
546
|
+
(null !== (i3 = this._$ES) && void 0 !== i3 ? i3 : this._$ES = []).push(t2), void 0 !== this.renderRoot && this.isConnected && (null === (s3 = t2.hostConnected) || void 0 === s3 || s3.call(t2));
|
|
256
547
|
}
|
|
257
548
|
removeController(t2) {
|
|
258
|
-
var
|
|
259
|
-
null === (
|
|
549
|
+
var i3;
|
|
550
|
+
null === (i3 = this._$ES) || void 0 === i3 || i3.splice(this._$ES.indexOf(t2) >>> 0, 1);
|
|
260
551
|
}
|
|
261
552
|
_$Eg() {
|
|
262
|
-
this.constructor.elementProperties.forEach((t2,
|
|
263
|
-
this.hasOwnProperty(
|
|
553
|
+
this.constructor.elementProperties.forEach((t2, i3) => {
|
|
554
|
+
this.hasOwnProperty(i3) && (this._$Ei.set(i3, this[i3]), delete this[i3]);
|
|
264
555
|
});
|
|
265
556
|
}
|
|
266
557
|
createRenderRoot() {
|
|
267
558
|
var t2;
|
|
268
559
|
const s3 = null !== (t2 = this.shadowRoot) && void 0 !== t2 ? t2 : this.attachShadow(this.constructor.shadowRootOptions);
|
|
269
|
-
return S
|
|
560
|
+
return S(s3, this.constructor.elementStyles), s3;
|
|
270
561
|
}
|
|
271
562
|
connectedCallback() {
|
|
272
563
|
var t2;
|
|
273
564
|
void 0 === this.renderRoot && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), null === (t2 = this._$ES) || void 0 === t2 || t2.forEach((t3) => {
|
|
274
|
-
var
|
|
275
|
-
return null === (
|
|
565
|
+
var i3;
|
|
566
|
+
return null === (i3 = t3.hostConnected) || void 0 === i3 ? void 0 : i3.call(t3);
|
|
276
567
|
});
|
|
277
568
|
}
|
|
278
569
|
enableUpdating(t2) {
|
|
@@ -280,32 +571,32 @@ let u$1 = class u extends HTMLElement {
|
|
|
280
571
|
disconnectedCallback() {
|
|
281
572
|
var t2;
|
|
282
573
|
null === (t2 = this._$ES) || void 0 === t2 || t2.forEach((t3) => {
|
|
283
|
-
var
|
|
284
|
-
return null === (
|
|
574
|
+
var i3;
|
|
575
|
+
return null === (i3 = t3.hostDisconnected) || void 0 === i3 ? void 0 : i3.call(t3);
|
|
285
576
|
});
|
|
286
577
|
}
|
|
287
|
-
attributeChangedCallback(t2,
|
|
578
|
+
attributeChangedCallback(t2, i3, s3) {
|
|
288
579
|
this._$AK(t2, s3);
|
|
289
580
|
}
|
|
290
|
-
_$EO(t2,
|
|
291
|
-
var
|
|
581
|
+
_$EO(t2, i3, s3 = l$2) {
|
|
582
|
+
var e3;
|
|
292
583
|
const r2 = this.constructor._$Ep(t2, s3);
|
|
293
584
|
if (void 0 !== r2 && true === s3.reflect) {
|
|
294
|
-
const h2 = (void 0 !== (null === (
|
|
585
|
+
const h2 = (void 0 !== (null === (e3 = s3.converter) || void 0 === e3 ? void 0 : e3.toAttribute) ? s3.converter : n$3).toAttribute(i3, s3.type);
|
|
295
586
|
this._$El = t2, null == h2 ? this.removeAttribute(r2) : this.setAttribute(r2, h2), this._$El = null;
|
|
296
587
|
}
|
|
297
588
|
}
|
|
298
|
-
_$AK(t2,
|
|
589
|
+
_$AK(t2, i3) {
|
|
299
590
|
var s3;
|
|
300
|
-
const
|
|
591
|
+
const e3 = this.constructor, r2 = e3._$Ev.get(t2);
|
|
301
592
|
if (void 0 !== r2 && this._$El !== r2) {
|
|
302
|
-
const t3 =
|
|
303
|
-
this._$El = r2, this[r2] = h2.fromAttribute(
|
|
593
|
+
const t3 = e3.getPropertyOptions(r2), h2 = "function" == typeof t3.converter ? { fromAttribute: t3.converter } : void 0 !== (null === (s3 = t3.converter) || void 0 === s3 ? void 0 : s3.fromAttribute) ? t3.converter : n$3;
|
|
594
|
+
this._$El = r2, this[r2] = h2.fromAttribute(i3, t3.type), this._$El = null;
|
|
304
595
|
}
|
|
305
596
|
}
|
|
306
|
-
requestUpdate(t2,
|
|
307
|
-
let
|
|
308
|
-
void 0 !== t2 && (((s3 = s3 || this.constructor.getPropertyOptions(t2)).hasChanged || a
|
|
597
|
+
requestUpdate(t2, i3, s3) {
|
|
598
|
+
let e3 = true;
|
|
599
|
+
void 0 !== t2 && (((s3 = s3 || this.constructor.getPropertyOptions(t2)).hasChanged || a)(this[t2], i3) ? (this._$AL.has(t2) || this._$AL.set(t2, i3), true === s3.reflect && this._$El !== t2 && (void 0 === this._$EC && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t2, s3))) : e3 = false), !this.isUpdatePending && e3 && (this._$E_ = this._$Ej());
|
|
309
600
|
}
|
|
310
601
|
async _$Ej() {
|
|
311
602
|
this.isUpdatePending = true;
|
|
@@ -323,26 +614,26 @@ let u$1 = class u extends HTMLElement {
|
|
|
323
614
|
performUpdate() {
|
|
324
615
|
var t2;
|
|
325
616
|
if (!this.isUpdatePending) return;
|
|
326
|
-
this.hasUpdated, this._$Ei && (this._$Ei.forEach((t3,
|
|
327
|
-
let
|
|
617
|
+
this.hasUpdated, this._$Ei && (this._$Ei.forEach((t3, i4) => this[i4] = t3), this._$Ei = void 0);
|
|
618
|
+
let i3 = false;
|
|
328
619
|
const s3 = this._$AL;
|
|
329
620
|
try {
|
|
330
|
-
|
|
331
|
-
var
|
|
332
|
-
return null === (
|
|
621
|
+
i3 = this.shouldUpdate(s3), i3 ? (this.willUpdate(s3), null === (t2 = this._$ES) || void 0 === t2 || t2.forEach((t3) => {
|
|
622
|
+
var i4;
|
|
623
|
+
return null === (i4 = t3.hostUpdate) || void 0 === i4 ? void 0 : i4.call(t3);
|
|
333
624
|
}), this.update(s3)) : this._$Ek();
|
|
334
625
|
} catch (t3) {
|
|
335
|
-
throw
|
|
626
|
+
throw i3 = false, this._$Ek(), t3;
|
|
336
627
|
}
|
|
337
|
-
|
|
628
|
+
i3 && this._$AE(s3);
|
|
338
629
|
}
|
|
339
630
|
willUpdate(t2) {
|
|
340
631
|
}
|
|
341
632
|
_$AE(t2) {
|
|
342
|
-
var
|
|
343
|
-
null === (
|
|
344
|
-
var
|
|
345
|
-
return null === (
|
|
633
|
+
var i3;
|
|
634
|
+
null === (i3 = this._$ES) || void 0 === i3 || i3.forEach((t3) => {
|
|
635
|
+
var i4;
|
|
636
|
+
return null === (i4 = t3.hostUpdated) || void 0 === i4 ? void 0 : i4.call(t3);
|
|
346
637
|
}), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t2)), this.updated(t2);
|
|
347
638
|
}
|
|
348
639
|
_$Ek() {
|
|
@@ -358,280 +649,32 @@ let u$1 = class u extends HTMLElement {
|
|
|
358
649
|
return true;
|
|
359
650
|
}
|
|
360
651
|
update(t2) {
|
|
361
|
-
void 0 !== this._$EC && (this._$EC.forEach((t3,
|
|
652
|
+
void 0 !== this._$EC && (this._$EC.forEach((t3, i3) => this._$EO(i3, this[i3], t3)), this._$EC = void 0), this._$Ek();
|
|
362
653
|
}
|
|
363
654
|
updated(t2) {
|
|
364
655
|
}
|
|
365
656
|
firstUpdated(t2) {
|
|
366
657
|
}
|
|
367
|
-
};
|
|
368
|
-
u$1[d$1] = true, u$1.elementProperties = /* @__PURE__ */ new Map(), u$1.elementStyles = [], u$1.shadowRootOptions = { mode: "open" }, null == o$3 || o$3({ ReactiveElement: u$1 }), (null !== (s$3 = e$4.reactiveElementVersions) && void 0 !== s$3 ? s$3 : e$4.reactiveElementVersions = []).push("1.6.3");
|
|
369
|
-
/**
|
|
370
|
-
* @license
|
|
371
|
-
* Copyright 2017 Google LLC
|
|
372
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
373
|
-
*/
|
|
374
|
-
var t$1;
|
|
375
|
-
const i$1 = window, s$2 = i$1.trustedTypes, e$3 = s$2 ? s$2.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, o$2 = "$lit$", n$3 = `lit$${(Math.random() + "").slice(9)}$`, l$2 = "?" + n$3, h$1 = `<${l$2}>`, r$1 = document, u2 = () => r$1.createComment(""), d = (t2) => null === t2 || "object" != typeof t2 && "function" != typeof t2, c$1 = Array.isArray, v = (t2) => c$1(t2) || "function" == typeof (null == t2 ? void 0 : t2[Symbol.iterator]), a = "[ \n\f\r]", f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, _ = /-->/g, m = />/g, p = RegExp(`>|${a}(?:([^\\s"'>=/]+)(${a}*=${a}*(?:[^
|
|
376
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), g = /'/g, $ = /"/g, y = /^(?:script|style|textarea|title)$/i, w = (t2) => (i2, ...s3) => ({ _$litType$: t2, strings: i2, values: s3 }), x = w(1), T = Symbol.for("lit-noChange"), A = Symbol.for("lit-nothing"), E = /* @__PURE__ */ new WeakMap(), C = r$1.createTreeWalker(r$1, 129, null, false);
|
|
377
|
-
function P(t2, i2) {
|
|
378
|
-
if (!Array.isArray(t2) || !t2.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
379
|
-
return void 0 !== e$3 ? e$3.createHTML(i2) : i2;
|
|
380
658
|
}
|
|
381
|
-
|
|
382
|
-
const s3 = t2.length - 1, e2 = [];
|
|
383
|
-
let l2, r2 = 2 === i2 ? "<svg>" : "", u3 = f;
|
|
384
|
-
for (let i3 = 0; i3 < s3; i3++) {
|
|
385
|
-
const s4 = t2[i3];
|
|
386
|
-
let d2, c2, v2 = -1, a2 = 0;
|
|
387
|
-
for (; a2 < s4.length && (u3.lastIndex = a2, c2 = u3.exec(s4), null !== c2); ) a2 = u3.lastIndex, u3 === f ? "!--" === c2[1] ? u3 = _ : void 0 !== c2[1] ? u3 = m : void 0 !== c2[2] ? (y.test(c2[2]) && (l2 = RegExp("</" + c2[2], "g")), u3 = p) : void 0 !== c2[3] && (u3 = p) : u3 === p ? ">" === c2[0] ? (u3 = null != l2 ? l2 : f, v2 = -1) : void 0 === c2[1] ? v2 = -2 : (v2 = u3.lastIndex - c2[2].length, d2 = c2[1], u3 = void 0 === c2[3] ? p : '"' === c2[3] ? $ : g) : u3 === $ || u3 === g ? u3 = p : u3 === _ || u3 === m ? u3 = f : (u3 = p, l2 = void 0);
|
|
388
|
-
const w2 = u3 === p && t2[i3 + 1].startsWith("/>") ? " " : "";
|
|
389
|
-
r2 += u3 === f ? s4 + h$1 : v2 >= 0 ? (e2.push(d2), s4.slice(0, v2) + o$2 + s4.slice(v2) + n$3 + w2) : s4 + n$3 + (-2 === v2 ? (e2.push(void 0), i3) : w2);
|
|
390
|
-
}
|
|
391
|
-
return [P(t2, r2 + (t2[s3] || "<?>") + (2 === i2 ? "</svg>" : "")), e2];
|
|
392
|
-
};
|
|
393
|
-
class N {
|
|
394
|
-
constructor({ strings: t2, _$litType$: i2 }, e2) {
|
|
395
|
-
let h2;
|
|
396
|
-
this.parts = [];
|
|
397
|
-
let r2 = 0, d2 = 0;
|
|
398
|
-
const c2 = t2.length - 1, v2 = this.parts, [a2, f2] = V(t2, i2);
|
|
399
|
-
if (this.el = N.createElement(a2, e2), C.currentNode = this.el.content, 2 === i2) {
|
|
400
|
-
const t3 = this.el.content, i3 = t3.firstChild;
|
|
401
|
-
i3.remove(), t3.append(...i3.childNodes);
|
|
402
|
-
}
|
|
403
|
-
for (; null !== (h2 = C.nextNode()) && v2.length < c2; ) {
|
|
404
|
-
if (1 === h2.nodeType) {
|
|
405
|
-
if (h2.hasAttributes()) {
|
|
406
|
-
const t3 = [];
|
|
407
|
-
for (const i3 of h2.getAttributeNames()) if (i3.endsWith(o$2) || i3.startsWith(n$3)) {
|
|
408
|
-
const s3 = f2[d2++];
|
|
409
|
-
if (t3.push(i3), void 0 !== s3) {
|
|
410
|
-
const t4 = h2.getAttribute(s3.toLowerCase() + o$2).split(n$3), i4 = /([.?@])?(.*)/.exec(s3);
|
|
411
|
-
v2.push({ type: 1, index: r2, name: i4[2], strings: t4, ctor: "." === i4[1] ? H : "?" === i4[1] ? L : "@" === i4[1] ? z : k });
|
|
412
|
-
} else v2.push({ type: 6, index: r2 });
|
|
413
|
-
}
|
|
414
|
-
for (const i3 of t3) h2.removeAttribute(i3);
|
|
415
|
-
}
|
|
416
|
-
if (y.test(h2.tagName)) {
|
|
417
|
-
const t3 = h2.textContent.split(n$3), i3 = t3.length - 1;
|
|
418
|
-
if (i3 > 0) {
|
|
419
|
-
h2.textContent = s$2 ? s$2.emptyScript : "";
|
|
420
|
-
for (let s3 = 0; s3 < i3; s3++) h2.append(t3[s3], u2()), C.nextNode(), v2.push({ type: 2, index: ++r2 });
|
|
421
|
-
h2.append(t3[i3], u2());
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
} else if (8 === h2.nodeType) if (h2.data === l$2) v2.push({ type: 2, index: r2 });
|
|
425
|
-
else {
|
|
426
|
-
let t3 = -1;
|
|
427
|
-
for (; -1 !== (t3 = h2.data.indexOf(n$3, t3 + 1)); ) v2.push({ type: 7, index: r2 }), t3 += n$3.length - 1;
|
|
428
|
-
}
|
|
429
|
-
r2++;
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
static createElement(t2, i2) {
|
|
433
|
-
const s3 = r$1.createElement("template");
|
|
434
|
-
return s3.innerHTML = t2, s3;
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
function S(t2, i2, s3 = t2, e2) {
|
|
438
|
-
var o3, n2, l2, h2;
|
|
439
|
-
if (i2 === T) return i2;
|
|
440
|
-
let r2 = void 0 !== e2 ? null === (o3 = s3._$Co) || void 0 === o3 ? void 0 : o3[e2] : s3._$Cl;
|
|
441
|
-
const u3 = d(i2) ? void 0 : i2._$litDirective$;
|
|
442
|
-
return (null == r2 ? void 0 : r2.constructor) !== u3 && (null === (n2 = null == r2 ? void 0 : r2._$AO) || void 0 === n2 || n2.call(r2, false), void 0 === u3 ? r2 = void 0 : (r2 = new u3(t2), r2._$AT(t2, s3, e2)), void 0 !== e2 ? (null !== (l2 = (h2 = s3)._$Co) && void 0 !== l2 ? l2 : h2._$Co = [])[e2] = r2 : s3._$Cl = r2), void 0 !== r2 && (i2 = S(t2, r2._$AS(t2, i2.values), r2, e2)), i2;
|
|
443
|
-
}
|
|
444
|
-
class M {
|
|
445
|
-
constructor(t2, i2) {
|
|
446
|
-
this._$AV = [], this._$AN = void 0, this._$AD = t2, this._$AM = i2;
|
|
447
|
-
}
|
|
448
|
-
get parentNode() {
|
|
449
|
-
return this._$AM.parentNode;
|
|
450
|
-
}
|
|
451
|
-
get _$AU() {
|
|
452
|
-
return this._$AM._$AU;
|
|
453
|
-
}
|
|
454
|
-
u(t2) {
|
|
455
|
-
var i2;
|
|
456
|
-
const { el: { content: s3 }, parts: e2 } = this._$AD, o3 = (null !== (i2 = null == t2 ? void 0 : t2.creationScope) && void 0 !== i2 ? i2 : r$1).importNode(s3, true);
|
|
457
|
-
C.currentNode = o3;
|
|
458
|
-
let n2 = C.nextNode(), l2 = 0, h2 = 0, u3 = e2[0];
|
|
459
|
-
for (; void 0 !== u3; ) {
|
|
460
|
-
if (l2 === u3.index) {
|
|
461
|
-
let i3;
|
|
462
|
-
2 === u3.type ? i3 = new R(n2, n2.nextSibling, this, t2) : 1 === u3.type ? i3 = new u3.ctor(n2, u3.name, u3.strings, this, t2) : 6 === u3.type && (i3 = new Z(n2, this, t2)), this._$AV.push(i3), u3 = e2[++h2];
|
|
463
|
-
}
|
|
464
|
-
l2 !== (null == u3 ? void 0 : u3.index) && (n2 = C.nextNode(), l2++);
|
|
465
|
-
}
|
|
466
|
-
return C.currentNode = r$1, o3;
|
|
467
|
-
}
|
|
468
|
-
v(t2) {
|
|
469
|
-
let i2 = 0;
|
|
470
|
-
for (const s3 of this._$AV) void 0 !== s3 && (void 0 !== s3.strings ? (s3._$AI(t2, s3, i2), i2 += s3.strings.length - 2) : s3._$AI(t2[i2])), i2++;
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
class R {
|
|
474
|
-
constructor(t2, i2, s3, e2) {
|
|
475
|
-
var o3;
|
|
476
|
-
this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA = t2, this._$AB = i2, this._$AM = s3, this.options = e2, this._$Cp = null === (o3 = null == e2 ? void 0 : e2.isConnected) || void 0 === o3 || o3;
|
|
477
|
-
}
|
|
478
|
-
get _$AU() {
|
|
479
|
-
var t2, i2;
|
|
480
|
-
return null !== (i2 = null === (t2 = this._$AM) || void 0 === t2 ? void 0 : t2._$AU) && void 0 !== i2 ? i2 : this._$Cp;
|
|
481
|
-
}
|
|
482
|
-
get parentNode() {
|
|
483
|
-
let t2 = this._$AA.parentNode;
|
|
484
|
-
const i2 = this._$AM;
|
|
485
|
-
return void 0 !== i2 && 11 === (null == t2 ? void 0 : t2.nodeType) && (t2 = i2.parentNode), t2;
|
|
486
|
-
}
|
|
487
|
-
get startNode() {
|
|
488
|
-
return this._$AA;
|
|
489
|
-
}
|
|
490
|
-
get endNode() {
|
|
491
|
-
return this._$AB;
|
|
492
|
-
}
|
|
493
|
-
_$AI(t2, i2 = this) {
|
|
494
|
-
t2 = S(this, t2, i2), d(t2) ? t2 === A || null == t2 || "" === t2 ? (this._$AH !== A && this._$AR(), this._$AH = A) : t2 !== this._$AH && t2 !== T && this._(t2) : void 0 !== t2._$litType$ ? this.g(t2) : void 0 !== t2.nodeType ? this.$(t2) : v(t2) ? this.T(t2) : this._(t2);
|
|
495
|
-
}
|
|
496
|
-
k(t2) {
|
|
497
|
-
return this._$AA.parentNode.insertBefore(t2, this._$AB);
|
|
498
|
-
}
|
|
499
|
-
$(t2) {
|
|
500
|
-
this._$AH !== t2 && (this._$AR(), this._$AH = this.k(t2));
|
|
501
|
-
}
|
|
502
|
-
_(t2) {
|
|
503
|
-
this._$AH !== A && d(this._$AH) ? this._$AA.nextSibling.data = t2 : this.$(r$1.createTextNode(t2)), this._$AH = t2;
|
|
504
|
-
}
|
|
505
|
-
g(t2) {
|
|
506
|
-
var i2;
|
|
507
|
-
const { values: s3, _$litType$: e2 } = t2, o3 = "number" == typeof e2 ? this._$AC(t2) : (void 0 === e2.el && (e2.el = N.createElement(P(e2.h, e2.h[0]), this.options)), e2);
|
|
508
|
-
if ((null === (i2 = this._$AH) || void 0 === i2 ? void 0 : i2._$AD) === o3) this._$AH.v(s3);
|
|
509
|
-
else {
|
|
510
|
-
const t3 = new M(o3, this), i3 = t3.u(this.options);
|
|
511
|
-
t3.v(s3), this.$(i3), this._$AH = t3;
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
_$AC(t2) {
|
|
515
|
-
let i2 = E.get(t2.strings);
|
|
516
|
-
return void 0 === i2 && E.set(t2.strings, i2 = new N(t2)), i2;
|
|
517
|
-
}
|
|
518
|
-
T(t2) {
|
|
519
|
-
c$1(this._$AH) || (this._$AH = [], this._$AR());
|
|
520
|
-
const i2 = this._$AH;
|
|
521
|
-
let s3, e2 = 0;
|
|
522
|
-
for (const o3 of t2) e2 === i2.length ? i2.push(s3 = new R(this.k(u2()), this.k(u2()), this, this.options)) : s3 = i2[e2], s3._$AI(o3), e2++;
|
|
523
|
-
e2 < i2.length && (this._$AR(s3 && s3._$AB.nextSibling, e2), i2.length = e2);
|
|
524
|
-
}
|
|
525
|
-
_$AR(t2 = this._$AA.nextSibling, i2) {
|
|
526
|
-
var s3;
|
|
527
|
-
for (null === (s3 = this._$AP) || void 0 === s3 || s3.call(this, false, true, i2); t2 && t2 !== this._$AB; ) {
|
|
528
|
-
const i3 = t2.nextSibling;
|
|
529
|
-
t2.remove(), t2 = i3;
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
setConnected(t2) {
|
|
533
|
-
var i2;
|
|
534
|
-
void 0 === this._$AM && (this._$Cp = t2, null === (i2 = this._$AP) || void 0 === i2 || i2.call(this, t2));
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
class k {
|
|
538
|
-
constructor(t2, i2, s3, e2, o3) {
|
|
539
|
-
this.type = 1, this._$AH = A, this._$AN = void 0, this.element = t2, this.name = i2, this._$AM = e2, this.options = o3, s3.length > 2 || "" !== s3[0] || "" !== s3[1] ? (this._$AH = Array(s3.length - 1).fill(new String()), this.strings = s3) : this._$AH = A;
|
|
540
|
-
}
|
|
541
|
-
get tagName() {
|
|
542
|
-
return this.element.tagName;
|
|
543
|
-
}
|
|
544
|
-
get _$AU() {
|
|
545
|
-
return this._$AM._$AU;
|
|
546
|
-
}
|
|
547
|
-
_$AI(t2, i2 = this, s3, e2) {
|
|
548
|
-
const o3 = this.strings;
|
|
549
|
-
let n2 = false;
|
|
550
|
-
if (void 0 === o3) t2 = S(this, t2, i2, 0), n2 = !d(t2) || t2 !== this._$AH && t2 !== T, n2 && (this._$AH = t2);
|
|
551
|
-
else {
|
|
552
|
-
const e3 = t2;
|
|
553
|
-
let l2, h2;
|
|
554
|
-
for (t2 = o3[0], l2 = 0; l2 < o3.length - 1; l2++) h2 = S(this, e3[s3 + l2], i2, l2), h2 === T && (h2 = this._$AH[l2]), n2 || (n2 = !d(h2) || h2 !== this._$AH[l2]), h2 === A ? t2 = A : t2 !== A && (t2 += (null != h2 ? h2 : "") + o3[l2 + 1]), this._$AH[l2] = h2;
|
|
555
|
-
}
|
|
556
|
-
n2 && !e2 && this.j(t2);
|
|
557
|
-
}
|
|
558
|
-
j(t2) {
|
|
559
|
-
t2 === A ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, null != t2 ? t2 : "");
|
|
560
|
-
}
|
|
561
|
-
}
|
|
562
|
-
class H extends k {
|
|
563
|
-
constructor() {
|
|
564
|
-
super(...arguments), this.type = 3;
|
|
565
|
-
}
|
|
566
|
-
j(t2) {
|
|
567
|
-
this.element[this.name] = t2 === A ? void 0 : t2;
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
const I = s$2 ? s$2.emptyScript : "";
|
|
571
|
-
class L extends k {
|
|
572
|
-
constructor() {
|
|
573
|
-
super(...arguments), this.type = 4;
|
|
574
|
-
}
|
|
575
|
-
j(t2) {
|
|
576
|
-
t2 && t2 !== A ? this.element.setAttribute(this.name, I) : this.element.removeAttribute(this.name);
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
class z extends k {
|
|
580
|
-
constructor(t2, i2, s3, e2, o3) {
|
|
581
|
-
super(t2, i2, s3, e2, o3), this.type = 5;
|
|
582
|
-
}
|
|
583
|
-
_$AI(t2, i2 = this) {
|
|
584
|
-
var s3;
|
|
585
|
-
if ((t2 = null !== (s3 = S(this, t2, i2, 0)) && void 0 !== s3 ? s3 : A) === T) return;
|
|
586
|
-
const e2 = this._$AH, o3 = t2 === A && e2 !== A || t2.capture !== e2.capture || t2.once !== e2.once || t2.passive !== e2.passive, n2 = t2 !== A && (e2 === A || o3);
|
|
587
|
-
o3 && this.element.removeEventListener(this.name, this, e2), n2 && this.element.addEventListener(this.name, this, t2), this._$AH = t2;
|
|
588
|
-
}
|
|
589
|
-
handleEvent(t2) {
|
|
590
|
-
var i2, s3;
|
|
591
|
-
"function" == typeof this._$AH ? this._$AH.call(null !== (s3 = null === (i2 = this.options) || void 0 === i2 ? void 0 : i2.host) && void 0 !== s3 ? s3 : this.element, t2) : this._$AH.handleEvent(t2);
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
class Z {
|
|
595
|
-
constructor(t2, i2, s3) {
|
|
596
|
-
this.element = t2, this.type = 6, this._$AN = void 0, this._$AM = i2, this.options = s3;
|
|
597
|
-
}
|
|
598
|
-
get _$AU() {
|
|
599
|
-
return this._$AM._$AU;
|
|
600
|
-
}
|
|
601
|
-
_$AI(t2) {
|
|
602
|
-
S(this, t2);
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
const B = i$1.litHtmlPolyfillSupport;
|
|
606
|
-
null == B || B(N, R), (null !== (t$1 = i$1.litHtmlVersions) && void 0 !== t$1 ? t$1 : i$1.litHtmlVersions = []).push("2.8.0");
|
|
607
|
-
const D = (t2, i2, s3) => {
|
|
608
|
-
var e2, o3;
|
|
609
|
-
const n2 = null !== (e2 = null == s3 ? void 0 : s3.renderBefore) && void 0 !== e2 ? e2 : i2;
|
|
610
|
-
let l2 = n2._$litPart$;
|
|
611
|
-
if (void 0 === l2) {
|
|
612
|
-
const t3 = null !== (o3 = null == s3 ? void 0 : s3.renderBefore) && void 0 !== o3 ? o3 : null;
|
|
613
|
-
n2._$litPart$ = l2 = new R(i2.insertBefore(u2(), t3), t3, void 0, null != s3 ? s3 : {});
|
|
614
|
-
}
|
|
615
|
-
return l2._$AI(t2), l2;
|
|
616
|
-
};
|
|
659
|
+
u[d] = true, u.elementProperties = /* @__PURE__ */ new Map(), u.elementStyles = [], u.shadowRootOptions = { mode: "open" }, null == o$2 || o$2({ ReactiveElement: u }), (null !== (s$2 = e$1.reactiveElementVersions) && void 0 !== s$2 ? s$2 : e$1.reactiveElementVersions = []).push("1.6.3");
|
|
617
660
|
/**
|
|
618
661
|
* @license
|
|
619
662
|
* Copyright 2017 Google LLC
|
|
620
663
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
621
664
|
*/
|
|
622
665
|
var l$1, o$1;
|
|
623
|
-
let s$1 = class s extends u
|
|
666
|
+
let s$1 = class s extends u {
|
|
624
667
|
constructor() {
|
|
625
668
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
626
669
|
}
|
|
627
670
|
createRenderRoot() {
|
|
628
|
-
var t2,
|
|
629
|
-
const
|
|
630
|
-
return null !== (t2 = (
|
|
671
|
+
var t2, e22;
|
|
672
|
+
const i22 = super.createRenderRoot();
|
|
673
|
+
return null !== (t2 = (e22 = this.renderOptions).renderBefore) && void 0 !== t2 || (e22.renderBefore = i22.firstChild), i22;
|
|
631
674
|
}
|
|
632
675
|
update(t2) {
|
|
633
|
-
const
|
|
634
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t2), this._$Do = D(
|
|
676
|
+
const i22 = this.render();
|
|
677
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t2), this._$Do = D(i22, this.renderRoot, this.renderOptions);
|
|
635
678
|
}
|
|
636
679
|
connectedCallback() {
|
|
637
680
|
var t2;
|
|
@@ -689,7 +732,7 @@ function updateLang(newLang, newStrings, config = translateConfig) {
|
|
|
689
732
|
});
|
|
690
733
|
}
|
|
691
734
|
function listenForLangChanged(callback, options) {
|
|
692
|
-
const handler = (
|
|
735
|
+
const handler = (e3) => callback(e3.detail);
|
|
693
736
|
window.addEventListener(LANG_CHANGED_EVENT, handler, options);
|
|
694
737
|
return () => window.removeEventListener(LANG_CHANGED_EVENT, handler);
|
|
695
738
|
}
|
|
@@ -703,88 +746,66 @@ function get(key, values, config = translateConfig) {
|
|
|
703
746
|
values = values != null ? extract(values) : null;
|
|
704
747
|
return values != null ? config.interpolate(translation, values, config) : translation;
|
|
705
748
|
}
|
|
706
|
-
/**
|
|
707
|
-
* @license
|
|
708
|
-
* Copyright 2017 Google LLC
|
|
709
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
710
|
-
*/
|
|
711
|
-
const t = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, e$2 = (t2) => (...e2) => ({ _$litDirective$: t2, values: e2 });
|
|
712
|
-
class i {
|
|
713
|
-
constructor(t2) {
|
|
714
|
-
}
|
|
715
|
-
get _$AU() {
|
|
716
|
-
return this._$AM._$AU;
|
|
717
|
-
}
|
|
718
|
-
_$AT(t2, e2, i2) {
|
|
719
|
-
this._$Ct = t2, this._$AM = e2, this._$Ci = i2;
|
|
720
|
-
}
|
|
721
|
-
_$AS(t2, e2) {
|
|
722
|
-
return this.update(t2, e2);
|
|
723
|
-
}
|
|
724
|
-
update(t2, e2) {
|
|
725
|
-
return this.render(...e2);
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
749
|
/**
|
|
729
750
|
* @license
|
|
730
751
|
* Copyright 2020 Google LLC
|
|
731
752
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
732
753
|
*/
|
|
733
|
-
const
|
|
754
|
+
const e2 = (o3) => void 0 === o3.strings;
|
|
734
755
|
/**
|
|
735
756
|
* @license
|
|
736
757
|
* Copyright 2017 Google LLC
|
|
737
758
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
738
759
|
*/
|
|
739
|
-
const s2 = (
|
|
740
|
-
var
|
|
741
|
-
const r2 =
|
|
760
|
+
const s2 = (i3, t2) => {
|
|
761
|
+
var e3, o3;
|
|
762
|
+
const r2 = i3._$AN;
|
|
742
763
|
if (void 0 === r2) return false;
|
|
743
|
-
for (const
|
|
764
|
+
for (const i4 of r2) null === (o3 = (e3 = i4)._$AO) || void 0 === o3 || o3.call(e3, t2, false), s2(i4, t2);
|
|
744
765
|
return true;
|
|
745
|
-
}, o2 = (
|
|
746
|
-
let t2,
|
|
766
|
+
}, o2 = (i3) => {
|
|
767
|
+
let t2, e3;
|
|
747
768
|
do {
|
|
748
|
-
if (void 0 === (t2 =
|
|
749
|
-
|
|
750
|
-
} while (0 === (null ==
|
|
751
|
-
}, r = (
|
|
752
|
-
for (let t2; t2 =
|
|
753
|
-
let
|
|
754
|
-
if (void 0 ===
|
|
755
|
-
else if (
|
|
756
|
-
|
|
769
|
+
if (void 0 === (t2 = i3._$AM)) break;
|
|
770
|
+
e3 = t2._$AN, e3.delete(i3), i3 = t2;
|
|
771
|
+
} while (0 === (null == e3 ? void 0 : e3.size));
|
|
772
|
+
}, r = (i3) => {
|
|
773
|
+
for (let t2; t2 = i3._$AM; i3 = t2) {
|
|
774
|
+
let e3 = t2._$AN;
|
|
775
|
+
if (void 0 === e3) t2._$AN = e3 = /* @__PURE__ */ new Set();
|
|
776
|
+
else if (e3.has(i3)) break;
|
|
777
|
+
e3.add(i3), l(t2);
|
|
757
778
|
}
|
|
758
779
|
};
|
|
759
|
-
function n$1(
|
|
760
|
-
void 0 !== this._$AN ? (o2(this), this._$AM =
|
|
780
|
+
function n$1(i3) {
|
|
781
|
+
void 0 !== this._$AN ? (o2(this), this._$AM = i3, r(this)) : this._$AM = i3;
|
|
761
782
|
}
|
|
762
|
-
function h(
|
|
783
|
+
function h(i3, t2 = false, e3 = 0) {
|
|
763
784
|
const r2 = this._$AH, n2 = this._$AN;
|
|
764
|
-
if (void 0 !== n2 && 0 !== n2.size) if (t2) if (Array.isArray(r2)) for (let
|
|
785
|
+
if (void 0 !== n2 && 0 !== n2.size) if (t2) if (Array.isArray(r2)) for (let i4 = e3; i4 < r2.length; i4++) s2(r2[i4], false), o2(r2[i4]);
|
|
765
786
|
else null != r2 && (s2(r2, false), o2(r2));
|
|
766
|
-
else s2(this,
|
|
787
|
+
else s2(this, i3);
|
|
767
788
|
}
|
|
768
|
-
const l = (
|
|
769
|
-
var
|
|
770
|
-
|
|
789
|
+
const l = (i3) => {
|
|
790
|
+
var t2, s3, o3, r2;
|
|
791
|
+
i3.type == t$1.CHILD && (null !== (t2 = (o3 = i3)._$AP) && void 0 !== t2 || (o3._$AP = h), null !== (s3 = (r2 = i3)._$AQ) && void 0 !== s3 || (r2._$AQ = n$1));
|
|
771
792
|
};
|
|
772
|
-
class c extends i {
|
|
793
|
+
class c extends i$1 {
|
|
773
794
|
constructor() {
|
|
774
795
|
super(...arguments), this._$AN = void 0;
|
|
775
796
|
}
|
|
776
|
-
_$AT(
|
|
777
|
-
super._$AT(
|
|
797
|
+
_$AT(i3, t2, e3) {
|
|
798
|
+
super._$AT(i3, t2, e3), r(this), this.isConnected = i3._$AU;
|
|
778
799
|
}
|
|
779
|
-
_$AO(
|
|
780
|
-
var
|
|
781
|
-
|
|
800
|
+
_$AO(i3, t2 = true) {
|
|
801
|
+
var e3, r2;
|
|
802
|
+
i3 !== this.isConnected && (this.isConnected = i3, i3 ? null === (e3 = this.reconnected) || void 0 === e3 || e3.call(this) : null === (r2 = this.disconnected) || void 0 === r2 || r2.call(this)), t2 && (s2(this, i3), o2(this));
|
|
782
803
|
}
|
|
783
804
|
setValue(t2) {
|
|
784
|
-
if (
|
|
805
|
+
if (e2(this._$Ct)) this._$Ct._$AI(t2, this);
|
|
785
806
|
else {
|
|
786
|
-
const
|
|
787
|
-
|
|
807
|
+
const i3 = [...this._$Ct._$AH];
|
|
808
|
+
i3[this._$Ci] = t2, this._$Ct._$AI(i3, this, 0);
|
|
788
809
|
}
|
|
789
810
|
}
|
|
790
811
|
disconnected() {
|
|
@@ -812,8 +833,8 @@ class LangChangedDirectiveBase extends c {
|
|
|
812
833
|
* Called when the lang changed event is dispatched.
|
|
813
834
|
* @param e
|
|
814
835
|
*/
|
|
815
|
-
langChanged(
|
|
816
|
-
this.setValue(this.getValue(
|
|
836
|
+
langChanged(e3) {
|
|
837
|
+
this.setValue(this.getValue(e3));
|
|
817
838
|
}
|
|
818
839
|
/**
|
|
819
840
|
* Subscribes to the lang changed event.
|
|
@@ -849,27 +870,7 @@ class TranslateDirective extends LangChangedDirectiveBase {
|
|
|
849
870
|
return this.renderValue(() => get(key, values, config));
|
|
850
871
|
}
|
|
851
872
|
}
|
|
852
|
-
const translate = e$
|
|
853
|
-
/**
|
|
854
|
-
* @license
|
|
855
|
-
* Copyright 2017 Google LLC
|
|
856
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
857
|
-
*/
|
|
858
|
-
class e extends i {
|
|
859
|
-
constructor(i2) {
|
|
860
|
-
if (super(i2), this.et = A, i2.type !== t.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
861
|
-
}
|
|
862
|
-
render(r2) {
|
|
863
|
-
if (r2 === A || null == r2) return this.ft = void 0, this.et = r2;
|
|
864
|
-
if (r2 === T) return r2;
|
|
865
|
-
if ("string" != typeof r2) throw Error(this.constructor.directiveName + "() called with a non-string value");
|
|
866
|
-
if (r2 === this.et) return this.ft;
|
|
867
|
-
this.et = r2;
|
|
868
|
-
const s3 = [r2];
|
|
869
|
-
return s3.raw = s3, this.ft = { _$litType$: this.constructor.resultType, strings: s3, values: [] };
|
|
870
|
-
}
|
|
871
|
-
}
|
|
872
|
-
e.directiveName = "unsafeHTML", e.resultType = 1;
|
|
873
|
+
const translate = e$4(TranslateDirective);
|
|
873
874
|
function asUpdateableLitElement(element) {
|
|
874
875
|
if (!element.dispatchEvent || !element.requestUpdate)
|
|
875
876
|
throw new Error(
|
|
@@ -923,7 +924,7 @@ const useOnce = (element, on) => useEffect(element, on, []);
|
|
|
923
924
|
function n(n2, o3, r2) {
|
|
924
925
|
return n2 ? o3() : null == r2 ? void 0 : r2();
|
|
925
926
|
}
|
|
926
|
-
const styles$2 =
|
|
927
|
+
const styles$2 = i2`
|
|
927
928
|
:host {
|
|
928
929
|
--shipaid-primary: #0056d6;
|
|
929
930
|
--shipaid-secondary: #0076ff;
|
|
@@ -1481,8 +1482,8 @@ const BellIcon = x`
|
|
|
1481
1482
|
var __defProp$4 = Object.defineProperty;
|
|
1482
1483
|
var __decorateClass$4 = (decorators, target, key, kind) => {
|
|
1483
1484
|
var result = void 0;
|
|
1484
|
-
for (var
|
|
1485
|
-
if (decorator = decorators[
|
|
1485
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
1486
|
+
if (decorator = decorators[i3])
|
|
1486
1487
|
result = decorator(target, key, result) || result;
|
|
1487
1488
|
if (result) __defProp$4(target, key, result);
|
|
1488
1489
|
return result;
|
|
@@ -1568,7 +1569,7 @@ __decorateClass$4([
|
|
|
1568
1569
|
if (!customElements.get("shipaid-popup-learn-more")) {
|
|
1569
1570
|
customElements.define("shipaid-popup-learn-more", LearnMorePopup);
|
|
1570
1571
|
}
|
|
1571
|
-
const styles$1 =
|
|
1572
|
+
const styles$1 = i2`
|
|
1572
1573
|
:host {
|
|
1573
1574
|
--shipaid-primary: #0056d6;
|
|
1574
1575
|
--shipaid-secondary: #0076ff;
|
|
@@ -1719,8 +1720,8 @@ const styles$1 = i$2`
|
|
|
1719
1720
|
var __defProp$3 = Object.defineProperty;
|
|
1720
1721
|
var __decorateClass$3 = (decorators, target, key, kind) => {
|
|
1721
1722
|
var result = void 0;
|
|
1722
|
-
for (var
|
|
1723
|
-
if (decorator = decorators[
|
|
1723
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
1724
|
+
if (decorator = decorators[i3])
|
|
1724
1725
|
result = decorator(target, key, result) || result;
|
|
1725
1726
|
if (result) __defProp$3(target, key, result);
|
|
1726
1727
|
return result;
|
|
@@ -1777,8 +1778,8 @@ if (!customElements.get("shipaid-popup-confirmation")) {
|
|
|
1777
1778
|
var __defProp$2 = Object.defineProperty;
|
|
1778
1779
|
var __decorateClass$2 = (decorators, target, key, kind) => {
|
|
1779
1780
|
var result = void 0;
|
|
1780
|
-
for (var
|
|
1781
|
-
if (decorator = decorators[
|
|
1781
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
1782
|
+
if (decorator = decorators[i3])
|
|
1782
1783
|
result = decorator(target, key, result) || result;
|
|
1783
1784
|
if (result) __defProp$2(target, key, result);
|
|
1784
1785
|
return result;
|
|
@@ -1843,7 +1844,7 @@ const _ShipAidCartConfirmation = class _ShipAidCartConfirmation extends s$1 {
|
|
|
1843
1844
|
`;
|
|
1844
1845
|
}
|
|
1845
1846
|
};
|
|
1846
|
-
_ShipAidCartConfirmation.styles =
|
|
1847
|
+
_ShipAidCartConfirmation.styles = i2`
|
|
1847
1848
|
:host {
|
|
1848
1849
|
--shipaid-popup-width: 420px;
|
|
1849
1850
|
--shipaid-popup-background: #ffffff;
|
|
@@ -1999,8 +2000,8 @@ if (!customElements.get("shipaid-cart-confirmation")) {
|
|
|
1999
2000
|
var __defProp$1 = Object.defineProperty;
|
|
2000
2001
|
var __decorateClass$1 = (decorators, target, key, kind) => {
|
|
2001
2002
|
var result = void 0;
|
|
2002
|
-
for (var
|
|
2003
|
-
if (decorator = decorators[
|
|
2003
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
2004
|
+
if (decorator = decorators[i3])
|
|
2004
2005
|
result = decorator(target, key, result) || result;
|
|
2005
2006
|
if (result) __defProp$1(target, key, result);
|
|
2006
2007
|
return result;
|
|
@@ -2119,7 +2120,7 @@ const en = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2119
2120
|
loading,
|
|
2120
2121
|
title
|
|
2121
2122
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2122
|
-
const styles =
|
|
2123
|
+
const styles = i2`
|
|
2123
2124
|
:host {
|
|
2124
2125
|
--shipaid-primary: #002bd6;
|
|
2125
2126
|
--shipaid-secondary: #0076ff;
|
|
@@ -2289,8 +2290,8 @@ function interceptFetch(interceptor) {
|
|
|
2289
2290
|
if (running) {
|
|
2290
2291
|
try {
|
|
2291
2292
|
await interceptor([input, init], promise);
|
|
2292
|
-
} catch (
|
|
2293
|
-
console.warn(
|
|
2293
|
+
} catch (e3) {
|
|
2294
|
+
console.warn(e3);
|
|
2294
2295
|
}
|
|
2295
2296
|
}
|
|
2296
2297
|
return await promise;
|
|
@@ -2307,8 +2308,8 @@ function interceptFetch(interceptor) {
|
|
|
2307
2308
|
var __defProp = Object.defineProperty;
|
|
2308
2309
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
2309
2310
|
var result = void 0;
|
|
2310
|
-
for (var
|
|
2311
|
-
if (decorator = decorators[
|
|
2311
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
2312
|
+
if (decorator = decorators[i3])
|
|
2312
2313
|
result = decorator(target, key, result) || result;
|
|
2313
2314
|
if (result) __defProp(target, key, result);
|
|
2314
2315
|
return result;
|
|
@@ -2408,6 +2409,7 @@ const _ShipAidWidget = class _ShipAidWidget extends s$1 {
|
|
|
2408
2409
|
this.dataSelector = "";
|
|
2409
2410
|
this.buttonId = "";
|
|
2410
2411
|
this.buttonTitle = "";
|
|
2412
|
+
this.widgetTitle = "";
|
|
2411
2413
|
this.buttonClasses = "";
|
|
2412
2414
|
this.shadowRootSelector = "";
|
|
2413
2415
|
this.useShipAidCheckout = false;
|
|
@@ -2890,7 +2892,7 @@ const _ShipAidWidget = class _ShipAidWidget extends s$1 {
|
|
|
2890
2892
|
/** Try adding ShipAid shipping protection during polling if applicable */
|
|
2891
2893
|
async attemptAddProtection() {
|
|
2892
2894
|
var _a, _b, _c, _d, _e, _f;
|
|
2893
|
-
if (!((_a = this._store) == null ? void 0 : _a.widgetAutoOptIn)) return;
|
|
2895
|
+
if (!((_a = this._store) == null ? void 0 : _a.widgetAutoOptIn) || !this.useShipAidCheckout) return;
|
|
2894
2896
|
if (!((_b = this._cart) == null ? void 0 : _b.items) || !((_c = this._cart) == null ? void 0 : _c.item_count)) return;
|
|
2895
2897
|
const protectionCartItemIndex = (_d = this._cart.items) == null ? void 0 : _d.findIndex((item) => {
|
|
2896
2898
|
var _a2, _b2;
|
|
@@ -3260,9 +3262,9 @@ const _ShipAidWidget = class _ShipAidWidget extends s$1 {
|
|
|
3260
3262
|
<div class="protection-info">
|
|
3261
3263
|
<div class="protection-text">
|
|
3262
3264
|
${ShipAidReducedLogo}
|
|
3263
|
-
|
|
3265
|
+
${n(!this.widgetTitle, () => x`<strong>${translate("checkout-plus.checkout-title")}+</strong>`)}
|
|
3264
3266
|
<div class="protection-value">
|
|
3265
|
-
<span>${translate("checkout-plus.title")}</span>
|
|
3267
|
+
<span>${n(this.widgetTitle, () => o$4(this.widgetTitle), () => translate("checkout-plus.title"))}</span>
|
|
3266
3268
|
- ${protectionPrice ? this._currencyFormat(protectionPrice) : loading2}
|
|
3267
3269
|
</div>
|
|
3268
3270
|
</div>
|
|
@@ -4063,6 +4065,9 @@ __decorateClass([
|
|
|
4063
4065
|
__decorateClass([
|
|
4064
4066
|
n$7({ type: String, attribute: "button-title" })
|
|
4065
4067
|
], ShipAidWidget.prototype, "buttonTitle");
|
|
4068
|
+
__decorateClass([
|
|
4069
|
+
n$7({ type: String, attribute: "widget-title" })
|
|
4070
|
+
], ShipAidWidget.prototype, "widgetTitle");
|
|
4066
4071
|
__decorateClass([
|
|
4067
4072
|
n$7({ type: String, attribute: "button-classes" })
|
|
4068
4073
|
], ShipAidWidget.prototype, "buttonClasses");
|