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