pollcatch 2.1.7 → 2.1.9
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/package.json +1 -1
- package/pc.js +4 -2
package/package.json
CHANGED
package/pc.js
CHANGED
|
@@ -1060,6 +1060,8 @@ function dt(e) {
|
|
|
1060
1060
|
const t = e.trim();
|
|
1061
1061
|
if (t.length === 0)
|
|
1062
1062
|
return !1;
|
|
1063
|
+
if (t.startsWith("/") || t.startsWith("./"))
|
|
1064
|
+
return !0;
|
|
1063
1065
|
try {
|
|
1064
1066
|
return t.startsWith("//") ? (new URL(`http:${t}`), !0) : (new URL(t), !0);
|
|
1065
1067
|
} catch {
|
|
@@ -3857,7 +3859,7 @@ const Vo = F`
|
|
|
3857
3859
|
};
|
|
3858
3860
|
function Ce(e) {
|
|
3859
3861
|
let t = "❓", o = !1;
|
|
3860
|
-
return e ? e in se ? t = se[e] : ve(e) ? t = e : dt(e) ? (o = !0, t = e) : /^\w+@\w+$/.test(e) ? t = e : e.endsWith(".svg") ? (t = `https://cdn.jsdelivr.net/npm/@mdi/svg@7.4.47/svg/${e}`, o = !0) : t = e : t = "❓", {
|
|
3862
|
+
return e ? e in se ? t = se[e] : ve(e) ? t = e : dt(e) ? (o = !0, t = e) : /^\w+@\w+$/.test(e) ? t = e : e.endsWith(".svg") && !e.includes("/") ? (t = `https://cdn.jsdelivr.net/npm/@mdi/svg@7.4.47/svg/${e}`, o = !0) : t = e : t = "❓", {
|
|
3861
3863
|
icon: t,
|
|
3862
3864
|
isRemoteImage: o
|
|
3863
3865
|
};
|
|
@@ -4005,7 +4007,7 @@ let q = class extends b {
|
|
|
4005
4007
|
};
|
|
4006
4008
|
if (this.compact) {
|
|
4007
4009
|
const t = this.options.filter(
|
|
4008
|
-
(o) => this.
|
|
4010
|
+
(o) => this.dataController.isValueSelected(o.value)
|
|
4009
4011
|
);
|
|
4010
4012
|
return d`
|
|
4011
4013
|
<div class="${w(e)}">
|