@rash2x/bridge-widget 0.6.32 → 0.6.34
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/evaa-bridge.cjs +1 -1
- package/dist/evaa-bridge.mjs +1 -1
- package/dist/{index-D0iCKCsz.js → index-CO2PQtBo.js} +903 -1245
- package/dist/index-CO2PQtBo.js.map +1 -0
- package/dist/{index-BsEjYruO.cjs → index-CmbarigA.cjs} +866 -646
- package/dist/index-CmbarigA.cjs.map +1 -0
- package/dist/{index-BOtiGj6h.cjs → index-DvjGvKnp.cjs} +903 -1245
- package/dist/index-DvjGvKnp.cjs.map +1 -0
- package/dist/{index-BbLtc5UN.js → index-sU0Z-m5M.js} +866 -646
- package/dist/index-sU0Z-m5M.js.map +1 -0
- package/dist/index.html +89 -0
- package/dist/styles.css +1 -1
- package/package.json +13 -11
- package/dist/index-BOtiGj6h.cjs.map +0 -1
- package/dist/index-BbLtc5UN.js.map +0 -1
- package/dist/index-BsEjYruO.cjs.map +0 -1
- package/dist/index-D0iCKCsz.js.map +0 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("./index-
|
|
3
|
+
const index = require("./index-DvjGvKnp.cjs");
|
|
4
4
|
/**
|
|
5
5
|
* @license
|
|
6
6
|
* Copyright 2019 Google LLC
|
|
7
7
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
8
8
|
*/
|
|
9
|
-
const t$
|
|
10
|
-
let o$
|
|
9
|
+
const t$4 = window, e$6 = t$4.ShadowRoot && (void 0 === t$4.ShadyCSS || t$4.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$4 = Symbol(), n$6 = /* @__PURE__ */ new WeakMap();
|
|
10
|
+
let o$5 = class o {
|
|
11
11
|
constructor(t2, e2, n2) {
|
|
12
|
-
if (this._$cssResult$ = true, n2 !== s$
|
|
12
|
+
if (this._$cssResult$ = true, n2 !== s$4) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
13
13
|
this.cssText = t2, this.t = e2;
|
|
14
14
|
}
|
|
15
15
|
get styleSheet() {
|
|
16
16
|
let t2 = this.o;
|
|
17
|
-
const
|
|
18
|
-
if (e$
|
|
19
|
-
const e2 = void 0 !==
|
|
20
|
-
e2 && (t2 = n$
|
|
17
|
+
const s3 = this.t;
|
|
18
|
+
if (e$6 && void 0 === t2) {
|
|
19
|
+
const e2 = void 0 !== s3 && 1 === s3.length;
|
|
20
|
+
e2 && (t2 = n$6.get(s3)), void 0 === t2 && ((this.o = t2 = new CSSStyleSheet()).replaceSync(this.cssText), e2 && n$6.set(s3, t2));
|
|
21
21
|
}
|
|
22
22
|
return t2;
|
|
23
23
|
}
|
|
@@ -25,140 +25,140 @@ let o$4 = class o {
|
|
|
25
25
|
return this.cssText;
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
|
-
const r$
|
|
29
|
-
const n2 = 1 === t2.length ? t2[0] : e2.reduce(((e3,
|
|
28
|
+
const r$3 = (t2) => new o$5("string" == typeof t2 ? t2 : t2 + "", void 0, s$4), i$4 = (t2, ...e2) => {
|
|
29
|
+
const n2 = 1 === t2.length ? t2[0] : e2.reduce(((e3, s3, n3) => e3 + ((t3) => {
|
|
30
30
|
if (true === t3._$cssResult$) return t3.cssText;
|
|
31
31
|
if ("number" == typeof t3) return t3;
|
|
32
32
|
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.");
|
|
33
|
-
})(
|
|
34
|
-
return new o$
|
|
35
|
-
}, S$
|
|
36
|
-
e$
|
|
37
|
-
const n3 = document.createElement("style"), o3 = t$
|
|
38
|
-
void 0 !== o3 && n3.setAttribute("nonce", o3), n3.textContent = e2.cssText,
|
|
33
|
+
})(s3) + t2[n3 + 1]), t2[0]);
|
|
34
|
+
return new o$5(n2, t2, s$4);
|
|
35
|
+
}, S$2 = (s3, n2) => {
|
|
36
|
+
e$6 ? s3.adoptedStyleSheets = n2.map(((t2) => t2 instanceof CSSStyleSheet ? t2 : t2.styleSheet)) : n2.forEach(((e2) => {
|
|
37
|
+
const n3 = document.createElement("style"), o3 = t$4.litNonce;
|
|
38
|
+
void 0 !== o3 && n3.setAttribute("nonce", o3), n3.textContent = e2.cssText, s3.appendChild(n3);
|
|
39
39
|
}));
|
|
40
|
-
}, c$
|
|
40
|
+
}, c$2 = e$6 ? (t2) => t2 : (t2) => t2 instanceof CSSStyleSheet ? ((t3) => {
|
|
41
41
|
let e2 = "";
|
|
42
|
-
for (const
|
|
43
|
-
return r$
|
|
42
|
+
for (const s3 of t3.cssRules) e2 += s3.cssText;
|
|
43
|
+
return r$3(e2);
|
|
44
44
|
})(t2) : t2;
|
|
45
45
|
/**
|
|
46
46
|
* @license
|
|
47
47
|
* Copyright 2017 Google LLC
|
|
48
48
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
49
49
|
*/
|
|
50
|
-
var s$
|
|
51
|
-
const e$
|
|
52
|
-
switch (
|
|
50
|
+
var s$3;
|
|
51
|
+
const e$5 = window, r$2 = e$5.trustedTypes, h$2 = r$2 ? r$2.emptyScript : "", o$4 = e$5.reactiveElementPolyfillSupport, n$5 = { toAttribute(t2, i3) {
|
|
52
|
+
switch (i3) {
|
|
53
53
|
case Boolean:
|
|
54
|
-
t2 = t2 ? h$
|
|
54
|
+
t2 = t2 ? h$2 : null;
|
|
55
55
|
break;
|
|
56
56
|
case Object:
|
|
57
57
|
case Array:
|
|
58
58
|
t2 = null == t2 ? t2 : JSON.stringify(t2);
|
|
59
59
|
}
|
|
60
60
|
return t2;
|
|
61
|
-
}, fromAttribute(t2,
|
|
62
|
-
let
|
|
63
|
-
switch (
|
|
61
|
+
}, fromAttribute(t2, i3) {
|
|
62
|
+
let s3 = t2;
|
|
63
|
+
switch (i3) {
|
|
64
64
|
case Boolean:
|
|
65
|
-
|
|
65
|
+
s3 = null !== t2;
|
|
66
66
|
break;
|
|
67
67
|
case Number:
|
|
68
|
-
|
|
68
|
+
s3 = null === t2 ? null : Number(t2);
|
|
69
69
|
break;
|
|
70
70
|
case Object:
|
|
71
71
|
case Array:
|
|
72
72
|
try {
|
|
73
|
-
|
|
73
|
+
s3 = JSON.parse(t2);
|
|
74
74
|
} catch (t3) {
|
|
75
|
-
|
|
75
|
+
s3 = null;
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
return
|
|
79
|
-
} }, a$
|
|
80
|
-
let u$
|
|
78
|
+
return s3;
|
|
79
|
+
} }, a$2 = (t2, i3) => i3 !== t2 && (i3 == i3 || t2 == t2), l$4 = { attribute: true, type: String, converter: n$5, reflect: false, hasChanged: a$2 }, d$2 = "finalized";
|
|
80
|
+
let u$2 = class u extends HTMLElement {
|
|
81
81
|
constructor() {
|
|
82
82
|
super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = false, this.hasUpdated = false, this._$El = null, this._$Eu();
|
|
83
83
|
}
|
|
84
84
|
static addInitializer(t2) {
|
|
85
|
-
var
|
|
86
|
-
this.finalize(), (null !== (
|
|
85
|
+
var i3;
|
|
86
|
+
this.finalize(), (null !== (i3 = this.h) && void 0 !== i3 ? i3 : this.h = []).push(t2);
|
|
87
87
|
}
|
|
88
88
|
static get observedAttributes() {
|
|
89
89
|
this.finalize();
|
|
90
90
|
const t2 = [];
|
|
91
|
-
return this.elementProperties.forEach(((
|
|
92
|
-
const e2 = this._$Ep(
|
|
93
|
-
void 0 !== e2 && (this._$Ev.set(e2,
|
|
91
|
+
return this.elementProperties.forEach(((i3, s3) => {
|
|
92
|
+
const e2 = this._$Ep(s3, i3);
|
|
93
|
+
void 0 !== e2 && (this._$Ev.set(e2, s3), t2.push(e2));
|
|
94
94
|
})), t2;
|
|
95
95
|
}
|
|
96
|
-
static createProperty(t2,
|
|
97
|
-
if (
|
|
98
|
-
const
|
|
96
|
+
static createProperty(t2, i3 = l$4) {
|
|
97
|
+
if (i3.state && (i3.attribute = false), this.finalize(), this.elementProperties.set(t2, i3), !i3.noAccessor && !this.prototype.hasOwnProperty(t2)) {
|
|
98
|
+
const s3 = "symbol" == typeof t2 ? Symbol() : "__" + t2, e2 = this.getPropertyDescriptor(t2, s3, i3);
|
|
99
99
|
void 0 !== e2 && Object.defineProperty(this.prototype, t2, e2);
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
static getPropertyDescriptor(t2,
|
|
102
|
+
static getPropertyDescriptor(t2, i3, s3) {
|
|
103
103
|
return { get() {
|
|
104
|
-
return this[
|
|
104
|
+
return this[i3];
|
|
105
105
|
}, set(e2) {
|
|
106
106
|
const r2 = this[t2];
|
|
107
|
-
this[
|
|
107
|
+
this[i3] = e2, this.requestUpdate(t2, r2, s3);
|
|
108
108
|
}, configurable: true, enumerable: true };
|
|
109
109
|
}
|
|
110
110
|
static getPropertyOptions(t2) {
|
|
111
|
-
return this.elementProperties.get(t2) || l$
|
|
111
|
+
return this.elementProperties.get(t2) || l$4;
|
|
112
112
|
}
|
|
113
113
|
static finalize() {
|
|
114
|
-
if (this.hasOwnProperty(d$
|
|
115
|
-
this[d$
|
|
114
|
+
if (this.hasOwnProperty(d$2)) return false;
|
|
115
|
+
this[d$2] = true;
|
|
116
116
|
const t2 = Object.getPrototypeOf(this);
|
|
117
117
|
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")) {
|
|
118
|
-
const t3 = this.properties,
|
|
119
|
-
for (const
|
|
118
|
+
const t3 = this.properties, i3 = [...Object.getOwnPropertyNames(t3), ...Object.getOwnPropertySymbols(t3)];
|
|
119
|
+
for (const s3 of i3) this.createProperty(s3, t3[s3]);
|
|
120
120
|
}
|
|
121
121
|
return this.elementStyles = this.finalizeStyles(this.styles), true;
|
|
122
122
|
}
|
|
123
|
-
static finalizeStyles(
|
|
124
|
-
const
|
|
125
|
-
if (Array.isArray(
|
|
126
|
-
const e2 = new Set(
|
|
127
|
-
for (const
|
|
128
|
-
} else void 0 !==
|
|
129
|
-
return
|
|
123
|
+
static finalizeStyles(i3) {
|
|
124
|
+
const s3 = [];
|
|
125
|
+
if (Array.isArray(i3)) {
|
|
126
|
+
const e2 = new Set(i3.flat(1 / 0).reverse());
|
|
127
|
+
for (const i4 of e2) s3.unshift(c$2(i4));
|
|
128
|
+
} else void 0 !== i3 && s3.push(c$2(i3));
|
|
129
|
+
return s3;
|
|
130
130
|
}
|
|
131
|
-
static _$Ep(t2,
|
|
132
|
-
const
|
|
133
|
-
return false ===
|
|
131
|
+
static _$Ep(t2, i3) {
|
|
132
|
+
const s3 = i3.attribute;
|
|
133
|
+
return false === s3 ? void 0 : "string" == typeof s3 ? s3 : "string" == typeof t2 ? t2.toLowerCase() : void 0;
|
|
134
134
|
}
|
|
135
135
|
_$Eu() {
|
|
136
136
|
var t2;
|
|
137
137
|
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)));
|
|
138
138
|
}
|
|
139
139
|
addController(t2) {
|
|
140
|
-
var
|
|
141
|
-
(null !== (
|
|
140
|
+
var i3, s3;
|
|
141
|
+
(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));
|
|
142
142
|
}
|
|
143
143
|
removeController(t2) {
|
|
144
|
-
var
|
|
145
|
-
null === (
|
|
144
|
+
var i3;
|
|
145
|
+
null === (i3 = this._$ES) || void 0 === i3 || i3.splice(this._$ES.indexOf(t2) >>> 0, 1);
|
|
146
146
|
}
|
|
147
147
|
_$Eg() {
|
|
148
|
-
this.constructor.elementProperties.forEach(((t2,
|
|
149
|
-
this.hasOwnProperty(
|
|
148
|
+
this.constructor.elementProperties.forEach(((t2, i3) => {
|
|
149
|
+
this.hasOwnProperty(i3) && (this._$Ei.set(i3, this[i3]), delete this[i3]);
|
|
150
150
|
}));
|
|
151
151
|
}
|
|
152
152
|
createRenderRoot() {
|
|
153
153
|
var t2;
|
|
154
|
-
const
|
|
155
|
-
return S$
|
|
154
|
+
const s3 = null !== (t2 = this.shadowRoot) && void 0 !== t2 ? t2 : this.attachShadow(this.constructor.shadowRootOptions);
|
|
155
|
+
return S$2(s3, this.constructor.elementStyles), s3;
|
|
156
156
|
}
|
|
157
157
|
connectedCallback() {
|
|
158
158
|
var t2;
|
|
159
159
|
void 0 === this.renderRoot && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), null === (t2 = this._$ES) || void 0 === t2 || t2.forEach(((t3) => {
|
|
160
|
-
var
|
|
161
|
-
return null === (
|
|
160
|
+
var i3;
|
|
161
|
+
return null === (i3 = t3.hostConnected) || void 0 === i3 ? void 0 : i3.call(t3);
|
|
162
162
|
}));
|
|
163
163
|
}
|
|
164
164
|
enableUpdating(t2) {
|
|
@@ -166,32 +166,32 @@ let u$1 = class u extends HTMLElement {
|
|
|
166
166
|
disconnectedCallback() {
|
|
167
167
|
var t2;
|
|
168
168
|
null === (t2 = this._$ES) || void 0 === t2 || t2.forEach(((t3) => {
|
|
169
|
-
var
|
|
170
|
-
return null === (
|
|
169
|
+
var i3;
|
|
170
|
+
return null === (i3 = t3.hostDisconnected) || void 0 === i3 ? void 0 : i3.call(t3);
|
|
171
171
|
}));
|
|
172
172
|
}
|
|
173
|
-
attributeChangedCallback(t2,
|
|
174
|
-
this._$AK(t2,
|
|
173
|
+
attributeChangedCallback(t2, i3, s3) {
|
|
174
|
+
this._$AK(t2, s3);
|
|
175
175
|
}
|
|
176
|
-
_$EO(t2,
|
|
176
|
+
_$EO(t2, i3, s3 = l$4) {
|
|
177
177
|
var e2;
|
|
178
|
-
const r2 = this.constructor._$Ep(t2,
|
|
179
|
-
if (void 0 !== r2 && true ===
|
|
180
|
-
const h2 = (void 0 !== (null === (e2 =
|
|
178
|
+
const r2 = this.constructor._$Ep(t2, s3);
|
|
179
|
+
if (void 0 !== r2 && true === s3.reflect) {
|
|
180
|
+
const h2 = (void 0 !== (null === (e2 = s3.converter) || void 0 === e2 ? void 0 : e2.toAttribute) ? s3.converter : n$5).toAttribute(i3, s3.type);
|
|
181
181
|
this._$El = t2, null == h2 ? this.removeAttribute(r2) : this.setAttribute(r2, h2), this._$El = null;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
_$AK(t2,
|
|
185
|
-
var
|
|
184
|
+
_$AK(t2, i3) {
|
|
185
|
+
var s3;
|
|
186
186
|
const e2 = this.constructor, r2 = e2._$Ev.get(t2);
|
|
187
187
|
if (void 0 !== r2 && this._$El !== r2) {
|
|
188
|
-
const t3 = e2.getPropertyOptions(r2), h2 = "function" == typeof t3.converter ? { fromAttribute: t3.converter } : void 0 !== (null === (
|
|
189
|
-
this._$El = r2, this[r2] = h2.fromAttribute(
|
|
188
|
+
const t3 = e2.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$5;
|
|
189
|
+
this._$El = r2, this[r2] = h2.fromAttribute(i3, t3.type), this._$El = null;
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
requestUpdate(t2,
|
|
192
|
+
requestUpdate(t2, i3, s3) {
|
|
193
193
|
let e2 = true;
|
|
194
|
-
void 0 !== t2 && (((
|
|
194
|
+
void 0 !== t2 && (((s3 = s3 || this.constructor.getPropertyOptions(t2)).hasChanged || a$2)(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))) : e2 = false), !this.isUpdatePending && e2 && (this._$E_ = this._$Ej());
|
|
195
195
|
}
|
|
196
196
|
async _$Ej() {
|
|
197
197
|
this.isUpdatePending = true;
|
|
@@ -209,26 +209,26 @@ let u$1 = class u extends HTMLElement {
|
|
|
209
209
|
performUpdate() {
|
|
210
210
|
var t2;
|
|
211
211
|
if (!this.isUpdatePending) return;
|
|
212
|
-
this.hasUpdated, this._$Ei && (this._$Ei.forEach(((t3,
|
|
213
|
-
let
|
|
214
|
-
const
|
|
212
|
+
this.hasUpdated, this._$Ei && (this._$Ei.forEach(((t3, i4) => this[i4] = t3)), this._$Ei = void 0);
|
|
213
|
+
let i3 = false;
|
|
214
|
+
const s3 = this._$AL;
|
|
215
215
|
try {
|
|
216
|
-
|
|
217
|
-
var
|
|
218
|
-
return null === (
|
|
219
|
-
})), this.update(
|
|
216
|
+
i3 = this.shouldUpdate(s3), i3 ? (this.willUpdate(s3), null === (t2 = this._$ES) || void 0 === t2 || t2.forEach(((t3) => {
|
|
217
|
+
var i4;
|
|
218
|
+
return null === (i4 = t3.hostUpdate) || void 0 === i4 ? void 0 : i4.call(t3);
|
|
219
|
+
})), this.update(s3)) : this._$Ek();
|
|
220
220
|
} catch (t3) {
|
|
221
|
-
throw
|
|
221
|
+
throw i3 = false, this._$Ek(), t3;
|
|
222
222
|
}
|
|
223
|
-
|
|
223
|
+
i3 && this._$AE(s3);
|
|
224
224
|
}
|
|
225
225
|
willUpdate(t2) {
|
|
226
226
|
}
|
|
227
227
|
_$AE(t2) {
|
|
228
|
-
var
|
|
229
|
-
null === (
|
|
230
|
-
var
|
|
231
|
-
return null === (
|
|
228
|
+
var i3;
|
|
229
|
+
null === (i3 = this._$ES) || void 0 === i3 || i3.forEach(((t3) => {
|
|
230
|
+
var i4;
|
|
231
|
+
return null === (i4 = t3.hostUpdated) || void 0 === i4 ? void 0 : i4.call(t3);
|
|
232
232
|
})), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t2)), this.updated(t2);
|
|
233
233
|
}
|
|
234
234
|
_$Ek() {
|
|
@@ -244,92 +244,92 @@ let u$1 = class u extends HTMLElement {
|
|
|
244
244
|
return true;
|
|
245
245
|
}
|
|
246
246
|
update(t2) {
|
|
247
|
-
void 0 !== this._$EC && (this._$EC.forEach(((t3,
|
|
247
|
+
void 0 !== this._$EC && (this._$EC.forEach(((t3, i3) => this._$EO(i3, this[i3], t3))), this._$EC = void 0), this._$Ek();
|
|
248
248
|
}
|
|
249
249
|
updated(t2) {
|
|
250
250
|
}
|
|
251
251
|
firstUpdated(t2) {
|
|
252
252
|
}
|
|
253
253
|
};
|
|
254
|
-
u$
|
|
254
|
+
u$2[d$2] = true, u$2.elementProperties = /* @__PURE__ */ new Map(), u$2.elementStyles = [], u$2.shadowRootOptions = { mode: "open" }, null == o$4 || o$4({ ReactiveElement: u$2 }), (null !== (s$3 = e$5.reactiveElementVersions) && void 0 !== s$3 ? s$3 : e$5.reactiveElementVersions = []).push("1.6.3");
|
|
255
255
|
/**
|
|
256
256
|
* @license
|
|
257
257
|
* Copyright 2017 Google LLC
|
|
258
258
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
259
259
|
*/
|
|
260
|
-
var t$
|
|
261
|
-
const i$
|
|
262
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), g = /'/g,
|
|
263
|
-
function P(t2,
|
|
260
|
+
var t$3;
|
|
261
|
+
const i$3 = window, s$2 = i$3.trustedTypes, e$4 = s$2 ? s$2.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, o$3 = "$lit$", n$4 = `lit$${(Math.random() + "").slice(9)}$`, l$3 = "?" + n$4, h$1 = `<${l$3}>`, r$1 = document, u$1 = () => r$1.createComment(""), d$1 = (t2) => null === t2 || "object" != typeof t2 && "function" != typeof t2, c$1 = Array.isArray, v$1 = (t2) => c$1(t2) || "function" == typeof (null == t2 ? void 0 : t2[Symbol.iterator]), a$1 = "[ \n\f\r]", f$1 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, _$1 = /-->/g, m$1 = />/g, p$1 = RegExp(`>|${a$1}(?:([^\\s"'>=/]+)(${a$1}*=${a$1}*(?:[^
|
|
262
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), g$1 = /'/g, $$1 = /"/g, y$1 = /^(?:script|style|textarea|title)$/i, w = (t2) => (i3, ...s3) => ({ _$litType$: t2, strings: i3, values: s3 }), x = w(1), b$1 = w(2), T$1 = Symbol.for("lit-noChange"), A$1 = Symbol.for("lit-nothing"), E$1 = /* @__PURE__ */ new WeakMap(), C$1 = r$1.createTreeWalker(r$1, 129, null, false);
|
|
263
|
+
function P$1(t2, i3) {
|
|
264
264
|
if (!Array.isArray(t2) || !t2.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
265
|
-
return void 0 !== e$
|
|
265
|
+
return void 0 !== e$4 ? e$4.createHTML(i3) : i3;
|
|
266
266
|
}
|
|
267
|
-
const V = (t2,
|
|
268
|
-
const
|
|
269
|
-
let l2, r2 = 2 ===
|
|
270
|
-
for (let
|
|
271
|
-
const
|
|
267
|
+
const V$1 = (t2, i3) => {
|
|
268
|
+
const s3 = t2.length - 1, e2 = [];
|
|
269
|
+
let l2, r2 = 2 === i3 ? "<svg>" : "", u3 = f$1;
|
|
270
|
+
for (let i4 = 0; i4 < s3; i4++) {
|
|
271
|
+
const s4 = t2[i4];
|
|
272
272
|
let d2, c2, v2 = -1, a2 = 0;
|
|
273
|
-
for (; a2 <
|
|
274
|
-
const w2 = u3 === p && t2[
|
|
275
|
-
r2 += u3 === f ?
|
|
273
|
+
for (; a2 < s4.length && (u3.lastIndex = a2, c2 = u3.exec(s4), null !== c2); ) a2 = u3.lastIndex, u3 === f$1 ? "!--" === c2[1] ? u3 = _$1 : void 0 !== c2[1] ? u3 = m$1 : void 0 !== c2[2] ? (y$1.test(c2[2]) && (l2 = RegExp("</" + c2[2], "g")), u3 = p$1) : void 0 !== c2[3] && (u3 = p$1) : u3 === p$1 ? ">" === c2[0] ? (u3 = null != l2 ? l2 : f$1, v2 = -1) : void 0 === c2[1] ? v2 = -2 : (v2 = u3.lastIndex - c2[2].length, d2 = c2[1], u3 = void 0 === c2[3] ? p$1 : '"' === c2[3] ? $$1 : g$1) : u3 === $$1 || u3 === g$1 ? u3 = p$1 : u3 === _$1 || u3 === m$1 ? u3 = f$1 : (u3 = p$1, l2 = void 0);
|
|
274
|
+
const w2 = u3 === p$1 && t2[i4 + 1].startsWith("/>") ? " " : "";
|
|
275
|
+
r2 += u3 === f$1 ? s4 + h$1 : v2 >= 0 ? (e2.push(d2), s4.slice(0, v2) + o$3 + s4.slice(v2) + n$4 + w2) : s4 + n$4 + (-2 === v2 ? (e2.push(void 0), i4) : w2);
|
|
276
276
|
}
|
|
277
|
-
return [P(t2, r2 + (t2[
|
|
277
|
+
return [P$1(t2, r2 + (t2[s3] || "<?>") + (2 === i3 ? "</svg>" : "")), e2];
|
|
278
278
|
};
|
|
279
|
-
class N {
|
|
280
|
-
constructor({ strings: t2, _$litType$:
|
|
279
|
+
let N$1 = class N {
|
|
280
|
+
constructor({ strings: t2, _$litType$: i3 }, e2) {
|
|
281
281
|
let h2;
|
|
282
282
|
this.parts = [];
|
|
283
283
|
let r2 = 0, d2 = 0;
|
|
284
|
-
const c2 = t2.length - 1, v2 = this.parts, [a2, f2] = V(t2,
|
|
285
|
-
if (this.el = N.createElement(a2, e2), C.currentNode = this.el.content, 2 ===
|
|
286
|
-
const t3 = this.el.content,
|
|
287
|
-
|
|
284
|
+
const c2 = t2.length - 1, v2 = this.parts, [a2, f2] = V$1(t2, i3);
|
|
285
|
+
if (this.el = N.createElement(a2, e2), C$1.currentNode = this.el.content, 2 === i3) {
|
|
286
|
+
const t3 = this.el.content, i4 = t3.firstChild;
|
|
287
|
+
i4.remove(), t3.append(...i4.childNodes);
|
|
288
288
|
}
|
|
289
|
-
for (; null !== (h2 = C.nextNode()) && v2.length < c2; ) {
|
|
289
|
+
for (; null !== (h2 = C$1.nextNode()) && v2.length < c2; ) {
|
|
290
290
|
if (1 === h2.nodeType) {
|
|
291
291
|
if (h2.hasAttributes()) {
|
|
292
292
|
const t3 = [];
|
|
293
|
-
for (const
|
|
294
|
-
const
|
|
295
|
-
if (t3.push(
|
|
296
|
-
const t4 = h2.getAttribute(
|
|
297
|
-
v2.push({ type: 1, index: r2, name:
|
|
293
|
+
for (const i4 of h2.getAttributeNames()) if (i4.endsWith(o$3) || i4.startsWith(n$4)) {
|
|
294
|
+
const s3 = f2[d2++];
|
|
295
|
+
if (t3.push(i4), void 0 !== s3) {
|
|
296
|
+
const t4 = h2.getAttribute(s3.toLowerCase() + o$3).split(n$4), i5 = /([.?@])?(.*)/.exec(s3);
|
|
297
|
+
v2.push({ type: 1, index: r2, name: i5[2], strings: t4, ctor: "." === i5[1] ? H$1 : "?" === i5[1] ? L$1 : "@" === i5[1] ? z$1 : k$1 });
|
|
298
298
|
} else v2.push({ type: 6, index: r2 });
|
|
299
299
|
}
|
|
300
|
-
for (const
|
|
300
|
+
for (const i4 of t3) h2.removeAttribute(i4);
|
|
301
301
|
}
|
|
302
|
-
if (y.test(h2.tagName)) {
|
|
303
|
-
const t3 = h2.textContent.split(n$
|
|
304
|
-
if (
|
|
305
|
-
h2.textContent = s$
|
|
306
|
-
for (let
|
|
307
|
-
h2.append(t3[
|
|
302
|
+
if (y$1.test(h2.tagName)) {
|
|
303
|
+
const t3 = h2.textContent.split(n$4), i4 = t3.length - 1;
|
|
304
|
+
if (i4 > 0) {
|
|
305
|
+
h2.textContent = s$2 ? s$2.emptyScript : "";
|
|
306
|
+
for (let s3 = 0; s3 < i4; s3++) h2.append(t3[s3], u$1()), C$1.nextNode(), v2.push({ type: 2, index: ++r2 });
|
|
307
|
+
h2.append(t3[i4], u$1());
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
|
-
} else if (8 === h2.nodeType) if (h2.data === l$
|
|
310
|
+
} else if (8 === h2.nodeType) if (h2.data === l$3) v2.push({ type: 2, index: r2 });
|
|
311
311
|
else {
|
|
312
312
|
let t3 = -1;
|
|
313
|
-
for (; -1 !== (t3 = h2.data.indexOf(n$
|
|
313
|
+
for (; -1 !== (t3 = h2.data.indexOf(n$4, t3 + 1)); ) v2.push({ type: 7, index: r2 }), t3 += n$4.length - 1;
|
|
314
314
|
}
|
|
315
315
|
r2++;
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
|
-
static createElement(t2,
|
|
319
|
-
const
|
|
320
|
-
return
|
|
318
|
+
static createElement(t2, i3) {
|
|
319
|
+
const s3 = r$1.createElement("template");
|
|
320
|
+
return s3.innerHTML = t2, s3;
|
|
321
321
|
}
|
|
322
|
-
}
|
|
323
|
-
function S(t2,
|
|
322
|
+
};
|
|
323
|
+
function S$1(t2, i3, s3 = t2, e2) {
|
|
324
324
|
var o3, n2, l2, h2;
|
|
325
|
-
if (
|
|
326
|
-
let r2 = void 0 !== e2 ? null === (o3 =
|
|
327
|
-
const u3 = d(
|
|
328
|
-
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,
|
|
325
|
+
if (i3 === T$1) return i3;
|
|
326
|
+
let r2 = void 0 !== e2 ? null === (o3 = s3._$Co) || void 0 === o3 ? void 0 : o3[e2] : s3._$Cl;
|
|
327
|
+
const u3 = d$1(i3) ? void 0 : i3._$litDirective$;
|
|
328
|
+
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 && (i3 = S$1(t2, r2._$AS(t2, i3.values), r2, e2)), i3;
|
|
329
329
|
}
|
|
330
|
-
class M {
|
|
331
|
-
constructor(t2,
|
|
332
|
-
this._$AV = [], this._$AN = void 0, this._$AD = t2, this._$AM =
|
|
330
|
+
let M$1 = class M {
|
|
331
|
+
constructor(t2, i3) {
|
|
332
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t2, this._$AM = i3;
|
|
333
333
|
}
|
|
334
334
|
get parentNode() {
|
|
335
335
|
return this._$AM.parentNode;
|
|
@@ -338,37 +338,37 @@ class M {
|
|
|
338
338
|
return this._$AM._$AU;
|
|
339
339
|
}
|
|
340
340
|
u(t2) {
|
|
341
|
-
var
|
|
342
|
-
const { el: { content:
|
|
343
|
-
C.currentNode = o3;
|
|
344
|
-
let n2 = C.nextNode(), l2 = 0, h2 = 0, u3 = e2[0];
|
|
341
|
+
var i3;
|
|
342
|
+
const { el: { content: s3 }, parts: e2 } = this._$AD, o3 = (null !== (i3 = null == t2 ? void 0 : t2.creationScope) && void 0 !== i3 ? i3 : r$1).importNode(s3, true);
|
|
343
|
+
C$1.currentNode = o3;
|
|
344
|
+
let n2 = C$1.nextNode(), l2 = 0, h2 = 0, u3 = e2[0];
|
|
345
345
|
for (; void 0 !== u3; ) {
|
|
346
346
|
if (l2 === u3.index) {
|
|
347
|
-
let
|
|
348
|
-
2 === u3.type ?
|
|
347
|
+
let i4;
|
|
348
|
+
2 === u3.type ? i4 = new R$1(n2, n2.nextSibling, this, t2) : 1 === u3.type ? i4 = new u3.ctor(n2, u3.name, u3.strings, this, t2) : 6 === u3.type && (i4 = new Z(n2, this, t2)), this._$AV.push(i4), u3 = e2[++h2];
|
|
349
349
|
}
|
|
350
|
-
l2 !== (null == u3 ? void 0 : u3.index) && (n2 = C.nextNode(), l2++);
|
|
350
|
+
l2 !== (null == u3 ? void 0 : u3.index) && (n2 = C$1.nextNode(), l2++);
|
|
351
351
|
}
|
|
352
|
-
return C.currentNode = r, o3;
|
|
352
|
+
return C$1.currentNode = r$1, o3;
|
|
353
353
|
}
|
|
354
354
|
v(t2) {
|
|
355
|
-
let
|
|
356
|
-
for (const
|
|
355
|
+
let i3 = 0;
|
|
356
|
+
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++;
|
|
357
357
|
}
|
|
358
|
-
}
|
|
359
|
-
class R {
|
|
360
|
-
constructor(t2,
|
|
358
|
+
};
|
|
359
|
+
let R$1 = class R {
|
|
360
|
+
constructor(t2, i3, s3, e2) {
|
|
361
361
|
var o3;
|
|
362
|
-
this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA = t2, this._$AB =
|
|
362
|
+
this.type = 2, this._$AH = A$1, this._$AN = void 0, this._$AA = t2, this._$AB = i3, this._$AM = s3, this.options = e2, this._$Cp = null === (o3 = null == e2 ? void 0 : e2.isConnected) || void 0 === o3 || o3;
|
|
363
363
|
}
|
|
364
364
|
get _$AU() {
|
|
365
|
-
var t2,
|
|
366
|
-
return null !== (
|
|
365
|
+
var t2, i3;
|
|
366
|
+
return null !== (i3 = null === (t2 = this._$AM) || void 0 === t2 ? void 0 : t2._$AU) && void 0 !== i3 ? i3 : this._$Cp;
|
|
367
367
|
}
|
|
368
368
|
get parentNode() {
|
|
369
369
|
let t2 = this._$AA.parentNode;
|
|
370
|
-
const
|
|
371
|
-
return void 0 !==
|
|
370
|
+
const i3 = this._$AM;
|
|
371
|
+
return void 0 !== i3 && 11 === (null == t2 ? void 0 : t2.nodeType) && (t2 = i3.parentNode), t2;
|
|
372
372
|
}
|
|
373
373
|
get startNode() {
|
|
374
374
|
return this._$AA;
|
|
@@ -376,8 +376,8 @@ class R {
|
|
|
376
376
|
get endNode() {
|
|
377
377
|
return this._$AB;
|
|
378
378
|
}
|
|
379
|
-
_$AI(t2,
|
|
380
|
-
t2 = S(this, t2,
|
|
379
|
+
_$AI(t2, i3 = this) {
|
|
380
|
+
t2 = S$1(this, t2, i3), d$1(t2) ? t2 === A$1 || null == t2 || "" === t2 ? (this._$AH !== A$1 && this._$AR(), this._$AH = A$1) : t2 !== this._$AH && t2 !== T$1 && this._(t2) : void 0 !== t2._$litType$ ? this.g(t2) : void 0 !== t2.nodeType ? this.$(t2) : v$1(t2) ? this.T(t2) : this._(t2);
|
|
381
381
|
}
|
|
382
382
|
k(t2) {
|
|
383
383
|
return this._$AA.parentNode.insertBefore(t2, this._$AB);
|
|
@@ -386,43 +386,43 @@ class R {
|
|
|
386
386
|
this._$AH !== t2 && (this._$AR(), this._$AH = this.k(t2));
|
|
387
387
|
}
|
|
388
388
|
_(t2) {
|
|
389
|
-
this._$AH !== A && d(this._$AH) ? this._$AA.nextSibling.data = t2 : this.$(r.createTextNode(t2)), this._$AH = t2;
|
|
389
|
+
this._$AH !== A$1 && d$1(this._$AH) ? this._$AA.nextSibling.data = t2 : this.$(r$1.createTextNode(t2)), this._$AH = t2;
|
|
390
390
|
}
|
|
391
391
|
g(t2) {
|
|
392
|
-
var
|
|
393
|
-
const { values:
|
|
394
|
-
if ((null === (
|
|
392
|
+
var i3;
|
|
393
|
+
const { values: s3, _$litType$: e2 } = t2, o3 = "number" == typeof e2 ? this._$AC(t2) : (void 0 === e2.el && (e2.el = N$1.createElement(P$1(e2.h, e2.h[0]), this.options)), e2);
|
|
394
|
+
if ((null === (i3 = this._$AH) || void 0 === i3 ? void 0 : i3._$AD) === o3) this._$AH.v(s3);
|
|
395
395
|
else {
|
|
396
|
-
const t3 = new M(o3, this),
|
|
397
|
-
t3.v(
|
|
396
|
+
const t3 = new M$1(o3, this), i4 = t3.u(this.options);
|
|
397
|
+
t3.v(s3), this.$(i4), this._$AH = t3;
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
_$AC(t2) {
|
|
401
|
-
let
|
|
402
|
-
return void 0 ===
|
|
401
|
+
let i3 = E$1.get(t2.strings);
|
|
402
|
+
return void 0 === i3 && E$1.set(t2.strings, i3 = new N$1(t2)), i3;
|
|
403
403
|
}
|
|
404
404
|
T(t2) {
|
|
405
|
-
c(this._$AH) || (this._$AH = [], this._$AR());
|
|
406
|
-
const
|
|
407
|
-
let
|
|
408
|
-
for (const o3 of t2) e2 ===
|
|
409
|
-
e2 <
|
|
405
|
+
c$1(this._$AH) || (this._$AH = [], this._$AR());
|
|
406
|
+
const i3 = this._$AH;
|
|
407
|
+
let s3, e2 = 0;
|
|
408
|
+
for (const o3 of t2) e2 === i3.length ? i3.push(s3 = new R(this.k(u$1()), this.k(u$1()), this, this.options)) : s3 = i3[e2], s3._$AI(o3), e2++;
|
|
409
|
+
e2 < i3.length && (this._$AR(s3 && s3._$AB.nextSibling, e2), i3.length = e2);
|
|
410
410
|
}
|
|
411
|
-
_$AR(t2 = this._$AA.nextSibling,
|
|
412
|
-
var
|
|
413
|
-
for (null === (
|
|
414
|
-
const
|
|
415
|
-
t2.remove(), t2 =
|
|
411
|
+
_$AR(t2 = this._$AA.nextSibling, i3) {
|
|
412
|
+
var s3;
|
|
413
|
+
for (null === (s3 = this._$AP) || void 0 === s3 || s3.call(this, false, true, i3); t2 && t2 !== this._$AB; ) {
|
|
414
|
+
const i4 = t2.nextSibling;
|
|
415
|
+
t2.remove(), t2 = i4;
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
418
|
setConnected(t2) {
|
|
419
|
-
var
|
|
420
|
-
void 0 === this._$AM && (this._$Cp = t2, null === (
|
|
419
|
+
var i3;
|
|
420
|
+
void 0 === this._$AM && (this._$Cp = t2, null === (i3 = this._$AP) || void 0 === i3 || i3.call(this, t2));
|
|
421
421
|
}
|
|
422
|
-
}
|
|
423
|
-
class k {
|
|
424
|
-
constructor(t2,
|
|
425
|
-
this.type = 1, this._$AH = A, this._$AN = void 0, this.element = t2, this.name =
|
|
422
|
+
};
|
|
423
|
+
let k$1 = class k {
|
|
424
|
+
constructor(t2, i3, s3, e2, o3) {
|
|
425
|
+
this.type = 1, this._$AH = A$1, this._$AN = void 0, this.element = t2, this.name = i3, 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$1;
|
|
426
426
|
}
|
|
427
427
|
get tagName() {
|
|
428
428
|
return this.element.tagName;
|
|
@@ -430,73 +430,73 @@ class k {
|
|
|
430
430
|
get _$AU() {
|
|
431
431
|
return this._$AM._$AU;
|
|
432
432
|
}
|
|
433
|
-
_$AI(t2,
|
|
433
|
+
_$AI(t2, i3 = this, s3, e2) {
|
|
434
434
|
const o3 = this.strings;
|
|
435
435
|
let n2 = false;
|
|
436
|
-
if (void 0 === o3) t2 = S(this, t2,
|
|
436
|
+
if (void 0 === o3) t2 = S$1(this, t2, i3, 0), n2 = !d$1(t2) || t2 !== this._$AH && t2 !== T$1, n2 && (this._$AH = t2);
|
|
437
437
|
else {
|
|
438
438
|
const e3 = t2;
|
|
439
439
|
let l2, h2;
|
|
440
|
-
for (t2 = o3[0], l2 = 0; l2 < o3.length - 1; l2++) h2 = S(this, e3[
|
|
440
|
+
for (t2 = o3[0], l2 = 0; l2 < o3.length - 1; l2++) h2 = S$1(this, e3[s3 + l2], i3, l2), h2 === T$1 && (h2 = this._$AH[l2]), n2 || (n2 = !d$1(h2) || h2 !== this._$AH[l2]), h2 === A$1 ? t2 = A$1 : t2 !== A$1 && (t2 += (null != h2 ? h2 : "") + o3[l2 + 1]), this._$AH[l2] = h2;
|
|
441
441
|
}
|
|
442
442
|
n2 && !e2 && this.j(t2);
|
|
443
443
|
}
|
|
444
444
|
j(t2) {
|
|
445
|
-
t2 === A ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, null != t2 ? t2 : "");
|
|
445
|
+
t2 === A$1 ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, null != t2 ? t2 : "");
|
|
446
446
|
}
|
|
447
|
-
}
|
|
448
|
-
class H extends k {
|
|
447
|
+
};
|
|
448
|
+
let H$1 = class H extends k$1 {
|
|
449
449
|
constructor() {
|
|
450
450
|
super(...arguments), this.type = 3;
|
|
451
451
|
}
|
|
452
452
|
j(t2) {
|
|
453
|
-
this.element[this.name] = t2 === A ? void 0 : t2;
|
|
453
|
+
this.element[this.name] = t2 === A$1 ? void 0 : t2;
|
|
454
454
|
}
|
|
455
|
-
}
|
|
456
|
-
const I = s$
|
|
457
|
-
class L extends k {
|
|
455
|
+
};
|
|
456
|
+
const I$1 = s$2 ? s$2.emptyScript : "";
|
|
457
|
+
let L$1 = class L extends k$1 {
|
|
458
458
|
constructor() {
|
|
459
459
|
super(...arguments), this.type = 4;
|
|
460
460
|
}
|
|
461
461
|
j(t2) {
|
|
462
|
-
t2 && t2 !== A ? this.element.setAttribute(this.name, I) : this.element.removeAttribute(this.name);
|
|
462
|
+
t2 && t2 !== A$1 ? this.element.setAttribute(this.name, I$1) : this.element.removeAttribute(this.name);
|
|
463
463
|
}
|
|
464
|
-
}
|
|
465
|
-
class z extends k {
|
|
466
|
-
constructor(t2,
|
|
467
|
-
super(t2,
|
|
468
|
-
}
|
|
469
|
-
_$AI(t2,
|
|
470
|
-
var
|
|
471
|
-
if ((t2 = null !== (
|
|
472
|
-
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);
|
|
464
|
+
};
|
|
465
|
+
let z$1 = class z extends k$1 {
|
|
466
|
+
constructor(t2, i3, s3, e2, o3) {
|
|
467
|
+
super(t2, i3, s3, e2, o3), this.type = 5;
|
|
468
|
+
}
|
|
469
|
+
_$AI(t2, i3 = this) {
|
|
470
|
+
var s3;
|
|
471
|
+
if ((t2 = null !== (s3 = S$1(this, t2, i3, 0)) && void 0 !== s3 ? s3 : A$1) === T$1) return;
|
|
472
|
+
const e2 = this._$AH, o3 = t2 === A$1 && e2 !== A$1 || t2.capture !== e2.capture || t2.once !== e2.once || t2.passive !== e2.passive, n2 = t2 !== A$1 && (e2 === A$1 || o3);
|
|
473
473
|
o3 && this.element.removeEventListener(this.name, this, e2), n2 && this.element.addEventListener(this.name, this, t2), this._$AH = t2;
|
|
474
474
|
}
|
|
475
475
|
handleEvent(t2) {
|
|
476
|
-
var
|
|
477
|
-
"function" == typeof this._$AH ? this._$AH.call(null !== (
|
|
476
|
+
var i3, s3;
|
|
477
|
+
"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);
|
|
478
478
|
}
|
|
479
|
-
}
|
|
479
|
+
};
|
|
480
480
|
class Z {
|
|
481
|
-
constructor(t2,
|
|
482
|
-
this.element = t2, this.type = 6, this._$AN = void 0, this._$AM =
|
|
481
|
+
constructor(t2, i3, s3) {
|
|
482
|
+
this.element = t2, this.type = 6, this._$AN = void 0, this._$AM = i3, this.options = s3;
|
|
483
483
|
}
|
|
484
484
|
get _$AU() {
|
|
485
485
|
return this._$AM._$AU;
|
|
486
486
|
}
|
|
487
487
|
_$AI(t2) {
|
|
488
|
-
S(this, t2);
|
|
488
|
+
S$1(this, t2);
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
const B = i$
|
|
492
|
-
null == B || B(N, R), (null !== (t$
|
|
493
|
-
const D = (t2,
|
|
491
|
+
const B = i$3.litHtmlPolyfillSupport;
|
|
492
|
+
null == B || B(N$1, R$1), (null !== (t$3 = i$3.litHtmlVersions) && void 0 !== t$3 ? t$3 : i$3.litHtmlVersions = []).push("2.8.0");
|
|
493
|
+
const D = (t2, i3, s3) => {
|
|
494
494
|
var e2, o3;
|
|
495
|
-
const n2 = null !== (e2 = null ==
|
|
495
|
+
const n2 = null !== (e2 = null == s3 ? void 0 : s3.renderBefore) && void 0 !== e2 ? e2 : i3;
|
|
496
496
|
let l2 = n2._$litPart$;
|
|
497
497
|
if (void 0 === l2) {
|
|
498
|
-
const t3 = null !== (o3 = null ==
|
|
499
|
-
n2._$litPart$ = l2 = new R(
|
|
498
|
+
const t3 = null !== (o3 = null == s3 ? void 0 : s3.renderBefore) && void 0 !== o3 ? o3 : null;
|
|
499
|
+
n2._$litPart$ = l2 = new R$1(i3.insertBefore(u$1(), t3), t3, void 0, null != s3 ? s3 : {});
|
|
500
500
|
}
|
|
501
501
|
return l2._$AI(t2), l2;
|
|
502
502
|
};
|
|
@@ -505,19 +505,19 @@ const D = (t2, i2, s2) => {
|
|
|
505
505
|
* Copyright 2017 Google LLC
|
|
506
506
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
507
507
|
*/
|
|
508
|
-
var l$
|
|
509
|
-
class s extends u$
|
|
508
|
+
var l$2, o$2;
|
|
509
|
+
let s$1 = class s extends u$2 {
|
|
510
510
|
constructor() {
|
|
511
511
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
512
512
|
}
|
|
513
513
|
createRenderRoot() {
|
|
514
514
|
var t2, e2;
|
|
515
|
-
const
|
|
516
|
-
return null !== (t2 = (e2 = this.renderOptions).renderBefore) && void 0 !== t2 || (e2.renderBefore =
|
|
515
|
+
const i3 = super.createRenderRoot();
|
|
516
|
+
return null !== (t2 = (e2 = this.renderOptions).renderBefore) && void 0 !== t2 || (e2.renderBefore = i3.firstChild), i3;
|
|
517
517
|
}
|
|
518
518
|
update(t2) {
|
|
519
|
-
const
|
|
520
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t2), this._$Do = D(
|
|
519
|
+
const i3 = this.render();
|
|
520
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t2), this._$Do = D(i3, this.renderRoot, this.renderOptions);
|
|
521
521
|
}
|
|
522
522
|
connectedCallback() {
|
|
523
523
|
var t2;
|
|
@@ -528,21 +528,21 @@ class s extends u$1 {
|
|
|
528
528
|
super.disconnectedCallback(), null === (t2 = this._$Do) || void 0 === t2 || t2.setConnected(false);
|
|
529
529
|
}
|
|
530
530
|
render() {
|
|
531
|
-
return T;
|
|
531
|
+
return T$1;
|
|
532
532
|
}
|
|
533
|
-
}
|
|
534
|
-
s.finalized = true, s._$litElement$ = true, null === (l$
|
|
535
|
-
const n$
|
|
536
|
-
null == n$
|
|
537
|
-
(null !== (o$
|
|
533
|
+
};
|
|
534
|
+
s$1.finalized = true, s$1._$litElement$ = true, null === (l$2 = globalThis.litElementHydrateSupport) || void 0 === l$2 || l$2.call(globalThis, { LitElement: s$1 });
|
|
535
|
+
const n$3 = globalThis.litElementPolyfillSupport;
|
|
536
|
+
null == n$3 || n$3({ LitElement: s$1 });
|
|
537
|
+
(null !== (o$2 = globalThis.litElementVersions) && void 0 !== o$2 ? o$2 : globalThis.litElementVersions = []).push("3.3.3");
|
|
538
538
|
/**
|
|
539
539
|
* @license
|
|
540
540
|
* Copyright 2017 Google LLC
|
|
541
541
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
542
542
|
*/
|
|
543
|
-
const e$
|
|
544
|
-
const { kind: t2, elements:
|
|
545
|
-
return { kind: t2, elements:
|
|
543
|
+
const e$3 = (e2) => (n2) => "function" == typeof n2 ? ((e3, n3) => (customElements.define(e3, n3), n3))(e2, n2) : ((e3, n3) => {
|
|
544
|
+
const { kind: t2, elements: s3 } = n3;
|
|
545
|
+
return { kind: t2, elements: s3, finisher(n4) {
|
|
546
546
|
customElements.define(e3, n4);
|
|
547
547
|
} };
|
|
548
548
|
})(e2, n2);
|
|
@@ -551,47 +551,47 @@ const e$2 = (e2) => (n2) => "function" == typeof n2 ? ((e3, n3) => (customElemen
|
|
|
551
551
|
* Copyright 2017 Google LLC
|
|
552
552
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
553
553
|
*/
|
|
554
|
-
const i$
|
|
555
|
-
n2.createProperty(e2.key,
|
|
554
|
+
const i$2 = (i3, e2) => "method" === e2.kind && e2.descriptor && !("value" in e2.descriptor) ? { ...e2, finisher(n2) {
|
|
555
|
+
n2.createProperty(e2.key, i3);
|
|
556
556
|
} } : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: e2.key, initializer() {
|
|
557
557
|
"function" == typeof e2.initializer && (this[e2.key] = e2.initializer.call(this));
|
|
558
558
|
}, finisher(n2) {
|
|
559
|
-
n2.createProperty(e2.key,
|
|
560
|
-
} }, e$
|
|
561
|
-
e2.constructor.createProperty(n2,
|
|
559
|
+
n2.createProperty(e2.key, i3);
|
|
560
|
+
} }, e$2 = (i3, e2, n2) => {
|
|
561
|
+
e2.constructor.createProperty(n2, i3);
|
|
562
562
|
};
|
|
563
|
-
function n$
|
|
564
|
-
return (t2, o3) => void 0 !== o3 ? e$
|
|
563
|
+
function n$2(n2) {
|
|
564
|
+
return (t2, o3) => void 0 !== o3 ? e$2(n2, t2, o3) : i$2(n2, t2);
|
|
565
565
|
}
|
|
566
566
|
/**
|
|
567
567
|
* @license
|
|
568
568
|
* Copyright 2017 Google LLC
|
|
569
569
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
570
570
|
*/
|
|
571
|
-
function t$
|
|
572
|
-
return n$
|
|
571
|
+
function t$2(t2) {
|
|
572
|
+
return n$2({ ...t2, state: true });
|
|
573
573
|
}
|
|
574
574
|
/**
|
|
575
575
|
* @license
|
|
576
576
|
* Copyright 2021 Google LLC
|
|
577
577
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
578
578
|
*/
|
|
579
|
-
var n;
|
|
580
|
-
null != (null === (n = window.HTMLSlotElement) || void 0 === n ? void 0 : n.prototype.assignedElements) ? (o3, n2) => o3.assignedElements(n2) : (o3, n2) => o3.assignedNodes(n2).filter(((o4) => o4.nodeType === Node.ELEMENT_NODE));
|
|
579
|
+
var n$1;
|
|
580
|
+
null != (null === (n$1 = window.HTMLSlotElement) || void 0 === n$1 ? void 0 : n$1.prototype.assignedElements) ? (o3, n2) => o3.assignedElements(n2) : (o3, n2) => o3.assignedNodes(n2).filter(((o4) => o4.nodeType === Node.ELEMENT_NODE));
|
|
581
581
|
/**
|
|
582
582
|
* @license
|
|
583
583
|
* Copyright 2017 Google LLC
|
|
584
584
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
585
585
|
*/
|
|
586
|
-
const t = { ATTRIBUTE: 1 }, e = (t2) => (...e2) => ({ _$litDirective$: t2, values: e2 });
|
|
587
|
-
class i {
|
|
586
|
+
const t$1 = { ATTRIBUTE: 1 }, e$1 = (t2) => (...e2) => ({ _$litDirective$: t2, values: e2 });
|
|
587
|
+
let i$1 = class i {
|
|
588
588
|
constructor(t2) {
|
|
589
589
|
}
|
|
590
590
|
get _$AU() {
|
|
591
591
|
return this._$AM._$AU;
|
|
592
592
|
}
|
|
593
|
-
_$AT(t2, e2,
|
|
594
|
-
this._$Ct = t2, this._$AM = e2, this._$Ci =
|
|
593
|
+
_$AT(t2, e2, i3) {
|
|
594
|
+
this._$Ct = t2, this._$AM = e2, this._$Ci = i3;
|
|
595
595
|
}
|
|
596
596
|
_$AS(t2, e2) {
|
|
597
597
|
return this.update(t2, e2);
|
|
@@ -599,38 +599,258 @@ class i {
|
|
|
599
599
|
update(t2, e2) {
|
|
600
600
|
return this.render(...e2);
|
|
601
601
|
}
|
|
602
|
-
}
|
|
602
|
+
};
|
|
603
603
|
/**
|
|
604
604
|
* @license
|
|
605
605
|
* Copyright 2018 Google LLC
|
|
606
606
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
607
607
|
*/
|
|
608
|
-
const
|
|
609
|
-
constructor(
|
|
610
|
-
var
|
|
611
|
-
if (super(
|
|
608
|
+
const o$1 = e$1(class extends i$1 {
|
|
609
|
+
constructor(t2) {
|
|
610
|
+
var i3;
|
|
611
|
+
if (super(t2), t2.type !== t$1.ATTRIBUTE || "class" !== t2.name || (null === (i3 = t2.strings) || void 0 === i3 ? void 0 : i3.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
612
612
|
}
|
|
613
613
|
render(t2) {
|
|
614
|
-
return " " + Object.keys(t2).filter(((
|
|
614
|
+
return " " + Object.keys(t2).filter(((i3) => t2[i3])).join(" ") + " ";
|
|
615
615
|
}
|
|
616
|
-
update(
|
|
616
|
+
update(i3, [s3]) {
|
|
617
617
|
var r2, o3;
|
|
618
618
|
if (void 0 === this.it) {
|
|
619
|
-
this.it = /* @__PURE__ */ new Set(), void 0 !==
|
|
620
|
-
for (const t2 in
|
|
621
|
-
return this.render(
|
|
619
|
+
this.it = /* @__PURE__ */ new Set(), void 0 !== i3.strings && (this.nt = new Set(i3.strings.join(" ").split(/\s/).filter(((t2) => "" !== t2))));
|
|
620
|
+
for (const t2 in s3) s3[t2] && !(null === (r2 = this.nt) || void 0 === r2 ? void 0 : r2.has(t2)) && this.it.add(t2);
|
|
621
|
+
return this.render(s3);
|
|
622
622
|
}
|
|
623
|
-
const e2 =
|
|
623
|
+
const e2 = i3.element.classList;
|
|
624
624
|
this.it.forEach(((t2) => {
|
|
625
|
-
t2 in
|
|
625
|
+
t2 in s3 || (e2.remove(t2), this.it.delete(t2));
|
|
626
626
|
}));
|
|
627
|
-
for (const t2 in
|
|
628
|
-
const
|
|
629
|
-
|
|
627
|
+
for (const t2 in s3) {
|
|
628
|
+
const i4 = !!s3[t2];
|
|
629
|
+
i4 === this.it.has(t2) || (null === (o3 = this.nt) || void 0 === o3 ? void 0 : o3.has(t2)) || (i4 ? (e2.add(t2), this.it.add(t2)) : (e2.remove(t2), this.it.delete(t2)));
|
|
630
630
|
}
|
|
631
|
-
return T;
|
|
631
|
+
return T$1;
|
|
632
632
|
}
|
|
633
633
|
});
|
|
634
|
+
/**
|
|
635
|
+
* @license
|
|
636
|
+
* Copyright 2017 Google LLC
|
|
637
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
638
|
+
*/
|
|
639
|
+
const t = globalThis, i2 = t.trustedTypes, s2 = i2 ? i2.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, e = "$lit$", h = `lit$${Math.random().toFixed(9).slice(2)}$`, o2 = "?" + h, n = `<${o2}>`, r = document, l$1 = () => r.createComment(""), c = (t2) => null === t2 || "object" != typeof t2 && "function" != typeof t2, a = Array.isArray, u2 = (t2) => a(t2) || "function" == typeof t2?.[Symbol.iterator], d = "[ \n\f\r]", f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v = /-->/g, _ = />/g, m = RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^
|
|
640
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), p = /'/g, g = /"/g, $ = /^(?:script|style|textarea|title)$/i, y = (t2) => (i3, ...s3) => ({ _$litType$: t2, strings: i3, values: s3 }), b = y(2), T = Symbol.for("lit-noChange"), E = Symbol.for("lit-nothing"), A = /* @__PURE__ */ new WeakMap(), C = r.createTreeWalker(r, 129);
|
|
641
|
+
function P(t2, i3) {
|
|
642
|
+
if (!a(t2) || !t2.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
643
|
+
return void 0 !== s2 ? s2.createHTML(i3) : i3;
|
|
644
|
+
}
|
|
645
|
+
const V = (t2, i3) => {
|
|
646
|
+
const s3 = t2.length - 1, o3 = [];
|
|
647
|
+
let r2, l2 = 2 === i3 ? "<svg>" : 3 === i3 ? "<math>" : "", c2 = f;
|
|
648
|
+
for (let i4 = 0; i4 < s3; i4++) {
|
|
649
|
+
const s4 = t2[i4];
|
|
650
|
+
let a2, u3, d2 = -1, y2 = 0;
|
|
651
|
+
for (; y2 < s4.length && (c2.lastIndex = y2, u3 = c2.exec(s4), null !== u3); ) y2 = c2.lastIndex, c2 === f ? "!--" === u3[1] ? c2 = v : void 0 !== u3[1] ? c2 = _ : void 0 !== u3[2] ? ($.test(u3[2]) && (r2 = RegExp("</" + u3[2], "g")), c2 = m) : void 0 !== u3[3] && (c2 = m) : c2 === m ? ">" === u3[0] ? (c2 = r2 ?? f, d2 = -1) : void 0 === u3[1] ? d2 = -2 : (d2 = c2.lastIndex - u3[2].length, a2 = u3[1], c2 = void 0 === u3[3] ? m : '"' === u3[3] ? g : p) : c2 === g || c2 === p ? c2 = m : c2 === v || c2 === _ ? c2 = f : (c2 = m, r2 = void 0);
|
|
652
|
+
const x2 = c2 === m && t2[i4 + 1].startsWith("/>") ? " " : "";
|
|
653
|
+
l2 += c2 === f ? s4 + n : d2 >= 0 ? (o3.push(a2), s4.slice(0, d2) + e + s4.slice(d2) + h + x2) : s4 + h + (-2 === d2 ? i4 : x2);
|
|
654
|
+
}
|
|
655
|
+
return [P(t2, l2 + (t2[s3] || "<?>") + (2 === i3 ? "</svg>" : 3 === i3 ? "</math>" : "")), o3];
|
|
656
|
+
};
|
|
657
|
+
class N2 {
|
|
658
|
+
constructor({ strings: t2, _$litType$: s3 }, n2) {
|
|
659
|
+
let r2;
|
|
660
|
+
this.parts = [];
|
|
661
|
+
let c2 = 0, a2 = 0;
|
|
662
|
+
const u3 = t2.length - 1, d2 = this.parts, [f2, v2] = V(t2, s3);
|
|
663
|
+
if (this.el = N2.createElement(f2, n2), C.currentNode = this.el.content, 2 === s3 || 3 === s3) {
|
|
664
|
+
const t3 = this.el.content.firstChild;
|
|
665
|
+
t3.replaceWith(...t3.childNodes);
|
|
666
|
+
}
|
|
667
|
+
for (; null !== (r2 = C.nextNode()) && d2.length < u3; ) {
|
|
668
|
+
if (1 === r2.nodeType) {
|
|
669
|
+
if (r2.hasAttributes()) for (const t3 of r2.getAttributeNames()) if (t3.endsWith(e)) {
|
|
670
|
+
const i3 = v2[a2++], s4 = r2.getAttribute(t3).split(h), e2 = /([.?@])?(.*)/.exec(i3);
|
|
671
|
+
d2.push({ type: 1, index: c2, name: e2[2], strings: s4, ctor: "." === e2[1] ? H2 : "?" === e2[1] ? I : "@" === e2[1] ? L2 : k2 }), r2.removeAttribute(t3);
|
|
672
|
+
} else t3.startsWith(h) && (d2.push({ type: 6, index: c2 }), r2.removeAttribute(t3));
|
|
673
|
+
if ($.test(r2.tagName)) {
|
|
674
|
+
const t3 = r2.textContent.split(h), s4 = t3.length - 1;
|
|
675
|
+
if (s4 > 0) {
|
|
676
|
+
r2.textContent = i2 ? i2.emptyScript : "";
|
|
677
|
+
for (let i3 = 0; i3 < s4; i3++) r2.append(t3[i3], l$1()), C.nextNode(), d2.push({ type: 2, index: ++c2 });
|
|
678
|
+
r2.append(t3[s4], l$1());
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
} else if (8 === r2.nodeType) if (r2.data === o2) d2.push({ type: 2, index: c2 });
|
|
682
|
+
else {
|
|
683
|
+
let t3 = -1;
|
|
684
|
+
for (; -1 !== (t3 = r2.data.indexOf(h, t3 + 1)); ) d2.push({ type: 7, index: c2 }), t3 += h.length - 1;
|
|
685
|
+
}
|
|
686
|
+
c2++;
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
static createElement(t2, i3) {
|
|
690
|
+
const s3 = r.createElement("template");
|
|
691
|
+
return s3.innerHTML = t2, s3;
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
function S(t2, i3, s3 = t2, e2) {
|
|
695
|
+
if (i3 === T) return i3;
|
|
696
|
+
let h2 = void 0 !== e2 ? s3._$Co?.[e2] : s3._$Cl;
|
|
697
|
+
const o3 = c(i3) ? void 0 : i3._$litDirective$;
|
|
698
|
+
return h2?.constructor !== o3 && (h2?._$AO?.(false), void 0 === o3 ? h2 = void 0 : (h2 = new o3(t2), h2._$AT(t2, s3, e2)), void 0 !== e2 ? (s3._$Co ?? (s3._$Co = []))[e2] = h2 : s3._$Cl = h2), void 0 !== h2 && (i3 = S(t2, h2._$AS(t2, i3.values), h2, e2)), i3;
|
|
699
|
+
}
|
|
700
|
+
class M2 {
|
|
701
|
+
constructor(t2, i3) {
|
|
702
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t2, this._$AM = i3;
|
|
703
|
+
}
|
|
704
|
+
get parentNode() {
|
|
705
|
+
return this._$AM.parentNode;
|
|
706
|
+
}
|
|
707
|
+
get _$AU() {
|
|
708
|
+
return this._$AM._$AU;
|
|
709
|
+
}
|
|
710
|
+
u(t2) {
|
|
711
|
+
const { el: { content: i3 }, parts: s3 } = this._$AD, e2 = (t2?.creationScope ?? r).importNode(i3, true);
|
|
712
|
+
C.currentNode = e2;
|
|
713
|
+
let h2 = C.nextNode(), o3 = 0, n2 = 0, l2 = s3[0];
|
|
714
|
+
for (; void 0 !== l2; ) {
|
|
715
|
+
if (o3 === l2.index) {
|
|
716
|
+
let i4;
|
|
717
|
+
2 === l2.type ? i4 = new R2(h2, h2.nextSibling, this, t2) : 1 === l2.type ? i4 = new l2.ctor(h2, l2.name, l2.strings, this, t2) : 6 === l2.type && (i4 = new z2(h2, this, t2)), this._$AV.push(i4), l2 = s3[++n2];
|
|
718
|
+
}
|
|
719
|
+
o3 !== l2?.index && (h2 = C.nextNode(), o3++);
|
|
720
|
+
}
|
|
721
|
+
return C.currentNode = r, e2;
|
|
722
|
+
}
|
|
723
|
+
p(t2) {
|
|
724
|
+
let i3 = 0;
|
|
725
|
+
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++;
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
class R2 {
|
|
729
|
+
get _$AU() {
|
|
730
|
+
return this._$AM?._$AU ?? this._$Cv;
|
|
731
|
+
}
|
|
732
|
+
constructor(t2, i3, s3, e2) {
|
|
733
|
+
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t2, this._$AB = i3, this._$AM = s3, this.options = e2, this._$Cv = e2?.isConnected ?? true;
|
|
734
|
+
}
|
|
735
|
+
get parentNode() {
|
|
736
|
+
let t2 = this._$AA.parentNode;
|
|
737
|
+
const i3 = this._$AM;
|
|
738
|
+
return void 0 !== i3 && 11 === t2?.nodeType && (t2 = i3.parentNode), t2;
|
|
739
|
+
}
|
|
740
|
+
get startNode() {
|
|
741
|
+
return this._$AA;
|
|
742
|
+
}
|
|
743
|
+
get endNode() {
|
|
744
|
+
return this._$AB;
|
|
745
|
+
}
|
|
746
|
+
_$AI(t2, i3 = this) {
|
|
747
|
+
t2 = S(this, t2, i3), c(t2) ? t2 === E || null == t2 || "" === t2 ? (this._$AH !== E && this._$AR(), this._$AH = E) : t2 !== this._$AH && t2 !== T && this._(t2) : void 0 !== t2._$litType$ ? this.$(t2) : void 0 !== t2.nodeType ? this.T(t2) : u2(t2) ? this.k(t2) : this._(t2);
|
|
748
|
+
}
|
|
749
|
+
O(t2) {
|
|
750
|
+
return this._$AA.parentNode.insertBefore(t2, this._$AB);
|
|
751
|
+
}
|
|
752
|
+
T(t2) {
|
|
753
|
+
this._$AH !== t2 && (this._$AR(), this._$AH = this.O(t2));
|
|
754
|
+
}
|
|
755
|
+
_(t2) {
|
|
756
|
+
this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t2 : this.T(r.createTextNode(t2)), this._$AH = t2;
|
|
757
|
+
}
|
|
758
|
+
$(t2) {
|
|
759
|
+
const { values: i3, _$litType$: s3 } = t2, e2 = "number" == typeof s3 ? this._$AC(t2) : (void 0 === s3.el && (s3.el = N2.createElement(P(s3.h, s3.h[0]), this.options)), s3);
|
|
760
|
+
if (this._$AH?._$AD === e2) this._$AH.p(i3);
|
|
761
|
+
else {
|
|
762
|
+
const t3 = new M2(e2, this), s4 = t3.u(this.options);
|
|
763
|
+
t3.p(i3), this.T(s4), this._$AH = t3;
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
_$AC(t2) {
|
|
767
|
+
let i3 = A.get(t2.strings);
|
|
768
|
+
return void 0 === i3 && A.set(t2.strings, i3 = new N2(t2)), i3;
|
|
769
|
+
}
|
|
770
|
+
k(t2) {
|
|
771
|
+
a(this._$AH) || (this._$AH = [], this._$AR());
|
|
772
|
+
const i3 = this._$AH;
|
|
773
|
+
let s3, e2 = 0;
|
|
774
|
+
for (const h2 of t2) e2 === i3.length ? i3.push(s3 = new R2(this.O(l$1()), this.O(l$1()), this, this.options)) : s3 = i3[e2], s3._$AI(h2), e2++;
|
|
775
|
+
e2 < i3.length && (this._$AR(s3 && s3._$AB.nextSibling, e2), i3.length = e2);
|
|
776
|
+
}
|
|
777
|
+
_$AR(t2 = this._$AA.nextSibling, i3) {
|
|
778
|
+
for (this._$AP?.(false, true, i3); t2 !== this._$AB; ) {
|
|
779
|
+
const i4 = t2.nextSibling;
|
|
780
|
+
t2.remove(), t2 = i4;
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
setConnected(t2) {
|
|
784
|
+
void 0 === this._$AM && (this._$Cv = t2, this._$AP?.(t2));
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
class k2 {
|
|
788
|
+
get tagName() {
|
|
789
|
+
return this.element.tagName;
|
|
790
|
+
}
|
|
791
|
+
get _$AU() {
|
|
792
|
+
return this._$AM._$AU;
|
|
793
|
+
}
|
|
794
|
+
constructor(t2, i3, s3, e2, h2) {
|
|
795
|
+
this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t2, this.name = i3, this._$AM = e2, this.options = h2, s3.length > 2 || "" !== s3[0] || "" !== s3[1] ? (this._$AH = Array(s3.length - 1).fill(new String()), this.strings = s3) : this._$AH = E;
|
|
796
|
+
}
|
|
797
|
+
_$AI(t2, i3 = this, s3, e2) {
|
|
798
|
+
const h2 = this.strings;
|
|
799
|
+
let o3 = false;
|
|
800
|
+
if (void 0 === h2) t2 = S(this, t2, i3, 0), o3 = !c(t2) || t2 !== this._$AH && t2 !== T, o3 && (this._$AH = t2);
|
|
801
|
+
else {
|
|
802
|
+
const e3 = t2;
|
|
803
|
+
let n2, r2;
|
|
804
|
+
for (t2 = h2[0], n2 = 0; n2 < h2.length - 1; n2++) r2 = S(this, e3[s3 + n2], i3, n2), r2 === T && (r2 = this._$AH[n2]), o3 || (o3 = !c(r2) || r2 !== this._$AH[n2]), r2 === E ? t2 = E : t2 !== E && (t2 += (r2 ?? "") + h2[n2 + 1]), this._$AH[n2] = r2;
|
|
805
|
+
}
|
|
806
|
+
o3 && !e2 && this.j(t2);
|
|
807
|
+
}
|
|
808
|
+
j(t2) {
|
|
809
|
+
t2 === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t2 ?? "");
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
class H2 extends k2 {
|
|
813
|
+
constructor() {
|
|
814
|
+
super(...arguments), this.type = 3;
|
|
815
|
+
}
|
|
816
|
+
j(t2) {
|
|
817
|
+
this.element[this.name] = t2 === E ? void 0 : t2;
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
class I extends k2 {
|
|
821
|
+
constructor() {
|
|
822
|
+
super(...arguments), this.type = 4;
|
|
823
|
+
}
|
|
824
|
+
j(t2) {
|
|
825
|
+
this.element.toggleAttribute(this.name, !!t2 && t2 !== E);
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
class L2 extends k2 {
|
|
829
|
+
constructor(t2, i3, s3, e2, h2) {
|
|
830
|
+
super(t2, i3, s3, e2, h2), this.type = 5;
|
|
831
|
+
}
|
|
832
|
+
_$AI(t2, i3 = this) {
|
|
833
|
+
if ((t2 = S(this, t2, i3, 0) ?? E) === T) return;
|
|
834
|
+
const s3 = this._$AH, e2 = t2 === E && s3 !== E || t2.capture !== s3.capture || t2.once !== s3.once || t2.passive !== s3.passive, h2 = t2 !== E && (s3 === E || e2);
|
|
835
|
+
e2 && this.element.removeEventListener(this.name, this, s3), h2 && this.element.addEventListener(this.name, this, t2), this._$AH = t2;
|
|
836
|
+
}
|
|
837
|
+
handleEvent(t2) {
|
|
838
|
+
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t2) : this._$AH.handleEvent(t2);
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
class z2 {
|
|
842
|
+
constructor(t2, i3, s3) {
|
|
843
|
+
this.element = t2, this.type = 6, this._$AN = void 0, this._$AM = i3, this.options = s3;
|
|
844
|
+
}
|
|
845
|
+
get _$AU() {
|
|
846
|
+
return this._$AM._$AU;
|
|
847
|
+
}
|
|
848
|
+
_$AI(t2) {
|
|
849
|
+
S(this, t2);
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
const j = t.litHtmlPolyfillSupport;
|
|
853
|
+
j?.(N2, R2), (t.litHtmlVersions ?? (t.litHtmlVersions = [])).push("3.3.1");
|
|
634
854
|
function addUniqueItem(array, item) {
|
|
635
855
|
array.indexOf(item) === -1 && array.push(item);
|
|
636
856
|
}
|
|
@@ -648,8 +868,8 @@ const wrap = (min, max, v2) => {
|
|
|
648
868
|
const rangeSize = max - min;
|
|
649
869
|
return ((v2 - min) % rangeSize + rangeSize) % rangeSize + min;
|
|
650
870
|
};
|
|
651
|
-
function getEasingForSegment(easing,
|
|
652
|
-
return isEasingList(easing) ? easing[wrap(0, easing.length,
|
|
871
|
+
function getEasingForSegment(easing, i3) {
|
|
872
|
+
return isEasingList(easing) ? easing[wrap(0, easing.length, i3)] : easing;
|
|
653
873
|
}
|
|
654
874
|
const mix = (min, max, progress2) => -progress2 * min + progress2 * max + min;
|
|
655
875
|
const noop = () => {
|
|
@@ -658,8 +878,8 @@ const noopReturn = (v2) => v2;
|
|
|
658
878
|
const progress = (min, max, value) => max - min === 0 ? 1 : (value - min) / (max - min);
|
|
659
879
|
function fillOffset(offset, remaining) {
|
|
660
880
|
const min = offset[offset.length - 1];
|
|
661
|
-
for (let
|
|
662
|
-
const offsetProgress = progress(0, remaining,
|
|
881
|
+
for (let i3 = 1; i3 <= remaining; i3++) {
|
|
882
|
+
const offsetProgress = progress(0, remaining, i3);
|
|
663
883
|
offset.push(mix(min, 1, offsetProgress));
|
|
664
884
|
}
|
|
665
885
|
}
|
|
@@ -673,15 +893,15 @@ function interpolate(output, input = defaultOffset(output.length), easing = noop
|
|
|
673
893
|
const remainder = length - input.length;
|
|
674
894
|
remainder > 0 && fillOffset(input, remainder);
|
|
675
895
|
return (t2) => {
|
|
676
|
-
let
|
|
677
|
-
for (;
|
|
678
|
-
if (t2 < input[
|
|
896
|
+
let i3 = 0;
|
|
897
|
+
for (; i3 < length - 2; i3++) {
|
|
898
|
+
if (t2 < input[i3 + 1])
|
|
679
899
|
break;
|
|
680
900
|
}
|
|
681
|
-
let progressInRange = clamp(0, 1, progress(input[
|
|
682
|
-
const segmentEasing = getEasingForSegment(easing,
|
|
901
|
+
let progressInRange = clamp(0, 1, progress(input[i3], input[i3 + 1], t2));
|
|
902
|
+
const segmentEasing = getEasingForSegment(easing, i3);
|
|
683
903
|
progressInRange = segmentEasing(progressInRange);
|
|
684
|
-
return mix(output[
|
|
904
|
+
return mix(output[i3], output[i3 + 1], progressInRange);
|
|
685
905
|
};
|
|
686
906
|
}
|
|
687
907
|
const isCubicBezier = (easing) => Array.isArray(easing) && isNumber(easing[0]);
|
|
@@ -698,7 +918,7 @@ const subdivisionMaxIterations = 12;
|
|
|
698
918
|
function binarySubdivide(x2, lowerBound, upperBound, mX1, mX2) {
|
|
699
919
|
let currentX;
|
|
700
920
|
let currentT;
|
|
701
|
-
let
|
|
921
|
+
let i3 = 0;
|
|
702
922
|
do {
|
|
703
923
|
currentT = lowerBound + (upperBound - lowerBound) / 2;
|
|
704
924
|
currentX = calcBezier(currentT, mX1, mX2) - x2;
|
|
@@ -707,7 +927,7 @@ function binarySubdivide(x2, lowerBound, upperBound, mX1, mX2) {
|
|
|
707
927
|
} else {
|
|
708
928
|
lowerBound = currentT;
|
|
709
929
|
}
|
|
710
|
-
} while (Math.abs(currentX) > subdivisionPrecision && ++
|
|
930
|
+
} while (Math.abs(currentX) > subdivisionPrecision && ++i3 < subdivisionMaxIterations);
|
|
711
931
|
return currentT;
|
|
712
932
|
}
|
|
713
933
|
function cubicBezier(mX1, mY1, mX2, mY2) {
|
|
@@ -995,8 +1215,8 @@ const resolution = 0.015;
|
|
|
995
1215
|
const generateLinearEasingPoints = (easing, duration) => {
|
|
996
1216
|
let points = "";
|
|
997
1217
|
const numPoints = Math.round(duration / resolution);
|
|
998
|
-
for (let
|
|
999
|
-
points += easing(progress(0, numPoints - 1,
|
|
1218
|
+
for (let i3 = 0; i3 < numPoints; i3++) {
|
|
1219
|
+
points += easing(progress(0, numPoints - 1, i3)) + ", ";
|
|
1000
1220
|
}
|
|
1001
1221
|
return points.substring(0, points.length - 2);
|
|
1002
1222
|
};
|
|
@@ -1009,9 +1229,9 @@ const convertEasing = (easing, duration) => {
|
|
|
1009
1229
|
};
|
|
1010
1230
|
const cubicBezierAsString = ([a2, b2, c2, d2]) => `cubic-bezier(${a2}, ${b2}, ${c2}, ${d2})`;
|
|
1011
1231
|
function hydrateKeyframes(keyframes, readInitialValue) {
|
|
1012
|
-
for (let
|
|
1013
|
-
if (keyframes[
|
|
1014
|
-
keyframes[
|
|
1232
|
+
for (let i3 = 0; i3 < keyframes.length; i3++) {
|
|
1233
|
+
if (keyframes[i3] === null) {
|
|
1234
|
+
keyframes[i3] = i3 ? keyframes[i3 - 1] : readInitialValue();
|
|
1015
1235
|
}
|
|
1016
1236
|
}
|
|
1017
1237
|
return keyframes;
|
|
@@ -1232,8 +1452,8 @@ const controls = {
|
|
|
1232
1452
|
value = time.ms(value);
|
|
1233
1453
|
// Fall-through
|
|
1234
1454
|
case "playbackRate":
|
|
1235
|
-
for (let
|
|
1236
|
-
target.animations[
|
|
1455
|
+
for (let i3 = 0; i3 < target.animations.length; i3++) {
|
|
1456
|
+
target.animations[i3][key] = value;
|
|
1237
1457
|
}
|
|
1238
1458
|
return true;
|
|
1239
1459
|
}
|
|
@@ -1241,19 +1461,19 @@ const controls = {
|
|
|
1241
1461
|
}
|
|
1242
1462
|
};
|
|
1243
1463
|
const selectFinished = (animation) => animation.finished;
|
|
1244
|
-
function resolveOption(option,
|
|
1245
|
-
return isFunction(option) ? option(
|
|
1464
|
+
function resolveOption(option, i3, total) {
|
|
1465
|
+
return isFunction(option) ? option(i3, total) : option;
|
|
1246
1466
|
}
|
|
1247
1467
|
function createAnimate(AnimatePolyfill) {
|
|
1248
1468
|
return function animate2(elements, keyframes, options = {}) {
|
|
1249
1469
|
elements = resolveElements(elements);
|
|
1250
1470
|
const numElements = elements.length;
|
|
1251
1471
|
const animationFactories = [];
|
|
1252
|
-
for (let
|
|
1253
|
-
const element = elements[
|
|
1472
|
+
for (let i3 = 0; i3 < numElements; i3++) {
|
|
1473
|
+
const element = elements[i3];
|
|
1254
1474
|
for (const key in keyframes) {
|
|
1255
1475
|
const valueOptions = getOptions(options, key);
|
|
1256
|
-
valueOptions.delay = resolveOption(valueOptions.delay,
|
|
1476
|
+
valueOptions.delay = resolveOption(valueOptions.delay, i3, numElements);
|
|
1257
1477
|
const animation = animateStyle(element, key, keyframes[key], valueOptions, AnimatePolyfill);
|
|
1258
1478
|
animationFactories.push(animation);
|
|
1259
1479
|
}
|
|
@@ -1294,7 +1514,7 @@ function animate(target, keyframesOrOptions, options) {
|
|
|
1294
1514
|
* Copyright 2018 Google LLC
|
|
1295
1515
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1296
1516
|
*/
|
|
1297
|
-
const l = (l2) => null != l2 ? l2 : A;
|
|
1517
|
+
const l = (l2) => null != l2 ? l2 : A$1;
|
|
1298
1518
|
var browser = {};
|
|
1299
1519
|
var canPromise;
|
|
1300
1520
|
var hasRequiredCanPromise;
|
|
@@ -1450,8 +1670,8 @@ function requireBitBuffer() {
|
|
|
1450
1670
|
return (this.buffer[bufIndex] >>> 7 - index2 % 8 & 1) === 1;
|
|
1451
1671
|
},
|
|
1452
1672
|
put: function(num, length) {
|
|
1453
|
-
for (let
|
|
1454
|
-
this.putBit((num >>> length -
|
|
1673
|
+
for (let i3 = 0; i3 < length; i3++) {
|
|
1674
|
+
this.putBit((num >>> length - i3 - 1 & 1) === 1);
|
|
1455
1675
|
}
|
|
1456
1676
|
},
|
|
1457
1677
|
getLengthInBits: function() {
|
|
@@ -1514,8 +1734,8 @@ function requireAlignmentPattern() {
|
|
|
1514
1734
|
const size = getSymbolSize(version2);
|
|
1515
1735
|
const intervals = size === 145 ? 26 : Math.ceil((size - 13) / (2 * posCount - 2)) * 2;
|
|
1516
1736
|
const positions = [size - 7];
|
|
1517
|
-
for (let
|
|
1518
|
-
positions[
|
|
1737
|
+
for (let i3 = 1; i3 < posCount - 1; i3++) {
|
|
1738
|
+
positions[i3] = positions[i3 - 1] - intervals;
|
|
1519
1739
|
}
|
|
1520
1740
|
positions.push(6);
|
|
1521
1741
|
return positions.reverse();
|
|
@@ -1524,14 +1744,14 @@ function requireAlignmentPattern() {
|
|
|
1524
1744
|
const coords = [];
|
|
1525
1745
|
const pos = exports2.getRowColCoords(version2);
|
|
1526
1746
|
const posLength = pos.length;
|
|
1527
|
-
for (let
|
|
1528
|
-
for (let
|
|
1529
|
-
if (
|
|
1530
|
-
|
|
1531
|
-
|
|
1747
|
+
for (let i3 = 0; i3 < posLength; i3++) {
|
|
1748
|
+
for (let j2 = 0; j2 < posLength; j2++) {
|
|
1749
|
+
if (i3 === 0 && j2 === 0 || // top-left
|
|
1750
|
+
i3 === 0 && j2 === posLength - 1 || // bottom-left
|
|
1751
|
+
i3 === posLength - 1 && j2 === 0) {
|
|
1532
1752
|
continue;
|
|
1533
1753
|
}
|
|
1534
|
-
coords.push([pos[
|
|
1754
|
+
coords.push([pos[i3], pos[j2]]);
|
|
1535
1755
|
}
|
|
1536
1756
|
}
|
|
1537
1757
|
return coords;
|
|
@@ -1650,28 +1870,28 @@ function requireMaskPattern() {
|
|
|
1650
1870
|
exports2.getPenaltyN4 = function getPenaltyN4(data2) {
|
|
1651
1871
|
let darkCount = 0;
|
|
1652
1872
|
const modulesCount = data2.data.length;
|
|
1653
|
-
for (let
|
|
1654
|
-
const
|
|
1655
|
-
return
|
|
1873
|
+
for (let i3 = 0; i3 < modulesCount; i3++) darkCount += data2.data[i3];
|
|
1874
|
+
const k3 = Math.abs(Math.ceil(darkCount * 100 / modulesCount / 5) - 10);
|
|
1875
|
+
return k3 * PenaltyScores.N4;
|
|
1656
1876
|
};
|
|
1657
|
-
function getMaskAt(maskPattern2,
|
|
1877
|
+
function getMaskAt(maskPattern2, i3, j2) {
|
|
1658
1878
|
switch (maskPattern2) {
|
|
1659
1879
|
case exports2.Patterns.PATTERN000:
|
|
1660
|
-
return (
|
|
1880
|
+
return (i3 + j2) % 2 === 0;
|
|
1661
1881
|
case exports2.Patterns.PATTERN001:
|
|
1662
|
-
return
|
|
1882
|
+
return i3 % 2 === 0;
|
|
1663
1883
|
case exports2.Patterns.PATTERN010:
|
|
1664
|
-
return
|
|
1884
|
+
return j2 % 3 === 0;
|
|
1665
1885
|
case exports2.Patterns.PATTERN011:
|
|
1666
|
-
return (
|
|
1886
|
+
return (i3 + j2) % 3 === 0;
|
|
1667
1887
|
case exports2.Patterns.PATTERN100:
|
|
1668
|
-
return (Math.floor(
|
|
1888
|
+
return (Math.floor(i3 / 2) + Math.floor(j2 / 3)) % 2 === 0;
|
|
1669
1889
|
case exports2.Patterns.PATTERN101:
|
|
1670
|
-
return
|
|
1890
|
+
return i3 * j2 % 2 + i3 * j2 % 3 === 0;
|
|
1671
1891
|
case exports2.Patterns.PATTERN110:
|
|
1672
|
-
return (
|
|
1892
|
+
return (i3 * j2 % 2 + i3 * j2 % 3) % 2 === 0;
|
|
1673
1893
|
case exports2.Patterns.PATTERN111:
|
|
1674
|
-
return (
|
|
1894
|
+
return (i3 * j2 % 3 + (i3 + j2) % 2) % 2 === 0;
|
|
1675
1895
|
default:
|
|
1676
1896
|
throw new Error("bad maskPattern:" + maskPattern2);
|
|
1677
1897
|
}
|
|
@@ -2076,16 +2296,16 @@ function requireGaloisField() {
|
|
|
2076
2296
|
const LOG_TABLE = new Uint8Array(256);
|
|
2077
2297
|
(function initTables() {
|
|
2078
2298
|
let x2 = 1;
|
|
2079
|
-
for (let
|
|
2080
|
-
EXP_TABLE[
|
|
2081
|
-
LOG_TABLE[x2] =
|
|
2299
|
+
for (let i3 = 0; i3 < 255; i3++) {
|
|
2300
|
+
EXP_TABLE[i3] = x2;
|
|
2301
|
+
LOG_TABLE[x2] = i3;
|
|
2082
2302
|
x2 <<= 1;
|
|
2083
2303
|
if (x2 & 256) {
|
|
2084
2304
|
x2 ^= 285;
|
|
2085
2305
|
}
|
|
2086
2306
|
}
|
|
2087
|
-
for (let
|
|
2088
|
-
EXP_TABLE[
|
|
2307
|
+
for (let i3 = 255; i3 < 512; i3++) {
|
|
2308
|
+
EXP_TABLE[i3] = EXP_TABLE[i3 - 255];
|
|
2089
2309
|
}
|
|
2090
2310
|
})();
|
|
2091
2311
|
galoisField.log = function log(n2) {
|
|
@@ -2109,9 +2329,9 @@ function requirePolynomial() {
|
|
|
2109
2329
|
const GF = requireGaloisField();
|
|
2110
2330
|
exports2.mul = function mul(p1, p2) {
|
|
2111
2331
|
const coeff = new Uint8Array(p1.length + p2.length - 1);
|
|
2112
|
-
for (let
|
|
2113
|
-
for (let
|
|
2114
|
-
coeff[
|
|
2332
|
+
for (let i3 = 0; i3 < p1.length; i3++) {
|
|
2333
|
+
for (let j2 = 0; j2 < p2.length; j2++) {
|
|
2334
|
+
coeff[i3 + j2] ^= GF.mul(p1[i3], p2[j2]);
|
|
2115
2335
|
}
|
|
2116
2336
|
}
|
|
2117
2337
|
return coeff;
|
|
@@ -2120,8 +2340,8 @@ function requirePolynomial() {
|
|
|
2120
2340
|
let result = new Uint8Array(divident);
|
|
2121
2341
|
while (result.length - divisor.length >= 0) {
|
|
2122
2342
|
const coeff = result[0];
|
|
2123
|
-
for (let
|
|
2124
|
-
result[
|
|
2343
|
+
for (let i3 = 0; i3 < divisor.length; i3++) {
|
|
2344
|
+
result[i3] ^= GF.mul(divisor[i3], coeff);
|
|
2125
2345
|
}
|
|
2126
2346
|
let offset = 0;
|
|
2127
2347
|
while (offset < result.length && result[offset] === 0) offset++;
|
|
@@ -2131,8 +2351,8 @@ function requirePolynomial() {
|
|
|
2131
2351
|
};
|
|
2132
2352
|
exports2.generateECPolynomial = function generateECPolynomial(degree) {
|
|
2133
2353
|
let poly = new Uint8Array([1]);
|
|
2134
|
-
for (let
|
|
2135
|
-
poly = exports2.mul(poly, new Uint8Array([1, GF.exp(
|
|
2354
|
+
for (let i3 = 0; i3 < degree; i3++) {
|
|
2355
|
+
poly = exports2.mul(poly, new Uint8Array([1, GF.exp(i3)]));
|
|
2136
2356
|
}
|
|
2137
2357
|
return poly;
|
|
2138
2358
|
};
|
|
@@ -2433,15 +2653,15 @@ function requireNumericData() {
|
|
|
2433
2653
|
return NumericData.getBitsLength(this.data.length);
|
|
2434
2654
|
};
|
|
2435
2655
|
NumericData.prototype.write = function write(bitBuffer2) {
|
|
2436
|
-
let
|
|
2437
|
-
for (
|
|
2438
|
-
group = this.data.substr(
|
|
2656
|
+
let i3, group, value;
|
|
2657
|
+
for (i3 = 0; i3 + 3 <= this.data.length; i3 += 3) {
|
|
2658
|
+
group = this.data.substr(i3, 3);
|
|
2439
2659
|
value = parseInt(group, 10);
|
|
2440
2660
|
bitBuffer2.put(value, 10);
|
|
2441
2661
|
}
|
|
2442
|
-
const remainingNum = this.data.length -
|
|
2662
|
+
const remainingNum = this.data.length - i3;
|
|
2443
2663
|
if (remainingNum > 0) {
|
|
2444
|
-
group = this.data.substr(
|
|
2664
|
+
group = this.data.substr(i3);
|
|
2445
2665
|
value = parseInt(group, 10);
|
|
2446
2666
|
bitBuffer2.put(value, remainingNum * 3 + 1);
|
|
2447
2667
|
}
|
|
@@ -2516,14 +2736,14 @@ function requireAlphanumericData() {
|
|
|
2516
2736
|
return AlphanumericData.getBitsLength(this.data.length);
|
|
2517
2737
|
};
|
|
2518
2738
|
AlphanumericData.prototype.write = function write(bitBuffer2) {
|
|
2519
|
-
let
|
|
2520
|
-
for (
|
|
2521
|
-
let value = ALPHA_NUM_CHARS.indexOf(this.data[
|
|
2522
|
-
value += ALPHA_NUM_CHARS.indexOf(this.data[
|
|
2739
|
+
let i3;
|
|
2740
|
+
for (i3 = 0; i3 + 2 <= this.data.length; i3 += 2) {
|
|
2741
|
+
let value = ALPHA_NUM_CHARS.indexOf(this.data[i3]) * 45;
|
|
2742
|
+
value += ALPHA_NUM_CHARS.indexOf(this.data[i3 + 1]);
|
|
2523
2743
|
bitBuffer2.put(value, 11);
|
|
2524
2744
|
}
|
|
2525
2745
|
if (this.data.length % 2) {
|
|
2526
|
-
bitBuffer2.put(ALPHA_NUM_CHARS.indexOf(this.data[
|
|
2746
|
+
bitBuffer2.put(ALPHA_NUM_CHARS.indexOf(this.data[i3]), 6);
|
|
2527
2747
|
}
|
|
2528
2748
|
};
|
|
2529
2749
|
alphanumericData = AlphanumericData;
|
|
@@ -2598,8 +2818,8 @@ function requireByteData() {
|
|
|
2598
2818
|
return ByteData.getBitsLength(this.data.length);
|
|
2599
2819
|
};
|
|
2600
2820
|
ByteData.prototype.write = function(bitBuffer2) {
|
|
2601
|
-
for (let
|
|
2602
|
-
bitBuffer2.put(this.data[
|
|
2821
|
+
for (let i3 = 0, l2 = this.data.length; i3 < l2; i3++) {
|
|
2822
|
+
bitBuffer2.put(this.data[i3], 8);
|
|
2603
2823
|
}
|
|
2604
2824
|
};
|
|
2605
2825
|
byteData = ByteData;
|
|
@@ -2626,16 +2846,16 @@ function requireKanjiData() {
|
|
|
2626
2846
|
return KanjiData.getBitsLength(this.data.length);
|
|
2627
2847
|
};
|
|
2628
2848
|
KanjiData.prototype.write = function(bitBuffer2) {
|
|
2629
|
-
let
|
|
2630
|
-
for (
|
|
2631
|
-
let value = Utils.toSJIS(this.data[
|
|
2849
|
+
let i3;
|
|
2850
|
+
for (i3 = 0; i3 < this.data.length; i3++) {
|
|
2851
|
+
let value = Utils.toSJIS(this.data[i3]);
|
|
2632
2852
|
if (value >= 33088 && value <= 40956) {
|
|
2633
2853
|
value -= 33088;
|
|
2634
2854
|
} else if (value >= 57408 && value <= 60351) {
|
|
2635
2855
|
value -= 49472;
|
|
2636
2856
|
} else {
|
|
2637
2857
|
throw new Error(
|
|
2638
|
-
"Invalid SJIS character: " + this.data[
|
|
2858
|
+
"Invalid SJIS character: " + this.data[i3] + "\nMake sure your charset is UTF-8"
|
|
2639
2859
|
);
|
|
2640
2860
|
}
|
|
2641
2861
|
value = (value >>> 8 & 255) * 192 + (value & 255);
|
|
@@ -2652,12 +2872,12 @@ function requireDijkstra() {
|
|
|
2652
2872
|
hasRequiredDijkstra = 1;
|
|
2653
2873
|
(function(module2) {
|
|
2654
2874
|
var dijkstra2 = {
|
|
2655
|
-
single_source_shortest_paths: function(graph,
|
|
2875
|
+
single_source_shortest_paths: function(graph, s3, d2) {
|
|
2656
2876
|
var predecessors = {};
|
|
2657
2877
|
var costs = {};
|
|
2658
|
-
costs[
|
|
2878
|
+
costs[s3] = 0;
|
|
2659
2879
|
var open = dijkstra2.PriorityQueue.make();
|
|
2660
|
-
open.push(
|
|
2880
|
+
open.push(s3, 0);
|
|
2661
2881
|
var closest, u3, v2, cost_of_s_to_u, adjacent_nodes, cost_of_e, cost_of_s_to_u_plus_cost_of_e, cost_of_s_to_v, first_visit;
|
|
2662
2882
|
while (!open.empty()) {
|
|
2663
2883
|
closest = open.pop();
|
|
@@ -2679,7 +2899,7 @@ function requireDijkstra() {
|
|
|
2679
2899
|
}
|
|
2680
2900
|
}
|
|
2681
2901
|
if (typeof d2 !== "undefined" && typeof costs[d2] === "undefined") {
|
|
2682
|
-
var msg = ["Could not find a path from ",
|
|
2902
|
+
var msg = ["Could not find a path from ", s3, " to ", d2, "."].join("");
|
|
2683
2903
|
throw new Error(msg);
|
|
2684
2904
|
}
|
|
2685
2905
|
return predecessors;
|
|
@@ -2695,8 +2915,8 @@ function requireDijkstra() {
|
|
|
2695
2915
|
nodes.reverse();
|
|
2696
2916
|
return nodes;
|
|
2697
2917
|
},
|
|
2698
|
-
find_path: function(graph,
|
|
2699
|
-
var predecessors = dijkstra2.single_source_shortest_paths(graph,
|
|
2918
|
+
find_path: function(graph, s3, d2) {
|
|
2919
|
+
var predecessors = dijkstra2.single_source_shortest_paths(graph, s3, d2);
|
|
2700
2920
|
return dijkstra2.extract_shortest_path_from_predecessor_list(
|
|
2701
2921
|
predecessors,
|
|
2702
2922
|
d2
|
|
@@ -2789,8 +3009,8 @@ function requireSegments() {
|
|
|
2789
3009
|
kanjiSegs = [];
|
|
2790
3010
|
}
|
|
2791
3011
|
const segs = numSegs.concat(alphaNumSegs, byteSegs, kanjiSegs);
|
|
2792
|
-
return segs.sort(function(s1,
|
|
2793
|
-
return s1.index -
|
|
3012
|
+
return segs.sort(function(s1, s22) {
|
|
3013
|
+
return s1.index - s22.index;
|
|
2794
3014
|
}).map(function(obj) {
|
|
2795
3015
|
return {
|
|
2796
3016
|
data: obj.data,
|
|
@@ -2824,8 +3044,8 @@ function requireSegments() {
|
|
|
2824
3044
|
}
|
|
2825
3045
|
function buildNodes(segs) {
|
|
2826
3046
|
const nodes = [];
|
|
2827
|
-
for (let
|
|
2828
|
-
const seg = segs[
|
|
3047
|
+
for (let i3 = 0; i3 < segs.length; i3++) {
|
|
3048
|
+
const seg = segs[i3];
|
|
2829
3049
|
switch (seg.mode) {
|
|
2830
3050
|
case Mode.NUMERIC:
|
|
2831
3051
|
nodes.push([
|
|
@@ -2858,12 +3078,12 @@ function requireSegments() {
|
|
|
2858
3078
|
const table = {};
|
|
2859
3079
|
const graph = { start: {} };
|
|
2860
3080
|
let prevNodeIds = ["start"];
|
|
2861
|
-
for (let
|
|
2862
|
-
const nodeGroup = nodes[
|
|
3081
|
+
for (let i3 = 0; i3 < nodes.length; i3++) {
|
|
3082
|
+
const nodeGroup = nodes[i3];
|
|
2863
3083
|
const currentNodeIds = [];
|
|
2864
|
-
for (let
|
|
2865
|
-
const node = nodeGroup[
|
|
2866
|
-
const key = "" +
|
|
3084
|
+
for (let j2 = 0; j2 < nodeGroup.length; j2++) {
|
|
3085
|
+
const node = nodeGroup[j2];
|
|
3086
|
+
const key = "" + i3 + j2;
|
|
2867
3087
|
currentNodeIds.push(key);
|
|
2868
3088
|
table[key] = { node, lastCount: 0 };
|
|
2869
3089
|
graph[key] = {};
|
|
@@ -2922,8 +3142,8 @@ function requireSegments() {
|
|
|
2922
3142
|
const graph = buildGraph(nodes, version2);
|
|
2923
3143
|
const path = dijkstra2.find_path(graph.map, "start", "end");
|
|
2924
3144
|
const optimizedSegs = [];
|
|
2925
|
-
for (let
|
|
2926
|
-
optimizedSegs.push(graph.table[path[
|
|
3145
|
+
for (let i3 = 1; i3 < path.length - 1; i3++) {
|
|
3146
|
+
optimizedSegs.push(graph.table[path[i3]].node);
|
|
2927
3147
|
}
|
|
2928
3148
|
return exports2.fromArray(mergeSegments(optimizedSegs));
|
|
2929
3149
|
};
|
|
@@ -2955,9 +3175,9 @@ function requireQrcode() {
|
|
|
2955
3175
|
function setupFinderPattern(matrix, version2) {
|
|
2956
3176
|
const size = matrix.size;
|
|
2957
3177
|
const pos = FinderPattern.getPositions(version2);
|
|
2958
|
-
for (let
|
|
2959
|
-
const row = pos[
|
|
2960
|
-
const col = pos[
|
|
3178
|
+
for (let i3 = 0; i3 < pos.length; i3++) {
|
|
3179
|
+
const row = pos[i3][0];
|
|
3180
|
+
const col = pos[i3][1];
|
|
2961
3181
|
for (let r2 = -1; r2 <= 7; r2++) {
|
|
2962
3182
|
if (row + r2 <= -1 || size <= row + r2) continue;
|
|
2963
3183
|
for (let c2 = -1; c2 <= 7; c2++) {
|
|
@@ -2981,9 +3201,9 @@ function requireQrcode() {
|
|
|
2981
3201
|
}
|
|
2982
3202
|
function setupAlignmentPattern(matrix, version2) {
|
|
2983
3203
|
const pos = AlignmentPattern.getPositions(version2);
|
|
2984
|
-
for (let
|
|
2985
|
-
const row = pos[
|
|
2986
|
-
const col = pos[
|
|
3204
|
+
for (let i3 = 0; i3 < pos.length; i3++) {
|
|
3205
|
+
const row = pos[i3][0];
|
|
3206
|
+
const col = pos[i3][1];
|
|
2987
3207
|
for (let r2 = -2; r2 <= 2; r2++) {
|
|
2988
3208
|
for (let c2 = -2; c2 <= 2; c2++) {
|
|
2989
3209
|
if (r2 === -2 || r2 === 2 || c2 === -2 || c2 === 2 || r2 === 0 && c2 === 0) {
|
|
@@ -2999,10 +3219,10 @@ function requireQrcode() {
|
|
|
2999
3219
|
const size = matrix.size;
|
|
3000
3220
|
const bits = Version.getEncodedBits(version2);
|
|
3001
3221
|
let row, col, mod;
|
|
3002
|
-
for (let
|
|
3003
|
-
row = Math.floor(
|
|
3004
|
-
col =
|
|
3005
|
-
mod = (bits >>
|
|
3222
|
+
for (let i3 = 0; i3 < 18; i3++) {
|
|
3223
|
+
row = Math.floor(i3 / 3);
|
|
3224
|
+
col = i3 % 3 + size - 8 - 3;
|
|
3225
|
+
mod = (bits >> i3 & 1) === 1;
|
|
3006
3226
|
matrix.set(row, col, mod, true);
|
|
3007
3227
|
matrix.set(col, row, mod, true);
|
|
3008
3228
|
}
|
|
@@ -3010,22 +3230,22 @@ function requireQrcode() {
|
|
|
3010
3230
|
function setupFormatInfo(matrix, errorCorrectionLevel2, maskPattern2) {
|
|
3011
3231
|
const size = matrix.size;
|
|
3012
3232
|
const bits = FormatInfo.getEncodedBits(errorCorrectionLevel2, maskPattern2);
|
|
3013
|
-
let
|
|
3014
|
-
for (
|
|
3015
|
-
mod = (bits >>
|
|
3016
|
-
if (
|
|
3017
|
-
matrix.set(
|
|
3018
|
-
} else if (
|
|
3019
|
-
matrix.set(
|
|
3233
|
+
let i3, mod;
|
|
3234
|
+
for (i3 = 0; i3 < 15; i3++) {
|
|
3235
|
+
mod = (bits >> i3 & 1) === 1;
|
|
3236
|
+
if (i3 < 6) {
|
|
3237
|
+
matrix.set(i3, 8, mod, true);
|
|
3238
|
+
} else if (i3 < 8) {
|
|
3239
|
+
matrix.set(i3 + 1, 8, mod, true);
|
|
3020
3240
|
} else {
|
|
3021
|
-
matrix.set(size - 15 +
|
|
3241
|
+
matrix.set(size - 15 + i3, 8, mod, true);
|
|
3022
3242
|
}
|
|
3023
|
-
if (
|
|
3024
|
-
matrix.set(8, size -
|
|
3025
|
-
} else if (
|
|
3026
|
-
matrix.set(8, 15 -
|
|
3243
|
+
if (i3 < 8) {
|
|
3244
|
+
matrix.set(8, size - i3 - 1, mod, true);
|
|
3245
|
+
} else if (i3 < 9) {
|
|
3246
|
+
matrix.set(8, 15 - i3 - 1 + 1, mod, true);
|
|
3027
3247
|
} else {
|
|
3028
|
-
matrix.set(8, 15 -
|
|
3248
|
+
matrix.set(8, 15 - i3 - 1, mod, true);
|
|
3029
3249
|
}
|
|
3030
3250
|
}
|
|
3031
3251
|
matrix.set(size - 8, 8, 1, true);
|
|
@@ -3079,8 +3299,8 @@ function requireQrcode() {
|
|
|
3079
3299
|
buffer.putBit(0);
|
|
3080
3300
|
}
|
|
3081
3301
|
const remainingByte = (dataTotalCodewordsBits - buffer.getLengthInBits()) / 8;
|
|
3082
|
-
for (let
|
|
3083
|
-
buffer.put(
|
|
3302
|
+
for (let i3 = 0; i3 < remainingByte; i3++) {
|
|
3303
|
+
buffer.put(i3 % 2 ? 17 : 236, 8);
|
|
3084
3304
|
}
|
|
3085
3305
|
return createCodewords(buffer, version2, errorCorrectionLevel2);
|
|
3086
3306
|
}
|
|
@@ -3110,17 +3330,17 @@ function requireQrcode() {
|
|
|
3110
3330
|
}
|
|
3111
3331
|
const data2 = new Uint8Array(totalCodewords);
|
|
3112
3332
|
let index2 = 0;
|
|
3113
|
-
let
|
|
3114
|
-
for (
|
|
3333
|
+
let i3, r2;
|
|
3334
|
+
for (i3 = 0; i3 < maxDataSize; i3++) {
|
|
3115
3335
|
for (r2 = 0; r2 < ecTotalBlocks; r2++) {
|
|
3116
|
-
if (
|
|
3117
|
-
data2[index2++] = dcData[r2][
|
|
3336
|
+
if (i3 < dcData[r2].length) {
|
|
3337
|
+
data2[index2++] = dcData[r2][i3];
|
|
3118
3338
|
}
|
|
3119
3339
|
}
|
|
3120
3340
|
}
|
|
3121
|
-
for (
|
|
3341
|
+
for (i3 = 0; i3 < ecCount; i3++) {
|
|
3122
3342
|
for (r2 = 0; r2 < ecTotalBlocks; r2++) {
|
|
3123
|
-
data2[index2++] = ecData[r2][
|
|
3343
|
+
data2[index2++] = ecData[r2][i3];
|
|
3124
3344
|
}
|
|
3125
3345
|
}
|
|
3126
3346
|
return data2;
|
|
@@ -3261,13 +3481,13 @@ function requireUtils() {
|
|
|
3261
3481
|
const symbolSize = Math.floor((size + opts.margin * 2) * scale);
|
|
3262
3482
|
const scaledMargin = opts.margin * scale;
|
|
3263
3483
|
const palette = [opts.color.light, opts.color.dark];
|
|
3264
|
-
for (let
|
|
3265
|
-
for (let
|
|
3266
|
-
let posDst = (
|
|
3484
|
+
for (let i3 = 0; i3 < symbolSize; i3++) {
|
|
3485
|
+
for (let j2 = 0; j2 < symbolSize; j2++) {
|
|
3486
|
+
let posDst = (i3 * symbolSize + j2) * 4;
|
|
3267
3487
|
let pxColor = opts.color.light;
|
|
3268
|
-
if (
|
|
3269
|
-
const iSrc = Math.floor((
|
|
3270
|
-
const jSrc = Math.floor((
|
|
3488
|
+
if (i3 >= scaledMargin && j2 >= scaledMargin && i3 < symbolSize - scaledMargin && j2 < symbolSize - scaledMargin) {
|
|
3489
|
+
const iSrc = Math.floor((i3 - scaledMargin) / scale);
|
|
3490
|
+
const jSrc = Math.floor((j2 - scaledMargin) / scale);
|
|
3271
3491
|
pxColor = palette[data2[iSrc * size + jSrc] ? 1 : 0];
|
|
3272
3492
|
}
|
|
3273
3493
|
imgData[posDst++] = pxColor.r;
|
|
@@ -3356,18 +3576,18 @@ function requireSvgTag() {
|
|
|
3356
3576
|
let moveBy = 0;
|
|
3357
3577
|
let newRow = false;
|
|
3358
3578
|
let lineLength = 0;
|
|
3359
|
-
for (let
|
|
3360
|
-
const col = Math.floor(
|
|
3361
|
-
const row = Math.floor(
|
|
3579
|
+
for (let i3 = 0; i3 < data2.length; i3++) {
|
|
3580
|
+
const col = Math.floor(i3 % size);
|
|
3581
|
+
const row = Math.floor(i3 / size);
|
|
3362
3582
|
if (!col && !newRow) newRow = true;
|
|
3363
|
-
if (data2[
|
|
3583
|
+
if (data2[i3]) {
|
|
3364
3584
|
lineLength++;
|
|
3365
|
-
if (!(
|
|
3585
|
+
if (!(i3 > 0 && col > 0 && data2[i3 - 1])) {
|
|
3366
3586
|
path += newRow ? svgCmd("M", col + margin, 0.5 + row + margin) : svgCmd("m", moveBy, 0);
|
|
3367
3587
|
moveBy = 0;
|
|
3368
3588
|
newRow = false;
|
|
3369
3589
|
}
|
|
3370
|
-
if (!(col + 1 < size && data2[
|
|
3590
|
+
if (!(col + 1 < size && data2[i3 + 1])) {
|
|
3371
3591
|
path += svgCmd("h", lineLength);
|
|
3372
3592
|
lineLength = 0;
|
|
3373
3593
|
}
|
|
@@ -3575,21 +3795,21 @@ const ThemeUtil = {
|
|
|
3575
3795
|
Object.entries(variables).forEach(([key, val]) => root.style.setProperty(key, val));
|
|
3576
3796
|
}
|
|
3577
3797
|
},
|
|
3578
|
-
globalCss: i$
|
|
3798
|
+
globalCss: i$4`*,::after,::before{margin:0;padding:0;box-sizing:border-box;font-style:normal;text-rendering:optimizeSpeed;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;backface-visibility:hidden}button{cursor:pointer;display:flex;justify-content:center;align-items:center;position:relative;border:none;background-color:transparent;transition:all .2s ease}@media (hover:hover) and (pointer:fine){button:active{transition:all .1s ease;transform:scale(.93)}}button::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;transition:background-color,.2s ease}button:disabled{cursor:not-allowed}button svg,button wcm-text{position:relative;z-index:1}input{border:none;outline:0;appearance:none}img{display:block}::selection{color:var(--wcm-accent-fill-color);background:var(--wcm-accent-color)}`
|
|
3579
3799
|
};
|
|
3580
|
-
const styles$t = i$
|
|
3800
|
+
const styles$t = i$4`button{border-radius:var(--wcm-secondary-button-border-radius);height:28px;padding:0 10px;background-color:var(--wcm-accent-color)}button path{fill:var(--wcm-accent-fill-color)}button::after{border-radius:inherit;border:1px solid var(--wcm-color-overlay)}button:disabled::after{background-color:transparent}.wcm-icon-left svg{margin-right:5px}.wcm-icon-right svg{margin-left:5px}button:active::after{background-color:var(--wcm-color-overlay)}.wcm-ghost,.wcm-ghost:active::after,.wcm-outline{background-color:transparent}.wcm-ghost:active{opacity:.5}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}.wcm-ghost:hover::after{background-color:transparent}.wcm-ghost:hover{opacity:.5}}button:disabled{background-color:var(--wcm-color-bg-3);pointer-events:none}.wcm-ghost::after{border-color:transparent}.wcm-ghost path{fill:var(--wcm-color-fg-2)}.wcm-outline path{fill:var(--wcm-accent-color)}.wcm-outline:disabled{background-color:transparent;opacity:.5}`;
|
|
3581
3801
|
var __defProp$x = Object.defineProperty;
|
|
3582
3802
|
var __getOwnPropDesc$x = Object.getOwnPropertyDescriptor;
|
|
3583
3803
|
var __decorateClass$x = (decorators, target, key, kind) => {
|
|
3584
3804
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$x(target, key) : target;
|
|
3585
|
-
for (var
|
|
3586
|
-
if (decorator = decorators[
|
|
3805
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
3806
|
+
if (decorator = decorators[i3])
|
|
3587
3807
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3588
3808
|
if (kind && result)
|
|
3589
3809
|
__defProp$x(target, key, result);
|
|
3590
3810
|
return result;
|
|
3591
3811
|
};
|
|
3592
|
-
let WcmButton = class extends s {
|
|
3812
|
+
let WcmButton = class extends s$1 {
|
|
3593
3813
|
constructor() {
|
|
3594
3814
|
super(...arguments);
|
|
3595
3815
|
this.disabled = false;
|
|
@@ -3613,41 +3833,41 @@ let WcmButton = class extends s {
|
|
|
3613
3833
|
if (this.variant === "outline") {
|
|
3614
3834
|
textColor = "accent";
|
|
3615
3835
|
}
|
|
3616
|
-
return x`<button class="${
|
|
3836
|
+
return x`<button class="${o$1(classes)}" ?disabled="${this.disabled}" @click="${this.onClick}">${this.iconLeft}<wcm-text variant="small-regular" color="${textColor}"><slot></slot></wcm-text>${this.iconRight}</button>`;
|
|
3617
3837
|
}
|
|
3618
3838
|
};
|
|
3619
3839
|
WcmButton.styles = [ThemeUtil.globalCss, styles$t];
|
|
3620
3840
|
__decorateClass$x([
|
|
3621
|
-
n$
|
|
3841
|
+
n$2({ type: Boolean })
|
|
3622
3842
|
], WcmButton.prototype, "disabled", 2);
|
|
3623
3843
|
__decorateClass$x([
|
|
3624
|
-
n$
|
|
3844
|
+
n$2()
|
|
3625
3845
|
], WcmButton.prototype, "iconLeft", 2);
|
|
3626
3846
|
__decorateClass$x([
|
|
3627
|
-
n$
|
|
3847
|
+
n$2()
|
|
3628
3848
|
], WcmButton.prototype, "iconRight", 2);
|
|
3629
3849
|
__decorateClass$x([
|
|
3630
|
-
n$
|
|
3850
|
+
n$2()
|
|
3631
3851
|
], WcmButton.prototype, "onClick", 2);
|
|
3632
3852
|
__decorateClass$x([
|
|
3633
|
-
n$
|
|
3853
|
+
n$2()
|
|
3634
3854
|
], WcmButton.prototype, "variant", 2);
|
|
3635
3855
|
WcmButton = __decorateClass$x([
|
|
3636
|
-
e$
|
|
3856
|
+
e$3("wcm-button")
|
|
3637
3857
|
], WcmButton);
|
|
3638
|
-
const styles$s = i$
|
|
3858
|
+
const styles$s = i$4`:host{display:inline-block}button{padding:0 15px 1px;height:40px;border-radius:var(--wcm-button-border-radius);color:var(--wcm-accent-fill-color);background-color:var(--wcm-accent-color)}button::after{content:'';top:0;bottom:0;left:0;right:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--wcm-color-overlay)}button:active::after{background-color:var(--wcm-color-overlay)}button:disabled{padding-bottom:0;background-color:var(--wcm-color-bg-3);color:var(--wcm-color-fg-3)}.wcm-secondary{color:var(--wcm-accent-color);background-color:transparent}.wcm-secondary::after{display:none}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}}`;
|
|
3639
3859
|
var __defProp$w = Object.defineProperty;
|
|
3640
3860
|
var __getOwnPropDesc$w = Object.getOwnPropertyDescriptor;
|
|
3641
3861
|
var __decorateClass$w = (decorators, target, key, kind) => {
|
|
3642
3862
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$w(target, key) : target;
|
|
3643
|
-
for (var
|
|
3644
|
-
if (decorator = decorators[
|
|
3863
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
3864
|
+
if (decorator = decorators[i3])
|
|
3645
3865
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3646
3866
|
if (kind && result)
|
|
3647
3867
|
__defProp$w(target, key, result);
|
|
3648
3868
|
return result;
|
|
3649
3869
|
};
|
|
3650
|
-
let WcmButtonBig = class extends s {
|
|
3870
|
+
let WcmButtonBig = class extends s$1 {
|
|
3651
3871
|
constructor() {
|
|
3652
3872
|
super(...arguments);
|
|
3653
3873
|
this.disabled = false;
|
|
@@ -3658,29 +3878,29 @@ let WcmButtonBig = class extends s {
|
|
|
3658
3878
|
const classes = {
|
|
3659
3879
|
"wcm-secondary": this.variant === "secondary"
|
|
3660
3880
|
};
|
|
3661
|
-
return x`<button ?disabled="${this.disabled}" class="${
|
|
3881
|
+
return x`<button ?disabled="${this.disabled}" class="${o$1(classes)}"><slot></slot></button>`;
|
|
3662
3882
|
}
|
|
3663
3883
|
};
|
|
3664
3884
|
WcmButtonBig.styles = [ThemeUtil.globalCss, styles$s];
|
|
3665
3885
|
__decorateClass$w([
|
|
3666
|
-
n$
|
|
3886
|
+
n$2({ type: Boolean })
|
|
3667
3887
|
], WcmButtonBig.prototype, "disabled", 2);
|
|
3668
3888
|
__decorateClass$w([
|
|
3669
|
-
n$
|
|
3889
|
+
n$2()
|
|
3670
3890
|
], WcmButtonBig.prototype, "variant", 2);
|
|
3671
3891
|
WcmButtonBig = __decorateClass$w([
|
|
3672
|
-
e$
|
|
3892
|
+
e$3("wcm-button-big")
|
|
3673
3893
|
], WcmButtonBig);
|
|
3674
|
-
const styles$r = i$
|
|
3894
|
+
const styles$r = i$4`:host{background-color:var(--wcm-color-bg-2);border-top:1px solid var(--wcm-color-bg-3)}div{padding:10px 20px;display:inherit;flex-direction:inherit;align-items:inherit;width:inherit;justify-content:inherit}`;
|
|
3675
3895
|
var __getOwnPropDesc$v = Object.getOwnPropertyDescriptor;
|
|
3676
3896
|
var __decorateClass$v = (decorators, target, key, kind) => {
|
|
3677
3897
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$v(target, key) : target;
|
|
3678
|
-
for (var
|
|
3679
|
-
if (decorator = decorators[
|
|
3898
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
3899
|
+
if (decorator = decorators[i3])
|
|
3680
3900
|
result = decorator(result) || result;
|
|
3681
3901
|
return result;
|
|
3682
3902
|
};
|
|
3683
|
-
let WcmInfoFooter = class extends s {
|
|
3903
|
+
let WcmInfoFooter = class extends s$1 {
|
|
3684
3904
|
// -- render ------------------------------------------------------- //
|
|
3685
3905
|
render() {
|
|
3686
3906
|
return x`<div><slot></slot></div>`;
|
|
@@ -3688,7 +3908,7 @@ let WcmInfoFooter = class extends s {
|
|
|
3688
3908
|
};
|
|
3689
3909
|
WcmInfoFooter.styles = [ThemeUtil.globalCss, styles$r];
|
|
3690
3910
|
WcmInfoFooter = __decorateClass$v([
|
|
3691
|
-
e$
|
|
3911
|
+
e$3("wcm-info-footer")
|
|
3692
3912
|
], WcmInfoFooter);
|
|
3693
3913
|
const SvgUtil = {
|
|
3694
3914
|
CROSS_ICON: b`<svg width="12" height="12" viewBox="0 0 12 12"><path d="M9.94 11A.75.75 0 1 0 11 9.94L7.414 6.353a.5.5 0 0 1 0-.708L11 2.061A.75.75 0 1 0 9.94 1L6.353 4.586a.5.5 0 0 1-.708 0L2.061 1A.75.75 0 0 0 1 2.06l3.586 3.586a.5.5 0 0 1 0 .708L1 9.939A.75.75 0 1 0 2.06 11l3.586-3.586a.5.5 0 0 1 .708 0L9.939 11Z" fill="#fff"/></svg>`,
|
|
@@ -3710,16 +3930,16 @@ const SvgUtil = {
|
|
|
3710
3930
|
WALLET_PLACEHOLDER: b`<svg width="60" height="60" fill="none" viewBox="0 0 60 60"><g clip-path="url(#q)"><path id="wallet-placeholder-fill" fill="#fff" d="M0 24.9c0-9.251 0-13.877 1.97-17.332a15 15 0 0 1 5.598-5.597C11.023 0 15.648 0 24.9 0h10.2c9.252 0 13.877 0 17.332 1.97a15 15 0 0 1 5.597 5.598C60 11.023 60 15.648 60 24.9v10.2c0 9.252 0 13.877-1.97 17.332a15.001 15.001 0 0 1-5.598 5.597C48.977 60 44.352 60 35.1 60H24.9c-9.251 0-13.877 0-17.332-1.97a15 15 0 0 1-5.597-5.598C0 48.977 0 44.352 0 35.1V24.9Z"/><path id="wallet-placeholder-dash" stroke="#000" stroke-dasharray="4 4" stroke-width="1.5" d="M.04 41.708a231.598 231.598 0 0 1-.039-4.403l.75-.001L.75 35.1v-2.55H0v-5.1h.75V24.9l.001-2.204h-.75c.003-1.617.011-3.077.039-4.404l.75.016c.034-1.65.099-3.08.218-4.343l-.746-.07c.158-1.678.412-3.083.82-4.316l.713.236c.224-.679.497-1.296.827-1.875a14.25 14.25 0 0 1 1.05-1.585L3.076 5.9A15 15 0 0 1 5.9 3.076l.455.596a14.25 14.25 0 0 1 1.585-1.05c.579-.33 1.196-.603 1.875-.827l-.236-.712C10.812.674 12.217.42 13.895.262l.07.746C15.23.89 16.66.824 18.308.79l-.016-.75C19.62.012 21.08.004 22.695.001l.001.75L24.9.75h2.55V0h5.1v.75h2.55l2.204.001v-.75c1.617.003 3.077.011 4.404.039l-.016.75c1.65.034 3.08.099 4.343.218l.07-.746c1.678.158 3.083.412 4.316.82l-.236.713c.679.224 1.296.497 1.875.827a14.24 14.24 0 0 1 1.585 1.05l.455-.596A14.999 14.999 0 0 1 56.924 5.9l-.596.455c.384.502.735 1.032 1.05 1.585.33.579.602 1.196.827 1.875l.712-.236c.409 1.233.663 2.638.822 4.316l-.747.07c.119 1.264.184 2.694.218 4.343l.75-.016c.028 1.327.036 2.787.039 4.403l-.75.001.001 2.204v2.55H60v5.1h-.75v2.55l-.001 2.204h.75a231.431 231.431 0 0 1-.039 4.404l-.75-.016c-.034 1.65-.099 3.08-.218 4.343l.747.07c-.159 1.678-.413 3.083-.822 4.316l-.712-.236a10.255 10.255 0 0 1-.827 1.875 14.242 14.242 0 0 1-1.05 1.585l.596.455a14.997 14.997 0 0 1-2.824 2.824l-.455-.596c-.502.384-1.032.735-1.585 1.05-.579.33-1.196.602-1.875.827l.236.712c-1.233.409-2.638.663-4.316.822l-.07-.747c-1.264.119-2.694.184-4.343.218l.016.75c-1.327.028-2.787.036-4.403.039l-.001-.75-2.204.001h-2.55V60h-5.1v-.75H24.9l-2.204-.001v.75a231.431 231.431 0 0 1-4.404-.039l.016-.75c-1.65-.034-3.08-.099-4.343-.218l-.07.747c-1.678-.159-3.083-.413-4.316-.822l.236-.712a10.258 10.258 0 0 1-1.875-.827 14.252 14.252 0 0 1-1.585-1.05l-.455.596A14.999 14.999 0 0 1 3.076 54.1l.596-.455a14.24 14.24 0 0 1-1.05-1.585 10.259 10.259 0 0 1-.827-1.875l-.712.236C.674 49.188.42 47.783.262 46.105l.746-.07C.89 44.77.824 43.34.79 41.692l-.75.016Z"/><path fill="#fff" fill-rule="evenodd" d="M35.643 32.145c-.297-.743-.445-1.114-.401-1.275a.42.42 0 0 1 .182-.27c.134-.1.463-.1 1.123-.1.742 0 1.499.046 2.236-.05a6 6 0 0 0 5.166-5.166c.051-.39.051-.855.051-1.784 0-.928 0-1.393-.051-1.783a6 6 0 0 0-5.166-5.165c-.39-.052-.854-.052-1.783-.052h-7.72c-4.934 0-7.401 0-9.244 1.051a8 8 0 0 0-2.985 2.986C16.057 22.28 16.003 24.58 16 29 15.998 31.075 16 33.15 16 35.224A7.778 7.778 0 0 0 23.778 43H28.5c1.394 0 2.09 0 2.67-.116a6 6 0 0 0 4.715-4.714c.115-.58.115-1.301.115-2.744 0-1.31 0-1.964-.114-2.49a4.998 4.998 0 0 0-.243-.792Z" clip-rule="evenodd"/><path fill="#9EA9A9" fill-rule="evenodd" d="M37 18h-7.72c-2.494 0-4.266.002-5.647.126-1.361.122-2.197.354-2.854.728a6.5 6.5 0 0 0-2.425 2.426c-.375.657-.607 1.492-.729 2.853-.11 1.233-.123 2.777-.125 4.867 0 .7 0 1.05.097 1.181.096.13.182.181.343.2.163.02.518-.18 1.229-.581a6.195 6.195 0 0 1 3.053-.8H37c.977 0 1.32-.003 1.587-.038a4.5 4.5 0 0 0 3.874-3.874c.036-.268.039-.611.039-1.588 0-.976-.003-1.319-.038-1.587a4.5 4.5 0 0 0-3.875-3.874C38.32 18.004 37.977 18 37 18Zm-7.364 12.5h-7.414a4.722 4.722 0 0 0-4.722 4.723 6.278 6.278 0 0 0 6.278 6.278H28.5c1.466 0 1.98-.008 2.378-.087a4.5 4.5 0 0 0 3.535-3.536c.08-.397.087-.933.087-2.451 0-1.391-.009-1.843-.08-2.17a3.5 3.5 0 0 0-2.676-2.676c-.328-.072-.762-.08-2.108-.08Z" clip-rule="evenodd"/></g><defs><clipPath id="q"><path fill="#fff" d="M0 0h60v60H0z"/></clipPath></defs></svg>`,
|
|
3711
3931
|
GLOBE_ICON: b`<svg width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="#fff" fill-rule="evenodd" d="M15.5 8a7.5 7.5 0 1 1-15 0 7.5 7.5 0 0 1 15 0Zm-2.113.75c.301 0 .535.264.47.558a6.01 6.01 0 0 1-2.867 3.896c-.203.116-.42-.103-.334-.32.409-1.018.691-2.274.797-3.657a.512.512 0 0 1 .507-.477h1.427Zm.47-2.058c.065.294-.169.558-.47.558H11.96a.512.512 0 0 1-.507-.477c-.106-1.383-.389-2.638-.797-3.656-.087-.217.13-.437.333-.32a6.01 6.01 0 0 1 2.868 3.895Zm-4.402.558c.286 0 .515-.24.49-.525-.121-1.361-.429-2.534-.83-3.393-.279-.6-.549-.93-.753-1.112a.535.535 0 0 0-.724 0c-.204.182-.474.513-.754 1.112-.4.859-.708 2.032-.828 3.393a.486.486 0 0 0 .49.525h2.909Zm-5.415 0c.267 0 .486-.21.507-.477.106-1.383.389-2.638.797-3.656.087-.217-.13-.437-.333-.32a6.01 6.01 0 0 0-2.868 3.895c-.065.294.169.558.47.558H4.04ZM2.143 9.308c-.065-.294.169-.558.47-.558H4.04c.267 0 .486.21.507.477.106 1.383.389 2.639.797 3.657.087.217-.13.436-.333.32a6.01 6.01 0 0 1-2.868-3.896Zm3.913-.033a.486.486 0 0 1 .49-.525h2.909c.286 0 .515.24.49.525-.121 1.361-.428 2.535-.83 3.394-.279.6-.549.93-.753 1.112a.535.535 0 0 1-.724 0c-.204-.182-.474-.513-.754-1.112-.4-.859-.708-2.033-.828-3.394Z" clip-rule="evenodd"/></svg>`
|
|
3712
3932
|
};
|
|
3713
|
-
const styles$q = i$
|
|
3933
|
+
const styles$q = i$4`.wcm-toolbar-placeholder{top:0;bottom:0;left:0;right:0;width:100%;position:absolute;display:block;pointer-events:none;height:100px;border-radius:calc(var(--wcm-background-border-radius) * .9);background-color:var(--wcm-background-color);background-position:center;background-size:cover}.wcm-toolbar{height:38px;display:flex;position:relative;margin:5px 15px 5px 5px;justify-content:space-between;align-items:center}.wcm-toolbar img,.wcm-toolbar svg{height:28px;object-position:left center;object-fit:contain}#wcm-wc-logo path{fill:var(--wcm-accent-fill-color)}button{width:28px;height:28px;border-radius:var(--wcm-icon-button-border-radius);border:0;display:flex;justify-content:center;align-items:center;cursor:pointer;background-color:var(--wcm-color-bg-1);box-shadow:0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-bg-2)}button svg{display:block;object-position:center}button path{fill:var(--wcm-color-fg-1)}.wcm-toolbar div{display:flex}@media(hover:hover){button:hover{background-color:var(--wcm-color-bg-2)}}`;
|
|
3714
3934
|
var __getOwnPropDesc$u = Object.getOwnPropertyDescriptor;
|
|
3715
3935
|
var __decorateClass$u = (decorators, target, key, kind) => {
|
|
3716
3936
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$u(target, key) : target;
|
|
3717
|
-
for (var
|
|
3718
|
-
if (decorator = decorators[
|
|
3937
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
3938
|
+
if (decorator = decorators[i3])
|
|
3719
3939
|
result = decorator(result) || result;
|
|
3720
3940
|
return result;
|
|
3721
3941
|
};
|
|
3722
|
-
let WcmModalBackcard = class extends s {
|
|
3942
|
+
let WcmModalBackcard = class extends s$1 {
|
|
3723
3943
|
// -- render ------------------------------------------------------- //
|
|
3724
3944
|
render() {
|
|
3725
3945
|
return x`<div class="wcm-toolbar-placeholder"></div><div class="wcm-toolbar">${SvgUtil.WALLET_CONNECT_LOGO} <button @click="${index.ModalCtrl.close}">${SvgUtil.CROSS_ICON}</button></div>`;
|
|
@@ -3727,18 +3947,18 @@ let WcmModalBackcard = class extends s {
|
|
|
3727
3947
|
};
|
|
3728
3948
|
WcmModalBackcard.styles = [ThemeUtil.globalCss, styles$q];
|
|
3729
3949
|
WcmModalBackcard = __decorateClass$u([
|
|
3730
|
-
e$
|
|
3950
|
+
e$3("wcm-modal-backcard")
|
|
3731
3951
|
], WcmModalBackcard);
|
|
3732
|
-
const styles$p = i$
|
|
3952
|
+
const styles$p = i$4`main{padding:20px;padding-top:0;width:100%}`;
|
|
3733
3953
|
var __getOwnPropDesc$t = Object.getOwnPropertyDescriptor;
|
|
3734
3954
|
var __decorateClass$t = (decorators, target, key, kind) => {
|
|
3735
3955
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$t(target, key) : target;
|
|
3736
|
-
for (var
|
|
3737
|
-
if (decorator = decorators[
|
|
3956
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
3957
|
+
if (decorator = decorators[i3])
|
|
3738
3958
|
result = decorator(result) || result;
|
|
3739
3959
|
return result;
|
|
3740
3960
|
};
|
|
3741
|
-
let WcmModalContent = class extends s {
|
|
3961
|
+
let WcmModalContent = class extends s$1 {
|
|
3742
3962
|
// -- render ------------------------------------------------------- //
|
|
3743
3963
|
render() {
|
|
3744
3964
|
return x`<main><slot></slot></main>`;
|
|
@@ -3746,18 +3966,18 @@ let WcmModalContent = class extends s {
|
|
|
3746
3966
|
};
|
|
3747
3967
|
WcmModalContent.styles = [ThemeUtil.globalCss, styles$p];
|
|
3748
3968
|
WcmModalContent = __decorateClass$t([
|
|
3749
|
-
e$
|
|
3969
|
+
e$3("wcm-modal-content")
|
|
3750
3970
|
], WcmModalContent);
|
|
3751
|
-
const styles$o = i$
|
|
3971
|
+
const styles$o = i$4`footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--wcm-color-bg-2)}`;
|
|
3752
3972
|
var __getOwnPropDesc$s = Object.getOwnPropertyDescriptor;
|
|
3753
3973
|
var __decorateClass$s = (decorators, target, key, kind) => {
|
|
3754
3974
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$s(target, key) : target;
|
|
3755
|
-
for (var
|
|
3756
|
-
if (decorator = decorators[
|
|
3975
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
3976
|
+
if (decorator = decorators[i3])
|
|
3757
3977
|
result = decorator(result) || result;
|
|
3758
3978
|
return result;
|
|
3759
3979
|
};
|
|
3760
|
-
let WcmModalFooter = class extends s {
|
|
3980
|
+
let WcmModalFooter = class extends s$1 {
|
|
3761
3981
|
// -- render ------------------------------------------------------- //
|
|
3762
3982
|
render() {
|
|
3763
3983
|
return x`<footer><slot></slot></footer>`;
|
|
@@ -3765,21 +3985,21 @@ let WcmModalFooter = class extends s {
|
|
|
3765
3985
|
};
|
|
3766
3986
|
WcmModalFooter.styles = [ThemeUtil.globalCss, styles$o];
|
|
3767
3987
|
WcmModalFooter = __decorateClass$s([
|
|
3768
|
-
e$
|
|
3988
|
+
e$3("wcm-modal-footer")
|
|
3769
3989
|
], WcmModalFooter);
|
|
3770
|
-
const styles$n = i$
|
|
3990
|
+
const styles$n = i$4`header{display:flex;justify-content:center;align-items:center;padding:20px;position:relative}.wcm-border{border-bottom:1px solid var(--wcm-color-bg-2);margin-bottom:20px}header button{padding:15px 20px}header button:active{opacity:.5}@media(hover:hover){header button:hover{opacity:.5}}.wcm-back-btn{position:absolute;left:0}.wcm-action-btn{position:absolute;right:0}path{fill:var(--wcm-accent-color)}`;
|
|
3771
3991
|
var __defProp$r = Object.defineProperty;
|
|
3772
3992
|
var __getOwnPropDesc$r = Object.getOwnPropertyDescriptor;
|
|
3773
3993
|
var __decorateClass$r = (decorators, target, key, kind) => {
|
|
3774
3994
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$r(target, key) : target;
|
|
3775
|
-
for (var
|
|
3776
|
-
if (decorator = decorators[
|
|
3995
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
3996
|
+
if (decorator = decorators[i3])
|
|
3777
3997
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3778
3998
|
if (kind && result)
|
|
3779
3999
|
__defProp$r(target, key, result);
|
|
3780
4000
|
return result;
|
|
3781
4001
|
};
|
|
3782
|
-
let WcmModalHeader = class extends s {
|
|
4002
|
+
let WcmModalHeader = class extends s$1 {
|
|
3783
4003
|
constructor() {
|
|
3784
4004
|
super(...arguments);
|
|
3785
4005
|
this.title = "";
|
|
@@ -3801,24 +4021,24 @@ let WcmModalHeader = class extends s {
|
|
|
3801
4021
|
};
|
|
3802
4022
|
const backBtn = index.RouterCtrl.state.history.length > 1;
|
|
3803
4023
|
const content = this.title ? x`<wcm-text variant="big-bold">${this.title}</wcm-text>` : x`<slot></slot>`;
|
|
3804
|
-
return x`<header class="${
|
|
4024
|
+
return x`<header class="${o$1(classes)}">${backBtn ? this.backBtnTemplate() : null} ${content} ${this.onAction ? this.actionBtnTemplate() : null}</header>`;
|
|
3805
4025
|
}
|
|
3806
4026
|
};
|
|
3807
4027
|
WcmModalHeader.styles = [ThemeUtil.globalCss, styles$n];
|
|
3808
4028
|
__decorateClass$r([
|
|
3809
|
-
n$
|
|
4029
|
+
n$2()
|
|
3810
4030
|
], WcmModalHeader.prototype, "title", 2);
|
|
3811
4031
|
__decorateClass$r([
|
|
3812
|
-
n$
|
|
4032
|
+
n$2()
|
|
3813
4033
|
], WcmModalHeader.prototype, "onAction", 2);
|
|
3814
4034
|
__decorateClass$r([
|
|
3815
|
-
n$
|
|
4035
|
+
n$2()
|
|
3816
4036
|
], WcmModalHeader.prototype, "actionIcon", 2);
|
|
3817
4037
|
__decorateClass$r([
|
|
3818
|
-
n$
|
|
4038
|
+
n$2({ type: Boolean })
|
|
3819
4039
|
], WcmModalHeader.prototype, "border", 2);
|
|
3820
4040
|
WcmModalHeader = __decorateClass$r([
|
|
3821
|
-
e$
|
|
4041
|
+
e$3("wcm-modal-header")
|
|
3822
4042
|
], WcmModalHeader);
|
|
3823
4043
|
const UiUtil = {
|
|
3824
4044
|
MOBILE_BREAKPOINT: 600,
|
|
@@ -3979,19 +4199,19 @@ const UiUtil = {
|
|
|
3979
4199
|
}
|
|
3980
4200
|
}
|
|
3981
4201
|
};
|
|
3982
|
-
const styles$m = i$
|
|
4202
|
+
const styles$m = i$4`.wcm-router{overflow:hidden;will-change:transform}.wcm-content{display:flex;flex-direction:column}`;
|
|
3983
4203
|
var __defProp$q = Object.defineProperty;
|
|
3984
4204
|
var __getOwnPropDesc$q = Object.getOwnPropertyDescriptor;
|
|
3985
4205
|
var __decorateClass$q = (decorators, target, key, kind) => {
|
|
3986
4206
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$q(target, key) : target;
|
|
3987
|
-
for (var
|
|
3988
|
-
if (decorator = decorators[
|
|
4207
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
4208
|
+
if (decorator = decorators[i3])
|
|
3989
4209
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
3990
4210
|
if (kind && result)
|
|
3991
4211
|
__defProp$q(target, key, result);
|
|
3992
4212
|
return result;
|
|
3993
4213
|
};
|
|
3994
|
-
let WcmModalRouter = class extends s {
|
|
4214
|
+
let WcmModalRouter = class extends s$1 {
|
|
3995
4215
|
// -- lifecycle ---------------------------------------------------- //
|
|
3996
4216
|
constructor() {
|
|
3997
4217
|
super();
|
|
@@ -4065,27 +4285,27 @@ let WcmModalRouter = class extends s {
|
|
|
4065
4285
|
};
|
|
4066
4286
|
WcmModalRouter.styles = [ThemeUtil.globalCss, styles$m];
|
|
4067
4287
|
__decorateClass$q([
|
|
4068
|
-
t$
|
|
4288
|
+
t$2()
|
|
4069
4289
|
], WcmModalRouter.prototype, "view", 2);
|
|
4070
4290
|
__decorateClass$q([
|
|
4071
|
-
t$
|
|
4291
|
+
t$2()
|
|
4072
4292
|
], WcmModalRouter.prototype, "prevView", 2);
|
|
4073
4293
|
WcmModalRouter = __decorateClass$q([
|
|
4074
|
-
e$
|
|
4294
|
+
e$3("wcm-modal-router")
|
|
4075
4295
|
], WcmModalRouter);
|
|
4076
|
-
const styles$l = i$
|
|
4296
|
+
const styles$l = i$4`div{height:36px;width:max-content;display:flex;justify-content:center;align-items:center;padding:9px 15px 11px;position:absolute;top:12px;box-shadow:0 6px 14px -6px rgba(10,16,31,.3),0 10px 32px -4px rgba(10,16,31,.15);z-index:2;left:50%;transform:translateX(-50%);pointer-events:none;backdrop-filter:blur(20px) saturate(1.8);-webkit-backdrop-filter:blur(20px) saturate(1.8);border-radius:var(--wcm-notification-border-radius);border:1px solid var(--wcm-color-overlay);background-color:var(--wcm-color-overlay)}svg{margin-right:5px}@-moz-document url-prefix(){div{background-color:var(--wcm-color-bg-3)}}.wcm-success path{fill:var(--wcm-accent-color)}.wcm-error path{fill:var(--wcm-error-color)}`;
|
|
4077
4297
|
var __defProp$p = Object.defineProperty;
|
|
4078
4298
|
var __getOwnPropDesc$p = Object.getOwnPropertyDescriptor;
|
|
4079
4299
|
var __decorateClass$p = (decorators, target, key, kind) => {
|
|
4080
4300
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$p(target, key) : target;
|
|
4081
|
-
for (var
|
|
4082
|
-
if (decorator = decorators[
|
|
4301
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
4302
|
+
if (decorator = decorators[i3])
|
|
4083
4303
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4084
4304
|
if (kind && result)
|
|
4085
4305
|
__defProp$p(target, key, result);
|
|
4086
4306
|
return result;
|
|
4087
4307
|
};
|
|
4088
|
-
let WcmModalToast = class extends s {
|
|
4308
|
+
let WcmModalToast = class extends s$1 {
|
|
4089
4309
|
constructor() {
|
|
4090
4310
|
super();
|
|
4091
4311
|
this.open = false;
|
|
@@ -4114,15 +4334,15 @@ let WcmModalToast = class extends s {
|
|
|
4114
4334
|
"wcm-success": variant === "success",
|
|
4115
4335
|
"wcm-error": variant === "error"
|
|
4116
4336
|
};
|
|
4117
|
-
return this.open ? x`<div class="${
|
|
4337
|
+
return this.open ? x`<div class="${o$1(classes)}">${variant === "success" ? SvgUtil.CHECKMARK_ICON : null} ${variant === "error" ? SvgUtil.CROSS_ICON : null}<wcm-text variant="small-regular">${message}</wcm-text></div>` : null;
|
|
4118
4338
|
}
|
|
4119
4339
|
};
|
|
4120
4340
|
WcmModalToast.styles = [ThemeUtil.globalCss, styles$l];
|
|
4121
4341
|
__decorateClass$p([
|
|
4122
|
-
t$
|
|
4342
|
+
t$2()
|
|
4123
4343
|
], WcmModalToast.prototype, "open", 2);
|
|
4124
4344
|
WcmModalToast = __decorateClass$p([
|
|
4125
|
-
e$
|
|
4345
|
+
e$3("wcm-modal-toast")
|
|
4126
4346
|
], WcmModalToast);
|
|
4127
4347
|
const CONNECTING_ERROR_MARGIN = 0.1;
|
|
4128
4348
|
const CIRCLE_SIZE_MODIFIER = 2.5;
|
|
@@ -4161,10 +4381,10 @@ const QrCodeUtil = {
|
|
|
4161
4381
|
const x1 = (matrix.length - QRCODE_MATRIX_MARGIN) * cellSize * x2;
|
|
4162
4382
|
const y1 = (matrix.length - QRCODE_MATRIX_MARGIN) * cellSize * y2;
|
|
4163
4383
|
const borderRadius = 0.45;
|
|
4164
|
-
for (let
|
|
4165
|
-
const dotSize = cellSize * (QRCODE_MATRIX_MARGIN -
|
|
4384
|
+
for (let i3 = 0; i3 < qrList.length; i3 += 1) {
|
|
4385
|
+
const dotSize = cellSize * (QRCODE_MATRIX_MARGIN - i3 * 2);
|
|
4166
4386
|
dots.push(
|
|
4167
|
-
b`<rect fill="${
|
|
4387
|
+
b$1`<rect fill="${i3 % 2 === 0 ? dotColor : edgeColor}" height="${dotSize}" rx="${dotSize * borderRadius}" ry="${dotSize * borderRadius}" width="${dotSize}" x="${x1 + cellSize * i3}" y="${y1 + cellSize * i3}">`
|
|
4168
4388
|
);
|
|
4169
4389
|
}
|
|
4170
4390
|
});
|
|
@@ -4172,13 +4392,13 @@ const QrCodeUtil = {
|
|
|
4172
4392
|
const matrixMiddleStart = matrix.length / 2 - clearArenaSize / 2;
|
|
4173
4393
|
const matrixMiddleEnd = matrix.length / 2 + clearArenaSize / 2 - 1;
|
|
4174
4394
|
const circles = [];
|
|
4175
|
-
matrix.forEach((row,
|
|
4176
|
-
row.forEach((_2,
|
|
4177
|
-
if (matrix[
|
|
4178
|
-
if (!(
|
|
4179
|
-
if (!(
|
|
4180
|
-
const cx =
|
|
4181
|
-
const cy =
|
|
4395
|
+
matrix.forEach((row, i3) => {
|
|
4396
|
+
row.forEach((_2, j2) => {
|
|
4397
|
+
if (matrix[i3][j2]) {
|
|
4398
|
+
if (!(i3 < QRCODE_MATRIX_MARGIN && j2 < QRCODE_MATRIX_MARGIN || i3 > matrix.length - (QRCODE_MATRIX_MARGIN + 1) && j2 < QRCODE_MATRIX_MARGIN || i3 < QRCODE_MATRIX_MARGIN && j2 > matrix.length - (QRCODE_MATRIX_MARGIN + 1))) {
|
|
4399
|
+
if (!(i3 > matrixMiddleStart && i3 < matrixMiddleEnd && j2 > matrixMiddleStart && j2 < matrixMiddleEnd)) {
|
|
4400
|
+
const cx = i3 * cellSize + cellSize / 2;
|
|
4401
|
+
const cy = j2 * cellSize + cellSize / 2;
|
|
4182
4402
|
circles.push([cx, cy]);
|
|
4183
4403
|
}
|
|
4184
4404
|
}
|
|
@@ -4201,7 +4421,7 @@ const QrCodeUtil = {
|
|
|
4201
4421
|
}).forEach(([cx, cys]) => {
|
|
4202
4422
|
cys.forEach((cy) => {
|
|
4203
4423
|
dots.push(
|
|
4204
|
-
b`<circle cx="${cx}" cy="${cy}" fill="${dotColor}" r="${cellSize / CIRCLE_SIZE_MODIFIER}">`
|
|
4424
|
+
b$1`<circle cx="${cx}" cy="${cy}" fill="${dotColor}" r="${cellSize / CIRCLE_SIZE_MODIFIER}">`
|
|
4205
4425
|
);
|
|
4206
4426
|
});
|
|
4207
4427
|
});
|
|
@@ -4225,26 +4445,26 @@ const QrCodeUtil = {
|
|
|
4225
4445
|
}).forEach(([cx, groups]) => {
|
|
4226
4446
|
groups.forEach(([y1, y2]) => {
|
|
4227
4447
|
dots.push(
|
|
4228
|
-
b`<line x1="${cx}" x2="${cx}" y1="${y1}" y2="${y2}" stroke="${dotColor}" stroke-width="${cellSize / (CIRCLE_SIZE_MODIFIER / 2)}" stroke-linecap="round">`
|
|
4448
|
+
b$1`<line x1="${cx}" x2="${cx}" y1="${y1}" y2="${y2}" stroke="${dotColor}" stroke-width="${cellSize / (CIRCLE_SIZE_MODIFIER / 2)}" stroke-linecap="round">`
|
|
4229
4449
|
);
|
|
4230
4450
|
});
|
|
4231
4451
|
});
|
|
4232
4452
|
return dots;
|
|
4233
4453
|
}
|
|
4234
4454
|
};
|
|
4235
|
-
const styles$k = i$
|
|
4455
|
+
const styles$k = i$4`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;aspect-ratio:1/1;animation:fadeIn ease .2s}.wcm-dark{background-color:#fff;border-radius:var(--wcm-container-border-radius);padding:18px;box-shadow:0 2px 5px #000}svg:first-child,wcm-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{width:25%;height:25%;border-radius:var(--wcm-wallet-icon-border-radius)}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--wcm-accent-color)}svg:first-child path:last-child{stroke:var(--wcm-color-overlay)}`;
|
|
4236
4456
|
var __defProp$o = Object.defineProperty;
|
|
4237
4457
|
var __getOwnPropDesc$o = Object.getOwnPropertyDescriptor;
|
|
4238
4458
|
var __decorateClass$o = (decorators, target, key, kind) => {
|
|
4239
4459
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$o(target, key) : target;
|
|
4240
|
-
for (var
|
|
4241
|
-
if (decorator = decorators[
|
|
4460
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
4461
|
+
if (decorator = decorators[i3])
|
|
4242
4462
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4243
4463
|
if (kind && result)
|
|
4244
4464
|
__defProp$o(target, key, result);
|
|
4245
4465
|
return result;
|
|
4246
4466
|
};
|
|
4247
|
-
exports.WcmQrCode = class WcmQrCode extends s {
|
|
4467
|
+
exports.WcmQrCode = class WcmQrCode extends s$1 {
|
|
4248
4468
|
constructor() {
|
|
4249
4469
|
super(...arguments);
|
|
4250
4470
|
this.uri = "";
|
|
@@ -4257,48 +4477,48 @@ exports.WcmQrCode = class WcmQrCode extends s {
|
|
|
4257
4477
|
svgTemplate() {
|
|
4258
4478
|
const isLightMode = index.ThemeCtrl.state.themeMode === "light";
|
|
4259
4479
|
const size = isLightMode ? this.size : this.size - 18 * 2;
|
|
4260
|
-
return b`<svg height="${size}" width="${size}">${QrCodeUtil.generate(this.uri, size, size / 4)}</svg>`;
|
|
4480
|
+
return b$1`<svg height="${size}" width="${size}">${QrCodeUtil.generate(this.uri, size, size / 4)}</svg>`;
|
|
4261
4481
|
}
|
|
4262
4482
|
// -- render ------------------------------------------------------- //
|
|
4263
4483
|
render() {
|
|
4264
4484
|
const classes = {
|
|
4265
4485
|
"wcm-dark": index.ThemeCtrl.state.themeMode === "dark"
|
|
4266
4486
|
};
|
|
4267
|
-
return x`<div style="${`width: ${this.size}px`}" class="${
|
|
4487
|
+
return x`<div style="${`width: ${this.size}px`}" class="${o$1(classes)}">${this.walletId || this.imageUrl ? x`<wcm-wallet-image walletId="${l(this.walletId)}" imageId="${l(this.imageId)}" imageUrl="${l(this.imageUrl)}"></wcm-wallet-image>` : SvgUtil.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}</div>`;
|
|
4268
4488
|
}
|
|
4269
4489
|
};
|
|
4270
4490
|
exports.WcmQrCode.styles = [ThemeUtil.globalCss, styles$k];
|
|
4271
4491
|
__decorateClass$o([
|
|
4272
|
-
n$
|
|
4492
|
+
n$2()
|
|
4273
4493
|
], exports.WcmQrCode.prototype, "uri", 2);
|
|
4274
4494
|
__decorateClass$o([
|
|
4275
|
-
n$
|
|
4495
|
+
n$2({ type: Number })
|
|
4276
4496
|
], exports.WcmQrCode.prototype, "size", 2);
|
|
4277
4497
|
__decorateClass$o([
|
|
4278
|
-
n$
|
|
4498
|
+
n$2()
|
|
4279
4499
|
], exports.WcmQrCode.prototype, "imageId", 2);
|
|
4280
4500
|
__decorateClass$o([
|
|
4281
|
-
n$
|
|
4501
|
+
n$2()
|
|
4282
4502
|
], exports.WcmQrCode.prototype, "walletId", 2);
|
|
4283
4503
|
__decorateClass$o([
|
|
4284
|
-
n$
|
|
4504
|
+
n$2()
|
|
4285
4505
|
], exports.WcmQrCode.prototype, "imageUrl", 2);
|
|
4286
4506
|
exports.WcmQrCode = __decorateClass$o([
|
|
4287
|
-
e$
|
|
4507
|
+
e$3("wcm-qrcode")
|
|
4288
4508
|
], exports.WcmQrCode);
|
|
4289
|
-
const styles$j = i$
|
|
4509
|
+
const styles$j = i$4`:host{position:relative;height:28px;width:80%}input{width:100%;height:100%;line-height:28px!important;border-radius:var(--wcm-input-border-radius);font-style:normal;font-family:-apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif;font-feature-settings:'case' on;font-weight:500;font-size:16px;letter-spacing:-.03em;padding:0 10px 0 34px;transition:.2s all ease;color:var(--wcm-color-fg-1);background-color:var(--wcm-color-bg-3);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay);caret-color:var(--wcm-accent-color)}input::placeholder{color:var(--wcm-color-fg-2)}svg{left:10px;top:4px;pointer-events:none;position:absolute;width:20px;height:20px}input:focus-within{box-shadow:inset 0 0 0 1px var(--wcm-accent-color)}path{fill:var(--wcm-color-fg-2)}`;
|
|
4290
4510
|
var __defProp$n = Object.defineProperty;
|
|
4291
4511
|
var __getOwnPropDesc$n = Object.getOwnPropertyDescriptor;
|
|
4292
4512
|
var __decorateClass$n = (decorators, target, key, kind) => {
|
|
4293
4513
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$n(target, key) : target;
|
|
4294
|
-
for (var
|
|
4295
|
-
if (decorator = decorators[
|
|
4514
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
4515
|
+
if (decorator = decorators[i3])
|
|
4296
4516
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4297
4517
|
if (kind && result)
|
|
4298
4518
|
__defProp$n(target, key, result);
|
|
4299
4519
|
return result;
|
|
4300
4520
|
};
|
|
4301
|
-
let WcmSearchInput = class extends s {
|
|
4521
|
+
let WcmSearchInput = class extends s$1 {
|
|
4302
4522
|
constructor() {
|
|
4303
4523
|
super(...arguments);
|
|
4304
4524
|
this.onChange = () => null;
|
|
@@ -4310,21 +4530,21 @@ let WcmSearchInput = class extends s {
|
|
|
4310
4530
|
};
|
|
4311
4531
|
WcmSearchInput.styles = [ThemeUtil.globalCss, styles$j];
|
|
4312
4532
|
__decorateClass$n([
|
|
4313
|
-
n$
|
|
4533
|
+
n$2()
|
|
4314
4534
|
], WcmSearchInput.prototype, "onChange", 2);
|
|
4315
4535
|
WcmSearchInput = __decorateClass$n([
|
|
4316
|
-
e$
|
|
4536
|
+
e$3("wcm-search-input")
|
|
4317
4537
|
], WcmSearchInput);
|
|
4318
|
-
const styles$i = i$
|
|
4538
|
+
const styles$i = i$4`@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}svg{animation:rotate 2s linear infinite;display:flex;justify-content:center;align-items:center}svg circle{stroke-linecap:round;animation:dash 1.5s ease infinite;stroke:var(--wcm-accent-color)}`;
|
|
4319
4539
|
var __getOwnPropDesc$m = Object.getOwnPropertyDescriptor;
|
|
4320
4540
|
var __decorateClass$m = (decorators, target, key, kind) => {
|
|
4321
4541
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$m(target, key) : target;
|
|
4322
|
-
for (var
|
|
4323
|
-
if (decorator = decorators[
|
|
4542
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
4543
|
+
if (decorator = decorators[i3])
|
|
4324
4544
|
result = decorator(result) || result;
|
|
4325
4545
|
return result;
|
|
4326
4546
|
};
|
|
4327
|
-
let WcmSpinner = class extends s {
|
|
4547
|
+
let WcmSpinner = class extends s$1 {
|
|
4328
4548
|
// -- render ------------------------------------------------------- //
|
|
4329
4549
|
render() {
|
|
4330
4550
|
return x`<svg viewBox="0 0 50 50" width="24" height="24"><circle cx="25" cy="25" r="20" fill="none" stroke-width="4" stroke="#fff"/></svg>`;
|
|
@@ -4332,21 +4552,21 @@ let WcmSpinner = class extends s {
|
|
|
4332
4552
|
};
|
|
4333
4553
|
WcmSpinner.styles = [ThemeUtil.globalCss, styles$i];
|
|
4334
4554
|
WcmSpinner = __decorateClass$m([
|
|
4335
|
-
e$
|
|
4555
|
+
e$3("wcm-spinner")
|
|
4336
4556
|
], WcmSpinner);
|
|
4337
|
-
const styles$h = i$
|
|
4557
|
+
const styles$h = i$4`span{font-style:normal;font-family:var(--wcm-font-family);font-feature-settings:var(--wcm-font-feature-settings)}.wcm-xsmall-bold{font-family:var(--wcm-text-xsmall-bold-font-family);font-weight:var(--wcm-text-xsmall-bold-weight);font-size:var(--wcm-text-xsmall-bold-size);line-height:var(--wcm-text-xsmall-bold-line-height);letter-spacing:var(--wcm-text-xsmall-bold-letter-spacing);text-transform:var(--wcm-text-xsmall-bold-text-transform)}.wcm-xsmall-regular{font-family:var(--wcm-text-xsmall-regular-font-family);font-weight:var(--wcm-text-xsmall-regular-weight);font-size:var(--wcm-text-xsmall-regular-size);line-height:var(--wcm-text-xsmall-regular-line-height);letter-spacing:var(--wcm-text-xsmall-regular-letter-spacing);text-transform:var(--wcm-text-xsmall-regular-text-transform)}.wcm-small-thin{font-family:var(--wcm-text-small-thin-font-family);font-weight:var(--wcm-text-small-thin-weight);font-size:var(--wcm-text-small-thin-size);line-height:var(--wcm-text-small-thin-line-height);letter-spacing:var(--wcm-text-small-thin-letter-spacing);text-transform:var(--wcm-text-small-thin-text-transform)}.wcm-small-regular{font-family:var(--wcm-text-small-regular-font-family);font-weight:var(--wcm-text-small-regular-weight);font-size:var(--wcm-text-small-regular-size);line-height:var(--wcm-text-small-regular-line-height);letter-spacing:var(--wcm-text-small-regular-letter-spacing);text-transform:var(--wcm-text-small-regular-text-transform)}.wcm-medium-regular{font-family:var(--wcm-text-medium-regular-font-family);font-weight:var(--wcm-text-medium-regular-weight);font-size:var(--wcm-text-medium-regular-size);line-height:var(--wcm-text-medium-regular-line-height);letter-spacing:var(--wcm-text-medium-regular-letter-spacing);text-transform:var(--wcm-text-medium-regular-text-transform)}.wcm-big-bold{font-family:var(--wcm-text-big-bold-font-family);font-weight:var(--wcm-text-big-bold-weight);font-size:var(--wcm-text-big-bold-size);line-height:var(--wcm-text-big-bold-line-height);letter-spacing:var(--wcm-text-big-bold-letter-spacing);text-transform:var(--wcm-text-big-bold-text-transform)}:host(*){color:var(--wcm-color-fg-1)}.wcm-color-primary{color:var(--wcm-color-fg-1)}.wcm-color-secondary{color:var(--wcm-color-fg-2)}.wcm-color-tertiary{color:var(--wcm-color-fg-3)}.wcm-color-inverse{color:var(--wcm-accent-fill-color)}.wcm-color-accnt{color:var(--wcm-accent-color)}.wcm-color-error{color:var(--wcm-error-color)}`;
|
|
4338
4558
|
var __defProp$l = Object.defineProperty;
|
|
4339
4559
|
var __getOwnPropDesc$l = Object.getOwnPropertyDescriptor;
|
|
4340
4560
|
var __decorateClass$l = (decorators, target, key, kind) => {
|
|
4341
4561
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$l(target, key) : target;
|
|
4342
|
-
for (var
|
|
4343
|
-
if (decorator = decorators[
|
|
4562
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
4563
|
+
if (decorator = decorators[i3])
|
|
4344
4564
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4345
4565
|
if (kind && result)
|
|
4346
4566
|
__defProp$l(target, key, result);
|
|
4347
4567
|
return result;
|
|
4348
4568
|
};
|
|
4349
|
-
let WcmText = class extends s {
|
|
4569
|
+
let WcmText = class extends s$1 {
|
|
4350
4570
|
constructor() {
|
|
4351
4571
|
super(...arguments);
|
|
4352
4572
|
this.variant = "medium-regular";
|
|
@@ -4368,32 +4588,32 @@ let WcmText = class extends s {
|
|
|
4368
4588
|
"wcm-color-accnt": this.color === "accent",
|
|
4369
4589
|
"wcm-color-error": this.color === "error"
|
|
4370
4590
|
};
|
|
4371
|
-
return x`<span><slot class="${
|
|
4591
|
+
return x`<span><slot class="${o$1(classes)}"></slot></span>`;
|
|
4372
4592
|
}
|
|
4373
4593
|
};
|
|
4374
4594
|
WcmText.styles = [ThemeUtil.globalCss, styles$h];
|
|
4375
4595
|
__decorateClass$l([
|
|
4376
|
-
n$
|
|
4596
|
+
n$2()
|
|
4377
4597
|
], WcmText.prototype, "variant", 2);
|
|
4378
4598
|
__decorateClass$l([
|
|
4379
|
-
n$
|
|
4599
|
+
n$2()
|
|
4380
4600
|
], WcmText.prototype, "color", 2);
|
|
4381
4601
|
WcmText = __decorateClass$l([
|
|
4382
|
-
e$
|
|
4602
|
+
e$3("wcm-text")
|
|
4383
4603
|
], WcmText);
|
|
4384
|
-
const styles$g = i$
|
|
4604
|
+
const styles$g = i$4`button{width:100%;height:100%;border-radius:var(--wcm-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}wcm-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}wcm-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--wcm-wallet-icon-border-radius);margin-bottom:5px}.wcm-sublabel{margin-top:2px}`;
|
|
4385
4605
|
var __defProp$k = Object.defineProperty;
|
|
4386
4606
|
var __getOwnPropDesc$k = Object.getOwnPropertyDescriptor;
|
|
4387
4607
|
var __decorateClass$k = (decorators, target, key, kind) => {
|
|
4388
4608
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$k(target, key) : target;
|
|
4389
|
-
for (var
|
|
4390
|
-
if (decorator = decorators[
|
|
4609
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
4610
|
+
if (decorator = decorators[i3])
|
|
4391
4611
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4392
4612
|
if (kind && result)
|
|
4393
4613
|
__defProp$k(target, key, result);
|
|
4394
4614
|
return result;
|
|
4395
4615
|
};
|
|
4396
|
-
let WcmWalletButton = class extends s {
|
|
4616
|
+
let WcmWalletButton = class extends s$1 {
|
|
4397
4617
|
constructor() {
|
|
4398
4618
|
super(...arguments);
|
|
4399
4619
|
this.onClick = () => null;
|
|
@@ -4425,42 +4645,42 @@ let WcmWalletButton = class extends s {
|
|
|
4425
4645
|
};
|
|
4426
4646
|
WcmWalletButton.styles = [ThemeUtil.globalCss, styles$g];
|
|
4427
4647
|
__decorateClass$k([
|
|
4428
|
-
n$
|
|
4648
|
+
n$2()
|
|
4429
4649
|
], WcmWalletButton.prototype, "onClick", 2);
|
|
4430
4650
|
__decorateClass$k([
|
|
4431
|
-
n$
|
|
4651
|
+
n$2()
|
|
4432
4652
|
], WcmWalletButton.prototype, "name", 2);
|
|
4433
4653
|
__decorateClass$k([
|
|
4434
|
-
n$
|
|
4654
|
+
n$2()
|
|
4435
4655
|
], WcmWalletButton.prototype, "walletId", 2);
|
|
4436
4656
|
__decorateClass$k([
|
|
4437
|
-
n$
|
|
4657
|
+
n$2()
|
|
4438
4658
|
], WcmWalletButton.prototype, "label", 2);
|
|
4439
4659
|
__decorateClass$k([
|
|
4440
|
-
n$
|
|
4660
|
+
n$2()
|
|
4441
4661
|
], WcmWalletButton.prototype, "imageId", 2);
|
|
4442
4662
|
__decorateClass$k([
|
|
4443
|
-
n$
|
|
4663
|
+
n$2({ type: Boolean })
|
|
4444
4664
|
], WcmWalletButton.prototype, "installed", 2);
|
|
4445
4665
|
__decorateClass$k([
|
|
4446
|
-
n$
|
|
4666
|
+
n$2({ type: Boolean })
|
|
4447
4667
|
], WcmWalletButton.prototype, "recent", 2);
|
|
4448
4668
|
WcmWalletButton = __decorateClass$k([
|
|
4449
|
-
e$
|
|
4669
|
+
e$3("wcm-wallet-button")
|
|
4450
4670
|
], WcmWalletButton);
|
|
4451
|
-
const styles$f = i$
|
|
4671
|
+
const styles$f = i$4`:host{display:block}div{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%;background-color:var(--wcm-color-overlay)}svg{position:relative;width:100%;height:100%}div::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;border-radius:inherit;border:1px solid var(--wcm-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;
|
|
4452
4672
|
var __defProp$j = Object.defineProperty;
|
|
4453
4673
|
var __getOwnPropDesc$j = Object.getOwnPropertyDescriptor;
|
|
4454
4674
|
var __decorateClass$j = (decorators, target, key, kind) => {
|
|
4455
4675
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$j(target, key) : target;
|
|
4456
|
-
for (var
|
|
4457
|
-
if (decorator = decorators[
|
|
4676
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
4677
|
+
if (decorator = decorators[i3])
|
|
4458
4678
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4459
4679
|
if (kind && result)
|
|
4460
4680
|
__defProp$j(target, key, result);
|
|
4461
4681
|
return result;
|
|
4462
4682
|
};
|
|
4463
|
-
let WcmWalletImage = class extends s {
|
|
4683
|
+
let WcmWalletImage = class extends s$1 {
|
|
4464
4684
|
constructor() {
|
|
4465
4685
|
super(...arguments);
|
|
4466
4686
|
this.walletId = "";
|
|
@@ -4476,29 +4696,29 @@ let WcmWalletImage = class extends s {
|
|
|
4476
4696
|
};
|
|
4477
4697
|
WcmWalletImage.styles = [ThemeUtil.globalCss, styles$f];
|
|
4478
4698
|
__decorateClass$j([
|
|
4479
|
-
n$
|
|
4699
|
+
n$2()
|
|
4480
4700
|
], WcmWalletImage.prototype, "walletId", 2);
|
|
4481
4701
|
__decorateClass$j([
|
|
4482
|
-
n$
|
|
4702
|
+
n$2()
|
|
4483
4703
|
], WcmWalletImage.prototype, "imageId", 2);
|
|
4484
4704
|
__decorateClass$j([
|
|
4485
|
-
n$
|
|
4705
|
+
n$2()
|
|
4486
4706
|
], WcmWalletImage.prototype, "imageUrl", 2);
|
|
4487
4707
|
WcmWalletImage = __decorateClass$j([
|
|
4488
|
-
e$
|
|
4708
|
+
e$3("wcm-wallet-image")
|
|
4489
4709
|
], WcmWalletImage);
|
|
4490
4710
|
var __defProp$i = Object.defineProperty;
|
|
4491
4711
|
var __getOwnPropDesc$i = Object.getOwnPropertyDescriptor;
|
|
4492
4712
|
var __decorateClass$i = (decorators, target, key, kind) => {
|
|
4493
4713
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$i(target, key) : target;
|
|
4494
|
-
for (var
|
|
4495
|
-
if (decorator = decorators[
|
|
4714
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
4715
|
+
if (decorator = decorators[i3])
|
|
4496
4716
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4497
4717
|
if (kind && result)
|
|
4498
4718
|
__defProp$i(target, key, result);
|
|
4499
4719
|
return result;
|
|
4500
4720
|
};
|
|
4501
|
-
let WcmExplorerContext = class extends s {
|
|
4721
|
+
let WcmExplorerContext = class extends s$1 {
|
|
4502
4722
|
// -- lifecycle ---------------------------------------------------- //
|
|
4503
4723
|
constructor() {
|
|
4504
4724
|
super();
|
|
@@ -4543,20 +4763,20 @@ let WcmExplorerContext = class extends s {
|
|
|
4543
4763
|
}
|
|
4544
4764
|
};
|
|
4545
4765
|
__decorateClass$i([
|
|
4546
|
-
t$
|
|
4766
|
+
t$2()
|
|
4547
4767
|
], WcmExplorerContext.prototype, "preload", 2);
|
|
4548
4768
|
WcmExplorerContext = __decorateClass$i([
|
|
4549
|
-
e$
|
|
4769
|
+
e$3("wcm-explorer-context")
|
|
4550
4770
|
], WcmExplorerContext);
|
|
4551
4771
|
var __getOwnPropDesc$h = Object.getOwnPropertyDescriptor;
|
|
4552
4772
|
var __decorateClass$h = (decorators, target, key, kind) => {
|
|
4553
4773
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$h(target, key) : target;
|
|
4554
|
-
for (var
|
|
4555
|
-
if (decorator = decorators[
|
|
4774
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
4775
|
+
if (decorator = decorators[i3])
|
|
4556
4776
|
result = decorator(result) || result;
|
|
4557
4777
|
return result;
|
|
4558
4778
|
};
|
|
4559
|
-
let WcmThemeContext = class extends s {
|
|
4779
|
+
let WcmThemeContext = class extends s$1 {
|
|
4560
4780
|
// -- lifecycle ---------------------------------------------------- //
|
|
4561
4781
|
constructor() {
|
|
4562
4782
|
super();
|
|
@@ -4570,18 +4790,18 @@ let WcmThemeContext = class extends s {
|
|
|
4570
4790
|
}
|
|
4571
4791
|
};
|
|
4572
4792
|
WcmThemeContext = __decorateClass$h([
|
|
4573
|
-
e$
|
|
4793
|
+
e$3("wcm-theme-context")
|
|
4574
4794
|
], WcmThemeContext);
|
|
4575
|
-
const styles$e = i$
|
|
4795
|
+
const styles$e = i$4`@keyframes scroll{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(calc(-70px * 9),0,0)}}.wcm-slider{position:relative;overflow-x:hidden;padding:10px 0;margin:0 -20px;width:calc(100% + 40px)}.wcm-track{display:flex;width:calc(70px * 18);animation:scroll 20s linear infinite;opacity:.7}.wcm-track svg{margin:0 5px}wcm-wallet-image{width:60px;height:60px;margin:0 5px;border-radius:var(--wcm-wallet-icon-border-radius)}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-title{display:flex;align-items:center;margin-bottom:10px}.wcm-title svg{margin-right:6px}.wcm-title path{fill:var(--wcm-accent-color)}wcm-modal-footer .wcm-title{padding:0 10px}wcm-button-big{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%);filter:drop-shadow(0 0 17px var(--wcm-color-bg-1))}wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-info-footer wcm-text{text-align:center;margin-bottom:15px}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;
|
|
4576
4796
|
var __getOwnPropDesc$g = Object.getOwnPropertyDescriptor;
|
|
4577
4797
|
var __decorateClass$g = (decorators, target, key, kind) => {
|
|
4578
4798
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$g(target, key) : target;
|
|
4579
|
-
for (var
|
|
4580
|
-
if (decorator = decorators[
|
|
4799
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
4800
|
+
if (decorator = decorators[i3])
|
|
4581
4801
|
result = decorator(result) || result;
|
|
4582
4802
|
return result;
|
|
4583
4803
|
};
|
|
4584
|
-
let WcmAndroidWalletSelection = class extends s {
|
|
4804
|
+
let WcmAndroidWalletSelection = class extends s$1 {
|
|
4585
4805
|
// -- private ------------------------------------------------------ //
|
|
4586
4806
|
onGoToQrcode() {
|
|
4587
4807
|
index.RouterCtrl.push("Qrcode");
|
|
@@ -4599,21 +4819,21 @@ let WcmAndroidWalletSelection = class extends s {
|
|
|
4599
4819
|
};
|
|
4600
4820
|
WcmAndroidWalletSelection.styles = [ThemeUtil.globalCss, styles$e];
|
|
4601
4821
|
WcmAndroidWalletSelection = __decorateClass$g([
|
|
4602
|
-
e$
|
|
4822
|
+
e$3("wcm-android-wallet-selection")
|
|
4603
4823
|
], WcmAndroidWalletSelection);
|
|
4604
|
-
const styles$d = i$
|
|
4824
|
+
const styles$d = i$4`@keyframes loading{to{stroke-dashoffset:0}}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(1px,0,0)}30%,50%,70%{transform:translate3d(-2px,0,0)}40%,60%{transform:translate3d(2px,0,0)}}:host{display:flex;flex-direction:column;align-items:center}div{position:relative;width:110px;height:110px;display:flex;justify-content:center;align-items:center;margin:40px 0 20px 0;transform:translate3d(0,0,0)}svg{position:absolute;width:110px;height:110px;fill:none;stroke:transparent;stroke-linecap:round;stroke-width:2px;top:0;left:0}use{stroke:var(--wcm-accent-color);animation:loading 1s linear infinite}wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:90px;height:90px}wcm-text{margin-bottom:40px}.wcm-error svg{stroke:var(--wcm-error-color)}.wcm-error use{display:none}.wcm-error{animation:shake .4s cubic-bezier(.36,.07,.19,.97) both}.wcm-stale svg,.wcm-stale use{display:none}`;
|
|
4605
4825
|
var __defProp$f = Object.defineProperty;
|
|
4606
4826
|
var __getOwnPropDesc$f = Object.getOwnPropertyDescriptor;
|
|
4607
4827
|
var __decorateClass$f = (decorators, target, key, kind) => {
|
|
4608
4828
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$f(target, key) : target;
|
|
4609
|
-
for (var
|
|
4610
|
-
if (decorator = decorators[
|
|
4829
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
4830
|
+
if (decorator = decorators[i3])
|
|
4611
4831
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4612
4832
|
if (kind && result)
|
|
4613
4833
|
__defProp$f(target, key, result);
|
|
4614
4834
|
return result;
|
|
4615
4835
|
};
|
|
4616
|
-
let WcmConnectorWaiting = class extends s {
|
|
4836
|
+
let WcmConnectorWaiting = class extends s$1 {
|
|
4617
4837
|
constructor() {
|
|
4618
4838
|
super(...arguments);
|
|
4619
4839
|
this.walletId = void 0;
|
|
@@ -4646,27 +4866,27 @@ let WcmConnectorWaiting = class extends s {
|
|
|
4646
4866
|
"wcm-error": this.isError,
|
|
4647
4867
|
"wcm-stale": this.isStale
|
|
4648
4868
|
};
|
|
4649
|
-
return x`<div class="${
|
|
4869
|
+
return x`<div class="${o$1(classes)}">${this.svgLoaderTemplate()}<wcm-wallet-image walletId="${l(this.walletId)}" imageId="${l(this.imageId)}"></wcm-wallet-image></div><wcm-text variant="medium-regular" color="${this.isError ? "error" : "primary"}">${this.isError ? "Connection declined" : this.label}</wcm-text>`;
|
|
4650
4870
|
}
|
|
4651
4871
|
};
|
|
4652
4872
|
WcmConnectorWaiting.styles = [ThemeUtil.globalCss, styles$d];
|
|
4653
4873
|
__decorateClass$f([
|
|
4654
|
-
n$
|
|
4874
|
+
n$2()
|
|
4655
4875
|
], WcmConnectorWaiting.prototype, "walletId", 2);
|
|
4656
4876
|
__decorateClass$f([
|
|
4657
|
-
n$
|
|
4877
|
+
n$2()
|
|
4658
4878
|
], WcmConnectorWaiting.prototype, "imageId", 2);
|
|
4659
4879
|
__decorateClass$f([
|
|
4660
|
-
n$
|
|
4880
|
+
n$2({ type: Boolean })
|
|
4661
4881
|
], WcmConnectorWaiting.prototype, "isError", 2);
|
|
4662
4882
|
__decorateClass$f([
|
|
4663
|
-
n$
|
|
4883
|
+
n$2({ type: Boolean })
|
|
4664
4884
|
], WcmConnectorWaiting.prototype, "isStale", 2);
|
|
4665
4885
|
__decorateClass$f([
|
|
4666
|
-
n$
|
|
4886
|
+
n$2()
|
|
4667
4887
|
], WcmConnectorWaiting.prototype, "label", 2);
|
|
4668
4888
|
WcmConnectorWaiting = __decorateClass$f([
|
|
4669
|
-
e$
|
|
4889
|
+
e$3("wcm-connector-waiting")
|
|
4670
4890
|
], WcmConnectorWaiting);
|
|
4671
4891
|
const DataUtil = {
|
|
4672
4892
|
manualWallets() {
|
|
@@ -4712,16 +4932,16 @@ const TemplateUtil = {
|
|
|
4712
4932
|
return x`<wcm-wallet-button name="${wallet.name}" walletId="${wallet.id}" imageId="${l(wallet.image_id)}" .recent="${true}" .onClick="${() => this.onConnecting(wallet)}"></wcm-wallet-button>`;
|
|
4713
4933
|
}
|
|
4714
4934
|
};
|
|
4715
|
-
const styles$c = i$
|
|
4935
|
+
const styles$c = i$4`.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-desktop-title,.wcm-mobile-title{display:flex;align-items:center}.wcm-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.wcm-desktop-title{margin-bottom:10px;padding:0 10px}.wcm-subtitle{display:flex;align-items:center}.wcm-subtitle:last-child path{fill:var(--wcm-color-fg-3)}.wcm-desktop-title svg,.wcm-mobile-title svg{margin-right:6px}.wcm-desktop-title path,.wcm-mobile-title path{fill:var(--wcm-accent-color)}`;
|
|
4716
4936
|
var __getOwnPropDesc$e = Object.getOwnPropertyDescriptor;
|
|
4717
4937
|
var __decorateClass$e = (decorators, target, key, kind) => {
|
|
4718
4938
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$e(target, key) : target;
|
|
4719
|
-
for (var
|
|
4720
|
-
if (decorator = decorators[
|
|
4939
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
4940
|
+
if (decorator = decorators[i3])
|
|
4721
4941
|
result = decorator(result) || result;
|
|
4722
4942
|
return result;
|
|
4723
4943
|
};
|
|
4724
|
-
let WcmDesktopWalletSelection = class extends s {
|
|
4944
|
+
let WcmDesktopWalletSelection = class extends s$1 {
|
|
4725
4945
|
// -- render ------------------------------------------------------- //
|
|
4726
4946
|
render() {
|
|
4727
4947
|
const { explorerExcludedWalletIds, enableExplorer } = index.ConfigCtrl.state;
|
|
@@ -4744,18 +4964,18 @@ let WcmDesktopWalletSelection = class extends s {
|
|
|
4744
4964
|
};
|
|
4745
4965
|
WcmDesktopWalletSelection.styles = [ThemeUtil.globalCss, styles$c];
|
|
4746
4966
|
WcmDesktopWalletSelection = __decorateClass$e([
|
|
4747
|
-
e$
|
|
4967
|
+
e$3("wcm-desktop-wallet-selection")
|
|
4748
4968
|
], WcmDesktopWalletSelection);
|
|
4749
|
-
const styles$b = i$
|
|
4969
|
+
const styles$b = i$4`div{background-color:var(--wcm-color-bg-2);padding:10px 20px 15px 20px;border-top:1px solid var(--wcm-color-bg-3);text-align:center}a{color:var(--wcm-accent-color);text-decoration:none;transition:opacity .2s ease-in-out;display:inline}a:active{opacity:.8}@media(hover:hover){a:hover{opacity:.8}}`;
|
|
4750
4970
|
var __getOwnPropDesc$d = Object.getOwnPropertyDescriptor;
|
|
4751
4971
|
var __decorateClass$d = (decorators, target, key, kind) => {
|
|
4752
4972
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$d(target, key) : target;
|
|
4753
|
-
for (var
|
|
4754
|
-
if (decorator = decorators[
|
|
4973
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
4974
|
+
if (decorator = decorators[i3])
|
|
4755
4975
|
result = decorator(result) || result;
|
|
4756
4976
|
return result;
|
|
4757
4977
|
};
|
|
4758
|
-
let WcmLegalNotice = class extends s {
|
|
4978
|
+
let WcmLegalNotice = class extends s$1 {
|
|
4759
4979
|
// -- render ------------------------------------------------------- //
|
|
4760
4980
|
render() {
|
|
4761
4981
|
const { termsOfServiceUrl, privacyPolicyUrl } = index.ConfigCtrl.state;
|
|
@@ -4768,18 +4988,18 @@ let WcmLegalNotice = class extends s {
|
|
|
4768
4988
|
};
|
|
4769
4989
|
WcmLegalNotice.styles = [ThemeUtil.globalCss, styles$b];
|
|
4770
4990
|
WcmLegalNotice = __decorateClass$d([
|
|
4771
|
-
e$
|
|
4991
|
+
e$3("wcm-legal-notice")
|
|
4772
4992
|
], WcmLegalNotice);
|
|
4773
|
-
const styles$a = i$
|
|
4993
|
+
const styles$a = i$4`div{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`;
|
|
4774
4994
|
var __getOwnPropDesc$c = Object.getOwnPropertyDescriptor;
|
|
4775
4995
|
var __decorateClass$c = (decorators, target, key, kind) => {
|
|
4776
4996
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$c(target, key) : target;
|
|
4777
|
-
for (var
|
|
4778
|
-
if (decorator = decorators[
|
|
4997
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
4998
|
+
if (decorator = decorators[i3])
|
|
4779
4999
|
result = decorator(result) || result;
|
|
4780
5000
|
return result;
|
|
4781
5001
|
};
|
|
4782
|
-
let WcmMobileWalletSelection = class extends s {
|
|
5002
|
+
let WcmMobileWalletSelection = class extends s$1 {
|
|
4783
5003
|
// -- private ------------------------------------------------------ //
|
|
4784
5004
|
onQrcode() {
|
|
4785
5005
|
index.RouterCtrl.push("Qrcode");
|
|
@@ -4806,21 +5026,21 @@ let WcmMobileWalletSelection = class extends s {
|
|
|
4806
5026
|
};
|
|
4807
5027
|
WcmMobileWalletSelection.styles = [ThemeUtil.globalCss, styles$a];
|
|
4808
5028
|
WcmMobileWalletSelection = __decorateClass$c([
|
|
4809
|
-
e$
|
|
5029
|
+
e$3("wcm-mobile-wallet-selection")
|
|
4810
5030
|
], WcmMobileWalletSelection);
|
|
4811
|
-
const styles$9 = i$
|
|
5031
|
+
const styles$9 = i$4`:host{all:initial}.wcm-overlay{top:0;bottom:0;left:0;right:0;position:fixed;z-index:var(--wcm-z-index);overflow:hidden;display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none;background-color:var(--wcm-overlay-background-color);backdrop-filter:var(--wcm-overlay-backdrop-filter)}@media(max-height:720px) and (orientation:landscape){.wcm-overlay{overflow:scroll;align-items:flex-start;padding:20px 0}}.wcm-active{pointer-events:auto}.wcm-container{position:relative;max-width:360px;width:100%;outline:0;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) var(--wcm-container-border-radius) var(--wcm-container-border-radius);border:1px solid var(--wcm-color-overlay);overflow:hidden}.wcm-card{width:100%;position:relative;border-radius:var(--wcm-container-border-radius);overflow:hidden;box-shadow:0 6px 14px -6px rgba(10,16,31,.12),0 10px 32px -4px rgba(10,16,31,.1),0 0 0 1px var(--wcm-color-overlay);background-color:var(--wcm-color-bg-1);color:var(--wcm-color-fg-1)}@media(max-width:600px){.wcm-container{max-width:440px;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) 0 0}.wcm-card{border-radius:var(--wcm-container-border-radius) var(--wcm-container-border-radius) 0 0}.wcm-overlay{align-items:flex-end}}@media(max-width:440px){.wcm-container{border:0}}`;
|
|
4812
5032
|
var __defProp$b = Object.defineProperty;
|
|
4813
5033
|
var __getOwnPropDesc$b = Object.getOwnPropertyDescriptor;
|
|
4814
5034
|
var __decorateClass$b = (decorators, target, key, kind) => {
|
|
4815
5035
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$b(target, key) : target;
|
|
4816
|
-
for (var
|
|
4817
|
-
if (decorator = decorators[
|
|
5036
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
5037
|
+
if (decorator = decorators[i3])
|
|
4818
5038
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4819
5039
|
if (kind && result)
|
|
4820
5040
|
__defProp$b(target, key, result);
|
|
4821
5041
|
return result;
|
|
4822
5042
|
};
|
|
4823
|
-
exports.WcmModal = class WcmModal extends s {
|
|
5043
|
+
exports.WcmModal = class WcmModal extends s$1 {
|
|
4824
5044
|
// -- lifecycle ---------------------------------------------------- //
|
|
4825
5045
|
constructor() {
|
|
4826
5046
|
super();
|
|
@@ -4922,32 +5142,32 @@ exports.WcmModal = class WcmModal extends s {
|
|
|
4922
5142
|
"wcm-overlay": true,
|
|
4923
5143
|
"wcm-active": this.active
|
|
4924
5144
|
};
|
|
4925
|
-
return x`<wcm-explorer-context></wcm-explorer-context><wcm-theme-context></wcm-theme-context><div id="wcm-modal" class="${
|
|
5145
|
+
return x`<wcm-explorer-context></wcm-explorer-context><wcm-theme-context></wcm-theme-context><div id="wcm-modal" class="${o$1(classes)}" @click="${this.onCloseModal}" role="alertdialog" aria-modal="true"><div class="wcm-container" tabindex="0">${this.open ? x`<wcm-modal-backcard></wcm-modal-backcard><div class="wcm-card"><wcm-modal-router></wcm-modal-router><wcm-modal-toast></wcm-modal-toast></div>` : null}</div></div>`;
|
|
4926
5146
|
}
|
|
4927
5147
|
};
|
|
4928
5148
|
exports.WcmModal.styles = [ThemeUtil.globalCss, styles$9];
|
|
4929
5149
|
__decorateClass$b([
|
|
4930
|
-
t$
|
|
5150
|
+
t$2()
|
|
4931
5151
|
], exports.WcmModal.prototype, "open", 2);
|
|
4932
5152
|
__decorateClass$b([
|
|
4933
|
-
t$
|
|
5153
|
+
t$2()
|
|
4934
5154
|
], exports.WcmModal.prototype, "active", 2);
|
|
4935
5155
|
exports.WcmModal = __decorateClass$b([
|
|
4936
|
-
e$
|
|
5156
|
+
e$3("wcm-modal")
|
|
4937
5157
|
], exports.WcmModal);
|
|
4938
|
-
const styles$8 = i$
|
|
5158
|
+
const styles$8 = i$4`div{display:flex;margin-top:15px}slot{display:inline-block;margin:0 5px}wcm-button{margin:0 5px}`;
|
|
4939
5159
|
var __defProp$a = Object.defineProperty;
|
|
4940
5160
|
var __getOwnPropDesc$a = Object.getOwnPropertyDescriptor;
|
|
4941
5161
|
var __decorateClass$a = (decorators, target, key, kind) => {
|
|
4942
5162
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$a(target, key) : target;
|
|
4943
|
-
for (var
|
|
4944
|
-
if (decorator = decorators[
|
|
5163
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
5164
|
+
if (decorator = decorators[i3])
|
|
4945
5165
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
4946
5166
|
if (kind && result)
|
|
4947
5167
|
__defProp$a(target, key, result);
|
|
4948
5168
|
return result;
|
|
4949
5169
|
};
|
|
4950
|
-
let WcmPlatformSelection = class extends s {
|
|
5170
|
+
let WcmPlatformSelection = class extends s$1 {
|
|
4951
5171
|
constructor() {
|
|
4952
5172
|
super(...arguments);
|
|
4953
5173
|
this.isMobile = false;
|
|
@@ -4977,30 +5197,30 @@ let WcmPlatformSelection = class extends s {
|
|
|
4977
5197
|
};
|
|
4978
5198
|
WcmPlatformSelection.styles = [ThemeUtil.globalCss, styles$8];
|
|
4979
5199
|
__decorateClass$a([
|
|
4980
|
-
n$
|
|
5200
|
+
n$2({ type: Boolean })
|
|
4981
5201
|
], WcmPlatformSelection.prototype, "isMobile", 2);
|
|
4982
5202
|
__decorateClass$a([
|
|
4983
|
-
n$
|
|
5203
|
+
n$2({ type: Boolean })
|
|
4984
5204
|
], WcmPlatformSelection.prototype, "isDesktop", 2);
|
|
4985
5205
|
__decorateClass$a([
|
|
4986
|
-
n$
|
|
5206
|
+
n$2({ type: Boolean })
|
|
4987
5207
|
], WcmPlatformSelection.prototype, "isWeb", 2);
|
|
4988
5208
|
__decorateClass$a([
|
|
4989
|
-
n$
|
|
5209
|
+
n$2({ type: Boolean })
|
|
4990
5210
|
], WcmPlatformSelection.prototype, "isRetry", 2);
|
|
4991
5211
|
WcmPlatformSelection = __decorateClass$a([
|
|
4992
|
-
e$
|
|
5212
|
+
e$3("wcm-platform-selection")
|
|
4993
5213
|
], WcmPlatformSelection);
|
|
4994
|
-
const styles$7 = i$
|
|
5214
|
+
const styles$7 = i$4`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:var(--wcm-button-hover-highlight-border-radius);height:100%;justify-content:flex-start}.wcm-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:var(--wcm-wallet-icon-border-radius);justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--wcm-color-bg-2);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}.wcm-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:calc(var(--wcm-wallet-icon-border-radius)/ 2);border:1px solid var(--wcm-color-overlay)}.wcm-icons svg{width:21px;height:21px}.wcm-icons img:nth-child(1),.wcm-icons img:nth-child(2),.wcm-icons svg:nth-child(1),.wcm-icons svg:nth-child(2){margin-bottom:4px}wcm-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;
|
|
4995
5215
|
var __getOwnPropDesc$9 = Object.getOwnPropertyDescriptor;
|
|
4996
5216
|
var __decorateClass$9 = (decorators, target, key, kind) => {
|
|
4997
5217
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$9(target, key) : target;
|
|
4998
|
-
for (var
|
|
4999
|
-
if (decorator = decorators[
|
|
5218
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
5219
|
+
if (decorator = decorators[i3])
|
|
5000
5220
|
result = decorator(result) || result;
|
|
5001
5221
|
return result;
|
|
5002
5222
|
};
|
|
5003
|
-
let WcmViewAllWalletsButton = class extends s {
|
|
5223
|
+
let WcmViewAllWalletsButton = class extends s$1 {
|
|
5004
5224
|
// -- render ------------------------------------------------------- //
|
|
5005
5225
|
onClick() {
|
|
5006
5226
|
index.RouterCtrl.push("WalletExplorer");
|
|
@@ -5022,21 +5242,21 @@ let WcmViewAllWalletsButton = class extends s {
|
|
|
5022
5242
|
};
|
|
5023
5243
|
WcmViewAllWalletsButton.styles = [ThemeUtil.globalCss, styles$7];
|
|
5024
5244
|
WcmViewAllWalletsButton = __decorateClass$9([
|
|
5025
|
-
e$
|
|
5245
|
+
e$3("wcm-view-all-wallets-button")
|
|
5026
5246
|
], WcmViewAllWalletsButton);
|
|
5027
|
-
const styles$6 = i$
|
|
5247
|
+
const styles$6 = i$4`.wcm-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`;
|
|
5028
5248
|
var __defProp$8 = Object.defineProperty;
|
|
5029
5249
|
var __getOwnPropDesc$8 = Object.getOwnPropertyDescriptor;
|
|
5030
5250
|
var __decorateClass$8 = (decorators, target, key, kind) => {
|
|
5031
5251
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$8(target, key) : target;
|
|
5032
|
-
for (var
|
|
5033
|
-
if (decorator = decorators[
|
|
5252
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
5253
|
+
if (decorator = decorators[i3])
|
|
5034
5254
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5035
5255
|
if (kind && result)
|
|
5036
5256
|
__defProp$8(target, key, result);
|
|
5037
5257
|
return result;
|
|
5038
5258
|
};
|
|
5039
|
-
let WcmWalletConnectQr = class extends s {
|
|
5259
|
+
let WcmWalletConnectQr = class extends s$1 {
|
|
5040
5260
|
// -- lifecycle ---------------------------------------------------- //
|
|
5041
5261
|
constructor() {
|
|
5042
5262
|
super();
|
|
@@ -5059,26 +5279,26 @@ let WcmWalletConnectQr = class extends s {
|
|
|
5059
5279
|
};
|
|
5060
5280
|
WcmWalletConnectQr.styles = [ThemeUtil.globalCss, styles$6];
|
|
5061
5281
|
__decorateClass$8([
|
|
5062
|
-
n$
|
|
5282
|
+
n$2()
|
|
5063
5283
|
], WcmWalletConnectQr.prototype, "walletId", 2);
|
|
5064
5284
|
__decorateClass$8([
|
|
5065
|
-
n$
|
|
5285
|
+
n$2()
|
|
5066
5286
|
], WcmWalletConnectQr.prototype, "imageId", 2);
|
|
5067
5287
|
__decorateClass$8([
|
|
5068
|
-
t$
|
|
5288
|
+
t$2()
|
|
5069
5289
|
], WcmWalletConnectQr.prototype, "uri", 2);
|
|
5070
5290
|
WcmWalletConnectQr = __decorateClass$8([
|
|
5071
|
-
e$
|
|
5291
|
+
e$3("wcm-walletconnect-qr")
|
|
5072
5292
|
], WcmWalletConnectQr);
|
|
5073
5293
|
var __getOwnPropDesc$7 = Object.getOwnPropertyDescriptor;
|
|
5074
5294
|
var __decorateClass$7 = (decorators, target, key, kind) => {
|
|
5075
5295
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$7(target, key) : target;
|
|
5076
|
-
for (var
|
|
5077
|
-
if (decorator = decorators[
|
|
5296
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
5297
|
+
if (decorator = decorators[i3])
|
|
5078
5298
|
result = decorator(result) || result;
|
|
5079
5299
|
return result;
|
|
5080
5300
|
};
|
|
5081
|
-
let WcmConnectWalletView = class extends s {
|
|
5301
|
+
let WcmConnectWalletView = class extends s$1 {
|
|
5082
5302
|
// -- private ------------------------------------------------------ //
|
|
5083
5303
|
viewTemplate() {
|
|
5084
5304
|
if (index.CoreUtil.isAndroid() && !index.CoreUtil.isTelegram()) {
|
|
@@ -5096,21 +5316,21 @@ let WcmConnectWalletView = class extends s {
|
|
|
5096
5316
|
};
|
|
5097
5317
|
WcmConnectWalletView.styles = [ThemeUtil.globalCss];
|
|
5098
5318
|
WcmConnectWalletView = __decorateClass$7([
|
|
5099
|
-
e$
|
|
5319
|
+
e$3("wcm-connect-wallet-view")
|
|
5100
5320
|
], WcmConnectWalletView);
|
|
5101
|
-
const styles$5 = i$
|
|
5321
|
+
const styles$5 = i$4`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;
|
|
5102
5322
|
var __defProp$6 = Object.defineProperty;
|
|
5103
5323
|
var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
|
|
5104
5324
|
var __decorateClass$6 = (decorators, target, key, kind) => {
|
|
5105
5325
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$6(target, key) : target;
|
|
5106
|
-
for (var
|
|
5107
|
-
if (decorator = decorators[
|
|
5326
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
5327
|
+
if (decorator = decorators[i3])
|
|
5108
5328
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5109
5329
|
if (kind && result)
|
|
5110
5330
|
__defProp$6(target, key, result);
|
|
5111
5331
|
return result;
|
|
5112
5332
|
};
|
|
5113
|
-
let WcmDesktopConnectingView = class extends s {
|
|
5333
|
+
let WcmDesktopConnectingView = class extends s$1 {
|
|
5114
5334
|
// -- lifecycle ---------------------------------------------------- //
|
|
5115
5335
|
constructor() {
|
|
5116
5336
|
super();
|
|
@@ -5147,21 +5367,21 @@ let WcmDesktopConnectingView = class extends s {
|
|
|
5147
5367
|
};
|
|
5148
5368
|
WcmDesktopConnectingView.styles = [ThemeUtil.globalCss, styles$5];
|
|
5149
5369
|
__decorateClass$6([
|
|
5150
|
-
t$
|
|
5370
|
+
t$2()
|
|
5151
5371
|
], WcmDesktopConnectingView.prototype, "isError", 2);
|
|
5152
5372
|
WcmDesktopConnectingView = __decorateClass$6([
|
|
5153
|
-
e$
|
|
5373
|
+
e$3("wcm-desktop-connecting-view")
|
|
5154
5374
|
], WcmDesktopConnectingView);
|
|
5155
|
-
const styles$4 = i$
|
|
5375
|
+
const styles$4 = i$4`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}wcm-button{margin-top:15px}`;
|
|
5156
5376
|
var __getOwnPropDesc$5 = Object.getOwnPropertyDescriptor;
|
|
5157
5377
|
var __decorateClass$5 = (decorators, target, key, kind) => {
|
|
5158
5378
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$5(target, key) : target;
|
|
5159
|
-
for (var
|
|
5160
|
-
if (decorator = decorators[
|
|
5379
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
5380
|
+
if (decorator = decorators[i3])
|
|
5161
5381
|
result = decorator(result) || result;
|
|
5162
5382
|
return result;
|
|
5163
5383
|
};
|
|
5164
|
-
let WcmInstallWalletView = class extends s {
|
|
5384
|
+
let WcmInstallWalletView = class extends s$1 {
|
|
5165
5385
|
// -- private ------------------------------------------------------ //
|
|
5166
5386
|
onInstall(uri) {
|
|
5167
5387
|
if (uri) {
|
|
@@ -5176,21 +5396,21 @@ let WcmInstallWalletView = class extends s {
|
|
|
5176
5396
|
};
|
|
5177
5397
|
WcmInstallWalletView.styles = [ThemeUtil.globalCss, styles$4];
|
|
5178
5398
|
WcmInstallWalletView = __decorateClass$5([
|
|
5179
|
-
e$
|
|
5399
|
+
e$3("wcm-install-wallet-view")
|
|
5180
5400
|
], WcmInstallWalletView);
|
|
5181
|
-
const styles$3 = i$
|
|
5401
|
+
const styles$3 = i$4`wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:96px;height:96px;margin-bottom:20px}wcm-info-footer{display:flex;width:100%}.wcm-app-store{justify-content:space-between}.wcm-app-store wcm-wallet-image{margin-right:10px;margin-bottom:0;width:28px;height:28px;border-radius:var(--wcm-wallet-icon-small-border-radius)}.wcm-app-store div{display:flex;align-items:center}.wcm-app-store wcm-button{margin-right:-10px}.wcm-note{flex-direction:column;align-items:center;padding:5px 0}.wcm-note wcm-text{text-align:center}wcm-platform-selection{margin-top:-15px}.wcm-note wcm-text{margin-top:15px}.wcm-note wcm-text span{color:var(--wcm-accent-color)}`;
|
|
5182
5402
|
var __defProp$4 = Object.defineProperty;
|
|
5183
5403
|
var __getOwnPropDesc$4 = Object.getOwnPropertyDescriptor;
|
|
5184
5404
|
var __decorateClass$4 = (decorators, target, key, kind) => {
|
|
5185
5405
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$4(target, key) : target;
|
|
5186
|
-
for (var
|
|
5187
|
-
if (decorator = decorators[
|
|
5406
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
5407
|
+
if (decorator = decorators[i3])
|
|
5188
5408
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5189
5409
|
if (kind && result)
|
|
5190
5410
|
__defProp$4(target, key, result);
|
|
5191
5411
|
return result;
|
|
5192
5412
|
};
|
|
5193
|
-
let WcmMobileConnectingView = class extends s {
|
|
5413
|
+
let WcmMobileConnectingView = class extends s$1 {
|
|
5194
5414
|
// -- lifecycle ---------------------------------------------------- //
|
|
5195
5415
|
constructor() {
|
|
5196
5416
|
super();
|
|
@@ -5236,21 +5456,21 @@ let WcmMobileConnectingView = class extends s {
|
|
|
5236
5456
|
};
|
|
5237
5457
|
WcmMobileConnectingView.styles = [ThemeUtil.globalCss, styles$3];
|
|
5238
5458
|
__decorateClass$4([
|
|
5239
|
-
t$
|
|
5459
|
+
t$2()
|
|
5240
5460
|
], WcmMobileConnectingView.prototype, "isError", 2);
|
|
5241
5461
|
WcmMobileConnectingView = __decorateClass$4([
|
|
5242
|
-
e$
|
|
5462
|
+
e$3("wcm-mobile-connecting-view")
|
|
5243
5463
|
], WcmMobileConnectingView);
|
|
5244
|
-
const styles$2 = i$
|
|
5464
|
+
const styles$2 = i$4`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;
|
|
5245
5465
|
var __getOwnPropDesc$3 = Object.getOwnPropertyDescriptor;
|
|
5246
5466
|
var __decorateClass$3 = (decorators, target, key, kind) => {
|
|
5247
5467
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$3(target, key) : target;
|
|
5248
|
-
for (var
|
|
5249
|
-
if (decorator = decorators[
|
|
5468
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
5469
|
+
if (decorator = decorators[i3])
|
|
5250
5470
|
result = decorator(result) || result;
|
|
5251
5471
|
return result;
|
|
5252
5472
|
};
|
|
5253
|
-
let WcmMobileQrConnectingView = class extends s {
|
|
5473
|
+
let WcmMobileQrConnectingView = class extends s$1 {
|
|
5254
5474
|
// -- render ------------------------------------------------------- //
|
|
5255
5475
|
render() {
|
|
5256
5476
|
const { name, id, image_id } = index.CoreUtil.getWalletRouterData();
|
|
@@ -5260,17 +5480,17 @@ let WcmMobileQrConnectingView = class extends s {
|
|
|
5260
5480
|
};
|
|
5261
5481
|
WcmMobileQrConnectingView.styles = [ThemeUtil.globalCss, styles$2];
|
|
5262
5482
|
WcmMobileQrConnectingView = __decorateClass$3([
|
|
5263
|
-
e$
|
|
5483
|
+
e$3("wcm-mobile-qr-connecting-view")
|
|
5264
5484
|
], WcmMobileQrConnectingView);
|
|
5265
5485
|
var __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;
|
|
5266
5486
|
var __decorateClass$2 = (decorators, target, key, kind) => {
|
|
5267
5487
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$2(target, key) : target;
|
|
5268
|
-
for (var
|
|
5269
|
-
if (decorator = decorators[
|
|
5488
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
5489
|
+
if (decorator = decorators[i3])
|
|
5270
5490
|
result = decorator(result) || result;
|
|
5271
5491
|
return result;
|
|
5272
5492
|
};
|
|
5273
|
-
let WcmQrcodeView = class extends s {
|
|
5493
|
+
let WcmQrcodeView = class extends s$1 {
|
|
5274
5494
|
// -- render ------------------------------------------------------- //
|
|
5275
5495
|
render() {
|
|
5276
5496
|
return x`<wcm-modal-header title="Scan the code" .onAction="${UiUtil.handleUriCopy}" .actionIcon="${SvgUtil.COPY_ICON}"></wcm-modal-header><wcm-modal-content><wcm-walletconnect-qr></wcm-walletconnect-qr></wcm-modal-content>`;
|
|
@@ -5278,22 +5498,22 @@ let WcmQrcodeView = class extends s {
|
|
|
5278
5498
|
};
|
|
5279
5499
|
WcmQrcodeView.styles = [ThemeUtil.globalCss];
|
|
5280
5500
|
WcmQrcodeView = __decorateClass$2([
|
|
5281
|
-
e$
|
|
5501
|
+
e$3("wcm-qrcode-view")
|
|
5282
5502
|
], WcmQrcodeView);
|
|
5283
|
-
const styles$1 = i$
|
|
5503
|
+
const styles$1 = i$4`wcm-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}wcm-modal-content::after,wcm-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}wcm-modal-content::before{box-shadow:0 -1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(var(--wcm-color-bg-1),rgba(255,255,255,0))}wcm-modal-content::after{box-shadow:0 1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--wcm-color-bg-1));top:calc(100% - 20px)}wcm-modal-content::-webkit-scrollbar{display:none}.wcm-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.wcm-empty,.wcm-loading{display:flex}.wcm-loading .wcm-placeholder-block{height:100%}.wcm-end-reached .wcm-placeholder-block{height:0;opacity:0}.wcm-empty .wcm-placeholder-block{opacity:1;height:100%}wcm-wallet-button{margin:calc((100% - 60px)/ 3) 0}`;
|
|
5284
5504
|
var __defProp$1 = Object.defineProperty;
|
|
5285
5505
|
var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
|
|
5286
5506
|
var __decorateClass$1 = (decorators, target, key, kind) => {
|
|
5287
5507
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$1(target, key) : target;
|
|
5288
|
-
for (var
|
|
5289
|
-
if (decorator = decorators[
|
|
5508
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
5509
|
+
if (decorator = decorators[i3])
|
|
5290
5510
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5291
5511
|
if (kind && result)
|
|
5292
5512
|
__defProp$1(target, key, result);
|
|
5293
5513
|
return result;
|
|
5294
5514
|
};
|
|
5295
5515
|
const PAGE_ENTRIES = 40;
|
|
5296
|
-
let WcmWalletExplorerView = class extends s {
|
|
5516
|
+
let WcmWalletExplorerView = class extends s$1 {
|
|
5297
5517
|
constructor() {
|
|
5298
5518
|
super(...arguments);
|
|
5299
5519
|
this.loading = !index.ExplorerCtrl.state.wallets.listings.length;
|
|
@@ -5403,40 +5623,40 @@ let WcmWalletExplorerView = class extends s {
|
|
|
5403
5623
|
"wcm-end-reached": this.endReached || !this.loading,
|
|
5404
5624
|
"wcm-empty": isEmpty
|
|
5405
5625
|
};
|
|
5406
|
-
return x`<wcm-modal-header><wcm-search-input .onChange="${this.onSearchChange.bind(this)}"></wcm-search-input></wcm-modal-header><wcm-modal-content class="${
|
|
5626
|
+
return x`<wcm-modal-header><wcm-search-input .onChange="${this.onSearchChange.bind(this)}"></wcm-search-input></wcm-modal-header><wcm-modal-content class="${o$1(classes)}"><div class="wcm-grid">${isLoading ? null : manualWallets} ${isLoading ? null : recomendedWallets} ${isLoading ? null : listings.map(
|
|
5407
5627
|
(listing) => x`${listing ? x`<wcm-wallet-button imageId="${listing.image_id}" name="${listing.name}" walletId="${listing.id}" .onClick="${() => this.onConnect(listing)}"></wcm-wallet-button>` : null}`
|
|
5408
5628
|
)}</div><div class="wcm-placeholder-block">${isEmpty ? x`<wcm-text variant="big-bold" color="secondary">No results found</wcm-text>` : null} ${!isEmpty && this.loading ? x`<wcm-spinner></wcm-spinner>` : null}</div></wcm-modal-content>`;
|
|
5409
5629
|
}
|
|
5410
5630
|
};
|
|
5411
5631
|
WcmWalletExplorerView.styles = [ThemeUtil.globalCss, styles$1];
|
|
5412
5632
|
__decorateClass$1([
|
|
5413
|
-
t$
|
|
5633
|
+
t$2()
|
|
5414
5634
|
], WcmWalletExplorerView.prototype, "loading", 2);
|
|
5415
5635
|
__decorateClass$1([
|
|
5416
|
-
t$
|
|
5636
|
+
t$2()
|
|
5417
5637
|
], WcmWalletExplorerView.prototype, "firstFetch", 2);
|
|
5418
5638
|
__decorateClass$1([
|
|
5419
|
-
t$
|
|
5639
|
+
t$2()
|
|
5420
5640
|
], WcmWalletExplorerView.prototype, "search", 2);
|
|
5421
5641
|
__decorateClass$1([
|
|
5422
|
-
t$
|
|
5642
|
+
t$2()
|
|
5423
5643
|
], WcmWalletExplorerView.prototype, "endReached", 2);
|
|
5424
5644
|
WcmWalletExplorerView = __decorateClass$1([
|
|
5425
|
-
e$
|
|
5645
|
+
e$3("wcm-wallet-explorer-view")
|
|
5426
5646
|
], WcmWalletExplorerView);
|
|
5427
|
-
const styles = i$
|
|
5647
|
+
const styles = i$4`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;
|
|
5428
5648
|
var __defProp = Object.defineProperty;
|
|
5429
5649
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5430
5650
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
5431
5651
|
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
5432
|
-
for (var
|
|
5433
|
-
if (decorator = decorators[
|
|
5652
|
+
for (var i3 = decorators.length - 1, decorator; i3 >= 0; i3--)
|
|
5653
|
+
if (decorator = decorators[i3])
|
|
5434
5654
|
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
5435
5655
|
if (kind && result)
|
|
5436
5656
|
__defProp(target, key, result);
|
|
5437
5657
|
return result;
|
|
5438
5658
|
};
|
|
5439
|
-
let WcmWebConnectingView = class extends s {
|
|
5659
|
+
let WcmWebConnectingView = class extends s$1 {
|
|
5440
5660
|
// -- lifecycle ---------------------------------------------------- //
|
|
5441
5661
|
constructor() {
|
|
5442
5662
|
super();
|
|
@@ -5470,9 +5690,9 @@ let WcmWebConnectingView = class extends s {
|
|
|
5470
5690
|
};
|
|
5471
5691
|
WcmWebConnectingView.styles = [ThemeUtil.globalCss, styles];
|
|
5472
5692
|
__decorateClass([
|
|
5473
|
-
t$
|
|
5693
|
+
t$2()
|
|
5474
5694
|
], WcmWebConnectingView.prototype, "isError", 2);
|
|
5475
5695
|
WcmWebConnectingView = __decorateClass([
|
|
5476
|
-
e$
|
|
5696
|
+
e$3("wcm-web-connecting-view")
|
|
5477
5697
|
], WcmWebConnectingView);
|
|
5478
|
-
//# sourceMappingURL=index-
|
|
5698
|
+
//# sourceMappingURL=index-CmbarigA.cjs.map
|