@elmethis/vue 0.25.0 → 0.25.1
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.mjs
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
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, toRaw as g, unref as _, useId as ee, watch as v } from "vue";
|
|
2
|
-
import { Catalog as y, ComponentContext as b, MessageProcessor as
|
|
3
|
-
import { AudioPlayerApi as
|
|
4
|
-
import { clsx as
|
|
5
|
-
import { useClipboard as
|
|
2
|
+
import { Catalog as y, ComponentContext as b, MessageProcessor as x } from "@a2ui/web_core/v0_9";
|
|
3
|
+
import { AudioPlayerApi as S, BASIC_FUNCTIONS as te, ButtonApi as ne, CardApi as re, CheckBoxApi as ie, ChoicePickerApi as ae, ColumnApi as oe, DateTimeInputApi as se, DividerApi as ce, IconApi as le, ImageApi as ue, ListApi as de, ModalApi as fe, RowApi as pe, SliderApi as me, TabsApi as he, TextApi as ge, TextFieldApi as _e, VideoApi as ve } from "@a2ui/web_core/v0_9/basic_catalog";
|
|
4
|
+
import { clsx as C } from "clsx";
|
|
5
|
+
import { useClipboard as ye, useClipboardItems as be, useVModel as xe } from "@vueuse/core";
|
|
6
6
|
import "zod";
|
|
7
|
-
import { renderToString as
|
|
8
|
-
import { mdiAlert as
|
|
9
|
-
import { AudioApi as
|
|
10
|
-
import { codeToHtml as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
7
|
+
import { renderToString as Se } from "katex";
|
|
8
|
+
import { mdiAlert as Ce, mdiAlertCircleOutline as we, mdiAlertOctagram as Te, mdiApplicationOutline as Ee, mdiArrowDownDropCircleOutline as De, mdiCheckCircle as Oe, mdiCheckCircleOutline as ke, mdiChevronRight as Ae, mdiClipboardCheckOutline as je, mdiClipboardOutline as Me, mdiCodeTags as Ne, mdiDownload as Pe, mdiEyeOffOutline as Fe, mdiEyeOutline as Ie, mdiFastForward10 as Le, mdiFile as Re, mdiFolderOpen as ze, mdiFormatColorFill as Be, mdiFormatQuoteClose as Ve, mdiFormatQuoteOpen as He, mdiHexadecimal as Ue, mdiHome as We, mdiInformation as Ge, mdiLightbulbOn as Ke, mdiLinkVariant as qe, mdiMenuDown as Je, mdiMessageImageOutline as Ye, mdiMusicNote as Xe, mdiOpenInNew as Ze, mdiPause as Qe, mdiPlay as $e, mdiPlus as et, mdiRewind10 as tt, mdiShieldAlert as nt, mdiText as rt, mdiTextLong as it, mdiTrashCanOutline as at, mdiVolumeHigh as ot, mdiVolumeLow as st, mdiVolumeMedium as ct, mdiVolumeOff as lt } from "@mdi/js";
|
|
9
|
+
import { AudioApi as ut, BlockImageApi as dt, BlockQuoteApi as ft, BookmarkApi as pt, CalloutApi as mt, CodeBlockApi as ht, ColumnApi as gt, ColumnListApi as _t, ContentTabApi as vt, ContentTabsApi as yt, DividerApi as bt, FileApi as xt, HeadingApi as St, HtmlApi as Ct, IconApi as wt, KatexApi as Tt, LANGUAGES as Et, LinkTextApi as Dt, ListApi as Ot, ListItemApi as kt, MermaidApi as At, NotionCalloutApi as jt, ParagraphApi as Mt, RichTextApi as Nt, TableApi as Pt, TableCellApi as Ft, TableRowApi as It, ToggleApi as Lt, UnsupportedApi as Rt, VideoApi as zt, languageIcons as Bt, normalizeLanguage as Vt } from "@elmethis/core";
|
|
10
|
+
import { codeToHtml as Ht } from "shiki";
|
|
11
|
+
import Ut from "@46ki75/ikuma-theme/dark";
|
|
12
|
+
import Wt from "@46ki75/ikuma-theme/light";
|
|
13
|
+
import { primitive as Gt } from "@elmethis/core/tokens";
|
|
13
14
|
import { marked as Kt } from "marked";
|
|
14
|
-
var
|
|
15
|
+
var qt = {
|
|
15
16
|
"elm-tabs": "_elm-tabs_4f8z7_1",
|
|
16
17
|
"tab-container": "_tab-container_4f8z7_13",
|
|
17
18
|
tab: "_tab_4f8z7_13",
|
|
@@ -25,7 +26,7 @@ var C = {
|
|
|
25
26
|
column: "_column_12wiu_16",
|
|
26
27
|
both: "_both_12wiu_27",
|
|
27
28
|
inner: "_inner_12wiu_44"
|
|
28
|
-
},
|
|
29
|
+
}, Jt = /* @__PURE__ */ i({
|
|
29
30
|
name: "ElmCollapse",
|
|
30
31
|
props: {
|
|
31
32
|
isOpen: {
|
|
@@ -43,26 +44,26 @@ var C = {
|
|
|
43
44
|
},
|
|
44
45
|
setup(e, { slots: t }) {
|
|
45
46
|
return () => r("div", {
|
|
46
|
-
class:
|
|
47
|
+
class: C(w["elm-collapse"], e.isOpen && w.open, e.direction === "row" && w.row, e.direction === "column" && w.column, e.direction === "both" && w.both),
|
|
47
48
|
style: { "--elmethis-scoped-transition-timing-function": e.transitionTimingFunction }
|
|
48
49
|
}, [r("div", { class: w.inner }, [t.default?.()])]);
|
|
49
50
|
}
|
|
50
51
|
});
|
|
51
52
|
//#endregion
|
|
52
53
|
//#region src/hooks/use-bindable-signal.ts
|
|
53
|
-
function
|
|
54
|
+
function Yt(e) {
|
|
54
55
|
let { props: t, key: n, emit: r, defaultValue: i } = e;
|
|
55
|
-
return
|
|
56
|
+
return xe(t, n, r, {
|
|
56
57
|
passive: !0,
|
|
57
58
|
defaultValue: i
|
|
58
59
|
});
|
|
59
60
|
}
|
|
60
61
|
//#endregion
|
|
61
62
|
//#region src/components/containments/tabs-context.ts
|
|
62
|
-
var
|
|
63
|
+
var Xt = Symbol("elm.tabs"), Zt = (e) => {
|
|
63
64
|
if (e == null) throw Error("ElmTabs subcomponents must be used within <ElmTabs>");
|
|
64
65
|
return e;
|
|
65
|
-
},
|
|
66
|
+
}, Qt = /* @__PURE__ */ i({
|
|
66
67
|
name: "ElmTabs",
|
|
67
68
|
props: {
|
|
68
69
|
value: {
|
|
@@ -80,13 +81,13 @@ var Yt = Symbol("elm.tabs"), Xt = (e) => {
|
|
|
80
81
|
},
|
|
81
82
|
emits: ["update:value"],
|
|
82
83
|
setup(e, { emit: t, slots: n }) {
|
|
83
|
-
let i =
|
|
84
|
+
let i = Yt({
|
|
84
85
|
props: e,
|
|
85
86
|
key: "value",
|
|
86
87
|
emit: t,
|
|
87
88
|
defaultValue: e.defaultValue ?? ""
|
|
88
89
|
});
|
|
89
|
-
return p(
|
|
90
|
+
return p(Xt, {
|
|
90
91
|
selectedValue: i,
|
|
91
92
|
setSelectedValue: (e) => {
|
|
92
93
|
i.value = e;
|
|
@@ -94,41 +95,41 @@ var Yt = Symbol("elm.tabs"), Xt = (e) => {
|
|
|
94
95
|
get transitionTimingFunction() {
|
|
95
96
|
return e.transitionTimingFunction;
|
|
96
97
|
}
|
|
97
|
-
}), () => r("div", { class:
|
|
98
|
+
}), () => r("div", { class: C(qt["elm-tabs"]) }, [n.default?.()]);
|
|
98
99
|
}
|
|
99
|
-
}),
|
|
100
|
+
}), $t = /* @__PURE__ */ i({
|
|
100
101
|
name: "ElmTabList",
|
|
101
102
|
setup(e, { slots: t }) {
|
|
102
|
-
return () => r("div", { class:
|
|
103
|
+
return () => r("div", { class: C(qt["tab-container"]) }, [t.default?.()]);
|
|
103
104
|
}
|
|
104
|
-
}),
|
|
105
|
+
}), en = /* @__PURE__ */ i({
|
|
105
106
|
name: "ElmTab",
|
|
106
107
|
props: { value: {
|
|
107
108
|
type: String,
|
|
108
109
|
required: !0
|
|
109
110
|
} },
|
|
110
111
|
setup(e, { slots: t }) {
|
|
111
|
-
let n =
|
|
112
|
+
let n = Zt(o(Xt));
|
|
112
113
|
return () => r("div", {
|
|
113
|
-
class:
|
|
114
|
+
class: C(qt.tab, n.selectedValue.value === e.value && qt.active),
|
|
114
115
|
onClick: () => n.setSelectedValue(e.value)
|
|
115
116
|
}, [t.default?.()]);
|
|
116
117
|
}
|
|
117
|
-
}),
|
|
118
|
+
}), tn = /* @__PURE__ */ i({
|
|
118
119
|
name: "ElmTabPanel",
|
|
119
120
|
props: { value: {
|
|
120
121
|
type: String,
|
|
121
122
|
required: !0
|
|
122
123
|
} },
|
|
123
124
|
setup(e, { slots: t }) {
|
|
124
|
-
let n =
|
|
125
|
-
return () => r("div", { class:
|
|
125
|
+
let n = Zt(o(Xt));
|
|
126
|
+
return () => r("div", { class: C(qt["tab-content"]) }, [r(Jt, {
|
|
126
127
|
direction: "row",
|
|
127
128
|
isOpen: n.selectedValue.value === e.value,
|
|
128
129
|
transitionTimingFunction: n.transitionTimingFunction
|
|
129
|
-
}, { default: () => [r("div", { class:
|
|
130
|
+
}, { default: () => [r("div", { class: qt["tab-content-inner"] }, [t.default?.()])] })]);
|
|
130
131
|
}
|
|
131
|
-
}),
|
|
132
|
+
}), nn = {
|
|
132
133
|
"elm-heading": "_elm-heading_1fuld_1",
|
|
133
134
|
h1: "_h1_1fuld_12",
|
|
134
135
|
h2: "_h2_1fuld_34",
|
|
@@ -137,7 +138,7 @@ var Yt = Symbol("elm.tabs"), Xt = (e) => {
|
|
|
137
138
|
h4: "_h4_1fuld_86",
|
|
138
139
|
h5: "_h5_1fuld_90",
|
|
139
140
|
h6: "_h6_1fuld_94"
|
|
140
|
-
}, T = { text: "_text_zme4t_1" },
|
|
141
|
+
}, T = { text: "_text_zme4t_1" }, rn = { "elm-fragment-identifier": "_elm-fragment-identifier_xb2v4_1" }, an = /* @__PURE__ */ i({
|
|
141
142
|
name: "ElmFragmentIdentifier",
|
|
142
143
|
inheritAttrs: !1,
|
|
143
144
|
props: { id: {
|
|
@@ -152,26 +153,26 @@ var Yt = Symbol("elm.tabs"), Xt = (e) => {
|
|
|
152
153
|
return () => {
|
|
153
154
|
let { class: a, ...o } = t;
|
|
154
155
|
return r("span", c({
|
|
155
|
-
class:
|
|
156
|
+
class: C(rn["elm-fragment-identifier"], a),
|
|
156
157
|
onClick: () => i(e.id)
|
|
157
158
|
}, o), [n("#")]);
|
|
158
159
|
};
|
|
159
160
|
}
|
|
160
|
-
}),
|
|
161
|
+
}), on = Object.freeze({
|
|
161
162
|
1: 1.5,
|
|
162
163
|
2: 1.4,
|
|
163
164
|
3: 1.3,
|
|
164
165
|
4: 1.2,
|
|
165
166
|
5: 1.15,
|
|
166
167
|
6: 1.1
|
|
167
|
-
}),
|
|
168
|
+
}), sn = {
|
|
168
169
|
1: "h1",
|
|
169
170
|
2: "h2",
|
|
170
171
|
3: "h3",
|
|
171
172
|
4: "h4",
|
|
172
173
|
5: "h5",
|
|
173
174
|
6: "h6"
|
|
174
|
-
},
|
|
175
|
+
}, cn = /* @__PURE__ */ i({
|
|
175
176
|
name: "ElmHeading",
|
|
176
177
|
props: {
|
|
177
178
|
level: {
|
|
@@ -189,23 +190,23 @@ var Yt = Symbol("elm.tabs"), Xt = (e) => {
|
|
|
189
190
|
},
|
|
190
191
|
setup(e, { slots: t }) {
|
|
191
192
|
return () => {
|
|
192
|
-
let n =
|
|
193
|
+
let n = sn[e.level];
|
|
193
194
|
return r(n, {
|
|
194
|
-
class:
|
|
195
|
-
style: { "--elmethis-scoped-font-size": `${
|
|
195
|
+
class: C(nn["elm-heading"], T.text, nn[`h${e.level}`]),
|
|
196
|
+
style: { "--elmethis-scoped-font-size": `${on[e.level]}em` },
|
|
196
197
|
id: e.id
|
|
197
198
|
}, { default: () => [
|
|
198
199
|
r("span", null, [e.text]),
|
|
199
200
|
t.default?.(),
|
|
200
|
-
e.id && r("span", { style: { padding: "0.5rem" } }, [r(
|
|
201
|
+
e.id && r("span", { style: { padding: "0.5rem" } }, [r(an, { id: e.id }, null)]),
|
|
201
202
|
e.level === 2 && r("span", {
|
|
202
|
-
class:
|
|
203
|
+
class: nn["h2-underline"],
|
|
203
204
|
"aria-hidden": "true"
|
|
204
205
|
}, null)
|
|
205
206
|
] });
|
|
206
207
|
};
|
|
207
208
|
}
|
|
208
|
-
}),
|
|
209
|
+
}), ln = {
|
|
209
210
|
"elm-inline-text": "_elm-inline-text_1r4f6_1",
|
|
210
211
|
code: "_code_1r4f6_13",
|
|
211
212
|
kbd: "_kbd_1r4f6_25",
|
|
@@ -214,7 +215,7 @@ var Yt = Symbol("elm.tabs"), Xt = (e) => {
|
|
|
214
215
|
"ogp-text": "_ogp-text_1r4f6_104",
|
|
215
216
|
"ogp-title": "_ogp-title_1r4f6_109",
|
|
216
217
|
"ogp-description": "_ogp-description_1r4f6_115"
|
|
217
|
-
},
|
|
218
|
+
}, un = { "elm-inline-icon": "_elm-inline-icon_1r7uc_1" }, dn = /* @__PURE__ */ i({
|
|
218
219
|
name: "ElmInlineIcon",
|
|
219
220
|
inheritAttrs: !1,
|
|
220
221
|
props: {
|
|
@@ -242,10 +243,10 @@ var Yt = Symbol("elm.tabs"), Xt = (e) => {
|
|
|
242
243
|
setup(e, { attrs: t }) {
|
|
243
244
|
return () => {
|
|
244
245
|
let { class: n, ...i } = t;
|
|
245
|
-
return r("span", c({ class:
|
|
246
|
+
return r("span", c({ class: C(un["elm-inline-icon"], n) }, i), [r("img", {
|
|
246
247
|
src: e.src,
|
|
247
248
|
alt: e.alt,
|
|
248
|
-
class:
|
|
249
|
+
class: un["elm-inline-icon"],
|
|
249
250
|
width: e.width ?? e.size,
|
|
250
251
|
height: e.height ?? e.size
|
|
251
252
|
}, null)]);
|
|
@@ -308,15 +309,15 @@ var Yt = Symbol("elm.tabs"), Xt = (e) => {
|
|
|
308
309
|
return () => {
|
|
309
310
|
let { class: i, style: a, ...o } = t, s = n.default?.();
|
|
310
311
|
return e.href && (s = r("a", {
|
|
311
|
-
class:
|
|
312
|
+
class: ln.link,
|
|
312
313
|
href: e.href,
|
|
313
314
|
target: "_blank",
|
|
314
315
|
rel: "noopener noreferrer"
|
|
315
|
-
}, [e.favicon && r(
|
|
316
|
+
}, [e.favicon && r(dn, {
|
|
316
317
|
src: e.favicon,
|
|
317
318
|
alt: "favicon"
|
|
318
|
-
}, null), s])), e.kbd && (s = r("kbd", { class:
|
|
319
|
-
class:
|
|
319
|
+
}, null), s])), e.kbd && (s = r("kbd", { class: ln.kbd }, [s])), e.strikethrough && (s = r("del", null, [s])), e.italic && (s = r("em", null, [s])), e.underline && (s = r("ins", null, [s])), e.bold && (s = r("strong", null, [s])), e.code && (s = r("code", { class: ln.code }, [s])), e.ruby && (s = r("ruby", { class: ln["elm-inline-text"] }, [r("span", null, [s]), r("rt", null, [e.ruby])])), r("span", c({
|
|
320
|
+
class: C(ln["elm-inline-text"], T.text, i),
|
|
320
321
|
style: [a, {
|
|
321
322
|
"--elmethis-scoped-color": e.color,
|
|
322
323
|
"--elmethis-scoped-font-size": e.size,
|
|
@@ -325,7 +326,7 @@ var Yt = Symbol("elm.tabs"), Xt = (e) => {
|
|
|
325
326
|
}, o), [s]);
|
|
326
327
|
};
|
|
327
328
|
}
|
|
328
|
-
}),
|
|
329
|
+
}), fn = { "elm-paragraph": "_elm-paragraph_y4o6n_1" }, pn = /* @__PURE__ */ i({
|
|
329
330
|
name: "ElmParagraph",
|
|
330
331
|
inheritAttrs: !1,
|
|
331
332
|
props: {
|
|
@@ -342,7 +343,7 @@ var Yt = Symbol("elm.tabs"), Xt = (e) => {
|
|
|
342
343
|
return () => {
|
|
343
344
|
let { class: i, style: a, ...o } = t;
|
|
344
345
|
return r("p", c({
|
|
345
|
-
class:
|
|
346
|
+
class: C(fn["elm-paragraph"], T.text, i),
|
|
346
347
|
style: [a, {
|
|
347
348
|
"--elmethis-scoped-color": e.color,
|
|
348
349
|
"--elmethis-scoped-background-color": e.backgroundColor
|
|
@@ -391,36 +392,36 @@ var Yt = Symbol("elm.tabs"), Xt = (e) => {
|
|
|
391
392
|
};
|
|
392
393
|
//#endregion
|
|
393
394
|
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/typeof.js
|
|
394
|
-
function
|
|
395
|
+
function mn(e) {
|
|
395
396
|
"@babel/helpers - typeof";
|
|
396
|
-
return
|
|
397
|
+
return mn = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
397
398
|
return typeof e;
|
|
398
399
|
} : function(e) {
|
|
399
400
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
400
|
-
},
|
|
401
|
+
}, mn(e);
|
|
401
402
|
}
|
|
402
403
|
//#endregion
|
|
403
404
|
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPrimitive.js
|
|
404
|
-
function
|
|
405
|
-
if (
|
|
405
|
+
function hn(e, t) {
|
|
406
|
+
if (mn(e) != "object" || !e) return e;
|
|
406
407
|
var n = e[Symbol.toPrimitive];
|
|
407
408
|
if (n !== void 0) {
|
|
408
409
|
var r = n.call(e, t || "default");
|
|
409
|
-
if (
|
|
410
|
+
if (mn(r) != "object") return r;
|
|
410
411
|
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
411
412
|
}
|
|
412
413
|
return (t === "string" ? String : Number)(e);
|
|
413
414
|
}
|
|
414
415
|
//#endregion
|
|
415
416
|
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/toPropertyKey.js
|
|
416
|
-
function
|
|
417
|
-
var t =
|
|
418
|
-
return
|
|
417
|
+
function gn(e) {
|
|
418
|
+
var t = hn(e, "string");
|
|
419
|
+
return mn(t) == "symbol" ? t : t + "";
|
|
419
420
|
}
|
|
420
421
|
//#endregion
|
|
421
422
|
//#region \0@oxc-project+runtime@0.154.0/helpers/esm/defineProperty.js
|
|
422
|
-
function
|
|
423
|
-
return (t =
|
|
423
|
+
function _n(e, t, n) {
|
|
424
|
+
return (t = gn(t)) in e ? Object.defineProperty(e, t, {
|
|
424
425
|
value: n,
|
|
425
426
|
enumerable: !0,
|
|
426
427
|
configurable: !0,
|
|
@@ -435,9 +436,9 @@ function O(e, t) {
|
|
|
435
436
|
render: t
|
|
436
437
|
};
|
|
437
438
|
}
|
|
438
|
-
var
|
|
439
|
+
var vn = class e {
|
|
439
440
|
constructor(e = []) {
|
|
440
|
-
|
|
441
|
+
_n(this, "entries", void 0);
|
|
441
442
|
let t = /* @__PURE__ */ new Map();
|
|
442
443
|
for (let n of e) t.set(n.name, n);
|
|
443
444
|
this.entries = t;
|
|
@@ -457,7 +458,7 @@ var _n = class e {
|
|
|
457
458
|
else n.set(r.name, r);
|
|
458
459
|
return new e(n.values());
|
|
459
460
|
}
|
|
460
|
-
},
|
|
461
|
+
}, yn = {
|
|
461
462
|
start: "flex-start",
|
|
462
463
|
end: "flex-end",
|
|
463
464
|
center: "center",
|
|
@@ -465,12 +466,12 @@ var _n = class e {
|
|
|
465
466
|
spaceAround: "space-around",
|
|
466
467
|
spaceEvenly: "space-evenly",
|
|
467
468
|
stretch: "stretch"
|
|
468
|
-
},
|
|
469
|
+
}, bn = {
|
|
469
470
|
start: "flex-start",
|
|
470
471
|
end: "flex-end",
|
|
471
472
|
center: "center",
|
|
472
473
|
stretch: "stretch"
|
|
473
|
-
},
|
|
474
|
+
}, xn = {
|
|
474
475
|
contain: "contain",
|
|
475
476
|
cover: "cover",
|
|
476
477
|
fill: "fill",
|
|
@@ -479,7 +480,7 @@ var _n = class e {
|
|
|
479
480
|
};
|
|
480
481
|
//#endregion
|
|
481
482
|
//#region src/components/a2ui/catalog/basic-catalog.tsx
|
|
482
|
-
function
|
|
483
|
+
function k(e) {
|
|
483
484
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !s(e);
|
|
484
485
|
}
|
|
485
486
|
var Sn = {
|
|
@@ -497,46 +498,46 @@ function Cn(e) {
|
|
|
497
498
|
default: return 1;
|
|
498
499
|
}
|
|
499
500
|
}
|
|
500
|
-
var wn = new
|
|
501
|
-
O(
|
|
501
|
+
var wn = new vn([
|
|
502
|
+
O(ge, ({ props: e, resolve: t }) => {
|
|
502
503
|
let n = t(e.text), i = e.variant ?? "body";
|
|
503
|
-
return i === "caption" ? r(E, null,
|
|
504
|
+
return i === "caption" ? r(E, null, k(n) ? n : { default: () => [n] }) : i === "body" ? r(pn, null, k(n) ? n : { default: () => [n] }) : r(cn, { level: Cn(i) }, k(n) ? n : { default: () => [n] });
|
|
504
505
|
}),
|
|
505
|
-
O(
|
|
506
|
+
O(pe, ({ props: e, childRefs: t, renderChild: n }) => r("div", {
|
|
506
507
|
class: D.row,
|
|
507
508
|
style: {
|
|
508
|
-
justifyContent:
|
|
509
|
-
alignItems:
|
|
509
|
+
justifyContent: yn[e.justify ?? "start"],
|
|
510
|
+
alignItems: bn[e.align ?? "center"]
|
|
510
511
|
}
|
|
511
512
|
}, [t(e.children).map(({ id: e, path: t }, i) => r("span", {
|
|
512
513
|
key: `${e}:${i}`,
|
|
513
514
|
class: D["child-wrap"]
|
|
514
515
|
}, [n(e, t, i)]))])),
|
|
515
|
-
O(
|
|
516
|
+
O(oe, ({ props: e, childRefs: t, renderChild: n }) => r("div", { class: D.column }, [t(e.children).map(({ id: e, path: t }, i) => r("span", {
|
|
516
517
|
key: `${e}:${i}`,
|
|
517
518
|
class: D["child-wrap"]
|
|
518
519
|
}, [n(e, t, i)]))])),
|
|
519
|
-
O(
|
|
520
|
+
O(de, ({ props: e, childRefs: t, renderChild: n }) => r("div", { class: C(D.list, e.direction === "horizontal" && D["list-horizontal"]) }, [t(e.children).map(({ id: e, path: t }, i) => r("div", {
|
|
520
521
|
key: `${e}:${i}`,
|
|
521
522
|
class: D["list-item"]
|
|
522
523
|
}, [n(e, t, i)]))])),
|
|
523
|
-
O(
|
|
524
|
-
O(
|
|
524
|
+
O(re, ({ props: e, renderChild: t }) => r("div", { class: D.card }, [t(e.child)])),
|
|
525
|
+
O(ne, ({ props: e, renderChild: t, dispatchAction: n }) => r("div", {
|
|
525
526
|
role: "button",
|
|
526
527
|
tabindex: 0,
|
|
527
|
-
class:
|
|
528
|
+
class: C(D.button, e.variant === "primary" && D["button-primary"]),
|
|
528
529
|
onClick: e.action ? () => n("action") : void 0,
|
|
529
530
|
onKeydown: e.action ? (e) => {
|
|
530
531
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), n("action"));
|
|
531
532
|
} : void 0
|
|
532
533
|
}, [t(e.child)])),
|
|
533
|
-
O(
|
|
534
|
+
O(ue, ({ props: e, resolve: t }) => r("img", {
|
|
534
535
|
class: D.image,
|
|
535
536
|
src: t(e.url),
|
|
536
537
|
alt: e.description ? t(e.description) : "",
|
|
537
|
-
style: { objectFit:
|
|
538
|
+
style: { objectFit: xn[e.fit ?? "cover"] }
|
|
538
539
|
}, null)),
|
|
539
|
-
O(
|
|
540
|
+
O(le, ({ props: e, resolve: t }) => {
|
|
540
541
|
let n = t(e.name);
|
|
541
542
|
return r("span", {
|
|
542
543
|
class: D.icon,
|
|
@@ -544,11 +545,11 @@ var wn = new _n([
|
|
|
544
545
|
"data-icon": n
|
|
545
546
|
}, null);
|
|
546
547
|
}),
|
|
547
|
-
O(
|
|
548
|
-
class:
|
|
548
|
+
O(ce, ({ props: e }) => r("div", {
|
|
549
|
+
class: C(D.divider, e.axis === "vertical" && D["divider-vertical"]),
|
|
549
550
|
role: "separator"
|
|
550
551
|
}, null)),
|
|
551
|
-
O(
|
|
552
|
+
O(_e, ({ props: e, resolve: t, setBinding: n }) => {
|
|
552
553
|
let i = e.variant ?? "shortText", a = e.value ? t(e.value) : "";
|
|
553
554
|
return r("div", { class: D["text-field"] }, [r("label", { class: D.label }, [t(e.label)]), i === "longText" ? r("textarea", {
|
|
554
555
|
class: D.input,
|
|
@@ -563,7 +564,7 @@ var wn = new _n([
|
|
|
563
564
|
onChange: (e) => n("value", e.target.value)
|
|
564
565
|
}, null)]);
|
|
565
566
|
}),
|
|
566
|
-
O(
|
|
567
|
+
O(ie, ({ props: e, ctx: t, resolve: n, setBinding: i }) => {
|
|
567
568
|
let a = e.value, o = typeof a == "boolean" ? a : !!(t.dataContext.resolveDynamicValue(a) ?? !1);
|
|
568
569
|
return r("label", { class: D.checkbox }, [r("input", {
|
|
569
570
|
type: "checkbox",
|
|
@@ -571,7 +572,7 @@ var wn = new _n([
|
|
|
571
572
|
onChange: (e) => i("value", e.target.checked)
|
|
572
573
|
}, null), r("span", { class: D["checkbox-label"] }, [n(e.label)])]);
|
|
573
574
|
}),
|
|
574
|
-
O(
|
|
575
|
+
O(me, ({ props: e, ctx: t, setBinding: n }) => {
|
|
575
576
|
let i = e.value, a = typeof i == "number" ? i : Number(t.dataContext.resolveDynamicValue(i) ?? 0);
|
|
576
577
|
return r("input", {
|
|
577
578
|
class: D.slider,
|
|
@@ -583,34 +584,34 @@ var wn = new _n([
|
|
|
583
584
|
onChange: (e) => n("value", Number(e.target.value))
|
|
584
585
|
}, null);
|
|
585
586
|
}),
|
|
586
|
-
O(
|
|
587
|
+
O(he, ({ props: e, resolve: t, renderChild: n }) => {
|
|
587
588
|
let i;
|
|
588
|
-
return r(
|
|
589
|
+
return r(Qt, { defaultValue: "0" }, { default: () => [r($t, null, k(i = e.tabs.map((e, n) => {
|
|
589
590
|
let i;
|
|
590
|
-
return r(
|
|
591
|
+
return r(en, {
|
|
591
592
|
key: n,
|
|
592
593
|
value: String(n)
|
|
593
|
-
},
|
|
594
|
+
}, k(i = t(e.title)) ? i : { default: () => [i] });
|
|
594
595
|
})) ? i : { default: () => [i] }), e.tabs.map((e, t) => {
|
|
595
596
|
let i;
|
|
596
|
-
return r(
|
|
597
|
+
return r(tn, {
|
|
597
598
|
key: t,
|
|
598
599
|
value: String(t)
|
|
599
|
-
},
|
|
600
|
+
}, k(i = n(e.child)) ? i : { default: () => [i] });
|
|
600
601
|
})] });
|
|
601
602
|
}),
|
|
602
|
-
O(
|
|
603
|
-
O(
|
|
603
|
+
O(fe, ({ props: e, renderChild: t }) => r("div", { class: D.modal }, [t(e.trigger), r("div", { class: D["modal-content"] }, [t(e.content)])])),
|
|
604
|
+
O(ve, ({ props: e, resolve: t }) => r("video", {
|
|
604
605
|
class: D.video,
|
|
605
606
|
controls: !0,
|
|
606
607
|
src: t(e.url)
|
|
607
608
|
}, null)),
|
|
608
|
-
O(
|
|
609
|
+
O(S, ({ props: e, resolve: t }) => r("audio", {
|
|
609
610
|
class: D.audio,
|
|
610
611
|
controls: !0,
|
|
611
612
|
src: t(e.url)
|
|
612
613
|
}, null)),
|
|
613
|
-
O(
|
|
614
|
+
O(ae, ({ props: e, componentId: t, ctx: n, resolve: i, setBinding: a }) => {
|
|
614
615
|
let o = e.value, s = Array.isArray(o) ? o : n.dataContext.resolveDynamicValue(o) ?? [], c = Array.isArray(s) ? s : [], l = (e.variant ?? "mutuallyExclusive") === "multipleSelection";
|
|
615
616
|
return r("div", {
|
|
616
617
|
class: D["choice-picker"],
|
|
@@ -629,7 +630,7 @@ var wn = new _n([
|
|
|
629
630
|
checked: c.includes(e.value)
|
|
630
631
|
}, null), r("span", null, [i(e.label)])]))])]);
|
|
631
632
|
}),
|
|
632
|
-
O(
|
|
633
|
+
O(se, ({ props: e, resolve: t, setBinding: n }) => {
|
|
633
634
|
let i = e.enableDate ?? !1, a = e.enableTime ?? !1, o = i && a ? "datetime-local" : i ? "date" : a ? "time" : "text";
|
|
634
635
|
return r("div", { class: D["datetime-input"] }, [e.label ? r("label", { class: D.label }, [t(e.label)]) : null, r("input", {
|
|
635
636
|
class: D.input,
|
|
@@ -880,7 +881,7 @@ var jn = "https://a2ui.org/specification/v0_9/basic_catalog.json", Mn = /* @__PU
|
|
|
880
881
|
let t = e.createSurface?.catalogId;
|
|
881
882
|
typeof t == "string" && c.add(t);
|
|
882
883
|
}
|
|
883
|
-
let l = e.catalog ?? wn, u = Array.from(c).map((e) => l.toCatalog(e,
|
|
884
|
+
let l = e.catalog ?? wn, u = Array.from(c).map((e) => l.toCatalog(e, te)), d = new x(u), f = /* @__PURE__ */ new Map(), p = [];
|
|
884
885
|
p.push(d.model.onSurfaceCreated.subscribe((e) => {
|
|
885
886
|
f.set(e.id, e), n.value++;
|
|
886
887
|
})), p.push(d.model.onSurfaceDeleted.subscribe((e) => {
|
|
@@ -950,12 +951,12 @@ var jn = "https://a2ui.org/specification/v0_9/basic_catalog.json", Mn = /* @__PU
|
|
|
950
951
|
}
|
|
951
952
|
},
|
|
952
953
|
setup(e) {
|
|
953
|
-
let n = t(() =>
|
|
954
|
+
let n = t(() => Se(e.expression, {
|
|
954
955
|
displayMode: e.block,
|
|
955
956
|
output: "mathml"
|
|
956
957
|
}));
|
|
957
958
|
return () => r("div", {
|
|
958
|
-
class:
|
|
959
|
+
class: C(T.text, e.block ? Fn["elm-katex"] : void 0),
|
|
959
960
|
innerHTML: n.value
|
|
960
961
|
}, null);
|
|
961
962
|
}
|
|
@@ -992,7 +993,7 @@ var jn = "https://a2ui.org/specification/v0_9/basic_catalog.json", Mn = /* @__PU
|
|
|
992
993
|
...e.icon.attrs
|
|
993
994
|
}, e.icon.children.map((e) => zn(e, t)));
|
|
994
995
|
}
|
|
995
|
-
}), Vn = { "elm-mdi-icon": "_elm-mdi-icon_1k12x_1" },
|
|
996
|
+
}), Vn = { "elm-mdi-icon": "_elm-mdi-icon_1k12x_1" }, A = /* @__PURE__ */ i({
|
|
996
997
|
name: "ElmMdiIcon",
|
|
997
998
|
inheritAttrs: !1,
|
|
998
999
|
props: {
|
|
@@ -1017,7 +1018,7 @@ var jn = "https://a2ui.org/specification/v0_9/basic_catalog.json", Mn = /* @__PU
|
|
|
1017
1018
|
return () => {
|
|
1018
1019
|
let { class: n, style: i, ...a } = t, o = !!(e.label || a["aria-label"] || a["aria-labelledby"]);
|
|
1019
1020
|
return r("svg", c({
|
|
1020
|
-
class:
|
|
1021
|
+
class: C(Vn["elm-mdi-icon"], n),
|
|
1021
1022
|
style: i,
|
|
1022
1023
|
width: e.size,
|
|
1023
1024
|
height: e.size,
|
|
@@ -1045,12 +1046,12 @@ var jn = "https://a2ui.org/specification/v0_9/basic_catalog.json", Mn = /* @__PU
|
|
|
1045
1046
|
},
|
|
1046
1047
|
setup(e) {
|
|
1047
1048
|
return () => {
|
|
1048
|
-
let t =
|
|
1049
|
-
return t === "file" ? r(
|
|
1050
|
-
path:
|
|
1049
|
+
let t = Vt(e.language);
|
|
1050
|
+
return t === "file" ? r(A, {
|
|
1051
|
+
path: Ne,
|
|
1051
1052
|
size: String(e.size)
|
|
1052
1053
|
}, null) : a(Bn, {
|
|
1053
|
-
icon:
|
|
1054
|
+
icon: Bt[t],
|
|
1054
1055
|
size: e.size
|
|
1055
1056
|
});
|
|
1056
1057
|
};
|
|
@@ -1072,11 +1073,11 @@ var jn = "https://a2ui.org/specification/v0_9/basic_catalog.json", Mn = /* @__PU
|
|
|
1072
1073
|
let n = m(""), i = async (e, t, r) => {
|
|
1073
1074
|
if (!e) r() && (n.value = "");
|
|
1074
1075
|
else try {
|
|
1075
|
-
let i = await
|
|
1076
|
+
let i = await Ht(e, {
|
|
1076
1077
|
lang: t,
|
|
1077
1078
|
themes: {
|
|
1078
|
-
dark:
|
|
1079
|
-
light:
|
|
1079
|
+
dark: Ut,
|
|
1080
|
+
light: Wt
|
|
1080
1081
|
},
|
|
1081
1082
|
defaultColor: !1,
|
|
1082
1083
|
colorReplacements: {
|
|
@@ -1097,7 +1098,7 @@ var jn = "https://a2ui.org/specification/v0_9/basic_catalog.json", Mn = /* @__PU
|
|
|
1097
1098
|
}, { immediate: !0 }), () => {
|
|
1098
1099
|
let { class: e, ...i } = t;
|
|
1099
1100
|
return r("pre", c({
|
|
1100
|
-
class:
|
|
1101
|
+
class: C(Un["elm-shiki-highlighter"], e),
|
|
1101
1102
|
innerHTML: n.value
|
|
1102
1103
|
}, i), null);
|
|
1103
1104
|
};
|
|
@@ -1106,7 +1107,7 @@ var jn = "https://a2ui.org/specification/v0_9/basic_catalog.json", Mn = /* @__PU
|
|
|
1106
1107
|
"use-clipboard": "_use-clipboard_mb0qt_1",
|
|
1107
1108
|
"use-clipboard-icon-copied": "_use-clipboard-icon-copied_mb0qt_15"
|
|
1108
1109
|
}, Kn = (e) => {
|
|
1109
|
-
let n = e.delay ?? 1500, a =
|
|
1110
|
+
let n = e.delay ?? 1500, a = ye({ copiedDuring: n }), o = be({ copiedDuring: n }), s = t(() => a.copied.value || o.copied.value), c = async () => {
|
|
1110
1111
|
let t = e.content;
|
|
1111
1112
|
typeof t == "string" ? await a.copy(t) : await o.copy(t.map((e) => new ClipboardItem(e)));
|
|
1112
1113
|
};
|
|
@@ -1116,14 +1117,14 @@ var jn = "https://a2ui.org/specification/v0_9/basic_catalog.json", Mn = /* @__PU
|
|
|
1116
1117
|
name: "CopyButton",
|
|
1117
1118
|
setup() {
|
|
1118
1119
|
return () => r("span", {
|
|
1119
|
-
class:
|
|
1120
|
+
class: C(Gn["use-clipboard"], e.class),
|
|
1120
1121
|
style: e.style,
|
|
1121
1122
|
onClick: () => {
|
|
1122
1123
|
c();
|
|
1123
1124
|
}
|
|
1124
|
-
}, [r(
|
|
1125
|
-
class:
|
|
1126
|
-
path: s.value ?
|
|
1125
|
+
}, [r(A, {
|
|
1126
|
+
class: C(s.value && Gn["use-clipboard-icon-copied"]),
|
|
1127
|
+
path: s.value ? je : Me,
|
|
1127
1128
|
size: "1.25rem"
|
|
1128
1129
|
}, null)]);
|
|
1129
1130
|
}
|
|
@@ -1147,7 +1148,7 @@ var jn = "https://a2ui.org/specification/v0_9/basic_catalog.json", Mn = /* @__PU
|
|
|
1147
1148
|
},
|
|
1148
1149
|
setup(e, { slots: t }) {
|
|
1149
1150
|
let { CopyButton: n } = Kn({ content: e.code });
|
|
1150
|
-
return () => r("figure", { class:
|
|
1151
|
+
return () => r("figure", { class: C(Ln["elm-code-block"]) }, [
|
|
1151
1152
|
r("span", { class: Ln["language-icon"] }, [r(Hn, { language: e.language }, null)]),
|
|
1152
1153
|
r("span", { class: Ln.caption }, [r(E, null, { default: () => [e.caption || e.language, t.default?.()] })]),
|
|
1153
1154
|
r("div", { class: Ln["copy-icon"] }, [a(n)]),
|
|
@@ -1158,22 +1159,22 @@ var jn = "https://a2ui.org/specification/v0_9/basic_catalog.json", Mn = /* @__PU
|
|
|
1158
1159
|
}, null)])
|
|
1159
1160
|
]);
|
|
1160
1161
|
}
|
|
1161
|
-
}),
|
|
1162
|
+
}), j = {
|
|
1162
1163
|
"elm-html-viewer": "_elm-html-viewer_17ksq_1",
|
|
1163
1164
|
header: "_header_17ksq_15",
|
|
1164
1165
|
"icon-button": "_icon-button_17ksq_23",
|
|
1165
1166
|
divider: "_divider_17ksq_49",
|
|
1166
1167
|
content: "_content_17ksq_57"
|
|
1167
|
-
},
|
|
1168
|
+
}, Jn = { "elm-html": "_elm-html_339tp_1" }, Yn = (e) => {
|
|
1168
1169
|
let t = [], n = 0, r, i = 0;
|
|
1169
1170
|
for (let a = 0; a < e.length; a++) {
|
|
1170
1171
|
let o = e[a];
|
|
1171
1172
|
r ? o === "\\" ? a++ : o === r && (r = void 0) : 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);
|
|
1172
1173
|
}
|
|
1173
1174
|
return t.push(e.slice(i)), t;
|
|
1174
|
-
},
|
|
1175
|
+
}, Xn = (e) => {
|
|
1175
1176
|
let t = {};
|
|
1176
|
-
for (let n of
|
|
1177
|
+
for (let n of Yn(e)) {
|
|
1177
1178
|
let e = n.indexOf(":");
|
|
1178
1179
|
if (e === -1) continue;
|
|
1179
1180
|
let r = n.slice(0, e).trim(), i = n.slice(e + 1).trim();
|
|
@@ -1182,21 +1183,21 @@ var jn = "https://a2ui.org/specification/v0_9/basic_catalog.json", Mn = /* @__PU
|
|
|
1182
1183
|
t[a] = i;
|
|
1183
1184
|
}
|
|
1184
1185
|
return t;
|
|
1185
|
-
},
|
|
1186
|
-
if (e !== void 0) return typeof e == "string" ?
|
|
1187
|
-
},
|
|
1186
|
+
}, Zn = (e) => {
|
|
1187
|
+
if (e !== void 0) return typeof e == "string" ? Xn(e) : l(e);
|
|
1188
|
+
}, Qn = (e, t) => t ? !0 : (e?.split(/\s+/).filter(Boolean) ?? []).some((e) => e.toLowerCase() === "allow-scripts"), $n = "elmethis:elm-html:auto-height", er = (e) => `${e}
|
|
1188
1189
|
<script>(function () {
|
|
1189
1190
|
var send = function () {
|
|
1190
1191
|
try {
|
|
1191
1192
|
parent.postMessage(
|
|
1192
|
-
{ kind: ${JSON.stringify(
|
|
1193
|
+
{ kind: ${JSON.stringify($n)}, height: document.documentElement.scrollHeight },
|
|
1193
1194
|
"*",
|
|
1194
1195
|
);
|
|
1195
1196
|
} catch (e) {}
|
|
1196
1197
|
};
|
|
1197
1198
|
new ResizeObserver(send).observe(document.documentElement);
|
|
1198
1199
|
send();
|
|
1199
|
-
})();<\/script>`,
|
|
1200
|
+
})();<\/script>`, tr = /* @__PURE__ */ i({
|
|
1200
1201
|
name: "ElmHtml",
|
|
1201
1202
|
inheritAttrs: !1,
|
|
1202
1203
|
props: {
|
|
@@ -1240,12 +1241,12 @@ var jn = "https://a2ui.org/specification/v0_9/basic_catalog.json", Mn = /* @__PU
|
|
|
1240
1241
|
}, { flush: "pre" });
|
|
1241
1242
|
let o, s = (e, t, r) => {
|
|
1242
1243
|
let s = n.value;
|
|
1243
|
-
if (!s || !e || a() &&
|
|
1244
|
-
if (
|
|
1244
|
+
if (!s || !e || a() && Qn(t, r)) return;
|
|
1245
|
+
if (Qn(t, r)) {
|
|
1245
1246
|
let e = (e) => {
|
|
1246
1247
|
if (e.source !== s.contentWindow) return;
|
|
1247
1248
|
let t = e.data;
|
|
1248
|
-
t && t.kind ===
|
|
1249
|
+
t && t.kind === $n && typeof t.height == "number" && (i.value = t.height);
|
|
1249
1250
|
};
|
|
1250
1251
|
window.addEventListener("message", e), o = () => {
|
|
1251
1252
|
window.removeEventListener("message", e);
|
|
@@ -1274,7 +1275,7 @@ var jn = "https://a2ui.org/specification/v0_9/basic_catalog.json", Mn = /* @__PU
|
|
|
1274
1275
|
], ([, , e, t, n]) => {
|
|
1275
1276
|
o?.(), s(e, t, n);
|
|
1276
1277
|
}, { flush: "post" }), u(() => o?.()), () => {
|
|
1277
|
-
let o = a(), { class: s, style: l, srcDoc: u, srcdoc: d, referrerPolicy: f, referrerpolicy: p, ...m } = t, h =
|
|
1278
|
+
let o = a(), { class: s, style: l, srcDoc: u, srcdoc: d, referrerPolicy: f, referrerpolicy: p, ...m } = t, h = Zn(l), g = h?.height, _ = new Set(e.sandbox?.split(/\s+/).filter(Boolean) ?? []);
|
|
1278
1279
|
e.allowScripts && _.add("allow-scripts");
|
|
1279
1280
|
let ee = [..._].some((e) => e.toLowerCase() === "allow-scripts");
|
|
1280
1281
|
if (ee) for (let e of _) e.toLowerCase() === "allow-same-origin" && _.delete(e);
|
|
@@ -1284,7 +1285,7 @@ var jn = "https://a2ui.org/specification/v0_9/basic_catalog.json", Mn = /* @__PU
|
|
|
1284
1285
|
key: String(e.autoHeight),
|
|
1285
1286
|
ref: n,
|
|
1286
1287
|
title: e.title ?? "Embedded HTML content",
|
|
1287
|
-
class:
|
|
1288
|
+
class: C(Jn["elm-html"], s),
|
|
1288
1289
|
style: e.autoHeight ? {
|
|
1289
1290
|
...h,
|
|
1290
1291
|
height: i.value === void 0 ? g : `${i.value}px`
|
|
@@ -1292,13 +1293,13 @@ var jn = "https://a2ui.org/specification/v0_9/basic_catalog.json", Mn = /* @__PU
|
|
|
1292
1293
|
height: e.autoHeight ? i.value === void 0 && g === void 0 ? e.height : void 0 : e.height
|
|
1293
1294
|
}, m, {
|
|
1294
1295
|
src: o ? e.src : void 0,
|
|
1295
|
-
srcdoc: o ? void 0 : e.autoHeight && ee ?
|
|
1296
|
+
srcdoc: o ? void 0 : e.autoHeight && ee ? er(e.html ?? "") : e.html ?? "",
|
|
1296
1297
|
sandbox: v,
|
|
1297
1298
|
referrerpolicy: o ? "no-referrer" : void 0
|
|
1298
1299
|
}), null);
|
|
1299
1300
|
};
|
|
1300
1301
|
}
|
|
1301
|
-
}),
|
|
1302
|
+
}), nr = /* @__PURE__ */ i({
|
|
1302
1303
|
name: "ElmHtmlViewer",
|
|
1303
1304
|
props: {
|
|
1304
1305
|
html: {
|
|
@@ -1366,26 +1367,26 @@ var jn = "https://a2ui.org/specification/v0_9/basic_catalog.json", Mn = /* @__PU
|
|
|
1366
1367
|
r?.remove(), n && URL.revokeObjectURL(n);
|
|
1367
1368
|
}
|
|
1368
1369
|
};
|
|
1369
|
-
return () => r("figure", { class:
|
|
1370
|
-
r("div", { class:
|
|
1370
|
+
return () => r("figure", { class: C(j["elm-html-viewer"]) }, [
|
|
1371
|
+
r("div", { class: j.header }, [r("button", {
|
|
1371
1372
|
type: "button",
|
|
1372
|
-
class:
|
|
1373
|
+
class: j["icon-button"],
|
|
1373
1374
|
onClick: i,
|
|
1374
1375
|
"aria-label": "Download"
|
|
1375
|
-
}, [r(
|
|
1376
|
-
path:
|
|
1376
|
+
}, [r(A, {
|
|
1377
|
+
path: Pe,
|
|
1377
1378
|
size: "1.25rem"
|
|
1378
1379
|
}, null)]), r("button", {
|
|
1379
1380
|
type: "button",
|
|
1380
|
-
class:
|
|
1381
|
+
class: j["icon-button"],
|
|
1381
1382
|
onClick: n,
|
|
1382
1383
|
"aria-label": "Open in new tab"
|
|
1383
|
-
}, [r(
|
|
1384
|
-
path:
|
|
1384
|
+
}, [r(A, {
|
|
1385
|
+
path: Ze,
|
|
1385
1386
|
size: "1.25rem"
|
|
1386
1387
|
}, null)])]),
|
|
1387
|
-
r("hr", { class:
|
|
1388
|
-
r("div", { class:
|
|
1388
|
+
r("hr", { class: j.divider }, null),
|
|
1389
|
+
r("div", { class: j.content }, [r(tr, {
|
|
1389
1390
|
html: e.html,
|
|
1390
1391
|
src: e.src,
|
|
1391
1392
|
sandbox: e.sandbox,
|
|
@@ -1395,7 +1396,7 @@ var jn = "https://a2ui.org/specification/v0_9/basic_catalog.json", Mn = /* @__PU
|
|
|
1395
1396
|
}, null)])
|
|
1396
1397
|
]);
|
|
1397
1398
|
}
|
|
1398
|
-
}),
|
|
1399
|
+
}), M = {
|
|
1399
1400
|
"elm-audio-player": "_elm-audio-player_1bk09_1",
|
|
1400
1401
|
loading: "_loading_1bk09_33",
|
|
1401
1402
|
header: "_header_1bk09_39",
|
|
@@ -1425,18 +1426,18 @@ var jn = "https://a2ui.org/specification/v0_9/basic_catalog.json", Mn = /* @__PU
|
|
|
1425
1426
|
errored: "_errored_1bk09_405",
|
|
1426
1427
|
"error-notice": "_error-notice_1bk09_414",
|
|
1427
1428
|
"error-message": "_error-message_1bk09_424"
|
|
1428
|
-
},
|
|
1429
|
+
}, rr = (e) => {
|
|
1429
1430
|
(!Number.isFinite(e) || e < 0) && (e = 0);
|
|
1430
1431
|
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")}`;
|
|
1431
1432
|
return n > 0 ? `${n}:${a}` : a;
|
|
1432
|
-
},
|
|
1433
|
+
}, ir = (e) => {
|
|
1433
1434
|
let t = e.split(/[?#]/)[0].split("/").filter(Boolean).pop() ?? e;
|
|
1434
1435
|
try {
|
|
1435
1436
|
return decodeURIComponent(t);
|
|
1436
1437
|
} catch {
|
|
1437
1438
|
return t;
|
|
1438
1439
|
}
|
|
1439
|
-
},
|
|
1440
|
+
}, ar = /* @__PURE__ */ i({
|
|
1440
1441
|
name: "ElmAudioPlayer",
|
|
1441
1442
|
props: {
|
|
1442
1443
|
src: {
|
|
@@ -1469,7 +1470,7 @@ var jn = "https://a2ui.org/specification/v0_9/basic_catalog.json", Mn = /* @__PU
|
|
|
1469
1470
|
}
|
|
1470
1471
|
},
|
|
1471
1472
|
setup(n) {
|
|
1472
|
-
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 ?
|
|
1473
|
+
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 ? lt : p.value < .34 ? st : p.value < .67 ? ct : ot), v = t(() => n.title ?? ir(n.src)), y = () => {
|
|
1473
1474
|
if (o != null) return;
|
|
1474
1475
|
let e = () => {
|
|
1475
1476
|
i.value && (f.value = i.value.currentTime), o = requestAnimationFrame(e);
|
|
@@ -1479,37 +1480,37 @@ var jn = "https://a2ui.org/specification/v0_9/basic_catalog.json", Mn = /* @__PU
|
|
|
1479
1480
|
o != null && (cancelAnimationFrame(o), o = null);
|
|
1480
1481
|
};
|
|
1481
1482
|
u(b);
|
|
1482
|
-
let
|
|
1483
|
+
let x = () => {
|
|
1483
1484
|
let e = i.value;
|
|
1484
1485
|
e && (e.paused ? e.play().catch(() => s.value = !1) : e.pause());
|
|
1485
|
-
},
|
|
1486
|
+
}, S = (e) => {
|
|
1486
1487
|
let t = i.value;
|
|
1487
1488
|
if (!t || !Number.isFinite(d.value) || d.value <= 0) return;
|
|
1488
1489
|
let n = Math.max(0, Math.min(d.value, e));
|
|
1489
1490
|
t.currentTime = n, f.value = n;
|
|
1490
|
-
},
|
|
1491
|
+
}, te = (e) => {
|
|
1491
1492
|
let t = a.value;
|
|
1492
1493
|
if (!t) return 0;
|
|
1493
1494
|
let n = t.getBoundingClientRect();
|
|
1494
1495
|
return n.width === 0 ? 0 : Math.max(0, Math.min(1, (e - n.left) / n.width));
|
|
1496
|
+
}, ne = (e) => {
|
|
1497
|
+
e.currentTarget.setPointerCapture(e.pointerId), S(te(e.clientX) * d.value);
|
|
1495
1498
|
}, re = (e) => {
|
|
1496
|
-
|
|
1499
|
+
let t = te(e.clientX);
|
|
1500
|
+
g.value = t, e.currentTarget.hasPointerCapture(e.pointerId) && S(t * d.value);
|
|
1497
1501
|
}, ie = (e) => {
|
|
1498
|
-
|
|
1499
|
-
g.value = t, e.currentTarget.hasPointerCapture(e.pointerId) && x(t * d.value);
|
|
1502
|
+
e.key === "ArrowRight" ? (e.preventDefault(), S(f.value + n.seekStep)) : e.key === "ArrowLeft" ? (e.preventDefault(), S(f.value - n.seekStep)) : e.key === "Home" ? (e.preventDefault(), S(0)) : e.key === "End" && (e.preventDefault(), S(d.value));
|
|
1500
1503
|
}, ae = (e) => {
|
|
1501
|
-
e.key === "ArrowRight" ? (e.preventDefault(), x(f.value + n.seekStep)) : e.key === "ArrowLeft" ? (e.preventDefault(), x(f.value - n.seekStep)) : e.key === "Home" ? (e.preventDefault(), x(0)) : e.key === "End" && (e.preventDefault(), x(d.value));
|
|
1502
|
-
}, oe = (e) => {
|
|
1503
1504
|
let t = i.value, n = Math.max(0, Math.min(1, e));
|
|
1504
1505
|
t && (t.volume = n, t.muted = n === 0), p.value = n, h.value = n === 0;
|
|
1505
|
-
},
|
|
1506
|
+
}, oe = () => {
|
|
1506
1507
|
let e = i.value;
|
|
1507
1508
|
if (!e) return;
|
|
1508
1509
|
let t = !e.muted;
|
|
1509
1510
|
e.muted = t, h.value = t;
|
|
1510
1511
|
};
|
|
1511
1512
|
return () => r("div", {
|
|
1512
|
-
class:
|
|
1513
|
+
class: C(M["elm-audio-player"], s.value && M.playing, c.value && M.loading, l.value && M.errored),
|
|
1513
1514
|
style: {
|
|
1514
1515
|
"--elmethis-scoped-progress": _.value,
|
|
1515
1516
|
"--elmethis-scoped-hover": g.value ?? 0
|
|
@@ -1551,20 +1552,20 @@ var jn = "https://a2ui.org/specification/v0_9/basic_catalog.json", Mn = /* @__PU
|
|
|
1551
1552
|
l.value = !0, c.value = !1;
|
|
1552
1553
|
}
|
|
1553
1554
|
}, null),
|
|
1554
|
-
r("div", { class:
|
|
1555
|
+
r("div", { class: M.header }, [
|
|
1555
1556
|
r("span", {
|
|
1556
|
-
class:
|
|
1557
|
+
class: C(M.artwork, l.value && M["artwork-error"]),
|
|
1557
1558
|
"aria-hidden": "true"
|
|
1558
|
-
}, [r(
|
|
1559
|
-
path: l.value ?
|
|
1559
|
+
}, [r(A, {
|
|
1560
|
+
path: l.value ? we : Xe,
|
|
1560
1561
|
size: "1.25rem"
|
|
1561
1562
|
}, null)]),
|
|
1562
|
-
r("div", { class:
|
|
1563
|
-
class:
|
|
1563
|
+
r("div", { class: M.meta }, [r("span", {
|
|
1564
|
+
class: M.title,
|
|
1564
1565
|
title: v.value
|
|
1565
|
-
}, [v.value]), n.artist && r("span", { class:
|
|
1566
|
+
}, [v.value]), n.artist && r("span", { class: M.artist }, [n.artist])]),
|
|
1566
1567
|
r("span", {
|
|
1567
|
-
class:
|
|
1568
|
+
class: M.equalizer,
|
|
1568
1569
|
"aria-hidden": "true"
|
|
1569
1570
|
}, [
|
|
1570
1571
|
r("i", null, null),
|
|
@@ -1574,104 +1575,104 @@ var jn = "https://a2ui.org/specification/v0_9/basic_catalog.json", Mn = /* @__PU
|
|
|
1574
1575
|
])
|
|
1575
1576
|
]),
|
|
1576
1577
|
l.value ? r("div", {
|
|
1577
|
-
class:
|
|
1578
|
+
class: M["error-notice"],
|
|
1578
1579
|
role: "alert"
|
|
1579
|
-
}, [r(
|
|
1580
|
-
path:
|
|
1580
|
+
}, [r(A, {
|
|
1581
|
+
path: we,
|
|
1581
1582
|
size: "1.25rem"
|
|
1582
|
-
}, null), r("span", { class:
|
|
1583
|
+
}, null), r("span", { class: M["error-message"] }, [n.errorMessage])]) : r(e, null, [r("div", {
|
|
1583
1584
|
ref: a,
|
|
1584
|
-
class:
|
|
1585
|
+
class: M.seekbar,
|
|
1585
1586
|
role: "slider",
|
|
1586
1587
|
tabindex: 0,
|
|
1587
1588
|
"aria-label": "Seek",
|
|
1588
1589
|
"aria-valuemin": 0,
|
|
1589
1590
|
"aria-valuemax": Math.round(d.value) || 0,
|
|
1590
1591
|
"aria-valuenow": Math.round(f.value),
|
|
1591
|
-
"aria-valuetext": `${
|
|
1592
|
-
onPointerdown:
|
|
1593
|
-
onPointermove:
|
|
1592
|
+
"aria-valuetext": `${rr(f.value)} of ${rr(d.value)}`,
|
|
1593
|
+
onPointerdown: ne,
|
|
1594
|
+
onPointermove: re,
|
|
1594
1595
|
onPointerleave: () => g.value = null,
|
|
1595
|
-
onKeydown:
|
|
1596
|
+
onKeydown: ie
|
|
1596
1597
|
}, [
|
|
1597
1598
|
r("div", {
|
|
1598
|
-
class:
|
|
1599
|
+
class: M.track,
|
|
1599
1600
|
"aria-hidden": "true"
|
|
1600
|
-
}, [r("div", { class:
|
|
1601
|
+
}, [r("div", { class: M.fill }, null)]),
|
|
1601
1602
|
r("span", {
|
|
1602
|
-
class:
|
|
1603
|
+
class: M["hover-thumb"],
|
|
1603
1604
|
"aria-hidden": "true"
|
|
1604
1605
|
}, null),
|
|
1605
1606
|
r("span", {
|
|
1606
|
-
class:
|
|
1607
|
+
class: M.thumb,
|
|
1607
1608
|
"aria-hidden": "true"
|
|
1608
1609
|
}, null)
|
|
1609
|
-
]), r("div", { class:
|
|
1610
|
-
r("span", { class:
|
|
1611
|
-
r("div", { class:
|
|
1610
|
+
]), r("div", { class: M.controls }, [
|
|
1611
|
+
r("span", { class: C(M.time, M["time-current"]) }, [rr(f.value)]),
|
|
1612
|
+
r("div", { class: M.transport }, [
|
|
1612
1613
|
r("button", {
|
|
1613
1614
|
type: "button",
|
|
1614
|
-
class:
|
|
1615
|
-
onClick: () =>
|
|
1615
|
+
class: M["icon-button"],
|
|
1616
|
+
onClick: () => S(f.value - n.seekStep),
|
|
1616
1617
|
"aria-label": `Back ${n.seekStep} seconds`
|
|
1617
|
-
}, [r(
|
|
1618
|
-
path:
|
|
1618
|
+
}, [r(A, {
|
|
1619
|
+
path: tt,
|
|
1619
1620
|
size: "1.25rem"
|
|
1620
1621
|
}, null)]),
|
|
1621
1622
|
r("button", {
|
|
1622
1623
|
type: "button",
|
|
1623
|
-
class:
|
|
1624
|
-
onClick:
|
|
1624
|
+
class: M["play-button"],
|
|
1625
|
+
onClick: x,
|
|
1625
1626
|
"aria-label": s.value ? "Pause" : "Play",
|
|
1626
1627
|
"aria-pressed": s.value
|
|
1627
|
-
}, [r(
|
|
1628
|
-
path: s.value ?
|
|
1628
|
+
}, [r(A, {
|
|
1629
|
+
path: s.value ? Qe : $e,
|
|
1629
1630
|
size: "1.5rem"
|
|
1630
1631
|
}, null)]),
|
|
1631
1632
|
r("button", {
|
|
1632
1633
|
type: "button",
|
|
1633
|
-
class:
|
|
1634
|
-
onClick: () =>
|
|
1634
|
+
class: M["icon-button"],
|
|
1635
|
+
onClick: () => S(f.value + n.seekStep),
|
|
1635
1636
|
"aria-label": `Forward ${n.seekStep} seconds`
|
|
1636
|
-
}, [r(
|
|
1637
|
-
path:
|
|
1637
|
+
}, [r(A, {
|
|
1638
|
+
path: Le,
|
|
1638
1639
|
size: "1.25rem"
|
|
1639
1640
|
}, null)])
|
|
1640
1641
|
]),
|
|
1641
|
-
r("div", { class:
|
|
1642
|
+
r("div", { class: M.volume }, [r("button", {
|
|
1642
1643
|
type: "button",
|
|
1643
|
-
class:
|
|
1644
|
-
onClick:
|
|
1644
|
+
class: M["icon-button"],
|
|
1645
|
+
onClick: oe,
|
|
1645
1646
|
"aria-label": h.value ? "Unmute" : "Mute",
|
|
1646
1647
|
"aria-pressed": h.value
|
|
1647
|
-
}, [r(
|
|
1648
|
+
}, [r(A, {
|
|
1648
1649
|
path: ee.value,
|
|
1649
1650
|
size: "1.25rem"
|
|
1650
1651
|
}, null)]), r("input", {
|
|
1651
|
-
class:
|
|
1652
|
+
class: M["volume-slider"],
|
|
1652
1653
|
type: "range",
|
|
1653
1654
|
min: 0,
|
|
1654
1655
|
max: 1,
|
|
1655
1656
|
step: .01,
|
|
1656
1657
|
value: h.value ? 0 : p.value,
|
|
1657
1658
|
"aria-label": "Volume",
|
|
1658
|
-
onInput: (e) =>
|
|
1659
|
+
onInput: (e) => ae(e.target.valueAsNumber),
|
|
1659
1660
|
style: { "--elmethis-scoped-volume": h.value ? 0 : p.value }
|
|
1660
1661
|
}, null)]),
|
|
1661
|
-
r("span", { class:
|
|
1662
|
+
r("span", { class: C(M.time, M["time-total"]) }, [rr(d.value)])
|
|
1662
1663
|
])])
|
|
1663
1664
|
]);
|
|
1664
1665
|
}
|
|
1665
|
-
}),
|
|
1666
|
+
}), or = {
|
|
1666
1667
|
"elm-block-image": "_elm-block-image_glkb6_1",
|
|
1667
1668
|
"image-container": "_image-container_glkb6_11",
|
|
1668
1669
|
image: "_image_glkb6_11",
|
|
1669
1670
|
"caption-box": "_caption-box_glkb6_33",
|
|
1670
1671
|
"caption-icon": "_caption-icon_glkb6_41"
|
|
1671
|
-
},
|
|
1672
|
+
}, sr = {
|
|
1672
1673
|
"elm-modal": "_elm-modal_veywy_1",
|
|
1673
1674
|
shown: "_shown_veywy_18"
|
|
1674
|
-
},
|
|
1675
|
+
}, cr = /* @__PURE__ */ i({
|
|
1675
1676
|
name: "ElmModal",
|
|
1676
1677
|
inheritAttrs: !1,
|
|
1677
1678
|
props: {
|
|
@@ -1711,13 +1712,13 @@ var jn = "https://a2ui.org/specification/v0_9/basic_catalog.json", Mn = /* @__PU
|
|
|
1711
1712
|
let { class: o, style: s, ...u } = t;
|
|
1712
1713
|
return r("dialog", c({
|
|
1713
1714
|
ref: i,
|
|
1714
|
-
class:
|
|
1715
|
+
class: C(sr["elm-modal"], a.value && sr.shown, o),
|
|
1715
1716
|
onClick: l,
|
|
1716
1717
|
style: [{ "--elmethis-scoped-modal-delay": `${e.delay}ms` }, s]
|
|
1717
1718
|
}, { closedby: "none" }, u), [r("div", { onClick: (e) => e.stopPropagation() }, [n.default?.()])]);
|
|
1718
1719
|
};
|
|
1719
1720
|
}
|
|
1720
|
-
}),
|
|
1721
|
+
}), lr = (e = {}) => {
|
|
1721
1722
|
let t = m(!1), n = () => {
|
|
1722
1723
|
t.value = !0;
|
|
1723
1724
|
}, a = () => {
|
|
@@ -1727,7 +1728,7 @@ var jn = "https://a2ui.org/specification/v0_9/basic_catalog.json", Mn = /* @__PU
|
|
|
1727
1728
|
Modal: /* @__PURE__ */ i({
|
|
1728
1729
|
name: "Modal",
|
|
1729
1730
|
setup(n, { slots: i }) {
|
|
1730
|
-
return () => r(
|
|
1731
|
+
return () => r(cr, {
|
|
1731
1732
|
isOpen: t.value,
|
|
1732
1733
|
delay: e.delay,
|
|
1733
1734
|
onClose: a
|
|
@@ -1741,7 +1742,7 @@ var jn = "https://a2ui.org/specification/v0_9/basic_catalog.json", Mn = /* @__PU
|
|
|
1741
1742
|
t.value = !t.value;
|
|
1742
1743
|
}
|
|
1743
1744
|
};
|
|
1744
|
-
},
|
|
1745
|
+
}, ur = /* @__PURE__ */ i({
|
|
1745
1746
|
name: "ElmBlockImage",
|
|
1746
1747
|
props: {
|
|
1747
1748
|
src: {
|
|
@@ -1778,10 +1779,10 @@ var jn = "https://a2ui.org/specification/v0_9/basic_catalog.json", Mn = /* @__PU
|
|
|
1778
1779
|
}
|
|
1779
1780
|
},
|
|
1780
1781
|
setup(e) {
|
|
1781
|
-
let { Modal: t, isOpen: n, show: i, hide: o } =
|
|
1782
|
+
let { Modal: t, isOpen: n, show: i, hide: o } = lr(), s = () => {
|
|
1782
1783
|
(e.enableModal ?? !0) && i();
|
|
1783
1784
|
}, l = () => e.enableModal ?? !0, u = (t) => r("img", c({
|
|
1784
|
-
class:
|
|
1785
|
+
class: or.image,
|
|
1785
1786
|
src: e.src,
|
|
1786
1787
|
alt: e.alt ?? e.caption ?? "Image",
|
|
1787
1788
|
srcset: t ? void 0 : e.srcSet,
|
|
@@ -1795,30 +1796,30 @@ var jn = "https://a2ui.org/specification/v0_9/basic_catalog.json", Mn = /* @__PU
|
|
|
1795
1796
|
"--elmethis-scoped-aspect-ratio": e.width && e.height ? `${e.width} / ${e.height}` : "auto"
|
|
1796
1797
|
}
|
|
1797
1798
|
}, { fetchpriority: t ? "low" : "auto" }), null);
|
|
1798
|
-
return () => r("figure", { class:
|
|
1799
|
+
return () => r("figure", { class: C(or["elm-block-image"]) }, [
|
|
1799
1800
|
r("div", {
|
|
1800
|
-
class:
|
|
1801
|
+
class: or["image-container"],
|
|
1801
1802
|
onClick: s
|
|
1802
1803
|
}, [u(!1)]),
|
|
1803
|
-
e.caption && r("figcaption", { class:
|
|
1804
|
-
path:
|
|
1804
|
+
e.caption && r("figcaption", { class: or["caption-box"] }, [r("span", { class: or["caption-icon"] }, [r(A, {
|
|
1805
|
+
path: Ye,
|
|
1805
1806
|
size: "1.25rem"
|
|
1806
1807
|
}, null)]), r(E, { size: "1rem" }, { default: () => [e.caption] })]),
|
|
1807
1808
|
a(t, null, { default: () => n.value ? u(!0) : null })
|
|
1808
1809
|
]);
|
|
1809
1810
|
}
|
|
1810
|
-
}),
|
|
1811
|
+
}), dr = {
|
|
1811
1812
|
"elm-file": "_elm-file_1we6j_1",
|
|
1812
1813
|
"file-size": "_file-size_1we6j_12",
|
|
1813
1814
|
"download-icon": "_download-icon_1we6j_17"
|
|
1814
1815
|
};
|
|
1815
1816
|
//#endregion
|
|
1816
1817
|
//#region src/components/media/elm-file.tsx
|
|
1817
|
-
function
|
|
1818
|
+
function fr(e) {
|
|
1818
1819
|
let t = e.split(/[?#]/)[0].split("/").filter(Boolean);
|
|
1819
1820
|
return t.length > 0 ? t[t.length - 1] : null;
|
|
1820
1821
|
}
|
|
1821
|
-
var
|
|
1822
|
+
var pr = /* @__PURE__ */ i({
|
|
1822
1823
|
name: "ElmFile",
|
|
1823
1824
|
props: {
|
|
1824
1825
|
name: {
|
|
@@ -1841,32 +1842,32 @@ var mr = /* @__PURE__ */ i({
|
|
|
1841
1842
|
let n = await fetch(e.src);
|
|
1842
1843
|
if (!n.ok) throw Error("Failed to download file");
|
|
1843
1844
|
let r = await n.blob();
|
|
1844
|
-
t = document.createElement("a"), t.href = URL.createObjectURL(r), t.download = e.name ??
|
|
1845
|
+
t = document.createElement("a"), t.href = URL.createObjectURL(r), t.download = e.name ?? fr(e.src) ?? "file", t.click();
|
|
1845
1846
|
} catch (e) {
|
|
1846
1847
|
console.error("ERROR:", e);
|
|
1847
1848
|
} finally {
|
|
1848
1849
|
t && URL.revokeObjectURL(t.href);
|
|
1849
1850
|
}
|
|
1850
1851
|
};
|
|
1851
|
-
return () => r("div", { class:
|
|
1852
|
-
r("div", null, [r(
|
|
1853
|
-
path:
|
|
1852
|
+
return () => r("div", { class: C(dr["elm-file"]) }, [
|
|
1853
|
+
r("div", null, [r(A, {
|
|
1854
|
+
path: Re,
|
|
1854
1855
|
size: "1.25rem"
|
|
1855
1856
|
}, null)]),
|
|
1856
|
-
r("div", null, [r(E, null, { default: () => [e.name ??
|
|
1857
|
-
r("div", { class:
|
|
1857
|
+
r("div", null, [r(E, null, { default: () => [e.name ?? fr(e.src)] })]),
|
|
1858
|
+
r("div", { class: dr["file-size"] }, [r(E, null, { default: () => [e.filesize] })]),
|
|
1858
1859
|
r("div", {
|
|
1859
|
-
class:
|
|
1860
|
+
class: dr["download-icon"],
|
|
1860
1861
|
onClick: () => {
|
|
1861
1862
|
t();
|
|
1862
1863
|
}
|
|
1863
|
-
}, [r(
|
|
1864
|
-
path:
|
|
1864
|
+
}, [r(A, {
|
|
1865
|
+
path: Pe,
|
|
1865
1866
|
size: "1.25rem"
|
|
1866
1867
|
}, null)])
|
|
1867
1868
|
]);
|
|
1868
1869
|
}
|
|
1869
|
-
}),
|
|
1870
|
+
}), N = {
|
|
1870
1871
|
"elm-bookmark": "_elm-bookmark_zkn8n_1",
|
|
1871
1872
|
container: "_container_zkn8n_23",
|
|
1872
1873
|
image: "_image_zkn8n_35",
|
|
@@ -1874,10 +1875,10 @@ var mr = /* @__PURE__ */ i({
|
|
|
1874
1875
|
title: "_title_zkn8n_69",
|
|
1875
1876
|
description: "_description_zkn8n_73",
|
|
1876
1877
|
link: "_link_zkn8n_78"
|
|
1877
|
-
},
|
|
1878
|
+
}, mr = {
|
|
1878
1879
|
visibility: "hidden",
|
|
1879
1880
|
width: "0"
|
|
1880
|
-
},
|
|
1881
|
+
}, hr = /* @__PURE__ */ i({
|
|
1881
1882
|
name: "ElmBookmark",
|
|
1882
1883
|
props: {
|
|
1883
1884
|
title: {
|
|
@@ -1903,27 +1904,27 @@ var mr = /* @__PURE__ */ i({
|
|
|
1903
1904
|
},
|
|
1904
1905
|
setup(e) {
|
|
1905
1906
|
let t = m(!1);
|
|
1906
|
-
return () => r("div", { class:
|
|
1907
|
-
class:
|
|
1907
|
+
return () => r("div", { class: C(N["elm-bookmark"]) }, [r("a", {
|
|
1908
|
+
class: N.container,
|
|
1908
1909
|
href: e.url,
|
|
1909
1910
|
target: "_blank",
|
|
1910
1911
|
rel: "noopener noreferrer"
|
|
1911
1912
|
}, [r("img", {
|
|
1912
|
-
class:
|
|
1913
|
+
class: N.image,
|
|
1913
1914
|
src: e.image,
|
|
1914
1915
|
alt: "OGP Image",
|
|
1915
1916
|
onError: () => t.value = !0,
|
|
1916
|
-
style: t.value || e.image == null ?
|
|
1917
|
-
}, null), r("div", { class:
|
|
1918
|
-
r("div", { class:
|
|
1919
|
-
r("div", { class:
|
|
1920
|
-
r("div", { class:
|
|
1921
|
-
path:
|
|
1917
|
+
style: t.value || e.image == null ? mr : {}
|
|
1918
|
+
}, null), r("div", { class: N.content }, [
|
|
1919
|
+
r("div", { class: N.title }, [r(E, { bold: !0 }, { default: () => [e.title] })]),
|
|
1920
|
+
r("div", { class: N.description }, [r(E, { size: "0.75rem" }, { default: () => [e.description] })]),
|
|
1921
|
+
r("div", { class: N.link }, [e.favicon ? r(dn, { src: e.favicon }, null) : r(A, {
|
|
1922
|
+
path: qe,
|
|
1922
1923
|
color: "var(--elmethis-color-accent-info)"
|
|
1923
1924
|
}, null), r(E, { size: "0.75rem" }, { default: () => [e.url] })])
|
|
1924
1925
|
])])]);
|
|
1925
1926
|
}
|
|
1926
|
-
}),
|
|
1927
|
+
}), P = {
|
|
1927
1928
|
"elm-toggle": "_elm-toggle_18cr5_1",
|
|
1928
1929
|
open: "_open_18cr5_8",
|
|
1929
1930
|
summary: "_summary_18cr5_13",
|
|
@@ -1933,7 +1934,7 @@ var mr = /* @__PURE__ */ i({
|
|
|
1933
1934
|
cross: "_cross_18cr5_62",
|
|
1934
1935
|
border: "_border_18cr5_76",
|
|
1935
1936
|
content: "_content_18cr5_84"
|
|
1936
|
-
},
|
|
1937
|
+
}, gr = /* @__PURE__ */ i({
|
|
1937
1938
|
name: "ElmToggle",
|
|
1938
1939
|
props: {
|
|
1939
1940
|
summary: {
|
|
@@ -1955,36 +1956,36 @@ var mr = /* @__PURE__ */ i({
|
|
|
1955
1956
|
},
|
|
1956
1957
|
emits: ["update:isOpen"],
|
|
1957
1958
|
setup(e, { emit: t, slots: n }) {
|
|
1958
|
-
let i =
|
|
1959
|
+
let i = Yt({
|
|
1959
1960
|
props: e,
|
|
1960
1961
|
key: "isOpen",
|
|
1961
1962
|
emit: t,
|
|
1962
1963
|
defaultValue: e.defaultIsOpen ?? !1
|
|
1963
1964
|
});
|
|
1964
|
-
return () => r("div", { class:
|
|
1965
|
+
return () => r("div", { class: C(P["elm-toggle"], i.value && P.open) }, [
|
|
1965
1966
|
r("div", {
|
|
1966
|
-
class:
|
|
1967
|
+
class: P.summary,
|
|
1967
1968
|
onClick: (e) => {
|
|
1968
1969
|
e.preventDefault(), i.value = !i.value;
|
|
1969
1970
|
}
|
|
1970
1971
|
}, [
|
|
1971
|
-
r("div", { class:
|
|
1972
|
-
path:
|
|
1972
|
+
r("div", { class: P["summary-left"] }, [r("span", { class: C(P.chevron, i.value && P.open) }, [r(A, {
|
|
1973
|
+
path: Ae,
|
|
1973
1974
|
color: e.monochrome ? "var(--elmethis-color-neutral-weak)" : "var(--elmethis-color-primary)",
|
|
1974
1975
|
size: "1rem"
|
|
1975
1976
|
}, null)]), r("div", null, [e.summary == null ? n.summary?.() : r(E, null, { default: () => [e.summary] })])]),
|
|
1976
|
-
r("hr", { class:
|
|
1977
|
-
r("span", { class:
|
|
1978
|
-
path:
|
|
1977
|
+
r("hr", { class: P.divider }, null),
|
|
1978
|
+
r("span", { class: C(P.cross, i.value && P.open) }, [r(A, {
|
|
1979
|
+
path: et,
|
|
1979
1980
|
size: "1rem",
|
|
1980
1981
|
color: e.monochrome ? "var(--elmethis-color-neutral-weak)" : i.value ? "var(--elmethis-color-accent-error)" : "var(--elmethis-color-primary)"
|
|
1981
1982
|
}, null)])
|
|
1982
1983
|
]),
|
|
1983
|
-
r("div", { class:
|
|
1984
|
-
r("div", { class:
|
|
1984
|
+
r("div", { class: P.border }, null),
|
|
1985
|
+
r("div", { class: C(P.content, i.value && P.open) }, [n.default?.()])
|
|
1985
1986
|
]);
|
|
1986
1987
|
}
|
|
1987
|
-
}),
|
|
1988
|
+
}), _r = {
|
|
1988
1989
|
"elm-block-quote": "_elm-block-quote_1ez87_1",
|
|
1989
1990
|
body: "_body_1ez87_19",
|
|
1990
1991
|
icon: "_icon_1ez87_28",
|
|
@@ -1993,10 +1994,10 @@ var mr = /* @__PURE__ */ i({
|
|
|
1993
1994
|
}, vr = /* @__PURE__ */ i({
|
|
1994
1995
|
name: "ElmBlockQuote",
|
|
1995
1996
|
setup(e, { slots: t }) {
|
|
1996
|
-
return () => r("blockquote", { class:
|
|
1997
|
-
r("div", { class:
|
|
1998
|
-
r("div", { class:
|
|
1999
|
-
r("div", { class:
|
|
1997
|
+
return () => r("blockquote", { class: C(_r["elm-block-quote"], T.text) }, [
|
|
1998
|
+
r("div", { class: C(_r.icon, _r["icon-top-left"]) }, [r(A, { path: He }, null)]),
|
|
1999
|
+
r("div", { class: _r.body }, [t.default?.()]),
|
|
2000
|
+
r("div", { class: C(_r.icon, _r["icon-bottom-right"]) }, [r(A, { path: Ve }, null)])
|
|
2000
2001
|
]);
|
|
2001
2002
|
}
|
|
2002
2003
|
}), yr = {
|
|
@@ -2010,11 +2011,11 @@ var mr = /* @__PURE__ */ i({
|
|
|
2010
2011
|
warning: "_warning_1nsmp_59",
|
|
2011
2012
|
caution: "_caution_1nsmp_63"
|
|
2012
2013
|
}, br = Object.freeze({
|
|
2013
|
-
note:
|
|
2014
|
-
tip:
|
|
2015
|
-
important:
|
|
2016
|
-
warning:
|
|
2017
|
-
caution:
|
|
2014
|
+
note: Ge,
|
|
2015
|
+
tip: Ke,
|
|
2016
|
+
important: nt,
|
|
2017
|
+
warning: Ce,
|
|
2018
|
+
caution: Te
|
|
2018
2019
|
}), xr = /* @__PURE__ */ i({
|
|
2019
2020
|
name: "ElmCallout",
|
|
2020
2021
|
props: { type: {
|
|
@@ -2022,13 +2023,13 @@ var mr = /* @__PURE__ */ i({
|
|
|
2022
2023
|
default: "note"
|
|
2023
2024
|
} },
|
|
2024
2025
|
setup(e, { slots: t }) {
|
|
2025
|
-
return () => r("aside", { class:
|
|
2026
|
+
return () => r("aside", { class: C(yr["elm-callout"], yr[e.type]) }, [r("div", { class: yr.header }, [r(A, {
|
|
2026
2027
|
class: yr.icon,
|
|
2027
2028
|
path: br[e.type],
|
|
2028
2029
|
size: "1.25rem"
|
|
2029
2030
|
}, null), r("span", null, [e.type])]), r("div", { class: yr.content }, [t.default?.()])]);
|
|
2030
2031
|
}
|
|
2031
|
-
}),
|
|
2032
|
+
}), Sr = {
|
|
2032
2033
|
"elm-notion-callout": "_elm-notion-callout_15idh_1",
|
|
2033
2034
|
icon: "_icon_15idh_9",
|
|
2034
2035
|
content: "_content_15idh_15",
|
|
@@ -2044,7 +2045,7 @@ var mr = /* @__PURE__ */ i({
|
|
|
2044
2045
|
blue: "_blue_15idh_74",
|
|
2045
2046
|
purple: "_purple_15idh_79",
|
|
2046
2047
|
magenta: "_magenta_15idh_86"
|
|
2047
|
-
},
|
|
2048
|
+
}, Cr = /* @__PURE__ */ i({
|
|
2048
2049
|
name: "ElmNotionCallout",
|
|
2049
2050
|
inheritAttrs: !1,
|
|
2050
2051
|
props: {
|
|
@@ -2064,38 +2065,38 @@ var mr = /* @__PURE__ */ i({
|
|
|
2064
2065
|
setup(e, { slots: t, attrs: n }) {
|
|
2065
2066
|
return () => {
|
|
2066
2067
|
let { class: i, ...a } = n;
|
|
2067
|
-
return r("div", c({ class:
|
|
2068
|
-
class:
|
|
2068
|
+
return r("div", c({ class: C(Sr["elm-notion-callout"], Sr[e.color], Sr[e.variant], i) }, a), [e.icon !== void 0 && (e.icon.kind === "emoji" ? r("span", {
|
|
2069
|
+
class: Sr.icon,
|
|
2069
2070
|
role: "img"
|
|
2070
|
-
}, [e.icon.emoji]) : r(
|
|
2071
|
-
class:
|
|
2071
|
+
}, [e.icon.emoji]) : r(dn, {
|
|
2072
|
+
class: Sr.icon,
|
|
2072
2073
|
src: e.icon.src,
|
|
2073
2074
|
alt: e.icon.alt,
|
|
2074
2075
|
size: 20
|
|
2075
|
-
}, null)), r("div", { class:
|
|
2076
|
+
}, null)), r("div", { class: Sr.content }, [t.default?.()])]);
|
|
2076
2077
|
};
|
|
2077
2078
|
}
|
|
2078
|
-
}),
|
|
2079
|
+
}), wr = { "elm-divider": "_elm-divider_9m6gb_1" }, Tr = /* @__PURE__ */ i({
|
|
2079
2080
|
name: "ElmDivider",
|
|
2080
2081
|
inheritAttrs: !1,
|
|
2081
2082
|
setup(e, { attrs: t }) {
|
|
2082
2083
|
return () => {
|
|
2083
2084
|
let { class: e, ...n } = t;
|
|
2084
|
-
return r("hr", c({ class:
|
|
2085
|
+
return r("hr", c({ class: C(wr["elm-divider"], e) }, n), null);
|
|
2085
2086
|
};
|
|
2086
2087
|
}
|
|
2087
|
-
}),
|
|
2088
|
+
}), Er = {
|
|
2088
2089
|
"elm-list": "_elm-list_brpi5_1",
|
|
2089
2090
|
bulleted: "_bulleted_brpi5_8",
|
|
2090
2091
|
numbered: "_numbered_brpi5_57"
|
|
2091
|
-
},
|
|
2092
|
+
}, Dr = /* @__PURE__ */ i({
|
|
2092
2093
|
name: "ElmList",
|
|
2093
2094
|
props: { listStyle: {
|
|
2094
2095
|
type: String,
|
|
2095
2096
|
default: "unordered"
|
|
2096
2097
|
} },
|
|
2097
2098
|
setup(e, { slots: t }) {
|
|
2098
|
-
return () => e.listStyle === "ordered" ? r("ol", { class:
|
|
2099
|
+
return () => e.listStyle === "ordered" ? r("ol", { class: C(T.text, Er["elm-list"], Er.numbered) }, [t.default?.()]) : r("ul", { class: C(T.text, Er["elm-list"], Er.bulleted) }, [t.default?.()]);
|
|
2099
2100
|
}
|
|
2100
2101
|
}), F = {
|
|
2101
2102
|
"elm-table-frame": "_elm-table-frame_zk7x1_3",
|
|
@@ -2105,7 +2106,7 @@ var mr = /* @__PURE__ */ i({
|
|
|
2105
2106
|
"caption-inner": "_caption-inner_zk7x1_77",
|
|
2106
2107
|
spacing: "_spacing_zk7x1_84",
|
|
2107
2108
|
"sticky-row-header": "_sticky-row-header_zk7x1_95"
|
|
2108
|
-
},
|
|
2109
|
+
}, Or = Symbol("elm.table.HasRowHeader"), kr = Symbol("elm.table.Section"), Ar = /* @__PURE__ */ i({
|
|
2109
2110
|
name: "ElmTable",
|
|
2110
2111
|
inheritAttrs: !1,
|
|
2111
2112
|
props: {
|
|
@@ -2119,7 +2120,7 @@ var mr = /* @__PURE__ */ i({
|
|
|
2119
2120
|
}
|
|
2120
2121
|
},
|
|
2121
2122
|
setup(e, { attrs: n, slots: i }) {
|
|
2122
|
-
p(
|
|
2123
|
+
p(Or, t(() => e.hasRowHeader));
|
|
2123
2124
|
let a = m(null), o = m(!1), s = m(!0), l = m(!0), f = () => {
|
|
2124
2125
|
let e = a.value;
|
|
2125
2126
|
if (e == null) return;
|
|
@@ -2143,23 +2144,23 @@ var mr = /* @__PURE__ */ i({
|
|
|
2143
2144
|
tabindex: o.value ? 0 : void 0,
|
|
2144
2145
|
role: o.value && e.caption != null ? "region" : void 0,
|
|
2145
2146
|
"aria-label": o.value && e.caption != null ? e.caption : void 0
|
|
2146
|
-
}, [r("table", c({ class:
|
|
2147
|
+
}, [r("table", c({ class: C(F["elm-table"], T.text, e.hasRowHeader && F["sticky-row-header"], t) }, u), [e.caption && r("caption", null, [r("span", { class: F.caption }, [
|
|
2147
2148
|
r("span", { class: F.spacing }, null),
|
|
2148
2149
|
r("span", { class: F["caption-inner"] }, [r(E, null, { default: () => [e.caption] })]),
|
|
2149
2150
|
r("span", { class: F.spacing }, null)
|
|
2150
2151
|
])]), i.default?.()])])]);
|
|
2151
2152
|
};
|
|
2152
2153
|
}
|
|
2153
|
-
}),
|
|
2154
|
+
}), jr = /* @__PURE__ */ i({
|
|
2154
2155
|
name: "ElmTableBody",
|
|
2155
2156
|
setup(e, { slots: t }) {
|
|
2156
|
-
return p(
|
|
2157
|
+
return p(kr, "body"), () => r("tbody", null, [t.default?.()]);
|
|
2157
2158
|
}
|
|
2158
|
-
}),
|
|
2159
|
+
}), Mr = {
|
|
2159
2160
|
"elm-table-cell": "_elm-table-cell_1a21f_1",
|
|
2160
2161
|
td: "_td_1a21f_20",
|
|
2161
2162
|
th: "_th_1a21f_25"
|
|
2162
|
-
},
|
|
2163
|
+
}, Nr = /* @__PURE__ */ i({
|
|
2163
2164
|
name: "ElmTableCell",
|
|
2164
2165
|
inheritAttrs: !1,
|
|
2165
2166
|
props: {
|
|
@@ -2181,35 +2182,35 @@ var mr = /* @__PURE__ */ i({
|
|
|
2181
2182
|
}
|
|
2182
2183
|
},
|
|
2183
2184
|
setup(e, { attrs: t, slots: n }) {
|
|
2184
|
-
let i = o(
|
|
2185
|
+
let i = o(kr, "body"), a = o(Or, m(!1));
|
|
2185
2186
|
return () => {
|
|
2186
2187
|
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;
|
|
2187
2188
|
return f ? r("th", c({
|
|
2188
|
-
class:
|
|
2189
|
+
class: C(Mr["elm-table-cell"], Mr.th, o),
|
|
2189
2190
|
style: s,
|
|
2190
2191
|
scope: p
|
|
2191
2192
|
}, l), [m]) : r("td", c({
|
|
2192
|
-
class:
|
|
2193
|
+
class: C(Mr["elm-table-cell"], Mr.td, o),
|
|
2193
2194
|
style: s
|
|
2194
2195
|
}, l), [m]);
|
|
2195
2196
|
};
|
|
2196
2197
|
}
|
|
2197
|
-
}),
|
|
2198
|
+
}), Pr = { "elm-table-header": "_elm-table-header_jhft7_1" }, Fr = /* @__PURE__ */ i({
|
|
2198
2199
|
name: "ElmTableHeader",
|
|
2199
2200
|
setup(e, { slots: t }) {
|
|
2200
|
-
return p(
|
|
2201
|
+
return p(kr, "head"), () => r("thead", { class: C(Pr["elm-table-header"]) }, [t.default?.()]);
|
|
2201
2202
|
}
|
|
2202
|
-
}),
|
|
2203
|
+
}), Ir = { "elm-table-row": "_elm-table-row_mkm0q_1" }, Lr = /* @__PURE__ */ i({
|
|
2203
2204
|
name: "ElmTableRow",
|
|
2204
2205
|
setup(e, { slots: t }) {
|
|
2205
|
-
return () => r("tr", { class:
|
|
2206
|
+
return () => r("tr", { class: C(Ir["elm-table-row"]) }, [t.default?.()]);
|
|
2206
2207
|
}
|
|
2207
|
-
}),
|
|
2208
|
+
}), Rr = {
|
|
2208
2209
|
"elm-unsupported-block": "_elm-unsupported-block_8bkk1_1",
|
|
2209
2210
|
message: "_message_8bkk1_13",
|
|
2210
2211
|
icon: "_icon_8bkk1_20",
|
|
2211
2212
|
details: "_details_8bkk1_24"
|
|
2212
|
-
},
|
|
2213
|
+
}, zr = /* @__PURE__ */ i({
|
|
2213
2214
|
name: "ElmUnsupportedBlock",
|
|
2214
2215
|
inheritAttrs: !1,
|
|
2215
2216
|
props: { details: {
|
|
@@ -2219,12 +2220,12 @@ var mr = /* @__PURE__ */ i({
|
|
|
2219
2220
|
setup(e, { attrs: t }) {
|
|
2220
2221
|
return () => {
|
|
2221
2222
|
let { class: i, ...a } = t;
|
|
2222
|
-
return r("div", c({ class:
|
|
2223
|
+
return r("div", c({ class: C(Rr["elm-unsupported-block"], i) }, a), [r("div", { class: Rr.message }, [r("svg", {
|
|
2223
2224
|
viewBox: "0 0 24 24",
|
|
2224
2225
|
width: "1.25rem",
|
|
2225
2226
|
height: "1.25rem",
|
|
2226
|
-
class:
|
|
2227
|
-
}, [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:
|
|
2227
|
+
class: Rr.icon
|
|
2228
|
+
}, [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: Rr.details }, [r(E, null, { default: () => [e.details] })])]);
|
|
2228
2229
|
};
|
|
2229
2230
|
}
|
|
2230
2231
|
});
|
|
@@ -2233,10 +2234,10 @@ var mr = /* @__PURE__ */ i({
|
|
|
2233
2234
|
function I(e) {
|
|
2234
2235
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !s(e);
|
|
2235
2236
|
}
|
|
2236
|
-
function
|
|
2237
|
+
function Br(e) {
|
|
2237
2238
|
return Array.isArray(e) ? e.filter((e) => typeof e == "string") : [];
|
|
2238
2239
|
}
|
|
2239
|
-
var
|
|
2240
|
+
var Vr = {
|
|
2240
2241
|
boxSizing: "content-box",
|
|
2241
2242
|
paddingBlock: "0.25rem",
|
|
2242
2243
|
width: "100%",
|
|
@@ -2245,7 +2246,7 @@ var Br = {
|
|
|
2245
2246
|
gap: "0.25rem",
|
|
2246
2247
|
justifyContent: "space-around",
|
|
2247
2248
|
overflowX: "auto"
|
|
2248
|
-
},
|
|
2249
|
+
}, Hr = wn.extend(O(Nt, ({ props: e, resolve: t }) => {
|
|
2249
2250
|
let n = t(e.text), i = e.decoration ?? [];
|
|
2250
2251
|
return i.includes("katex") ? r(In, {
|
|
2251
2252
|
expression: n,
|
|
@@ -2259,68 +2260,68 @@ var Br = {
|
|
|
2259
2260
|
color: e.color,
|
|
2260
2261
|
ruby: e.ruby
|
|
2261
2262
|
}, I(n) ? n : { default: () => [n] });
|
|
2262
|
-
}), O(
|
|
2263
|
+
}), O(Dt, ({ props: e, resolve: t }) => {
|
|
2263
2264
|
let n;
|
|
2264
2265
|
return r(E, {
|
|
2265
2266
|
href: e.href,
|
|
2266
2267
|
favicon: e.favicon
|
|
2267
2268
|
}, I(n = t(e.text)) ? n : { default: () => [n] });
|
|
2268
|
-
}), O(
|
|
2269
|
+
}), O(wt, ({ props: e, resolve: t }) => r(dn, {
|
|
2269
2270
|
src: t(e.src),
|
|
2270
2271
|
alt: e.alt
|
|
2271
|
-
}, null)), O(
|
|
2272
|
+
}, null)), O(gt, ({ props: e, childRefs: t, renderChild: n }) => r("div", { style: {
|
|
2272
2273
|
display: "flex",
|
|
2273
2274
|
flexDirection: "column",
|
|
2274
|
-
justifyContent:
|
|
2275
|
-
alignItems:
|
|
2275
|
+
justifyContent: yn[e.justify ?? "start"],
|
|
2276
|
+
alignItems: bn[e.align ?? "stretch"],
|
|
2276
2277
|
flex: e.widthRatio == null ? void 0 : String(e.widthRatio),
|
|
2277
2278
|
boxSizing: "border-box",
|
|
2278
2279
|
padding: "0.125rem",
|
|
2279
2280
|
gap: "var(--elmethis-stack-gap)"
|
|
2280
|
-
} }, [t(e.children).map(({ id: e, path: t }, i) => r("span", { key: `${e}:${i}` }, [n(e, t, i)]))])), O(
|
|
2281
|
+
} }, [t(e.children).map(({ id: e, path: t }, i) => r("span", { key: `${e}:${i}` }, [n(e, t, i)]))])), O(_t, ({ props: t, childRefs: n, renderChild: i }) => r("div", { style: Vr }, [n(t.children).map(({ id: t, path: n }, a) => r(e, { key: `${t}:${a}` }, [i(t, n, a)]))])), O(St, ({ props: t, childRefs: n, renderChild: i }) => {
|
|
2281
2282
|
let a;
|
|
2282
|
-
return r(
|
|
2283
|
-
}), O(
|
|
2283
|
+
return r(cn, { 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] });
|
|
2284
|
+
}), O(Mt, ({ props: e, childRefs: t, renderChild: n }) => {
|
|
2284
2285
|
let i;
|
|
2285
|
-
return r(
|
|
2286
|
+
return r(pn, {
|
|
2286
2287
|
color: e.color,
|
|
2287
2288
|
backgroundColor: e.backgroundColor
|
|
2288
2289
|
}, I(i = t(e.children).map(({ id: e, path: t }, i) => r("span", { key: `${e}:${i}` }, [n(e, t, i)]))) ? i : { default: () => [i] });
|
|
2289
|
-
}), O(
|
|
2290
|
+
}), O(Ot, ({ props: e, childRefs: t, renderChild: n }) => {
|
|
2290
2291
|
let i;
|
|
2291
|
-
return r(
|
|
2292
|
-
}), O(
|
|
2292
|
+
return r(Dr, { 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] });
|
|
2293
|
+
}), O(kt, ({ 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(ft, ({ props: t, childRefs: n, renderChild: i }) => {
|
|
2293
2294
|
let a;
|
|
2294
2295
|
return r(vr, { 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] });
|
|
2295
|
-
}), O(
|
|
2296
|
+
}), O(mt, ({ props: t, childRefs: n, renderChild: i }) => {
|
|
2296
2297
|
let a;
|
|
2297
2298
|
return r(xr, { 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] });
|
|
2298
|
-
}), O(
|
|
2299
|
+
}), O(jt, ({ props: t, childRefs: n, renderChild: i }) => {
|
|
2299
2300
|
let a;
|
|
2300
|
-
return r(
|
|
2301
|
+
return r(Cr, {
|
|
2301
2302
|
icon: t.icon,
|
|
2302
2303
|
color: t.color,
|
|
2303
2304
|
variant: t.variant
|
|
2304
2305
|
}, I(a = n(t.children).map(({ id: t, path: n }, a) => r(e, { key: `${t}:${a}` }, [i(t, n, a)]))) ? a : { default: () => [a] });
|
|
2305
|
-
}), O(
|
|
2306
|
+
}), O(bt, () => r(Tr, null, null)), O(Lt, ({ props: t, childRefs: n, renderChild: i }) => r(gr, null, {
|
|
2306
2307
|
summary: () => n(t.summary).map(({ id: e, path: t }, n) => r("span", { key: `${e}:${n}` }, [i(e, t, n)])),
|
|
2307
2308
|
default: () => n(t.children).map(({ id: t, path: n }, a) => r(e, { key: `${t}:${a}` }, [i(t, n, a)]))
|
|
2308
|
-
})), O(
|
|
2309
|
+
})), O(pt, ({ props: e, resolve: t }) => r(hr, {
|
|
2309
2310
|
url: t(e.url),
|
|
2310
2311
|
title: e.title ? t(e.title) : void 0,
|
|
2311
2312
|
description: e.description ? t(e.description) : void 0,
|
|
2312
2313
|
image: e.image ? t(e.image) : void 0
|
|
2313
|
-
}, null)), O(
|
|
2314
|
+
}, null)), O(xt, ({ props: e, resolve: t }) => r(pr, {
|
|
2314
2315
|
src: t(e.src),
|
|
2315
2316
|
name: e.name ? t(e.name) : void 0
|
|
2316
|
-
}, null)), O(
|
|
2317
|
+
}, null)), O(ut, ({ props: e, resolve: t }) => r(ar, {
|
|
2317
2318
|
src: t(e.src),
|
|
2318
2319
|
title: e.title ? t(e.title) : void 0,
|
|
2319
2320
|
artist: e.artist ? t(e.artist) : void 0,
|
|
2320
2321
|
seekStep: e.seekStep,
|
|
2321
2322
|
loop: e.loop,
|
|
2322
2323
|
autoplay: e.autoPlay
|
|
2323
|
-
}, null)), O(
|
|
2324
|
+
}, null)), O(zt, ({ props: e, resolve: t }) => {
|
|
2324
2325
|
let n = e.caption ? t(e.caption) : void 0;
|
|
2325
2326
|
return r("figure", { style: { margin: 0 } }, [r("video", {
|
|
2326
2327
|
src: t(e.src),
|
|
@@ -2337,7 +2338,7 @@ var Br = {
|
|
|
2337
2338
|
height: "auto"
|
|
2338
2339
|
}
|
|
2339
2340
|
}, null), n ? r("figcaption", null, [n]) : null]);
|
|
2340
|
-
}), O(
|
|
2341
|
+
}), O(dt, ({ props: e, resolve: t }) => r(ur, {
|
|
2341
2342
|
src: t(e.src),
|
|
2342
2343
|
alt: e.alt ? t(e.alt) : void 0,
|
|
2343
2344
|
width: e.width,
|
|
@@ -2346,63 +2347,63 @@ var Br = {
|
|
|
2346
2347
|
sizes: e.sizes ? t(e.sizes) : void 0,
|
|
2347
2348
|
caption: e.caption ? t(e.caption) : void 0,
|
|
2348
2349
|
enableModal: !0
|
|
2349
|
-
}, null)), O(
|
|
2350
|
+
}, null)), O(Ct, ({ props: e, resolve: t }) => r(nr, {
|
|
2350
2351
|
html: e.html ? t(e.html) : void 0,
|
|
2351
2352
|
src: e.src ? t(e.src) : void 0,
|
|
2352
2353
|
autoHeight: e.autoHeight,
|
|
2353
2354
|
allowScripts: e.allowScripts ?? !0,
|
|
2354
2355
|
height: e.height ?? 400
|
|
2355
|
-
}, null)), O(
|
|
2356
|
+
}, null)), O(ht, ({ props: e, resolve: t }) => r(qn, {
|
|
2356
2357
|
code: t(e.code),
|
|
2357
2358
|
language: e.language ? t(e.language) : void 0,
|
|
2358
2359
|
caption: e.caption ? t(e.caption) : void 0
|
|
2359
|
-
}, null)), O(
|
|
2360
|
+
}, null)), O(Tt, ({ props: e, resolve: t }) => r(In, {
|
|
2360
2361
|
expression: t(e.expression),
|
|
2361
2362
|
block: !0
|
|
2362
|
-
}, null)), O(
|
|
2363
|
+
}, null)), O(At, ({ props: e, resolve: t }) => r(qn, {
|
|
2363
2364
|
code: t(e.code),
|
|
2364
2365
|
language: "mermaid"
|
|
2365
|
-
}, null)), O(
|
|
2366
|
+
}, null)), O(vt, () => null), O(yt, ({ props: t, surface: n, renderChild: i }) => {
|
|
2366
2367
|
let a, o = (Array.isArray(t.children) ? t.children : []).map((e) => {
|
|
2367
2368
|
let t = n.componentsModel.get(e);
|
|
2368
2369
|
return {
|
|
2369
2370
|
tabId: e,
|
|
2370
|
-
labelIds:
|
|
2371
|
-
contentIds:
|
|
2371
|
+
labelIds: Br(t?.properties.label),
|
|
2372
|
+
contentIds: Br(t?.properties.content)
|
|
2372
2373
|
};
|
|
2373
2374
|
});
|
|
2374
|
-
return r(
|
|
2375
|
+
return r(Qt, { defaultValue: "0" }, { default: () => [r($t, null, I(a = o.map(({ tabId: t, labelIds: n }, a) => {
|
|
2375
2376
|
let o;
|
|
2376
|
-
return r(
|
|
2377
|
+
return r(en, {
|
|
2377
2378
|
key: t,
|
|
2378
2379
|
value: String(a)
|
|
2379
2380
|
}, I(o = n.map((t, n) => r(e, { key: `${t}:${n}` }, [i(t, "/", n)]))) ? o : { default: () => [o] });
|
|
2380
2381
|
})) ? a : { default: () => [a] }), o.map(({ tabId: t, contentIds: n }, a) => {
|
|
2381
2382
|
let o;
|
|
2382
|
-
return r(
|
|
2383
|
+
return r(tn, {
|
|
2383
2384
|
key: t,
|
|
2384
2385
|
value: String(a)
|
|
2385
2386
|
}, I(o = n.map((t, n) => r(e, { key: `${t}:${n}` }, [i(t, "/", n)]))) ? o : { default: () => [o] });
|
|
2386
2387
|
})] });
|
|
2387
|
-
}), O(
|
|
2388
|
+
}), O(Pt, ({ props: t, childRefs: n, renderChild: i }) => {
|
|
2388
2389
|
let a, o;
|
|
2389
|
-
return r(
|
|
2390
|
+
return r(Ar, {
|
|
2390
2391
|
caption: t.caption ? String(t.caption) : void 0,
|
|
2391
2392
|
hasRowHeader: t.hasRowHeader
|
|
2392
|
-
}, { default: () => [t.header && t.header.length > 0 && r(
|
|
2393
|
-
}), O(
|
|
2393
|
+
}, { default: () => [t.header && t.header.length > 0 && r(Fr, 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(jr, null, I(o = n(t.body).map(({ id: t, path: n }, a) => r(e, { key: `${t}:${a}` }, [i(t, n, a)]))) ? o : { default: () => [o] })] });
|
|
2394
|
+
}), O(It, ({ props: t, childRefs: n, renderChild: i }) => {
|
|
2394
2395
|
let a;
|
|
2395
|
-
return r(
|
|
2396
|
-
}), O(
|
|
2396
|
+
return r(Lr, null, I(a = n(t.children).map(({ id: t, path: n }, a) => r(e, { key: `${t}:${a}` }, [i(t, n, a)]))) ? a : { default: () => [a] });
|
|
2397
|
+
}), O(Ft, ({ props: e, index: t, childRefs: n, renderChild: i }) => {
|
|
2397
2398
|
let a;
|
|
2398
|
-
return r(
|
|
2399
|
+
return r(Nr, {
|
|
2399
2400
|
isHeader: e.isHeader,
|
|
2400
2401
|
columnIndex: t
|
|
2401
2402
|
}, I(a = n(e.children).map(({ id: e, path: t }, n) => r("span", { key: `${e}:${n}` }, [i(e, t, n)]))) ? a : { default: () => [a] });
|
|
2402
|
-
}), O(
|
|
2403
|
+
}), O(Rt, ({ props: e }) => r(zr, { details: e.details ? `Unsupported component type: ${String(e.details)}` : "Unsupported component type" }, null))), Ur = {
|
|
2403
2404
|
"elm-parallax": "_elm-parallax_1uz2b_1",
|
|
2404
2405
|
parallax: "_parallax_1uz2b_6"
|
|
2405
|
-
},
|
|
2406
|
+
}, Wr = (e, t) => `scale(1.2) translateY(${e / (1e3 * (t + 1))}%)`, Gr = /* @__PURE__ */ i({
|
|
2406
2407
|
name: "ElmParallax",
|
|
2407
2408
|
props: { images: {
|
|
2408
2409
|
type: Array,
|
|
@@ -2412,8 +2413,8 @@ var Br = {
|
|
|
2412
2413
|
let t = m(), n, i = 0, a = 0, o, s = () => {
|
|
2413
2414
|
n = void 0;
|
|
2414
2415
|
let e = o?.matches ? 0 : i;
|
|
2415
|
-
a = e, t.value?.querySelectorAll(`.${
|
|
2416
|
-
t.style.transform =
|
|
2416
|
+
a = e, t.value?.querySelectorAll(`.${Ur.parallax}`).forEach((t, n) => {
|
|
2417
|
+
t.style.transform = Wr(e, n);
|
|
2417
2418
|
});
|
|
2418
2419
|
}, c = () => {
|
|
2419
2420
|
i = window.scrollY, n ?? (n = window.requestAnimationFrame(s));
|
|
@@ -2424,23 +2425,23 @@ var Br = {
|
|
|
2424
2425
|
window.removeEventListener("scroll", c), o?.removeEventListener("change", c), n !== void 0 && window.cancelAnimationFrame(n);
|
|
2425
2426
|
}), () => r("div", {
|
|
2426
2427
|
ref: t,
|
|
2427
|
-
class:
|
|
2428
|
+
class: Ur["elm-parallax"]
|
|
2428
2429
|
}, [e.images.map((e, t) => r("div", {
|
|
2429
2430
|
key: t,
|
|
2430
2431
|
"aria-hidden": "true",
|
|
2431
|
-
class:
|
|
2432
|
+
class: Ur.parallax,
|
|
2432
2433
|
style: {
|
|
2433
2434
|
backgroundImage: `url(${JSON.stringify(e)})`,
|
|
2434
|
-
transform:
|
|
2435
|
+
transform: Wr(a, t),
|
|
2435
2436
|
transformOrigin: "bottom"
|
|
2436
2437
|
}
|
|
2437
2438
|
}, null))]);
|
|
2438
2439
|
}
|
|
2439
|
-
}),
|
|
2440
|
+
}), Kr = {
|
|
2440
2441
|
"elm-tooltip": "_elm-tooltip_1b13f_1",
|
|
2441
2442
|
tooltip: "_tooltip_1b13f_5",
|
|
2442
2443
|
show: "_show_1b13f_18"
|
|
2443
|
-
},
|
|
2444
|
+
}, qr = /* @__PURE__ */ i({
|
|
2444
2445
|
name: "ElmTooltip",
|
|
2445
2446
|
setup(e, { slots: t }) {
|
|
2446
2447
|
let n = m(null), i = m(!1), a = !1, o, s = m({}), c = () => {
|
|
@@ -2462,19 +2463,19 @@ var Br = {
|
|
|
2462
2463
|
};
|
|
2463
2464
|
return () => r("span", {
|
|
2464
2465
|
ref: n,
|
|
2465
|
-
class:
|
|
2466
|
+
class: C(Kr["elm-tooltip"]),
|
|
2466
2467
|
onMouseover: c,
|
|
2467
2468
|
onMouseleave: l
|
|
2468
2469
|
}, [t.original?.(), r("div", {
|
|
2469
|
-
class:
|
|
2470
|
+
class: C(Kr.tooltip, i.value && Kr.show),
|
|
2470
2471
|
style: s.value
|
|
2471
2472
|
}, [t.tooltip?.()])]);
|
|
2472
2473
|
}
|
|
2473
|
-
}),
|
|
2474
|
+
}), Jr = { "elm-block-fallback": "_elm-block-fallback_1sx02_1" }, Yr = {
|
|
2474
2475
|
"elm-dot-loading-icon": "_elm-dot-loading-icon_qjgj2_15",
|
|
2475
2476
|
dot: "_dot_qjgj2_25",
|
|
2476
2477
|
bounce: "_bounce_qjgj2_1"
|
|
2477
|
-
},
|
|
2478
|
+
}, Xr = /* @__PURE__ */ i({
|
|
2478
2479
|
name: "ElmDotLoadingIcon",
|
|
2479
2480
|
inheritAttrs: !1,
|
|
2480
2481
|
props: { size: {
|
|
@@ -2485,36 +2486,36 @@ var Br = {
|
|
|
2485
2486
|
return () => {
|
|
2486
2487
|
let { class: n, style: i, ...a } = t;
|
|
2487
2488
|
return r("span", c({
|
|
2488
|
-
class:
|
|
2489
|
+
class: C(Yr["elm-dot-loading-icon"], n),
|
|
2489
2490
|
style: [{ "--elmethis-scoped-size": e.size }, i]
|
|
2490
2491
|
}, a), [
|
|
2491
2492
|
r("span", {
|
|
2492
|
-
class:
|
|
2493
|
+
class: Yr.dot,
|
|
2493
2494
|
"aria-hidden": "true"
|
|
2494
2495
|
}, null),
|
|
2495
2496
|
r("span", {
|
|
2496
|
-
class:
|
|
2497
|
+
class: Yr.dot,
|
|
2497
2498
|
"aria-hidden": "true"
|
|
2498
2499
|
}, null),
|
|
2499
2500
|
r("span", {
|
|
2500
|
-
class:
|
|
2501
|
+
class: Yr.dot,
|
|
2501
2502
|
"aria-hidden": "true"
|
|
2502
2503
|
}, null)
|
|
2503
2504
|
]);
|
|
2504
2505
|
};
|
|
2505
2506
|
}
|
|
2506
|
-
}),
|
|
2507
|
+
}), Zr = {
|
|
2507
2508
|
"elm-rectangle-wave": "_elm-rectangle-wave_70gad_21",
|
|
2508
2509
|
wave: "_wave_70gad_1"
|
|
2509
|
-
},
|
|
2510
|
+
}, Qr = /* @__PURE__ */ i({
|
|
2510
2511
|
name: "ElmRectangleWave",
|
|
2511
2512
|
setup() {
|
|
2512
2513
|
return () => r("div", {
|
|
2513
2514
|
"aria-hidden": "true",
|
|
2514
|
-
class:
|
|
2515
|
+
class: C(Zr["elm-rectangle-wave"])
|
|
2515
2516
|
}, null);
|
|
2516
2517
|
}
|
|
2517
|
-
}),
|
|
2518
|
+
}), $r = /* @__PURE__ */ i({
|
|
2518
2519
|
name: "ElmBlockFallback",
|
|
2519
2520
|
props: { height: {
|
|
2520
2521
|
type: String,
|
|
@@ -2522,18 +2523,18 @@ var Br = {
|
|
|
2522
2523
|
} },
|
|
2523
2524
|
setup(e) {
|
|
2524
2525
|
return () => r("div", {
|
|
2525
|
-
class:
|
|
2526
|
+
class: C(Jr["elm-block-fallback"]),
|
|
2526
2527
|
style: { "--elmethis-scoped-height": e.height }
|
|
2527
|
-
}, [r(
|
|
2528
|
+
}, [r(Xr, null, null), r(Qr, null, null)]);
|
|
2528
2529
|
}
|
|
2529
|
-
}),
|
|
2530
|
+
}), ei = {
|
|
2530
2531
|
"elm-button": "_elm-button_1baoq_1",
|
|
2531
2532
|
normal: "_normal_1baoq_22",
|
|
2532
2533
|
primary: "_primary_1baoq_29",
|
|
2533
2534
|
colored: "_colored_1baoq_36",
|
|
2534
2535
|
enable: "_enable_1baoq_40",
|
|
2535
2536
|
flex: "_flex_1baoq_59"
|
|
2536
|
-
},
|
|
2537
|
+
}, ti = /* @__PURE__ */ i({
|
|
2537
2538
|
name: "ElmButton",
|
|
2538
2539
|
inheritAttrs: !1,
|
|
2539
2540
|
props: {
|
|
@@ -2566,7 +2567,7 @@ var Br = {
|
|
|
2566
2567
|
!e.isLoading && !e.disabled && typeof o == "function" && o(t);
|
|
2567
2568
|
},
|
|
2568
2569
|
disabled: e.disabled,
|
|
2569
|
-
class:
|
|
2570
|
+
class: C(ei["elm-button"], !e.isLoading && !e.disabled && ei.enable, e.color && ei.colored, !e.color && !e.primary && ei.normal, !e.color && e.primary && ei.primary, i),
|
|
2570
2571
|
style: [{
|
|
2571
2572
|
display: e.block ? "flex" : "inline-flex",
|
|
2572
2573
|
width: e.block ? "100%" : "auto",
|
|
@@ -2574,7 +2575,7 @@ var Br = {
|
|
|
2574
2575
|
"--elmethis-scoped-opacity": e.disabled || e.isLoading ? .6 : void 0,
|
|
2575
2576
|
"--elmethis-scoped-color": e.color
|
|
2576
2577
|
}, a]
|
|
2577
|
-
}, s), [e.isLoading ? r(
|
|
2578
|
+
}, s), [e.isLoading ? r(Xr, { size: "1.5rem" }, null) : r("span", { class: ei.flex }, [n.default?.()])]);
|
|
2578
2579
|
};
|
|
2579
2580
|
}
|
|
2580
2581
|
}), L = {
|
|
@@ -2590,10 +2591,10 @@ var Br = {
|
|
|
2590
2591
|
};
|
|
2591
2592
|
//#endregion
|
|
2592
2593
|
//#region src/components/form/elm-button-dropdown.tsx
|
|
2593
|
-
function
|
|
2594
|
+
function ni(e) {
|
|
2594
2595
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !s(e);
|
|
2595
2596
|
}
|
|
2596
|
-
var
|
|
2597
|
+
var ri = /* @__PURE__ */ i({
|
|
2597
2598
|
name: "ElmButtonDropdown",
|
|
2598
2599
|
props: {
|
|
2599
2600
|
label: {
|
|
@@ -2646,7 +2647,7 @@ var ni = /* @__PURE__ */ i({
|
|
|
2646
2647
|
},
|
|
2647
2648
|
dropdownIcon: {
|
|
2648
2649
|
type: String,
|
|
2649
|
-
default:
|
|
2650
|
+
default: Je
|
|
2650
2651
|
}
|
|
2651
2652
|
},
|
|
2652
2653
|
emits: [
|
|
@@ -2656,7 +2657,7 @@ var ni = /* @__PURE__ */ i({
|
|
|
2656
2657
|
"openChange"
|
|
2657
2658
|
],
|
|
2658
2659
|
setup(t, { emit: n, slots: i }) {
|
|
2659
|
-
let o =
|
|
2660
|
+
let o = xe(t, "selectedOptionId", n, {
|
|
2660
2661
|
passive: !0,
|
|
2661
2662
|
defaultValue: t.defaultSelectedOptionId ?? null
|
|
2662
2663
|
}), s = m(!1), c = m(null), l = (e) => {
|
|
@@ -2666,14 +2667,14 @@ var ni = /* @__PURE__ */ i({
|
|
|
2666
2667
|
};
|
|
2667
2668
|
return d(() => document.addEventListener("click", f)), u(() => document.removeEventListener("click", f)), () => {
|
|
2668
2669
|
let u, d = t.items.find((e) => e.id === o.value) ?? null, f = t.disabled || t.disableDropdown || t.isLoading, p = t.disabled || t.disableMainButton, m = {
|
|
2669
|
-
class:
|
|
2670
|
+
class: C(L.main, L.segment),
|
|
2670
2671
|
primary: t.primary,
|
|
2671
2672
|
color: t.color,
|
|
2672
2673
|
isLoading: t.isLoading,
|
|
2673
2674
|
disabled: p,
|
|
2674
2675
|
onClick: () => n("click", d)
|
|
2675
2676
|
}, h = {
|
|
2676
|
-
class:
|
|
2677
|
+
class: C(L.caret, L.segment),
|
|
2677
2678
|
primary: t.primary,
|
|
2678
2679
|
color: t.color,
|
|
2679
2680
|
disabled: f,
|
|
@@ -2683,25 +2684,25 @@ var ni = /* @__PURE__ */ i({
|
|
|
2683
2684
|
};
|
|
2684
2685
|
return r("div", {
|
|
2685
2686
|
ref: c,
|
|
2686
|
-
class:
|
|
2687
|
+
class: C(L["elm-button-dropdown"], t.block && L.block)
|
|
2687
2688
|
}, [
|
|
2688
|
-
r(
|
|
2689
|
-
r(
|
|
2689
|
+
r(ti, m, { default: () => [d ? a(g(d.Content), { key: d.id }) : r(e, null, [i.icon?.(), t.label])] }),
|
|
2690
|
+
r(ti, h, { default: () => [r(A, {
|
|
2690
2691
|
path: t.dropdownIcon,
|
|
2691
2692
|
size: "1.25rem"
|
|
2692
2693
|
}, null)] }),
|
|
2693
|
-
r(
|
|
2694
|
+
r(Jt, {
|
|
2694
2695
|
isOpen: s.value,
|
|
2695
2696
|
class: L.menu
|
|
2696
|
-
},
|
|
2697
|
+
}, ni(u = t.items.map((e) => r("div", {
|
|
2697
2698
|
key: e.id,
|
|
2698
|
-
class:
|
|
2699
|
+
class: C(L.item, T.text, e.id === o.value && L.selected, e.disabled && L["item-disabled"]),
|
|
2699
2700
|
"aria-selected": e.id === o.value,
|
|
2700
2701
|
onClick: (r) => {
|
|
2701
2702
|
r.stopPropagation(), !e.disabled && (o.value = e.id, e.onClick?.(), n("itemClick", e), t.autoClose && l(!1));
|
|
2702
2703
|
}
|
|
2703
|
-
}, [r(
|
|
2704
|
-
path:
|
|
2704
|
+
}, [r(A, {
|
|
2705
|
+
path: Ae,
|
|
2705
2706
|
color: "var(--elmethis-color-primary-weak)",
|
|
2706
2707
|
size: "0.75em"
|
|
2707
2708
|
}, null), a(g(e.Content))]))) ? u : { default: () => [u] })
|
|
@@ -2718,7 +2719,7 @@ var ni = /* @__PURE__ */ i({
|
|
|
2718
2719
|
"loading-dot": "_loading-dot_4ogdx_39",
|
|
2719
2720
|
"check-line": "_check-line_4ogdx_54",
|
|
2720
2721
|
"elmethis-checkbox-check-line": "_elmethis-checkbox-check-line_4ogdx_1"
|
|
2721
|
-
},
|
|
2722
|
+
}, ii = /* @__PURE__ */ i({
|
|
2722
2723
|
name: "ElmCheckbox",
|
|
2723
2724
|
inheritAttrs: !1,
|
|
2724
2725
|
props: {
|
|
@@ -2745,7 +2746,7 @@ var ni = /* @__PURE__ */ i({
|
|
|
2745
2746
|
},
|
|
2746
2747
|
emits: ["update:checked"],
|
|
2747
2748
|
setup(e, { attrs: t, emit: n }) {
|
|
2748
|
-
let i =
|
|
2749
|
+
let i = Yt({
|
|
2749
2750
|
props: e,
|
|
2750
2751
|
key: "checked",
|
|
2751
2752
|
emit: n,
|
|
@@ -2754,7 +2755,7 @@ var ni = /* @__PURE__ */ i({
|
|
|
2754
2755
|
return () => {
|
|
2755
2756
|
let { class: n, ...a } = t;
|
|
2756
2757
|
return r("div", c({
|
|
2757
|
-
class:
|
|
2758
|
+
class: C(R["elm-checkbox"], e.disabled && R.disabled, n),
|
|
2758
2759
|
onClick: () => {
|
|
2759
2760
|
!e.isLoading && !e.disabled && (i.value = !i.value);
|
|
2760
2761
|
}
|
|
@@ -2814,7 +2815,7 @@ var ni = /* @__PURE__ */ i({
|
|
|
2814
2815
|
y: "4",
|
|
2815
2816
|
width: "16",
|
|
2816
2817
|
height: "16",
|
|
2817
|
-
class:
|
|
2818
|
+
class: C(R.rect, i.value && R.checked, e.isLoading && R.loading),
|
|
2818
2819
|
"stroke-width": "0.8"
|
|
2819
2820
|
}, null),
|
|
2820
2821
|
i.value && r("polyline", {
|
|
@@ -2898,10 +2899,10 @@ var ni = /* @__PURE__ */ i({
|
|
|
2898
2899
|
};
|
|
2899
2900
|
//#endregion
|
|
2900
2901
|
//#region src/components/form/elm-select.tsx
|
|
2901
|
-
function
|
|
2902
|
+
function ai(e) {
|
|
2902
2903
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !s(e);
|
|
2903
2904
|
}
|
|
2904
|
-
var
|
|
2905
|
+
var oi = /* @__PURE__ */ i({
|
|
2905
2906
|
name: "ElmSelect",
|
|
2906
2907
|
props: {
|
|
2907
2908
|
label: {
|
|
@@ -2939,7 +2940,7 @@ var ai = /* @__PURE__ */ i({
|
|
|
2939
2940
|
},
|
|
2940
2941
|
emits: ["update:selectedOptionId"],
|
|
2941
2942
|
setup(e, { emit: t, slots: n }) {
|
|
2942
|
-
let i =
|
|
2943
|
+
let i = xe(e, "selectedOptionId", t, {
|
|
2943
2944
|
passive: !0,
|
|
2944
2945
|
defaultValue: e.defaultSelectedOptionId ?? null
|
|
2945
2946
|
}), o = m(!1), s = m(null), c = (e) => {
|
|
@@ -2953,31 +2954,31 @@ var ai = /* @__PURE__ */ i({
|
|
|
2953
2954
|
let t, c = e.options.find((e) => e.id === i.value) ?? null;
|
|
2954
2955
|
return r("div", {
|
|
2955
2956
|
ref: s,
|
|
2956
|
-
class:
|
|
2957
|
+
class: C(z["elm-select"], e.frameless && z.frameless, o.value && z.active, (e.disabled || e.isLoading) && z.disabled),
|
|
2957
2958
|
onClick: l
|
|
2958
|
-
}, [r("span", { class:
|
|
2959
|
-
path:
|
|
2959
|
+
}, [r("span", { class: C(z.label, o.value && z["label-active"]) }, [n.icon?.() ?? r(A, {
|
|
2960
|
+
path: De,
|
|
2960
2961
|
size: "0.75rem"
|
|
2961
2962
|
}, null), e.label]), r("div", { class: z.body }, [
|
|
2962
|
-
r("div", { class:
|
|
2963
|
+
r("div", { class: C(z["selected-option"], T.text) }, [c ? r("div", {
|
|
2963
2964
|
key: c.id,
|
|
2964
2965
|
class: z["option-content"]
|
|
2965
2966
|
}, [a(g(c.Content))]) : r("div", { class: z.fallback }, [r("span", null, [e.placeholder ?? "Select an option"])])]),
|
|
2966
|
-
r(
|
|
2967
|
-
path:
|
|
2967
|
+
r(A, {
|
|
2968
|
+
path: Je,
|
|
2968
2969
|
size: "1.5rem"
|
|
2969
2970
|
}, null),
|
|
2970
|
-
r(
|
|
2971
|
+
r(Jt, {
|
|
2971
2972
|
isOpen: o.value,
|
|
2972
2973
|
class: z.pulldown
|
|
2973
|
-
},
|
|
2974
|
+
}, ai(t = e.options.map((e) => r("div", {
|
|
2974
2975
|
key: e.id,
|
|
2975
|
-
class:
|
|
2976
|
+
class: C(z.option, T.text),
|
|
2976
2977
|
onClick: (t) => {
|
|
2977
2978
|
t.stopPropagation(), i.value = e.id, o.value = !1;
|
|
2978
2979
|
}
|
|
2979
|
-
}, [r(
|
|
2980
|
-
path:
|
|
2980
|
+
}, [r(A, {
|
|
2981
|
+
path: Ae,
|
|
2981
2982
|
color: "var(--elmethis-color-primary-weak)",
|
|
2982
2983
|
size: "0.75em"
|
|
2983
2984
|
}, null), a(g(e.Content))]))) ? t : { default: () => [t] })
|
|
@@ -3003,7 +3004,7 @@ var ai = /* @__PURE__ */ i({
|
|
|
3003
3004
|
tick: "_tick_1g3pf_274",
|
|
3004
3005
|
"mark-restricted": "_mark-restricted_1g3pf_287",
|
|
3005
3006
|
"mark-label": "_mark-label_1g3pf_207"
|
|
3006
|
-
}, V = (e, t, n) => Math.min(n, Math.max(t, e)), H = (e) => Math.round(e * 1e9) / 1e9,
|
|
3007
|
+
}, V = (e, t, n) => Math.min(n, Math.max(t, e)), H = (e) => Math.round(e * 1e9) / 1e9, si = 500, ci = (e) => e == null || typeof e == "boolean" ? "" : typeof e == "string" ? e : typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(ci).join("") : s(e) ? ci(e.children) : "", li = /* @__PURE__ */ i({
|
|
3007
3008
|
name: "ElmSlider",
|
|
3008
3009
|
inheritAttrs: !1,
|
|
3009
3010
|
props: {
|
|
@@ -3061,7 +3062,7 @@ var ai = /* @__PURE__ */ i({
|
|
|
3061
3062
|
let a = m(null), o = t(() => e.orientation === "vertical"), s = t(() => Math.min(e.min, e.max)), l = t(() => Math.max(e.min, e.max)), u = t(() => V(e.innerMin ?? s.value, s.value, l.value)), d = t(() => V(e.innerMax ?? l.value, u.value, l.value)), f = (t) => {
|
|
3062
3063
|
let n = Math.abs(e.step);
|
|
3063
3064
|
return V(H(n > 0 ? e.min + Math.round((t - e.min) / n) * n : t), u.value, d.value);
|
|
3064
|
-
}, p = (e) => V(H(e), u.value, d.value), h =
|
|
3065
|
+
}, p = (e) => V(H(e), u.value, d.value), h = Yt({
|
|
3065
3066
|
props: e,
|
|
3066
3067
|
key: "value",
|
|
3067
3068
|
emit: i,
|
|
@@ -3098,12 +3099,12 @@ var ai = /* @__PURE__ */ i({
|
|
|
3098
3099
|
break;
|
|
3099
3100
|
case "End": t.preventDefault(), h.value = d.value;
|
|
3100
3101
|
}
|
|
3101
|
-
},
|
|
3102
|
+
}, x = t(() => {
|
|
3102
3103
|
if (!e.markers && !e.markerLabels) return [];
|
|
3103
3104
|
let t = Math.abs(e.step);
|
|
3104
3105
|
if (t <= 0 || e.max <= e.min) return [];
|
|
3105
3106
|
let n = Math.floor(H((e.max - e.min) / t)), r = [];
|
|
3106
|
-
if (n <=
|
|
3107
|
+
if (n <= si) {
|
|
3107
3108
|
for (let i = 0; i <= n; i++) {
|
|
3108
3109
|
let n = H(e.min + i * t);
|
|
3109
3110
|
r.push({
|
|
@@ -3116,9 +3117,9 @@ var ai = /* @__PURE__ */ i({
|
|
|
3116
3117
|
ratio: g(e.max)
|
|
3117
3118
|
});
|
|
3118
3119
|
} else {
|
|
3119
|
-
let t = (e.max - e.min) /
|
|
3120
|
-
for (let n = 0; n <=
|
|
3121
|
-
let i = n ===
|
|
3120
|
+
let t = (e.max - e.min) / si;
|
|
3121
|
+
for (let n = 0; n <= si; n++) {
|
|
3122
|
+
let i = n === si ? e.max : H(e.min + n * t);
|
|
3122
3123
|
r.push({
|
|
3123
3124
|
value: i,
|
|
3124
3125
|
ratio: g(i)
|
|
@@ -3126,11 +3127,11 @@ var ai = /* @__PURE__ */ i({
|
|
|
3126
3127
|
}
|
|
3127
3128
|
}
|
|
3128
3129
|
return r;
|
|
3129
|
-
}),
|
|
3130
|
+
}), S = t(() => {
|
|
3130
3131
|
if (!e.markerLabels) return 0;
|
|
3131
3132
|
let t = 0;
|
|
3132
|
-
for (let n of
|
|
3133
|
-
let r =
|
|
3133
|
+
for (let n of x.value) {
|
|
3134
|
+
let r = ci(e.formatMarkerLabel?.(n.value) ?? n.value);
|
|
3134
3135
|
r.length > t && (t = r.length);
|
|
3135
3136
|
}
|
|
3136
3137
|
return t;
|
|
@@ -3138,12 +3139,12 @@ var ai = /* @__PURE__ */ i({
|
|
|
3138
3139
|
return () => {
|
|
3139
3140
|
let { class: t, style: i, onKeydown: s, ...l } = n, f = g(y.value), p = g(u.value), m = g(d.value);
|
|
3140
3141
|
return r("div", {
|
|
3141
|
-
class:
|
|
3142
|
+
class: C(B["elm-slider"], o.value && B.vertical, e.disabled && B.disabled, e.markers && B["has-markers"], e.markerLabels && B["has-marker-labels"], t),
|
|
3142
3143
|
style: {
|
|
3143
3144
|
"--elmethis-scoped-value-ratio": f,
|
|
3144
3145
|
"--elmethis-scoped-inner-min-ratio": p,
|
|
3145
3146
|
"--elmethis-scoped-inner-max-ratio": m,
|
|
3146
|
-
"--elmethis-scoped-max-marker-label-chars":
|
|
3147
|
+
"--elmethis-scoped-max-marker-label-chars": S.value,
|
|
3147
3148
|
...i
|
|
3148
3149
|
}
|
|
3149
3150
|
}, [r("div", c({
|
|
@@ -3171,12 +3172,12 @@ var ai = /* @__PURE__ */ i({
|
|
|
3171
3172
|
r("div", { class: B.fill }, null),
|
|
3172
3173
|
r("div", { class: B["restricted-end"] }, null)
|
|
3173
3174
|
]),
|
|
3174
|
-
|
|
3175
|
+
x.value.length > 0 && r("div", {
|
|
3175
3176
|
class: B.marks,
|
|
3176
3177
|
"aria-hidden": "true"
|
|
3177
|
-
}, [
|
|
3178
|
+
}, [x.value.map((t, n) => r("span", {
|
|
3178
3179
|
key: t.value,
|
|
3179
|
-
class:
|
|
3180
|
+
class: C(B.mark, n === 0 && B["mark-start"], n === x.value.length - 1 && B["mark-end"], (t.value < u.value || t.value > d.value) && B["mark-restricted"]),
|
|
3180
3181
|
style: { "--elmethis-scoped-marker-ratio": t.ratio }
|
|
3181
3182
|
}, [e.markers && r("i", { class: B.tick }, null), e.markerLabels && r("span", { class: B["mark-label"] }, [e.formatMarkerLabel?.(t.value) ?? t.value])]))]),
|
|
3182
3183
|
r("span", {
|
|
@@ -3192,7 +3193,7 @@ var ai = /* @__PURE__ */ i({
|
|
|
3192
3193
|
checked: "_checked_1ipa7_21",
|
|
3193
3194
|
disabled: "_disabled_1ipa7_26",
|
|
3194
3195
|
circle: "_circle_1ipa7_31"
|
|
3195
|
-
},
|
|
3196
|
+
}, ui = /* @__PURE__ */ i({
|
|
3196
3197
|
name: "ElmSwitch",
|
|
3197
3198
|
props: {
|
|
3198
3199
|
color: {
|
|
@@ -3231,7 +3232,7 @@ var ai = /* @__PURE__ */ i({
|
|
|
3231
3232
|
type: "checkbox",
|
|
3232
3233
|
checked: e.checked,
|
|
3233
3234
|
disabled: e.disabled
|
|
3234
|
-
}, null), r("div", { class:
|
|
3235
|
+
}, null), r("div", { class: C(U.bar, e.checked && U.checked, e.disabled && U.disabled) }, [r("div", { class: C(U.circle, e.checked && U.checked, e.disabled && U.disabled) }, null)])]);
|
|
3235
3236
|
};
|
|
3236
3237
|
}
|
|
3237
3238
|
}), W = {
|
|
@@ -3244,7 +3245,7 @@ var ai = /* @__PURE__ */ i({
|
|
|
3244
3245
|
requierd: "_requierd_1tdbq_86",
|
|
3245
3246
|
body: "_body_1tdbq_92",
|
|
3246
3247
|
textarea: "_textarea_1tdbq_97"
|
|
3247
|
-
},
|
|
3248
|
+
}, di = /* @__PURE__ */ i({
|
|
3248
3249
|
name: "ElmTextArea",
|
|
3249
3250
|
inheritAttrs: !1,
|
|
3250
3251
|
props: {
|
|
@@ -3291,12 +3292,12 @@ var ai = /* @__PURE__ */ i({
|
|
|
3291
3292
|
return () => {
|
|
3292
3293
|
let { class: t, style: p, onFocus: m, onBlur: h, ...g } = i;
|
|
3293
3294
|
return r("label", {
|
|
3294
|
-
class:
|
|
3295
|
+
class: C(W["elm-text-area"], s.value && W.active, (e.disabled || e.isLoading) && W.disabled, t),
|
|
3295
3296
|
style: p
|
|
3296
3297
|
}, [
|
|
3297
|
-
r("span", { class:
|
|
3298
|
-
o.icon?.() ?? r(
|
|
3299
|
-
path:
|
|
3298
|
+
r("span", { class: C(W.header, s.value && W["label-active"]) }, [
|
|
3299
|
+
o.icon?.() ?? r(A, {
|
|
3300
|
+
path: it,
|
|
3300
3301
|
size: "0.75rem"
|
|
3301
3302
|
}, null),
|
|
3302
3303
|
r("span", null, [e.label, e.required && r("span", { class: W.requierd }, [n("*")])]),
|
|
@@ -3345,7 +3346,7 @@ var ai = /* @__PURE__ */ i({
|
|
|
3345
3346
|
"right-icon-box": "_right-icon-box_17exf_121",
|
|
3346
3347
|
"clickable-icon": "_clickable-icon_17exf_126",
|
|
3347
3348
|
"prefix-suffix": "_prefix-suffix_17exf_142"
|
|
3348
|
-
},
|
|
3349
|
+
}, fi = /* @__PURE__ */ i({
|
|
3349
3350
|
name: "ElmTextField",
|
|
3350
3351
|
inheritAttrs: !1,
|
|
3351
3352
|
props: {
|
|
@@ -3399,12 +3400,12 @@ var ai = /* @__PURE__ */ i({
|
|
|
3399
3400
|
return () => {
|
|
3400
3401
|
let { class: d, style: f, onFocus: p, onBlur: m, ...h } = t, g = e.value == null ? 0 : String(e.value).length;
|
|
3401
3402
|
return r("label", {
|
|
3402
|
-
class:
|
|
3403
|
+
class: C(G["elm-text-field"], s.value && G.active, (e.disabled || e.isLoading) && G.disabled, d),
|
|
3403
3404
|
style: f
|
|
3404
3405
|
}, [
|
|
3405
|
-
r("span", { class:
|
|
3406
|
-
a.icon?.() ?? r(
|
|
3407
|
-
path:
|
|
3406
|
+
r("span", { class: C(G.header, s.value && G["label-active"]) }, [
|
|
3407
|
+
a.icon?.() ?? r(A, {
|
|
3408
|
+
path: rt,
|
|
3408
3409
|
size: "0.75rem"
|
|
3409
3410
|
}, null),
|
|
3410
3411
|
r("span", null, [e.label, e.required && r("span", { class: G.requierd }, [n("*")])]),
|
|
@@ -3441,8 +3442,8 @@ var ai = /* @__PURE__ */ i({
|
|
|
3441
3442
|
onClick: () => {
|
|
3442
3443
|
!e.isLoading && !e.disabled && (l.value = l.value === "text" ? "password" : "text");
|
|
3443
3444
|
}
|
|
3444
|
-
}, [r(
|
|
3445
|
-
path: l.value === "text" ?
|
|
3445
|
+
}, [r(A, {
|
|
3446
|
+
path: l.value === "text" ? Ie : Fe,
|
|
3446
3447
|
size: "1.25rem",
|
|
3447
3448
|
color: "gray"
|
|
3448
3449
|
}, null)]),
|
|
@@ -3451,8 +3452,8 @@ var ai = /* @__PURE__ */ i({
|
|
|
3451
3452
|
onClick: () => {
|
|
3452
3453
|
!e.isLoading && !e.disabled && u("");
|
|
3453
3454
|
}
|
|
3454
|
-
}, [r(
|
|
3455
|
-
path:
|
|
3455
|
+
}, [r(A, {
|
|
3456
|
+
path: at,
|
|
3456
3457
|
size: "1.25rem",
|
|
3457
3458
|
color: "gray"
|
|
3458
3459
|
}, null)])
|
|
@@ -3465,7 +3466,7 @@ var ai = /* @__PURE__ */ i({
|
|
|
3465
3466
|
]);
|
|
3466
3467
|
};
|
|
3467
3468
|
}
|
|
3468
|
-
}),
|
|
3469
|
+
}), pi = { "elm-validation": "_elm-validation_1cigg_1" }, mi = /* @__PURE__ */ i({
|
|
3469
3470
|
name: "ElmValidation",
|
|
3470
3471
|
props: {
|
|
3471
3472
|
text: {
|
|
@@ -3483,14 +3484,14 @@ var ai = /* @__PURE__ */ i({
|
|
|
3483
3484
|
},
|
|
3484
3485
|
setup(e) {
|
|
3485
3486
|
return () => r("div", {
|
|
3486
|
-
class:
|
|
3487
|
+
class: C(pi["elm-validation"]),
|
|
3487
3488
|
style: { "--elmethis-scoped-opacity": e.isValid ? 1 : .5 }
|
|
3488
|
-
}, [r(
|
|
3489
|
-
path: e.isValid ?
|
|
3489
|
+
}, [r(A, {
|
|
3490
|
+
path: e.isValid ? Oe : ke,
|
|
3490
3491
|
color: e.isValid ? e.validColor : void 0
|
|
3491
3492
|
}, null), r(E, { color: e.isValid ? e.validColor : void 0 }, { default: () => [e.text] })]);
|
|
3492
3493
|
}
|
|
3493
|
-
}),
|
|
3494
|
+
}), hi = /* @__PURE__ */ i({
|
|
3494
3495
|
name: "ElmCopyIcon",
|
|
3495
3496
|
inheritAttrs: !1,
|
|
3496
3497
|
props: { content: {
|
|
@@ -3505,11 +3506,11 @@ var ai = /* @__PURE__ */ i({
|
|
|
3505
3506
|
});
|
|
3506
3507
|
return () => a(n);
|
|
3507
3508
|
}
|
|
3508
|
-
}),
|
|
3509
|
+
}), gi = {
|
|
3509
3510
|
"elm-square-loading-icon": "_elm-square-loading-icon_m72nq_19",
|
|
3510
3511
|
square: "_square_m72nq_28",
|
|
3511
3512
|
appear: "_appear_m72nq_1"
|
|
3512
|
-
},
|
|
3513
|
+
}, _i = /* @__PURE__ */ i({
|
|
3513
3514
|
name: "ElmSquareLoadingIcon",
|
|
3514
3515
|
inheritAttrs: !1,
|
|
3515
3516
|
props: {
|
|
@@ -3527,11 +3528,11 @@ var ai = /* @__PURE__ */ i({
|
|
|
3527
3528
|
let { class: n, style: i, ...a } = t, o = 1200, s = o / (e.dimensions * 3), l = [];
|
|
3528
3529
|
for (let t = 0; t < e.dimensions; t++) for (let n = 0; n < e.dimensions; n++) l.push(r("span", {
|
|
3529
3530
|
key: `${t}-${n}`,
|
|
3530
|
-
class:
|
|
3531
|
+
class: gi.square,
|
|
3531
3532
|
style: { "--elmethis-scoped-delay": `${s * (t + n)}ms` }
|
|
3532
3533
|
}, null));
|
|
3533
3534
|
return r("span", c({
|
|
3534
|
-
class:
|
|
3535
|
+
class: C(gi["elm-square-loading-icon"], n),
|
|
3535
3536
|
style: [{
|
|
3536
3537
|
"--elmethis-scoped-size": e.size,
|
|
3537
3538
|
"--elmethis-scoped-dimensions": e.dimensions,
|
|
@@ -3540,34 +3541,34 @@ var ai = /* @__PURE__ */ i({
|
|
|
3540
3541
|
}, a), [l]);
|
|
3541
3542
|
};
|
|
3542
3543
|
}
|
|
3543
|
-
}), K = "elmethis-theme",
|
|
3544
|
+
}), K = "elmethis-theme", vi = "elmethis-theme-change", yi = (e) => e === "dark" ? "dark" : e === "light" ? "light" : null, bi = () => typeof matchMedia < "u" && matchMedia("(prefers-color-scheme: dark)").matches, xi = (e = bi()) => {
|
|
3544
3545
|
let t = window.getComputedStyle(document.documentElement).colorScheme.split(/\s+/), n = t.includes("dark");
|
|
3545
3546
|
return n === t.includes("light") ? e : n;
|
|
3546
|
-
},
|
|
3547
|
+
}, Si = (e, t) => {
|
|
3547
3548
|
let n = document.documentElement;
|
|
3548
|
-
e == null ? (n.style.removeProperty("color-scheme"), n.removeAttribute("data-theme"), t && typeof localStorage < "u" && localStorage.removeItem(K)) : (n.style.colorScheme = e, n.setAttribute("data-theme", e), t && typeof localStorage < "u" && localStorage.setItem(K, e)), window.dispatchEvent(new CustomEvent(
|
|
3549
|
-
},
|
|
3549
|
+
e == null ? (n.style.removeProperty("color-scheme"), n.removeAttribute("data-theme"), t && typeof localStorage < "u" && localStorage.removeItem(K)) : (n.style.colorScheme = e, n.setAttribute("data-theme", e), t && typeof localStorage < "u" && localStorage.setItem(K, e)), window.dispatchEvent(new CustomEvent(vi, { detail: e }));
|
|
3550
|
+
}, Ci = () => {
|
|
3550
3551
|
if (typeof window > "u") return !1;
|
|
3551
|
-
let e =
|
|
3552
|
-
return e == null ?
|
|
3552
|
+
let e = yi(localStorage.getItem(K));
|
|
3553
|
+
return e == null ? xi() : e === "dark";
|
|
3553
3554
|
};
|
|
3554
|
-
function
|
|
3555
|
-
let e = m(
|
|
3556
|
-
e.value = !
|
|
3555
|
+
function wi() {
|
|
3556
|
+
let e = m(Ci()), t = () => {
|
|
3557
|
+
e.value = !xi(), Si(e.value ? "dark" : "light", !0);
|
|
3557
3558
|
}, n = (t) => {
|
|
3558
3559
|
let n = t.detail;
|
|
3559
|
-
e.value = n == null ?
|
|
3560
|
+
e.value = n == null ? xi() : n === "dark";
|
|
3560
3561
|
}, r = (e) => {
|
|
3561
|
-
e.key === K &&
|
|
3562
|
+
e.key === K && Si(yi(e.newValue), !1);
|
|
3562
3563
|
}, i, a = (t) => {
|
|
3563
|
-
|
|
3564
|
+
yi(localStorage.getItem(K)) ?? (e.value = xi(t.matches));
|
|
3564
3565
|
};
|
|
3565
3566
|
return d(() => {
|
|
3566
|
-
window.addEventListener(
|
|
3567
|
-
let e =
|
|
3568
|
-
e != null &&
|
|
3567
|
+
window.addEventListener(vi, n), window.addEventListener("storage", r);
|
|
3568
|
+
let e = yi(localStorage.getItem(K));
|
|
3569
|
+
e != null && Si(e, !1), typeof matchMedia < "u" && (i = matchMedia("(prefers-color-scheme: dark)"), i.addEventListener("change", a));
|
|
3569
3570
|
}), u(() => {
|
|
3570
|
-
window.removeEventListener(
|
|
3571
|
+
window.removeEventListener(vi, n), window.removeEventListener("storage", r), i?.removeEventListener("change", a);
|
|
3571
3572
|
}), {
|
|
3572
3573
|
isDarkTheme: e,
|
|
3573
3574
|
toggleTheme: t
|
|
@@ -3575,20 +3576,20 @@ function Ci() {
|
|
|
3575
3576
|
}
|
|
3576
3577
|
//#endregion
|
|
3577
3578
|
//#region src/components/icon/elm-toggle-theme.module.css
|
|
3578
|
-
var
|
|
3579
|
+
var Ti = { "elm-toggle-theme": "_elm-toggle-theme_58006_1" }, Ei = /* @__PURE__ */ i({
|
|
3579
3580
|
name: "ElmToggleTheme",
|
|
3580
3581
|
props: { size: {
|
|
3581
3582
|
type: [String, Number],
|
|
3582
3583
|
default: "2rem"
|
|
3583
3584
|
} },
|
|
3584
3585
|
setup(e) {
|
|
3585
|
-
let { isDarkTheme: t, toggleTheme: n } =
|
|
3586
|
+
let { isDarkTheme: t, toggleTheme: n } = wi();
|
|
3586
3587
|
return () => t.value ? r("svg", {
|
|
3587
3588
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3588
3589
|
width: e.size,
|
|
3589
3590
|
height: e.size,
|
|
3590
3591
|
viewBox: "0 0 24 24",
|
|
3591
|
-
class:
|
|
3592
|
+
class: C(Ti["elm-toggle-theme"]),
|
|
3592
3593
|
onClick: n
|
|
3593
3594
|
}, [
|
|
3594
3595
|
r("path", {
|
|
@@ -3800,7 +3801,7 @@ var wi = { "elm-toggle-theme": "_elm-toggle-theme_58006_1" }, Ti = /* @__PURE__
|
|
|
3800
3801
|
width: e.size,
|
|
3801
3802
|
height: e.size,
|
|
3802
3803
|
viewBox: "0 0 24 24",
|
|
3803
|
-
class:
|
|
3804
|
+
class: C(Ti["elm-toggle-theme"]),
|
|
3804
3805
|
onClick: n
|
|
3805
3806
|
}, [
|
|
3806
3807
|
r("g", {
|
|
@@ -3972,36 +3973,36 @@ var wi = { "elm-toggle-theme": "_elm-toggle-theme_58006_1" }, Ti = /* @__PURE__
|
|
|
3972
3973
|
}, null)])
|
|
3973
3974
|
]);
|
|
3974
3975
|
}
|
|
3975
|
-
}),
|
|
3976
|
+
}), Di = {
|
|
3976
3977
|
"elm-breadcrumb": "_elm-breadcrumb_13oke_1",
|
|
3977
3978
|
"link-container": "_link-container_13oke_9",
|
|
3978
3979
|
icon: "_icon_13oke_23",
|
|
3979
3980
|
chunk: "_chunk_13oke_36",
|
|
3980
3981
|
chevron: "_chevron_13oke_41"
|
|
3981
|
-
},
|
|
3982
|
+
}, Oi = /* @__PURE__ */ i({
|
|
3982
3983
|
name: "ElmBreadcrumb",
|
|
3983
3984
|
props: { links: {
|
|
3984
3985
|
type: Array,
|
|
3985
3986
|
required: !0
|
|
3986
3987
|
} },
|
|
3987
3988
|
setup(e) {
|
|
3988
|
-
return () => r("nav", { class:
|
|
3989
|
+
return () => r("nav", { class: C(Di["elm-breadcrumb"]) }, [e.links.map((t, n) => r("span", {
|
|
3989
3990
|
key: n,
|
|
3990
3991
|
style: { display: "contents" }
|
|
3991
3992
|
}, [r("span", {
|
|
3992
|
-
class:
|
|
3993
|
+
class: Di["link-container"],
|
|
3993
3994
|
onClick: t.onClick
|
|
3994
|
-
}, [r(
|
|
3995
|
-
class:
|
|
3996
|
-
path: n === 0 ?
|
|
3995
|
+
}, [r(A, {
|
|
3996
|
+
class: Di.icon,
|
|
3997
|
+
path: n === 0 ? We : n === e.links.length - 1 ? Ee : ze,
|
|
3997
3998
|
size: "1rem"
|
|
3998
|
-
}, null), r("span", { class:
|
|
3999
|
-
class:
|
|
4000
|
-
path:
|
|
3999
|
+
}, null), r("span", { class: Di.chunk }, [t.text])]), e.links.length !== n + 1 && r(A, {
|
|
4000
|
+
class: Di.chevron,
|
|
4001
|
+
path: Ae,
|
|
4001
4002
|
size: "1rem"
|
|
4002
4003
|
}, null)]))]);
|
|
4003
4004
|
}
|
|
4004
|
-
}),
|
|
4005
|
+
}), q = {
|
|
4005
4006
|
"elm-page-top": "_elm-page-top_fmpmm_1",
|
|
4006
4007
|
move: "_move_fmpmm_1",
|
|
4007
4008
|
visible: "_visible_fmpmm_30",
|
|
@@ -4027,7 +4028,7 @@ var wi = { "elm-toggle-theme": "_elm-toggle-theme_58006_1" }, Ti = /* @__PURE__
|
|
|
4027
4028
|
});
|
|
4028
4029
|
};
|
|
4029
4030
|
return () => r("nav", {
|
|
4030
|
-
class:
|
|
4031
|
+
class: C(q["elm-page-top"], t.value && q.visible),
|
|
4031
4032
|
style: {
|
|
4032
4033
|
"--elmethis-scoped-size": "64px",
|
|
4033
4034
|
left: e.position === "left" ? "0" : "auto",
|
|
@@ -4037,20 +4038,20 @@ var wi = { "elm-toggle-theme": "_elm-toggle-theme_58006_1" }, Ti = /* @__PURE__
|
|
|
4037
4038
|
}, [
|
|
4038
4039
|
r("div", {
|
|
4039
4040
|
"aria-hidden": "true",
|
|
4040
|
-
class:
|
|
4041
|
+
class: q.partial
|
|
4041
4042
|
}, null),
|
|
4042
4043
|
r("div", {
|
|
4043
4044
|
"aria-hidden": "true",
|
|
4044
|
-
class:
|
|
4045
|
+
class: q.partial
|
|
4045
4046
|
}, null),
|
|
4046
4047
|
r("div", {
|
|
4047
4048
|
"aria-hidden": "true",
|
|
4048
|
-
class:
|
|
4049
|
+
class: q.partial
|
|
4049
4050
|
}, null),
|
|
4050
|
-
r("span", { class:
|
|
4051
|
+
r("span", { class: q.text }, [n("Back to Top")])
|
|
4051
4052
|
]);
|
|
4052
4053
|
}
|
|
4053
|
-
}),
|
|
4054
|
+
}), J = {
|
|
4054
4055
|
"elm-color-primitive-sample": "_elm-color-primitive-sample_vuro0_1",
|
|
4055
4056
|
toolbar: "_toolbar_vuro0_6",
|
|
4056
4057
|
"mode-toggle": "_mode-toggle_vuro0_11",
|
|
@@ -4066,58 +4067,11 @@ var wi = { "elm-toggle-theme": "_elm-toggle-theme_58006_1" }, Ti = /* @__PURE__
|
|
|
4066
4067
|
if (!t || t.length < 3) return null;
|
|
4067
4068
|
let n = (e) => Math.round(Number(e)).toString(16).padStart(2, "0");
|
|
4068
4069
|
return `#${n(t[0])}${n(t[1])}${n(t[2])}`;
|
|
4069
|
-
},
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
500,
|
|
4075
|
-
600,
|
|
4076
|
-
700,
|
|
4077
|
-
800,
|
|
4078
|
-
900
|
|
4079
|
-
], ji = [
|
|
4080
|
-
{
|
|
4081
|
-
hue: "red",
|
|
4082
|
-
steps: J
|
|
4083
|
-
},
|
|
4084
|
-
{
|
|
4085
|
-
hue: "orange",
|
|
4086
|
-
steps: J
|
|
4087
|
-
},
|
|
4088
|
-
{
|
|
4089
|
-
hue: "yellow",
|
|
4090
|
-
steps: J
|
|
4091
|
-
},
|
|
4092
|
-
{
|
|
4093
|
-
hue: "green",
|
|
4094
|
-
steps: J
|
|
4095
|
-
},
|
|
4096
|
-
{
|
|
4097
|
-
hue: "cyan",
|
|
4098
|
-
steps: J
|
|
4099
|
-
},
|
|
4100
|
-
{
|
|
4101
|
-
hue: "blue",
|
|
4102
|
-
steps: J
|
|
4103
|
-
},
|
|
4104
|
-
{
|
|
4105
|
-
hue: "purple",
|
|
4106
|
-
steps: J
|
|
4107
|
-
},
|
|
4108
|
-
{
|
|
4109
|
-
hue: "magenta",
|
|
4110
|
-
steps: J
|
|
4111
|
-
},
|
|
4112
|
-
{
|
|
4113
|
-
hue: "slate",
|
|
4114
|
-
steps: J
|
|
4115
|
-
},
|
|
4116
|
-
{
|
|
4117
|
-
hue: "gold",
|
|
4118
|
-
steps: J
|
|
4119
|
-
}
|
|
4120
|
-
], Mi = /* @__PURE__ */ i({
|
|
4070
|
+
}, ji = Object.entries(Gt.color).map(([e, t]) => ({
|
|
4071
|
+
hue: e,
|
|
4072
|
+
label: e.replaceAll("-", " "),
|
|
4073
|
+
steps: Object.entries(t)
|
|
4074
|
+
})), Mi = /* @__PURE__ */ i({
|
|
4121
4075
|
name: "ElmColorPrimitiveSample",
|
|
4122
4076
|
setup() {
|
|
4123
4077
|
let e = m(null), t = m("variable"), i;
|
|
@@ -4139,40 +4093,37 @@ var wi = { "elm-toggle-theme": "_elm-toggle-theme_58006_1" }, Ti = /* @__PURE__
|
|
|
4139
4093
|
}, 1500);
|
|
4140
4094
|
};
|
|
4141
4095
|
return () => r("div", {
|
|
4142
|
-
class:
|
|
4096
|
+
class: C(J["elm-color-primitive-sample"]),
|
|
4143
4097
|
onClick: (e) => {
|
|
4144
4098
|
a(e);
|
|
4145
4099
|
}
|
|
4146
|
-
}, [r("div", { class:
|
|
4100
|
+
}, [r("div", { class: J.toolbar }, [r("button", {
|
|
4147
4101
|
type: "button",
|
|
4148
|
-
class:
|
|
4102
|
+
class: J["mode-toggle"],
|
|
4149
4103
|
onClick: () => {
|
|
4150
4104
|
t.value = t.value === "variable" ? "hex" : "variable";
|
|
4151
4105
|
}
|
|
4152
4106
|
}, [
|
|
4153
|
-
r(
|
|
4154
|
-
class:
|
|
4155
|
-
path: t.value === "hex" ?
|
|
4107
|
+
r(A, {
|
|
4108
|
+
class: J["mode-toggle-icon"],
|
|
4109
|
+
path: t.value === "hex" ? Ue : Be,
|
|
4156
4110
|
size: "1.25rem"
|
|
4157
4111
|
}, null),
|
|
4158
4112
|
n("Copy: "),
|
|
4159
4113
|
t.value === "hex" ? "hex value" : "variable name"
|
|
4160
|
-
])]), ji.map(({ hue: t,
|
|
4114
|
+
])]), ji.map(({ hue: t, label: n, steps: i }) => r("div", {
|
|
4161
4115
|
key: t,
|
|
4162
|
-
class:
|
|
4163
|
-
}, [r("span", { class:
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
style: { backgroundColor: `var(${i})` }
|
|
4174
|
-
}, null), r("code", { class: q["swatch-name"] }, [e.value === i ? "copied!" : n])]);
|
|
4175
|
-
})])]))]);
|
|
4116
|
+
class: J.group
|
|
4117
|
+
}, [r("span", { class: J["section-title"] }, [n]), r("div", { class: J.scale }, [i.map(([t, n]) => r("div", {
|
|
4118
|
+
key: n.property,
|
|
4119
|
+
class: J.swatch,
|
|
4120
|
+
style: { gridColumn: String(Number(t) / 100) },
|
|
4121
|
+
"data-copy-token": n.property,
|
|
4122
|
+
title: n.property
|
|
4123
|
+
}, [r("div", {
|
|
4124
|
+
class: J["swatch-bg"],
|
|
4125
|
+
style: { backgroundColor: n.ref }
|
|
4126
|
+
}, null), r("code", { class: J["swatch-name"] }, [e.value === n.property ? "copied!" : t])]))])]))]);
|
|
4176
4127
|
}
|
|
4177
4128
|
}), Y = {
|
|
4178
4129
|
"elm-color-semantic-sample": "_elm-color-semantic-sample_6i1j1_1",
|
|
@@ -4320,16 +4271,16 @@ var wi = { "elm-toggle-theme": "_elm-toggle-theme_58006_1" }, Ti = /* @__PURE__
|
|
|
4320
4271
|
}
|
|
4321
4272
|
}, [r("span", { "data-copy-token": e }, [o(e)]), r("span", { "data-copy-token": t }, [o(t)])]))])
|
|
4322
4273
|
])])]);
|
|
4323
|
-
return () => r("div", { class:
|
|
4274
|
+
return () => r("div", { class: C(Y["elm-color-semantic-sample"]) }, [r("div", { class: Y.toolbar }, [r("button", {
|
|
4324
4275
|
type: "button",
|
|
4325
4276
|
class: Y["mode-toggle"],
|
|
4326
4277
|
onClick: () => {
|
|
4327
4278
|
t.value = t.value === "variable" ? "hex" : "variable";
|
|
4328
4279
|
}
|
|
4329
4280
|
}, [
|
|
4330
|
-
r(
|
|
4281
|
+
r(A, {
|
|
4331
4282
|
class: Y["mode-toggle-icon"],
|
|
4332
|
-
path: t.value === "hex" ?
|
|
4283
|
+
path: t.value === "hex" ? Ue : Be,
|
|
4333
4284
|
size: "1.25rem"
|
|
4334
4285
|
}, null),
|
|
4335
4286
|
n("Copy: "),
|
|
@@ -4398,11 +4349,11 @@ var Z = (e) => {
|
|
|
4398
4349
|
let e = c.depth;
|
|
4399
4350
|
if (c.tokens && c.tokens.length !== 0) {
|
|
4400
4351
|
let t;
|
|
4401
|
-
o.push(r(
|
|
4352
|
+
o.push(r(cn, {
|
|
4402
4353
|
key: s,
|
|
4403
4354
|
level: e
|
|
4404
4355
|
}, X(t = Z(c.tokens)) ? t : { default: () => [t] }));
|
|
4405
|
-
} else o.push(r(
|
|
4356
|
+
} else o.push(r(cn, {
|
|
4406
4357
|
key: s,
|
|
4407
4358
|
level: e,
|
|
4408
4359
|
text: c.text
|
|
@@ -4410,11 +4361,11 @@ var Z = (e) => {
|
|
|
4410
4361
|
break;
|
|
4411
4362
|
}
|
|
4412
4363
|
case "hr":
|
|
4413
|
-
o.push(r(
|
|
4364
|
+
o.push(r(Tr, { key: s }, null));
|
|
4414
4365
|
break;
|
|
4415
4366
|
case "html": break;
|
|
4416
4367
|
case "image":
|
|
4417
|
-
o.push(r(
|
|
4368
|
+
o.push(r(ur, {
|
|
4418
4369
|
key: s,
|
|
4419
4370
|
enableModal: !0,
|
|
4420
4371
|
src: c.href,
|
|
@@ -4432,7 +4383,7 @@ var Z = (e) => {
|
|
|
4432
4383
|
break;
|
|
4433
4384
|
case "list": {
|
|
4434
4385
|
let e = c.items.map((e, t) => r("li", { key: t }, [Z(e.tokens)]));
|
|
4435
|
-
o.push(r(
|
|
4386
|
+
o.push(r(Dr, {
|
|
4436
4387
|
key: s,
|
|
4437
4388
|
listStyle: c.ordered ? "ordered" : "unordered"
|
|
4438
4389
|
}, X(e) ? e : { default: () => [e] }));
|
|
@@ -4442,7 +4393,7 @@ var Z = (e) => {
|
|
|
4442
4393
|
o.push(r("li", { key: s }, [c.tokens && c.tokens.length !== 0 ? Z(c.tokens) : c.text]));
|
|
4443
4394
|
break;
|
|
4444
4395
|
case "paragraph":
|
|
4445
|
-
o.push(r(
|
|
4396
|
+
o.push(r(pn, { key: s }, { default: () => [c.tokens && c.tokens.length !== 0 ? Z(c.tokens) : c.text] }));
|
|
4446
4397
|
break;
|
|
4447
4398
|
case "space": break;
|
|
4448
4399
|
case "strong":
|
|
@@ -4457,12 +4408,12 @@ var Z = (e) => {
|
|
|
4457
4408
|
case "table": {
|
|
4458
4409
|
let e, t = (e) => e.map((e, t) => {
|
|
4459
4410
|
let n;
|
|
4460
|
-
return r(
|
|
4461
|
-
}), n = r(
|
|
4411
|
+
return r(Nr, { key: t }, X(n = Z(e.tokens)) ? n : { default: () => [n] });
|
|
4412
|
+
}), n = r(Lr, null, X(e = t(c.header)) ? e : { default: () => [e] }), i = c.rows.map((e, n) => {
|
|
4462
4413
|
let i;
|
|
4463
|
-
return r(
|
|
4414
|
+
return r(Lr, { key: n }, X(i = t(e)) ? i : { default: () => [i] });
|
|
4464
4415
|
});
|
|
4465
|
-
o.push(r(
|
|
4416
|
+
o.push(r(Ar, { key: s }, { default: () => [r(Fr, null, X(n) ? n : { default: () => [n] }), r(jr, null, X(i) ? i : { default: () => [i] })] }));
|
|
4466
4417
|
break;
|
|
4467
4418
|
}
|
|
4468
4419
|
case "text": c.tokens && c.tokens.length !== 0 ? o.push(...Z(c.tokens)) : o.push(c.text);
|
|
@@ -4656,7 +4607,7 @@ var $i = (e) => {
|
|
|
4656
4607
|
let n = "", o = "empty";
|
|
4657
4608
|
return a ? (n = a[t].letter.toUpperCase(), o = a[t].status) : s && (n = (i[t] ?? "").toUpperCase(), o = n ? "tbd" : "empty"), r("div", {
|
|
4658
4609
|
key: t,
|
|
4659
|
-
class:
|
|
4610
|
+
class: C(Q.cell, o === "correct" && Q.correct, o === "present" && Q.present, o === "absent" && Q.absent, o === "tbd" && Q.tbd, o === "empty" && Q.empty)
|
|
4660
4611
|
}, [n]);
|
|
4661
4612
|
});
|
|
4662
4613
|
return r("div", {
|
|
@@ -4666,7 +4617,7 @@ var $i = (e) => {
|
|
|
4666
4617
|
});
|
|
4667
4618
|
return r("div", { class: Q["elm-wordle"] }, [
|
|
4668
4619
|
r("div", {
|
|
4669
|
-
class:
|
|
4620
|
+
class: C(Q["message-area"], d ? Q.error : o === "playing" ? void 0 : Q.status),
|
|
4670
4621
|
"aria-live": "polite"
|
|
4671
4622
|
}, [d || (o === "won" ? `🎉 You won in ${t.length} ${t.length === 1 ? "guess" : "guesses"}!` : o === "lost" ? `😢 The word was "${e.toUpperCase()}"` : null)]),
|
|
4672
4623
|
r("div", { class: Q.board }, [p]),
|
|
@@ -4684,10 +4635,10 @@ var $i = (e) => {
|
|
|
4684
4635
|
return r("button", {
|
|
4685
4636
|
key: e,
|
|
4686
4637
|
"data-key": e,
|
|
4687
|
-
class:
|
|
4638
|
+
class: C(Q.key, e === "Enter" && Q.wide, e === "⌫" && Q.wide, n === "correct" && Q.correct, n === "present" && Q.present, n === "absent" && Q.absent)
|
|
4688
4639
|
}, [e]);
|
|
4689
4640
|
})]))]),
|
|
4690
|
-
r("div", { class:
|
|
4641
|
+
r("div", { class: C(Q["reset-container"], o === "playing" && Q.hidden) }, [r("button", {
|
|
4691
4642
|
class: Q["reset-button"],
|
|
4692
4643
|
onClick: f
|
|
4693
4644
|
}, [n("Play Again")])])
|
|
@@ -4710,4 +4661,4 @@ var $i = (e) => {
|
|
|
4710
4661
|
};
|
|
4711
4662
|
};
|
|
4712
4663
|
//#endregion
|
|
4713
|
-
export { Nn as A2uiSurface,
|
|
4664
|
+
export { Nn as A2uiSurface, vn as CatalogRenderer, Pn as ElmA2ui, ar as ElmAudioPlayer, $r as ElmBlockFallback, ur as ElmBlockImage, vr as ElmBlockQuote, hr as ElmBookmark, Oi as ElmBreadcrumb, ti as ElmButton, ri as ElmButtonDropdown, xr as ElmCallout, ii as ElmCheckbox, qn as ElmCodeBlock, Jt as ElmCollapse, Mi as ElmColorPrimitiveSample, Bi as ElmColorSemanticSample, hi as ElmCopyIcon, Tr as ElmDivider, Xr as ElmDotLoadingIcon, pr as ElmFile, an as ElmFragmentIdentifier, cn as ElmHeading, tr as ElmHtml, nr as ElmHtmlViewer, dn as ElmInlineIcon, E as ElmInlineText, In as ElmKatex, Hn as ElmLanguageIcon, Dr as ElmList, Ui as ElmMarkdown, A as ElmMdiIcon, cr as ElmModal, Cr as ElmNotionCallout, ki as ElmPageTop, pn as ElmParagraph, Gr as ElmParallax, Qr as ElmRectangleWave, oi as ElmSelect, Wn as ElmShikiHighlighter, li as ElmSlider, _i as ElmSquareLoadingIcon, ui as ElmSwitch, en as ElmTab, $t as ElmTabList, tn as ElmTabPanel, Ar as ElmTable, jr as ElmTableBody, Nr as ElmTableCell, Fr as ElmTableHeader, Lr as ElmTableRow, Qt as ElmTabs, di as ElmTextArea, fi as ElmTextField, gr as ElmToggle, Ei as ElmToggleTheme, qr as ElmTooltip, zr as ElmUnsupportedBlock, mi as ElmValidation, Or as HasRowHeaderContext, Et as LANGUAGES, vi as THEME_CHANGE_EVENT, kr as TableSectionContext, wn as basicCatalog, O as defineRenderer, Hr as notionBlockCatalog, Kn as useClipboard, wi as useElmethisTheme, lr as useModal, $i as useWordle };
|