@record-evolution/widget-image 1.1.3 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/widget-image.d.ts +10 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/widget-image.js +296 -246
- package/dist/widget-image.js.map +1 -1
- package/package.json +14 -14
- package/src/default-data.json +3 -3
- package/src/definition-schema.d.ts +9 -3
- package/src/widget-image.ts +40 -15
package/dist/widget-image.js
CHANGED
|
@@ -32,21 +32,21 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
32
32
|
* Copyright 2019 Google LLC
|
|
33
33
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
34
34
|
*/
|
|
35
|
-
const t = globalThis,
|
|
36
|
-
e$
|
|
37
|
-
s = Symbol(),
|
|
38
|
-
o$
|
|
35
|
+
const t$1 = globalThis,
|
|
36
|
+
e$2 = t$1.ShadowRoot && (void 0 === t$1.ShadyCSS || t$1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
|
|
37
|
+
s$2 = Symbol(),
|
|
38
|
+
o$4 = new WeakMap();
|
|
39
39
|
let n$3 = class n {
|
|
40
40
|
constructor(t, e, o) {
|
|
41
|
-
if (this._$cssResult$ = !0, o !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
41
|
+
if (this._$cssResult$ = !0, o !== s$2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
42
42
|
this.cssText = t, this.t = e;
|
|
43
43
|
}
|
|
44
44
|
get styleSheet() {
|
|
45
45
|
let t = this.o;
|
|
46
46
|
const s = this.t;
|
|
47
|
-
if (e$
|
|
47
|
+
if (e$2 && void 0 === t) {
|
|
48
48
|
const e = void 0 !== s && 1 === s.length;
|
|
49
|
-
e && (t = o$
|
|
49
|
+
e && (t = o$4.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), e && o$4.set(s, t));
|
|
50
50
|
}
|
|
51
51
|
return t;
|
|
52
52
|
}
|
|
@@ -54,26 +54,26 @@ let n$3 = class n {
|
|
|
54
54
|
return this.cssText;
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
|
-
const r$
|
|
58
|
-
i$
|
|
57
|
+
const r$4 = t => new n$3("string" == typeof t ? t : t + "", void 0, s$2),
|
|
58
|
+
i$3 = (t, ...e) => {
|
|
59
59
|
const o = 1 === t.length ? t[0] : e.reduce((e, s, o) => e + (t => {
|
|
60
60
|
if (!0 === t._$cssResult$) return t.cssText;
|
|
61
61
|
if ("number" == typeof t) return t;
|
|
62
62
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + t + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
63
63
|
})(s) + t[o + 1], t[0]);
|
|
64
|
-
return new n$3(o, t, s);
|
|
64
|
+
return new n$3(o, t, s$2);
|
|
65
65
|
},
|
|
66
66
|
S$1 = (s, o) => {
|
|
67
|
-
if (e$
|
|
67
|
+
if (e$2) s.adoptedStyleSheets = o.map(t => t instanceof CSSStyleSheet ? t : t.styleSheet);else for (const e of o) {
|
|
68
68
|
const o = document.createElement("style"),
|
|
69
|
-
n = t.litNonce;
|
|
69
|
+
n = t$1.litNonce;
|
|
70
70
|
void 0 !== n && o.setAttribute("nonce", n), o.textContent = e.cssText, s.appendChild(o);
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
|
-
c$2 = e$
|
|
73
|
+
c$2 = e$2 ? t => t : t => t instanceof CSSStyleSheet ? (t => {
|
|
74
74
|
let e = "";
|
|
75
75
|
for (const s of t.cssRules) e += s.cssText;
|
|
76
|
-
return r$
|
|
76
|
+
return r$4(e);
|
|
77
77
|
})(t) : t;
|
|
78
78
|
|
|
79
79
|
/**
|
|
@@ -82,23 +82,23 @@ const r$2 = t => new n$3("string" == typeof t ? t : t + "", void 0, s),
|
|
|
82
82
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
83
83
|
*/
|
|
84
84
|
const {
|
|
85
|
-
is: i,
|
|
86
|
-
defineProperty: e,
|
|
87
|
-
getOwnPropertyDescriptor:
|
|
88
|
-
getOwnPropertyNames:
|
|
89
|
-
getOwnPropertySymbols: o$
|
|
85
|
+
is: i$2,
|
|
86
|
+
defineProperty: e$1,
|
|
87
|
+
getOwnPropertyDescriptor: h$1,
|
|
88
|
+
getOwnPropertyNames: r$3,
|
|
89
|
+
getOwnPropertySymbols: o$3,
|
|
90
90
|
getPrototypeOf: n$2
|
|
91
91
|
} = Object,
|
|
92
|
-
a = globalThis,
|
|
93
|
-
c$1 = a.trustedTypes,
|
|
94
|
-
l = c$1 ? c$1.emptyScript : "",
|
|
95
|
-
p = a.reactiveElementPolyfillSupport,
|
|
96
|
-
d = (t, s) => t,
|
|
97
|
-
u = {
|
|
92
|
+
a$1 = globalThis,
|
|
93
|
+
c$1 = a$1.trustedTypes,
|
|
94
|
+
l$1 = c$1 ? c$1.emptyScript : "",
|
|
95
|
+
p$1 = a$1.reactiveElementPolyfillSupport,
|
|
96
|
+
d$1 = (t, s) => t,
|
|
97
|
+
u$1 = {
|
|
98
98
|
toAttribute(t, s) {
|
|
99
99
|
switch (s) {
|
|
100
100
|
case Boolean:
|
|
101
|
-
t = t ? l : null;
|
|
101
|
+
t = t ? l$1 : null;
|
|
102
102
|
break;
|
|
103
103
|
case Object:
|
|
104
104
|
case Array:
|
|
@@ -126,34 +126,35 @@ const {
|
|
|
126
126
|
return i;
|
|
127
127
|
}
|
|
128
128
|
},
|
|
129
|
-
f$
|
|
130
|
-
|
|
129
|
+
f$1 = (t, s) => !i$2(t, s),
|
|
130
|
+
b = {
|
|
131
131
|
attribute: !0,
|
|
132
132
|
type: String,
|
|
133
|
-
converter: u,
|
|
133
|
+
converter: u$1,
|
|
134
134
|
reflect: !1,
|
|
135
|
-
|
|
135
|
+
useDefault: !1,
|
|
136
|
+
hasChanged: f$1
|
|
136
137
|
};
|
|
137
|
-
Symbol.metadata ??= Symbol("metadata"), a.litPropertyMetadata ??= new WeakMap();
|
|
138
|
-
class
|
|
138
|
+
Symbol.metadata ??= Symbol("metadata"), a$1.litPropertyMetadata ??= new WeakMap();
|
|
139
|
+
let y$1 = class y extends HTMLElement {
|
|
139
140
|
static addInitializer(t) {
|
|
140
141
|
this._$Ei(), (this.l ??= []).push(t);
|
|
141
142
|
}
|
|
142
143
|
static get observedAttributes() {
|
|
143
144
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
144
145
|
}
|
|
145
|
-
static createProperty(t, s =
|
|
146
|
-
if (s.state && (s.attribute = !1), this._$Ei(), this.elementProperties.set(t, s), !s.noAccessor) {
|
|
146
|
+
static createProperty(t, s = b) {
|
|
147
|
+
if (s.state && (s.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((s = Object.create(s)).wrapped = !0), this.elementProperties.set(t, s), !s.noAccessor) {
|
|
147
148
|
const i = Symbol(),
|
|
148
|
-
|
|
149
|
-
void 0 !==
|
|
149
|
+
h = this.getPropertyDescriptor(t, i, s);
|
|
150
|
+
void 0 !== h && e$1(this.prototype, t, h);
|
|
150
151
|
}
|
|
151
152
|
}
|
|
152
153
|
static getPropertyDescriptor(t, s, i) {
|
|
153
154
|
const {
|
|
154
155
|
get: e,
|
|
155
|
-
set:
|
|
156
|
-
} =
|
|
156
|
+
set: r
|
|
157
|
+
} = h$1(this.prototype, t) ?? {
|
|
157
158
|
get() {
|
|
158
159
|
return this[s];
|
|
159
160
|
},
|
|
@@ -162,30 +163,28 @@ class b extends HTMLElement {
|
|
|
162
163
|
}
|
|
163
164
|
};
|
|
164
165
|
return {
|
|
165
|
-
get
|
|
166
|
-
return e?.call(this);
|
|
167
|
-
},
|
|
166
|
+
get: e,
|
|
168
167
|
set(s) {
|
|
169
|
-
const
|
|
170
|
-
|
|
168
|
+
const h = e?.call(this);
|
|
169
|
+
r?.call(this, s), this.requestUpdate(t, h, i);
|
|
171
170
|
},
|
|
172
171
|
configurable: !0,
|
|
173
172
|
enumerable: !0
|
|
174
173
|
};
|
|
175
174
|
}
|
|
176
175
|
static getPropertyOptions(t) {
|
|
177
|
-
return this.elementProperties.get(t) ??
|
|
176
|
+
return this.elementProperties.get(t) ?? b;
|
|
178
177
|
}
|
|
179
178
|
static _$Ei() {
|
|
180
|
-
if (this.hasOwnProperty(d("elementProperties"))) return;
|
|
179
|
+
if (this.hasOwnProperty(d$1("elementProperties"))) return;
|
|
181
180
|
const t = n$2(this);
|
|
182
181
|
t.finalize(), void 0 !== t.l && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
183
182
|
}
|
|
184
183
|
static finalize() {
|
|
185
|
-
if (this.hasOwnProperty(d("finalized"))) return;
|
|
186
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(d("properties"))) {
|
|
184
|
+
if (this.hasOwnProperty(d$1("finalized"))) return;
|
|
185
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(d$1("properties"))) {
|
|
187
186
|
const t = this.properties,
|
|
188
|
-
s = [...
|
|
187
|
+
s = [...r$3(t), ...o$3(t)];
|
|
189
188
|
for (const i of s) this.createProperty(i, t[i]);
|
|
190
189
|
}
|
|
191
190
|
const t = this[Symbol.metadata];
|
|
@@ -244,12 +243,12 @@ class b extends HTMLElement {
|
|
|
244
243
|
attributeChangedCallback(t, s, i) {
|
|
245
244
|
this._$AK(t, i);
|
|
246
245
|
}
|
|
247
|
-
_$
|
|
246
|
+
_$ET(t, s) {
|
|
248
247
|
const i = this.constructor.elementProperties.get(t),
|
|
249
248
|
e = this.constructor._$Eu(t, i);
|
|
250
249
|
if (void 0 !== e && !0 === i.reflect) {
|
|
251
|
-
const
|
|
252
|
-
this._$Em = t, null ==
|
|
250
|
+
const h = (void 0 !== i.converter?.toAttribute ? i.converter : u$1).toAttribute(s, i.type);
|
|
251
|
+
this._$Em = t, null == h ? this.removeAttribute(e) : this.setAttribute(e, h), this._$Em = null;
|
|
253
252
|
}
|
|
254
253
|
}
|
|
255
254
|
_$AK(t, s) {
|
|
@@ -257,23 +256,29 @@ class b extends HTMLElement {
|
|
|
257
256
|
e = i._$Eh.get(t);
|
|
258
257
|
if (void 0 !== e && this._$Em !== e) {
|
|
259
258
|
const t = i.getPropertyOptions(e),
|
|
260
|
-
|
|
259
|
+
h = "function" == typeof t.converter ? {
|
|
261
260
|
fromAttribute: t.converter
|
|
262
|
-
} : void 0 !== t.converter?.fromAttribute ? t.converter : u;
|
|
263
|
-
this._$Em = e, this[e] =
|
|
261
|
+
} : void 0 !== t.converter?.fromAttribute ? t.converter : u$1;
|
|
262
|
+
this._$Em = e, this[e] = h.fromAttribute(s, t.type) ?? this._$Ej?.get(e) ?? null, this._$Em = null;
|
|
264
263
|
}
|
|
265
264
|
}
|
|
266
265
|
requestUpdate(t, s, i) {
|
|
267
266
|
if (void 0 !== t) {
|
|
268
|
-
|
|
269
|
-
|
|
267
|
+
const e = this.constructor,
|
|
268
|
+
h = this[t];
|
|
269
|
+
if (i ??= e.getPropertyOptions(t), !((i.hasChanged ?? f$1)(h, s) || i.useDefault && i.reflect && h === this._$Ej?.get(t) && !this.hasAttribute(e._$Eu(t, i)))) return;
|
|
270
|
+
this.C(t, s, i);
|
|
270
271
|
}
|
|
271
|
-
!1 === this.isUpdatePending && (this._$ES = this._$
|
|
272
|
+
!1 === this.isUpdatePending && (this._$ES = this._$EP());
|
|
272
273
|
}
|
|
273
|
-
|
|
274
|
-
|
|
274
|
+
C(t, s, {
|
|
275
|
+
useDefault: i,
|
|
276
|
+
reflect: e,
|
|
277
|
+
wrapped: h
|
|
278
|
+
}, r) {
|
|
279
|
+
i && !(this._$Ej ??= new Map()).has(t) && (this._$Ej.set(t, r ?? s ?? this[t]), !0 !== h || void 0 !== r) || (this._$AL.has(t) || (this.hasUpdated || i || (s = void 0), this._$AL.set(t, s)), !0 === e && this._$Em !== t && (this._$Eq ??= new Set()).add(t));
|
|
275
280
|
}
|
|
276
|
-
async _$
|
|
281
|
+
async _$EP() {
|
|
277
282
|
this.isUpdatePending = !0;
|
|
278
283
|
try {
|
|
279
284
|
await this._$ES;
|
|
@@ -294,14 +299,20 @@ class b extends HTMLElement {
|
|
|
294
299
|
this._$Ep = void 0;
|
|
295
300
|
}
|
|
296
301
|
const t = this.constructor.elementProperties;
|
|
297
|
-
if (t.size > 0) for (const [s, i] of t)
|
|
302
|
+
if (t.size > 0) for (const [s, i] of t) {
|
|
303
|
+
const {
|
|
304
|
+
wrapped: t
|
|
305
|
+
} = i,
|
|
306
|
+
e = this[s];
|
|
307
|
+
!0 !== t || this._$AL.has(s) || void 0 === e || this.C(s, void 0, i, e);
|
|
308
|
+
}
|
|
298
309
|
}
|
|
299
310
|
let t = !1;
|
|
300
311
|
const s = this._$AL;
|
|
301
312
|
try {
|
|
302
|
-
t = this.shouldUpdate(s), t ? (this.willUpdate(s), this._$EO?.forEach(t => t.hostUpdate?.()), this.update(s)) : this._$
|
|
313
|
+
t = this.shouldUpdate(s), t ? (this.willUpdate(s), this._$EO?.forEach(t => t.hostUpdate?.()), this.update(s)) : this._$EM();
|
|
303
314
|
} catch (s) {
|
|
304
|
-
throw t = !1, this._$
|
|
315
|
+
throw t = !1, this._$EM(), s;
|
|
305
316
|
}
|
|
306
317
|
t && this._$AE(s);
|
|
307
318
|
}
|
|
@@ -309,7 +320,7 @@ class b extends HTMLElement {
|
|
|
309
320
|
_$AE(t) {
|
|
310
321
|
this._$EO?.forEach(t => t.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
311
322
|
}
|
|
312
|
-
_$
|
|
323
|
+
_$EM() {
|
|
313
324
|
this._$AL = new Map(), this.isUpdatePending = !1;
|
|
314
325
|
}
|
|
315
326
|
get updateComplete() {
|
|
@@ -322,146 +333,146 @@ class b extends HTMLElement {
|
|
|
322
333
|
return !0;
|
|
323
334
|
}
|
|
324
335
|
update(t) {
|
|
325
|
-
this._$
|
|
336
|
+
this._$Eq &&= this._$Eq.forEach(t => this._$ET(t, this[t])), this._$EM();
|
|
326
337
|
}
|
|
327
338
|
updated(t) {}
|
|
328
339
|
firstUpdated(t) {}
|
|
329
|
-
}
|
|
330
|
-
|
|
340
|
+
};
|
|
341
|
+
y$1.elementStyles = [], y$1.shadowRootOptions = {
|
|
331
342
|
mode: "open"
|
|
332
|
-
},
|
|
333
|
-
ReactiveElement:
|
|
334
|
-
}), (a.reactiveElementVersions ??= []).push("2.0
|
|
343
|
+
}, y$1[d$1("elementProperties")] = new Map(), y$1[d$1("finalized")] = new Map(), p$1?.({
|
|
344
|
+
ReactiveElement: y$1
|
|
345
|
+
}), (a$1.reactiveElementVersions ??= []).push("2.1.0");
|
|
335
346
|
|
|
336
347
|
/**
|
|
337
348
|
* @license
|
|
338
349
|
* Copyright 2017 Google LLC
|
|
339
350
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
340
351
|
*/
|
|
341
|
-
const
|
|
342
|
-
|
|
343
|
-
|
|
352
|
+
const t = globalThis,
|
|
353
|
+
i$1 = t.trustedTypes,
|
|
354
|
+
s$1 = i$1 ? i$1.createPolicy("lit-html", {
|
|
344
355
|
createHTML: t => t
|
|
345
356
|
}) : void 0,
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
357
|
+
e = "$lit$",
|
|
358
|
+
h = `lit$${Math.random().toFixed(9).slice(2)}$`,
|
|
359
|
+
o$2 = "?" + h,
|
|
360
|
+
n$1 = `<${o$2}>`,
|
|
361
|
+
r$2 = document,
|
|
362
|
+
l = () => r$2.createComment(""),
|
|
363
|
+
c = t => null === t || "object" != typeof t && "function" != typeof t,
|
|
364
|
+
a = Array.isArray,
|
|
365
|
+
u = t => a(t) || "function" == typeof t?.[Symbol.iterator],
|
|
366
|
+
d = "[ \t\n\f\r]",
|
|
367
|
+
f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
368
|
+
v = /-->/g,
|
|
369
|
+
_ = />/g,
|
|
370
|
+
m = RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
371
|
+
p = /'/g,
|
|
372
|
+
g = /"/g,
|
|
373
|
+
$ = /^(?:script|style|textarea|title)$/i,
|
|
374
|
+
y = t => (i, ...s) => ({
|
|
364
375
|
_$litType$: t,
|
|
365
376
|
strings: i,
|
|
366
377
|
values: s
|
|
367
378
|
}),
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
function
|
|
374
|
-
if (!
|
|
375
|
-
return void 0 !==
|
|
379
|
+
x = y(1),
|
|
380
|
+
T = Symbol.for("lit-noChange"),
|
|
381
|
+
E = Symbol.for("lit-nothing"),
|
|
382
|
+
A = new WeakMap(),
|
|
383
|
+
C = r$2.createTreeWalker(r$2, 129);
|
|
384
|
+
function P(t, i) {
|
|
385
|
+
if (!a(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
386
|
+
return void 0 !== s$1 ? s$1.createHTML(i) : i;
|
|
376
387
|
}
|
|
377
|
-
const
|
|
388
|
+
const V = (t, i) => {
|
|
378
389
|
const s = t.length - 1,
|
|
379
|
-
|
|
380
|
-
let
|
|
381
|
-
|
|
382
|
-
|
|
390
|
+
o = [];
|
|
391
|
+
let r,
|
|
392
|
+
l = 2 === i ? "<svg>" : 3 === i ? "<math>" : "",
|
|
393
|
+
c = f;
|
|
383
394
|
for (let i = 0; i < s; i++) {
|
|
384
395
|
const s = t[i];
|
|
385
|
-
let
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
for (;
|
|
390
|
-
const
|
|
391
|
-
|
|
392
|
-
}
|
|
393
|
-
return [
|
|
396
|
+
let a,
|
|
397
|
+
u,
|
|
398
|
+
d = -1,
|
|
399
|
+
y = 0;
|
|
400
|
+
for (; y < s.length && (c.lastIndex = y, u = c.exec(s), null !== u);) y = c.lastIndex, c === f ? "!--" === u[1] ? c = v : void 0 !== u[1] ? c = _ : void 0 !== u[2] ? ($.test(u[2]) && (r = RegExp("</" + u[2], "g")), c = m) : void 0 !== u[3] && (c = m) : c === m ? ">" === u[0] ? (c = r ?? f, d = -1) : void 0 === u[1] ? d = -2 : (d = c.lastIndex - u[2].length, a = u[1], c = void 0 === u[3] ? m : '"' === u[3] ? g : p) : c === g || c === p ? c = m : c === v || c === _ ? c = f : (c = m, r = void 0);
|
|
401
|
+
const x = c === m && t[i + 1].startsWith("/>") ? " " : "";
|
|
402
|
+
l += c === f ? s + n$1 : d >= 0 ? (o.push(a), s.slice(0, d) + e + s.slice(d) + h + x) : s + h + (-2 === d ? i : x);
|
|
403
|
+
}
|
|
404
|
+
return [P(t, l + (t[s] || "<?>") + (2 === i ? "</svg>" : 3 === i ? "</math>" : "")), o];
|
|
394
405
|
};
|
|
395
|
-
class
|
|
406
|
+
class N {
|
|
396
407
|
constructor({
|
|
397
408
|
strings: t,
|
|
398
|
-
_$litType$:
|
|
399
|
-
},
|
|
400
|
-
let
|
|
409
|
+
_$litType$: s
|
|
410
|
+
}, n) {
|
|
411
|
+
let r;
|
|
401
412
|
this.parts = [];
|
|
402
|
-
let
|
|
403
|
-
|
|
404
|
-
const
|
|
405
|
-
|
|
406
|
-
[
|
|
407
|
-
if (this.el =
|
|
413
|
+
let c = 0,
|
|
414
|
+
a = 0;
|
|
415
|
+
const u = t.length - 1,
|
|
416
|
+
d = this.parts,
|
|
417
|
+
[f, v] = V(t, s);
|
|
418
|
+
if (this.el = N.createElement(f, n), C.currentNode = this.el.content, 2 === s || 3 === s) {
|
|
408
419
|
const t = this.el.content.firstChild;
|
|
409
420
|
t.replaceWith(...t.childNodes);
|
|
410
421
|
}
|
|
411
|
-
for (; null !== (
|
|
412
|
-
if (1 ===
|
|
413
|
-
if (
|
|
414
|
-
const i = a
|
|
415
|
-
s =
|
|
416
|
-
|
|
417
|
-
|
|
422
|
+
for (; null !== (r = C.nextNode()) && d.length < u;) {
|
|
423
|
+
if (1 === r.nodeType) {
|
|
424
|
+
if (r.hasAttributes()) for (const t of r.getAttributeNames()) if (t.endsWith(e)) {
|
|
425
|
+
const i = v[a++],
|
|
426
|
+
s = r.getAttribute(t).split(h),
|
|
427
|
+
e = /([.?@])?(.*)/.exec(i);
|
|
428
|
+
d.push({
|
|
418
429
|
type: 1,
|
|
419
|
-
index:
|
|
420
|
-
name:
|
|
430
|
+
index: c,
|
|
431
|
+
name: e[2],
|
|
421
432
|
strings: s,
|
|
422
|
-
ctor: "." ===
|
|
423
|
-
}),
|
|
424
|
-
} else t.startsWith(
|
|
433
|
+
ctor: "." === e[1] ? H : "?" === e[1] ? I : "@" === e[1] ? L : k
|
|
434
|
+
}), r.removeAttribute(t);
|
|
435
|
+
} else t.startsWith(h) && (d.push({
|
|
425
436
|
type: 6,
|
|
426
|
-
index:
|
|
427
|
-
}),
|
|
428
|
-
if (
|
|
429
|
-
const t =
|
|
430
|
-
|
|
431
|
-
if (
|
|
432
|
-
|
|
433
|
-
for (let
|
|
437
|
+
index: c
|
|
438
|
+
}), r.removeAttribute(t));
|
|
439
|
+
if ($.test(r.tagName)) {
|
|
440
|
+
const t = r.textContent.split(h),
|
|
441
|
+
s = t.length - 1;
|
|
442
|
+
if (s > 0) {
|
|
443
|
+
r.textContent = i$1 ? i$1.emptyScript : "";
|
|
444
|
+
for (let i = 0; i < s; i++) r.append(t[i], l()), C.nextNode(), d.push({
|
|
434
445
|
type: 2,
|
|
435
|
-
index: ++
|
|
446
|
+
index: ++c
|
|
436
447
|
});
|
|
437
|
-
|
|
448
|
+
r.append(t[s], l());
|
|
438
449
|
}
|
|
439
450
|
}
|
|
440
|
-
} else if (8 ===
|
|
451
|
+
} else if (8 === r.nodeType) if (r.data === o$2) d.push({
|
|
441
452
|
type: 2,
|
|
442
|
-
index:
|
|
453
|
+
index: c
|
|
443
454
|
});else {
|
|
444
455
|
let t = -1;
|
|
445
|
-
for (; -1 !== (t =
|
|
456
|
+
for (; -1 !== (t = r.data.indexOf(h, t + 1));) d.push({
|
|
446
457
|
type: 7,
|
|
447
|
-
index:
|
|
448
|
-
}), t +=
|
|
458
|
+
index: c
|
|
459
|
+
}), t += h.length - 1;
|
|
449
460
|
}
|
|
450
|
-
|
|
461
|
+
c++;
|
|
451
462
|
}
|
|
452
463
|
}
|
|
453
464
|
static createElement(t, i) {
|
|
454
|
-
const s =
|
|
465
|
+
const s = r$2.createElement("template");
|
|
455
466
|
return s.innerHTML = t, s;
|
|
456
467
|
}
|
|
457
468
|
}
|
|
458
|
-
function
|
|
459
|
-
if (i ===
|
|
460
|
-
let h = void 0 !== e ? s.
|
|
461
|
-
const o =
|
|
462
|
-
return h?.constructor !== o && (h?._$AO?.(!1), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? (s.
|
|
469
|
+
function S(t, i, s = t, e) {
|
|
470
|
+
if (i === T) return i;
|
|
471
|
+
let h = void 0 !== e ? s._$Co?.[e] : s._$Cl;
|
|
472
|
+
const o = c(i) ? void 0 : i._$litDirective$;
|
|
473
|
+
return h?.constructor !== o && (h?._$AO?.(!1), void 0 === o ? h = void 0 : (h = new o(t), h._$AT(t, s, e)), void 0 !== e ? (s._$Co ??= [])[e] = h : s._$Cl = h), void 0 !== h && (i = S(t, h._$AS(t, i.values), h, e)), i;
|
|
463
474
|
}
|
|
464
|
-
class
|
|
475
|
+
class M {
|
|
465
476
|
constructor(t, i) {
|
|
466
477
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
|
|
467
478
|
}
|
|
@@ -478,32 +489,32 @@ class F {
|
|
|
478
489
|
},
|
|
479
490
|
parts: s
|
|
480
491
|
} = this._$AD,
|
|
481
|
-
e = (t?.creationScope ??
|
|
482
|
-
|
|
483
|
-
let h =
|
|
492
|
+
e = (t?.creationScope ?? r$2).importNode(i, !0);
|
|
493
|
+
C.currentNode = e;
|
|
494
|
+
let h = C.nextNode(),
|
|
484
495
|
o = 0,
|
|
485
496
|
n = 0,
|
|
486
|
-
|
|
487
|
-
for (; void 0 !==
|
|
488
|
-
if (o ===
|
|
497
|
+
l = s[0];
|
|
498
|
+
for (; void 0 !== l;) {
|
|
499
|
+
if (o === l.index) {
|
|
489
500
|
let i;
|
|
490
|
-
2 ===
|
|
501
|
+
2 === l.type ? i = new R(h, h.nextSibling, this, t) : 1 === l.type ? i = new l.ctor(h, l.name, l.strings, this, t) : 6 === l.type && (i = new z(h, this, t)), this._$AV.push(i), l = s[++n];
|
|
491
502
|
}
|
|
492
|
-
o !==
|
|
503
|
+
o !== l?.index && (h = C.nextNode(), o++);
|
|
493
504
|
}
|
|
494
|
-
return
|
|
505
|
+
return C.currentNode = r$2, e;
|
|
495
506
|
}
|
|
496
507
|
p(t) {
|
|
497
508
|
let i = 0;
|
|
498
509
|
for (const s of this._$AV) void 0 !== s && (void 0 !== s.strings ? (s._$AI(t, s, i), i += s.strings.length - 2) : s._$AI(t[i])), i++;
|
|
499
510
|
}
|
|
500
511
|
}
|
|
501
|
-
class
|
|
512
|
+
class R {
|
|
502
513
|
get _$AU() {
|
|
503
|
-
return this._$AM?._$AU ?? this.
|
|
514
|
+
return this._$AM?._$AU ?? this._$Cv;
|
|
504
515
|
}
|
|
505
516
|
constructor(t, i, s, e) {
|
|
506
|
-
this.type = 2, this._$AH =
|
|
517
|
+
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cv = e?.isConnected ?? !0;
|
|
507
518
|
}
|
|
508
519
|
get parentNode() {
|
|
509
520
|
let t = this._$AA.parentNode;
|
|
@@ -517,7 +528,7 @@ class et {
|
|
|
517
528
|
return this._$AB;
|
|
518
529
|
}
|
|
519
530
|
_$AI(t, i = this) {
|
|
520
|
-
t =
|
|
531
|
+
t = S(this, t, i), c(t) ? t === E || null == t || "" === t ? (this._$AH !== E && this._$AR(), this._$AH = E) : t !== this._$AH && t !== T && this._(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : u(t) ? this.k(t) : this._(t);
|
|
521
532
|
}
|
|
522
533
|
O(t) {
|
|
523
534
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -526,30 +537,30 @@ class et {
|
|
|
526
537
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
|
527
538
|
}
|
|
528
539
|
_(t) {
|
|
529
|
-
this._$AH !==
|
|
540
|
+
this._$AH !== E && c(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$2.createTextNode(t)), this._$AH = t;
|
|
530
541
|
}
|
|
531
542
|
$(t) {
|
|
532
543
|
const {
|
|
533
544
|
values: i,
|
|
534
545
|
_$litType$: s
|
|
535
546
|
} = t,
|
|
536
|
-
e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el =
|
|
547
|
+
e = "number" == typeof s ? this._$AC(t) : (void 0 === s.el && (s.el = N.createElement(P(s.h, s.h[0]), this.options)), s);
|
|
537
548
|
if (this._$AH?._$AD === e) this._$AH.p(i);else {
|
|
538
|
-
const t = new
|
|
549
|
+
const t = new M(e, this),
|
|
539
550
|
s = t.u(this.options);
|
|
540
551
|
t.p(i), this.T(s), this._$AH = t;
|
|
541
552
|
}
|
|
542
553
|
}
|
|
543
554
|
_$AC(t) {
|
|
544
|
-
let i =
|
|
545
|
-
return void 0 === i &&
|
|
555
|
+
let i = A.get(t.strings);
|
|
556
|
+
return void 0 === i && A.set(t.strings, i = new N(t)), i;
|
|
546
557
|
}
|
|
547
558
|
k(t) {
|
|
548
|
-
|
|
559
|
+
a(this._$AH) || (this._$AH = [], this._$AR());
|
|
549
560
|
const i = this._$AH;
|
|
550
561
|
let s,
|
|
551
562
|
e = 0;
|
|
552
|
-
for (const h of t) e === i.length ? i.push(s = new
|
|
563
|
+
for (const h of t) e === i.length ? i.push(s = new R(this.O(l()), this.O(l()), this, this.options)) : s = i[e], s._$AI(h), e++;
|
|
553
564
|
e < i.length && (this._$AR(s && s._$AB.nextSibling, e), i.length = e);
|
|
554
565
|
}
|
|
555
566
|
_$AR(t = this._$AA.nextSibling, i) {
|
|
@@ -559,10 +570,10 @@ class et {
|
|
|
559
570
|
}
|
|
560
571
|
}
|
|
561
572
|
setConnected(t) {
|
|
562
|
-
void 0 === this._$AM && (this.
|
|
573
|
+
void 0 === this._$AM && (this._$Cv = t, this._$AP?.(t));
|
|
563
574
|
}
|
|
564
575
|
}
|
|
565
|
-
class
|
|
576
|
+
class k {
|
|
566
577
|
get tagName() {
|
|
567
578
|
return this.element.tagName;
|
|
568
579
|
}
|
|
@@ -570,54 +581,54 @@ class G {
|
|
|
570
581
|
return this._$AM._$AU;
|
|
571
582
|
}
|
|
572
583
|
constructor(t, i, s, e, h) {
|
|
573
|
-
this.type = 1, this._$AH =
|
|
584
|
+
this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = h, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = E;
|
|
574
585
|
}
|
|
575
586
|
_$AI(t, i = this, s, e) {
|
|
576
587
|
const h = this.strings;
|
|
577
588
|
let o = !1;
|
|
578
|
-
if (void 0 === h) t =
|
|
589
|
+
if (void 0 === h) t = S(this, t, i, 0), o = !c(t) || t !== this._$AH && t !== T, o && (this._$AH = t);else {
|
|
579
590
|
const e = t;
|
|
580
591
|
let n, r;
|
|
581
|
-
for (t = h[0], n = 0; n < h.length - 1; n++) r =
|
|
592
|
+
for (t = h[0], n = 0; n < h.length - 1; n++) r = S(this, e[s + n], i, n), r === T && (r = this._$AH[n]), o ||= !c(r) || r !== this._$AH[n], r === E ? t = E : t !== E && (t += (r ?? "") + h[n + 1]), this._$AH[n] = r;
|
|
582
593
|
}
|
|
583
594
|
o && !e && this.j(t);
|
|
584
595
|
}
|
|
585
596
|
j(t) {
|
|
586
|
-
t ===
|
|
597
|
+
t === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
587
598
|
}
|
|
588
599
|
}
|
|
589
|
-
class
|
|
600
|
+
class H extends k {
|
|
590
601
|
constructor() {
|
|
591
602
|
super(...arguments), this.type = 3;
|
|
592
603
|
}
|
|
593
604
|
j(t) {
|
|
594
|
-
this.element[this.name] = t ===
|
|
605
|
+
this.element[this.name] = t === E ? void 0 : t;
|
|
595
606
|
}
|
|
596
607
|
}
|
|
597
|
-
class
|
|
608
|
+
class I extends k {
|
|
598
609
|
constructor() {
|
|
599
610
|
super(...arguments), this.type = 4;
|
|
600
611
|
}
|
|
601
612
|
j(t) {
|
|
602
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
|
613
|
+
this.element.toggleAttribute(this.name, !!t && t !== E);
|
|
603
614
|
}
|
|
604
615
|
}
|
|
605
|
-
class
|
|
616
|
+
class L extends k {
|
|
606
617
|
constructor(t, i, s, e, h) {
|
|
607
618
|
super(t, i, s, e, h), this.type = 5;
|
|
608
619
|
}
|
|
609
620
|
_$AI(t, i = this) {
|
|
610
|
-
if ((t =
|
|
621
|
+
if ((t = S(this, t, i, 0) ?? E) === T) return;
|
|
611
622
|
const s = this._$AH,
|
|
612
|
-
e = t ===
|
|
613
|
-
h = t !==
|
|
623
|
+
e = t === E && s !== E || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive,
|
|
624
|
+
h = t !== E && (s === E || e);
|
|
614
625
|
e && this.element.removeEventListener(this.name, this, s), h && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
615
626
|
}
|
|
616
627
|
handleEvent(t) {
|
|
617
628
|
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
|
|
618
629
|
}
|
|
619
630
|
}
|
|
620
|
-
class
|
|
631
|
+
class z {
|
|
621
632
|
constructor(t, i, s) {
|
|
622
633
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
|
|
623
634
|
}
|
|
@@ -625,17 +636,17 @@ class K {
|
|
|
625
636
|
return this._$AM._$AU;
|
|
626
637
|
}
|
|
627
638
|
_$AI(t) {
|
|
628
|
-
|
|
639
|
+
S(this, t);
|
|
629
640
|
}
|
|
630
641
|
}
|
|
631
|
-
const
|
|
632
|
-
|
|
633
|
-
const
|
|
642
|
+
const j = t.litHtmlPolyfillSupport;
|
|
643
|
+
j?.(N, R), (t.litHtmlVersions ??= []).push("3.3.0");
|
|
644
|
+
const B = (t, i, s) => {
|
|
634
645
|
const e = s?.renderBefore ?? i;
|
|
635
646
|
let h = e._$litPart$;
|
|
636
647
|
if (void 0 === h) {
|
|
637
648
|
const t = s?.renderBefore ?? null;
|
|
638
|
-
e._$litPart$ = h = new
|
|
649
|
+
e._$litPart$ = h = new R(i.insertBefore(l(), t), t, void 0, s ?? {});
|
|
639
650
|
}
|
|
640
651
|
return h._$AI(t), h;
|
|
641
652
|
};
|
|
@@ -645,38 +656,39 @@ const Q = (t, i, s) => {
|
|
|
645
656
|
* Copyright 2017 Google LLC
|
|
646
657
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
647
658
|
*/
|
|
648
|
-
|
|
659
|
+
const s = globalThis;
|
|
660
|
+
class i extends y$1 {
|
|
649
661
|
constructor() {
|
|
650
662
|
super(...arguments), this.renderOptions = {
|
|
651
663
|
host: this
|
|
652
|
-
}, this.
|
|
664
|
+
}, this._$Do = void 0;
|
|
653
665
|
}
|
|
654
666
|
createRenderRoot() {
|
|
655
667
|
const t = super.createRenderRoot();
|
|
656
668
|
return this.renderOptions.renderBefore ??= t.firstChild, t;
|
|
657
669
|
}
|
|
658
670
|
update(t) {
|
|
659
|
-
const
|
|
660
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this.
|
|
671
|
+
const r = this.render();
|
|
672
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = B(r, this.renderRoot, this.renderOptions);
|
|
661
673
|
}
|
|
662
674
|
connectedCallback() {
|
|
663
|
-
super.connectedCallback(), this.
|
|
675
|
+
super.connectedCallback(), this._$Do?.setConnected(!0);
|
|
664
676
|
}
|
|
665
677
|
disconnectedCallback() {
|
|
666
|
-
super.disconnectedCallback(), this.
|
|
678
|
+
super.disconnectedCallback(), this._$Do?.setConnected(!1);
|
|
667
679
|
}
|
|
668
680
|
render() {
|
|
669
|
-
return
|
|
681
|
+
return T;
|
|
670
682
|
}
|
|
671
683
|
}
|
|
672
|
-
|
|
673
|
-
LitElement:
|
|
684
|
+
i._$litElement$ = !0, i["finalized"] = !0, s.litElementHydrateSupport?.({
|
|
685
|
+
LitElement: i
|
|
674
686
|
});
|
|
675
|
-
const
|
|
676
|
-
|
|
677
|
-
LitElement:
|
|
687
|
+
const o$1 = s.litElementPolyfillSupport;
|
|
688
|
+
o$1?.({
|
|
689
|
+
LitElement: i
|
|
678
690
|
});
|
|
679
|
-
(
|
|
691
|
+
(s.litElementVersions ??= []).push("4.2.0");
|
|
680
692
|
|
|
681
693
|
/**
|
|
682
694
|
* @license
|
|
@@ -686,17 +698,17 @@ f?.({
|
|
|
686
698
|
const o = {
|
|
687
699
|
attribute: !0,
|
|
688
700
|
type: String,
|
|
689
|
-
converter: u,
|
|
701
|
+
converter: u$1,
|
|
690
702
|
reflect: !1,
|
|
691
|
-
hasChanged: f$
|
|
703
|
+
hasChanged: f$1
|
|
692
704
|
},
|
|
693
|
-
r = (t = o, e, r) => {
|
|
705
|
+
r$1 = (t = o, e, r) => {
|
|
694
706
|
const {
|
|
695
707
|
kind: n,
|
|
696
708
|
metadata: i
|
|
697
709
|
} = r;
|
|
698
710
|
let s = globalThis.litPropertyMetadata.get(i);
|
|
699
|
-
if (void 0 === s && globalThis.litPropertyMetadata.set(i, s = new Map()), s.set(r.name, t), "accessor" === n) {
|
|
711
|
+
if (void 0 === s && globalThis.litPropertyMetadata.set(i, s = new Map()), "setter" === n && ((t = Object.create(t)).wrapped = !0), s.set(r.name, t), "accessor" === n) {
|
|
700
712
|
const {
|
|
701
713
|
name: o
|
|
702
714
|
} = r;
|
|
@@ -706,7 +718,7 @@ const o = {
|
|
|
706
718
|
e.set.call(this, r), this.requestUpdate(o, n, t);
|
|
707
719
|
},
|
|
708
720
|
init(e) {
|
|
709
|
-
return void 0 !== e && this.
|
|
721
|
+
return void 0 !== e && this.C(o, void 0, t, e), e;
|
|
710
722
|
}
|
|
711
723
|
};
|
|
712
724
|
}
|
|
@@ -722,53 +734,82 @@ const o = {
|
|
|
722
734
|
throw Error("Unsupported decorator location: " + n);
|
|
723
735
|
};
|
|
724
736
|
function n(t) {
|
|
725
|
-
return (e, o) => "object" == typeof o ? r(t, e, o) : ((t, e, o) => {
|
|
737
|
+
return (e, o) => "object" == typeof o ? r$1(t, e, o) : ((t, e, o) => {
|
|
726
738
|
const r = e.hasOwnProperty(o);
|
|
727
|
-
return e.constructor.createProperty(o, r ?
|
|
728
|
-
...t,
|
|
729
|
-
wrapped: !0
|
|
730
|
-
} : t), r ? Object.getOwnPropertyDescriptor(e, o) : void 0;
|
|
739
|
+
return e.constructor.createProperty(o, t), r ? Object.getOwnPropertyDescriptor(e, o) : void 0;
|
|
731
740
|
})(t, e, o);
|
|
732
741
|
}
|
|
733
742
|
|
|
734
|
-
|
|
743
|
+
/**
|
|
744
|
+
* @license
|
|
745
|
+
* Copyright 2017 Google LLC
|
|
746
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
747
|
+
*/
|
|
748
|
+
function r(r) {
|
|
749
|
+
return n({
|
|
750
|
+
...r,
|
|
751
|
+
state: !0,
|
|
752
|
+
attribute: !1
|
|
753
|
+
});
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
class WidgetImage extends i {
|
|
735
757
|
constructor() {
|
|
736
758
|
super(...arguments);
|
|
737
|
-
this.version = '1.1.
|
|
759
|
+
this.version = '1.1.5';
|
|
760
|
+
}
|
|
761
|
+
update(changedProperties) {
|
|
762
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
763
|
+
if (changedProperties.has('theme')) {
|
|
764
|
+
const cssTextColor = getComputedStyle(this).getPropertyValue('--re-text-color').trim();
|
|
765
|
+
const cssBgColor = getComputedStyle(this).getPropertyValue('--re-background-color').trim();
|
|
766
|
+
this.themeBgColor = cssBgColor || ((_b = (_a = this.theme) === null || _a === void 0 ? void 0 : _a.theme_object) === null || _b === void 0 ? void 0 : _b.backgroundColor);
|
|
767
|
+
this.themeTitleColor = cssTextColor || ((_f = (_e = (_d = (_c = this.theme) === null || _c === void 0 ? void 0 : _c.theme_object) === null || _d === void 0 ? void 0 : _d.title) === null || _e === void 0 ? void 0 : _e.textStyle) === null || _f === void 0 ? void 0 : _f.color);
|
|
768
|
+
this.themeSubtitleColor =
|
|
769
|
+
cssTextColor || ((_k = (_j = (_h = (_g = this.theme) === null || _g === void 0 ? void 0 : _g.theme_object) === null || _h === void 0 ? void 0 : _h.title) === null || _j === void 0 ? void 0 : _j.subtextStyle) === null || _k === void 0 ? void 0 : _k.color) || this.themeTitleColor;
|
|
770
|
+
}
|
|
771
|
+
super.update(changedProperties);
|
|
738
772
|
}
|
|
739
773
|
render() {
|
|
740
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5;
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
if ((_f = (_e = this.inputData) === null || _e === void 0 ? void 0 : _e.subTitle) === null || _f === void 0 ? void 0 : _f.color)
|
|
744
|
-
this.style.setProperty('--re-user-p-color', (_h = (_g = this.inputData) === null || _g === void 0 ? void 0 : _g.subTitle) === null || _h === void 0 ? void 0 : _h.color);
|
|
745
|
-
return ke `
|
|
746
|
-
<div class="wrapper">
|
|
774
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10;
|
|
775
|
+
return x `
|
|
776
|
+
<div class="wrapper" style="background-color: ${this.themeBgColor}">
|
|
747
777
|
<h3
|
|
748
778
|
class="paging"
|
|
749
|
-
?active=${(
|
|
750
|
-
style="font-size: ${(
|
|
751
|
-
|
|
752
|
-
|
|
779
|
+
?active=${(_b = (_a = this.inputData) === null || _a === void 0 ? void 0 : _a.title) === null || _b === void 0 ? void 0 : _b.text}
|
|
780
|
+
style="font-size: ${(_d = (_c = this.inputData) === null || _c === void 0 ? void 0 : _c.title) === null || _d === void 0 ? void 0 : _d.fontSize};
|
|
781
|
+
font-weight: ${(_f = (_e = this.inputData) === null || _e === void 0 ? void 0 : _e.title) === null || _f === void 0 ? void 0 : _f.fontWeight};
|
|
782
|
+
background-color: ${(_h = (_g = this.inputData) === null || _g === void 0 ? void 0 : _g.title) === null || _h === void 0 ? void 0 : _h.backgroundColor};
|
|
783
|
+
color: ${(_l = (_k = (_j = this.inputData) === null || _j === void 0 ? void 0 : _j.title) === null || _k === void 0 ? void 0 : _k.color) !== null && _l !== void 0 ? _l : this.themeTitleColor};"
|
|
753
784
|
>
|
|
754
|
-
${(
|
|
785
|
+
${(_o = (_m = this.inputData) === null || _m === void 0 ? void 0 : _m.title) === null || _o === void 0 ? void 0 : _o.text}
|
|
755
786
|
</h3>
|
|
756
787
|
<p
|
|
757
788
|
class="paging"
|
|
758
|
-
?active=${(
|
|
759
|
-
style="font-size: ${(
|
|
789
|
+
?active=${(_q = (_p = this.inputData) === null || _p === void 0 ? void 0 : _p.subTitle) === null || _q === void 0 ? void 0 : _q.text}
|
|
790
|
+
style="font-size: ${(_s = (_r = this.inputData) === null || _r === void 0 ? void 0 : _r.subTitle) === null || _s === void 0 ? void 0 : _s.fontSize};
|
|
791
|
+
font-weight: ${(_u = (_t = this.inputData) === null || _t === void 0 ? void 0 : _t.subTitle) === null || _u === void 0 ? void 0 : _u.fontWeight};
|
|
792
|
+
color: ${(_x = (_w = (_v = this.inputData) === null || _v === void 0 ? void 0 : _v.subTitle) === null || _w === void 0 ? void 0 : _w.color) !== null && _x !== void 0 ? _x : this.themeSubtitleColor};"
|
|
760
793
|
>
|
|
761
|
-
${(
|
|
794
|
+
${(_z = (_y = this.inputData) === null || _y === void 0 ? void 0 : _y.subTitle) === null || _z === void 0 ? void 0 : _z.text}
|
|
762
795
|
</p>
|
|
763
|
-
<div
|
|
764
|
-
|
|
765
|
-
|
|
796
|
+
<div
|
|
797
|
+
class="paging no-data"
|
|
798
|
+
?active=${!((_0 = this.inputData) === null || _0 === void 0 ? void 0 : _0.imageLink)}
|
|
799
|
+
style="font-size: ${(_2 = (_1 = this.inputData) === null || _1 === void 0 ? void 0 : _1.title) === null || _2 === void 0 ? void 0 : _2.fontSize};
|
|
800
|
+
font-weight: ${(_4 = (_3 = this.inputData) === null || _3 === void 0 ? void 0 : _3.title) === null || _4 === void 0 ? void 0 : _4.fontWeight};
|
|
801
|
+
color: ${(_7 = (_6 = (_5 = this.inputData) === null || _5 === void 0 ? void 0 : _5.title) === null || _6 === void 0 ? void 0 : _6.color) !== null && _7 !== void 0 ? _7 : this.themeTitleColor};"
|
|
802
|
+
>
|
|
803
|
+
No Image
|
|
804
|
+
</div>
|
|
805
|
+
<div class="img-container paging" ?active="${(_8 = this.inputData) === null || _8 === void 0 ? void 0 : _8.imageLink}">
|
|
806
|
+
<img src="${(_10 = (_9 = this.inputData) === null || _9 === void 0 ? void 0 : _9.imageLink) !== null && _10 !== void 0 ? _10 : ''}" alt="Image Widget" />
|
|
766
807
|
</div>
|
|
767
808
|
</div>
|
|
768
809
|
`;
|
|
769
810
|
}
|
|
770
811
|
}
|
|
771
|
-
WidgetImage.styles = i$
|
|
812
|
+
WidgetImage.styles = i$3 `
|
|
772
813
|
:host {
|
|
773
814
|
display: block;
|
|
774
815
|
font-family: sans-serif;
|
|
@@ -795,7 +836,6 @@ WidgetImage.styles = i$1 `
|
|
|
795
836
|
overflow: hidden;
|
|
796
837
|
text-overflow: ellipsis;
|
|
797
838
|
white-space: nowrap;
|
|
798
|
-
color: var(--re-text-color, #000) !important;
|
|
799
839
|
}
|
|
800
840
|
p {
|
|
801
841
|
margin: 10px 0 0 0;
|
|
@@ -805,7 +845,6 @@ WidgetImage.styles = i$1 `
|
|
|
805
845
|
overflow: hidden;
|
|
806
846
|
text-overflow: ellipsis;
|
|
807
847
|
white-space: nowrap;
|
|
808
|
-
color: var(--re-text-color, #000) !important;
|
|
809
848
|
}
|
|
810
849
|
|
|
811
850
|
.img-container {
|
|
@@ -821,7 +860,6 @@ WidgetImage.styles = i$1 `
|
|
|
821
860
|
}
|
|
822
861
|
.no-data {
|
|
823
862
|
font-size: 20px;
|
|
824
|
-
color: var(--re-text-color, #000);
|
|
825
863
|
display: flex;
|
|
826
864
|
height: 100%;
|
|
827
865
|
width: 100%;
|
|
@@ -833,7 +871,19 @@ WidgetImage.styles = i$1 `
|
|
|
833
871
|
__decorate([
|
|
834
872
|
n({ type: Object })
|
|
835
873
|
], WidgetImage.prototype, "inputData", void 0);
|
|
836
|
-
|
|
874
|
+
__decorate([
|
|
875
|
+
n({ type: Object })
|
|
876
|
+
], WidgetImage.prototype, "theme", void 0);
|
|
877
|
+
__decorate([
|
|
878
|
+
r()
|
|
879
|
+
], WidgetImage.prototype, "themeBgColor", void 0);
|
|
880
|
+
__decorate([
|
|
881
|
+
r()
|
|
882
|
+
], WidgetImage.prototype, "themeTitleColor", void 0);
|
|
883
|
+
__decorate([
|
|
884
|
+
r()
|
|
885
|
+
], WidgetImage.prototype, "themeSubtitleColor", void 0);
|
|
886
|
+
window.customElements.define('widget-image-1.1.5', WidgetImage);
|
|
837
887
|
|
|
838
888
|
export { WidgetImage };
|
|
839
889
|
//# sourceMappingURL=widget-image.js.map
|