@elmethis/qwik 1.0.0-alpha.24 → 1.0.0-alpha.25
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.qwik.cjs +723 -819
- package/lib/index.qwik.mjs +721 -817
- package/lib/q-manifest.json +5 -7
- package/lib/style.css +332 -365
- package/lib-types/components/ag-ui-client/elm-ag-ui-message-renderer.spec.d.ts +1 -0
- package/lib-types/components/ag-ui-client/elm-ag-ui-prompt-picker.browser.spec.d.ts +1 -0
- package/lib-types/components/ag-ui-client/elm-ag-ui-tool-execution.spec.d.ts +1 -0
- package/lib-types/components/ag-ui-client/input-content/elm-ag-ui-input-content.spec.d.ts +1 -0
- package/lib-types/components/code/elm-code-block.spec.d.ts +1 -0
- package/lib-types/components/code/elm-katex.spec.d.ts +1 -0
- package/lib-types/components/code/elm-shiki-highlighter.spec.d.ts +1 -0
- package/lib-types/components/containments/elm-modal.browser.spec.d.ts +1 -0
- package/lib-types/components/containments/elm-modal.d.ts +6 -0
- package/lib-types/components/containments/elm-modal.spec.d.ts +1 -0
- package/lib-types/components/containments/elm-parallax.spec.d.ts +1 -0
- package/lib-types/components/containments/elm-toggle.browser.spec.d.ts +1 -0
- package/lib-types/components/containments/elm-toggle.spec.d.ts +1 -0
- package/lib-types/components/containments/elm-tooltip.browser.spec.d.ts +1 -0
- package/lib-types/components/containments/elm-tooltip.spec.d.ts +1 -0
- package/lib-types/components/fallback/elm-block-fallback.spec.d.ts +1 -0
- package/lib-types/components/fallback/elm-rectangle-wave.spec.d.ts +1 -0
- package/lib-types/components/fallback/elm-unsupported-block.spec.d.ts +1 -0
- package/lib-types/components/form/elm-button.d.ts +1 -1
- package/lib-types/components/form/elm-button.spec.d.ts +1 -0
- package/lib-types/components/form/elm-checkbox.d.ts +2 -2
- package/lib-types/components/form/elm-checkbox.spec.d.ts +1 -0
- package/lib-types/components/form/elm-select.browser.spec.d.ts +1 -0
- package/lib-types/components/form/elm-select.d.ts +1 -1
- package/lib-types/components/form/elm-switch.spec.d.ts +1 -0
- package/lib-types/components/form/elm-text-area.d.ts +1 -1
- package/lib-types/components/form/elm-text-area.spec.d.ts +1 -0
- package/lib-types/components/form/elm-text-field.d.ts +1 -1
- package/lib-types/components/form/elm-text-field.spec.d.ts +1 -0
- package/lib-types/components/form/elm-validation.spec.d.ts +1 -0
- package/lib-types/components/icon/elm-copy-icon.spec.d.ts +1 -0
- package/lib-types/components/icon/elm-dot-loading-icon.spec.d.ts +1 -0
- package/lib-types/components/icon/elm-inline-icon.spec.d.ts +1 -0
- package/lib-types/components/icon/elm-language-icon.spec.d.ts +1 -0
- package/lib-types/components/icon/elm-mdi-icon.spec.d.ts +1 -0
- package/lib-types/components/icon/elm-square-loading-icon.spec.d.ts +1 -0
- package/lib-types/components/icon/elm-toggle-theme.spec.d.ts +1 -0
- package/lib-types/components/media/elm-block-image.browser.spec.d.ts +1 -0
- package/lib-types/components/media/elm-block-image.spec.d.ts +1 -0
- package/lib-types/components/media/elm-file.spec.d.ts +1 -0
- package/lib-types/components/navigation/elm-bookmark.spec.d.ts +1 -0
- package/lib-types/components/navigation/elm-breadcrumb.spec.d.ts +1 -0
- package/lib-types/components/navigation/elm-page-top.spec.d.ts +1 -0
- package/lib-types/components/others/elm-color-primitive-sample.spec.d.ts +1 -0
- package/lib-types/components/others/elm-color-semantic-sample.spec.d.ts +1 -0
- package/lib-types/components/others/elm-jarkup.spec.d.ts +1 -0
- package/lib-types/components/others/elm-markdown.d.ts +1 -1
- package/lib-types/components/others/elm-markdown.spec.d.ts +1 -0
- package/lib-types/components/others/use-wordle.browser.spec.d.ts +1 -0
- package/lib-types/components/table/elm-table-composition.spec.d.ts +1 -0
- package/lib-types/components/typography/elm-block-quote.spec.d.ts +1 -0
- package/lib-types/components/typography/elm-callout.spec.d.ts +1 -0
- package/lib-types/components/typography/elm-divider.spec.d.ts +1 -0
- package/lib-types/components/typography/elm-fragment-identifier.spec.d.ts +1 -0
- package/lib-types/components/typography/elm-heading.spec.d.ts +1 -0
- package/lib-types/components/typography/elm-inline-text.spec.d.ts +1 -0
- package/lib-types/components/typography/elm-list.spec.d.ts +1 -0
- package/lib-types/components/typography/elm-paragraph.spec.d.ts +1 -0
- package/lib-types/hooks/use-auto-animate.browser.spec.d.ts +1 -0
- package/lib-types/hooks/use-clipboard.browser.spec.d.ts +1 -0
- package/lib-types/hooks/use-elmethis-theme.browser.spec.d.ts +1 -0
- package/lib-types/hooks/use-modal.browser.spec.d.ts +1 -0
- package/lib-types/hooks/use-modal.d.ts +5 -10
- package/lib-types/hooks/use-storage.browser.spec.d.ts +1 -0
- package/lib-types/index.d.ts +0 -1
- package/package.json +13 -5
package/lib/index.qwik.cjs
CHANGED
|
@@ -29,7 +29,7 @@ const core$1 = require("@qwik.dev/core");
|
|
|
29
29
|
const v0_9 = require("@a2ui/web_core/v0_9");
|
|
30
30
|
const basic_catalog = require("@a2ui/web_core/v0_9/basic_catalog");
|
|
31
31
|
const jsxRuntime = require("@qwik.dev/core/jsx-runtime");
|
|
32
|
-
const katex
|
|
32
|
+
const katex = require("katex");
|
|
33
33
|
const js = require("@mdi/js");
|
|
34
34
|
const shiki = require("shiki");
|
|
35
35
|
const ikumaDark = require("@46ki75/ikuma-theme/dark");
|
|
@@ -42,25 +42,25 @@ const zodToJsonSchema = require("zod-to-json-schema");
|
|
|
42
42
|
const uuid = require("uuid");
|
|
43
43
|
const autoAnimate = require("@formkit/auto-animate");
|
|
44
44
|
const esToolkit = require("es-toolkit");
|
|
45
|
-
const tab = "
|
|
46
|
-
const active$3 = "
|
|
47
|
-
const styles$
|
|
48
|
-
"elm-tabs": "_elm-
|
|
49
|
-
"tab-container": "_tab-
|
|
45
|
+
const tab = "_tab_1fco0_14";
|
|
46
|
+
const active$3 = "_active_1fco0_37";
|
|
47
|
+
const styles$T = {
|
|
48
|
+
"elm-tabs": "_elm-tabs_1fco0_1",
|
|
49
|
+
"tab-container": "_tab-container_1fco0_14",
|
|
50
50
|
tab,
|
|
51
51
|
active: active$3,
|
|
52
|
-
"tab-content": "_tab-
|
|
53
|
-
"tab-content-inner": "_tab-content-
|
|
52
|
+
"tab-content": "_tab-content_1fco0_48",
|
|
53
|
+
"tab-content-inner": "_tab-content-inner_1fco0_53"
|
|
54
54
|
};
|
|
55
55
|
const row$2 = "_row_12wiu_5";
|
|
56
|
-
const open$
|
|
56
|
+
const open$1 = "_open_12wiu_11";
|
|
57
57
|
const column$2 = "_column_12wiu_16";
|
|
58
58
|
const both = "_both_12wiu_27";
|
|
59
59
|
const inner = "_inner_12wiu_44";
|
|
60
|
-
const styles$
|
|
60
|
+
const styles$S = {
|
|
61
61
|
"elm-collapse": "_elm-collapse_12wiu_1",
|
|
62
62
|
row: row$2,
|
|
63
|
-
open: open$
|
|
63
|
+
open: open$1,
|
|
64
64
|
column: column$2,
|
|
65
65
|
both,
|
|
66
66
|
inner
|
|
@@ -77,12 +77,12 @@ const ElmCollapse = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.i
|
|
|
77
77
|
]);
|
|
78
78
|
return /* @__PURE__ */ core$1._jsxSplit("div", {
|
|
79
79
|
class: [
|
|
80
|
-
styles$
|
|
80
|
+
styles$S["elm-collapse"],
|
|
81
81
|
{
|
|
82
|
-
[styles$
|
|
83
|
-
[styles$
|
|
84
|
-
[styles$
|
|
85
|
-
[styles$
|
|
82
|
+
[styles$S["open"]]: _rawProps.isOpen,
|
|
83
|
+
[styles$S["row"]]: (_rawProps.direction ?? "row") === "row",
|
|
84
|
+
[styles$S["column"]]: (_rawProps.direction ?? "row") === "column",
|
|
85
|
+
[styles$S["both"]]: (_rawProps.direction ?? "row") === "both"
|
|
86
86
|
},
|
|
87
87
|
_rawProps.class
|
|
88
88
|
],
|
|
@@ -91,7 +91,7 @@ const ElmCollapse = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.i
|
|
|
91
91
|
]),
|
|
92
92
|
...core$1._getVarProps(props)
|
|
93
93
|
}, core$1._getConstProps(props), /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
94
|
-
class: styles$
|
|
94
|
+
class: styles$S["inner"]
|
|
95
95
|
}, /* @__PURE__ */ core$1._jsxSorted(core$1.Slot, null, null, null, 3, "iE_0"), 1, null), 0, "iE_1");
|
|
96
96
|
}, "ElmCollapse_component_P0XF5bWlJxw"));
|
|
97
97
|
function useBindableSignal({ signal, defaultValue }) {
|
|
@@ -117,7 +117,7 @@ const ElmTabs = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlin
|
|
|
117
117
|
});
|
|
118
118
|
return /* @__PURE__ */ core$1._jsxSplit("div", {
|
|
119
119
|
class: [
|
|
120
|
-
styles$
|
|
120
|
+
styles$T["elm-tabs"],
|
|
121
121
|
props.class
|
|
122
122
|
],
|
|
123
123
|
...core$1._getVarProps(rest)
|
|
@@ -129,7 +129,7 @@ const ElmTabList = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.in
|
|
|
129
129
|
]);
|
|
130
130
|
return /* @__PURE__ */ core$1._jsxSplit("div", {
|
|
131
131
|
class: [
|
|
132
|
-
styles$
|
|
132
|
+
styles$T["tab-container"],
|
|
133
133
|
_rawProps.class
|
|
134
134
|
],
|
|
135
135
|
...core$1._getVarProps(rest)
|
|
@@ -150,9 +150,9 @@ const ElmTab = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inline
|
|
|
150
150
|
]);
|
|
151
151
|
return /* @__PURE__ */ core$1._jsxSplit("div", {
|
|
152
152
|
class: [
|
|
153
|
-
styles$
|
|
153
|
+
styles$T["tab"],
|
|
154
154
|
{
|
|
155
|
-
[styles$
|
|
155
|
+
[styles$T["active"]]: ctx.selectedValue.value === props.value
|
|
156
156
|
},
|
|
157
157
|
props.class
|
|
158
158
|
],
|
|
@@ -168,7 +168,7 @@ const ElmTabPanel = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.i
|
|
|
168
168
|
const ctx = core$1.useContext(ElmTabsContext);
|
|
169
169
|
return /* @__PURE__ */ core$1._jsxSplit("div", {
|
|
170
170
|
class: [
|
|
171
|
-
styles$
|
|
171
|
+
styles$T["tab-content"],
|
|
172
172
|
props.class
|
|
173
173
|
],
|
|
174
174
|
...core$1._getVarProps(rest)
|
|
@@ -180,33 +180,31 @@ const ElmTabPanel = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.i
|
|
|
180
180
|
]),
|
|
181
181
|
transitionTimingFunction: core$1._wrapProp(ctx, "transitionTimingFunction")
|
|
182
182
|
}, /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
183
|
-
class: styles$
|
|
183
|
+
class: styles$T["tab-content-inner"]
|
|
184
184
|
}, /* @__PURE__ */ core$1._jsxSorted(core$1.Slot, null, null, null, 3, "lK_6"), 1, null), 1, "lK_7"), 0, "lK_8");
|
|
185
185
|
}, "ElmTabPanel_component_4GhH207NkRY"));
|
|
186
|
-
const h1 = "
|
|
187
|
-
const h2 = "
|
|
188
|
-
const
|
|
189
|
-
const
|
|
190
|
-
const
|
|
191
|
-
const
|
|
192
|
-
const
|
|
193
|
-
|
|
194
|
-
"heading-common": "_heading-common_tvnol_1",
|
|
186
|
+
const h1 = "_h1_9vw8y_13";
|
|
187
|
+
const h2 = "_h2_9vw8y_35";
|
|
188
|
+
const h3 = "_h3_9vw8y_72";
|
|
189
|
+
const h4 = "_h4_9vw8y_87";
|
|
190
|
+
const h5 = "_h5_9vw8y_91";
|
|
191
|
+
const h6 = "_h6_9vw8y_95";
|
|
192
|
+
const styles$R = {
|
|
193
|
+
"elm-heading": "_elm-heading_9vw8y_1",
|
|
195
194
|
h1,
|
|
196
195
|
h2,
|
|
197
|
-
|
|
196
|
+
"h2-underline": "_h2-underline_9vw8y_61",
|
|
198
197
|
h3,
|
|
199
198
|
h4,
|
|
200
199
|
h5,
|
|
201
200
|
h6
|
|
202
201
|
};
|
|
203
|
-
const text$
|
|
202
|
+
const text$2 = "_text_zme4t_1";
|
|
204
203
|
const textStyles = {
|
|
205
|
-
text: text$
|
|
204
|
+
text: text$2
|
|
206
205
|
};
|
|
207
|
-
const
|
|
208
|
-
|
|
209
|
-
fragment
|
|
206
|
+
const styles$Q = {
|
|
207
|
+
"elm-fragment-identifier": "_elm-fragment-identifier_xb2v4_1"
|
|
210
208
|
};
|
|
211
209
|
const ElmFragmentIdentifier = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl((_rawProps) => {
|
|
212
210
|
const props = core$1._restProps(_rawProps, [
|
|
@@ -226,7 +224,7 @@ const ElmFragmentIdentifier = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ *
|
|
|
226
224
|
}, "ElmFragmentIdentifier_component_handleHashClick_0I1su3qeCsY");
|
|
227
225
|
return /* @__PURE__ */ core$1._jsxSplit("span", {
|
|
228
226
|
class: [
|
|
229
|
-
styles$
|
|
227
|
+
styles$Q["elm-fragment-identifier"],
|
|
230
228
|
_rawProps.class
|
|
231
229
|
],
|
|
232
230
|
"q-e:click": /* @__PURE__ */ core$1.inlinedQrl((_, _1, _rawProps2, handleHashClick2) => handleHashClick2(_rawProps2.id), "ElmFragmentIdentifier_component_span_q_e_click_acZZ1kAS1Ek"),
|
|
@@ -256,9 +254,9 @@ const ElmHeading = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.in
|
|
|
256
254
|
const Tag = `h${_rawProps.level}`;
|
|
257
255
|
return /* @__PURE__ */ core$1._jsxSplit(Tag, {
|
|
258
256
|
class: [
|
|
259
|
-
styles$
|
|
257
|
+
styles$R["elm-heading"],
|
|
260
258
|
textStyles.text,
|
|
261
|
-
styles$
|
|
259
|
+
styles$R[`h${_rawProps.level}`],
|
|
262
260
|
_rawProps.class
|
|
263
261
|
],
|
|
264
262
|
style: {
|
|
@@ -278,24 +276,22 @@ const ElmHeading = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.in
|
|
|
278
276
|
id: core$1._wrapProp(_rawProps, "id")
|
|
279
277
|
}, null, 3, "sL_1"), 1, "sL_2"),
|
|
280
278
|
_rawProps.level === 2 && /* @__PURE__ */ core$1._jsxSorted("span", null, {
|
|
281
|
-
class: styles$
|
|
279
|
+
class: styles$R["h2-underline"],
|
|
282
280
|
"aria-hidden": "true"
|
|
283
281
|
}, null, 3, "sL_3")
|
|
284
282
|
], 0, "sL_4");
|
|
285
283
|
}, "ElmHeading_component_O0GozTFBBog"));
|
|
286
|
-
const
|
|
287
|
-
const
|
|
288
|
-
const
|
|
289
|
-
const
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
code: code$2,
|
|
284
|
+
const code$1 = "_code_uf3sg_13";
|
|
285
|
+
const kbd = "_kbd_uf3sg_25";
|
|
286
|
+
const link$1 = "_link_uf3sg_58";
|
|
287
|
+
const styles$P = {
|
|
288
|
+
"elm-inline-text": "_elm-inline-text_uf3sg_1",
|
|
289
|
+
code: code$1,
|
|
293
290
|
kbd,
|
|
294
291
|
link: link$1
|
|
295
292
|
};
|
|
296
|
-
const
|
|
297
|
-
|
|
298
|
-
icon: icon$7
|
|
293
|
+
const styles$O = {
|
|
294
|
+
"elm-inline-icon": "_elm-inline-icon_1qs0i_1"
|
|
299
295
|
};
|
|
300
296
|
const _hf0$Q = (p0) => p0.width ?? p0.size ?? 16;
|
|
301
297
|
const _hf1$i = (p0) => p0.height ?? p0.size ?? 16;
|
|
@@ -310,7 +306,7 @@ const ElmInlineIcon = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1
|
|
|
310
306
|
]);
|
|
311
307
|
return /* @__PURE__ */ core$1._jsxSplit("span", {
|
|
312
308
|
class: [
|
|
313
|
-
styles$
|
|
309
|
+
styles$O["elm-inline-icon"],
|
|
314
310
|
_rawProps.class
|
|
315
311
|
],
|
|
316
312
|
...core$1._getVarProps(props)
|
|
@@ -324,7 +320,7 @@ const ElmInlineIcon = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1
|
|
|
324
320
|
_rawProps
|
|
325
321
|
])
|
|
326
322
|
}, {
|
|
327
|
-
class: styles$
|
|
323
|
+
class: styles$O["elm-inline-icon"]
|
|
328
324
|
}, null, 3, null), 0, "D4_0");
|
|
329
325
|
}, "ElmInlineIcon_component_9LkENpSGozA"));
|
|
330
326
|
const _hf0$P = (p0) => ({
|
|
@@ -355,7 +351,7 @@ const ElmInlineText = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1
|
|
|
355
351
|
vnode = /* @__PURE__ */ core$1._jsxSorted("a", {
|
|
356
352
|
href: core$1._wrapProp(_rawProps, "href")
|
|
357
353
|
}, {
|
|
358
|
-
class: styles$
|
|
354
|
+
class: styles$P.link,
|
|
359
355
|
target: "_blank",
|
|
360
356
|
rel: "noopener noreferrer"
|
|
361
357
|
}, [
|
|
@@ -367,18 +363,18 @@ const ElmInlineText = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1
|
|
|
367
363
|
], 1, "7t_2");
|
|
368
364
|
}
|
|
369
365
|
if (_rawProps.kbd ?? false) vnode = /* @__PURE__ */ core$1._jsxSorted("kbd", null, {
|
|
370
|
-
class: styles$
|
|
366
|
+
class: styles$P.kbd
|
|
371
367
|
}, vnode, 1, "7t_3");
|
|
372
368
|
if (_rawProps.strikethrough ?? false) vnode = /* @__PURE__ */ core$1._jsxSorted("del", null, null, vnode, 1, "7t_4");
|
|
373
369
|
if (_rawProps.italic ?? false) vnode = /* @__PURE__ */ core$1._jsxSorted("em", null, null, vnode, 1, "7t_5");
|
|
374
370
|
if (_rawProps.underline ?? false) vnode = /* @__PURE__ */ core$1._jsxSorted("ins", null, null, vnode, 1, "7t_6");
|
|
375
371
|
if (_rawProps.bold ?? false) vnode = /* @__PURE__ */ core$1._jsxSorted("strong", null, null, vnode, 1, "7t_7");
|
|
376
372
|
if (_rawProps.code ?? false) vnode = /* @__PURE__ */ core$1._jsxSorted("code", null, {
|
|
377
|
-
class: styles$
|
|
373
|
+
class: styles$P.code
|
|
378
374
|
}, vnode, 1, "7t_8");
|
|
379
375
|
if (_rawProps.ruby) {
|
|
380
376
|
vnode = /* @__PURE__ */ core$1._jsxSorted("ruby", null, {
|
|
381
|
-
class: styles$
|
|
377
|
+
class: styles$P["elm-inline-text"]
|
|
382
378
|
}, [
|
|
383
379
|
/* @__PURE__ */ core$1._jsxSorted("span", null, null, vnode, 1, null),
|
|
384
380
|
/* @__PURE__ */ core$1._jsxSorted("rt", null, null, core$1._wrapProp(_rawProps, "ruby"), 1, null)
|
|
@@ -386,7 +382,7 @@ const ElmInlineText = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1
|
|
|
386
382
|
}
|
|
387
383
|
return /* @__PURE__ */ core$1._jsxSplit("span", {
|
|
388
384
|
class: [
|
|
389
|
-
styles$
|
|
385
|
+
styles$P["elm-inline-text"],
|
|
390
386
|
textStyles.text,
|
|
391
387
|
_rawProps.class
|
|
392
388
|
],
|
|
@@ -396,9 +392,8 @@ const ElmInlineText = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1
|
|
|
396
392
|
...core$1._getVarProps(rest)
|
|
397
393
|
}, core$1._getConstProps(rest), vnode, 0, "7t_10");
|
|
398
394
|
}, "ElmInlineText_component_MdjKbLJ3SR0"));
|
|
399
|
-
const
|
|
400
|
-
|
|
401
|
-
paragraph
|
|
395
|
+
const styles$N = {
|
|
396
|
+
"elm-paragraph": "_elm-paragraph_rbsk5_1"
|
|
402
397
|
};
|
|
403
398
|
const _hf0$O = (p0) => ({
|
|
404
399
|
...p0.style,
|
|
@@ -414,7 +409,7 @@ const ElmParagraph = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.
|
|
|
414
409
|
]);
|
|
415
410
|
return /* @__PURE__ */ core$1._jsxSplit("p", {
|
|
416
411
|
class: [
|
|
417
|
-
styles$
|
|
412
|
+
styles$N["elm-paragraph"],
|
|
418
413
|
textStyles.text,
|
|
419
414
|
_rawProps.class
|
|
420
415
|
],
|
|
@@ -428,10 +423,10 @@ const surface$1 = "_surface_4ps3c_5";
|
|
|
428
423
|
const row$1 = "_row_4ps3c_47";
|
|
429
424
|
const column$1 = "_column_4ps3c_53";
|
|
430
425
|
const list = "_list_4ps3c_64";
|
|
431
|
-
const card = "_card_4ps3c_81";
|
|
432
|
-
const button
|
|
426
|
+
const card$1 = "_card_4ps3c_81";
|
|
427
|
+
const button = "_button_4ps3c_91";
|
|
433
428
|
const image$3 = "_image_4ps3c_122";
|
|
434
|
-
const icon$
|
|
429
|
+
const icon$4 = "_icon_4ps3c_130";
|
|
435
430
|
const divider$2 = "_divider_4ps3c_139";
|
|
436
431
|
const label$1 = "_label_4ps3c_161";
|
|
437
432
|
const input$2 = "_input_4ps3c_167";
|
|
@@ -440,7 +435,7 @@ const slider = "_slider_4ps3c_192";
|
|
|
440
435
|
const modal = "_modal_4ps3c_199";
|
|
441
436
|
const video = "_video_4ps3c_209";
|
|
442
437
|
const audio = "_audio_4ps3c_210";
|
|
443
|
-
const styles$
|
|
438
|
+
const styles$M = {
|
|
444
439
|
"elm-a2ui": "_elm-a2ui_4ps3c_1",
|
|
445
440
|
surface: surface$1,
|
|
446
441
|
row: row$1,
|
|
@@ -449,11 +444,11 @@ const styles$N = {
|
|
|
449
444
|
list,
|
|
450
445
|
"list-horizontal": "_list-horizontal_4ps3c_71",
|
|
451
446
|
"list-item": "_list-item_4ps3c_75",
|
|
452
|
-
card,
|
|
453
|
-
button
|
|
447
|
+
card: card$1,
|
|
448
|
+
button,
|
|
454
449
|
"button-primary": "_button-primary_4ps3c_110",
|
|
455
450
|
image: image$3,
|
|
456
|
-
icon: icon$
|
|
451
|
+
icon: icon$4,
|
|
457
452
|
divider: divider$2,
|
|
458
453
|
"divider-vertical": "_divider-vertical_4ps3c_145",
|
|
459
454
|
"text-field": "_text-field_4ps3c_155",
|
|
@@ -577,28 +572,28 @@ const basicCatalog = new CatalogRenderer([
|
|
|
577
572
|
alignItems: alignItemsMap[_rawProps.props.align ?? "center"]
|
|
578
573
|
}
|
|
579
574
|
}, {
|
|
580
|
-
class: styles$
|
|
575
|
+
class: styles$M.row
|
|
581
576
|
}, _rawProps.childRefs(_rawProps.props.children).map(({ id, path: path2 }, i) => /* @__PURE__ */ core$1._jsxSorted("span", null, {
|
|
582
|
-
class: styles$
|
|
577
|
+
class: styles$M["child-wrap"]
|
|
583
578
|
}, _rawProps.renderChild(id, path2, i), 1, `${id}:${i}`)), 1, "Lh_3")),
|
|
584
579
|
defineRenderer(basic_catalog.ColumnApi, (_rawProps) => /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
585
|
-
class: styles$
|
|
580
|
+
class: styles$M.column,
|
|
586
581
|
style: {
|
|
587
582
|
"--margin-block": "2rem"
|
|
588
583
|
}
|
|
589
584
|
}, _rawProps.childRefs(_rawProps.props.children).map(({ id, path: path2 }, i) => /* @__PURE__ */ core$1._jsxSorted("span", null, {
|
|
590
|
-
class: styles$
|
|
585
|
+
class: styles$M["child-wrap"]
|
|
591
586
|
}, _rawProps.renderChild(id, path2, i), 1, `${id}:${i}`)), 1, "Lh_4")),
|
|
592
587
|
defineRenderer(basic_catalog.ListApi, (_rawProps) => /* @__PURE__ */ core$1._jsxSorted("div", {
|
|
593
588
|
class: [
|
|
594
|
-
styles$
|
|
595
|
-
_rawProps.props.direction === "horizontal" && styles$
|
|
589
|
+
styles$M.list,
|
|
590
|
+
_rawProps.props.direction === "horizontal" && styles$M["list-horizontal"]
|
|
596
591
|
]
|
|
597
592
|
}, null, _rawProps.childRefs(_rawProps.props.children).map(({ id, path: path2 }, i) => /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
598
|
-
class: styles$
|
|
593
|
+
class: styles$M["list-item"]
|
|
599
594
|
}, _rawProps.renderChild(id, path2, i), 1, `${id}:${i}`)), 1, "Lh_5")),
|
|
600
595
|
defineRenderer(basic_catalog.CardApi, (_rawProps) => /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
601
|
-
class: styles$
|
|
596
|
+
class: styles$M.card
|
|
602
597
|
}, _rawProps.renderChild(_rawProps.props.child), 1, "Lh_6")),
|
|
603
598
|
// Rendered as a div-with-role rather than a native <button> because the
|
|
604
599
|
// A2UI `child` can be any component (Row, Column, Card, etc.), and those
|
|
@@ -606,8 +601,8 @@ const basicCatalog = new CatalogRenderer([
|
|
|
606
601
|
// SSR validator (Q12).
|
|
607
602
|
defineRenderer(basic_catalog.ButtonApi, (_rawProps) => /* @__PURE__ */ core$1._jsxSorted("div", {
|
|
608
603
|
class: [
|
|
609
|
-
styles$
|
|
610
|
-
_rawProps.props.variant === "primary" && styles$
|
|
604
|
+
styles$M.button,
|
|
605
|
+
_rawProps.props.variant === "primary" && styles$M["button-primary"]
|
|
611
606
|
],
|
|
612
607
|
"q-e:click": _rawProps.props.action ? () => _rawProps.dispatchAction$("action") : void 0,
|
|
613
608
|
"q-e:keydown": _rawProps.props.action ? (e) => {
|
|
@@ -629,7 +624,7 @@ const basicCatalog = new CatalogRenderer([
|
|
|
629
624
|
objectFit: objectFitMap[_rawProps.props.fit ?? "cover"]
|
|
630
625
|
}
|
|
631
626
|
}, {
|
|
632
|
-
class: styles$
|
|
627
|
+
class: styles$M.image
|
|
633
628
|
}, null, 3, "Lh_8")
|
|
634
629
|
)),
|
|
635
630
|
defineRenderer(basic_catalog.IconApi, (_rawProps) => {
|
|
@@ -638,13 +633,13 @@ const basicCatalog = new CatalogRenderer([
|
|
|
638
633
|
"aria-label": name,
|
|
639
634
|
"data-icon": name
|
|
640
635
|
}, {
|
|
641
|
-
class: styles$
|
|
636
|
+
class: styles$M.icon
|
|
642
637
|
}, null, 3, "Lh_9");
|
|
643
638
|
}),
|
|
644
639
|
defineRenderer(basic_catalog.DividerApi, (_rawProps) => /* @__PURE__ */ core$1._jsxSorted("div", {
|
|
645
640
|
class: [
|
|
646
|
-
styles$
|
|
647
|
-
_rawProps.props.axis === "vertical" && styles$
|
|
641
|
+
styles$M.divider,
|
|
642
|
+
_rawProps.props.axis === "vertical" && styles$M["divider-vertical"]
|
|
648
643
|
]
|
|
649
644
|
}, {
|
|
650
645
|
role: "separator"
|
|
@@ -653,10 +648,10 @@ const basicCatalog = new CatalogRenderer([
|
|
|
653
648
|
const variant = _rawProps.props.variant ?? "shortText";
|
|
654
649
|
const value = _rawProps.props.value ? _rawProps.resolve(_rawProps.props.value) : "";
|
|
655
650
|
return /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
656
|
-
class: styles$
|
|
651
|
+
class: styles$M["text-field"]
|
|
657
652
|
}, [
|
|
658
653
|
/* @__PURE__ */ core$1._jsxSorted("label", null, {
|
|
659
|
-
class: styles$
|
|
654
|
+
class: styles$M.label
|
|
660
655
|
}, _rawProps.resolve(_rawProps.props.label), 1, null),
|
|
661
656
|
variant === "longText" ? /* @__PURE__ */ core$1._jsxSorted("textarea", {
|
|
662
657
|
"q-e:change": /* @__PURE__ */ core$1.inlinedQrl((_e, el, _rawProps2) => _rawProps2.setBinding$("value", el.value), "basicCatalog_defineRenderer_div_textarea_q_e_change_AvRxzHDOuzE"),
|
|
@@ -664,7 +659,7 @@ const basicCatalog = new CatalogRenderer([
|
|
|
664
659
|
"q:p": _rawProps,
|
|
665
660
|
value
|
|
666
661
|
}, {
|
|
667
|
-
class: styles$
|
|
662
|
+
class: styles$M.input
|
|
668
663
|
}, null, 6, "Lh_11") : /* @__PURE__ */ core$1._jsxSorted("input", {
|
|
669
664
|
"q-e:change": /* @__PURE__ */ core$1.inlinedQrl((_e, el, _rawProps2) => _rawProps2.setBinding$("value", el.value), "basicCatalog_defineRenderer_div_input_q_e_change_d4MNBikoI0c"),
|
|
670
665
|
"q-e:input": /* @__PURE__ */ core$1.inlinedQrl((_e, el, _rawProps2) => _rawProps2.setBinding$("value", el.value), "basicCatalog_defineRenderer_div_input_q_e_input_XTp8fL9T8eo"),
|
|
@@ -672,14 +667,14 @@ const basicCatalog = new CatalogRenderer([
|
|
|
672
667
|
type: textFieldInputType[variant] ?? "text",
|
|
673
668
|
value
|
|
674
669
|
}, {
|
|
675
|
-
class: styles$
|
|
670
|
+
class: styles$M.input
|
|
676
671
|
}, null, 6, "Lh_12")
|
|
677
672
|
], 1, "Lh_13");
|
|
678
673
|
}),
|
|
679
674
|
defineRenderer(basic_catalog.CheckBoxApi, (_rawProps) => {
|
|
680
675
|
const checked2 = typeof _rawProps.props.value === "boolean" ? _rawProps.props.value : Boolean(_rawProps.ctx.dataContext.resolveDynamicValue(_rawProps.props.value) ?? false);
|
|
681
676
|
return /* @__PURE__ */ core$1._jsxSorted("label", null, {
|
|
682
|
-
class: styles$
|
|
677
|
+
class: styles$M.checkbox
|
|
683
678
|
}, [
|
|
684
679
|
/* @__PURE__ */ core$1._jsxSorted("input", {
|
|
685
680
|
checked: checked2,
|
|
@@ -689,7 +684,7 @@ const basicCatalog = new CatalogRenderer([
|
|
|
689
684
|
type: "checkbox"
|
|
690
685
|
}, null, 6, null),
|
|
691
686
|
/* @__PURE__ */ core$1._jsxSorted("span", null, {
|
|
692
|
-
class: styles$
|
|
687
|
+
class: styles$M["checkbox-label"]
|
|
693
688
|
}, _rawProps.resolve(_rawProps.props.label), 1, null)
|
|
694
689
|
], 1, "Lh_14");
|
|
695
690
|
}),
|
|
@@ -707,7 +702,7 @@ const basicCatalog = new CatalogRenderer([
|
|
|
707
702
|
"q:p": _rawProps,
|
|
708
703
|
value
|
|
709
704
|
}, {
|
|
710
|
-
class: styles$
|
|
705
|
+
class: styles$M.slider,
|
|
711
706
|
type: "range"
|
|
712
707
|
}, null, 6, "Lh_15");
|
|
713
708
|
}),
|
|
@@ -722,23 +717,23 @@ const basicCatalog = new CatalogRenderer([
|
|
|
722
717
|
}, null, _rawProps.renderChild(tab2.child), 1, idx))
|
|
723
718
|
], 1, "Lh_17")),
|
|
724
719
|
defineRenderer(basic_catalog.ModalApi, (_rawProps) => /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
725
|
-
class: styles$
|
|
720
|
+
class: styles$M.modal
|
|
726
721
|
}, [
|
|
727
722
|
_rawProps.renderChild(_rawProps.props.trigger),
|
|
728
723
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
729
|
-
class: styles$
|
|
724
|
+
class: styles$M["modal-content"]
|
|
730
725
|
}, _rawProps.renderChild(_rawProps.props.content), 1, null)
|
|
731
726
|
], 1, "Lh_18")),
|
|
732
727
|
defineRenderer(basic_catalog.VideoApi, (_rawProps) => /* @__PURE__ */ core$1._jsxSorted("video", {
|
|
733
728
|
src: _rawProps.resolve(_rawProps.props.url)
|
|
734
729
|
}, {
|
|
735
|
-
class: styles$
|
|
730
|
+
class: styles$M.video,
|
|
736
731
|
controls: true
|
|
737
732
|
}, null, 3, "Lh_19")),
|
|
738
733
|
defineRenderer(basic_catalog.AudioPlayerApi, (_rawProps) => /* @__PURE__ */ core$1._jsxSorted("audio", {
|
|
739
734
|
src: _rawProps.resolve(_rawProps.props.url)
|
|
740
735
|
}, {
|
|
741
|
-
class: styles$
|
|
736
|
+
class: styles$M.audio,
|
|
742
737
|
controls: true
|
|
743
738
|
}, null, 3, "Lh_20")),
|
|
744
739
|
defineRenderer(basic_catalog.ChoicePickerApi, (_rawProps) => {
|
|
@@ -747,23 +742,23 @@ const basicCatalog = new CatalogRenderer([
|
|
|
747
742
|
const multi = (_rawProps.props.variant ?? "mutuallyExclusive") === "multipleSelection";
|
|
748
743
|
return /* @__PURE__ */ core$1._jsxSorted("div", {
|
|
749
744
|
"data-choice-picker": core$1._wrapProp(_rawProps, "componentId"),
|
|
750
|
-
"q-e:change": /* @__PURE__ */ core$1.inlinedQrl((_e,
|
|
751
|
-
const inputs =
|
|
745
|
+
"q-e:change": /* @__PURE__ */ core$1.inlinedQrl((_e, wrapper, _rawProps2) => {
|
|
746
|
+
const inputs = wrapper.querySelectorAll("input");
|
|
752
747
|
const isMulti = inputs.length > 0 && inputs[0].type === "checkbox";
|
|
753
|
-
const checked2 = Array.from(
|
|
748
|
+
const checked2 = Array.from(wrapper.querySelectorAll("input:checked")).map((i) => i.value);
|
|
754
749
|
return _rawProps2.setBinding$("value", isMulti ? checked2 : checked2.slice(0, 1));
|
|
755
750
|
}, "basicCatalog_defineRenderer_div_q_e_change_HaNxxdy0Z1g"),
|
|
756
751
|
"q:p": _rawProps
|
|
757
752
|
}, {
|
|
758
|
-
class: styles$
|
|
753
|
+
class: styles$M["choice-picker"]
|
|
759
754
|
}, [
|
|
760
755
|
_rawProps.props.label ? /* @__PURE__ */ core$1._jsxSorted("span", null, {
|
|
761
|
-
class: styles$
|
|
756
|
+
class: styles$M["choice-picker-label"]
|
|
762
757
|
}, _rawProps.resolve(_rawProps.props.label), 1, "Lh_21") : null,
|
|
763
758
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
764
|
-
class: styles$
|
|
759
|
+
class: styles$M["choice-picker-options"]
|
|
765
760
|
}, _rawProps.props.options.map((opt) => /* @__PURE__ */ core$1._jsxSorted("label", null, {
|
|
766
|
-
class: styles$
|
|
761
|
+
class: styles$M["choice-picker-option"]
|
|
767
762
|
}, [
|
|
768
763
|
/* @__PURE__ */ core$1._jsxSorted("input", {
|
|
769
764
|
checked: selected.includes(opt.value),
|
|
@@ -780,10 +775,10 @@ const basicCatalog = new CatalogRenderer([
|
|
|
780
775
|
const enableTime = _rawProps.props.enableTime ?? false;
|
|
781
776
|
const inputType = enableDate && enableTime ? "datetime-local" : enableDate ? "date" : enableTime ? "time" : "text";
|
|
782
777
|
return /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
783
|
-
class: styles$
|
|
778
|
+
class: styles$M["datetime-input"]
|
|
784
779
|
}, [
|
|
785
780
|
_rawProps.props.label ? /* @__PURE__ */ core$1._jsxSorted("label", null, {
|
|
786
|
-
class: styles$
|
|
781
|
+
class: styles$M.label
|
|
787
782
|
}, _rawProps.resolve(_rawProps.props.label), 1, "Lh_23") : null,
|
|
788
783
|
/* @__PURE__ */ core$1._jsxSorted("input", {
|
|
789
784
|
max: _rawProps.props.max != null ? String(_rawProps.props.max) : void 0,
|
|
@@ -794,7 +789,7 @@ const basicCatalog = new CatalogRenderer([
|
|
|
794
789
|
type: inputType,
|
|
795
790
|
value: _rawProps.props.value ? _rawProps.resolve(_rawProps.props.value) : ""
|
|
796
791
|
}, {
|
|
797
|
-
class: styles$
|
|
792
|
+
class: styles$M.input
|
|
798
793
|
}, null, 6, null)
|
|
799
794
|
], 1, "Lh_24");
|
|
800
795
|
})
|
|
@@ -1027,7 +1022,7 @@ const A2uiSurface = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.i
|
|
|
1027
1022
|
core$1.useContextProvider(A2uiSurfaceContext, props.surface);
|
|
1028
1023
|
core$1.useContextProvider(A2uiAncestorContext, []);
|
|
1029
1024
|
return /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
1030
|
-
class: styles$
|
|
1025
|
+
class: styles$M.surface,
|
|
1031
1026
|
style: {
|
|
1032
1027
|
"--elmethis-margin-block-start": "2rem"
|
|
1033
1028
|
}
|
|
@@ -1040,7 +1035,7 @@ const SurfaceView = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.i
|
|
|
1040
1035
|
core$1.useContextProvider(A2uiSurfaceContext, props.surface);
|
|
1041
1036
|
core$1.useContextProvider(A2uiAncestorContext, []);
|
|
1042
1037
|
return /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
1043
|
-
class: styles$
|
|
1038
|
+
class: styles$M.surface,
|
|
1044
1039
|
style: {
|
|
1045
1040
|
"--elmethis-margin-block-start": "2rem"
|
|
1046
1041
|
}
|
|
@@ -1184,7 +1179,7 @@ const ElmA2ui = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlin
|
|
|
1184
1179
|
]));
|
|
1185
1180
|
return /* @__PURE__ */ core$1._jsxSorted("div", {
|
|
1186
1181
|
class: [
|
|
1187
|
-
styles$
|
|
1182
|
+
styles$M["elm-a2ui"],
|
|
1188
1183
|
props.class
|
|
1189
1184
|
],
|
|
1190
1185
|
style: core$1._wrapProp(props, "style")
|
|
@@ -1192,9 +1187,8 @@ const ElmA2ui = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlin
|
|
|
1192
1187
|
surface: core$1.noSerialize(surface2)
|
|
1193
1188
|
}, null, null, 3, surface2.id)), 1, "pJ_4");
|
|
1194
1189
|
}, "ElmA2ui_component_JeVykabE5oE"));
|
|
1195
|
-
const
|
|
1196
|
-
|
|
1197
|
-
katex
|
|
1190
|
+
const styles$L = {
|
|
1191
|
+
"elm-katex": "_elm-katex_189xe_1"
|
|
1198
1192
|
};
|
|
1199
1193
|
const _hf0$M = (p0) => p0.value ?? "";
|
|
1200
1194
|
const ElmKatex = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl((props) => {
|
|
@@ -1205,7 +1199,7 @@ const ElmKatex = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inli
|
|
|
1205
1199
|
]);
|
|
1206
1200
|
const html = core$1.useComputedQrl(/* @__PURE__ */ core$1.inlinedQrl(() => {
|
|
1207
1201
|
const props2 = core$1._captures[0];
|
|
1208
|
-
return katex
|
|
1202
|
+
return katex.renderToString(props2.expression, {
|
|
1209
1203
|
displayMode: props2.block ?? false,
|
|
1210
1204
|
output: "mathml"
|
|
1211
1205
|
});
|
|
@@ -1215,7 +1209,7 @@ const ElmKatex = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inli
|
|
|
1215
1209
|
return /* @__PURE__ */ core$1._jsxSplit("div", {
|
|
1216
1210
|
class: [
|
|
1217
1211
|
textStyles.text,
|
|
1218
|
-
props.block ? styles$
|
|
1212
|
+
props.block ? styles$L["elm-katex"] : void 0,
|
|
1219
1213
|
props.class
|
|
1220
1214
|
],
|
|
1221
1215
|
dangerouslySetInnerHTML: core$1._fnSignal(_hf0$M, [
|
|
@@ -1224,16 +1218,16 @@ const ElmKatex = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inli
|
|
|
1224
1218
|
...core$1._getVarProps(rest)
|
|
1225
1219
|
}, core$1._getConstProps(rest), null, 0, "FX_0");
|
|
1226
1220
|
}, "ElmKatex_component_83EW4M1WU0k"));
|
|
1227
|
-
const caption$1 = "
|
|
1228
|
-
const divider$1 = "
|
|
1229
|
-
const code
|
|
1230
|
-
const styles$
|
|
1231
|
-
"code-block": "
|
|
1232
|
-
"language-icon": "_language-
|
|
1221
|
+
const caption$1 = "_caption_xdmlc_22";
|
|
1222
|
+
const divider$1 = "_divider_xdmlc_33";
|
|
1223
|
+
const code = "_code_xdmlc_40";
|
|
1224
|
+
const styles$K = {
|
|
1225
|
+
"elm-code-block": "_elm-code-block_xdmlc_1",
|
|
1226
|
+
"language-icon": "_language-icon_xdmlc_17",
|
|
1233
1227
|
caption: caption$1,
|
|
1234
|
-
"copy-icon": "_copy-
|
|
1228
|
+
"copy-icon": "_copy-icon_xdmlc_29",
|
|
1235
1229
|
divider: divider$1,
|
|
1236
|
-
code
|
|
1230
|
+
code
|
|
1237
1231
|
};
|
|
1238
1232
|
const _hf0$L = (p0) => p0.size ?? 24;
|
|
1239
1233
|
const Rust = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl((_rawProps) => {
|
|
@@ -1308,7 +1302,7 @@ const Typescript = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.in
|
|
|
1308
1302
|
], 0, "Os_0");
|
|
1309
1303
|
}, "Typescript_component_nLU7Qpu0u0k"));
|
|
1310
1304
|
const path = "_path_1aa0a_1";
|
|
1311
|
-
const styles$
|
|
1305
|
+
const styles$J = {
|
|
1312
1306
|
path
|
|
1313
1307
|
};
|
|
1314
1308
|
const _hf0$I = (p0) => p0.size ?? 24;
|
|
@@ -1332,7 +1326,7 @@ const Bash = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQ
|
|
|
1332
1326
|
d: "M4.24 4.24h119.53v119.53H4.24z"
|
|
1333
1327
|
}, null, 3, null),
|
|
1334
1328
|
/* @__PURE__ */ core$1._jsxSorted("path", null, {
|
|
1335
|
-
class: styles$
|
|
1329
|
+
class: styles$J.path,
|
|
1336
1330
|
d: "M109.01 28.64L71.28 6.24c-2.25-1.33-4.77-2-7.28-2s-5.03.67-7.28 2.01l-37.74 22.4c-4.5 2.67-7.28 7.61-7.28 12.96v44.8c0 5.35 2.77 10.29 7.28 12.96l37.73 22.4c2.25 1.34 4.76 2 7.28 2c2.51 0 5.03-.67 7.28-2l37.74-22.4c4.5-2.67 7.28-7.62 7.28-12.96V41.6c0-5.34-2.77-10.29-7.28-12.96M79.79 98.59l.06 3.22c0 .39-.25.83-.55.99l-1.91 1.1c-.3.15-.56-.03-.56-.42l-.03-3.17c-1.63.68-3.29.84-4.34.42c-.2-.08-.29-.37-.21-.71l.69-2.91c.06-.23.18-.46.34-.6c.06-.06.12-.1.18-.13c.11-.06.22-.07.31-.03c1.14.38 2.59.2 3.99-.5c1.78-.9 2.97-2.72 2.95-4.52c-.02-1.64-.9-2.31-3.05-2.33c-2.74.01-5.3-.53-5.34-4.57c-.03-3.32 1.69-6.78 4.43-8.96l-.03-3.25c0-.4.24-.84.55-1l1.85-1.18c.3-.15.56.04.56.43l.03 3.25c1.36-.54 2.54-.69 3.61-.44c.23.06.34.38.24.75l-.72 2.88c-.06.22-.18.44-.33.58a.8.8 0 0 1-.19.14c-.1.05-.19.06-.28.05c-.49-.11-1.65-.36-3.48.56c-1.92.97-2.59 2.64-2.58 3.88c.02 1.48.77 1.93 3.39 1.97c3.49.06 4.99 1.58 5.03 5.09c.05 3.44-1.79 7.15-4.61 9.41m26.34-60.5l-35.7 22.05c-4.45 2.6-7.73 5.52-7.74 10.89v43.99c0 3.21 1.3 5.29 3.29 5.9c-.65.11-1.32.19-1.98.19c-2.09 0-4.15-.57-5.96-1.64l-37.73-22.4c-3.69-2.19-5.98-6.28-5.98-10.67V41.6c0-4.39 2.29-8.48 5.98-10.67l37.74-22.4c1.81-1.07 3.87-1.64 5.96-1.64s4.15.57 5.96 1.64l37.74 22.4c3.11 1.85 5.21 5.04 5.8 8.63c-1.27-2.67-4.09-3.39-7.38-1.47"
|
|
1337
1331
|
}, null, 3, null),
|
|
1338
1332
|
/* @__PURE__ */ core$1._jsxSorted("path", null, {
|
|
@@ -1859,9 +1853,8 @@ const C = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl(
|
|
|
1859
1853
|
}, null, 3, null)
|
|
1860
1854
|
], 0, "gG_0");
|
|
1861
1855
|
}, "C_component_8furXfuHI4I"));
|
|
1862
|
-
const
|
|
1863
|
-
|
|
1864
|
-
icon: icon$5
|
|
1856
|
+
const styles$I = {
|
|
1857
|
+
"elm-mdi-icon": "_elm-mdi-icon_ihskx_1"
|
|
1865
1858
|
};
|
|
1866
1859
|
const _hf0$t = (p0) => ({
|
|
1867
1860
|
"--elmethis-scoped-color": p0.lightColor ?? p0.color ?? "currentColor",
|
|
@@ -1882,7 +1875,7 @@ const ElmMdiIcon = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.in
|
|
|
1882
1875
|
]);
|
|
1883
1876
|
return /* @__PURE__ */ core$1._jsxSplit("svg", {
|
|
1884
1877
|
class: [
|
|
1885
|
-
styles$
|
|
1878
|
+
styles$I["elm-mdi-icon"],
|
|
1886
1879
|
_rawProps.class
|
|
1887
1880
|
],
|
|
1888
1881
|
style: core$1._fnSignal(_hf0$t, [
|
|
@@ -1999,9 +1992,8 @@ const ElmLanguageIcon = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core
|
|
|
1999
1992
|
style: core$1._wrapProp(_rawProps, "style")
|
|
2000
1993
|
}, null, 3, "bu_1");
|
|
2001
1994
|
}, "ElmLanguageIcon_component_nXOhYnvIKLk"));
|
|
2002
|
-
const
|
|
2003
|
-
|
|
2004
|
-
code
|
|
1995
|
+
const styles$H = {
|
|
1996
|
+
"elm-shiki-highlighter": "_elm-shiki-highlighter_j5tas_1"
|
|
2005
1997
|
};
|
|
2006
1998
|
const ElmShikiHighlighter = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl((_rawProps) => {
|
|
2007
1999
|
const props = core$1._restProps(_rawProps, [
|
|
@@ -2040,16 +2032,16 @@ const ElmShikiHighlighter = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */
|
|
|
2040
2032
|
]));
|
|
2041
2033
|
return /* @__PURE__ */ core$1._jsxSplit("pre", {
|
|
2042
2034
|
class: [
|
|
2043
|
-
styles$
|
|
2035
|
+
styles$H["elm-shiki-highlighter"],
|
|
2044
2036
|
_rawProps.class
|
|
2045
2037
|
],
|
|
2046
2038
|
dangerouslySetInnerHTML: core$1._wrapProp(rawHtml),
|
|
2047
2039
|
...core$1._getVarProps(props)
|
|
2048
2040
|
}, core$1._getConstProps(props), null, 0, "ZN_0");
|
|
2049
2041
|
}, "ElmShikiHighlighter_component_vKuHJZdaUdo"));
|
|
2050
|
-
const styles$
|
|
2051
|
-
"use-clipboard": "_use-
|
|
2052
|
-
"use-clipboard-icon-copied": "_use-clipboard-icon-
|
|
2042
|
+
const styles$G = {
|
|
2043
|
+
"use-clipboard": "_use-clipboard_mb0qt_1",
|
|
2044
|
+
"use-clipboard-icon-copied": "_use-clipboard-icon-copied_mb0qt_15"
|
|
2053
2045
|
};
|
|
2054
2046
|
const useClipboard = (options) => {
|
|
2055
2047
|
const copied = core$1.useSignal(false);
|
|
@@ -2086,7 +2078,7 @@ const useClipboard = (options) => {
|
|
|
2086
2078
|
const copied2 = core$1._captures[0], copy2 = core$1._captures[1], options2 = core$1._captures[2];
|
|
2087
2079
|
return /* @__PURE__ */ core$1._jsxSorted("span", {
|
|
2088
2080
|
class: [
|
|
2089
|
-
styles$
|
|
2081
|
+
styles$G["use-clipboard"],
|
|
2090
2082
|
options2.class
|
|
2091
2083
|
],
|
|
2092
2084
|
style: core$1._wrapProp(options2, "style")
|
|
@@ -2095,7 +2087,7 @@ const useClipboard = (options) => {
|
|
|
2095
2087
|
}, /* @__PURE__ */ core$1._jsxSorted(ElmMdiIcon, {
|
|
2096
2088
|
class: [
|
|
2097
2089
|
{
|
|
2098
|
-
[styles$
|
|
2090
|
+
[styles$G["use-clipboard-icon-copied"]]: copied2.value
|
|
2099
2091
|
}
|
|
2100
2092
|
],
|
|
2101
2093
|
d: copied2.value ? js.mdiClipboardCheckOutline : js.mdiClipboardOutline
|
|
@@ -2126,20 +2118,20 @@ const ElmCodeBlock = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.
|
|
|
2126
2118
|
});
|
|
2127
2119
|
return /* @__PURE__ */ core$1._jsxSplit("figure", {
|
|
2128
2120
|
class: [
|
|
2129
|
-
styles$
|
|
2121
|
+
styles$K["elm-code-block"],
|
|
2130
2122
|
_rawProps.class
|
|
2131
2123
|
],
|
|
2132
2124
|
...core$1._getVarProps(props)
|
|
2133
2125
|
}, core$1._getConstProps(props), [
|
|
2134
2126
|
/* @__PURE__ */ core$1._jsxSorted("span", null, {
|
|
2135
|
-
class: styles$
|
|
2127
|
+
class: styles$K["language-icon"]
|
|
2136
2128
|
}, /* @__PURE__ */ core$1._jsxSorted(ElmLanguageIcon, null, {
|
|
2137
2129
|
language: core$1._fnSignal(_hf0$r, [
|
|
2138
2130
|
_rawProps
|
|
2139
2131
|
])
|
|
2140
2132
|
}, null, 3, "sK_0"), 1, null),
|
|
2141
2133
|
/* @__PURE__ */ core$1._jsxSorted("span", null, {
|
|
2142
|
-
class: styles$
|
|
2134
|
+
class: styles$K.caption
|
|
2143
2135
|
}, /* @__PURE__ */ core$1._jsxSorted(ElmInlineText, null, null, [
|
|
2144
2136
|
core$1._fnSignal(_hf1$f, [
|
|
2145
2137
|
_rawProps
|
|
@@ -2147,13 +2139,13 @@ const ElmCodeBlock = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.
|
|
|
2147
2139
|
/* @__PURE__ */ core$1._jsxSorted(core$1.Slot, null, null, null, 3, "sK_1")
|
|
2148
2140
|
], 1, "sK_2"), 1, null),
|
|
2149
2141
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
2150
|
-
class: styles$
|
|
2142
|
+
class: styles$K["copy-icon"]
|
|
2151
2143
|
}, /* @__PURE__ */ core$1._jsxSorted(clipboard.CopyButton, null, null, null, 3, "sK_3"), 1, null),
|
|
2152
2144
|
/* @__PURE__ */ core$1._jsxSorted("hr", null, {
|
|
2153
|
-
class: styles$
|
|
2145
|
+
class: styles$K.divider
|
|
2154
2146
|
}, null, 3, null),
|
|
2155
2147
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
2156
|
-
class: styles$
|
|
2148
|
+
class: styles$K.code
|
|
2157
2149
|
}, /* @__PURE__ */ core$1._jsxSorted(ElmShikiHighlighter, null, {
|
|
2158
2150
|
code: core$1._wrapProp(_rawProps, "code"),
|
|
2159
2151
|
language: core$1._fnSignal(_hf0$r, [
|
|
@@ -2162,19 +2154,18 @@ const ElmCodeBlock = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.
|
|
|
2162
2154
|
}, null, 3, "sK_4"), 1, null)
|
|
2163
2155
|
], 0, "sK_5");
|
|
2164
2156
|
}, "ElmCodeBlock_component_rH8kn9Tvguw"));
|
|
2165
|
-
const image$2 = "
|
|
2166
|
-
const fallback$1 = "
|
|
2167
|
-
const styles$
|
|
2168
|
-
"block-image": "
|
|
2169
|
-
"image-container": "_image-
|
|
2157
|
+
const image$2 = "_image_kwjx3_12";
|
|
2158
|
+
const fallback$1 = "_fallback_kwjx3_36";
|
|
2159
|
+
const styles$F = {
|
|
2160
|
+
"elm-block-image": "_elm-block-image_kwjx3_1",
|
|
2161
|
+
"image-container": "_image-container_kwjx3_12",
|
|
2170
2162
|
image: image$2,
|
|
2171
2163
|
fallback: fallback$1,
|
|
2172
|
-
"caption-box": "_caption-
|
|
2173
|
-
"caption-icon": "_caption-
|
|
2174
|
-
"modal-container": "_modal-container_t4lyp_63"
|
|
2164
|
+
"caption-box": "_caption-box_kwjx3_46",
|
|
2165
|
+
"caption-icon": "_caption-icon_kwjx3_57"
|
|
2175
2166
|
};
|
|
2176
|
-
const styles$
|
|
2177
|
-
"rectangle-wave": "
|
|
2167
|
+
const styles$E = {
|
|
2168
|
+
"elm-rectangle-wave": "_elm-rectangle-wave_70gad_21"
|
|
2178
2169
|
};
|
|
2179
2170
|
const ElmRectangleWave = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl((_rawProps) => {
|
|
2180
2171
|
const props = core$1._restProps(_rawProps, [
|
|
@@ -2183,23 +2174,128 @@ const ElmRectangleWave = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ cor
|
|
|
2183
2174
|
return /* @__PURE__ */ core$1._jsxSplit("div", {
|
|
2184
2175
|
"aria-hidden": "true",
|
|
2185
2176
|
class: [
|
|
2186
|
-
styles$
|
|
2177
|
+
styles$E["elm-rectangle-wave"],
|
|
2187
2178
|
_rawProps.class
|
|
2188
2179
|
],
|
|
2189
2180
|
...core$1._getVarProps(props)
|
|
2190
2181
|
}, core$1._getConstProps(props), null, 0, "vI_0");
|
|
2191
2182
|
}, "ElmRectangleWave_component_4z0HAhT3758"));
|
|
2183
|
+
const shown = "_shown_12j1m_18";
|
|
2184
|
+
const styles$D = {
|
|
2185
|
+
"elm-modal": "_elm-modal_12j1m_1",
|
|
2186
|
+
shown
|
|
2187
|
+
};
|
|
2188
|
+
const ElmModal = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl((props) => {
|
|
2189
|
+
const rest = core$1._restProps(props, [
|
|
2190
|
+
"class",
|
|
2191
|
+
"isOpen",
|
|
2192
|
+
"delay",
|
|
2193
|
+
"style",
|
|
2194
|
+
"onClose$"
|
|
2195
|
+
]);
|
|
2196
|
+
const dialogRef = core$1.useSignal();
|
|
2197
|
+
const isShown = core$1.useSignal(false);
|
|
2198
|
+
core$1.useVisibleTaskQrl(/* @__PURE__ */ core$1.inlinedQrl(({ track, cleanup }) => {
|
|
2199
|
+
const dialogRef2 = core$1._captures[0], isShown2 = core$1._captures[1], props2 = core$1._captures[2];
|
|
2200
|
+
track(() => props2.isOpen);
|
|
2201
|
+
if (!dialogRef2.value) return;
|
|
2202
|
+
if (props2.isOpen) {
|
|
2203
|
+
dialogRef2.value.showModal();
|
|
2204
|
+
isShown2.value = true;
|
|
2205
|
+
} else {
|
|
2206
|
+
if (!isShown2.value) return;
|
|
2207
|
+
isShown2.value = false;
|
|
2208
|
+
const timer = setTimeout(() => {
|
|
2209
|
+
dialogRef2.value?.close();
|
|
2210
|
+
}, props2.delay ?? 200);
|
|
2211
|
+
cleanup(() => {
|
|
2212
|
+
clearTimeout(timer);
|
|
2213
|
+
});
|
|
2214
|
+
}
|
|
2215
|
+
}, "ElmModal_component_useVisibleTask_1nydd6wvRjI", [
|
|
2216
|
+
dialogRef,
|
|
2217
|
+
isShown,
|
|
2218
|
+
props
|
|
2219
|
+
]), {
|
|
2220
|
+
strategy: "document-ready"
|
|
2221
|
+
});
|
|
2222
|
+
const handleClose = /* @__PURE__ */ core$1.inlinedQrl((event, element) => {
|
|
2223
|
+
const props2 = core$1._captures[0];
|
|
2224
|
+
props2.onClose$?.(event, element);
|
|
2225
|
+
}, "ElmModal_component_handleClose_0gU4hMZNm0Q", [
|
|
2226
|
+
props
|
|
2227
|
+
]);
|
|
2228
|
+
return /* @__PURE__ */ core$1._jsxSplit("dialog", {
|
|
2229
|
+
ref: dialogRef,
|
|
2230
|
+
class: [
|
|
2231
|
+
styles$D["elm-modal"],
|
|
2232
|
+
props.class,
|
|
2233
|
+
{
|
|
2234
|
+
[styles$D["shown"]]: isShown.value
|
|
2235
|
+
}
|
|
2236
|
+
],
|
|
2237
|
+
"q-e:click": handleClose,
|
|
2238
|
+
style: typeof props.style === "string" ? `${props.style};--elmethis-scoped-modal-delay:${props.delay ?? 200}ms` : {
|
|
2239
|
+
"--elmethis-scoped-modal-delay": `${props.delay ?? 200}ms`,
|
|
2240
|
+
...props.style
|
|
2241
|
+
},
|
|
2242
|
+
...{
|
|
2243
|
+
closedBy: "none"
|
|
2244
|
+
},
|
|
2245
|
+
...core$1._getVarProps(rest)
|
|
2246
|
+
}, core$1._getConstProps(rest), /* @__PURE__ */ core$1._jsxSorted("div", {
|
|
2247
|
+
"q-e:click": /* @__PURE__ */ core$1.inlinedQrl((e) => e.stopPropagation(), "ElmModal_component_dialog_div_q_e_click_Qa7ZVv0yllU")
|
|
2248
|
+
}, null, /* @__PURE__ */ core$1._jsxSorted(core$1.Slot, null, null, null, 3, "Ka_0"), 0, null), 0, "Ka_1");
|
|
2249
|
+
}, "ElmModal_component_wvBKav2Nx50"));
|
|
2250
|
+
const useModal = (options = {}) => {
|
|
2251
|
+
const delay = options.delay;
|
|
2252
|
+
const isOpen = core$1.useSignal(false);
|
|
2253
|
+
const show2 = /* @__PURE__ */ core$1.inlinedQrl(() => {
|
|
2254
|
+
const isOpen2 = core$1._captures[0];
|
|
2255
|
+
isOpen2.value = true;
|
|
2256
|
+
}, "useModal_show_7khcPaT0Cx8", [
|
|
2257
|
+
isOpen
|
|
2258
|
+
]);
|
|
2259
|
+
const hide = /* @__PURE__ */ core$1.inlinedQrl(() => {
|
|
2260
|
+
const isOpen2 = core$1._captures[0];
|
|
2261
|
+
isOpen2.value = false;
|
|
2262
|
+
}, "useModal_hide_mSugMHYElis", [
|
|
2263
|
+
isOpen
|
|
2264
|
+
]);
|
|
2265
|
+
const toggle = /* @__PURE__ */ core$1.inlinedQrl(() => {
|
|
2266
|
+
const isOpen2 = core$1._captures[0];
|
|
2267
|
+
isOpen2.value = !isOpen2.value;
|
|
2268
|
+
}, "useModal_toggle_eBYb4dHabL0", [
|
|
2269
|
+
isOpen
|
|
2270
|
+
]);
|
|
2271
|
+
const Modal = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl(() => {
|
|
2272
|
+
const delay2 = core$1._captures[0], hide2 = core$1._captures[1], isOpen2 = core$1._captures[2];
|
|
2273
|
+
return /* @__PURE__ */ core$1._jsxSorted(ElmModal, {
|
|
2274
|
+
delay: delay2
|
|
2275
|
+
}, {
|
|
2276
|
+
isOpen: core$1._wrapProp(isOpen2),
|
|
2277
|
+
onClose$: hide2
|
|
2278
|
+
}, /* @__PURE__ */ core$1._jsxSorted(core$1.Slot, null, null, null, 3, "GG_0"), 1, "GG_1");
|
|
2279
|
+
}, "useModal_Modal_component_H3EY0g5t53g", [
|
|
2280
|
+
delay,
|
|
2281
|
+
hide,
|
|
2282
|
+
isOpen
|
|
2283
|
+
]));
|
|
2284
|
+
return {
|
|
2285
|
+
Modal,
|
|
2286
|
+
isOpen,
|
|
2287
|
+
show: show2,
|
|
2288
|
+
hide,
|
|
2289
|
+
toggle
|
|
2290
|
+
};
|
|
2291
|
+
};
|
|
2192
2292
|
const _hf0$q = (p0) => p0.alt ?? p0.caption ?? "Image";
|
|
2193
2293
|
const _hf1$e = (p0, p1) => p0 ? void 0 : p1.srcset;
|
|
2194
2294
|
const _hf2$a = (p0, p1) => p0 ? void 0 : p1.sizes;
|
|
2195
2295
|
const _hf3$9 = (p0) => ({
|
|
2196
|
-
pointerEvents: p0.value ? "auto" : "none",
|
|
2197
|
-
"--elmethis-scoped-opacity": p0.value ? 1 : 0
|
|
2198
|
-
});
|
|
2199
|
-
const _hf4$5 = (p0) => ({
|
|
2200
2296
|
"--elmethis-scoped-opacity": p0.value ? 1 : 0.01
|
|
2201
2297
|
});
|
|
2202
|
-
const
|
|
2298
|
+
const _hf4$5 = (p0) => ({
|
|
2203
2299
|
"--elmethis-scoped-opacity": p0.value ? 0.01 : 1
|
|
2204
2300
|
});
|
|
2205
2301
|
const ElmBlockImage = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl((props) => {
|
|
@@ -2215,23 +2311,29 @@ const ElmBlockImage = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1
|
|
|
2215
2311
|
"enableModal"
|
|
2216
2312
|
]);
|
|
2217
2313
|
const isLoading = core$1.useSignal(true);
|
|
2218
|
-
const
|
|
2314
|
+
const modal2 = useModal();
|
|
2219
2315
|
const handleImageLoad = /* @__PURE__ */ core$1.inlinedQrl(() => {
|
|
2220
2316
|
const isLoading2 = core$1._captures[0];
|
|
2221
2317
|
isLoading2.value = false;
|
|
2222
2318
|
}, "ElmBlockImage_component_handleImageLoad_v2NAc2lc6F8", [
|
|
2223
2319
|
isLoading
|
|
2224
2320
|
]);
|
|
2225
|
-
const
|
|
2226
|
-
const isLoading2 = core$1._captures[0],
|
|
2321
|
+
const handleOpenModal = /* @__PURE__ */ core$1.inlinedQrl(() => {
|
|
2322
|
+
const isLoading2 = core$1._captures[0], modal22 = core$1._captures[1], props2 = core$1._captures[2];
|
|
2227
2323
|
if ((props2.enableModal ?? true) && !isLoading2.value) {
|
|
2228
|
-
|
|
2324
|
+
modal22.show();
|
|
2229
2325
|
}
|
|
2230
|
-
}, "
|
|
2326
|
+
}, "ElmBlockImage_component_handleOpenModal_q7vLxFH3bWY", [
|
|
2231
2327
|
isLoading,
|
|
2232
|
-
|
|
2328
|
+
modal2,
|
|
2233
2329
|
props
|
|
2234
2330
|
]);
|
|
2331
|
+
const handleCloseModal = /* @__PURE__ */ core$1.inlinedQrl(() => {
|
|
2332
|
+
const modal22 = core$1._captures[0];
|
|
2333
|
+
modal22.hide();
|
|
2334
|
+
}, "ElmBlockImage_component_handleCloseModal_atTNQViDSJ4", [
|
|
2335
|
+
modal2
|
|
2336
|
+
]);
|
|
2235
2337
|
const imgRef = core$1.useSignal();
|
|
2236
2338
|
core$1.useVisibleTaskQrl(/* @__PURE__ */ core$1.inlinedQrl(() => {
|
|
2237
2339
|
const imgRef2 = core$1._captures[0], isLoading2 = core$1._captures[1];
|
|
@@ -2249,7 +2351,10 @@ const ElmBlockImage = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1
|
|
|
2249
2351
|
fetchPriority: isModal ? "low" : "auto",
|
|
2250
2352
|
height: core$1._wrapProp(props, "height"),
|
|
2251
2353
|
loading: isModal ? "lazy" : void 0,
|
|
2252
|
-
|
|
2354
|
+
"q-e:click": isModal ? handleCloseModal : void 0,
|
|
2355
|
+
// Only the inline image owns imgRef; the modal image must not steal it
|
|
2356
|
+
// (ElmModal keeps its slot mounted, so both can coexist in the DOM).
|
|
2357
|
+
ref: isModal ? void 0 : imgRef,
|
|
2253
2358
|
sizes: core$1._fnSignal(_hf2$a, [
|
|
2254
2359
|
isModal,
|
|
2255
2360
|
props
|
|
@@ -2261,64 +2366,56 @@ const ElmBlockImage = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1
|
|
|
2261
2366
|
]),
|
|
2262
2367
|
style: {
|
|
2263
2368
|
"--elmethis-scoped-opacity": isLoading.value ? 0.01 : 1,
|
|
2264
|
-
"--elmethis-scoped-cursor": props.enableModal ?? true ?
|
|
2369
|
+
"--elmethis-scoped-cursor": props.enableModal ?? true ? modal2.isOpen.value ? "zoom-out" : "zoom-in" : "default",
|
|
2265
2370
|
"--aspect-ratio": props.width && props.height ? `${props.width} / ${props.height}` : "auto"
|
|
2266
2371
|
},
|
|
2267
2372
|
width: core$1._wrapProp(props, "width")
|
|
2268
2373
|
}, {
|
|
2269
|
-
class: styles$
|
|
2374
|
+
class: styles$F.image,
|
|
2270
2375
|
"q-e:load": handleImageLoad
|
|
2271
|
-
}, null,
|
|
2272
|
-
const Modal = /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
2273
|
-
class: styles$G["modal-container"],
|
|
2274
|
-
style: core$1._fnSignal(_hf3$9, [
|
|
2275
|
-
isShowModal
|
|
2276
|
-
]),
|
|
2277
|
-
"q-e:click": handleToggleModal
|
|
2278
|
-
}, isShowModal.value && ImageComponent(true), 1, "zM_1");
|
|
2376
|
+
}, null, 2, "zM_0");
|
|
2279
2377
|
return /* @__PURE__ */ core$1._jsxSplit("figure", {
|
|
2280
2378
|
class: [
|
|
2281
|
-
styles$
|
|
2379
|
+
styles$F["elm-block-image"],
|
|
2282
2380
|
props.class
|
|
2283
2381
|
],
|
|
2284
2382
|
...core$1._getVarProps(rest)
|
|
2285
2383
|
}, core$1._getConstProps(rest), [
|
|
2286
2384
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
2287
|
-
class: styles$
|
|
2288
|
-
style: core$1._fnSignal(
|
|
2385
|
+
class: styles$F["image-container"],
|
|
2386
|
+
style: core$1._fnSignal(_hf3$9, [
|
|
2289
2387
|
isLoading
|
|
2290
2388
|
]),
|
|
2291
|
-
"q-e:click":
|
|
2389
|
+
"q-e:click": handleOpenModal
|
|
2292
2390
|
}, [
|
|
2293
2391
|
ImageComponent(false),
|
|
2294
2392
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
2295
|
-
class: styles$
|
|
2296
|
-
}, /* @__PURE__ */ core$1._jsxSorted(ElmRectangleWave, null, null, null, 3, "
|
|
2393
|
+
class: styles$F.fallback
|
|
2394
|
+
}, /* @__PURE__ */ core$1._jsxSorted(ElmRectangleWave, null, null, null, 3, "zM_1"), 1, null)
|
|
2297
2395
|
], 1, null),
|
|
2298
2396
|
props.caption && /* @__PURE__ */ core$1._jsxSorted("figcaption", null, {
|
|
2299
|
-
class: styles$
|
|
2300
|
-
style: core$1._fnSignal(
|
|
2397
|
+
class: styles$F["caption-box"],
|
|
2398
|
+
style: core$1._fnSignal(_hf4$5, [
|
|
2301
2399
|
isLoading
|
|
2302
2400
|
])
|
|
2303
2401
|
}, [
|
|
2304
2402
|
/* @__PURE__ */ core$1._jsxSorted("span", null, {
|
|
2305
|
-
class: styles$
|
|
2403
|
+
class: styles$F["caption-icon"]
|
|
2306
2404
|
}, /* @__PURE__ */ core$1._jsxSorted(ElmMdiIcon, null, {
|
|
2307
2405
|
d: js.mdiMessageImageOutline,
|
|
2308
2406
|
size: "1.25rem"
|
|
2309
|
-
}, null, 3, "
|
|
2407
|
+
}, null, 3, "zM_2"), 1, null),
|
|
2310
2408
|
/* @__PURE__ */ core$1._jsxSorted(ElmInlineText, null, {
|
|
2311
2409
|
size: "1rem"
|
|
2312
|
-
}, core$1._wrapProp(props, "caption"), 1, "
|
|
2313
|
-
], 1, "
|
|
2314
|
-
Modal
|
|
2410
|
+
}, core$1._wrapProp(props, "caption"), 1, "zM_3")
|
|
2411
|
+
], 1, "zM_4"),
|
|
2412
|
+
/* @__PURE__ */ core$1._jsxSorted(modal2.Modal, null, null, modal2.isOpen.value && ImageComponent(true), 1, "zM_5")
|
|
2315
2413
|
], 0, "zM_6");
|
|
2316
2414
|
}, "ElmBlockImage_component_XGyydMLGB8M"));
|
|
2317
|
-
const
|
|
2318
|
-
|
|
2319
|
-
file,
|
|
2320
|
-
"
|
|
2321
|
-
"download-icon": "_download-icon_1sut5_18"
|
|
2415
|
+
const styles$C = {
|
|
2416
|
+
"elm-file": "_elm-file_1oen6_1",
|
|
2417
|
+
"file-size": "_file-size_1oen6_13",
|
|
2418
|
+
"download-icon": "_download-icon_1oen6_18"
|
|
2322
2419
|
};
|
|
2323
2420
|
function getLastPathSegmentWithoutQueryOrHash(urlString) {
|
|
2324
2421
|
const cleanedUrl = urlString.split(/[?#]/)[0];
|
|
@@ -2353,7 +2450,7 @@ const ElmFile = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlin
|
|
|
2353
2450
|
]);
|
|
2354
2451
|
return /* @__PURE__ */ core$1._jsxSplit("div", {
|
|
2355
2452
|
class: [
|
|
2356
|
-
styles$
|
|
2453
|
+
styles$C["elm-file"],
|
|
2357
2454
|
_rawProps.class
|
|
2358
2455
|
],
|
|
2359
2456
|
...core$1._getVarProps(props)
|
|
@@ -2364,10 +2461,10 @@ const ElmFile = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlin
|
|
|
2364
2461
|
}, null, 3, "r0_0"), 1, null),
|
|
2365
2462
|
/* @__PURE__ */ core$1._jsxSorted("div", null, null, /* @__PURE__ */ core$1._jsxSorted(ElmInlineText, null, null, _rawProps.name ?? getLastPathSegmentWithoutQueryOrHash(_rawProps.src), 1, "r0_1"), 1, null),
|
|
2366
2463
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
2367
|
-
class: styles$
|
|
2464
|
+
class: styles$C["file-size"]
|
|
2368
2465
|
}, /* @__PURE__ */ core$1._jsxSorted(ElmInlineText, null, null, core$1._wrapProp(_rawProps, "filesize"), 1, "r0_2"), 1, null),
|
|
2369
2466
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
2370
|
-
class: styles$
|
|
2467
|
+
class: styles$C["download-icon"],
|
|
2371
2468
|
"q-e:click": downloadFile
|
|
2372
2469
|
}, /* @__PURE__ */ core$1._jsxSorted(ElmMdiIcon, null, {
|
|
2373
2470
|
d: js.mdiDownload,
|
|
@@ -2375,16 +2472,15 @@ const ElmFile = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlin
|
|
|
2375
2472
|
}, null, 3, "r0_3"), 1, null)
|
|
2376
2473
|
], 0, "r0_4");
|
|
2377
2474
|
}, "ElmFile_component_WgruD9GFaB4"));
|
|
2378
|
-
const
|
|
2379
|
-
const
|
|
2380
|
-
const
|
|
2381
|
-
const
|
|
2382
|
-
const
|
|
2383
|
-
const
|
|
2384
|
-
const
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
container: container$2,
|
|
2475
|
+
const container = "_container_67069_24";
|
|
2476
|
+
const image$1 = "_image_67069_36";
|
|
2477
|
+
const content$2 = "_content_67069_56";
|
|
2478
|
+
const title = "_title_67069_72";
|
|
2479
|
+
const description = "_description_67069_76";
|
|
2480
|
+
const link = "_link_67069_81";
|
|
2481
|
+
const styles$B = {
|
|
2482
|
+
"elm-bookmark": "_elm-bookmark_67069_1",
|
|
2483
|
+
container,
|
|
2388
2484
|
image: image$1,
|
|
2389
2485
|
content: content$2,
|
|
2390
2486
|
title,
|
|
@@ -2414,14 +2510,14 @@ const ElmBookmark = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.i
|
|
|
2414
2510
|
};
|
|
2415
2511
|
return /* @__PURE__ */ core$1._jsxSplit("div", {
|
|
2416
2512
|
class: [
|
|
2417
|
-
styles$
|
|
2513
|
+
styles$B["elm-bookmark"],
|
|
2418
2514
|
_rawProps.class
|
|
2419
2515
|
],
|
|
2420
2516
|
...core$1._getVarProps(props)
|
|
2421
2517
|
}, core$1._getConstProps(props), /* @__PURE__ */ core$1._jsxSorted("a", {
|
|
2422
2518
|
href: core$1._wrapProp(_rawProps, "url")
|
|
2423
2519
|
}, {
|
|
2424
|
-
class: styles$
|
|
2520
|
+
class: styles$B.container,
|
|
2425
2521
|
target: "_blank",
|
|
2426
2522
|
rel: "noopener noreferrer"
|
|
2427
2523
|
}, [
|
|
@@ -2433,25 +2529,25 @@ const ElmBookmark = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.i
|
|
|
2433
2529
|
isError
|
|
2434
2530
|
])
|
|
2435
2531
|
}, {
|
|
2436
|
-
class: styles$
|
|
2532
|
+
class: styles$B.image,
|
|
2437
2533
|
alt: "OGP Image",
|
|
2438
2534
|
"q-e:error": handleImageOnError
|
|
2439
2535
|
}, null, 3, null),
|
|
2440
2536
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
2441
|
-
class: styles$
|
|
2537
|
+
class: styles$B.content
|
|
2442
2538
|
}, [
|
|
2443
2539
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
2444
|
-
class: styles$
|
|
2540
|
+
class: styles$B.title
|
|
2445
2541
|
}, /* @__PURE__ */ core$1._jsxSorted(ElmInlineText, null, {
|
|
2446
2542
|
bold: true
|
|
2447
2543
|
}, core$1._wrapProp(_rawProps, "title"), 1, "cr_0"), 1, null),
|
|
2448
2544
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
2449
|
-
class: styles$
|
|
2545
|
+
class: styles$B.description
|
|
2450
2546
|
}, /* @__PURE__ */ core$1._jsxSorted(ElmInlineText, null, {
|
|
2451
2547
|
size: "0.75rem"
|
|
2452
2548
|
}, core$1._wrapProp(_rawProps, "description"), 1, "cr_1"), 1, null),
|
|
2453
2549
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
2454
|
-
class: styles$
|
|
2550
|
+
class: styles$B.link
|
|
2455
2551
|
}, [
|
|
2456
2552
|
_rawProps.favicon ? /* @__PURE__ */ core$1._jsxSorted(ElmInlineIcon, null, {
|
|
2457
2553
|
src: core$1._wrapProp(_rawProps, "favicon")
|
|
@@ -2466,19 +2562,18 @@ const ElmBookmark = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.i
|
|
|
2466
2562
|
], 1, null)
|
|
2467
2563
|
], 1, null), 0, "cr_5");
|
|
2468
2564
|
}, "ElmBookmark_component_SFTt0EvJVYc"));
|
|
2469
|
-
const
|
|
2470
|
-
const
|
|
2471
|
-
const
|
|
2472
|
-
const
|
|
2473
|
-
const
|
|
2474
|
-
const
|
|
2475
|
-
const
|
|
2476
|
-
const
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
open: open$1,
|
|
2565
|
+
const open = "_open_d59g8_9";
|
|
2566
|
+
const summary$1 = "_summary_d59g8_14";
|
|
2567
|
+
const divider = "_divider_d59g8_36";
|
|
2568
|
+
const chevron$1 = "_chevron_d59g8_50";
|
|
2569
|
+
const cross = "_cross_d59g8_63";
|
|
2570
|
+
const border = "_border_d59g8_77";
|
|
2571
|
+
const content$1 = "_content_d59g8_85";
|
|
2572
|
+
const styles$A = {
|
|
2573
|
+
"elm-toggle": "_elm-toggle_d59g8_1",
|
|
2574
|
+
open,
|
|
2480
2575
|
summary: summary$1,
|
|
2481
|
-
"summary-left": "_summary-
|
|
2576
|
+
"summary-left": "_summary-left_d59g8_29",
|
|
2482
2577
|
divider,
|
|
2483
2578
|
chevron: chevron$1,
|
|
2484
2579
|
cross,
|
|
@@ -2502,9 +2597,9 @@ const ElmToggle = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inl
|
|
|
2502
2597
|
});
|
|
2503
2598
|
return /* @__PURE__ */ core$1._jsxSplit("div", {
|
|
2504
2599
|
class: [
|
|
2505
|
-
styles$
|
|
2600
|
+
styles$A["elm-toggle"],
|
|
2506
2601
|
{
|
|
2507
|
-
[styles$
|
|
2602
|
+
[styles$A.open]: isOpen.value
|
|
2508
2603
|
},
|
|
2509
2604
|
props.class
|
|
2510
2605
|
],
|
|
@@ -2519,17 +2614,17 @@ const ElmToggle = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inl
|
|
|
2519
2614
|
isOpen
|
|
2520
2615
|
])
|
|
2521
2616
|
}, {
|
|
2522
|
-
class: styles$
|
|
2617
|
+
class: styles$A.summary,
|
|
2523
2618
|
"preventdefault:click": true
|
|
2524
2619
|
}, [
|
|
2525
2620
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
2526
|
-
class: styles$
|
|
2621
|
+
class: styles$A["summary-left"]
|
|
2527
2622
|
}, [
|
|
2528
2623
|
/* @__PURE__ */ core$1._jsxSorted("span", {
|
|
2529
2624
|
class: [
|
|
2530
|
-
styles$
|
|
2625
|
+
styles$A.chevron,
|
|
2531
2626
|
{
|
|
2532
|
-
[styles$
|
|
2627
|
+
[styles$A.open]: isOpen.value
|
|
2533
2628
|
}
|
|
2534
2629
|
]
|
|
2535
2630
|
}, null, /* @__PURE__ */ core$1._jsxSorted(ElmMdiIcon, null, {
|
|
@@ -2544,13 +2639,13 @@ const ElmToggle = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inl
|
|
|
2544
2639
|
}, null, 3, "VD_2"), 1, null)
|
|
2545
2640
|
], 1, null),
|
|
2546
2641
|
/* @__PURE__ */ core$1._jsxSorted("hr", null, {
|
|
2547
|
-
class: styles$
|
|
2642
|
+
class: styles$A.divider
|
|
2548
2643
|
}, null, 3, null),
|
|
2549
2644
|
/* @__PURE__ */ core$1._jsxSorted("span", {
|
|
2550
2645
|
class: [
|
|
2551
|
-
styles$
|
|
2646
|
+
styles$A.cross,
|
|
2552
2647
|
{
|
|
2553
|
-
[styles$
|
|
2648
|
+
[styles$A.open]: isOpen.value
|
|
2554
2649
|
}
|
|
2555
2650
|
]
|
|
2556
2651
|
}, null, /* @__PURE__ */ core$1._jsxSorted(ElmMdiIcon, null, {
|
|
@@ -2563,27 +2658,26 @@ const ElmToggle = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inl
|
|
|
2563
2658
|
}, null, 3, "VD_3"), 1, null)
|
|
2564
2659
|
], 0, null),
|
|
2565
2660
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
2566
|
-
class: styles$
|
|
2661
|
+
class: styles$A.border
|
|
2567
2662
|
}, null, 3, null),
|
|
2568
2663
|
/* @__PURE__ */ core$1._jsxSorted("div", {
|
|
2569
2664
|
class: [
|
|
2570
|
-
styles$
|
|
2665
|
+
styles$A.content,
|
|
2571
2666
|
{
|
|
2572
|
-
[styles$
|
|
2667
|
+
[styles$A.open]: isOpen.value
|
|
2573
2668
|
}
|
|
2574
2669
|
]
|
|
2575
2670
|
}, null, /* @__PURE__ */ core$1._jsxSorted(core$1.Slot, null, null, null, 3, "VD_4"), 1, null)
|
|
2576
2671
|
], 0, "VD_5");
|
|
2577
2672
|
}, "ElmToggle_component_Gna1lAQa8FY"));
|
|
2578
|
-
const
|
|
2579
|
-
const
|
|
2580
|
-
const
|
|
2581
|
-
|
|
2582
|
-
blockquote,
|
|
2673
|
+
const body$4 = "_body_lqbme_20";
|
|
2674
|
+
const icon$3 = "_icon_lqbme_25";
|
|
2675
|
+
const styles$z = {
|
|
2676
|
+
"elm-block-quote": "_elm-block-quote_lqbme_1",
|
|
2583
2677
|
body: body$4,
|
|
2584
|
-
icon: icon$
|
|
2585
|
-
"icon-top-left": "_icon-top-
|
|
2586
|
-
"icon-bottom-right": "_icon-bottom-
|
|
2678
|
+
icon: icon$3,
|
|
2679
|
+
"icon-top-left": "_icon-top-left_lqbme_30",
|
|
2680
|
+
"icon-bottom-right": "_icon-bottom-right_lqbme_34"
|
|
2587
2681
|
};
|
|
2588
2682
|
const ElmBlockQuote = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl((_rawProps) => {
|
|
2589
2683
|
const props = core$1._restProps(_rawProps, [
|
|
@@ -2591,7 +2685,7 @@ const ElmBlockQuote = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1
|
|
|
2591
2685
|
]);
|
|
2592
2686
|
return /* @__PURE__ */ core$1._jsxSplit("blockquote", {
|
|
2593
2687
|
class: [
|
|
2594
|
-
styles$
|
|
2688
|
+
styles$z["elm-block-quote"],
|
|
2595
2689
|
textStyles.text,
|
|
2596
2690
|
_rawProps.class
|
|
2597
2691
|
],
|
|
@@ -2599,39 +2693,38 @@ const ElmBlockQuote = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1
|
|
|
2599
2693
|
}, core$1._getConstProps(props), [
|
|
2600
2694
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
2601
2695
|
class: [
|
|
2602
|
-
styles$
|
|
2603
|
-
styles$
|
|
2696
|
+
styles$z.icon,
|
|
2697
|
+
styles$z["icon-top-left"]
|
|
2604
2698
|
]
|
|
2605
2699
|
}, /* @__PURE__ */ core$1._jsxSorted(ElmMdiIcon, null, {
|
|
2606
2700
|
d: js.mdiFormatQuoteOpen
|
|
2607
2701
|
}, null, 3, "Cw_0"), 1, null),
|
|
2608
2702
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
2609
|
-
class: styles$
|
|
2703
|
+
class: styles$z.body
|
|
2610
2704
|
}, /* @__PURE__ */ core$1._jsxSorted(core$1.Slot, null, null, null, 3, "Cw_1"), 1, null),
|
|
2611
2705
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
2612
2706
|
class: [
|
|
2613
|
-
styles$
|
|
2614
|
-
styles$
|
|
2707
|
+
styles$z.icon,
|
|
2708
|
+
styles$z["icon-bottom-right"]
|
|
2615
2709
|
]
|
|
2616
2710
|
}, /* @__PURE__ */ core$1._jsxSorted(ElmMdiIcon, null, {
|
|
2617
2711
|
d: js.mdiFormatQuoteClose
|
|
2618
2712
|
}, null, 3, "Cw_2"), 1, null)
|
|
2619
2713
|
], 0, "Cw_3");
|
|
2620
2714
|
}, "ElmBlockQuote_component_Omca9TyRpKI"));
|
|
2621
|
-
const
|
|
2622
|
-
const
|
|
2623
|
-
const
|
|
2624
|
-
const
|
|
2625
|
-
const
|
|
2626
|
-
const
|
|
2627
|
-
const
|
|
2628
|
-
const
|
|
2629
|
-
const
|
|
2630
|
-
|
|
2631
|
-
callout,
|
|
2715
|
+
const header$3 = "_header_1xydl_27";
|
|
2716
|
+
const content = "_content_1xydl_36";
|
|
2717
|
+
const icon$2 = "_icon_1xydl_40";
|
|
2718
|
+
const note = "_note_1xydl_45";
|
|
2719
|
+
const tip = "_tip_1xydl_49";
|
|
2720
|
+
const important = "_important_1xydl_53";
|
|
2721
|
+
const warning = "_warning_1xydl_57";
|
|
2722
|
+
const caution = "_caution_1xydl_61";
|
|
2723
|
+
const styles$y = {
|
|
2724
|
+
"elm-callout": "_elm-callout_1xydl_1",
|
|
2632
2725
|
header: header$3,
|
|
2633
2726
|
content,
|
|
2634
|
-
icon: icon$
|
|
2727
|
+
icon: icon$2,
|
|
2635
2728
|
note,
|
|
2636
2729
|
tip,
|
|
2637
2730
|
important,
|
|
@@ -2654,20 +2747,20 @@ const ElmCallout = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.in
|
|
|
2654
2747
|
]);
|
|
2655
2748
|
return /* @__PURE__ */ core$1._jsxSplit("aside", {
|
|
2656
2749
|
class: [
|
|
2657
|
-
styles$
|
|
2658
|
-
styles$
|
|
2750
|
+
styles$y["elm-callout"],
|
|
2751
|
+
styles$y[_rawProps.type ?? "note"],
|
|
2659
2752
|
_rawProps.class
|
|
2660
2753
|
],
|
|
2661
2754
|
style: core$1._wrapProp(_rawProps, "style"),
|
|
2662
2755
|
...core$1._getVarProps(props)
|
|
2663
2756
|
}, core$1._getConstProps(props), [
|
|
2664
2757
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
2665
|
-
class: styles$
|
|
2758
|
+
class: styles$y.header
|
|
2666
2759
|
}, [
|
|
2667
2760
|
/* @__PURE__ */ core$1._jsxSorted(ElmMdiIcon, {
|
|
2668
2761
|
d: ICON_MAP[_rawProps.type ?? "note"]
|
|
2669
2762
|
}, {
|
|
2670
|
-
class: styles$
|
|
2763
|
+
class: styles$y.icon,
|
|
2671
2764
|
size: "1.25rem"
|
|
2672
2765
|
}, null, 3, "qp_0"),
|
|
2673
2766
|
/* @__PURE__ */ core$1._jsxSorted("span", null, null, core$1._fnSignal(_hf0$n, [
|
|
@@ -2675,13 +2768,12 @@ const ElmCallout = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.in
|
|
|
2675
2768
|
]), 1, null)
|
|
2676
2769
|
], 1, null),
|
|
2677
2770
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
2678
|
-
class: styles$
|
|
2771
|
+
class: styles$y.content
|
|
2679
2772
|
}, /* @__PURE__ */ core$1._jsxSorted(core$1.Slot, null, null, null, 3, "qp_1"), 1, null)
|
|
2680
2773
|
], 0, "qp_2");
|
|
2681
2774
|
}, "ElmCallout_component_vJ404ghu0V8"));
|
|
2682
|
-
const
|
|
2683
|
-
|
|
2684
|
-
hr
|
|
2775
|
+
const styles$x = {
|
|
2776
|
+
"elm-divider": "_elm-divider_8xkqn_1"
|
|
2685
2777
|
};
|
|
2686
2778
|
const ElmDivider = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl((_rawProps) => {
|
|
2687
2779
|
const props = core$1._restProps(_rawProps, [
|
|
@@ -2689,16 +2781,18 @@ const ElmDivider = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.in
|
|
|
2689
2781
|
]);
|
|
2690
2782
|
return /* @__PURE__ */ core$1._jsxSplit("hr", {
|
|
2691
2783
|
class: [
|
|
2692
|
-
styles$
|
|
2784
|
+
styles$x["elm-divider"],
|
|
2693
2785
|
_rawProps.class
|
|
2694
2786
|
],
|
|
2695
2787
|
...core$1._getVarProps(props)
|
|
2696
2788
|
}, core$1._getConstProps(props), null, 0, "70_0");
|
|
2697
2789
|
}, "ElmDivider_component_SDbNuDT10PU"));
|
|
2698
|
-
const
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
"
|
|
2790
|
+
const bulleted = "_bulleted_n8430_9";
|
|
2791
|
+
const numbered = "_numbered_n8430_58";
|
|
2792
|
+
const styles$w = {
|
|
2793
|
+
"elm-list": "_elm-list_n8430_1",
|
|
2794
|
+
bulleted,
|
|
2795
|
+
numbered
|
|
2702
2796
|
};
|
|
2703
2797
|
const ElmList = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl((_rawProps) => {
|
|
2704
2798
|
const props = core$1._restProps(_rawProps, [
|
|
@@ -2710,8 +2804,8 @@ const ElmList = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlin
|
|
|
2710
2804
|
return /* @__PURE__ */ core$1._jsxSplit("ol", {
|
|
2711
2805
|
class: [
|
|
2712
2806
|
textStyles.text,
|
|
2713
|
-
styles$
|
|
2714
|
-
styles$
|
|
2807
|
+
styles$w["elm-list"],
|
|
2808
|
+
styles$w.numbered,
|
|
2715
2809
|
_rawProps.class
|
|
2716
2810
|
],
|
|
2717
2811
|
style: core$1._wrapProp(_rawProps, "style"),
|
|
@@ -2721,8 +2815,8 @@ const ElmList = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlin
|
|
|
2721
2815
|
return /* @__PURE__ */ core$1._jsxSplit("ul", {
|
|
2722
2816
|
class: [
|
|
2723
2817
|
textStyles.text,
|
|
2724
|
-
styles$
|
|
2725
|
-
styles$
|
|
2818
|
+
styles$w["elm-list"],
|
|
2819
|
+
styles$w.bulleted,
|
|
2726
2820
|
_rawProps.class
|
|
2727
2821
|
],
|
|
2728
2822
|
style: core$1._wrapProp(_rawProps, "style"),
|
|
@@ -2730,13 +2824,12 @@ const ElmList = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlin
|
|
|
2730
2824
|
}, core$1._getConstProps(props), /* @__PURE__ */ core$1._jsxSorted(core$1.Slot, null, null, null, 3, "jF_2"), 0, "jF_3");
|
|
2731
2825
|
}
|
|
2732
2826
|
}, "ElmList_component_aFEzPziW6Gs"));
|
|
2733
|
-
const
|
|
2734
|
-
const
|
|
2735
|
-
const
|
|
2736
|
-
|
|
2737
|
-
table,
|
|
2827
|
+
const caption = "_caption_14qfo_8";
|
|
2828
|
+
const spacing = "_spacing_14qfo_25";
|
|
2829
|
+
const styles$v = {
|
|
2830
|
+
"elm-table": "_elm-table_14qfo_1",
|
|
2738
2831
|
caption,
|
|
2739
|
-
"caption-inner": "_caption-
|
|
2832
|
+
"caption-inner": "_caption-inner_14qfo_18",
|
|
2740
2833
|
spacing
|
|
2741
2834
|
};
|
|
2742
2835
|
const HasRowHeaderContext = core$1.createContextId("elm.table.HasRowHeader");
|
|
@@ -2758,31 +2851,30 @@ const ElmTable = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inli
|
|
|
2758
2851
|
core$1.useContextProvider(HasRowHeaderContext, hasRowHeader);
|
|
2759
2852
|
return /* @__PURE__ */ core$1._jsxSplit("table", {
|
|
2760
2853
|
class: [
|
|
2761
|
-
styles$
|
|
2854
|
+
styles$v["elm-table"],
|
|
2762
2855
|
textStyles.text,
|
|
2763
2856
|
props.class
|
|
2764
2857
|
],
|
|
2765
2858
|
...core$1._getVarProps(rest)
|
|
2766
2859
|
}, core$1._getConstProps(rest), [
|
|
2767
2860
|
props.caption && /* @__PURE__ */ core$1._jsxSorted("caption", null, null, /* @__PURE__ */ core$1._jsxSorted("span", null, {
|
|
2768
|
-
class: styles$
|
|
2861
|
+
class: styles$v.caption
|
|
2769
2862
|
}, [
|
|
2770
2863
|
/* @__PURE__ */ core$1._jsxSorted("span", null, {
|
|
2771
|
-
class: styles$
|
|
2864
|
+
class: styles$v.spacing
|
|
2772
2865
|
}, null, 3, null),
|
|
2773
2866
|
/* @__PURE__ */ core$1._jsxSorted("span", null, {
|
|
2774
|
-
class: styles$
|
|
2867
|
+
class: styles$v["caption-inner"]
|
|
2775
2868
|
}, /* @__PURE__ */ core$1._jsxSorted(ElmInlineText, null, null, core$1._wrapProp(props, "caption"), 1, "Yw_0"), 1, null),
|
|
2776
2869
|
/* @__PURE__ */ core$1._jsxSorted("span", null, {
|
|
2777
|
-
class: styles$
|
|
2870
|
+
class: styles$v.spacing
|
|
2778
2871
|
}, null, 3, null)
|
|
2779
2872
|
], 1, null), 1, "Yw_1"),
|
|
2780
2873
|
/* @__PURE__ */ core$1._jsxSorted(core$1.Slot, null, null, null, 3, "Yw_2")
|
|
2781
2874
|
], 0, "Yw_3");
|
|
2782
2875
|
}, "ElmTable_component_UT2AChu46oY"));
|
|
2783
|
-
const
|
|
2784
|
-
|
|
2785
|
-
thead
|
|
2876
|
+
const styles$u = {
|
|
2877
|
+
"elm-table-header": "_elm-table-header_jhft7_1"
|
|
2786
2878
|
};
|
|
2787
2879
|
const ElmTableHeader = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl((_rawProps) => {
|
|
2788
2880
|
const props = core$1._restProps(_rawProps, [
|
|
@@ -2791,7 +2883,7 @@ const ElmTableHeader = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$
|
|
|
2791
2883
|
core$1.useContextProvider(TableSectionContext, "head");
|
|
2792
2884
|
return /* @__PURE__ */ core$1._jsxSplit("thead", {
|
|
2793
2885
|
class: [
|
|
2794
|
-
styles$
|
|
2886
|
+
styles$u["elm-table-header"],
|
|
2795
2887
|
_rawProps.class
|
|
2796
2888
|
],
|
|
2797
2889
|
...core$1._getVarProps(props)
|
|
@@ -2807,9 +2899,8 @@ const ElmTableBody = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.
|
|
|
2807
2899
|
...core$1._getVarProps(props)
|
|
2808
2900
|
}, core$1._getConstProps(props), /* @__PURE__ */ core$1._jsxSorted(core$1.Slot, null, null, null, 3, "d6_0"), 0, "d6_1");
|
|
2809
2901
|
}, "ElmTableBody_component_cc34lI5xf6Y"));
|
|
2810
|
-
const
|
|
2811
|
-
|
|
2812
|
-
tr
|
|
2902
|
+
const styles$t = {
|
|
2903
|
+
"elm-table-row": "_elm-table-row_mkm0q_1"
|
|
2813
2904
|
};
|
|
2814
2905
|
const ElmTableRow = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl((_rawProps) => {
|
|
2815
2906
|
const props = core$1._restProps(_rawProps, [
|
|
@@ -2817,17 +2908,16 @@ const ElmTableRow = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.i
|
|
|
2817
2908
|
]);
|
|
2818
2909
|
return /* @__PURE__ */ core$1._jsxSplit("tr", {
|
|
2819
2910
|
class: [
|
|
2820
|
-
styles$
|
|
2911
|
+
styles$t["elm-table-row"],
|
|
2821
2912
|
_rawProps.class
|
|
2822
2913
|
],
|
|
2823
2914
|
...core$1._getVarProps(props)
|
|
2824
2915
|
}, core$1._getConstProps(props), /* @__PURE__ */ core$1._jsxSorted(core$1.Slot, null, null, null, 3, "Hb_0"), 0, "Hb_1");
|
|
2825
2916
|
}, "ElmTableRow_component_9imYSdaY9q8"));
|
|
2826
|
-
const
|
|
2827
|
-
const
|
|
2828
|
-
const
|
|
2829
|
-
|
|
2830
|
-
common,
|
|
2917
|
+
const td = "_td_1a21f_20";
|
|
2918
|
+
const th = "_th_1a21f_25";
|
|
2919
|
+
const styles$s = {
|
|
2920
|
+
"elm-table-cell": "_elm-table-cell_1a21f_1",
|
|
2831
2921
|
td,
|
|
2832
2922
|
th
|
|
2833
2923
|
};
|
|
@@ -2850,8 +2940,8 @@ const ElmTableCell = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.
|
|
|
2850
2940
|
const scope = props.scope ?? (inHead ? "col" : isRowHeader ? "row" : void 0);
|
|
2851
2941
|
return renderAsTh ? /* @__PURE__ */ core$1._jsxSplit("th", {
|
|
2852
2942
|
class: [
|
|
2853
|
-
styles$
|
|
2854
|
-
styles$
|
|
2943
|
+
styles$s["elm-table-cell"],
|
|
2944
|
+
styles$s.th,
|
|
2855
2945
|
props.class
|
|
2856
2946
|
],
|
|
2857
2947
|
style: core$1._wrapProp(props, "style"),
|
|
@@ -2859,22 +2949,21 @@ const ElmTableCell = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.
|
|
|
2859
2949
|
...core$1._getVarProps(rest)
|
|
2860
2950
|
}, core$1._getConstProps(rest), props.text != null ? props.text : /* @__PURE__ */ core$1._jsxSorted(core$1.Slot, null, null, null, 3, "Vm_0"), 0, "Vm_1") : /* @__PURE__ */ core$1._jsxSplit("td", {
|
|
2861
2951
|
class: [
|
|
2862
|
-
styles$
|
|
2863
|
-
styles$
|
|
2952
|
+
styles$s["elm-table-cell"],
|
|
2953
|
+
styles$s.td,
|
|
2864
2954
|
props.class
|
|
2865
2955
|
],
|
|
2866
2956
|
style: core$1._wrapProp(props, "style"),
|
|
2867
2957
|
...core$1._getVarProps(rest)
|
|
2868
2958
|
}, core$1._getConstProps(rest), props.text != null ? props.text : /* @__PURE__ */ core$1._jsxSorted(core$1.Slot, null, null, null, 3, "Vm_2"), 0, "Vm_3");
|
|
2869
2959
|
}, "ElmTableCell_component_cdS0ELa7S1k"));
|
|
2870
|
-
const
|
|
2871
|
-
const
|
|
2872
|
-
const
|
|
2873
|
-
const
|
|
2874
|
-
|
|
2875
|
-
unsupported,
|
|
2960
|
+
const message = "_message_xdddx_14";
|
|
2961
|
+
const icon$1 = "_icon_xdddx_21";
|
|
2962
|
+
const details = "_details_xdddx_25";
|
|
2963
|
+
const styles$r = {
|
|
2964
|
+
"elm-unsupported-block": "_elm-unsupported-block_xdddx_1",
|
|
2876
2965
|
message,
|
|
2877
|
-
icon: icon$
|
|
2966
|
+
icon: icon$1,
|
|
2878
2967
|
details
|
|
2879
2968
|
};
|
|
2880
2969
|
const ElmUnsupportedBlock = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl((_rawProps) => {
|
|
@@ -2884,26 +2973,26 @@ const ElmUnsupportedBlock = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */
|
|
|
2884
2973
|
]);
|
|
2885
2974
|
return /* @__PURE__ */ core$1._jsxSplit("div", {
|
|
2886
2975
|
class: [
|
|
2887
|
-
styles$
|
|
2976
|
+
styles$r["elm-unsupported-block"],
|
|
2888
2977
|
_rawProps.class
|
|
2889
2978
|
],
|
|
2890
2979
|
...core$1._getVarProps(props)
|
|
2891
2980
|
}, core$1._getConstProps(props), [
|
|
2892
2981
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
2893
|
-
class: styles$
|
|
2982
|
+
class: styles$r.message
|
|
2894
2983
|
}, [
|
|
2895
2984
|
/* @__PURE__ */ core$1._jsxSorted("svg", null, {
|
|
2896
2985
|
viewBox: "0 0 24 24",
|
|
2897
2986
|
width: "1.25rem",
|
|
2898
2987
|
height: "1.25rem",
|
|
2899
|
-
class: styles$
|
|
2988
|
+
class: styles$r.icon
|
|
2900
2989
|
}, /* @__PURE__ */ core$1._jsxSorted("path", null, {
|
|
2901
2990
|
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"
|
|
2902
2991
|
}, null, 3, null), 3, null),
|
|
2903
2992
|
/* @__PURE__ */ core$1._jsxSorted(ElmInlineText, null, null, "UNSUPPORTED BLOCK", 3, "90_0")
|
|
2904
2993
|
], 1, null),
|
|
2905
2994
|
_rawProps.details && /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
2906
|
-
class: styles$
|
|
2995
|
+
class: styles$r.details
|
|
2907
2996
|
}, /* @__PURE__ */ core$1._jsxSorted(ElmInlineText, null, null, core$1._wrapProp(_rawProps, "details"), 1, "90_1"), 1, "90_2")
|
|
2908
2997
|
], 0, "90_3");
|
|
2909
2998
|
}, "ElmUnsupportedBlock_component_yKqwfnlPSP4"));
|
|
@@ -3235,7 +3324,7 @@ function compactReasoningMessageEvents(events) {
|
|
|
3235
3324
|
function compactEventsExtended(events) {
|
|
3236
3325
|
return client.compactEvents(compactReasoningMessageEvents(events));
|
|
3237
3326
|
}
|
|
3238
|
-
const styles$
|
|
3327
|
+
const styles$q = {
|
|
3239
3328
|
"message-content-user-wrapper": "_message-content-user-wrapper_80z92_8",
|
|
3240
3329
|
"message-content-user-inner": "_message-content-user-inner_80z92_14",
|
|
3241
3330
|
"message-content-user-content": "_message-content-user-content_80z92_22",
|
|
@@ -3292,25 +3381,25 @@ const ElmAgUiEventRenderer = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */
|
|
|
3292
3381
|
if (!userMsg) break;
|
|
3293
3382
|
const contents = userMsg.content;
|
|
3294
3383
|
const userInputComponent = /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
3295
|
-
class: styles$
|
|
3384
|
+
class: styles$q["message-content-user-wrapper"]
|
|
3296
3385
|
}, /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
3297
|
-
class: styles$
|
|
3386
|
+
class: styles$q["message-content-user-inner"]
|
|
3298
3387
|
}, [
|
|
3299
3388
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
3300
|
-
class: styles$
|
|
3389
|
+
class: styles$q["message-content-type"]
|
|
3301
3390
|
}, [
|
|
3302
3391
|
/* @__PURE__ */ core$1._jsxSorted(ElmMdiIcon, null, {
|
|
3303
|
-
class: styles$
|
|
3392
|
+
class: styles$q["message-content-icon"],
|
|
3304
3393
|
d: js.mdiAccount
|
|
3305
3394
|
}, null, 3, "Ds_3"),
|
|
3306
3395
|
/* @__PURE__ */ core$1._jsxSorted(ElmInlineText, null, null, "User", 3, "Ds_4"),
|
|
3307
3396
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
3308
3397
|
"aria-hidden": "true",
|
|
3309
|
-
class: styles$
|
|
3398
|
+
class: styles$q["message-content-spacer"]
|
|
3310
3399
|
}, null, 3, null)
|
|
3311
3400
|
], 1, null),
|
|
3312
3401
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
3313
|
-
class: styles$
|
|
3402
|
+
class: styles$q["message-content-user-content"]
|
|
3314
3403
|
}, typeof contents === "string" ? /* @__PURE__ */ core$1._jsxSorted(ElmInlineText, null, null, contents, 1, "Ds_5") : contents.map((item, i) => /* @__PURE__ */ core$1._jsxSorted("span", null, null, renderInputContent(item), 1, i)), 1, null)
|
|
3315
3404
|
], 1, null), 1, "Ds_6");
|
|
3316
3405
|
components.push(userInputComponent);
|
|
@@ -3326,29 +3415,30 @@ const ElmAgUiEventRenderer = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */
|
|
|
3326
3415
|
};
|
|
3327
3416
|
return /* @__PURE__ */ core$1._jsxSorted("div", {
|
|
3328
3417
|
class: [
|
|
3329
|
-
styles$
|
|
3418
|
+
styles$q["elm-my-something"],
|
|
3330
3419
|
_rawProps.class
|
|
3331
3420
|
],
|
|
3332
3421
|
style: core$1._wrapProp(_rawProps, "style")
|
|
3333
3422
|
}, null, render(_rawProps.events), 1, "Ds_7");
|
|
3334
3423
|
}, "ElmAgUiEventRenderer_component_ifhto4pMkTc"));
|
|
3335
|
-
const
|
|
3336
|
-
const
|
|
3337
|
-
|
|
3338
|
-
"
|
|
3339
|
-
"
|
|
3424
|
+
const card = "_card_1st6f_22";
|
|
3425
|
+
const input$1 = "_input_1st6f_33";
|
|
3426
|
+
const styles$p = {
|
|
3427
|
+
"elm-ag-ui-input": "_elm-ag-ui-input_1st6f_1",
|
|
3428
|
+
"picker-container": "_picker-container_1st6f_9",
|
|
3429
|
+
card,
|
|
3340
3430
|
input: input$1,
|
|
3341
|
-
"button-row": "_button-
|
|
3342
|
-
"plus-button": "_plus-
|
|
3343
|
-
"submit-button": "_submit-
|
|
3431
|
+
"button-row": "_button-row_1st6f_56",
|
|
3432
|
+
"plus-button": "_plus-button_1st6f_64",
|
|
3433
|
+
"submit-button": "_submit-button_1st6f_81"
|
|
3344
3434
|
};
|
|
3345
3435
|
const panel$1 = "_panel_8yo2s_1";
|
|
3346
|
-
const empty = "_empty_8yo2s_16";
|
|
3436
|
+
const empty$1 = "_empty_8yo2s_16";
|
|
3347
3437
|
const form = "_form_8yo2s_86";
|
|
3348
|
-
const error$
|
|
3349
|
-
const styles$
|
|
3438
|
+
const error$2 = "_error_8yo2s_135";
|
|
3439
|
+
const styles$o = {
|
|
3350
3440
|
panel: panel$1,
|
|
3351
|
-
empty,
|
|
3441
|
+
empty: empty$1,
|
|
3352
3442
|
"prompt-row": "_prompt-row_8yo2s_23",
|
|
3353
3443
|
"prompt-row-active": "_prompt-row-active_8yo2s_34",
|
|
3354
3444
|
"prompt-head": "_prompt-head_8yo2s_38",
|
|
@@ -3362,104 +3452,13 @@ const styles$q = {
|
|
|
3362
3452
|
"form-actions": "_form-actions_8yo2s_92",
|
|
3363
3453
|
"use-button": "_use-button_8yo2s_98",
|
|
3364
3454
|
"cancel-button": "_cancel-button_8yo2s_119",
|
|
3365
|
-
error: error$
|
|
3455
|
+
error: error$2,
|
|
3366
3456
|
"field-label": "_field-label_8yo2s_140",
|
|
3367
3457
|
"field-name": "_field-name_8yo2s_147",
|
|
3368
3458
|
"field-required": "_field-required_8yo2s_152",
|
|
3369
3459
|
"field-input": "_field-input_8yo2s_157",
|
|
3370
3460
|
"field-hint": "_field-hint_8yo2s_178"
|
|
3371
3461
|
};
|
|
3372
|
-
const open = "_open_1ijyc_17";
|
|
3373
|
-
const styles$p = {
|
|
3374
|
-
"use-modal": "_use-modal_1ijyc_1",
|
|
3375
|
-
open
|
|
3376
|
-
};
|
|
3377
|
-
const useModal = (options = {}) => {
|
|
3378
|
-
const delay = options.delay ?? 200;
|
|
3379
|
-
const isOpen = core$1.useSignal(false);
|
|
3380
|
-
const isShown = core$1.useSignal(false);
|
|
3381
|
-
const hideGen = core$1.useSignal(0);
|
|
3382
|
-
const hideTimerId = core$1.useSignal(void 0);
|
|
3383
|
-
core$1.useTaskQrl(/* @__PURE__ */ core$1.inlinedQrl(({ cleanup }) => {
|
|
3384
|
-
const hideTimerId2 = core$1._captures[0];
|
|
3385
|
-
cleanup(() => {
|
|
3386
|
-
if (hideTimerId2.value !== void 0) clearTimeout(hideTimerId2.value);
|
|
3387
|
-
});
|
|
3388
|
-
}, "useModal_useTask_872zagKnsz0", [
|
|
3389
|
-
hideTimerId
|
|
3390
|
-
]));
|
|
3391
|
-
const show2 = /* @__PURE__ */ core$1.inlinedQrl(() => {
|
|
3392
|
-
const hideGen2 = core$1._captures[0], isOpen2 = core$1._captures[1], isShown2 = core$1._captures[2];
|
|
3393
|
-
hideGen2.value++;
|
|
3394
|
-
isOpen2.value = true;
|
|
3395
|
-
isShown2.value = true;
|
|
3396
|
-
}, "useModal_show_7khcPaT0Cx8", [
|
|
3397
|
-
hideGen,
|
|
3398
|
-
isOpen,
|
|
3399
|
-
isShown
|
|
3400
|
-
]);
|
|
3401
|
-
const hide = /* @__PURE__ */ core$1.inlinedQrl(() => {
|
|
3402
|
-
const delay2 = core$1._captures[0], hideGen2 = core$1._captures[1], hideTimerId2 = core$1._captures[2], isOpen2 = core$1._captures[3], isShown2 = core$1._captures[4];
|
|
3403
|
-
const gen = ++hideGen2.value;
|
|
3404
|
-
isShown2.value = false;
|
|
3405
|
-
hideTimerId2.value = core$1.noSerialize(setTimeout(() => {
|
|
3406
|
-
if (hideGen2.value === gen) {
|
|
3407
|
-
isOpen2.value = false;
|
|
3408
|
-
}
|
|
3409
|
-
hideTimerId2.value = void 0;
|
|
3410
|
-
}, delay2));
|
|
3411
|
-
}, "useModal_hide_mSugMHYElis", [
|
|
3412
|
-
delay,
|
|
3413
|
-
hideGen,
|
|
3414
|
-
hideTimerId,
|
|
3415
|
-
isOpen,
|
|
3416
|
-
isShown
|
|
3417
|
-
]);
|
|
3418
|
-
const toggle2 = /* @__PURE__ */ core$1.inlinedQrl(() => {
|
|
3419
|
-
const hide2 = core$1._captures[0], isShown2 = core$1._captures[1], show22 = core$1._captures[2];
|
|
3420
|
-
if (isShown2.value) {
|
|
3421
|
-
hide2();
|
|
3422
|
-
} else {
|
|
3423
|
-
show22();
|
|
3424
|
-
}
|
|
3425
|
-
}, "useModal_toggle_eBYb4dHabL0", [
|
|
3426
|
-
hide,
|
|
3427
|
-
isShown,
|
|
3428
|
-
show2
|
|
3429
|
-
]);
|
|
3430
|
-
const Modal = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl(() => {
|
|
3431
|
-
const delay2 = core$1._captures[0], hide2 = core$1._captures[1], isOpen2 = core$1._captures[2], isShown2 = core$1._captures[3];
|
|
3432
|
-
return /* @__PURE__ */ core$1._jsxSorted("div", {
|
|
3433
|
-
class: [
|
|
3434
|
-
styles$p["use-modal"],
|
|
3435
|
-
{
|
|
3436
|
-
[styles$p["open"]]: isShown2.value
|
|
3437
|
-
}
|
|
3438
|
-
],
|
|
3439
|
-
style: {
|
|
3440
|
-
"--elmethis-scoped-delay": `${delay2}ms`
|
|
3441
|
-
}
|
|
3442
|
-
}, {
|
|
3443
|
-
"q-e:click": hide2
|
|
3444
|
-
}, isOpen2.value && /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
3445
|
-
role: "dialog",
|
|
3446
|
-
"stoppropagation:click": true
|
|
3447
|
-
}, /* @__PURE__ */ core$1._jsxSorted(core$1.Slot, null, null, null, 3, "GG_0"), 1, "GG_1"), 1, "GG_2");
|
|
3448
|
-
}, "useModal_Modal_component_H3EY0g5t53g", [
|
|
3449
|
-
delay,
|
|
3450
|
-
hide,
|
|
3451
|
-
isOpen,
|
|
3452
|
-
isShown
|
|
3453
|
-
]));
|
|
3454
|
-
return {
|
|
3455
|
-
Modal,
|
|
3456
|
-
isOpen,
|
|
3457
|
-
isShown,
|
|
3458
|
-
show: show2,
|
|
3459
|
-
hide,
|
|
3460
|
-
toggle: toggle2
|
|
3461
|
-
};
|
|
3462
|
-
};
|
|
3463
3462
|
const _hf0$l = (p0) => p0.descriptor.name;
|
|
3464
3463
|
const _hf1$b = (p0) => p0.descriptor.description;
|
|
3465
3464
|
const _hf2$8 = (p0, p1) => p1.values[p0.name] ?? "";
|
|
@@ -3574,12 +3573,12 @@ const ElmAgUiPromptPicker = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */
|
|
|
3574
3573
|
return /* @__PURE__ */ core$1._jsxSorted(jsxRuntime.Fragment, null, null, [
|
|
3575
3574
|
/* @__PURE__ */ core$1._jsxSorted("div", {
|
|
3576
3575
|
class: [
|
|
3577
|
-
styles$
|
|
3576
|
+
styles$o.panel,
|
|
3578
3577
|
_rawProps.class
|
|
3579
3578
|
],
|
|
3580
3579
|
style: core$1._wrapProp(_rawProps, "style")
|
|
3581
3580
|
}, null, _rawProps.prompts.length === 0 ? /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
3582
|
-
class: styles$
|
|
3581
|
+
class: styles$o.empty
|
|
3583
3582
|
}, "No prompts available.", 3, "O0_0") : _rawProps.prompts.map((p, idx) => {
|
|
3584
3583
|
const qrl_4294901764 = /* @__PURE__ */ core$1.inlinedQrl((_, _1, p2) => {
|
|
3585
3584
|
const onRowClick$2 = core$1._captures[0];
|
|
@@ -3589,41 +3588,41 @@ const ElmAgUiPromptPicker = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */
|
|
|
3589
3588
|
]);
|
|
3590
3589
|
return /* @__PURE__ */ core$1._jsxSorted("div", {
|
|
3591
3590
|
class: [
|
|
3592
|
-
styles$
|
|
3593
|
-
idx === _rawProps.activeIndex && styles$
|
|
3591
|
+
styles$o["prompt-row"],
|
|
3592
|
+
idx === _rawProps.activeIndex && styles$o["prompt-row-active"]
|
|
3594
3593
|
],
|
|
3595
3594
|
"q-e:click": qrl_4294901764,
|
|
3596
3595
|
"q:p": p
|
|
3597
3596
|
}, null, [
|
|
3598
3597
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
3599
|
-
class: styles$
|
|
3598
|
+
class: styles$o["prompt-head"]
|
|
3600
3599
|
}, /* @__PURE__ */ core$1._jsxSorted("span", null, {
|
|
3601
|
-
class: styles$
|
|
3600
|
+
class: styles$o["prompt-name"]
|
|
3602
3601
|
}, core$1._wrapProp(p, "name"), 1, null), 1, null),
|
|
3603
3602
|
p.description && /* @__PURE__ */ core$1._jsxSorted("span", null, {
|
|
3604
|
-
class: styles$
|
|
3603
|
+
class: styles$o["prompt-description"]
|
|
3605
3604
|
}, core$1._wrapProp(p, "description"), 1, "O0_1")
|
|
3606
3605
|
], 4, p.key);
|
|
3607
3606
|
}), 1, null),
|
|
3608
3607
|
/* @__PURE__ */ core$1._jsxSorted(modal2.Modal, null, null, /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
3609
|
-
class: styles$
|
|
3608
|
+
class: styles$o["modal-card"]
|
|
3610
3609
|
}, active2.descriptor && /* @__PURE__ */ core$1._jsxSorted(jsxRuntime.Fragment, null, null, [
|
|
3611
3610
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
3612
|
-
class: styles$
|
|
3611
|
+
class: styles$o["modal-header"]
|
|
3613
3612
|
}, [
|
|
3614
3613
|
/* @__PURE__ */ core$1._jsxSorted("span", null, {
|
|
3615
|
-
class: styles$
|
|
3614
|
+
class: styles$o["modal-title"]
|
|
3616
3615
|
}, core$1._fnSignal(_hf0$l, [
|
|
3617
3616
|
active2
|
|
3618
3617
|
]), 3, null),
|
|
3619
3618
|
active2.descriptor.description && /* @__PURE__ */ core$1._jsxSorted("span", null, {
|
|
3620
|
-
class: styles$
|
|
3619
|
+
class: styles$o["modal-description"]
|
|
3621
3620
|
}, core$1._fnSignal(_hf1$b, [
|
|
3622
3621
|
active2
|
|
3623
3622
|
]), 3, "O0_2")
|
|
3624
3623
|
], 1, null),
|
|
3625
3624
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
3626
|
-
class: styles$
|
|
3625
|
+
class: styles$o.form
|
|
3627
3626
|
}, [
|
|
3628
3627
|
(active2.descriptor.arguments ?? []).map((a, idx) => {
|
|
3629
3628
|
const qrl_4294901765 = /* @__PURE__ */ core$1.inlinedQrl((_, el, a2) => {
|
|
@@ -3639,14 +3638,14 @@ const ElmAgUiPromptPicker = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */
|
|
|
3639
3638
|
active2
|
|
3640
3639
|
]);
|
|
3641
3640
|
return /* @__PURE__ */ core$1._jsxSorted("label", null, {
|
|
3642
|
-
class: styles$
|
|
3641
|
+
class: styles$o["field-label"]
|
|
3643
3642
|
}, [
|
|
3644
3643
|
/* @__PURE__ */ core$1._jsxSorted("span", null, {
|
|
3645
|
-
class: styles$
|
|
3644
|
+
class: styles$o["field-name"]
|
|
3646
3645
|
}, [
|
|
3647
3646
|
core$1._wrapProp(a, "name"),
|
|
3648
3647
|
a.required && /* @__PURE__ */ core$1._jsxSorted("span", null, {
|
|
3649
|
-
class: styles$
|
|
3648
|
+
class: styles$o["field-required"]
|
|
3650
3649
|
}, "*", 3, "O0_3")
|
|
3651
3650
|
], 1, null),
|
|
3652
3651
|
a.enum && a.enum.length > 0 ? /* @__PURE__ */ core$1._jsxSorted("select", {
|
|
@@ -3659,7 +3658,7 @@ const ElmAgUiPromptPicker = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */
|
|
|
3659
3658
|
active2
|
|
3660
3659
|
])
|
|
3661
3660
|
}, {
|
|
3662
|
-
class: styles$
|
|
3661
|
+
class: styles$o["field-input"]
|
|
3663
3662
|
}, [
|
|
3664
3663
|
!a.required && /* @__PURE__ */ core$1._jsxSorted("option", null, {
|
|
3665
3664
|
value: ""
|
|
@@ -3687,29 +3686,29 @@ const ElmAgUiPromptPicker = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */
|
|
|
3687
3686
|
active2
|
|
3688
3687
|
])
|
|
3689
3688
|
}, {
|
|
3690
|
-
class: styles$
|
|
3689
|
+
class: styles$o["field-input"],
|
|
3691
3690
|
type: "text"
|
|
3692
3691
|
}, null, 6, "O0_6"),
|
|
3693
3692
|
a.enum && a.description && /* @__PURE__ */ core$1._jsxSorted("span", null, {
|
|
3694
|
-
class: styles$
|
|
3693
|
+
class: styles$o["field-hint"]
|
|
3695
3694
|
}, core$1._wrapProp(a, "description"), 1, "O0_7")
|
|
3696
3695
|
], 1, a.name);
|
|
3697
3696
|
}),
|
|
3698
3697
|
active2.error && /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
3699
|
-
class: styles$
|
|
3698
|
+
class: styles$o.error
|
|
3700
3699
|
}, core$1._wrapProp(active2, "error"), 3, "O0_8")
|
|
3701
3700
|
], 1, null),
|
|
3702
3701
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
3703
|
-
class: styles$
|
|
3702
|
+
class: styles$o["form-actions"]
|
|
3704
3703
|
}, [
|
|
3705
3704
|
/* @__PURE__ */ core$1._jsxSorted("button", null, {
|
|
3706
3705
|
type: "button",
|
|
3707
|
-
class: styles$
|
|
3706
|
+
class: styles$o["cancel-button"],
|
|
3708
3707
|
"q-e:click": onCancel$
|
|
3709
3708
|
}, "Cancel", 3, null),
|
|
3710
3709
|
/* @__PURE__ */ core$1._jsxSorted("button", null, {
|
|
3711
3710
|
type: "button",
|
|
3712
|
-
class: styles$
|
|
3711
|
+
class: styles$o["use-button"],
|
|
3713
3712
|
disabled: core$1._wrapProp(active2, "submitting"),
|
|
3714
3713
|
"q-e:click": onSubmit$
|
|
3715
3714
|
}, core$1._fnSignal(_hf4$3, [
|
|
@@ -3856,7 +3855,7 @@ const ElmAgUiInput = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.
|
|
|
3856
3855
|
]);
|
|
3857
3856
|
return /* @__PURE__ */ core$1._jsxSorted("div", {
|
|
3858
3857
|
class: [
|
|
3859
|
-
styles$
|
|
3858
|
+
styles$p["elm-ag-ui-input"],
|
|
3860
3859
|
_rawProps.class
|
|
3861
3860
|
],
|
|
3862
3861
|
style: core$1._wrapProp(_rawProps, "style")
|
|
@@ -3867,7 +3866,7 @@ const ElmAgUiInput = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.
|
|
|
3867
3866
|
isPickerOpen,
|
|
3868
3867
|
slashRange
|
|
3869
3868
|
]),
|
|
3870
|
-
class: styles$
|
|
3869
|
+
class: styles$p["picker-container"]
|
|
3871
3870
|
}, /* @__PURE__ */ core$1._jsxSorted(ElmAgUiPromptPicker, null, {
|
|
3872
3871
|
prompts: core$1._fnSignal(_hf1$a, [
|
|
3873
3872
|
_rawProps,
|
|
@@ -3883,7 +3882,7 @@ const ElmAgUiInput = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.
|
|
|
3883
3882
|
}, null, 3, "C8_0"), 1, "C8_1"),
|
|
3884
3883
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
3885
3884
|
class: [
|
|
3886
|
-
styles$
|
|
3885
|
+
styles$p["card"],
|
|
3887
3886
|
textStyles["text"]
|
|
3888
3887
|
]
|
|
3889
3888
|
}, [
|
|
@@ -3892,12 +3891,12 @@ const ElmAgUiInput = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.
|
|
|
3892
3891
|
}, {
|
|
3893
3892
|
name: "prompt",
|
|
3894
3893
|
"aria-label": "Prompt",
|
|
3895
|
-
class: styles$
|
|
3894
|
+
class: styles$p["input"],
|
|
3896
3895
|
"q-e:input": handleInput$,
|
|
3897
3896
|
"q-e:keydown": handleKeyDown$
|
|
3898
3897
|
}, null, 3, null),
|
|
3899
3898
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
3900
|
-
class: styles$
|
|
3899
|
+
class: styles$p["button-row"]
|
|
3901
3900
|
}, [
|
|
3902
3901
|
hasPicker && /* @__PURE__ */ core$1._jsxSorted("div", {
|
|
3903
3902
|
"q-e:click": /* @__PURE__ */ core$1.inlinedQrl((_, _1, isPickerOpen2, textAreaRef2) => {
|
|
@@ -3916,7 +3915,7 @@ const ElmAgUiInput = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.
|
|
|
3916
3915
|
textAreaRef
|
|
3917
3916
|
]
|
|
3918
3917
|
}, {
|
|
3919
|
-
class: styles$
|
|
3918
|
+
class: styles$p["plus-button"],
|
|
3920
3919
|
"aria-label": core$1._fnSignal(_hf3$6, [
|
|
3921
3920
|
isPickerOpen
|
|
3922
3921
|
])
|
|
@@ -3929,7 +3928,7 @@ const ElmAgUiInput = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.
|
|
|
3929
3928
|
/* @__PURE__ */ core$1._jsxSorted("div", {
|
|
3930
3929
|
"q-e:click": _rawProps.isRunning ? _rawProps.onAbort$ : onSubmit
|
|
3931
3930
|
}, {
|
|
3932
|
-
class: styles$
|
|
3931
|
+
class: styles$p["submit-button"]
|
|
3933
3932
|
}, /* @__PURE__ */ core$1._jsxSorted(ElmMdiIcon, {
|
|
3934
3933
|
d: _rawProps.isRunning ? js.mdiStop : js.mdiSend
|
|
3935
3934
|
}, {
|
|
@@ -3940,7 +3939,7 @@ const ElmAgUiInput = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.
|
|
|
3940
3939
|
], 1, null)
|
|
3941
3940
|
], 1, "C8_5");
|
|
3942
3941
|
}, "ElmAgUiInput_component_Q6DXfNqyu3E"));
|
|
3943
|
-
const styles$
|
|
3942
|
+
const styles$n = {
|
|
3944
3943
|
"message-content-assistant-wrapper": "_message-content-assistant-wrapper_1jrzm_1",
|
|
3945
3944
|
"message-content-user-wrapper": "_message-content-user-wrapper_1jrzm_8",
|
|
3946
3945
|
"message-content-user-inner": "_message-content-user-inner_1jrzm_14",
|
|
@@ -3951,8 +3950,8 @@ const styles$o = {
|
|
|
3951
3950
|
"clickable-icon": "_clickable-icon_1jrzm_51",
|
|
3952
3951
|
"reasoning-running": "_reasoning-running_1jrzm_65"
|
|
3953
3952
|
};
|
|
3954
|
-
const styles$
|
|
3955
|
-
"markdown
|
|
3953
|
+
const styles$m = {
|
|
3954
|
+
"elm-markdown": "_elm-markdown_14gxe_1"
|
|
3956
3955
|
};
|
|
3957
3956
|
const _hf0$j = (p0) => p0.ordered ? "ordered" : "unordered";
|
|
3958
3957
|
const renderByToken = (tokens) => {
|
|
@@ -4082,7 +4081,7 @@ const ElmMarkdown = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.i
|
|
|
4082
4081
|
const rest = core$1._restProps(props, [
|
|
4083
4082
|
"class",
|
|
4084
4083
|
"markdown",
|
|
4085
|
-
"
|
|
4084
|
+
"isStreaming"
|
|
4086
4085
|
]);
|
|
4087
4086
|
const stableTokens = core$1.useSignal([]);
|
|
4088
4087
|
const tailTokens = core$1.useSignal([]);
|
|
@@ -4092,7 +4091,7 @@ const ElmMarkdown = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.i
|
|
|
4092
4091
|
const allTokens = marked.marked.setOptions({
|
|
4093
4092
|
gfm: true
|
|
4094
4093
|
}).lexer(md);
|
|
4095
|
-
if (props2.
|
|
4094
|
+
if (props2.isStreaming && allTokens.length > 0) {
|
|
4096
4095
|
const newStable = allTokens.slice(0, -1);
|
|
4097
4096
|
if (newStable.length !== stableTokens2.value.length) {
|
|
4098
4097
|
stableTokens2.value = newStable;
|
|
@@ -4109,7 +4108,7 @@ const ElmMarkdown = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.i
|
|
|
4109
4108
|
]));
|
|
4110
4109
|
return /* @__PURE__ */ core$1._jsxSplit("div", {
|
|
4111
4110
|
class: [
|
|
4112
|
-
styles$
|
|
4111
|
+
styles$m["elm-markdown"],
|
|
4113
4112
|
props.class
|
|
4114
4113
|
],
|
|
4115
4114
|
...core$1._getVarProps(rest)
|
|
@@ -4121,7 +4120,7 @@ const ElmMarkdown = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.i
|
|
|
4121
4120
|
], 0, "c0_5");
|
|
4122
4121
|
}, "ElmMarkdown_component_MjKh8ZU4JE4"));
|
|
4123
4122
|
const summary = "_summary_1ya7x_2";
|
|
4124
|
-
const styles$
|
|
4123
|
+
const styles$l = {
|
|
4125
4124
|
"elm-ag-ui-tool-execution": "_elm-ag-ui-tool-execution_1ya7x_1",
|
|
4126
4125
|
summary
|
|
4127
4126
|
};
|
|
@@ -4273,7 +4272,7 @@ const ElmAgUiToolExecution = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */
|
|
|
4273
4272
|
]));
|
|
4274
4273
|
return /* @__PURE__ */ core$1._jsxSorted("div", {
|
|
4275
4274
|
class: [
|
|
4276
|
-
styles$
|
|
4275
|
+
styles$l["elm-ag-ui-tool-execution"],
|
|
4277
4276
|
_rawProps.class
|
|
4278
4277
|
],
|
|
4279
4278
|
style: core$1._fnSignal(_hf0$i, [
|
|
@@ -4286,7 +4285,7 @@ const ElmAgUiToolExecution = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */
|
|
|
4286
4285
|
/* @__PURE__ */ core$1._jsxSorted("div", {
|
|
4287
4286
|
"q:slot": "summary"
|
|
4288
4287
|
}, {
|
|
4289
|
-
class: styles$
|
|
4288
|
+
class: styles$l.summary
|
|
4290
4289
|
}, [
|
|
4291
4290
|
/* @__PURE__ */ core$1._jsxSorted(ElmMdiIcon, null, {
|
|
4292
4291
|
d: js.mdiHammerScrewdriver,
|
|
@@ -4295,7 +4294,7 @@ const ElmAgUiToolExecution = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */
|
|
|
4295
4294
|
/* @__PURE__ */ core$1._jsxSorted(ElmInlineText, null, null, core$1._wrapProp(_rawProps, "toolName"), 1, "o2_1")
|
|
4296
4295
|
], 1, null),
|
|
4297
4296
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
4298
|
-
class: styles$
|
|
4297
|
+
class: styles$l.summary
|
|
4299
4298
|
}, [
|
|
4300
4299
|
/* @__PURE__ */ core$1._jsxSorted(ElmMdiIcon, {
|
|
4301
4300
|
color: _rawProps.toolEventType === core$2.EventType.TOOL_CALL_START ? "var(--elmethis-color-accent-info)" : "var(--elmethis-color-accent-success)"
|
|
@@ -4312,7 +4311,7 @@ const ElmAgUiToolExecution = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */
|
|
|
4312
4311
|
/* @__PURE__ */ core$1._jsxSorted("div", {
|
|
4313
4312
|
"q:slot": "summary"
|
|
4314
4313
|
}, {
|
|
4315
|
-
class: styles$
|
|
4314
|
+
class: styles$l.summary
|
|
4316
4315
|
}, [
|
|
4317
4316
|
/* @__PURE__ */ core$1._jsxSorted(ElmMdiIcon, null, {
|
|
4318
4317
|
d: js.mdiCodeJson,
|
|
@@ -4326,7 +4325,7 @@ const ElmAgUiToolExecution = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */
|
|
|
4326
4325
|
}, null, 3, "o2_6")
|
|
4327
4326
|
], 1, "o2_7"),
|
|
4328
4327
|
_rawProps.toolEventType === core$2.EventType.TOOL_CALL_START ? null : /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
4329
|
-
class: styles$
|
|
4328
|
+
class: styles$l.summary
|
|
4330
4329
|
}, [
|
|
4331
4330
|
/* @__PURE__ */ core$1._jsxSorted(ElmMdiIcon, {
|
|
4332
4331
|
color: _rawProps.toolEventType === core$2.EventType.TOOL_CALL_ARGS || _rawProps.toolEventType === core$2.EventType.TOOL_CALL_END ? "var(--elmethis-color-accent-info)" : "var(--elmethis-color-accent-success)"
|
|
@@ -4343,7 +4342,7 @@ const ElmAgUiToolExecution = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */
|
|
|
4343
4342
|
/* @__PURE__ */ core$1._jsxSorted("div", {
|
|
4344
4343
|
"q:slot": "summary"
|
|
4345
4344
|
}, {
|
|
4346
|
-
class: styles$
|
|
4345
|
+
class: styles$l.summary
|
|
4347
4346
|
}, [
|
|
4348
4347
|
/* @__PURE__ */ core$1._jsxSorted(ElmMdiIcon, null, {
|
|
4349
4348
|
d: js.mdiCodeJson,
|
|
@@ -4368,7 +4367,7 @@ const ElmCopyIcon = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.i
|
|
|
4368
4367
|
}, "ElmCopyIcon_component_F4DnU406zxQ"));
|
|
4369
4368
|
const image = "_image_1io0s_29";
|
|
4370
4369
|
const text$1 = "_text_1io0s_35";
|
|
4371
|
-
const styles$
|
|
4370
|
+
const styles$k = {
|
|
4372
4371
|
"elm-ag-ui-input-content": "_elm-ag-ui-input-content_1io0s_1",
|
|
4373
4372
|
"media-component-container": "_media-component-container_1io0s_8",
|
|
4374
4373
|
"media-component": "_media-component_1io0s_8",
|
|
@@ -4383,7 +4382,7 @@ const _hf1$9 = (p0) => p0.source.mimeType;
|
|
|
4383
4382
|
const ElmAgUiInputContent = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl((_rawProps) => {
|
|
4384
4383
|
const renderTextContent = (text2) => {
|
|
4385
4384
|
return /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
4386
|
-
class: styles$
|
|
4385
|
+
class: styles$k["message-content-user-content"]
|
|
4387
4386
|
}, text2, 1, "xj_0");
|
|
4388
4387
|
};
|
|
4389
4388
|
if (typeof _rawProps.inputContent === "string") {
|
|
@@ -4406,22 +4405,22 @@ const ElmAgUiInputContent = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */
|
|
|
4406
4405
|
case "document": {
|
|
4407
4406
|
return /* @__PURE__ */ core$1._jsxSorted(jsxRuntime.Fragment, null, null, /* @__PURE__ */ core$1._jsxSorted("div", {
|
|
4408
4407
|
class: [
|
|
4409
|
-
styles$
|
|
4408
|
+
styles$k["media-component"],
|
|
4410
4409
|
_rawProps.class
|
|
4411
4410
|
],
|
|
4412
4411
|
style: core$1._wrapProp(_rawProps, "style")
|
|
4413
4412
|
}, null, [
|
|
4414
4413
|
/* @__PURE__ */ core$1._jsxSorted(ElmMdiIcon, null, {
|
|
4415
|
-
class: styles$
|
|
4414
|
+
class: styles$k["type-icon"],
|
|
4416
4415
|
d: js.mdiTextBox
|
|
4417
4416
|
}, null, 3, "xj_3"),
|
|
4418
4417
|
/* @__PURE__ */ core$1._jsxSorted("div", null, null, /* @__PURE__ */ core$1._jsxSorted("pre", null, {
|
|
4419
|
-
class: styles$
|
|
4418
|
+
class: styles$k.text
|
|
4420
4419
|
}, core$1._fnSignal(_hf0$h, [
|
|
4421
4420
|
content2
|
|
4422
4421
|
]), 1, null), 1, null),
|
|
4423
4422
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
4424
|
-
class: styles$
|
|
4423
|
+
class: styles$k["mime-type-label"]
|
|
4425
4424
|
}, core$1._fnSignal(_hf1$9, [
|
|
4426
4425
|
content2
|
|
4427
4426
|
]), 1, null)
|
|
@@ -4435,24 +4434,24 @@ const ElmAgUiInputContent = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */
|
|
|
4435
4434
|
const url = source.type === "data" ? `data:${source.mimeType};base64,${source.value}` : source.value;
|
|
4436
4435
|
mediaComponents.push(/* @__PURE__ */ core$1._jsxSorted("div", {
|
|
4437
4436
|
class: [
|
|
4438
|
-
styles$
|
|
4437
|
+
styles$k["media-component"],
|
|
4439
4438
|
_rawProps.class
|
|
4440
4439
|
],
|
|
4441
4440
|
style: core$1._wrapProp(_rawProps, "style")
|
|
4442
4441
|
}, null, [
|
|
4443
4442
|
/* @__PURE__ */ core$1._jsxSorted(ElmMdiIcon, null, {
|
|
4444
|
-
class: styles$
|
|
4443
|
+
class: styles$k["type-icon"],
|
|
4445
4444
|
d: js.mdiImage
|
|
4446
4445
|
}, null, 3, "xj_6"),
|
|
4447
4446
|
/* @__PURE__ */ core$1._jsxSorted("img", {
|
|
4448
4447
|
src: url
|
|
4449
4448
|
}, {
|
|
4450
|
-
class: styles$
|
|
4449
|
+
class: styles$k.image,
|
|
4451
4450
|
width: 96,
|
|
4452
4451
|
height: 96
|
|
4453
4452
|
}, null, 3, null),
|
|
4454
4453
|
source.mimeType && /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
4455
|
-
class: styles$
|
|
4454
|
+
class: styles$k["mime-type-label"]
|
|
4456
4455
|
}, core$1._wrapProp(source, "mimeType"), 1, "xj_7")
|
|
4457
4456
|
], 1, "xj_8"));
|
|
4458
4457
|
break;
|
|
@@ -4460,10 +4459,10 @@ const ElmAgUiInputContent = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */
|
|
|
4460
4459
|
}
|
|
4461
4460
|
}
|
|
4462
4461
|
return /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
4463
|
-
class: styles$
|
|
4462
|
+
class: styles$k["elm-ag-ui-input-content"]
|
|
4464
4463
|
}, [
|
|
4465
4464
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
4466
|
-
class: styles$
|
|
4465
|
+
class: styles$k["media-component-container"]
|
|
4467
4466
|
}, mediaComponents, 1, null),
|
|
4468
4467
|
texts.length > 0 && renderTextContent(texts.join("\n"))
|
|
4469
4468
|
], 1, "xj_9");
|
|
@@ -4510,27 +4509,27 @@ const ElmAgUiMessageRenderer = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__
|
|
|
4510
4509
|
return /* @__PURE__ */ core$1._jsxSorted(jsxRuntime.Fragment, null, null, [
|
|
4511
4510
|
message2.toolCalls?.map((toolCall) => renderTool(toolCall, _rawProps.messages)),
|
|
4512
4511
|
message2.content != null && /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
4513
|
-
class: styles$
|
|
4512
|
+
class: styles$n["message-content-assistant-wrapper"]
|
|
4514
4513
|
}, [
|
|
4515
4514
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
4516
|
-
class: styles$
|
|
4515
|
+
class: styles$n["message-content-type"]
|
|
4517
4516
|
}, [
|
|
4518
4517
|
/* @__PURE__ */ core$1._jsxSorted(ElmMdiIcon, null, {
|
|
4519
|
-
class: styles$
|
|
4518
|
+
class: styles$n["message-content-icon"],
|
|
4520
4519
|
d: js.mdiCreation
|
|
4521
4520
|
}, null, 3, "nO_2"),
|
|
4522
4521
|
/* @__PURE__ */ core$1._jsxSorted(ElmInlineText, null, null, "Assistant", 3, "nO_3"),
|
|
4523
4522
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
4524
4523
|
"aria-hidden": "true",
|
|
4525
|
-
class: styles$
|
|
4524
|
+
class: styles$n["message-content-spacer"]
|
|
4526
4525
|
}, null, 3, null)
|
|
4527
4526
|
], 1, null),
|
|
4528
4527
|
/* @__PURE__ */ core$1._jsxSorted(ElmMarkdown, null, {
|
|
4529
4528
|
markdown: core$1._wrapProp(message2, "content"),
|
|
4530
|
-
|
|
4529
|
+
isStreaming: true
|
|
4531
4530
|
}, null, 3, "nO_4"),
|
|
4532
4531
|
!_rawProps.isRunning && /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
4533
|
-
class: styles$
|
|
4532
|
+
class: styles$n["message-content-assistant-actions"]
|
|
4534
4533
|
}, [
|
|
4535
4534
|
/* @__PURE__ */ core$1._jsxSorted(ElmCopyIcon, null, {
|
|
4536
4535
|
content: core$1._wrapProp(message2, "content")
|
|
@@ -4538,7 +4537,7 @@ const ElmAgUiMessageRenderer = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__
|
|
|
4538
4537
|
/* @__PURE__ */ core$1._jsxSorted("span", {
|
|
4539
4538
|
"q-e:click": _rawProps.handleRetry$
|
|
4540
4539
|
}, {
|
|
4541
|
-
class: styles$
|
|
4540
|
+
class: styles$n["clickable-icon"]
|
|
4542
4541
|
}, /* @__PURE__ */ core$1._jsxSorted(ElmMdiIcon, null, {
|
|
4543
4542
|
d: js.mdiRefresh,
|
|
4544
4543
|
size: "1.25rem"
|
|
@@ -4588,7 +4587,7 @@ const ElmAgUiMessageRenderer = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__
|
|
|
4588
4587
|
opacity: 0.5
|
|
4589
4588
|
},
|
|
4590
4589
|
markdown: core$1._wrapProp(mdProps, "markdown"),
|
|
4591
|
-
|
|
4590
|
+
isStreaming: true
|
|
4592
4591
|
}, null, 3, "nO_10"), 1, "nO_11");
|
|
4593
4592
|
}, "ElmAgUiMessageRenderer_component_render_Reasoning_component_ReasoningMarkdown_component_shHwKkQAaC8"));
|
|
4594
4593
|
return /* @__PURE__ */ core$1._jsxSorted(ElmToggle, null, {
|
|
@@ -4598,22 +4597,22 @@ const ElmAgUiMessageRenderer = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__
|
|
|
4598
4597
|
/* @__PURE__ */ core$1._jsxSorted("div", {
|
|
4599
4598
|
"q:slot": "summary"
|
|
4600
4599
|
}, {
|
|
4601
|
-
class: styles$
|
|
4600
|
+
class: styles$n["message-content-type"]
|
|
4602
4601
|
}, [
|
|
4603
4602
|
/* @__PURE__ */ core$1._jsxSorted(ElmMdiIcon, null, {
|
|
4604
|
-
class: styles$
|
|
4603
|
+
class: styles$n["message-content-icon"],
|
|
4605
4604
|
d: js.mdiLightbulbOn
|
|
4606
4605
|
}, null, 3, "nO_12"),
|
|
4607
4606
|
/* @__PURE__ */ core$1._jsxSorted(ElmInlineText, null, null, "Reasoning", 3, "nO_13"),
|
|
4608
4607
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
4609
4608
|
"aria-hidden": "true",
|
|
4610
|
-
class: styles$
|
|
4609
|
+
class: styles$n["message-content-spacer"]
|
|
4611
4610
|
}, null, 3, null)
|
|
4612
4611
|
], 1, null),
|
|
4613
4612
|
/* @__PURE__ */ core$1._jsxSorted("div", {
|
|
4614
4613
|
class: [
|
|
4615
4614
|
{
|
|
4616
|
-
[styles$
|
|
4615
|
+
[styles$n["reasoning-running"]]: props.isReasoningRunning
|
|
4617
4616
|
}
|
|
4618
4617
|
],
|
|
4619
4618
|
ref: reasoningRef
|
|
@@ -4645,21 +4644,21 @@ const ElmAgUiMessageRenderer = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__
|
|
|
4645
4644
|
return "";
|
|
4646
4645
|
};
|
|
4647
4646
|
return /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
4648
|
-
class: styles$
|
|
4647
|
+
class: styles$n["message-content-user-wrapper"]
|
|
4649
4648
|
}, /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
4650
|
-
class: styles$
|
|
4649
|
+
class: styles$n["message-content-user-inner"]
|
|
4651
4650
|
}, [
|
|
4652
4651
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
4653
|
-
class: styles$
|
|
4652
|
+
class: styles$n["message-content-type"]
|
|
4654
4653
|
}, [
|
|
4655
4654
|
/* @__PURE__ */ core$1._jsxSorted(ElmMdiIcon, null, {
|
|
4656
|
-
class: styles$
|
|
4655
|
+
class: styles$n["message-content-icon"],
|
|
4657
4656
|
d: js.mdiAccount
|
|
4658
4657
|
}, null, 3, "nO_17"),
|
|
4659
4658
|
/* @__PURE__ */ core$1._jsxSorted(ElmInlineText, null, null, "User", 3, "nO_18"),
|
|
4660
4659
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
4661
4660
|
"aria-hidden": "true",
|
|
4662
|
-
class: styles$
|
|
4661
|
+
class: styles$n["message-content-spacer"]
|
|
4663
4662
|
}, null, 3, null)
|
|
4664
4663
|
], 1, null),
|
|
4665
4664
|
/* @__PURE__ */ core$1._jsxSorted(ElmAgUiInputContent, null, {
|
|
@@ -4674,25 +4673,25 @@ const ElmAgUiMessageRenderer = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__
|
|
|
4674
4673
|
};
|
|
4675
4674
|
return /* @__PURE__ */ core$1._jsxSorted("div", {
|
|
4676
4675
|
class: [
|
|
4677
|
-
styles$
|
|
4676
|
+
styles$n["elm-my-something"],
|
|
4678
4677
|
_rawProps.class
|
|
4679
4678
|
],
|
|
4680
4679
|
style: core$1._wrapProp(_rawProps, "style")
|
|
4681
4680
|
}, null, _rawProps.messages.map((msg, i) => /* @__PURE__ */ core$1._jsxSorted("div", null, null, render(msg, i), 1, msg.id ?? i)), 1, "nO_22");
|
|
4682
4681
|
}, "ElmAgUiMessageRenderer_component_0OscNQKsfZA"));
|
|
4683
|
-
const messages = "
|
|
4684
|
-
const error = "
|
|
4685
|
-
const styles$
|
|
4686
|
-
"
|
|
4687
|
-
"agent-container": "_agent-
|
|
4682
|
+
const messages = "_messages_q1w8g_20";
|
|
4683
|
+
const error$1 = "_error_q1w8g_27";
|
|
4684
|
+
const styles$j = {
|
|
4685
|
+
"elm-ag-ui-agent": "_elm-ag-ui-agent_q1w8g_1",
|
|
4686
|
+
"agent-container": "_agent-container_q1w8g_14",
|
|
4688
4687
|
messages,
|
|
4689
|
-
error,
|
|
4690
|
-
"agent-input-container": "_agent-input-
|
|
4691
|
-
"agent-input": "_agent-
|
|
4692
|
-
"prompt-template-container": "_prompt-template-
|
|
4693
|
-
"prompt-template-tip": "_prompt-template-
|
|
4694
|
-
"prompt-template-tip-icon": "_prompt-template-tip-
|
|
4695
|
-
"clickable-icon": "_clickable-
|
|
4688
|
+
error: error$1,
|
|
4689
|
+
"agent-input-container": "_agent-input-container_q1w8g_40",
|
|
4690
|
+
"agent-input": "_agent-input_q1w8g_40",
|
|
4691
|
+
"prompt-template-container": "_prompt-template-container_q1w8g_52",
|
|
4692
|
+
"prompt-template-tip": "_prompt-template-tip_q1w8g_61",
|
|
4693
|
+
"prompt-template-tip-icon": "_prompt-template-tip-icon_q1w8g_71",
|
|
4694
|
+
"clickable-icon": "_clickable-icon_q1w8g_84"
|
|
4696
4695
|
};
|
|
4697
4696
|
const _hf0$f = (p0) => ({
|
|
4698
4697
|
"--agent-ui-width": p0.width ?? "clamp(300px, 100%, 600px)",
|
|
@@ -4758,7 +4757,7 @@ const ElmAgUiAgent = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.
|
|
|
4758
4757
|
]);
|
|
4759
4758
|
return /* @__PURE__ */ core$1._jsxSorted("div", {
|
|
4760
4759
|
class: [
|
|
4761
|
-
styles$
|
|
4760
|
+
styles$j["elm-ag-ui-agent"],
|
|
4762
4761
|
props.class
|
|
4763
4762
|
],
|
|
4764
4763
|
ref: containerRef,
|
|
@@ -4767,9 +4766,9 @@ const ElmAgUiAgent = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.
|
|
|
4767
4766
|
])
|
|
4768
4767
|
}, null, [
|
|
4769
4768
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
4770
|
-
class: styles$
|
|
4769
|
+
class: styles$j["agent-container"]
|
|
4771
4770
|
}, /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
4772
|
-
class: styles$
|
|
4771
|
+
class: styles$j["messages"]
|
|
4773
4772
|
}, [
|
|
4774
4773
|
/* @__PURE__ */ core$1._jsxSorted(ElmAgUiMessageRenderer, {
|
|
4775
4774
|
handleRetry$: props.retry$
|
|
@@ -4783,7 +4782,7 @@ const ElmAgUiAgent = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.
|
|
|
4783
4782
|
}, null, 2, "Oj_0"),
|
|
4784
4783
|
props.state.error && /* @__PURE__ */ core$1._jsxSorted(jsxRuntime.Fragment, null, null, [
|
|
4785
4784
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
4786
|
-
class: styles$
|
|
4785
|
+
class: styles$j["error"]
|
|
4787
4786
|
}, [
|
|
4788
4787
|
/* @__PURE__ */ core$1._jsxSorted(ElmMdiIcon, null, {
|
|
4789
4788
|
d: js.mdiAlert,
|
|
@@ -4801,7 +4800,7 @@ const ElmAgUiAgent = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.
|
|
|
4801
4800
|
/* @__PURE__ */ core$1._jsxSorted("span", {
|
|
4802
4801
|
"q-e:click": props.retry$
|
|
4803
4802
|
}, {
|
|
4804
|
-
class: styles$
|
|
4803
|
+
class: styles$j["clickable-icon"]
|
|
4805
4804
|
}, /* @__PURE__ */ core$1._jsxSorted(ElmMdiIcon, null, {
|
|
4806
4805
|
d: js.mdiRefresh,
|
|
4807
4806
|
size: "1.25rem"
|
|
@@ -4809,20 +4808,20 @@ const ElmAgUiAgent = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.
|
|
|
4809
4808
|
], 1, "Oj_4")
|
|
4810
4809
|
], 1, null), 1, null),
|
|
4811
4810
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
4812
|
-
class: styles$
|
|
4811
|
+
class: styles$j["agent-input-container"]
|
|
4813
4812
|
}, /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
4814
|
-
class: styles$
|
|
4813
|
+
class: styles$j["agent-input"]
|
|
4815
4814
|
}, [
|
|
4816
4815
|
!props.state.isRunning && /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
4817
|
-
class: styles$
|
|
4816
|
+
class: styles$j["prompt-template-container"]
|
|
4818
4817
|
}, props.state.promptTemplates.map((template, index) => /* @__PURE__ */ core$1._jsxSorted("span", {
|
|
4819
4818
|
"data-template-index": index
|
|
4820
4819
|
}, {
|
|
4821
|
-
class: styles$
|
|
4820
|
+
class: styles$j["prompt-template-tip"],
|
|
4822
4821
|
"q-e:click": onTemplateClick$
|
|
4823
4822
|
}, [
|
|
4824
4823
|
/* @__PURE__ */ core$1._jsxSorted(ElmMdiIcon, null, {
|
|
4825
|
-
class: styles$
|
|
4824
|
+
class: styles$j["prompt-template-tip-icon"],
|
|
4826
4825
|
d: js.mdiForumOutline
|
|
4827
4826
|
}, null, 3, "Oj_5"),
|
|
4828
4827
|
/* @__PURE__ */ core$1._jsxSorted(ElmInlineText, null, null, core$1._wrapProp(template, "description"), 1, "Oj_6")
|
|
@@ -5174,7 +5173,7 @@ function useMcpTools(options) {
|
|
|
5174
5173
|
const { servers, clientFactory } = options;
|
|
5175
5174
|
validateServers$1(servers);
|
|
5176
5175
|
const tools = core$1.useSignal(core$1.noSerialize({}));
|
|
5177
|
-
const
|
|
5176
|
+
const status2 = core$1.useStore(Object.fromEntries(servers.map((s) => [
|
|
5178
5177
|
s.id,
|
|
5179
5178
|
{
|
|
5180
5179
|
state: "connecting"
|
|
@@ -5185,12 +5184,12 @@ function useMcpTools(options) {
|
|
|
5185
5184
|
const factoryRef = core$1.useSignal(() => clientFactory ?? core$1.noSerialize(createMcpClient));
|
|
5186
5185
|
const reconnectOp = core$1.useSignal(void 0);
|
|
5187
5186
|
core$1.useVisibleTaskQrl(/* @__PURE__ */ core$1.inlinedQrl(({ cleanup }) => {
|
|
5188
|
-
const factoryRef2 = core$1._captures[0], reconnectOp2 = core$1._captures[1], serversRef2 = core$1._captures[2], shouldPrefixRef2 = core$1._captures[3],
|
|
5187
|
+
const factoryRef2 = core$1._captures[0], reconnectOp2 = core$1._captures[1], serversRef2 = core$1._captures[2], shouldPrefixRef2 = core$1._captures[3], status22 = core$1._captures[4], tools2 = core$1._captures[5];
|
|
5189
5188
|
const handles = /* @__PURE__ */ new Map();
|
|
5190
5189
|
const open2 = async (cfg) => {
|
|
5191
5190
|
const factory = factoryRef2.value;
|
|
5192
5191
|
if (!factory) return;
|
|
5193
|
-
|
|
5192
|
+
status22[cfg.id] = {
|
|
5194
5193
|
state: "connecting"
|
|
5195
5194
|
};
|
|
5196
5195
|
try {
|
|
@@ -5207,12 +5206,12 @@ function useMcpTools(options) {
|
|
|
5207
5206
|
next[name] = tool;
|
|
5208
5207
|
}
|
|
5209
5208
|
tools2.value = core$1.noSerialize(next);
|
|
5210
|
-
|
|
5209
|
+
status22[cfg.id] = {
|
|
5211
5210
|
state: "ready",
|
|
5212
5211
|
toolCount: descriptors.length
|
|
5213
5212
|
};
|
|
5214
5213
|
} catch (err) {
|
|
5215
|
-
|
|
5214
|
+
status22[cfg.id] = {
|
|
5216
5215
|
state: "error",
|
|
5217
5216
|
error: err instanceof Error ? err.message : String(err)
|
|
5218
5217
|
};
|
|
@@ -5259,7 +5258,7 @@ function useMcpTools(options) {
|
|
|
5259
5258
|
reconnectOp,
|
|
5260
5259
|
serversRef,
|
|
5261
5260
|
shouldPrefixRef,
|
|
5262
|
-
|
|
5261
|
+
status2,
|
|
5263
5262
|
tools
|
|
5264
5263
|
]), {
|
|
5265
5264
|
strategy: "document-ready"
|
|
@@ -5274,7 +5273,7 @@ function useMcpTools(options) {
|
|
|
5274
5273
|
]);
|
|
5275
5274
|
return {
|
|
5276
5275
|
tools,
|
|
5277
|
-
status,
|
|
5276
|
+
status: status2,
|
|
5278
5277
|
reconnect$
|
|
5279
5278
|
};
|
|
5280
5279
|
}
|
|
@@ -5295,7 +5294,7 @@ function useMcpPrompts(options) {
|
|
|
5295
5294
|
const { servers, clientFactory } = options;
|
|
5296
5295
|
validateServers(servers);
|
|
5297
5296
|
const prompts = core$1.useSignal([]);
|
|
5298
|
-
const
|
|
5297
|
+
const status2 = core$1.useStore(Object.fromEntries(servers.map((s) => [
|
|
5299
5298
|
s.id,
|
|
5300
5299
|
{
|
|
5301
5300
|
state: "connecting"
|
|
@@ -5305,12 +5304,12 @@ function useMcpPrompts(options) {
|
|
|
5305
5304
|
const factoryRef = core$1.useSignal(() => clientFactory ?? core$1.noSerialize(createMcpClient));
|
|
5306
5305
|
const resolveOp = core$1.useSignal(void 0);
|
|
5307
5306
|
core$1.useVisibleTaskQrl(/* @__PURE__ */ core$1.inlinedQrl(({ cleanup }) => {
|
|
5308
|
-
const factoryRef2 = core$1._captures[0], prompts2 = core$1._captures[1], resolveOp2 = core$1._captures[2], serversRef2 = core$1._captures[3],
|
|
5307
|
+
const factoryRef2 = core$1._captures[0], prompts2 = core$1._captures[1], resolveOp2 = core$1._captures[2], serversRef2 = core$1._captures[3], status22 = core$1._captures[4];
|
|
5309
5308
|
const handles = /* @__PURE__ */ new Map();
|
|
5310
5309
|
const open2 = async (cfg) => {
|
|
5311
5310
|
const factory = factoryRef2.value;
|
|
5312
5311
|
if (!factory) return;
|
|
5313
|
-
|
|
5312
|
+
status22[cfg.id] = {
|
|
5314
5313
|
state: "connecting"
|
|
5315
5314
|
};
|
|
5316
5315
|
try {
|
|
@@ -5325,12 +5324,12 @@ function useMcpPrompts(options) {
|
|
|
5325
5324
|
...prompts2.value.filter((p) => p.serverId !== cfg.id),
|
|
5326
5325
|
...annotated
|
|
5327
5326
|
];
|
|
5328
|
-
|
|
5327
|
+
status22[cfg.id] = {
|
|
5329
5328
|
state: "ready",
|
|
5330
5329
|
toolCount: descriptors.length
|
|
5331
5330
|
};
|
|
5332
5331
|
} catch (err) {
|
|
5333
|
-
|
|
5332
|
+
status22[cfg.id] = {
|
|
5334
5333
|
state: "error",
|
|
5335
5334
|
error: err instanceof Error ? err.message : String(err)
|
|
5336
5335
|
};
|
|
@@ -5365,7 +5364,7 @@ function useMcpPrompts(options) {
|
|
|
5365
5364
|
prompts,
|
|
5366
5365
|
resolveOp,
|
|
5367
5366
|
serversRef,
|
|
5368
|
-
|
|
5367
|
+
status2
|
|
5369
5368
|
]), {
|
|
5370
5369
|
strategy: "document-ready"
|
|
5371
5370
|
});
|
|
@@ -5379,70 +5378,10 @@ function useMcpPrompts(options) {
|
|
|
5379
5378
|
]);
|
|
5380
5379
|
return {
|
|
5381
5380
|
prompts,
|
|
5382
|
-
status,
|
|
5381
|
+
status: status2,
|
|
5383
5382
|
resolve$
|
|
5384
5383
|
};
|
|
5385
5384
|
}
|
|
5386
|
-
const shown = "_shown_pzcyf_13";
|
|
5387
|
-
const styles$j = {
|
|
5388
|
-
"elm-modal": "_elm-modal_pzcyf_1",
|
|
5389
|
-
shown
|
|
5390
|
-
};
|
|
5391
|
-
const ElmModal = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl((props) => {
|
|
5392
|
-
const rest = core$1._restProps(props, [
|
|
5393
|
-
"class",
|
|
5394
|
-
"isOpen",
|
|
5395
|
-
"onClose$"
|
|
5396
|
-
]);
|
|
5397
|
-
const dialogRef = core$1.useSignal();
|
|
5398
|
-
const isShown = core$1.useSignal(false);
|
|
5399
|
-
core$1.useVisibleTaskQrl(/* @__PURE__ */ core$1.inlinedQrl(({ track, cleanup }) => {
|
|
5400
|
-
const dialogRef2 = core$1._captures[0], isShown2 = core$1._captures[1], props2 = core$1._captures[2];
|
|
5401
|
-
track(() => props2.isOpen);
|
|
5402
|
-
if (!dialogRef2.value) return;
|
|
5403
|
-
if (props2.isOpen) {
|
|
5404
|
-
dialogRef2.value.showModal();
|
|
5405
|
-
isShown2.value = true;
|
|
5406
|
-
} else {
|
|
5407
|
-
isShown2.value = false;
|
|
5408
|
-
const timer = setTimeout(() => {
|
|
5409
|
-
dialogRef2.value?.close();
|
|
5410
|
-
}, 200);
|
|
5411
|
-
cleanup(() => {
|
|
5412
|
-
clearTimeout(timer);
|
|
5413
|
-
});
|
|
5414
|
-
}
|
|
5415
|
-
}, "ElmModal_component_useVisibleTask_1nydd6wvRjI", [
|
|
5416
|
-
dialogRef,
|
|
5417
|
-
isShown,
|
|
5418
|
-
props
|
|
5419
|
-
]), {
|
|
5420
|
-
strategy: "document-ready"
|
|
5421
|
-
});
|
|
5422
|
-
const handleClose = /* @__PURE__ */ core$1.inlinedQrl((event, element) => {
|
|
5423
|
-
const props2 = core$1._captures[0];
|
|
5424
|
-
props2.onClose$?.(event, element);
|
|
5425
|
-
}, "ElmModal_component_handleClose_0gU4hMZNm0Q", [
|
|
5426
|
-
props
|
|
5427
|
-
]);
|
|
5428
|
-
return /* @__PURE__ */ core$1._jsxSplit("dialog", {
|
|
5429
|
-
ref: dialogRef,
|
|
5430
|
-
class: [
|
|
5431
|
-
styles$j["elm-modal"],
|
|
5432
|
-
props.class,
|
|
5433
|
-
{
|
|
5434
|
-
[styles$j["shown"]]: isShown.value
|
|
5435
|
-
}
|
|
5436
|
-
],
|
|
5437
|
-
"q-e:click": handleClose,
|
|
5438
|
-
...{
|
|
5439
|
-
closedBy: "none"
|
|
5440
|
-
},
|
|
5441
|
-
...core$1._getVarProps(rest)
|
|
5442
|
-
}, core$1._getConstProps(rest), /* @__PURE__ */ core$1._jsxSorted("div", {
|
|
5443
|
-
"q-e:click": /* @__PURE__ */ core$1.inlinedQrl((e) => e.stopPropagation(), "ElmModal_component_dialog_div_q_e_click_Qa7ZVv0yllU")
|
|
5444
|
-
}, null, /* @__PURE__ */ core$1._jsxSorted(core$1.Slot, null, null, null, 3, "Ka_0"), 0, null), 0, "Ka_1");
|
|
5445
|
-
}, "ElmModal_component_wvBKav2Nx50"));
|
|
5446
5385
|
const parallax = "_parallax_z693a_1";
|
|
5447
5386
|
const styles$i = {
|
|
5448
5387
|
"parallax-watcher": "_parallax-watcher_z693a_1",
|
|
@@ -5482,11 +5421,10 @@ const ElmParallax = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.i
|
|
|
5482
5421
|
}, null, 3, index))
|
|
5483
5422
|
], 0, "sq_0");
|
|
5484
5423
|
}, "ElmParallax_component_EJLLht8TfbM"));
|
|
5485
|
-
const
|
|
5486
|
-
const
|
|
5487
|
-
const show = "_show_ysfyp_18";
|
|
5424
|
+
const tooltip = "_tooltip_1b13f_5";
|
|
5425
|
+
const show = "_show_1b13f_18";
|
|
5488
5426
|
const styles$h = {
|
|
5489
|
-
|
|
5427
|
+
"elm-tooltip": "_elm-tooltip_1b13f_1",
|
|
5490
5428
|
tooltip,
|
|
5491
5429
|
show
|
|
5492
5430
|
};
|
|
@@ -5544,7 +5482,7 @@ const ElmTooltip = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.in
|
|
|
5544
5482
|
return /* @__PURE__ */ core$1._jsxSplit("span", {
|
|
5545
5483
|
ref: elRef,
|
|
5546
5484
|
class: [
|
|
5547
|
-
styles$h
|
|
5485
|
+
styles$h["elm-tooltip"],
|
|
5548
5486
|
_rawProps.class
|
|
5549
5487
|
],
|
|
5550
5488
|
"q-e:mouseover": handleMouseOver,
|
|
@@ -5569,12 +5507,11 @@ const ElmTooltip = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.in
|
|
|
5569
5507
|
], 0, "Kf_2");
|
|
5570
5508
|
}, "ElmTooltip_component_7Z8Jw17rnA4"));
|
|
5571
5509
|
const styles$g = {
|
|
5572
|
-
"block-fallback": "
|
|
5510
|
+
"elm-block-fallback": "_elm-block-fallback_1sx02_1"
|
|
5573
5511
|
};
|
|
5574
|
-
const
|
|
5575
|
-
const dot = "_dot_1xvkv_25";
|
|
5512
|
+
const dot = "_dot_qjgj2_25";
|
|
5576
5513
|
const styles$f = {
|
|
5577
|
-
|
|
5514
|
+
"elm-dot-loading-icon": "_elm-dot-loading-icon_qjgj2_15",
|
|
5578
5515
|
dot
|
|
5579
5516
|
};
|
|
5580
5517
|
const _hf0$d = (p0) => ({
|
|
@@ -5589,7 +5526,7 @@ const ElmDotLoadingIcon = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ co
|
|
|
5589
5526
|
]);
|
|
5590
5527
|
return /* @__PURE__ */ core$1._jsxSplit("span", {
|
|
5591
5528
|
class: [
|
|
5592
|
-
styles$f
|
|
5529
|
+
styles$f["elm-dot-loading-icon"],
|
|
5593
5530
|
_rawProps.class
|
|
5594
5531
|
],
|
|
5595
5532
|
style: core$1._fnSignal(_hf0$d, [
|
|
@@ -5623,7 +5560,7 @@ const ElmBlockFallback = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ cor
|
|
|
5623
5560
|
]);
|
|
5624
5561
|
return /* @__PURE__ */ core$1._jsxSplit("div", {
|
|
5625
5562
|
class: [
|
|
5626
|
-
styles$g["block-fallback"],
|
|
5563
|
+
styles$g["elm-block-fallback"],
|
|
5627
5564
|
_rawProps.class
|
|
5628
5565
|
],
|
|
5629
5566
|
style: core$1._fnSignal(_hf0$c, [
|
|
@@ -5635,15 +5572,14 @@ const ElmBlockFallback = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ cor
|
|
|
5635
5572
|
/* @__PURE__ */ core$1._jsxSorted(ElmRectangleWave, null, null, null, 3, "Jl_1")
|
|
5636
5573
|
], 0, "Jl_2");
|
|
5637
5574
|
}, "ElmBlockFallback_component_R0mGF6D5fyk"));
|
|
5638
|
-
const
|
|
5639
|
-
const
|
|
5640
|
-
const
|
|
5641
|
-
const
|
|
5642
|
-
const
|
|
5643
|
-
const
|
|
5644
|
-
const ripple = "_ripple_11605_84";
|
|
5575
|
+
const normal = "_normal_9qh0y_22";
|
|
5576
|
+
const primary = "_primary_9qh0y_29";
|
|
5577
|
+
const colored = "_colored_9qh0y_36";
|
|
5578
|
+
const enable = "_enable_9qh0y_40";
|
|
5579
|
+
const flex = "_flex_9qh0y_59";
|
|
5580
|
+
const ripple = "_ripple_9qh0y_83";
|
|
5645
5581
|
const styles$e = {
|
|
5646
|
-
button,
|
|
5582
|
+
"elm-button": "_elm-button_9qh0y_1",
|
|
5647
5583
|
normal,
|
|
5648
5584
|
primary,
|
|
5649
5585
|
colored,
|
|
@@ -5657,14 +5593,14 @@ const ElmButton = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inl
|
|
|
5657
5593
|
"class",
|
|
5658
5594
|
"onClick$",
|
|
5659
5595
|
"style",
|
|
5660
|
-
"
|
|
5596
|
+
"isLoading",
|
|
5661
5597
|
"block",
|
|
5662
5598
|
"color",
|
|
5663
5599
|
"primary"
|
|
5664
5600
|
]);
|
|
5665
5601
|
const handleClick = /* @__PURE__ */ core$1.inlinedQrl(async () => {
|
|
5666
5602
|
const clicked2 = core$1._captures[0], props2 = core$1._captures[1];
|
|
5667
|
-
if (!props2.
|
|
5603
|
+
if (!props2.isLoading && !props2.disabled) {
|
|
5668
5604
|
if (props2.onClick$) {
|
|
5669
5605
|
clicked2.value = true;
|
|
5670
5606
|
setTimeout(() => clicked2.value = false, 300);
|
|
@@ -5678,8 +5614,8 @@ const ElmButton = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inl
|
|
|
5678
5614
|
return /* @__PURE__ */ core$1._jsxSplit("button", {
|
|
5679
5615
|
"q-e:click": handleClick,
|
|
5680
5616
|
class: [
|
|
5681
|
-
styles$e
|
|
5682
|
-
!props.
|
|
5617
|
+
styles$e["elm-button"],
|
|
5618
|
+
!props.isLoading && !rest.disabled && styles$e.enable,
|
|
5683
5619
|
props.color && styles$e.colored,
|
|
5684
5620
|
!props.color && !props.primary && styles$e.normal,
|
|
5685
5621
|
!props.color && props.primary && styles$e.primary,
|
|
@@ -5688,8 +5624,8 @@ const ElmButton = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inl
|
|
|
5688
5624
|
style: {
|
|
5689
5625
|
display: props.block ? "flex" : "inline-flex",
|
|
5690
5626
|
width: props.block ? "100%" : "auto",
|
|
5691
|
-
cursor: rest.disabled ? "not-allowed" : props.
|
|
5692
|
-
"--elmethis-scoped-opacity": rest.disabled || props.
|
|
5627
|
+
cursor: rest.disabled ? "not-allowed" : props.isLoading ? "progress" : "pointer",
|
|
5628
|
+
"--elmethis-scoped-opacity": rest.disabled || props.isLoading ? 0.6 : void 0,
|
|
5693
5629
|
"--elmethis-scoped-color": props.color,
|
|
5694
5630
|
...props.style
|
|
5695
5631
|
},
|
|
@@ -5698,36 +5634,37 @@ const ElmButton = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inl
|
|
|
5698
5634
|
clicked.value && /* @__PURE__ */ core$1._jsxSorted("span", null, {
|
|
5699
5635
|
class: styles$e.ripple
|
|
5700
5636
|
}, null, 3, "3N_0"),
|
|
5701
|
-
props.
|
|
5637
|
+
props.isLoading ? /* @__PURE__ */ core$1._jsxSorted(ElmDotLoadingIcon, null, {
|
|
5702
5638
|
size: "1.5rem"
|
|
5703
5639
|
}, null, 3, "3N_1") : /* @__PURE__ */ core$1._jsxSorted("span", null, {
|
|
5704
5640
|
class: styles$e.flex
|
|
5705
5641
|
}, /* @__PURE__ */ core$1._jsxSorted(core$1.Slot, null, null, null, 3, "3N_2"), 1, "3N_3")
|
|
5706
5642
|
], 0, "3N_4");
|
|
5707
5643
|
}, "ElmButton_component_f1UuOse0UGw"));
|
|
5708
|
-
const
|
|
5709
|
-
const checkbox = "
|
|
5710
|
-
const rect = "
|
|
5711
|
-
const loading$2 = "
|
|
5644
|
+
const disabled$4 = "_disabled_18dfs_12";
|
|
5645
|
+
const checkbox = "_checkbox_18dfs_22";
|
|
5646
|
+
const rect = "_rect_18dfs_27";
|
|
5647
|
+
const loading$2 = "_loading_18dfs_30";
|
|
5648
|
+
const checked$1 = "_checked_18dfs_34";
|
|
5712
5649
|
const styles$d = {
|
|
5713
|
-
|
|
5714
|
-
|
|
5650
|
+
"elm-checkbox": "_elm-checkbox_18dfs_1",
|
|
5651
|
+
disabled: disabled$4,
|
|
5715
5652
|
checkbox,
|
|
5716
5653
|
rect,
|
|
5717
|
-
"rect--loading": "_rect--loading_1plde_31",
|
|
5718
|
-
"rect--checked": "_rect--checked_1plde_35",
|
|
5719
5654
|
loading: loading$2,
|
|
5720
|
-
|
|
5655
|
+
checked: checked$1,
|
|
5656
|
+
"loading-dot": "_loading-dot_18dfs_39",
|
|
5657
|
+
"check-line": "_check-line_18dfs_54"
|
|
5721
5658
|
};
|
|
5722
5659
|
const _hf0$b = (p0) => ({
|
|
5723
|
-
opacity: p0.
|
|
5660
|
+
opacity: p0.isLoading ? 1 : 0
|
|
5724
5661
|
});
|
|
5725
5662
|
const ElmCheckbox = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl((props) => {
|
|
5726
5663
|
const rest = core$1._restProps(props, [
|
|
5727
5664
|
"class",
|
|
5728
5665
|
"label",
|
|
5729
|
-
"
|
|
5730
|
-
"
|
|
5666
|
+
"isLoading",
|
|
5667
|
+
"disabled",
|
|
5731
5668
|
"checked",
|
|
5732
5669
|
"defaultChecked"
|
|
5733
5670
|
]);
|
|
@@ -5737,13 +5674,13 @@ const ElmCheckbox = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.i
|
|
|
5737
5674
|
});
|
|
5738
5675
|
return /* @__PURE__ */ core$1._jsxSplit("div", {
|
|
5739
5676
|
class: [
|
|
5740
|
-
styles$d
|
|
5741
|
-
props.
|
|
5677
|
+
styles$d["elm-checkbox"],
|
|
5678
|
+
props.disabled && styles$d.disabled,
|
|
5742
5679
|
props.class
|
|
5743
5680
|
],
|
|
5744
5681
|
"q-e:click": /* @__PURE__ */ core$1.inlinedQrl(() => {
|
|
5745
5682
|
const isChecked2 = core$1._captures[0], props2 = core$1._captures[1];
|
|
5746
|
-
if (!props2.
|
|
5683
|
+
if (!props2.isLoading && !props2.disabled) {
|
|
5747
5684
|
isChecked2.value = !isChecked2.value;
|
|
5748
5685
|
}
|
|
5749
5686
|
}, "ElmCheckbox_component_div_q_e_click_gkqpEetYEhI", [
|
|
@@ -5771,7 +5708,7 @@ const ElmCheckbox = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.i
|
|
|
5771
5708
|
cx: "0",
|
|
5772
5709
|
cy: "0",
|
|
5773
5710
|
r: "2",
|
|
5774
|
-
class: styles$d
|
|
5711
|
+
class: styles$d["loading-dot"]
|
|
5775
5712
|
}, [
|
|
5776
5713
|
/* @__PURE__ */ core$1._jsxSorted("animate", null, {
|
|
5777
5714
|
attributeName: "cx",
|
|
@@ -5798,7 +5735,7 @@ const ElmCheckbox = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.i
|
|
|
5798
5735
|
cx: "20",
|
|
5799
5736
|
cy: "20",
|
|
5800
5737
|
r: "2",
|
|
5801
|
-
class: styles$d
|
|
5738
|
+
class: styles$d["loading-dot"]
|
|
5802
5739
|
}, [
|
|
5803
5740
|
/* @__PURE__ */ core$1._jsxSorted("animate", null, {
|
|
5804
5741
|
attributeName: "cx",
|
|
@@ -5820,8 +5757,8 @@ const ElmCheckbox = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.i
|
|
|
5820
5757
|
/* @__PURE__ */ core$1._jsxSorted("rect", {
|
|
5821
5758
|
class: [
|
|
5822
5759
|
styles$d.rect,
|
|
5823
|
-
isChecked.value && styles$d
|
|
5824
|
-
props.
|
|
5760
|
+
isChecked.value && styles$d.checked,
|
|
5761
|
+
props.isLoading && styles$d.loading
|
|
5825
5762
|
]
|
|
5826
5763
|
}, {
|
|
5827
5764
|
x: "4",
|
|
@@ -5898,23 +5835,22 @@ const ElmCheckbox = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.i
|
|
|
5898
5835
|
/* @__PURE__ */ core$1._jsxSorted(ElmInlineText, null, null, core$1._wrapProp(props, "label"), 1, "UZ_1")
|
|
5899
5836
|
], 1, null), 0, "UZ_2");
|
|
5900
5837
|
}, "ElmCheckbox_component_a3MV4MkaYBo"));
|
|
5901
|
-
const
|
|
5902
|
-
const
|
|
5903
|
-
const
|
|
5904
|
-
const
|
|
5905
|
-
const
|
|
5906
|
-
const
|
|
5907
|
-
const
|
|
5908
|
-
const option = "_option_rwh9z_59";
|
|
5838
|
+
const disabled$3 = "_disabled_1u7w1_23";
|
|
5839
|
+
const active$2 = "_active_1u7w1_27";
|
|
5840
|
+
const label = "_label_1u7w1_31";
|
|
5841
|
+
const body$3 = "_body_1u7w1_49";
|
|
5842
|
+
const fallback = "_fallback_1u7w1_66";
|
|
5843
|
+
const pulldown = "_pulldown_1u7w1_74";
|
|
5844
|
+
const option = "_option_1u7w1_59";
|
|
5909
5845
|
const styles$c = {
|
|
5910
|
-
|
|
5846
|
+
"elm-select": "_elm-select_1u7w1_1",
|
|
5911
5847
|
disabled: disabled$3,
|
|
5912
5848
|
active: active$2,
|
|
5913
5849
|
label,
|
|
5914
|
-
"label-active": "_label-
|
|
5850
|
+
"label-active": "_label-active_1u7w1_44",
|
|
5915
5851
|
body: body$3,
|
|
5916
|
-
"selected-option": "_selected-
|
|
5917
|
-
"option-content": "_option-
|
|
5852
|
+
"selected-option": "_selected-option_1u7w1_56",
|
|
5853
|
+
"option-content": "_option-content_1u7w1_59",
|
|
5918
5854
|
fallback,
|
|
5919
5855
|
pulldown,
|
|
5920
5856
|
option
|
|
@@ -5929,7 +5865,7 @@ const ElmSelect = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inl
|
|
|
5929
5865
|
"label",
|
|
5930
5866
|
"placeholder",
|
|
5931
5867
|
"disabled",
|
|
5932
|
-
"
|
|
5868
|
+
"isLoading",
|
|
5933
5869
|
"options",
|
|
5934
5870
|
"selectedOptionId"
|
|
5935
5871
|
]);
|
|
@@ -5959,17 +5895,17 @@ const ElmSelect = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inl
|
|
|
5959
5895
|
return /* @__PURE__ */ core$1._jsxSplit("div", {
|
|
5960
5896
|
ref: containerRef,
|
|
5961
5897
|
class: [
|
|
5962
|
-
styles$c
|
|
5898
|
+
styles$c["elm-select"],
|
|
5963
5899
|
isOpen.value && styles$c.active,
|
|
5964
5900
|
props.class,
|
|
5965
5901
|
{
|
|
5966
|
-
[styles$c.disabled]: props.disabled || props.
|
|
5902
|
+
[styles$c.disabled]: props.disabled || props.isLoading
|
|
5967
5903
|
}
|
|
5968
5904
|
],
|
|
5969
5905
|
style: core$1._wrapProp(props, "style"),
|
|
5970
5906
|
"q-e:click": /* @__PURE__ */ core$1.inlinedQrl(() => {
|
|
5971
5907
|
const isOpen2 = core$1._captures[0], props2 = core$1._captures[1];
|
|
5972
|
-
if (!props2.disabled && !props2.
|
|
5908
|
+
if (!props2.disabled && !props2.isLoading) {
|
|
5973
5909
|
isOpen2.value = !isOpen2.value;
|
|
5974
5910
|
}
|
|
5975
5911
|
}, "ElmSelect_component_div_q_e_click_mRy0UU6xCYI", [
|
|
@@ -6058,12 +5994,12 @@ const ElmSelect = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inl
|
|
|
6058
5994
|
], 1, null)
|
|
6059
5995
|
], 0, "5b_10");
|
|
6060
5996
|
}, "ElmSelect_component_5jGhwsE6oU0"));
|
|
6061
|
-
const bar = "
|
|
6062
|
-
const checked = "
|
|
6063
|
-
const disabled$2 = "
|
|
6064
|
-
const circle = "
|
|
5997
|
+
const bar = "_bar_9s4vz_5";
|
|
5998
|
+
const checked = "_checked_9s4vz_21";
|
|
5999
|
+
const disabled$2 = "_disabled_9s4vz_26";
|
|
6000
|
+
const circle = "_circle_9s4vz_31";
|
|
6065
6001
|
const styles$b = {
|
|
6066
|
-
"switch": "
|
|
6002
|
+
"switch": "_switch_9s4vz_1",
|
|
6067
6003
|
bar,
|
|
6068
6004
|
checked,
|
|
6069
6005
|
disabled: disabled$2,
|
|
@@ -6124,21 +6060,20 @@ const ElmSwitch = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inl
|
|
|
6124
6060
|
}, null, null, 3, null), 1, null)
|
|
6125
6061
|
], 0, "hS_0");
|
|
6126
6062
|
}, "ElmSwitch_component_vkfpyHRHmhQ"));
|
|
6127
|
-
const loading$1 = "
|
|
6128
|
-
const
|
|
6129
|
-
const
|
|
6130
|
-
const
|
|
6131
|
-
const
|
|
6132
|
-
const
|
|
6133
|
-
const
|
|
6134
|
-
const textarea = "_textarea_kn3x0_101";
|
|
6063
|
+
const loading$1 = "_loading_lgmx3_23";
|
|
6064
|
+
const disabled$1 = "_disabled_lgmx3_63";
|
|
6065
|
+
const active$1 = "_active_lgmx3_67";
|
|
6066
|
+
const header$2 = "_header_lgmx3_72";
|
|
6067
|
+
const requierd$1 = "_requierd_lgmx3_90";
|
|
6068
|
+
const body$2 = "_body_lgmx3_96";
|
|
6069
|
+
const textarea = "_textarea_lgmx3_101";
|
|
6135
6070
|
const styles$a = {
|
|
6136
6071
|
loading: loading$1,
|
|
6137
|
-
|
|
6072
|
+
"elm-text-area": "_elm-text-area_lgmx3_37",
|
|
6138
6073
|
disabled: disabled$1,
|
|
6139
6074
|
active: active$1,
|
|
6140
6075
|
header: header$2,
|
|
6141
|
-
"label-active": "_label-
|
|
6076
|
+
"label-active": "_label-active_lgmx3_85",
|
|
6142
6077
|
requierd: requierd$1,
|
|
6143
6078
|
body: body$2,
|
|
6144
6079
|
textarea
|
|
@@ -6147,12 +6082,12 @@ const _hf0$8 = (p0) => p0.maxLength != null && p0.value.value.length > p0.maxLen
|
|
|
6147
6082
|
const _hf1$5 = (p0) => p0.maxLength != null ? `${p0.value.value.length} / ${p0.maxLength}` : `${p0.value.value.length}`;
|
|
6148
6083
|
const _hf2$3 = (p0) => p0.value?.value;
|
|
6149
6084
|
const _hf3$3 = (p0) => p0.rows ?? 3;
|
|
6150
|
-
const _hf4$2 = (p0) => p0.disabled || p0.
|
|
6085
|
+
const _hf4$2 = (p0) => p0.disabled || p0.isLoading;
|
|
6151
6086
|
const _hf5$2 = (p0) => ({
|
|
6152
|
-
cursor: p0.disabled ? "not-allowed" : p0.
|
|
6087
|
+
cursor: p0.disabled ? "not-allowed" : p0.isLoading ? "progress" : "auto"
|
|
6153
6088
|
});
|
|
6154
6089
|
const _hf6$1 = (p0) => ({
|
|
6155
|
-
opacity: p0.
|
|
6090
|
+
opacity: p0.isLoading ? 1 : 0
|
|
6156
6091
|
});
|
|
6157
6092
|
const ElmTextArea = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl((props) => {
|
|
6158
6093
|
const rest = core$1._restProps(props, [
|
|
@@ -6162,7 +6097,7 @@ const ElmTextArea = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.i
|
|
|
6162
6097
|
"maxLength",
|
|
6163
6098
|
"placeholder",
|
|
6164
6099
|
"disabled",
|
|
6165
|
-
"
|
|
6100
|
+
"isLoading",
|
|
6166
6101
|
"required",
|
|
6167
6102
|
"value",
|
|
6168
6103
|
"rows"
|
|
@@ -6170,11 +6105,11 @@ const ElmTextArea = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.i
|
|
|
6170
6105
|
const isFocused = core$1.useSignal(false);
|
|
6171
6106
|
return /* @__PURE__ */ core$1._jsxSplit("label", {
|
|
6172
6107
|
class: [
|
|
6173
|
-
styles$a
|
|
6108
|
+
styles$a["elm-text-area"],
|
|
6174
6109
|
isFocused.value && styles$a.active,
|
|
6175
6110
|
props.class,
|
|
6176
6111
|
{
|
|
6177
|
-
[styles$a.disabled]: props.disabled || props.
|
|
6112
|
+
[styles$a.disabled]: props.disabled || props.isLoading
|
|
6178
6113
|
}
|
|
6179
6114
|
],
|
|
6180
6115
|
style: core$1._wrapProp(props, "style"),
|
|
@@ -6247,37 +6182,36 @@ const ElmTextArea = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.i
|
|
|
6247
6182
|
}, null, 3, null)
|
|
6248
6183
|
], 0, "RT_4");
|
|
6249
6184
|
}, "ElmTextArea_component_eI5Hurm0OV8"));
|
|
6250
|
-
const loading = "
|
|
6251
|
-
const
|
|
6252
|
-
const
|
|
6253
|
-
const
|
|
6254
|
-
const
|
|
6255
|
-
const
|
|
6256
|
-
const
|
|
6257
|
-
const input = "_input_mpxha_100";
|
|
6185
|
+
const loading = "_loading_11box_23";
|
|
6186
|
+
const disabled = "_disabled_11box_59";
|
|
6187
|
+
const active = "_active_11box_63";
|
|
6188
|
+
const header$1 = "_header_11box_68";
|
|
6189
|
+
const requierd = "_requierd_11box_86";
|
|
6190
|
+
const body$1 = "_body_11box_92";
|
|
6191
|
+
const input = "_input_11box_100";
|
|
6258
6192
|
const styles$9 = {
|
|
6259
6193
|
loading,
|
|
6260
|
-
|
|
6194
|
+
"elm-text-field": "_elm-text-field_11box_37",
|
|
6261
6195
|
disabled,
|
|
6262
6196
|
active,
|
|
6263
6197
|
header: header$1,
|
|
6264
|
-
"label-active": "_label-
|
|
6198
|
+
"label-active": "_label-active_11box_81",
|
|
6265
6199
|
requierd,
|
|
6266
6200
|
body: body$1,
|
|
6267
6201
|
input,
|
|
6268
|
-
"right-icon-box": "_right-icon-
|
|
6269
|
-
"clickable-icon": "_clickable-
|
|
6270
|
-
"prefix-suffix": "_prefix-
|
|
6202
|
+
"right-icon-box": "_right-icon-box_11box_121",
|
|
6203
|
+
"clickable-icon": "_clickable-icon_11box_126",
|
|
6204
|
+
"prefix-suffix": "_prefix-suffix_11box_142"
|
|
6271
6205
|
};
|
|
6272
6206
|
const _hf0$7 = (p0) => p0.maxLength != null && p0.value.value.length > p0.maxLength ? "var(--elmethis-color-accent-error)" : "gray";
|
|
6273
6207
|
const _hf1$4 = (p0) => p0.maxLength != null ? `${p0.value.value.length} / ${p0.maxLength}` : `${p0.value.value.length}`;
|
|
6274
6208
|
const _hf2$2 = (p0) => p0.value?.value;
|
|
6275
|
-
const _hf3$2 = (p0) => p0.disabled || p0.
|
|
6209
|
+
const _hf3$2 = (p0) => p0.disabled || p0.isLoading;
|
|
6276
6210
|
const _hf4$1 = (p0) => ({
|
|
6277
|
-
cursor: p0.disabled ? "not-allowed" : p0.
|
|
6211
|
+
cursor: p0.disabled ? "not-allowed" : p0.isLoading ? "progress" : "auto"
|
|
6278
6212
|
});
|
|
6279
6213
|
const _hf5$1 = (p0) => ({
|
|
6280
|
-
opacity: p0.
|
|
6214
|
+
opacity: p0.isLoading ? 1 : 0
|
|
6281
6215
|
});
|
|
6282
6216
|
const ElmTextField = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl((props) => {
|
|
6283
6217
|
const rest = core$1._restProps(props, [
|
|
@@ -6289,7 +6223,7 @@ const ElmTextField = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.
|
|
|
6289
6223
|
"suffix",
|
|
6290
6224
|
"placeholder",
|
|
6291
6225
|
"disabled",
|
|
6292
|
-
"
|
|
6226
|
+
"isLoading",
|
|
6293
6227
|
"value",
|
|
6294
6228
|
"isPassword",
|
|
6295
6229
|
"required"
|
|
@@ -6298,11 +6232,11 @@ const ElmTextField = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.
|
|
|
6298
6232
|
const inputType = core$1.useSignal(props.isPassword ? "password" : "text");
|
|
6299
6233
|
return /* @__PURE__ */ core$1._jsxSplit("label", {
|
|
6300
6234
|
class: [
|
|
6301
|
-
styles$9
|
|
6235
|
+
styles$9["elm-text-field"],
|
|
6302
6236
|
isFocused.value && styles$9.active,
|
|
6303
6237
|
props.class,
|
|
6304
6238
|
{
|
|
6305
|
-
[styles$9.disabled]: props.disabled || props.
|
|
6239
|
+
[styles$9.disabled]: props.disabled || props.isLoading
|
|
6306
6240
|
}
|
|
6307
6241
|
],
|
|
6308
6242
|
style: core$1._wrapProp(props, "style"),
|
|
@@ -6377,7 +6311,7 @@ const ElmTextField = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.
|
|
|
6377
6311
|
/* @__PURE__ */ core$1._jsxSorted("div", {
|
|
6378
6312
|
"q-e:click": /* @__PURE__ */ core$1.inlinedQrl(() => {
|
|
6379
6313
|
const inputType2 = core$1._captures[0], props2 = core$1._captures[1];
|
|
6380
|
-
if (!props2.
|
|
6314
|
+
if (!props2.isLoading && !props2.disabled) {
|
|
6381
6315
|
inputType2.value = inputType2.value === "text" ? "password" : "text";
|
|
6382
6316
|
}
|
|
6383
6317
|
}, "ElmTextField_component_label_div_div_div_q_e_click_WaJ8NfQOs4Q", [
|
|
@@ -6395,7 +6329,7 @@ const ElmTextField = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.
|
|
|
6395
6329
|
/* @__PURE__ */ core$1._jsxSorted("div", {
|
|
6396
6330
|
"q-e:click": /* @__PURE__ */ core$1.inlinedQrl(() => {
|
|
6397
6331
|
const props2 = core$1._captures[0];
|
|
6398
|
-
if (!props2.
|
|
6332
|
+
if (!props2.isLoading && !props2.disabled && props2.value) {
|
|
6399
6333
|
props2.value.value = "";
|
|
6400
6334
|
}
|
|
6401
6335
|
}, "ElmTextField_component_label_div_div_div_q_e_click_1_1vCztIHPnMw", [
|
|
@@ -6419,9 +6353,8 @@ const ElmTextField = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.
|
|
|
6419
6353
|
}, null, 3, null)
|
|
6420
6354
|
], 0, "3a_8");
|
|
6421
6355
|
}, "ElmTextField_component_7yeLskO1oF0"));
|
|
6422
|
-
const validation = "_validation_1bh7c_1";
|
|
6423
6356
|
const styles$8 = {
|
|
6424
|
-
validation
|
|
6357
|
+
"elm-validation": "_elm-validation_1cigg_1"
|
|
6425
6358
|
};
|
|
6426
6359
|
const _hf0$6 = (p0) => ({
|
|
6427
6360
|
"--elmethis-scoped-opacity": p0.isValid ? 1 : 0.5,
|
|
@@ -6438,7 +6371,7 @@ const ElmValidation = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1
|
|
|
6438
6371
|
]);
|
|
6439
6372
|
return /* @__PURE__ */ core$1._jsxSplit("div", {
|
|
6440
6373
|
class: [
|
|
6441
|
-
styles$8
|
|
6374
|
+
styles$8["elm-validation"],
|
|
6442
6375
|
_rawProps.class
|
|
6443
6376
|
],
|
|
6444
6377
|
style: core$1._fnSignal(_hf0$6, [
|
|
@@ -6868,39 +6801,6 @@ function useElmethisTheme() {
|
|
|
6868
6801
|
toggleTheme
|
|
6869
6802
|
};
|
|
6870
6803
|
}
|
|
6871
|
-
const useInView = (props) => {
|
|
6872
|
-
const ref = core$1.useSignal();
|
|
6873
|
-
const isVisible = core$1.useSignal(props?.defaultValue ?? false);
|
|
6874
|
-
core$1.useVisibleTaskQrl(
|
|
6875
|
-
/* @__PURE__ */ core$1.inlinedQrl(() => {
|
|
6876
|
-
const isVisible2 = core$1._captures[0], ref2 = core$1._captures[1];
|
|
6877
|
-
if (!ref2.value) return;
|
|
6878
|
-
const observer = new IntersectionObserver(([entry]) => {
|
|
6879
|
-
isVisible2.value = entry.isIntersecting;
|
|
6880
|
-
}, {
|
|
6881
|
-
rootMargin: "100px",
|
|
6882
|
-
threshold: 0.1
|
|
6883
|
-
});
|
|
6884
|
-
observer.observe(ref2.value);
|
|
6885
|
-
return () => observer.disconnect();
|
|
6886
|
-
}, "useInView_useVisibleTask_dCSguHRVxN4", [
|
|
6887
|
-
isVisible,
|
|
6888
|
-
ref
|
|
6889
|
-
]),
|
|
6890
|
-
// The default `intersection-observer` strategy never fires when the host
|
|
6891
|
-
// is mounted inside a subtree that starts hidden (e.g. <ElmCollapse>), so
|
|
6892
|
-
// a `useInView` consumer in that subtree would be permanently stuck at
|
|
6893
|
-
// `isVisible: false`. `document-ready` fires once the DOM is parsed, then
|
|
6894
|
-
// our own IntersectionObserver does the actual visibility tracking.
|
|
6895
|
-
{
|
|
6896
|
-
strategy: "document-ready"
|
|
6897
|
-
}
|
|
6898
|
-
);
|
|
6899
|
-
return {
|
|
6900
|
-
ref,
|
|
6901
|
-
isVisible
|
|
6902
|
-
};
|
|
6903
|
-
};
|
|
6904
6804
|
const resolveStorage = (area) => area === "local" ? localStorage : sessionStorage;
|
|
6905
6805
|
const useStorage = (_rawProps) => {
|
|
6906
6806
|
const state = core$1.useSignal(_rawProps.initialValue);
|
|
@@ -7016,10 +6916,9 @@ const useSessionStorage = (_rawProps) => {
|
|
|
7016
6916
|
channel: `elmethis:sessionStorage:${_rawProps.key}`
|
|
7017
6917
|
});
|
|
7018
6918
|
};
|
|
7019
|
-
const
|
|
7020
|
-
const square = "_square_17g64_28";
|
|
6919
|
+
const square = "_square_m72nq_28";
|
|
7021
6920
|
const styles$7 = {
|
|
7022
|
-
|
|
6921
|
+
"elm-square-loading-icon": "_elm-square-loading-icon_m72nq_19",
|
|
7023
6922
|
square
|
|
7024
6923
|
};
|
|
7025
6924
|
const _hf0$5 = (p0) => ({
|
|
@@ -7038,7 +6937,7 @@ const ElmSquareLoadingIcon = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */
|
|
|
7038
6937
|
const DELAY = 1200 / ((_rawProps.dimensions ?? 4) * 3);
|
|
7039
6938
|
return /* @__PURE__ */ core$1._jsxSplit("span", {
|
|
7040
6939
|
class: [
|
|
7041
|
-
styles$7
|
|
6940
|
+
styles$7["elm-square-loading-icon"],
|
|
7042
6941
|
_rawProps.class
|
|
7043
6942
|
],
|
|
7044
6943
|
style: core$1._fnSignal(_hf0$5, [
|
|
@@ -7053,16 +6952,15 @@ const ElmSquareLoadingIcon = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */
|
|
|
7053
6952
|
class: styles$7.square
|
|
7054
6953
|
}, null, 3, `${rowIndex}-${columnIndex}`))), 0, "dY_0");
|
|
7055
6954
|
}, "ElmSquareLoadingIcon_component_URq2y0Vp5Ws"));
|
|
7056
|
-
const icon$1 = "_icon_1oksx_1";
|
|
7057
6955
|
const styles$6 = {
|
|
7058
|
-
|
|
6956
|
+
"elm-toggle-theme": "_elm-toggle-theme_11awq_1"
|
|
7059
6957
|
};
|
|
7060
6958
|
const _hf0$4 = (p0) => p0.size ?? "2rem";
|
|
7061
6959
|
const ElmToggleTheme = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inlinedQrl((_rawProps) => {
|
|
7062
6960
|
const elmethistheme = useElmethisTheme();
|
|
7063
6961
|
return /* @__PURE__ */ core$1._jsxSorted(jsxRuntime.Fragment, null, null, !elmethistheme.isDarkTheme.value ? /* @__PURE__ */ core$1._jsxSorted("svg", {
|
|
7064
6962
|
class: [
|
|
7065
|
-
styles$6
|
|
6963
|
+
styles$6["elm-toggle-theme"],
|
|
7066
6964
|
_rawProps.class
|
|
7067
6965
|
],
|
|
7068
6966
|
height: core$1._fnSignal(_hf0$4, [
|
|
@@ -7266,7 +7164,7 @@ const ElmToggleTheme = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$
|
|
|
7266
7164
|
], 3, null)
|
|
7267
7165
|
], 2, "7Z_0") : /* @__PURE__ */ core$1._jsxSorted("svg", {
|
|
7268
7166
|
class: [
|
|
7269
|
-
styles$6
|
|
7167
|
+
styles$6["elm-toggle-theme"],
|
|
7270
7168
|
_rawProps.class
|
|
7271
7169
|
],
|
|
7272
7170
|
height: core$1._fnSignal(_hf0$4, [
|
|
@@ -7507,13 +7405,12 @@ const ElmToggleTheme = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$
|
|
|
7507
7405
|
], 3, null)
|
|
7508
7406
|
], 2, "7Z_1"), 1, "7Z_2");
|
|
7509
7407
|
}, "ElmToggleTheme_component_UCPPH0ZjWO4"));
|
|
7510
|
-
const
|
|
7511
|
-
const
|
|
7512
|
-
const
|
|
7513
|
-
const chevron = "_chevron_19tkl_41";
|
|
7408
|
+
const icon = "_icon_13oke_23";
|
|
7409
|
+
const chunk = "_chunk_13oke_36";
|
|
7410
|
+
const chevron = "_chevron_13oke_41";
|
|
7514
7411
|
const styles$5 = {
|
|
7515
|
-
|
|
7516
|
-
"link-container": "_link-
|
|
7412
|
+
"elm-breadcrumb": "_elm-breadcrumb_13oke_1",
|
|
7413
|
+
"link-container": "_link-container_13oke_9",
|
|
7517
7414
|
icon,
|
|
7518
7415
|
chunk,
|
|
7519
7416
|
chevron
|
|
@@ -7525,7 +7422,7 @@ const ElmBreadcrumb = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1
|
|
|
7525
7422
|
]);
|
|
7526
7423
|
return /* @__PURE__ */ core$1._jsxSplit("nav", {
|
|
7527
7424
|
class: [
|
|
7528
|
-
styles$5
|
|
7425
|
+
styles$5["elm-breadcrumb"],
|
|
7529
7426
|
_rawProps.class
|
|
7530
7427
|
],
|
|
7531
7428
|
...core$1._getVarProps(props)
|
|
@@ -7552,14 +7449,14 @@ const ElmBreadcrumb = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1
|
|
|
7552
7449
|
}, null, 3, "wL_1")
|
|
7553
7450
|
], 1, "wL_2")), 0, "wL_3");
|
|
7554
7451
|
}, "ElmBreadcrumb_component_Bm4cHEZjNRM"));
|
|
7555
|
-
const
|
|
7556
|
-
const partial = "
|
|
7557
|
-
const text = "
|
|
7452
|
+
const visible = "_visible_18d6m_30";
|
|
7453
|
+
const partial = "_partial_18d6m_37";
|
|
7454
|
+
const text = "_text_18d6m_74";
|
|
7558
7455
|
const styles$4 = {
|
|
7559
|
-
|
|
7456
|
+
"elm-page-top": "_elm-page-top_18d6m_1",
|
|
7457
|
+
visible,
|
|
7560
7458
|
partial,
|
|
7561
|
-
text
|
|
7562
|
-
"wrapper--visible": "_wrapper--visible_1uubg_122"
|
|
7459
|
+
text
|
|
7563
7460
|
};
|
|
7564
7461
|
const _hf0$3 = (p0) => ({
|
|
7565
7462
|
"--elmethis-scoped-size": `${64}px`,
|
|
@@ -7597,9 +7494,9 @@ const ElmPageTop = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.in
|
|
|
7597
7494
|
}, "ElmPageTop_component_toTop_40Bu5QRIQBE");
|
|
7598
7495
|
return /* @__PURE__ */ core$1._jsxSplit("nav", {
|
|
7599
7496
|
class: [
|
|
7600
|
-
styles$4
|
|
7497
|
+
styles$4["elm-page-top"],
|
|
7601
7498
|
{
|
|
7602
|
-
[styles$4
|
|
7499
|
+
[styles$4.visible]: isVisible.value
|
|
7603
7500
|
},
|
|
7604
7501
|
_rawProps.class
|
|
7605
7502
|
],
|
|
@@ -8455,35 +8352,40 @@ const ElmJarkup = /* @__PURE__ */ core$1.componentQrl(/* @__PURE__ */ core$1.inl
|
|
|
8455
8352
|
...core$1._getVarProps(rest)
|
|
8456
8353
|
}, core$1._getConstProps(rest), render(props.jsonComponents), 0, "Ck_5");
|
|
8457
8354
|
}, "ElmJarkup_component_v1hxPALYrDQ"));
|
|
8458
|
-
const
|
|
8459
|
-
const
|
|
8460
|
-
const
|
|
8461
|
-
const
|
|
8462
|
-
const
|
|
8463
|
-
const
|
|
8355
|
+
const error = "_error_1llms_26";
|
|
8356
|
+
const status = "_status_1llms_32";
|
|
8357
|
+
const board = "_board_1llms_41";
|
|
8358
|
+
const row = "_row_1llms_47";
|
|
8359
|
+
const cell = "_cell_1llms_52";
|
|
8360
|
+
const empty = "_empty_1llms_68";
|
|
8361
|
+
const tbd = "_tbd_1llms_74";
|
|
8362
|
+
const correct = "_correct_1llms_80";
|
|
8363
|
+
const present = "_present_1llms_86";
|
|
8364
|
+
const absent = "_absent_1llms_92";
|
|
8365
|
+
const keyboard = "_keyboard_1llms_100";
|
|
8366
|
+
const key = "_key_1llms_100";
|
|
8367
|
+
const wide = "_wide_1llms_137";
|
|
8368
|
+
const hidden = "_hidden_1llms_159";
|
|
8464
8369
|
const styles = {
|
|
8465
|
-
wordle,
|
|
8466
|
-
"message-area": "_message-
|
|
8467
|
-
|
|
8468
|
-
|
|
8370
|
+
"elm-wordle": "_elm-wordle_1llms_1",
|
|
8371
|
+
"message-area": "_message-area_1llms_11",
|
|
8372
|
+
error,
|
|
8373
|
+
status,
|
|
8469
8374
|
board,
|
|
8470
8375
|
row,
|
|
8471
8376
|
cell,
|
|
8472
|
-
|
|
8473
|
-
|
|
8474
|
-
|
|
8475
|
-
|
|
8476
|
-
|
|
8377
|
+
empty,
|
|
8378
|
+
tbd,
|
|
8379
|
+
correct,
|
|
8380
|
+
present,
|
|
8381
|
+
absent,
|
|
8477
8382
|
keyboard,
|
|
8478
|
-
"keyboard-row": "_keyboard-
|
|
8383
|
+
"keyboard-row": "_keyboard-row_1llms_108",
|
|
8479
8384
|
key,
|
|
8480
|
-
|
|
8481
|
-
"
|
|
8482
|
-
|
|
8483
|
-
"
|
|
8484
|
-
"reset-container": "_reset-container_j0hdx_156",
|
|
8485
|
-
"reset-container--hidden": "_reset-container--hidden_j0hdx_160",
|
|
8486
|
-
"reset-button": "_reset-button_j0hdx_164"
|
|
8385
|
+
wide,
|
|
8386
|
+
"reset-container": "_reset-container_1llms_156",
|
|
8387
|
+
hidden,
|
|
8388
|
+
"reset-button": "_reset-button_1llms_164"
|
|
8487
8389
|
};
|
|
8488
8390
|
const WORDS = [
|
|
8489
8391
|
"which",
|
|
@@ -25025,11 +24927,11 @@ const useWordle = (options) => {
|
|
|
25025
24927
|
const updatedStatuses = {
|
|
25026
24928
|
...letterStatuses2.value
|
|
25027
24929
|
};
|
|
25028
|
-
for (const { letter, status } of result) {
|
|
24930
|
+
for (const { letter, status: status2 } of result) {
|
|
25029
24931
|
const current = updatedStatuses[letter];
|
|
25030
24932
|
if (current !== "correct") {
|
|
25031
|
-
if (
|
|
25032
|
-
updatedStatuses[letter] =
|
|
24933
|
+
if (status2 === "correct" || current !== "present") {
|
|
24934
|
+
updatedStatuses[letter] = status2;
|
|
25033
24935
|
}
|
|
25034
24936
|
}
|
|
25035
24937
|
}
|
|
@@ -25103,11 +25005,11 @@ const useWordle = (options) => {
|
|
|
25103
25005
|
return /* @__PURE__ */ core$1._jsxSorted("div", {
|
|
25104
25006
|
class: [
|
|
25105
25007
|
styles["cell"],
|
|
25106
|
-
cellStatus === "correct" && styles["
|
|
25107
|
-
cellStatus === "present" && styles["
|
|
25108
|
-
cellStatus === "absent" && styles["
|
|
25109
|
-
cellStatus === "tbd" && styles["
|
|
25110
|
-
cellStatus === "empty" && styles["
|
|
25008
|
+
cellStatus === "correct" && styles["correct"],
|
|
25009
|
+
cellStatus === "present" && styles["present"],
|
|
25010
|
+
cellStatus === "absent" && styles["absent"],
|
|
25011
|
+
cellStatus === "tbd" && styles["tbd"],
|
|
25012
|
+
cellStatus === "empty" && styles["empty"]
|
|
25111
25013
|
]
|
|
25112
25014
|
}, null, letter, 1, colIndex);
|
|
25113
25015
|
});
|
|
@@ -25116,12 +25018,12 @@ const useWordle = (options) => {
|
|
|
25116
25018
|
}, cells, 1, rowIndex);
|
|
25117
25019
|
});
|
|
25118
25020
|
return /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
25119
|
-
class: styles["wordle"]
|
|
25021
|
+
class: styles["elm-wordle"]
|
|
25120
25022
|
}, [
|
|
25121
25023
|
/* @__PURE__ */ core$1._jsxSorted("div", {
|
|
25122
25024
|
class: [
|
|
25123
25025
|
styles["message-area"],
|
|
25124
|
-
errorMessage2.value ? styles["
|
|
25026
|
+
errorMessage2.value ? styles["error"] : gameStatus2.value !== "playing" ? styles["status"] : void 0
|
|
25125
25027
|
]
|
|
25126
25028
|
}, {
|
|
25127
25029
|
"aria-live": "polite"
|
|
@@ -25129,44 +25031,47 @@ const useWordle = (options) => {
|
|
|
25129
25031
|
/* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
25130
25032
|
class: styles["board"]
|
|
25131
25033
|
}, rows, 1, null),
|
|
25132
|
-
/* @__PURE__ */ core$1._jsxSorted("div",
|
|
25133
|
-
|
|
25134
|
-
|
|
25135
|
-
|
|
25136
|
-
|
|
25137
|
-
|
|
25138
|
-
const keyStatus = letterStatuses2.value[lowerKey];
|
|
25139
|
-
const qrl_4294901764 = /* @__PURE__ */ core$1.inlinedQrl((_, _1, key22) => {
|
|
25140
|
-
const addLetter3 = core$1._captures[0], removeLetter3 = core$1._captures[1], submit3 = core$1._captures[2];
|
|
25141
|
-
if (key22 === "Enter") {
|
|
25034
|
+
/* @__PURE__ */ core$1._jsxSorted("div", {
|
|
25035
|
+
"q-e:click": /* @__PURE__ */ core$1.inlinedQrl((event, _1, addLetter3, removeLetter3, submit3) => {
|
|
25036
|
+
const button2 = event.target.closest("button[data-key]");
|
|
25037
|
+
const key2 = button2?.dataset.key;
|
|
25038
|
+
if (!key2) return;
|
|
25039
|
+
if (key2 === "Enter") {
|
|
25142
25040
|
submit3();
|
|
25143
|
-
} else if (
|
|
25041
|
+
} else if (key2 === "⌫") {
|
|
25144
25042
|
removeLetter3();
|
|
25145
25043
|
} else {
|
|
25146
|
-
addLetter3(
|
|
25044
|
+
addLetter3(key2);
|
|
25147
25045
|
}
|
|
25148
|
-
}, "
|
|
25046
|
+
}, "useWordle_Wordle_component_div_div_q_e_click_Plq0gr08B0I"),
|
|
25047
|
+
"q:ps": [
|
|
25149
25048
|
addLetter2,
|
|
25150
25049
|
removeLetter2,
|
|
25151
25050
|
submit2
|
|
25152
|
-
]
|
|
25051
|
+
]
|
|
25052
|
+
}, {
|
|
25053
|
+
class: styles["keyboard"]
|
|
25054
|
+
}, KEYBOARD_ROWS.map((row2, rowIndex) => /* @__PURE__ */ core$1._jsxSorted("div", null, {
|
|
25055
|
+
class: styles["keyboard-row"]
|
|
25056
|
+
}, row2.map((key2) => {
|
|
25057
|
+
const lowerKey = key2.toLowerCase();
|
|
25058
|
+
const keyStatus = letterStatuses2.value[lowerKey];
|
|
25153
25059
|
return /* @__PURE__ */ core$1._jsxSorted("button", {
|
|
25154
25060
|
class: [
|
|
25155
25061
|
styles["key"],
|
|
25156
|
-
key2 === "Enter" && styles["
|
|
25157
|
-
key2 === "⌫" && styles["
|
|
25158
|
-
keyStatus === "correct" && styles["
|
|
25159
|
-
keyStatus === "present" && styles["
|
|
25160
|
-
keyStatus === "absent" && styles["
|
|
25062
|
+
key2 === "Enter" && styles["wide"],
|
|
25063
|
+
key2 === "⌫" && styles["wide"],
|
|
25064
|
+
keyStatus === "correct" && styles["correct"],
|
|
25065
|
+
keyStatus === "present" && styles["present"],
|
|
25066
|
+
keyStatus === "absent" && styles["absent"]
|
|
25161
25067
|
],
|
|
25162
|
-
"
|
|
25163
|
-
|
|
25164
|
-
|
|
25165
|
-
}), 1, rowIndex)), 1, null),
|
|
25068
|
+
"data-key": key2
|
|
25069
|
+
}, null, key2, 1, key2);
|
|
25070
|
+
}), 1, rowIndex)), 4, null),
|
|
25166
25071
|
/* @__PURE__ */ core$1._jsxSorted("div", {
|
|
25167
25072
|
class: [
|
|
25168
25073
|
styles["reset-container"],
|
|
25169
|
-
gameStatus2.value === "playing" && styles["
|
|
25074
|
+
gameStatus2.value === "playing" && styles["hidden"]
|
|
25170
25075
|
]
|
|
25171
25076
|
}, null, /* @__PURE__ */ core$1._jsxSorted("button", null, {
|
|
25172
25077
|
class: styles["reset-button"],
|
|
@@ -25386,7 +25291,6 @@ exports.useDebouncedSignal = useDebouncedSignal;
|
|
|
25386
25291
|
exports.useDebouncedStore = useDebouncedStore;
|
|
25387
25292
|
exports.useDelayedSignal = useDelayedSignal;
|
|
25388
25293
|
exports.useElmethisTheme = useElmethisTheme;
|
|
25389
|
-
exports.useInView = useInView;
|
|
25390
25294
|
exports.useLocalStorage = useLocalStorage;
|
|
25391
25295
|
exports.useMcpPrompts = useMcpPrompts;
|
|
25392
25296
|
exports.useMcpTools = useMcpTools;
|