@elmethis/vue 0.17.0 → 0.18.0
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/lib/index.vue.cjs +5 -5
- package/lib/index.vue.mjs +247 -259
- package/lib/style.css +1 -1
- package/lib-types/components/media/elm-block-image.d.ts.map +1 -1
- package/package.json +1 -1
package/lib/index.vue.mjs
CHANGED
|
@@ -959,18 +959,18 @@ var kn = "https://a2ui.org/specification/v0_9/basic_catalog.json", An = /* @__PU
|
|
|
959
959
|
innerHTML: n.value
|
|
960
960
|
}, null);
|
|
961
961
|
}
|
|
962
|
-
}),
|
|
962
|
+
}), k = {
|
|
963
963
|
"elm-code-block": "_elm-code-block_6itf9_1",
|
|
964
964
|
"language-icon": "_language-icon_6itf9_16",
|
|
965
965
|
caption: "_caption_6itf9_21",
|
|
966
966
|
"copy-icon": "_copy-icon_6itf9_28",
|
|
967
967
|
divider: "_divider_6itf9_32",
|
|
968
968
|
code: "_code_6itf9_39"
|
|
969
|
-
},
|
|
969
|
+
}, Fn = (e, t, n) => t === "id" ? `${e}-${n}` : e.replace(/url\(#([^)]+)\)/g, `url(#$1-${n})`), In = (e, t) => {
|
|
970
970
|
let n = {};
|
|
971
|
-
for (let [r, i] of Object.entries(e.attrs ?? {})) n[r] =
|
|
972
|
-
return e.style && (n.style = e.style), a(e.tag, n, e.children?.map((e) =>
|
|
973
|
-
},
|
|
971
|
+
for (let [r, i] of Object.entries(e.attrs ?? {})) n[r] = Fn(i, r, t);
|
|
972
|
+
return e.style && (n.style = e.style), a(e.tag, n, e.children?.map((e) => In(e, t)));
|
|
973
|
+
}, Ln = /* @__PURE__ */ i({
|
|
974
974
|
name: "LanguageGlyph",
|
|
975
975
|
props: {
|
|
976
976
|
icon: {
|
|
@@ -990,9 +990,9 @@ var kn = "https://a2ui.org/specification/v0_9/basic_catalog.json", An = /* @__PU
|
|
|
990
990
|
width: e.size,
|
|
991
991
|
height: e.size,
|
|
992
992
|
...e.icon.attrs
|
|
993
|
-
}, e.icon.children.map((e) =>
|
|
993
|
+
}, e.icon.children.map((e) => In(e, t)));
|
|
994
994
|
}
|
|
995
|
-
}),
|
|
995
|
+
}), Rn = { "elm-mdi-icon": "_elm-mdi-icon_ihskx_1" }, A = /* @__PURE__ */ i({
|
|
996
996
|
name: "ElmMdiIcon",
|
|
997
997
|
inheritAttrs: !1,
|
|
998
998
|
props: {
|
|
@@ -1021,7 +1021,7 @@ var kn = "https://a2ui.org/specification/v0_9/basic_catalog.json", An = /* @__PU
|
|
|
1021
1021
|
return () => {
|
|
1022
1022
|
let { class: n, style: i, ...a } = t;
|
|
1023
1023
|
return r("svg", c({
|
|
1024
|
-
class: x(
|
|
1024
|
+
class: x(Rn["elm-mdi-icon"], n),
|
|
1025
1025
|
style: [{
|
|
1026
1026
|
"--elmethis-scoped-color": e.lightColor ?? e.color,
|
|
1027
1027
|
"--dark-color": e.darkColor ?? e.color
|
|
@@ -1036,7 +1036,7 @@ var kn = "https://a2ui.org/specification/v0_9/basic_catalog.json", An = /* @__PU
|
|
|
1036
1036
|
}, a), [r("path", { d: e.d }, null)]);
|
|
1037
1037
|
};
|
|
1038
1038
|
}
|
|
1039
|
-
}),
|
|
1039
|
+
}), zn = /* @__PURE__ */ i({
|
|
1040
1040
|
name: "ElmLanguageIcon",
|
|
1041
1041
|
props: {
|
|
1042
1042
|
size: {
|
|
@@ -1051,16 +1051,16 @@ var kn = "https://a2ui.org/specification/v0_9/basic_catalog.json", An = /* @__PU
|
|
|
1051
1051
|
setup(e) {
|
|
1052
1052
|
return () => {
|
|
1053
1053
|
let t = Ht(e.language);
|
|
1054
|
-
return t === "file" ? r(
|
|
1054
|
+
return t === "file" ? r(A, {
|
|
1055
1055
|
d: Pe,
|
|
1056
1056
|
size: String(e.size)
|
|
1057
|
-
}, null) : a(
|
|
1057
|
+
}, null) : a(Ln, {
|
|
1058
1058
|
icon: Vt[t],
|
|
1059
1059
|
size: e.size
|
|
1060
1060
|
});
|
|
1061
1061
|
};
|
|
1062
1062
|
}
|
|
1063
|
-
}),
|
|
1063
|
+
}), Bn = { "elm-shiki-highlighter": "_elm-shiki-highlighter_j5tas_1" }, Vn = /* @__PURE__ */ i({
|
|
1064
1064
|
name: "ElmShikiHighlighter",
|
|
1065
1065
|
inheritAttrs: !1,
|
|
1066
1066
|
props: {
|
|
@@ -1105,15 +1105,15 @@ var kn = "https://a2ui.org/specification/v0_9/basic_catalog.json", An = /* @__PU
|
|
|
1105
1105
|
}, { immediate: !0 }), () => {
|
|
1106
1106
|
let { class: e, ...i } = t;
|
|
1107
1107
|
return r("pre", c({
|
|
1108
|
-
class: x(
|
|
1108
|
+
class: x(Bn["elm-shiki-highlighter"], e),
|
|
1109
1109
|
innerHTML: n.value
|
|
1110
1110
|
}, i), null);
|
|
1111
1111
|
};
|
|
1112
1112
|
}
|
|
1113
|
-
}),
|
|
1113
|
+
}), Hn = {
|
|
1114
1114
|
"use-clipboard": "_use-clipboard_mb0qt_1",
|
|
1115
1115
|
"use-clipboard-icon-copied": "_use-clipboard-icon-copied_mb0qt_15"
|
|
1116
|
-
},
|
|
1116
|
+
}, Un = (e) => {
|
|
1117
1117
|
let n = e.delay ?? 1500, a = be({ copiedDuring: n }), o = xe({ copiedDuring: n }), s = t(() => a.copied.value || o.copied.value), c = async () => {
|
|
1118
1118
|
let t = e.content;
|
|
1119
1119
|
typeof t == "string" ? await a.copy(t) : await o.copy(t.map((e) => new ClipboardItem(e)));
|
|
@@ -1124,18 +1124,18 @@ var kn = "https://a2ui.org/specification/v0_9/basic_catalog.json", An = /* @__PU
|
|
|
1124
1124
|
name: "CopyButton",
|
|
1125
1125
|
setup() {
|
|
1126
1126
|
return () => r("span", {
|
|
1127
|
-
class: x(
|
|
1127
|
+
class: x(Hn["use-clipboard"], e.class),
|
|
1128
1128
|
style: e.style,
|
|
1129
1129
|
onClick: c
|
|
1130
|
-
}, [r(
|
|
1131
|
-
class: x(s.value &&
|
|
1130
|
+
}, [r(A, {
|
|
1131
|
+
class: x(s.value && Hn["use-clipboard-icon-copied"]),
|
|
1132
1132
|
d: s.value ? Me : Ne,
|
|
1133
1133
|
size: "1.25rem"
|
|
1134
1134
|
}, null)]);
|
|
1135
1135
|
}
|
|
1136
1136
|
})
|
|
1137
1137
|
};
|
|
1138
|
-
},
|
|
1138
|
+
}, Wn = /* @__PURE__ */ i({
|
|
1139
1139
|
name: "ElmCodeBlock",
|
|
1140
1140
|
props: {
|
|
1141
1141
|
code: {
|
|
@@ -1152,25 +1152,25 @@ var kn = "https://a2ui.org/specification/v0_9/basic_catalog.json", An = /* @__PU
|
|
|
1152
1152
|
}
|
|
1153
1153
|
},
|
|
1154
1154
|
setup(e, { slots: t }) {
|
|
1155
|
-
let { CopyButton: n } =
|
|
1156
|
-
return () => r("figure", { class: x(
|
|
1157
|
-
r("span", { class:
|
|
1158
|
-
r("span", { class:
|
|
1159
|
-
r("div", { class:
|
|
1160
|
-
r("hr", { class:
|
|
1161
|
-
r("div", { class:
|
|
1155
|
+
let { CopyButton: n } = Un({ content: e.code });
|
|
1156
|
+
return () => r("figure", { class: x(k["elm-code-block"]) }, [
|
|
1157
|
+
r("span", { class: k["language-icon"] }, [r(zn, { language: e.language }, null)]),
|
|
1158
|
+
r("span", { class: k.caption }, [r(E, null, { default: () => [e.caption || e.language, t.default?.()] })]),
|
|
1159
|
+
r("div", { class: k["copy-icon"] }, [a(n)]),
|
|
1160
|
+
r("hr", { class: k.divider }, null),
|
|
1161
|
+
r("div", { class: k.code }, [r(Vn, {
|
|
1162
1162
|
code: e.code,
|
|
1163
1163
|
language: e.language
|
|
1164
1164
|
}, null)])
|
|
1165
1165
|
]);
|
|
1166
1166
|
}
|
|
1167
|
-
}),
|
|
1167
|
+
}), j = {
|
|
1168
1168
|
"elm-html-viewer": "_elm-html-viewer_jde0x_1",
|
|
1169
1169
|
header: "_header_jde0x_15",
|
|
1170
1170
|
"icon-button": "_icon-button_jde0x_23",
|
|
1171
1171
|
divider: "_divider_jde0x_49",
|
|
1172
1172
|
content: "_content_jde0x_57"
|
|
1173
|
-
},
|
|
1173
|
+
}, Gn = { "elm-html": "_elm-html_339tp_1" }, Kn = (e) => {
|
|
1174
1174
|
let t = [], n = 0, r, i = 0;
|
|
1175
1175
|
for (let a = 0; a < e.length; a++) {
|
|
1176
1176
|
let o = e[a];
|
|
@@ -1181,9 +1181,9 @@ var kn = "https://a2ui.org/specification/v0_9/basic_catalog.json", An = /* @__PU
|
|
|
1181
1181
|
o === "\"" || o === "'" ? r = o : o === "(" ? n++ : o === ")" ? n = Math.max(0, n - 1) : o === ";" && n === 0 && (t.push(e.slice(i, a)), i = a + 1);
|
|
1182
1182
|
}
|
|
1183
1183
|
return t.push(e.slice(i)), t;
|
|
1184
|
-
},
|
|
1184
|
+
}, qn = (e) => {
|
|
1185
1185
|
let t = {};
|
|
1186
|
-
for (let n of
|
|
1186
|
+
for (let n of Kn(e)) {
|
|
1187
1187
|
let e = n.indexOf(":");
|
|
1188
1188
|
if (e === -1) continue;
|
|
1189
1189
|
let r = n.slice(0, e).trim(), i = n.slice(e + 1).trim();
|
|
@@ -1192,21 +1192,21 @@ var kn = "https://a2ui.org/specification/v0_9/basic_catalog.json", An = /* @__PU
|
|
|
1192
1192
|
t[a] = i;
|
|
1193
1193
|
}
|
|
1194
1194
|
return t;
|
|
1195
|
-
},
|
|
1196
|
-
if (e !== void 0) return typeof e == "string" ?
|
|
1197
|
-
},
|
|
1195
|
+
}, Jn = (e) => {
|
|
1196
|
+
if (e !== void 0) return typeof e == "string" ? qn(e) : l(e);
|
|
1197
|
+
}, Yn = (e, t) => t ? !0 : (e?.split(/\s+/).filter(Boolean) ?? []).some((e) => e.toLowerCase() === "allow-scripts"), Xn = "elmethis:elm-html:auto-height", Zn = (e) => `${e}
|
|
1198
1198
|
<script>(function () {
|
|
1199
1199
|
var send = function () {
|
|
1200
1200
|
try {
|
|
1201
1201
|
parent.postMessage(
|
|
1202
|
-
{ kind: ${JSON.stringify(
|
|
1202
|
+
{ kind: ${JSON.stringify(Xn)}, height: document.documentElement.scrollHeight },
|
|
1203
1203
|
"*",
|
|
1204
1204
|
);
|
|
1205
1205
|
} catch (e) {}
|
|
1206
1206
|
};
|
|
1207
1207
|
new ResizeObserver(send).observe(document.documentElement);
|
|
1208
1208
|
send();
|
|
1209
|
-
})();<\/script>`,
|
|
1209
|
+
})();<\/script>`, Qn = /* @__PURE__ */ i({
|
|
1210
1210
|
name: "ElmHtml",
|
|
1211
1211
|
inheritAttrs: !1,
|
|
1212
1212
|
props: {
|
|
@@ -1250,12 +1250,12 @@ var kn = "https://a2ui.org/specification/v0_9/basic_catalog.json", An = /* @__PU
|
|
|
1250
1250
|
}, { flush: "pre" });
|
|
1251
1251
|
let o, s = (e, t, r) => {
|
|
1252
1252
|
let s = n.value;
|
|
1253
|
-
if (!s || !e || a() &&
|
|
1254
|
-
if (
|
|
1253
|
+
if (!s || !e || a() && Yn(t, r)) return;
|
|
1254
|
+
if (Yn(t, r)) {
|
|
1255
1255
|
let e = (e) => {
|
|
1256
1256
|
if (e.source !== s.contentWindow) return;
|
|
1257
1257
|
let t = e.data;
|
|
1258
|
-
!t || t.kind !==
|
|
1258
|
+
!t || t.kind !== Xn || typeof t.height != "number" || (i.value = t.height);
|
|
1259
1259
|
};
|
|
1260
1260
|
window.addEventListener("message", e), o = () => {
|
|
1261
1261
|
window.removeEventListener("message", e);
|
|
@@ -1284,7 +1284,7 @@ var kn = "https://a2ui.org/specification/v0_9/basic_catalog.json", An = /* @__PU
|
|
|
1284
1284
|
], ([, , e, t, n]) => {
|
|
1285
1285
|
o?.(), s(e, t, n);
|
|
1286
1286
|
}, { flush: "post" }), u(() => o?.()), () => {
|
|
1287
|
-
let o = a(), { class: s, style: l, srcDoc: u, srcdoc: d, referrerPolicy: f, referrerpolicy: p, ...m } = t, h =
|
|
1287
|
+
let o = a(), { class: s, style: l, srcDoc: u, srcdoc: d, referrerPolicy: f, referrerpolicy: p, ...m } = t, h = Jn(l), g = h?.height, _ = new Set(e.sandbox?.split(/\s+/).filter(Boolean) ?? []);
|
|
1288
1288
|
e.allowScripts && _.add("allow-scripts");
|
|
1289
1289
|
let ee = [..._].some((e) => e.toLowerCase() === "allow-scripts");
|
|
1290
1290
|
if (ee) for (let e of _) e.toLowerCase() === "allow-same-origin" && _.delete(e);
|
|
@@ -1294,7 +1294,7 @@ var kn = "https://a2ui.org/specification/v0_9/basic_catalog.json", An = /* @__PU
|
|
|
1294
1294
|
key: String(e.autoHeight),
|
|
1295
1295
|
ref: n,
|
|
1296
1296
|
title: e.title ?? "Embedded HTML content",
|
|
1297
|
-
class: x(
|
|
1297
|
+
class: x(Gn["elm-html"], s),
|
|
1298
1298
|
style: e.autoHeight ? {
|
|
1299
1299
|
...h,
|
|
1300
1300
|
height: i.value === void 0 ? g : `${i.value}px`
|
|
@@ -1302,13 +1302,13 @@ var kn = "https://a2ui.org/specification/v0_9/basic_catalog.json", An = /* @__PU
|
|
|
1302
1302
|
height: e.autoHeight ? i.value === void 0 && g === void 0 ? e.height : void 0 : e.height
|
|
1303
1303
|
}, m, {
|
|
1304
1304
|
src: o ? e.src : void 0,
|
|
1305
|
-
srcdoc: o ? void 0 : e.autoHeight && ee ?
|
|
1305
|
+
srcdoc: o ? void 0 : e.autoHeight && ee ? Zn(e.html ?? "") : e.html ?? "",
|
|
1306
1306
|
sandbox: v,
|
|
1307
1307
|
referrerpolicy: o ? "no-referrer" : void 0
|
|
1308
1308
|
}), null);
|
|
1309
1309
|
};
|
|
1310
1310
|
}
|
|
1311
|
-
}),
|
|
1311
|
+
}), $n = /* @__PURE__ */ i({
|
|
1312
1312
|
name: "ElmHtmlViewer",
|
|
1313
1313
|
props: {
|
|
1314
1314
|
html: {
|
|
@@ -1376,26 +1376,26 @@ var kn = "https://a2ui.org/specification/v0_9/basic_catalog.json", An = /* @__PU
|
|
|
1376
1376
|
r?.remove(), n && URL.revokeObjectURL(n);
|
|
1377
1377
|
}
|
|
1378
1378
|
};
|
|
1379
|
-
return () => r("figure", { class: x(
|
|
1380
|
-
r("div", { class:
|
|
1379
|
+
return () => r("figure", { class: x(j["elm-html-viewer"]) }, [
|
|
1380
|
+
r("div", { class: j.header }, [r("button", {
|
|
1381
1381
|
type: "button",
|
|
1382
|
-
class:
|
|
1382
|
+
class: j["icon-button"],
|
|
1383
1383
|
onClick: i,
|
|
1384
1384
|
"aria-label": "Download"
|
|
1385
|
-
}, [r(
|
|
1385
|
+
}, [r(A, {
|
|
1386
1386
|
d: Fe,
|
|
1387
1387
|
size: "1.25rem"
|
|
1388
1388
|
}, null)]), r("button", {
|
|
1389
1389
|
type: "button",
|
|
1390
|
-
class:
|
|
1390
|
+
class: j["icon-button"],
|
|
1391
1391
|
onClick: n,
|
|
1392
1392
|
"aria-label": "Open in new tab"
|
|
1393
|
-
}, [r(
|
|
1393
|
+
}, [r(A, {
|
|
1394
1394
|
d: Qe,
|
|
1395
1395
|
size: "1.25rem"
|
|
1396
1396
|
}, null)])]),
|
|
1397
|
-
r("hr", { class:
|
|
1398
|
-
r("div", { class:
|
|
1397
|
+
r("hr", { class: j.divider }, null),
|
|
1398
|
+
r("div", { class: j.content }, [r(Qn, {
|
|
1399
1399
|
html: e.html,
|
|
1400
1400
|
src: e.src,
|
|
1401
1401
|
sandbox: e.sandbox,
|
|
@@ -1405,7 +1405,7 @@ var kn = "https://a2ui.org/specification/v0_9/basic_catalog.json", An = /* @__PU
|
|
|
1405
1405
|
}, null)])
|
|
1406
1406
|
]);
|
|
1407
1407
|
}
|
|
1408
|
-
}),
|
|
1408
|
+
}), M = {
|
|
1409
1409
|
"elm-audio-player": "_elm-audio-player_1b0m3_1",
|
|
1410
1410
|
loading: "_loading_1b0m3_33",
|
|
1411
1411
|
header: "_header_1b0m3_39",
|
|
@@ -1435,18 +1435,18 @@ var kn = "https://a2ui.org/specification/v0_9/basic_catalog.json", An = /* @__PU
|
|
|
1435
1435
|
errored: "_errored_1b0m3_411",
|
|
1436
1436
|
"error-notice": "_error-notice_1b0m3_420",
|
|
1437
1437
|
"error-message": "_error-message_1b0m3_430"
|
|
1438
|
-
},
|
|
1438
|
+
}, er = (e) => {
|
|
1439
1439
|
(!Number.isFinite(e) || e < 0) && (e = 0);
|
|
1440
1440
|
let t = Math.floor(e), n = Math.floor(t / 3600), r = Math.floor(t % 3600 / 60), i = t % 60, a = `${n > 0 ? String(r).padStart(2, "0") : String(r)}:${String(i).padStart(2, "0")}`;
|
|
1441
1441
|
return n > 0 ? `${n}:${a}` : a;
|
|
1442
|
-
},
|
|
1442
|
+
}, tr = (e) => {
|
|
1443
1443
|
let t = e.split(/[?#]/)[0].split("/").filter(Boolean).pop() ?? e;
|
|
1444
1444
|
try {
|
|
1445
1445
|
return decodeURIComponent(t);
|
|
1446
1446
|
} catch {
|
|
1447
1447
|
return t;
|
|
1448
1448
|
}
|
|
1449
|
-
},
|
|
1449
|
+
}, nr = /* @__PURE__ */ i({
|
|
1450
1450
|
name: "ElmAudioPlayer",
|
|
1451
1451
|
props: {
|
|
1452
1452
|
src: {
|
|
@@ -1479,7 +1479,7 @@ var kn = "https://a2ui.org/specification/v0_9/basic_catalog.json", An = /* @__PU
|
|
|
1479
1479
|
}
|
|
1480
1480
|
},
|
|
1481
1481
|
setup(n) {
|
|
1482
|
-
let i = m(null), a = m(null), o = null, s = m(!1), c = m(!0), l = m(!1), d = m(0), f = m(0), p = m(1), h = m(!1), g = m(null), _ = t(() => d.value > 0 ? Math.min(1, f.value / d.value) : 0), ee = t(() => h.value || p.value === 0 ? ut : p.value < .34 ? ct : p.value < .67 ? lt : st), v = t(() => n.title ??
|
|
1482
|
+
let i = m(null), a = m(null), o = null, s = m(!1), c = m(!0), l = m(!1), d = m(0), f = m(0), p = m(1), h = m(!1), g = m(null), _ = t(() => d.value > 0 ? Math.min(1, f.value / d.value) : 0), ee = t(() => h.value || p.value === 0 ? ut : p.value < .34 ? ct : p.value < .67 ? lt : st), v = t(() => n.title ?? tr(n.src)), y = () => {
|
|
1483
1483
|
if (o != null) return;
|
|
1484
1484
|
let e = () => {
|
|
1485
1485
|
i.value && (f.value = i.value.currentTime), o = requestAnimationFrame(e);
|
|
@@ -1519,7 +1519,7 @@ var kn = "https://a2ui.org/specification/v0_9/basic_catalog.json", An = /* @__PU
|
|
|
1519
1519
|
e.muted = t, h.value = t;
|
|
1520
1520
|
};
|
|
1521
1521
|
return () => r("div", {
|
|
1522
|
-
class: x(
|
|
1522
|
+
class: x(M["elm-audio-player"], s.value && M.playing, c.value && M.loading, l.value && M.errored),
|
|
1523
1523
|
style: {
|
|
1524
1524
|
"--elmethis-scoped-progress": _.value,
|
|
1525
1525
|
"--elmethis-scoped-hover": g.value ?? 0
|
|
@@ -1561,20 +1561,20 @@ var kn = "https://a2ui.org/specification/v0_9/basic_catalog.json", An = /* @__PU
|
|
|
1561
1561
|
l.value = !0, c.value = !1;
|
|
1562
1562
|
}
|
|
1563
1563
|
}, null),
|
|
1564
|
-
r("div", { class:
|
|
1564
|
+
r("div", { class: M.header }, [
|
|
1565
1565
|
r("span", {
|
|
1566
|
-
class: x(
|
|
1566
|
+
class: x(M.artwork, l.value && M["artwork-error"]),
|
|
1567
1567
|
"aria-hidden": "true"
|
|
1568
|
-
}, [r(
|
|
1568
|
+
}, [r(A, {
|
|
1569
1569
|
d: l.value ? Te : Ze,
|
|
1570
1570
|
size: "1.25rem"
|
|
1571
1571
|
}, null)]),
|
|
1572
|
-
r("div", { class:
|
|
1573
|
-
class:
|
|
1572
|
+
r("div", { class: M.meta }, [r("span", {
|
|
1573
|
+
class: M.title,
|
|
1574
1574
|
title: v.value
|
|
1575
|
-
}, [v.value]), n.artist && r("span", { class:
|
|
1575
|
+
}, [v.value]), n.artist && r("span", { class: M.artist }, [n.artist])]),
|
|
1576
1576
|
r("span", {
|
|
1577
|
-
class:
|
|
1577
|
+
class: M.equalizer,
|
|
1578
1578
|
"aria-hidden": "true"
|
|
1579
1579
|
}, [
|
|
1580
1580
|
r("i", null, null),
|
|
@@ -1584,81 +1584,81 @@ var kn = "https://a2ui.org/specification/v0_9/basic_catalog.json", An = /* @__PU
|
|
|
1584
1584
|
])
|
|
1585
1585
|
]),
|
|
1586
1586
|
l.value ? r("div", {
|
|
1587
|
-
class:
|
|
1587
|
+
class: M["error-notice"],
|
|
1588
1588
|
role: "alert"
|
|
1589
|
-
}, [r(
|
|
1589
|
+
}, [r(A, {
|
|
1590
1590
|
d: Te,
|
|
1591
1591
|
size: "1.25rem"
|
|
1592
|
-
}, null), r("span", { class:
|
|
1592
|
+
}, null), r("span", { class: M["error-message"] }, [n.errorMessage])]) : r(e, null, [r("div", {
|
|
1593
1593
|
ref: a,
|
|
1594
|
-
class:
|
|
1594
|
+
class: M.seekbar,
|
|
1595
1595
|
role: "slider",
|
|
1596
1596
|
tabindex: 0,
|
|
1597
1597
|
"aria-label": "Seek",
|
|
1598
1598
|
"aria-valuemin": 0,
|
|
1599
1599
|
"aria-valuemax": Math.round(d.value) || 0,
|
|
1600
1600
|
"aria-valuenow": Math.round(f.value),
|
|
1601
|
-
"aria-valuetext": `${
|
|
1601
|
+
"aria-valuetext": `${er(f.value)} of ${er(d.value)}`,
|
|
1602
1602
|
onPointerdown: ie,
|
|
1603
1603
|
onPointermove: ae,
|
|
1604
1604
|
onPointerleave: () => g.value = null,
|
|
1605
1605
|
onKeydown: oe
|
|
1606
1606
|
}, [
|
|
1607
1607
|
r("div", {
|
|
1608
|
-
class:
|
|
1608
|
+
class: M.track,
|
|
1609
1609
|
"aria-hidden": "true"
|
|
1610
|
-
}, [r("div", { class:
|
|
1610
|
+
}, [r("div", { class: M.fill }, null)]),
|
|
1611
1611
|
r("span", {
|
|
1612
|
-
class:
|
|
1612
|
+
class: M["hover-thumb"],
|
|
1613
1613
|
"aria-hidden": "true"
|
|
1614
1614
|
}, null),
|
|
1615
1615
|
r("span", {
|
|
1616
|
-
class:
|
|
1616
|
+
class: M.thumb,
|
|
1617
1617
|
"aria-hidden": "true"
|
|
1618
1618
|
}, null)
|
|
1619
|
-
]), r("div", { class:
|
|
1620
|
-
r("span", { class: x(
|
|
1621
|
-
r("div", { class:
|
|
1619
|
+
]), r("div", { class: M.controls }, [
|
|
1620
|
+
r("span", { class: x(M.time, M["time-current"]) }, [er(f.value)]),
|
|
1621
|
+
r("div", { class: M.transport }, [
|
|
1622
1622
|
r("button", {
|
|
1623
1623
|
type: "button",
|
|
1624
|
-
class:
|
|
1624
|
+
class: M["icon-button"],
|
|
1625
1625
|
onClick: () => b(f.value - n.seekStep),
|
|
1626
1626
|
"aria-label": `Back ${n.seekStep} seconds`
|
|
1627
|
-
}, [r(
|
|
1627
|
+
}, [r(A, {
|
|
1628
1628
|
d: nt,
|
|
1629
1629
|
size: "1.25rem"
|
|
1630
1630
|
}, null)]),
|
|
1631
1631
|
r("button", {
|
|
1632
1632
|
type: "button",
|
|
1633
|
-
class:
|
|
1633
|
+
class: M["play-button"],
|
|
1634
1634
|
onClick: ne,
|
|
1635
1635
|
"aria-label": s.value ? "Pause" : "Play",
|
|
1636
1636
|
"aria-pressed": s.value
|
|
1637
|
-
}, [r(
|
|
1637
|
+
}, [r(A, {
|
|
1638
1638
|
d: s.value ? $e : et,
|
|
1639
1639
|
size: "1.5rem"
|
|
1640
1640
|
}, null)]),
|
|
1641
1641
|
r("button", {
|
|
1642
1642
|
type: "button",
|
|
1643
|
-
class:
|
|
1643
|
+
class: M["icon-button"],
|
|
1644
1644
|
onClick: () => b(f.value + n.seekStep),
|
|
1645
1645
|
"aria-label": `Forward ${n.seekStep} seconds`
|
|
1646
|
-
}, [r(
|
|
1646
|
+
}, [r(A, {
|
|
1647
1647
|
d: Re,
|
|
1648
1648
|
size: "1.25rem"
|
|
1649
1649
|
}, null)])
|
|
1650
1650
|
]),
|
|
1651
|
-
r("div", { class:
|
|
1651
|
+
r("div", { class: M.volume }, [r("button", {
|
|
1652
1652
|
type: "button",
|
|
1653
|
-
class:
|
|
1653
|
+
class: M["icon-button"],
|
|
1654
1654
|
onClick: ce,
|
|
1655
1655
|
"aria-label": h.value ? "Unmute" : "Mute",
|
|
1656
1656
|
"aria-pressed": h.value
|
|
1657
|
-
}, [r(
|
|
1657
|
+
}, [r(A, {
|
|
1658
1658
|
d: ee.value,
|
|
1659
1659
|
size: "1.25rem"
|
|
1660
1660
|
}, null)]), r("input", {
|
|
1661
|
-
class:
|
|
1661
|
+
class: M["volume-slider"],
|
|
1662
1662
|
type: "range",
|
|
1663
1663
|
min: 0,
|
|
1664
1664
|
max: 1,
|
|
@@ -1668,32 +1668,20 @@ var kn = "https://a2ui.org/specification/v0_9/basic_catalog.json", An = /* @__PU
|
|
|
1668
1668
|
onInput: (e) => se(e.target.valueAsNumber),
|
|
1669
1669
|
style: { "--elmethis-scoped-volume": h.value ? 0 : p.value }
|
|
1670
1670
|
}, null)]),
|
|
1671
|
-
r("span", { class: x(
|
|
1671
|
+
r("span", { class: x(M.time, M["time-total"]) }, [er(d.value)])
|
|
1672
1672
|
])])
|
|
1673
1673
|
]);
|
|
1674
1674
|
}
|
|
1675
|
-
}),
|
|
1676
|
-
"elm-block-image": "_elm-block-
|
|
1677
|
-
"image-container": "_image-
|
|
1678
|
-
image: "
|
|
1679
|
-
|
|
1680
|
-
"caption-
|
|
1681
|
-
"caption-icon": "_caption-icon_19s1y_56"
|
|
1675
|
+
}), rr = {
|
|
1676
|
+
"elm-block-image": "_elm-block-image_1z05g_1",
|
|
1677
|
+
"image-container": "_image-container_1z05g_11",
|
|
1678
|
+
image: "_image_1z05g_11",
|
|
1679
|
+
"caption-box": "_caption-box_1z05g_33",
|
|
1680
|
+
"caption-icon": "_caption-icon_1z05g_41"
|
|
1682
1681
|
}, ir = {
|
|
1683
|
-
"elm-rectangle-wave": "_elm-rectangle-wave_70gad_21",
|
|
1684
|
-
wave: "_wave_70gad_1"
|
|
1685
|
-
}, ar = /* @__PURE__ */ i({
|
|
1686
|
-
name: "ElmRectangleWave",
|
|
1687
|
-
setup() {
|
|
1688
|
-
return () => r("div", {
|
|
1689
|
-
"aria-hidden": "true",
|
|
1690
|
-
class: x(ir["elm-rectangle-wave"])
|
|
1691
|
-
}, null);
|
|
1692
|
-
}
|
|
1693
|
-
}), or = {
|
|
1694
1682
|
"elm-modal": "_elm-modal_12j1m_1",
|
|
1695
1683
|
shown: "_shown_12j1m_18"
|
|
1696
|
-
},
|
|
1684
|
+
}, ar = /* @__PURE__ */ i({
|
|
1697
1685
|
name: "ElmModal",
|
|
1698
1686
|
inheritAttrs: !1,
|
|
1699
1687
|
props: {
|
|
@@ -1731,13 +1719,13 @@ var kn = "https://a2ui.org/specification/v0_9/basic_catalog.json", An = /* @__PU
|
|
|
1731
1719
|
let { class: o, style: s, ...u } = t;
|
|
1732
1720
|
return r("dialog", c({
|
|
1733
1721
|
ref: i,
|
|
1734
|
-
class: x(
|
|
1722
|
+
class: x(ir["elm-modal"], a.value && ir.shown, o),
|
|
1735
1723
|
onClick: l,
|
|
1736
1724
|
style: [{ "--elmethis-scoped-modal-delay": `${e.delay}ms` }, s]
|
|
1737
1725
|
}, { closedby: "none" }, u), [r("div", { onClick: (e) => e.stopPropagation() }, [n.default?.()])]);
|
|
1738
1726
|
};
|
|
1739
1727
|
}
|
|
1740
|
-
}),
|
|
1728
|
+
}), or = (e = {}) => {
|
|
1741
1729
|
let t = m(!1), n = () => {
|
|
1742
1730
|
t.value = !0;
|
|
1743
1731
|
}, a = () => {
|
|
@@ -1747,7 +1735,7 @@ var kn = "https://a2ui.org/specification/v0_9/basic_catalog.json", An = /* @__PU
|
|
|
1747
1735
|
Modal: /* @__PURE__ */ i({
|
|
1748
1736
|
name: "Modal",
|
|
1749
1737
|
setup(n, { slots: i }) {
|
|
1750
|
-
return () => r(
|
|
1738
|
+
return () => r(ar, {
|
|
1751
1739
|
isOpen: t.value,
|
|
1752
1740
|
delay: e.delay,
|
|
1753
1741
|
onClose: a
|
|
@@ -1761,7 +1749,7 @@ var kn = "https://a2ui.org/specification/v0_9/basic_catalog.json", An = /* @__PU
|
|
|
1761
1749
|
t.value = !t.value;
|
|
1762
1750
|
}
|
|
1763
1751
|
};
|
|
1764
|
-
},
|
|
1752
|
+
}, sr = /* @__PURE__ */ i({
|
|
1765
1753
|
name: "ElmBlockImage",
|
|
1766
1754
|
props: {
|
|
1767
1755
|
src: {
|
|
@@ -1798,58 +1786,47 @@ var kn = "https://a2ui.org/specification/v0_9/basic_catalog.json", An = /* @__PU
|
|
|
1798
1786
|
}
|
|
1799
1787
|
},
|
|
1800
1788
|
setup(e) {
|
|
1801
|
-
let
|
|
1802
|
-
|
|
1803
|
-
}
|
|
1804
|
-
|
|
1805
|
-
let f = () => {
|
|
1806
|
-
(e.enableModal ?? !0) && !t.value && o();
|
|
1807
|
-
}, p = () => e.enableModal ?? !0, h = (n) => r("img", c({
|
|
1808
|
-
ref: n ? void 0 : l,
|
|
1809
|
-
class: M.image,
|
|
1789
|
+
let { Modal: t, isOpen: n, show: i, hide: o } = or(), s = () => {
|
|
1790
|
+
(e.enableModal ?? !0) && i();
|
|
1791
|
+
}, l = () => e.enableModal ?? !0, u = (t) => r("img", c({
|
|
1792
|
+
class: rr.image,
|
|
1810
1793
|
src: e.src,
|
|
1811
1794
|
alt: e.alt ?? e.caption ?? "Image",
|
|
1812
|
-
srcset:
|
|
1813
|
-
sizes:
|
|
1795
|
+
srcset: t ? void 0 : e.srcSet,
|
|
1796
|
+
sizes: t ? void 0 : e.sizes,
|
|
1814
1797
|
width: e.width,
|
|
1815
1798
|
height: e.height,
|
|
1816
|
-
loading:
|
|
1817
|
-
|
|
1818
|
-
onClick: n ? () => s() : void 0,
|
|
1799
|
+
loading: t ? "lazy" : void 0,
|
|
1800
|
+
onClick: t ? () => o() : void 0,
|
|
1819
1801
|
style: {
|
|
1820
|
-
"--elmethis-scoped-
|
|
1821
|
-
"--elmethis-scoped-cursor": p() ? i.value ? "zoom-out" : "zoom-in" : "default",
|
|
1802
|
+
"--elmethis-scoped-cursor": l() ? n.value ? "zoom-out" : "zoom-in" : "default",
|
|
1822
1803
|
"--elmethis-scoped-aspect-ratio": e.width && e.height ? `${e.width} / ${e.height}` : "auto"
|
|
1823
1804
|
}
|
|
1824
|
-
}, { fetchpriority:
|
|
1825
|
-
return () => r("figure", { class: x(
|
|
1805
|
+
}, { fetchpriority: t ? "low" : "auto" }), null);
|
|
1806
|
+
return () => r("figure", { class: x(rr["elm-block-image"]) }, [
|
|
1826
1807
|
r("div", {
|
|
1827
|
-
class:
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
e.caption && r("figcaption", {
|
|
1832
|
-
class: M["caption-box"],
|
|
1833
|
-
style: { "--elmethis-scoped-opacity": t.value ? .01 : 1 }
|
|
1834
|
-
}, [r("span", { class: M["caption-icon"] }, [r(k, {
|
|
1808
|
+
class: rr["image-container"],
|
|
1809
|
+
onClick: s
|
|
1810
|
+
}, [u(!1)]),
|
|
1811
|
+
e.caption && r("figcaption", { class: rr["caption-box"] }, [r("span", { class: rr["caption-icon"] }, [r(A, {
|
|
1835
1812
|
d: Xe,
|
|
1836
1813
|
size: "1.25rem"
|
|
1837
1814
|
}, null)]), r(E, { size: "1rem" }, { default: () => [e.caption] })]),
|
|
1838
|
-
a(
|
|
1815
|
+
a(t, null, { default: () => n.value ? u(!0) : null })
|
|
1839
1816
|
]);
|
|
1840
1817
|
}
|
|
1841
|
-
}),
|
|
1818
|
+
}), cr = {
|
|
1842
1819
|
"elm-file": "_elm-file_aoaqq_1",
|
|
1843
1820
|
"file-size": "_file-size_aoaqq_12",
|
|
1844
1821
|
"download-icon": "_download-icon_aoaqq_17"
|
|
1845
1822
|
};
|
|
1846
1823
|
//#endregion
|
|
1847
1824
|
//#region src/components/media/elm-file.tsx
|
|
1848
|
-
function
|
|
1825
|
+
function lr(e) {
|
|
1849
1826
|
let t = e.split(/[?#]/)[0].split("/").filter(Boolean);
|
|
1850
1827
|
return t.length > 0 ? t[t.length - 1] : null;
|
|
1851
1828
|
}
|
|
1852
|
-
var
|
|
1829
|
+
var ur = /* @__PURE__ */ i({
|
|
1853
1830
|
name: "ElmFile",
|
|
1854
1831
|
props: {
|
|
1855
1832
|
name: {
|
|
@@ -1872,24 +1849,24 @@ var fr = /* @__PURE__ */ i({
|
|
|
1872
1849
|
let n = await fetch(e.src);
|
|
1873
1850
|
if (!n.ok) throw Error("Failed to download file");
|
|
1874
1851
|
let r = await n.blob();
|
|
1875
|
-
t = document.createElement("a"), t.href = URL.createObjectURL(r), t.download = e.name ??
|
|
1852
|
+
t = document.createElement("a"), t.href = URL.createObjectURL(r), t.download = e.name ?? lr(e.src) ?? "file", t.click();
|
|
1876
1853
|
} catch (e) {
|
|
1877
1854
|
console.error("ERROR:", e);
|
|
1878
1855
|
} finally {
|
|
1879
1856
|
t && URL.revokeObjectURL(t.href);
|
|
1880
1857
|
}
|
|
1881
1858
|
};
|
|
1882
|
-
return () => r("div", { class: x(
|
|
1883
|
-
r("div", null, [r(
|
|
1859
|
+
return () => r("div", { class: x(cr["elm-file"]) }, [
|
|
1860
|
+
r("div", null, [r(A, {
|
|
1884
1861
|
d: ze,
|
|
1885
1862
|
size: "1.25rem"
|
|
1886
1863
|
}, null)]),
|
|
1887
|
-
r("div", null, [r(E, null, { default: () => [e.name ??
|
|
1888
|
-
r("div", { class:
|
|
1864
|
+
r("div", null, [r(E, null, { default: () => [e.name ?? lr(e.src)] })]),
|
|
1865
|
+
r("div", { class: cr["file-size"] }, [r(E, null, { default: () => [e.filesize] })]),
|
|
1889
1866
|
r("div", {
|
|
1890
|
-
class:
|
|
1867
|
+
class: cr["download-icon"],
|
|
1891
1868
|
onClick: t
|
|
1892
|
-
}, [r(
|
|
1869
|
+
}, [r(A, {
|
|
1893
1870
|
d: Fe,
|
|
1894
1871
|
size: "1.25rem"
|
|
1895
1872
|
}, null)])
|
|
@@ -1903,10 +1880,10 @@ var fr = /* @__PURE__ */ i({
|
|
|
1903
1880
|
title: "_title_cbkg4_71",
|
|
1904
1881
|
description: "_description_cbkg4_75",
|
|
1905
1882
|
link: "_link_cbkg4_80"
|
|
1906
|
-
},
|
|
1883
|
+
}, dr = {
|
|
1907
1884
|
visibility: "hidden",
|
|
1908
1885
|
width: "0"
|
|
1909
|
-
},
|
|
1886
|
+
}, fr = /* @__PURE__ */ i({
|
|
1910
1887
|
name: "ElmBookmark",
|
|
1911
1888
|
props: {
|
|
1912
1889
|
title: {
|
|
@@ -1942,11 +1919,11 @@ var fr = /* @__PURE__ */ i({
|
|
|
1942
1919
|
src: e.image,
|
|
1943
1920
|
alt: "OGP Image",
|
|
1944
1921
|
onError: () => t.value = !0,
|
|
1945
|
-
style: t.value || e.image == null ?
|
|
1922
|
+
style: t.value || e.image == null ? dr : {}
|
|
1946
1923
|
}, null), r("div", { class: N.content }, [
|
|
1947
1924
|
r("div", { class: N.title }, [r(E, { bold: !0 }, { default: () => [e.title] })]),
|
|
1948
1925
|
r("div", { class: N.description }, [r(E, { size: "0.75rem" }, { default: () => [e.description] })]),
|
|
1949
|
-
r("div", { class: N.link }, [e.favicon ? r(T, { src: e.favicon }, null) : r(
|
|
1926
|
+
r("div", { class: N.link }, [e.favicon ? r(T, { src: e.favicon }, null) : r(A, {
|
|
1950
1927
|
d: Je,
|
|
1951
1928
|
color: "var(--elmethis-color-accent-info)"
|
|
1952
1929
|
}, null), r(E, { size: "0.75rem" }, { default: () => [e.url] })])
|
|
@@ -1962,7 +1939,7 @@ var fr = /* @__PURE__ */ i({
|
|
|
1962
1939
|
cross: "_cross_qfazq_62",
|
|
1963
1940
|
border: "_border_qfazq_76",
|
|
1964
1941
|
content: "_content_qfazq_84"
|
|
1965
|
-
},
|
|
1942
|
+
}, pr = /* @__PURE__ */ i({
|
|
1966
1943
|
name: "ElmToggle",
|
|
1967
1944
|
props: {
|
|
1968
1945
|
summary: {
|
|
@@ -1997,13 +1974,13 @@ var fr = /* @__PURE__ */ i({
|
|
|
1997
1974
|
e.preventDefault(), i.value = !i.value;
|
|
1998
1975
|
}
|
|
1999
1976
|
}, [
|
|
2000
|
-
r("div", { class: P["summary-left"] }, [r("span", { class: x(P.chevron, i.value && P.open) }, [r(
|
|
1977
|
+
r("div", { class: P["summary-left"] }, [r("span", { class: x(P.chevron, i.value && P.open) }, [r(A, {
|
|
2001
1978
|
d: je,
|
|
2002
1979
|
color: e.monochrome ? "var(--elmethis-color-neutral-weak)" : "var(--elmethis-color-primary)",
|
|
2003
1980
|
size: "1rem"
|
|
2004
1981
|
}, null)]), r("div", null, [e.summary == null ? n.summary?.() : r(E, null, { default: () => [e.summary] })])]),
|
|
2005
1982
|
r("hr", { class: P.divider }, null),
|
|
2006
|
-
r("span", { class: x(P.cross, i.value && P.open) }, [r(
|
|
1983
|
+
r("span", { class: x(P.cross, i.value && P.open) }, [r(A, {
|
|
2007
1984
|
d: tt,
|
|
2008
1985
|
size: "1rem",
|
|
2009
1986
|
color: e.monochrome ? "var(--elmethis-color-neutral-weak)" : i.value ? "var(--elmethis-color-accent-error)" : "var(--elmethis-color-primary)"
|
|
@@ -2013,22 +1990,22 @@ var fr = /* @__PURE__ */ i({
|
|
|
2013
1990
|
r("div", { class: x(P.content, i.value && P.open) }, [n.default?.()])
|
|
2014
1991
|
]);
|
|
2015
1992
|
}
|
|
2016
|
-
}),
|
|
1993
|
+
}), mr = {
|
|
2017
1994
|
"elm-block-quote": "_elm-block-quote_1ez87_1",
|
|
2018
1995
|
body: "_body_1ez87_19",
|
|
2019
1996
|
icon: "_icon_1ez87_28",
|
|
2020
1997
|
"icon-top-left": "_icon-top-left_1ez87_33",
|
|
2021
1998
|
"icon-bottom-right": "_icon-bottom-right_1ez87_37"
|
|
2022
|
-
},
|
|
1999
|
+
}, hr = /* @__PURE__ */ i({
|
|
2023
2000
|
name: "ElmBlockQuote",
|
|
2024
2001
|
setup(e, { slots: t }) {
|
|
2025
|
-
return () => r("blockquote", { class: x(
|
|
2026
|
-
r("div", { class: x(
|
|
2027
|
-
r("div", { class:
|
|
2028
|
-
r("div", { class: x(
|
|
2002
|
+
return () => r("blockquote", { class: x(mr["elm-block-quote"], w.text) }, [
|
|
2003
|
+
r("div", { class: x(mr.icon, mr["icon-top-left"]) }, [r(A, { d: Ue }, null)]),
|
|
2004
|
+
r("div", { class: mr.body }, [t.default?.()]),
|
|
2005
|
+
r("div", { class: x(mr.icon, mr["icon-bottom-right"]) }, [r(A, { d: He }, null)])
|
|
2029
2006
|
]);
|
|
2030
2007
|
}
|
|
2031
|
-
}),
|
|
2008
|
+
}), gr = {
|
|
2032
2009
|
"elm-callout": "_elm-callout_1nsmp_1",
|
|
2033
2010
|
header: "_header_1nsmp_26",
|
|
2034
2011
|
content: "_content_1nsmp_35",
|
|
@@ -2038,26 +2015,26 @@ var fr = /* @__PURE__ */ i({
|
|
|
2038
2015
|
important: "_important_1nsmp_55",
|
|
2039
2016
|
warning: "_warning_1nsmp_59",
|
|
2040
2017
|
caution: "_caution_1nsmp_63"
|
|
2041
|
-
},
|
|
2018
|
+
}, _r = Object.freeze({
|
|
2042
2019
|
note: Ke,
|
|
2043
2020
|
tip: qe,
|
|
2044
2021
|
important: rt,
|
|
2045
2022
|
warning: we,
|
|
2046
2023
|
caution: Ee
|
|
2047
|
-
}),
|
|
2024
|
+
}), vr = /* @__PURE__ */ i({
|
|
2048
2025
|
name: "ElmCallout",
|
|
2049
2026
|
props: { type: {
|
|
2050
2027
|
type: String,
|
|
2051
2028
|
default: "note"
|
|
2052
2029
|
} },
|
|
2053
2030
|
setup(e, { slots: t }) {
|
|
2054
|
-
return () => r("aside", { class: x(
|
|
2055
|
-
class:
|
|
2056
|
-
d:
|
|
2031
|
+
return () => r("aside", { class: x(gr["elm-callout"], gr[e.type]) }, [r("div", { class: gr.header }, [r(A, {
|
|
2032
|
+
class: gr.icon,
|
|
2033
|
+
d: _r[e.type],
|
|
2057
2034
|
size: "1.25rem"
|
|
2058
|
-
}, null), r("span", null, [e.type])]), r("div", { class:
|
|
2035
|
+
}, null), r("span", null, [e.type])]), r("div", { class: gr.content }, [t.default?.()])]);
|
|
2059
2036
|
}
|
|
2060
|
-
}),
|
|
2037
|
+
}), yr = {
|
|
2061
2038
|
"elm-notion-callout": "_elm-notion-callout_15idh_1",
|
|
2062
2039
|
icon: "_icon_15idh_9",
|
|
2063
2040
|
content: "_content_15idh_15",
|
|
@@ -2073,7 +2050,7 @@ var fr = /* @__PURE__ */ i({
|
|
|
2073
2050
|
blue: "_blue_15idh_74",
|
|
2074
2051
|
purple: "_purple_15idh_79",
|
|
2075
2052
|
magenta: "_magenta_15idh_86"
|
|
2076
|
-
},
|
|
2053
|
+
}, br = /* @__PURE__ */ i({
|
|
2077
2054
|
name: "ElmNotionCallout",
|
|
2078
2055
|
inheritAttrs: !1,
|
|
2079
2056
|
props: {
|
|
@@ -2093,38 +2070,38 @@ var fr = /* @__PURE__ */ i({
|
|
|
2093
2070
|
setup(e, { slots: t, attrs: n }) {
|
|
2094
2071
|
return () => {
|
|
2095
2072
|
let { class: i, ...a } = n;
|
|
2096
|
-
return r("div", c({ class: x(
|
|
2097
|
-
class:
|
|
2073
|
+
return r("div", c({ class: x(yr["elm-notion-callout"], yr[e.color], yr[e.variant], i) }, a), [e.icon !== void 0 && (e.icon.kind === "emoji" ? r("span", {
|
|
2074
|
+
class: yr.icon,
|
|
2098
2075
|
role: "img"
|
|
2099
2076
|
}, [e.icon.emoji]) : r(T, {
|
|
2100
|
-
class:
|
|
2077
|
+
class: yr.icon,
|
|
2101
2078
|
src: e.icon.src,
|
|
2102
2079
|
alt: e.icon.alt,
|
|
2103
2080
|
size: 20
|
|
2104
|
-
}, null)), r("div", { class:
|
|
2081
|
+
}, null)), r("div", { class: yr.content }, [t.default?.()])]);
|
|
2105
2082
|
};
|
|
2106
2083
|
}
|
|
2107
|
-
}),
|
|
2084
|
+
}), xr = { "elm-divider": "_elm-divider_9m6gb_1" }, Sr = /* @__PURE__ */ i({
|
|
2108
2085
|
name: "ElmDivider",
|
|
2109
2086
|
inheritAttrs: !1,
|
|
2110
2087
|
setup(e, { attrs: t }) {
|
|
2111
2088
|
return () => {
|
|
2112
2089
|
let { class: e, ...n } = t;
|
|
2113
|
-
return r("hr", c({ class: x(
|
|
2090
|
+
return r("hr", c({ class: x(xr["elm-divider"], e) }, n), null);
|
|
2114
2091
|
};
|
|
2115
2092
|
}
|
|
2116
|
-
}),
|
|
2093
|
+
}), Cr = {
|
|
2117
2094
|
"elm-list": "_elm-list_brpi5_1",
|
|
2118
2095
|
bulleted: "_bulleted_brpi5_8",
|
|
2119
2096
|
numbered: "_numbered_brpi5_57"
|
|
2120
|
-
},
|
|
2097
|
+
}, wr = /* @__PURE__ */ i({
|
|
2121
2098
|
name: "ElmList",
|
|
2122
2099
|
props: { listStyle: {
|
|
2123
2100
|
type: String,
|
|
2124
2101
|
default: "unordered"
|
|
2125
2102
|
} },
|
|
2126
2103
|
setup(e, { slots: t }) {
|
|
2127
|
-
return () => e.listStyle === "ordered" ? r("ol", { class: x(w.text,
|
|
2104
|
+
return () => e.listStyle === "ordered" ? r("ol", { class: x(w.text, Cr["elm-list"], Cr.numbered) }, [t.default?.()]) : r("ul", { class: x(w.text, Cr["elm-list"], Cr.bulleted) }, [t.default?.()]);
|
|
2128
2105
|
}
|
|
2129
2106
|
}), F = {
|
|
2130
2107
|
"elm-table-frame": "_elm-table-frame_1b7h2_3",
|
|
@@ -2134,7 +2111,7 @@ var fr = /* @__PURE__ */ i({
|
|
|
2134
2111
|
"caption-inner": "_caption-inner_1b7h2_77",
|
|
2135
2112
|
spacing: "_spacing_1b7h2_84",
|
|
2136
2113
|
"sticky-row-header": "_sticky-row-header_1b7h2_95"
|
|
2137
|
-
},
|
|
2114
|
+
}, Tr = Symbol("elm.table.HasRowHeader"), Er = Symbol("elm.table.Section"), Dr = /* @__PURE__ */ i({
|
|
2138
2115
|
name: "ElmTable",
|
|
2139
2116
|
inheritAttrs: !1,
|
|
2140
2117
|
props: {
|
|
@@ -2148,7 +2125,7 @@ var fr = /* @__PURE__ */ i({
|
|
|
2148
2125
|
}
|
|
2149
2126
|
},
|
|
2150
2127
|
setup(e, { attrs: n, slots: i }) {
|
|
2151
|
-
p(
|
|
2128
|
+
p(Tr, t(() => e.hasRowHeader));
|
|
2152
2129
|
let a = m(null), o = m(!1), s = m(!0), l = m(!0), f = () => {
|
|
2153
2130
|
let e = a.value;
|
|
2154
2131
|
if (e == null) return;
|
|
@@ -2179,16 +2156,16 @@ var fr = /* @__PURE__ */ i({
|
|
|
2179
2156
|
])]), i.default?.()])])]);
|
|
2180
2157
|
};
|
|
2181
2158
|
}
|
|
2182
|
-
}),
|
|
2159
|
+
}), Or = /* @__PURE__ */ i({
|
|
2183
2160
|
name: "ElmTableBody",
|
|
2184
2161
|
setup(e, { slots: t }) {
|
|
2185
|
-
return p(
|
|
2162
|
+
return p(Er, "body"), () => r("tbody", null, [t.default?.()]);
|
|
2186
2163
|
}
|
|
2187
|
-
}),
|
|
2164
|
+
}), kr = {
|
|
2188
2165
|
"elm-table-cell": "_elm-table-cell_1a21f_1",
|
|
2189
2166
|
td: "_td_1a21f_20",
|
|
2190
2167
|
th: "_th_1a21f_25"
|
|
2191
|
-
},
|
|
2168
|
+
}, Ar = /* @__PURE__ */ i({
|
|
2192
2169
|
name: "ElmTableCell",
|
|
2193
2170
|
inheritAttrs: !1,
|
|
2194
2171
|
props: {
|
|
@@ -2210,35 +2187,35 @@ var fr = /* @__PURE__ */ i({
|
|
|
2210
2187
|
}
|
|
2211
2188
|
},
|
|
2212
2189
|
setup(e, { attrs: t, slots: n }) {
|
|
2213
|
-
let i = o(
|
|
2190
|
+
let i = o(Er, "body"), a = o(Tr, m(!1));
|
|
2214
2191
|
return () => {
|
|
2215
2192
|
let { class: o, style: s, ...l } = t, u = i === "head", d = !u && !e.isHeader && e.columnIndex === 0 && a.value, f = u || e.isHeader || d, p = e.scope ?? (u ? "col" : d ? "row" : void 0), m = e.text == null ? n.default?.() : e.text;
|
|
2216
2193
|
return f ? r("th", c({
|
|
2217
|
-
class: x(
|
|
2194
|
+
class: x(kr["elm-table-cell"], kr.th, o),
|
|
2218
2195
|
style: s,
|
|
2219
2196
|
scope: p
|
|
2220
2197
|
}, l), [m]) : r("td", c({
|
|
2221
|
-
class: x(
|
|
2198
|
+
class: x(kr["elm-table-cell"], kr.td, o),
|
|
2222
2199
|
style: s
|
|
2223
2200
|
}, l), [m]);
|
|
2224
2201
|
};
|
|
2225
2202
|
}
|
|
2226
|
-
}),
|
|
2203
|
+
}), jr = { "elm-table-header": "_elm-table-header_jhft7_1" }, Mr = /* @__PURE__ */ i({
|
|
2227
2204
|
name: "ElmTableHeader",
|
|
2228
2205
|
setup(e, { slots: t }) {
|
|
2229
|
-
return p(
|
|
2206
|
+
return p(Er, "head"), () => r("thead", { class: x(jr["elm-table-header"]) }, [t.default?.()]);
|
|
2230
2207
|
}
|
|
2231
|
-
}),
|
|
2208
|
+
}), Nr = { "elm-table-row": "_elm-table-row_mkm0q_1" }, Pr = /* @__PURE__ */ i({
|
|
2232
2209
|
name: "ElmTableRow",
|
|
2233
2210
|
setup(e, { slots: t }) {
|
|
2234
|
-
return () => r("tr", { class: x(
|
|
2211
|
+
return () => r("tr", { class: x(Nr["elm-table-row"]) }, [t.default?.()]);
|
|
2235
2212
|
}
|
|
2236
|
-
}),
|
|
2213
|
+
}), Fr = {
|
|
2237
2214
|
"elm-unsupported-block": "_elm-unsupported-block_8bkk1_1",
|
|
2238
2215
|
message: "_message_8bkk1_13",
|
|
2239
2216
|
icon: "_icon_8bkk1_20",
|
|
2240
2217
|
details: "_details_8bkk1_24"
|
|
2241
|
-
},
|
|
2218
|
+
}, Ir = /* @__PURE__ */ i({
|
|
2242
2219
|
name: "ElmUnsupportedBlock",
|
|
2243
2220
|
inheritAttrs: !1,
|
|
2244
2221
|
props: { details: {
|
|
@@ -2248,12 +2225,12 @@ var fr = /* @__PURE__ */ i({
|
|
|
2248
2225
|
setup(e, { attrs: t }) {
|
|
2249
2226
|
return () => {
|
|
2250
2227
|
let { class: i, ...a } = t;
|
|
2251
|
-
return r("div", c({ class: x(
|
|
2228
|
+
return r("div", c({ class: x(Fr["elm-unsupported-block"], i) }, a), [r("div", { class: Fr.message }, [r("svg", {
|
|
2252
2229
|
viewBox: "0 0 24 24",
|
|
2253
2230
|
width: "1.25rem",
|
|
2254
2231
|
height: "1.25rem",
|
|
2255
|
-
class:
|
|
2256
|
-
}, [r("path", { d: "M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z" }, null)]), r(E, null, { default: () => [n("UNSUPPORTED BLOCK")] })]), e.details && r("div", { class:
|
|
2232
|
+
class: Fr.icon
|
|
2233
|
+
}, [r("path", { d: "M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z" }, null)]), r(E, null, { default: () => [n("UNSUPPORTED BLOCK")] })]), e.details && r("div", { class: Fr.details }, [r(E, null, { default: () => [e.details] })])]);
|
|
2257
2234
|
};
|
|
2258
2235
|
}
|
|
2259
2236
|
});
|
|
@@ -2262,10 +2239,10 @@ var fr = /* @__PURE__ */ i({
|
|
|
2262
2239
|
function I(e) {
|
|
2263
2240
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !s(e);
|
|
2264
2241
|
}
|
|
2265
|
-
function
|
|
2242
|
+
function Lr(e) {
|
|
2266
2243
|
return Array.isArray(e) ? e.filter((e) => typeof e == "string") : [];
|
|
2267
2244
|
}
|
|
2268
|
-
var
|
|
2245
|
+
var Rr = {
|
|
2269
2246
|
boxSizing: "content-box",
|
|
2270
2247
|
paddingBlock: "0.25rem",
|
|
2271
2248
|
width: "100%",
|
|
@@ -2274,7 +2251,7 @@ var Br = {
|
|
|
2274
2251
|
gap: "0.25rem",
|
|
2275
2252
|
justifyContent: "space-around",
|
|
2276
2253
|
overflowX: "auto"
|
|
2277
|
-
},
|
|
2254
|
+
}, zr = Sn.extend(O(Pt, ({ props: e, resolve: t }) => {
|
|
2278
2255
|
let n = t(e.text), i = e.decoration ?? [];
|
|
2279
2256
|
return i.includes("katex") ? r(Pn, {
|
|
2280
2257
|
expression: n,
|
|
@@ -2306,7 +2283,7 @@ var Br = {
|
|
|
2306
2283
|
boxSizing: "border-box",
|
|
2307
2284
|
padding: "0.125rem",
|
|
2308
2285
|
gap: "var(--elmethis-stack-gap)"
|
|
2309
|
-
} }, [t(e.children).map(({ id: e, path: t }, i) => r("span", { key: `${e}:${i}` }, [n(e, t, i)]))])), O(vt, ({ props: t, childRefs: n, renderChild: i }) => r("div", { style:
|
|
2286
|
+
} }, [t(e.children).map(({ id: e, path: t }, i) => r("span", { key: `${e}:${i}` }, [n(e, t, i)]))])), O(vt, ({ props: t, childRefs: n, renderChild: i }) => r("div", { style: Rr }, [n(t.children).map(({ id: t, path: n }, a) => r(e, { key: `${t}:${a}` }, [i(t, n, a)]))])), O(Ct, ({ props: t, childRefs: n, renderChild: i }) => {
|
|
2310
2287
|
let a;
|
|
2311
2288
|
return r(on, { level: t.level }, I(a = n(t.children).map(({ id: t, path: n }, a) => r(e, { key: `${t}:${a}` }, [i(t, n, a)]))) ? a : { default: () => [a] });
|
|
2312
2289
|
}), O(Nt, ({ props: e, childRefs: t, renderChild: n }) => {
|
|
@@ -2317,32 +2294,32 @@ var Br = {
|
|
|
2317
2294
|
}, I(i = t(e.children).map(({ id: e, path: t }, i) => r("span", { key: `${e}:${i}` }, [n(e, t, i)]))) ? i : { default: () => [i] });
|
|
2318
2295
|
}), O(kt, ({ props: e, childRefs: t, renderChild: n }) => {
|
|
2319
2296
|
let i;
|
|
2320
|
-
return r(
|
|
2297
|
+
return r(wr, { listStyle: e.style ?? "unordered" }, I(i = t(e.children).map(({ id: e, path: t }, i) => r("li", { key: `${e}:${i}` }, [n(e, t, i)]))) ? i : { default: () => [i] });
|
|
2321
2298
|
}), O(At, ({ props: t, childRefs: n, renderChild: i }) => r(e, null, [n(t.children).map(({ id: t, path: n }, a) => r(e, { key: `${t}:${a}` }, [i(t, n, a)]))])), O(pt, ({ props: t, childRefs: n, renderChild: i }) => {
|
|
2322
2299
|
let a;
|
|
2323
|
-
return r(
|
|
2300
|
+
return r(hr, { cite: t.cite }, I(a = n(t.children).map(({ id: t, path: n }, a) => r(e, { key: `${t}:${a}` }, [i(t, n, a)]))) ? a : { default: () => [a] });
|
|
2324
2301
|
}), O(ht, ({ props: t, childRefs: n, renderChild: i }) => {
|
|
2325
2302
|
let a;
|
|
2326
|
-
return r(
|
|
2303
|
+
return r(vr, { type: t.type }, I(a = n(t.children).map(({ id: t, path: n }, a) => r(e, { key: `${t}:${a}` }, [i(t, n, a)]))) ? a : { default: () => [a] });
|
|
2327
2304
|
}), O(Mt, ({ props: t, childRefs: n, renderChild: i }) => {
|
|
2328
2305
|
let a;
|
|
2329
|
-
return r(
|
|
2306
|
+
return r(br, {
|
|
2330
2307
|
icon: t.icon,
|
|
2331
2308
|
color: t.color,
|
|
2332
2309
|
variant: t.variant
|
|
2333
2310
|
}, I(a = n(t.children).map(({ id: t, path: n }, a) => r(e, { key: `${t}:${a}` }, [i(t, n, a)]))) ? a : { default: () => [a] });
|
|
2334
|
-
}), O(xt, () => r(
|
|
2311
|
+
}), O(xt, () => r(Sr, null, null)), O(Rt, ({ props: t, childRefs: n, renderChild: i }) => r(pr, null, {
|
|
2335
2312
|
summary: () => n(t.summary).map(({ id: e, path: t }, n) => r("span", { key: `${e}:${n}` }, [i(e, t, n)])),
|
|
2336
2313
|
default: () => n(t.children).map(({ id: t, path: n }, a) => r(e, { key: `${t}:${a}` }, [i(t, n, a)]))
|
|
2337
|
-
})), O(mt, ({ props: e, resolve: t }) => r(
|
|
2314
|
+
})), O(mt, ({ props: e, resolve: t }) => r(fr, {
|
|
2338
2315
|
url: t(e.url),
|
|
2339
2316
|
title: e.title ? t(e.title) : void 0,
|
|
2340
2317
|
description: e.description ? t(e.description) : void 0,
|
|
2341
2318
|
image: e.image ? t(e.image) : void 0
|
|
2342
|
-
}, null)), O(St, ({ props: e, resolve: t }) => r(
|
|
2319
|
+
}, null)), O(St, ({ props: e, resolve: t }) => r(ur, {
|
|
2343
2320
|
src: t(e.src),
|
|
2344
2321
|
name: e.name ? t(e.name) : void 0
|
|
2345
|
-
}, null)), O(dt, ({ props: e, resolve: t }) => r(
|
|
2322
|
+
}, null)), O(dt, ({ props: e, resolve: t }) => r(nr, {
|
|
2346
2323
|
src: t(e.src),
|
|
2347
2324
|
title: e.title ? t(e.title) : void 0,
|
|
2348
2325
|
artist: e.artist ? t(e.artist) : void 0,
|
|
@@ -2366,7 +2343,7 @@ var Br = {
|
|
|
2366
2343
|
height: "auto"
|
|
2367
2344
|
}
|
|
2368
2345
|
}, null), n ? r("figcaption", null, [n]) : null]);
|
|
2369
|
-
}), O(ft, ({ props: e, resolve: t }) => r(
|
|
2346
|
+
}), O(ft, ({ props: e, resolve: t }) => r(sr, {
|
|
2370
2347
|
src: t(e.src),
|
|
2371
2348
|
alt: e.alt ? t(e.alt) : void 0,
|
|
2372
2349
|
width: e.width,
|
|
@@ -2375,20 +2352,20 @@ var Br = {
|
|
|
2375
2352
|
sizes: e.sizes ? t(e.sizes) : void 0,
|
|
2376
2353
|
caption: e.caption ? t(e.caption) : void 0,
|
|
2377
2354
|
enableModal: !0
|
|
2378
|
-
}, null)), O(wt, ({ props: e, resolve: t }) => r(
|
|
2355
|
+
}, null)), O(wt, ({ props: e, resolve: t }) => r($n, {
|
|
2379
2356
|
html: e.html ? t(e.html) : void 0,
|
|
2380
2357
|
src: e.src ? t(e.src) : void 0,
|
|
2381
2358
|
autoHeight: e.autoHeight,
|
|
2382
2359
|
allowScripts: e.allowScripts ?? !0,
|
|
2383
2360
|
height: e.height ?? 400
|
|
2384
|
-
}, null)), O(gt, ({ props: e, resolve: t }) => r(
|
|
2361
|
+
}, null)), O(gt, ({ props: e, resolve: t }) => r(Wn, {
|
|
2385
2362
|
code: t(e.code),
|
|
2386
2363
|
language: e.language ? t(e.language) : void 0,
|
|
2387
2364
|
caption: e.caption ? t(e.caption) : void 0
|
|
2388
2365
|
}, null)), O(Et, ({ props: e, resolve: t }) => r(Pn, {
|
|
2389
2366
|
expression: t(e.expression),
|
|
2390
2367
|
block: !0
|
|
2391
|
-
}, null)), O(jt, ({ props: e, resolve: t }) => r(
|
|
2368
|
+
}, null)), O(jt, ({ props: e, resolve: t }) => r(Wn, {
|
|
2392
2369
|
code: t(e.code),
|
|
2393
2370
|
language: "mermaid"
|
|
2394
2371
|
}, null)), O(yt, () => null), O(bt, ({ props: t, surface: n, renderChild: i }) => {
|
|
@@ -2396,8 +2373,8 @@ var Br = {
|
|
|
2396
2373
|
let t = n.componentsModel.get(e);
|
|
2397
2374
|
return {
|
|
2398
2375
|
tabId: e,
|
|
2399
|
-
labelIds:
|
|
2400
|
-
contentIds:
|
|
2376
|
+
labelIds: Lr(t?.properties.label),
|
|
2377
|
+
contentIds: Lr(t?.properties.content)
|
|
2401
2378
|
};
|
|
2402
2379
|
});
|
|
2403
2380
|
return r(Zt, { defaultValue: "0" }, { default: () => [r(Qt, null, I(a = o.map(({ tabId: t, labelIds: n }, a) => {
|
|
@@ -2415,23 +2392,23 @@ var Br = {
|
|
|
2415
2392
|
})] });
|
|
2416
2393
|
}), O(Ft, ({ props: t, childRefs: n, renderChild: i }) => {
|
|
2417
2394
|
let a, o;
|
|
2418
|
-
return r(
|
|
2395
|
+
return r(Dr, {
|
|
2419
2396
|
caption: t.caption ? String(t.caption) : void 0,
|
|
2420
2397
|
hasRowHeader: t.hasRowHeader
|
|
2421
|
-
}, { default: () => [t.header && t.header.length > 0 && r(
|
|
2398
|
+
}, { default: () => [t.header && t.header.length > 0 && r(Mr, null, I(a = n(t.header).map(({ id: t, path: n }, a) => r(e, { key: `${t}:${a}` }, [i(t, n, a)]))) ? a : { default: () => [a] }), r(Or, null, I(o = n(t.body).map(({ id: t, path: n }, a) => r(e, { key: `${t}:${a}` }, [i(t, n, a)]))) ? o : { default: () => [o] })] });
|
|
2422
2399
|
}), O(Lt, ({ props: t, childRefs: n, renderChild: i }) => {
|
|
2423
2400
|
let a;
|
|
2424
|
-
return r(
|
|
2401
|
+
return r(Pr, null, I(a = n(t.children).map(({ id: t, path: n }, a) => r(e, { key: `${t}:${a}` }, [i(t, n, a)]))) ? a : { default: () => [a] });
|
|
2425
2402
|
}), O(It, ({ props: e, index: t, childRefs: n, renderChild: i }) => {
|
|
2426
2403
|
let a;
|
|
2427
|
-
return r(
|
|
2404
|
+
return r(Ar, {
|
|
2428
2405
|
isHeader: e.isHeader,
|
|
2429
2406
|
columnIndex: t
|
|
2430
2407
|
}, I(a = n(e.children).map(({ id: e, path: t }, n) => r("span", { key: `${e}:${n}` }, [i(e, t, n)]))) ? a : { default: () => [a] });
|
|
2431
|
-
}), O(zt, ({ props: e }) => r(
|
|
2408
|
+
}), O(zt, ({ props: e }) => r(Ir, { details: e.details ? `Unsupported component type: ${String(e.details)}` : "Unsupported component type" }, null))), Br = {
|
|
2432
2409
|
"parallax-watcher": "_parallax-watcher_z693a_1",
|
|
2433
2410
|
parallax: "_parallax_z693a_1"
|
|
2434
|
-
},
|
|
2411
|
+
}, Vr = /* @__PURE__ */ i({
|
|
2435
2412
|
name: "ElmParallax",
|
|
2436
2413
|
props: { images: {
|
|
2437
2414
|
type: Array,
|
|
@@ -2441,9 +2418,9 @@ var Br = {
|
|
|
2441
2418
|
let t = m(0), n = () => {
|
|
2442
2419
|
t.value = window.scrollY;
|
|
2443
2420
|
};
|
|
2444
|
-
return d(() => window.addEventListener("scroll", n)), u(() => window.removeEventListener("scroll", n)), () => r("div", null, [r("div", { class:
|
|
2421
|
+
return d(() => window.addEventListener("scroll", n)), u(() => window.removeEventListener("scroll", n)), () => r("div", null, [r("div", { class: Br["parallax-watcher"] }, null), e.images.map((e, n) => r("div", {
|
|
2445
2422
|
key: n,
|
|
2446
|
-
class:
|
|
2423
|
+
class: Br.parallax,
|
|
2447
2424
|
style: {
|
|
2448
2425
|
backgroundImage: `url(${e})`,
|
|
2449
2426
|
transform: `scale(1.2) translateY(${t.value / (1e3 * (n + 1))}%)`,
|
|
@@ -2451,11 +2428,11 @@ var Br = {
|
|
|
2451
2428
|
}
|
|
2452
2429
|
}, null))]);
|
|
2453
2430
|
}
|
|
2454
|
-
}),
|
|
2431
|
+
}), Hr = {
|
|
2455
2432
|
"elm-tooltip": "_elm-tooltip_1b13f_1",
|
|
2456
2433
|
tooltip: "_tooltip_1b13f_5",
|
|
2457
2434
|
show: "_show_1b13f_18"
|
|
2458
|
-
},
|
|
2435
|
+
}, Ur = /* @__PURE__ */ i({
|
|
2459
2436
|
name: "ElmTooltip",
|
|
2460
2437
|
setup(e, { slots: t }) {
|
|
2461
2438
|
let n = m(null), i = m(!1), a = !1, o, s = m({}), c = () => {
|
|
@@ -2477,19 +2454,19 @@ var Br = {
|
|
|
2477
2454
|
};
|
|
2478
2455
|
return () => r("span", {
|
|
2479
2456
|
ref: n,
|
|
2480
|
-
class: x(
|
|
2457
|
+
class: x(Hr["elm-tooltip"]),
|
|
2481
2458
|
onMouseover: c,
|
|
2482
2459
|
onMouseleave: l
|
|
2483
2460
|
}, [t.original?.(), r("div", {
|
|
2484
|
-
class: x(
|
|
2461
|
+
class: x(Hr.tooltip, i.value && Hr.show),
|
|
2485
2462
|
style: s.value
|
|
2486
2463
|
}, [t.tooltip?.()])]);
|
|
2487
2464
|
}
|
|
2488
|
-
}),
|
|
2465
|
+
}), Wr = { "elm-block-fallback": "_elm-block-fallback_1sx02_1" }, Gr = {
|
|
2489
2466
|
"elm-dot-loading-icon": "_elm-dot-loading-icon_qjgj2_15",
|
|
2490
2467
|
dot: "_dot_qjgj2_25",
|
|
2491
2468
|
bounce: "_bounce_qjgj2_1"
|
|
2492
|
-
},
|
|
2469
|
+
}, Kr = /* @__PURE__ */ i({
|
|
2493
2470
|
name: "ElmDotLoadingIcon",
|
|
2494
2471
|
inheritAttrs: !1,
|
|
2495
2472
|
props: { size: {
|
|
@@ -2500,24 +2477,35 @@ var Br = {
|
|
|
2500
2477
|
return () => {
|
|
2501
2478
|
let { class: n, style: i, ...a } = t;
|
|
2502
2479
|
return r("span", c({
|
|
2503
|
-
class: x(
|
|
2480
|
+
class: x(Gr["elm-dot-loading-icon"], n),
|
|
2504
2481
|
style: [{ "--elmethis-scoped-size": e.size }, i]
|
|
2505
2482
|
}, a), [
|
|
2506
2483
|
r("span", {
|
|
2507
|
-
class:
|
|
2484
|
+
class: Gr.dot,
|
|
2508
2485
|
"aria-hidden": "true"
|
|
2509
2486
|
}, null),
|
|
2510
2487
|
r("span", {
|
|
2511
|
-
class:
|
|
2488
|
+
class: Gr.dot,
|
|
2512
2489
|
"aria-hidden": "true"
|
|
2513
2490
|
}, null),
|
|
2514
2491
|
r("span", {
|
|
2515
|
-
class:
|
|
2492
|
+
class: Gr.dot,
|
|
2516
2493
|
"aria-hidden": "true"
|
|
2517
2494
|
}, null)
|
|
2518
2495
|
]);
|
|
2519
2496
|
};
|
|
2520
2497
|
}
|
|
2498
|
+
}), qr = {
|
|
2499
|
+
"elm-rectangle-wave": "_elm-rectangle-wave_70gad_21",
|
|
2500
|
+
wave: "_wave_70gad_1"
|
|
2501
|
+
}, Jr = /* @__PURE__ */ i({
|
|
2502
|
+
name: "ElmRectangleWave",
|
|
2503
|
+
setup() {
|
|
2504
|
+
return () => r("div", {
|
|
2505
|
+
"aria-hidden": "true",
|
|
2506
|
+
class: x(qr["elm-rectangle-wave"])
|
|
2507
|
+
}, null);
|
|
2508
|
+
}
|
|
2521
2509
|
}), Yr = /* @__PURE__ */ i({
|
|
2522
2510
|
name: "ElmBlockFallback",
|
|
2523
2511
|
props: { height: {
|
|
@@ -2526,9 +2514,9 @@ var Br = {
|
|
|
2526
2514
|
} },
|
|
2527
2515
|
setup(e) {
|
|
2528
2516
|
return () => r("div", {
|
|
2529
|
-
class: x(
|
|
2517
|
+
class: x(Wr["elm-block-fallback"]),
|
|
2530
2518
|
style: { "--elmethis-scoped-height": e.height }
|
|
2531
|
-
}, [r(
|
|
2519
|
+
}, [r(Kr, null, null), r(Jr, null, null)]);
|
|
2532
2520
|
}
|
|
2533
2521
|
}), L = {
|
|
2534
2522
|
"elm-button": "_elm-button_9qh0y_1",
|
|
@@ -2581,7 +2569,7 @@ var Br = {
|
|
|
2581
2569
|
"--elmethis-scoped-opacity": e.disabled || e.isLoading ? .6 : void 0,
|
|
2582
2570
|
"--elmethis-scoped-color": e.color
|
|
2583
2571
|
}, s]
|
|
2584
|
-
}, u), [i.value && r("span", { class: L.ripple }, null), e.isLoading ? r(
|
|
2572
|
+
}, u), [i.value && r("span", { class: L.ripple }, null), e.isLoading ? r(Kr, { size: "1.5rem" }, null) : r("span", { class: L.flex }, [n.default?.()])]);
|
|
2585
2573
|
};
|
|
2586
2574
|
}
|
|
2587
2575
|
}), R = {
|
|
@@ -2693,7 +2681,7 @@ var Qr = /* @__PURE__ */ i({
|
|
|
2693
2681
|
class: x(R["elm-button-dropdown"], t.block && R.block)
|
|
2694
2682
|
}, [
|
|
2695
2683
|
r(Xr, p, { default: () => [u ? r(e, null, [u.icon && r(T, { src: u.icon }, null), u.label]) : r(e, null, [i.icon?.(), t.label])] }),
|
|
2696
|
-
r(Xr, m, { default: () => [r(
|
|
2684
|
+
r(Xr, m, { default: () => [r(A, {
|
|
2697
2685
|
d: t.dropdownIcon,
|
|
2698
2686
|
size: "1.25rem"
|
|
2699
2687
|
}, null)] }),
|
|
@@ -2708,7 +2696,7 @@ var Qr = /* @__PURE__ */ i({
|
|
|
2708
2696
|
r.stopPropagation(), !e.disabled && (a.value = e.id, e.onClick?.(), n("itemClick", e), t.autoClose && c(!1));
|
|
2709
2697
|
}
|
|
2710
2698
|
}, [
|
|
2711
|
-
r(
|
|
2699
|
+
r(A, {
|
|
2712
2700
|
d: je,
|
|
2713
2701
|
color: "var(--elmethis-color-primary-weak)",
|
|
2714
2702
|
size: "0.75em"
|
|
@@ -2961,12 +2949,12 @@ var ti = /* @__PURE__ */ i({
|
|
|
2961
2949
|
ref: o,
|
|
2962
2950
|
class: x(B["elm-select"], a.value && B.active, (e.disabled || e.isLoading) && B.disabled),
|
|
2963
2951
|
onClick: c
|
|
2964
|
-
}, [r("span", { class: x(B.label, a.value && B["label-active"]) }, [n.icon?.() ?? r(
|
|
2952
|
+
}, [r("span", { class: x(B.label, a.value && B["label-active"]) }, [n.icon?.() ?? r(A, {
|
|
2965
2953
|
d: Oe,
|
|
2966
2954
|
size: "0.75rem"
|
|
2967
2955
|
}, null), e.label]), r("div", { class: B.body }, [
|
|
2968
2956
|
r("div", { class: x(B["selected-option"], w.text) }, [s ? r("div", { class: B["option-content"] }, [s.icon && r(T, { src: s.icon }, null), r(E, null, { default: () => [s.label] })]) : r("div", { class: B.fallback }, [r("span", null, [e.placeholder ?? "Select an option"])])]),
|
|
2969
|
-
r(
|
|
2957
|
+
r(A, {
|
|
2970
2958
|
d: Ye,
|
|
2971
2959
|
size: "1.5rem"
|
|
2972
2960
|
}, null),
|
|
@@ -2980,7 +2968,7 @@ var ti = /* @__PURE__ */ i({
|
|
|
2980
2968
|
t.stopPropagation(), i.value = e.id, a.value = !1;
|
|
2981
2969
|
}
|
|
2982
2970
|
}, [
|
|
2983
|
-
r(
|
|
2971
|
+
r(A, {
|
|
2984
2972
|
d: je,
|
|
2985
2973
|
color: "var(--elmethis-color-primary-weak)",
|
|
2986
2974
|
size: "0.75em"
|
|
@@ -3301,7 +3289,7 @@ var ti = /* @__PURE__ */ i({
|
|
|
3301
3289
|
style: p
|
|
3302
3290
|
}, [
|
|
3303
3291
|
r("span", { class: x(G.header, s.value && G["label-active"]) }, [
|
|
3304
|
-
o.icon?.() ?? r(
|
|
3292
|
+
o.icon?.() ?? r(A, {
|
|
3305
3293
|
d: at,
|
|
3306
3294
|
size: "0.75rem"
|
|
3307
3295
|
}, null),
|
|
@@ -3409,7 +3397,7 @@ var ti = /* @__PURE__ */ i({
|
|
|
3409
3397
|
style: f
|
|
3410
3398
|
}, [
|
|
3411
3399
|
r("span", { class: x(K.header, s.value && K["label-active"]) }, [
|
|
3412
|
-
a.icon?.() ?? r(
|
|
3400
|
+
a.icon?.() ?? r(A, {
|
|
3413
3401
|
d: it,
|
|
3414
3402
|
size: "0.75rem"
|
|
3415
3403
|
}, null),
|
|
@@ -3447,7 +3435,7 @@ var ti = /* @__PURE__ */ i({
|
|
|
3447
3435
|
onClick: () => {
|
|
3448
3436
|
!e.isLoading && !e.disabled && (l.value = l.value === "text" ? "password" : "text");
|
|
3449
3437
|
}
|
|
3450
|
-
}, [r(
|
|
3438
|
+
}, [r(A, {
|
|
3451
3439
|
d: l.value === "text" ? Le : Ie,
|
|
3452
3440
|
size: "1.25rem",
|
|
3453
3441
|
color: "gray"
|
|
@@ -3457,7 +3445,7 @@ var ti = /* @__PURE__ */ i({
|
|
|
3457
3445
|
onClick: () => {
|
|
3458
3446
|
!e.isLoading && !e.disabled && u("");
|
|
3459
3447
|
}
|
|
3460
|
-
}, [r(
|
|
3448
|
+
}, [r(A, {
|
|
3461
3449
|
d: ot,
|
|
3462
3450
|
size: "1.25rem",
|
|
3463
3451
|
color: "gray"
|
|
@@ -3491,7 +3479,7 @@ var ti = /* @__PURE__ */ i({
|
|
|
3491
3479
|
return () => r("div", {
|
|
3492
3480
|
class: x(ci["elm-validation"]),
|
|
3493
3481
|
style: { "--elmethis-scoped-opacity": e.isValid ? 1 : .5 }
|
|
3494
|
-
}, [r(
|
|
3482
|
+
}, [r(A, {
|
|
3495
3483
|
d: e.isValid ? ke : Ae,
|
|
3496
3484
|
color: e.isValid ? e.validColor : void 0
|
|
3497
3485
|
}, null), r(E, { color: e.isValid ? e.validColor : void 0 }, { default: () => [e.text] })]);
|
|
@@ -3504,7 +3492,7 @@ var ti = /* @__PURE__ */ i({
|
|
|
3504
3492
|
required: !0
|
|
3505
3493
|
} },
|
|
3506
3494
|
setup(e, { attrs: t }) {
|
|
3507
|
-
let { CopyButton: n } =
|
|
3495
|
+
let { CopyButton: n } = Un({
|
|
3508
3496
|
class: t.class,
|
|
3509
3497
|
style: t.style,
|
|
3510
3498
|
content: e.content
|
|
@@ -3996,11 +3984,11 @@ var bi = { "elm-toggle-theme": "_elm-toggle-theme_11awq_1" }, xi = /* @__PURE__
|
|
|
3996
3984
|
}, [r("span", {
|
|
3997
3985
|
class: Si["link-container"],
|
|
3998
3986
|
onClick: t.onClick
|
|
3999
|
-
}, [r(
|
|
3987
|
+
}, [r(A, {
|
|
4000
3988
|
class: Si.icon,
|
|
4001
3989
|
d: n === 0 ? Ge : n === e.links.length - 1 ? De : Be,
|
|
4002
3990
|
size: "1rem"
|
|
4003
|
-
}, null), r("span", { class: Si.chunk }, [t.text])]), e.links.length !== n + 1 && r(
|
|
3991
|
+
}, null), r("span", { class: Si.chunk }, [t.text])]), e.links.length !== n + 1 && r(A, {
|
|
4004
3992
|
class: Si.chevron,
|
|
4005
3993
|
d: je,
|
|
4006
3994
|
size: "1rem"
|
|
@@ -4159,7 +4147,7 @@ var bi = { "elm-toggle-theme": "_elm-toggle-theme_11awq_1" }, xi = /* @__PURE__
|
|
|
4159
4147
|
t.value = t.value === "variable" ? "hex" : "variable";
|
|
4160
4148
|
}
|
|
4161
4149
|
}, [
|
|
4162
|
-
r(
|
|
4150
|
+
r(A, {
|
|
4163
4151
|
class: q["mode-toggle-icon"],
|
|
4164
4152
|
d: t.value === "hex" ? We : Ve,
|
|
4165
4153
|
size: "1.25rem"
|
|
@@ -4336,7 +4324,7 @@ var bi = { "elm-toggle-theme": "_elm-toggle-theme_11awq_1" }, xi = /* @__PURE__
|
|
|
4336
4324
|
t.value = t.value === "variable" ? "hex" : "variable";
|
|
4337
4325
|
}
|
|
4338
4326
|
}, [
|
|
4339
|
-
r(
|
|
4327
|
+
r(A, {
|
|
4340
4328
|
class: Y["mode-toggle-icon"],
|
|
4341
4329
|
d: t.value === "hex" ? We : Ve,
|
|
4342
4330
|
size: "1.25rem"
|
|
@@ -4364,14 +4352,14 @@ var Z = (e) => {
|
|
|
4364
4352
|
case "blockquote":
|
|
4365
4353
|
if (c.tokens && c.tokens.length !== 0) {
|
|
4366
4354
|
let e;
|
|
4367
|
-
o.push(r(
|
|
4355
|
+
o.push(r(hr, { key: s }, X(e = Z(c.tokens)) ? e : { default: () => [e] }));
|
|
4368
4356
|
}
|
|
4369
4357
|
break;
|
|
4370
4358
|
case "br":
|
|
4371
4359
|
o.push(r("br", { key: s }, null));
|
|
4372
4360
|
break;
|
|
4373
4361
|
case "code":
|
|
4374
|
-
o.push(r(
|
|
4362
|
+
o.push(r(Wn, {
|
|
4375
4363
|
key: s,
|
|
4376
4364
|
code: c.text.trim(),
|
|
4377
4365
|
language: c.lang
|
|
@@ -4419,11 +4407,11 @@ var Z = (e) => {
|
|
|
4419
4407
|
break;
|
|
4420
4408
|
}
|
|
4421
4409
|
case "hr":
|
|
4422
|
-
o.push(r(
|
|
4410
|
+
o.push(r(Sr, { key: s }, null));
|
|
4423
4411
|
break;
|
|
4424
4412
|
case "html": break;
|
|
4425
4413
|
case "image":
|
|
4426
|
-
o.push(r(
|
|
4414
|
+
o.push(r(sr, {
|
|
4427
4415
|
key: s,
|
|
4428
4416
|
enableModal: !0,
|
|
4429
4417
|
src: c.href,
|
|
@@ -4441,7 +4429,7 @@ var Z = (e) => {
|
|
|
4441
4429
|
break;
|
|
4442
4430
|
case "list": {
|
|
4443
4431
|
let e = c.items.map((e, t) => r("li", { key: t }, [Z(e.tokens)]));
|
|
4444
|
-
o.push(r(
|
|
4432
|
+
o.push(r(wr, {
|
|
4445
4433
|
key: s,
|
|
4446
4434
|
listStyle: c.ordered ? "ordered" : "unordered"
|
|
4447
4435
|
}, X(e) ? e : { default: () => [e] }));
|
|
@@ -4466,12 +4454,12 @@ var Z = (e) => {
|
|
|
4466
4454
|
case "table": {
|
|
4467
4455
|
let e, t = (e) => e.map((e, t) => {
|
|
4468
4456
|
let n;
|
|
4469
|
-
return r(
|
|
4470
|
-
}), n = r(
|
|
4457
|
+
return r(Ar, { key: t }, X(n = Z(e.tokens)) ? n : { default: () => [n] });
|
|
4458
|
+
}), n = r(Pr, null, X(e = t(c.header)) ? e : { default: () => [e] }), i = c.rows.map((e, n) => {
|
|
4471
4459
|
let i;
|
|
4472
|
-
return r(
|
|
4460
|
+
return r(Pr, { key: n }, X(i = t(e)) ? i : { default: () => [i] });
|
|
4473
4461
|
});
|
|
4474
|
-
o.push(r(
|
|
4462
|
+
o.push(r(Dr, { key: s }, { default: () => [r(Mr, null, X(n) ? n : { default: () => [n] }), r(Or, null, X(i) ? i : { default: () => [i] })] }));
|
|
4475
4463
|
break;
|
|
4476
4464
|
}
|
|
4477
4465
|
case "text":
|
|
@@ -4722,4 +4710,4 @@ var Xi = (e) => {
|
|
|
4722
4710
|
};
|
|
4723
4711
|
};
|
|
4724
4712
|
//#endregion
|
|
4725
|
-
export { jn as A2uiSurface, hn as CatalogRenderer, Mn as ElmA2ui,
|
|
4713
|
+
export { jn as A2uiSurface, hn as CatalogRenderer, Mn as ElmA2ui, nr as ElmAudioPlayer, Yr as ElmBlockFallback, sr as ElmBlockImage, hr as ElmBlockQuote, fr as ElmBookmark, Ci as ElmBreadcrumb, Xr as ElmButton, Qr as ElmButtonDropdown, vr as ElmCallout, $r as ElmCheckbox, Wn as ElmCodeBlock, qt as ElmCollapse, ki as ElmColorPrimitiveSample, Li as ElmColorSemanticSample, ui as ElmCopyIcon, Sr as ElmDivider, Kr as ElmDotLoadingIcon, ur as ElmFile, rn as ElmFragmentIdentifier, on as ElmHeading, Qn as ElmHtml, $n as ElmHtmlViewer, T as ElmInlineIcon, E as ElmInlineText, Pn as ElmKatex, zn as ElmLanguageIcon, wr as ElmList, Bi as ElmMarkdown, A as ElmMdiIcon, ar as ElmModal, br as ElmNotionCallout, Ti as ElmPageTop, un as ElmParagraph, Vr as ElmParallax, Jr as ElmRectangleWave, ti as ElmSelect, Vn as ElmShikiHighlighter, ii as ElmSlider, fi as ElmSquareLoadingIcon, ai as ElmSwitch, $t as ElmTab, Qt as ElmTabList, en as ElmTabPanel, Dr as ElmTable, Or as ElmTableBody, Ar as ElmTableCell, Mr as ElmTableHeader, Pr as ElmTableRow, Zt as ElmTabs, oi as ElmTextArea, si as ElmTextField, pr as ElmToggle, xi as ElmToggleTheme, Ur as ElmTooltip, Ir as ElmUnsupportedBlock, li as ElmValidation, Tr as HasRowHeaderContext, Dt as LANGUAGES, mi as THEME_CHANGE_EVENT, Er as TableSectionContext, Sn as basicCatalog, O as defineRenderer, zr as notionBlockCatalog, Un as useClipboard, yi as useElmethisTheme, or as useModal, Xi as useWordle };
|