@scalar/components 0.7.15 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -5
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +0 -6
- package/dist/index.js +247 -255
- package/dist/style.css +1 -0
- package/package.json +3 -3
- package/dist/main.css +0 -1
package/dist/index.js
CHANGED
|
@@ -1,32 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
const B = "scalar-component", Te = ce({
|
|
1
|
+
import { defineComponent as w, useCssVars as J, openBlock as m, createElementBlock as v, normalizeClass as S, unref as n, createElementVNode as h, createCommentVNode as $, createStaticVNode as Z, reactive as G, computed as _, useAttrs as T, mergeProps as A, renderSlot as b, createVNode as x, ref as N, watch as V, nextTick as Q, onServerPrefetch as ee, useSSRContext as te, onMounted as F, toDisplayString as R, toValue as D, Fragment as ae, createBlock as I, withCtx as y, defineAsyncComponent as re, resolveDynamicComponent as U, normalizeStyle as j, createTextVNode as W, normalizeProps as se, guardReactiveProps as oe, withKeys as ne } from "vue";
|
|
2
|
+
import { defineConfig as ie } from "cva";
|
|
3
|
+
import { extendTailwindMerge as le } from "tailwind-merge";
|
|
4
|
+
import { createHash as de, ssrState as ce } from "@scalar/oas-utils";
|
|
5
|
+
import z from "prismjs";
|
|
6
|
+
import { Menu as pe, MenuItems as ue, MenuButton as me, MenuItem as ge, Dialog as fe, DialogPanel as he, DialogTitle as ve, DialogDescription as be, Popover as Se, PopoverPanel as ye, PopoverButton as _e } from "@headlessui/vue";
|
|
7
|
+
import { getSideAxis as B } from "@floating-ui/utils";
|
|
8
|
+
import { useFloating as we, autoUpdate as ke, offset as Ee, flip as Ne, shift as xe } from "@floating-ui/vue";
|
|
9
|
+
import { useTextareaAutosize as $e } from "@vueuse/core";
|
|
10
|
+
import { nanoid as Ie } from "nanoid";
|
|
11
|
+
const Ae = le({
|
|
13
12
|
extend: {
|
|
14
13
|
classGroups: {
|
|
15
|
-
"font-size": ["text-xxs"]
|
|
16
|
-
// Add the scalar class prefix as a custom class to be deduped by tailwind-merge
|
|
17
|
-
[B]: [B]
|
|
14
|
+
"font-size": ["text-xxs"]
|
|
18
15
|
}
|
|
19
16
|
}
|
|
20
|
-
}), { cva: L, cx: E, compose:
|
|
17
|
+
}), { cva: L, cx: E, compose: _t } = ie({
|
|
21
18
|
hooks: {
|
|
22
|
-
onComplete: (
|
|
19
|
+
onComplete: (r) => Ae(r)
|
|
23
20
|
}
|
|
24
|
-
}),
|
|
21
|
+
}), Ce = /* @__PURE__ */ Z('<path class="svg-path svg-check-mark" d="m 0 60 l 30 30 l 70 -80" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 -40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 -40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 40" data-v-47faceda></path>', 5), Te = {
|
|
25
22
|
key: 0,
|
|
26
23
|
class: "circular-loader"
|
|
27
24
|
};
|
|
28
|
-
function
|
|
29
|
-
return
|
|
25
|
+
function wt() {
|
|
26
|
+
return G({
|
|
30
27
|
isValid: !1,
|
|
31
28
|
isInvalid: !1,
|
|
32
29
|
isLoading: !1,
|
|
@@ -36,37 +33,37 @@ function Rt() {
|
|
|
36
33
|
stopLoading() {
|
|
37
34
|
this.isLoading = !1;
|
|
38
35
|
},
|
|
39
|
-
validate(
|
|
36
|
+
validate(r = 800) {
|
|
40
37
|
this.isValid = !0;
|
|
41
|
-
const t =
|
|
38
|
+
const t = r - 300;
|
|
42
39
|
return new Promise(
|
|
43
40
|
(e) => setTimeout(() => this.clear().then(() => e(!0)), t)
|
|
44
41
|
);
|
|
45
42
|
},
|
|
46
|
-
invalidate(
|
|
43
|
+
invalidate(r = 1100) {
|
|
47
44
|
this.isInvalid = !0;
|
|
48
|
-
const t =
|
|
45
|
+
const t = r - 300;
|
|
49
46
|
return new Promise(
|
|
50
47
|
(e) => setTimeout(() => this.clear().then(() => e(!0)), t)
|
|
51
48
|
);
|
|
52
49
|
},
|
|
53
|
-
clear(
|
|
50
|
+
clear(r = 300) {
|
|
54
51
|
return this.isValid = !1, this.isInvalid = !1, this.isLoading = !1, new Promise((t) => {
|
|
55
52
|
setTimeout(() => {
|
|
56
53
|
t(!0);
|
|
57
|
-
},
|
|
54
|
+
}, r);
|
|
58
55
|
});
|
|
59
56
|
}
|
|
60
57
|
});
|
|
61
58
|
}
|
|
62
|
-
const
|
|
59
|
+
const Le = /* @__PURE__ */ w({
|
|
63
60
|
__name: "ScalarLoading",
|
|
64
61
|
props: {
|
|
65
62
|
loadingState: {},
|
|
66
63
|
size: { default: "24px" }
|
|
67
64
|
},
|
|
68
|
-
setup(
|
|
69
|
-
return
|
|
65
|
+
setup(r) {
|
|
66
|
+
return J((t) => ({
|
|
70
67
|
d6cae758: t.size
|
|
71
68
|
})), (t, e) => t.loadingState ? (m(), v("div", {
|
|
72
69
|
key: 0,
|
|
@@ -81,8 +78,8 @@ const ze = /* @__PURE__ */ w({
|
|
|
81
78
|
xmlns: "http://www.w3.org/2000/svg",
|
|
82
79
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
83
80
|
}, [
|
|
84
|
-
|
|
85
|
-
t.loadingState.isLoading ? (m(), v("g",
|
|
81
|
+
Ce,
|
|
82
|
+
t.loadingState.isLoading ? (m(), v("g", Te, [
|
|
86
83
|
h("circle", {
|
|
87
84
|
class: S(["loader-path", {
|
|
88
85
|
"loader-path-off": t.loadingState.isValid || t.loadingState.isInvalid
|
|
@@ -93,16 +90,16 @@ const ze = /* @__PURE__ */ w({
|
|
|
93
90
|
r: "20",
|
|
94
91
|
"stroke-width": "2"
|
|
95
92
|
}, null, 2)
|
|
96
|
-
])) :
|
|
93
|
+
])) : $("", !0)
|
|
97
94
|
], 2))
|
|
98
|
-
], 2)) :
|
|
95
|
+
], 2)) : $("", !0);
|
|
99
96
|
}
|
|
100
|
-
}),
|
|
101
|
-
const e =
|
|
102
|
-
for (const [
|
|
103
|
-
e[
|
|
97
|
+
}), P = (r, t) => {
|
|
98
|
+
const e = r.__vccOpts || r;
|
|
99
|
+
for (const [a, d] of t)
|
|
100
|
+
e[a] = d;
|
|
104
101
|
return e;
|
|
105
|
-
},
|
|
102
|
+
}, X = /* @__PURE__ */ P(Le, [["__scopeId", "data-v-47faceda"]]), q = {
|
|
106
103
|
solid: [
|
|
107
104
|
"scalar-button-solid",
|
|
108
105
|
"bg-back-btn-1 text-fore-btn-1 shadow-sm active:bg-back-btn-1 active:shadow-none hocus:bg-hover-btn-1"
|
|
@@ -119,7 +116,7 @@ const ze = /* @__PURE__ */ w({
|
|
|
119
116
|
"scalar-button-danger",
|
|
120
117
|
"bg-error text-white active:brightness-90 hocus:brightness-90"
|
|
121
118
|
]
|
|
122
|
-
},
|
|
119
|
+
}, ze = L({
|
|
123
120
|
base: "scalar-button row cursor-pointer items-center justify-center rounded font-medium",
|
|
124
121
|
variants: {
|
|
125
122
|
disabled: {
|
|
@@ -127,7 +124,7 @@ const ze = /* @__PURE__ */ w({
|
|
|
127
124
|
},
|
|
128
125
|
fullWidth: { true: "w-full" },
|
|
129
126
|
size: { sm: "px-2 py-1 text-xs", md: "h-10 px-6 text-sm" },
|
|
130
|
-
variant:
|
|
127
|
+
variant: q
|
|
131
128
|
},
|
|
132
129
|
compoundVariants: [
|
|
133
130
|
{
|
|
@@ -136,13 +133,13 @@ const ze = /* @__PURE__ */ w({
|
|
|
136
133
|
class: "bg-transparent text-ghost"
|
|
137
134
|
}
|
|
138
135
|
]
|
|
139
|
-
}),
|
|
136
|
+
}), Re = ["ariaDisabled", "type"], De = {
|
|
140
137
|
key: 0,
|
|
141
138
|
class: "mr-2 h-4 w-4"
|
|
142
|
-
},
|
|
139
|
+
}, Oe = {
|
|
143
140
|
key: 1,
|
|
144
141
|
class: "ml-2"
|
|
145
|
-
},
|
|
142
|
+
}, kt = /* @__PURE__ */ w({
|
|
146
143
|
inheritAttrs: !1,
|
|
147
144
|
__name: "ScalarButton",
|
|
148
145
|
props: {
|
|
@@ -153,34 +150,34 @@ const ze = /* @__PURE__ */ w({
|
|
|
153
150
|
variant: { default: "solid" },
|
|
154
151
|
type: { default: "button" }
|
|
155
152
|
},
|
|
156
|
-
setup(
|
|
153
|
+
setup(r) {
|
|
157
154
|
const t = _(() => {
|
|
158
|
-
const { class: e, ...
|
|
159
|
-
return { class: e || "", rest:
|
|
155
|
+
const { class: e, ...a } = T();
|
|
156
|
+
return { class: e || "", rest: a };
|
|
160
157
|
});
|
|
161
|
-
return (e,
|
|
158
|
+
return (e, a) => (m(), v("button", A(t.value.rest, {
|
|
162
159
|
ariaDisabled: e.disabled || void 0,
|
|
163
160
|
class: n(E)(
|
|
164
|
-
n(
|
|
161
|
+
n(ze)({ fullWidth: e.fullWidth, disabled: e.disabled, size: e.size, variant: e.variant }),
|
|
165
162
|
{ "pl-9 pr-3": e.loading },
|
|
166
163
|
`${t.value.class}`
|
|
167
164
|
),
|
|
168
165
|
type: e.type
|
|
169
166
|
}), [
|
|
170
|
-
e.$slots.icon ? (m(), v("div",
|
|
167
|
+
e.$slots.icon ? (m(), v("div", De, [
|
|
171
168
|
b(e.$slots, "icon")
|
|
172
|
-
])) :
|
|
169
|
+
])) : $("", !0),
|
|
173
170
|
b(e.$slots, "default"),
|
|
174
|
-
e.loading ? (m(), v("div",
|
|
175
|
-
|
|
171
|
+
e.loading ? (m(), v("div", Oe, [
|
|
172
|
+
x(n(X), {
|
|
176
173
|
loadingState: e.loading,
|
|
177
174
|
size: "20px"
|
|
178
175
|
}, null, 8, ["loadingState"])
|
|
179
|
-
])) :
|
|
180
|
-
], 16,
|
|
176
|
+
])) : $("", !0)
|
|
177
|
+
], 16, Re));
|
|
181
178
|
}
|
|
182
179
|
});
|
|
183
|
-
(function(
|
|
180
|
+
(function(r) {
|
|
184
181
|
var t = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", e = {
|
|
185
182
|
pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
|
|
186
183
|
lookbehind: !0,
|
|
@@ -188,7 +185,7 @@ const ze = /* @__PURE__ */ w({
|
|
|
188
185
|
// this looks reasonably well in all themes
|
|
189
186
|
inside: null
|
|
190
187
|
// see below
|
|
191
|
-
},
|
|
188
|
+
}, a = {
|
|
192
189
|
bash: e,
|
|
193
190
|
environment: {
|
|
194
191
|
pattern: RegExp("\\$" + t),
|
|
@@ -242,7 +239,7 @@ const ze = /* @__PURE__ */ w({
|
|
|
242
239
|
// Escape sequences from echo and printf's manuals, and escaped quotes.
|
|
243
240
|
entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/
|
|
244
241
|
};
|
|
245
|
-
|
|
242
|
+
r.languages.bash = {
|
|
246
243
|
shebang: {
|
|
247
244
|
pattern: /^#!\s*\/.*/,
|
|
248
245
|
alias: "important"
|
|
@@ -300,7 +297,7 @@ const ze = /* @__PURE__ */ w({
|
|
|
300
297
|
pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
|
|
301
298
|
lookbehind: !0,
|
|
302
299
|
greedy: !0,
|
|
303
|
-
inside:
|
|
300
|
+
inside: a
|
|
304
301
|
},
|
|
305
302
|
// Here-document with quotes around the tag
|
|
306
303
|
// → No expansion (so no “inside”).
|
|
@@ -318,7 +315,7 @@ const ze = /* @__PURE__ */ w({
|
|
|
318
315
|
pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
|
|
319
316
|
lookbehind: !0,
|
|
320
317
|
greedy: !0,
|
|
321
|
-
inside:
|
|
318
|
+
inside: a
|
|
322
319
|
},
|
|
323
320
|
{
|
|
324
321
|
// https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
|
|
@@ -331,7 +328,7 @@ const ze = /* @__PURE__ */ w({
|
|
|
331
328
|
pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
|
|
332
329
|
greedy: !0,
|
|
333
330
|
inside: {
|
|
334
|
-
entity:
|
|
331
|
+
entity: a.entity
|
|
335
332
|
}
|
|
336
333
|
}
|
|
337
334
|
],
|
|
@@ -339,7 +336,7 @@ const ze = /* @__PURE__ */ w({
|
|
|
339
336
|
pattern: RegExp("\\$?" + t),
|
|
340
337
|
alias: "constant"
|
|
341
338
|
},
|
|
342
|
-
variable:
|
|
339
|
+
variable: a.variable,
|
|
343
340
|
function: {
|
|
344
341
|
pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
|
|
345
342
|
lookbehind: !0
|
|
@@ -378,7 +375,7 @@ const ze = /* @__PURE__ */ w({
|
|
|
378
375
|
pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
|
|
379
376
|
lookbehind: !0
|
|
380
377
|
}
|
|
381
|
-
}, e.inside =
|
|
378
|
+
}, e.inside = r.languages.bash;
|
|
382
379
|
for (var d = [
|
|
383
380
|
"comment",
|
|
384
381
|
"function-name",
|
|
@@ -395,9 +392,9 @@ const ze = /* @__PURE__ */ w({
|
|
|
395
392
|
"operator",
|
|
396
393
|
"punctuation",
|
|
397
394
|
"number"
|
|
398
|
-
], c =
|
|
399
|
-
c[d[s]] =
|
|
400
|
-
|
|
395
|
+
], c = a.variable[1].inside, s = 0; s < d.length; s++)
|
|
396
|
+
c[d[s]] = r.languages.bash[d[s]];
|
|
397
|
+
r.languages.sh = r.languages.bash, r.languages.shell = r.languages.bash;
|
|
401
398
|
})(Prism);
|
|
402
399
|
Prism.languages.json = {
|
|
403
400
|
property: {
|
|
@@ -427,7 +424,7 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
427
424
|
(function() {
|
|
428
425
|
if (typeof Prism > "u" || typeof document > "u")
|
|
429
426
|
return;
|
|
430
|
-
var
|
|
427
|
+
var r = "line-numbers", t = /\n(?!$)/g, e = Prism.plugins.lineNumbers = {
|
|
431
428
|
/**
|
|
432
429
|
* Get node for provided line number
|
|
433
430
|
*
|
|
@@ -436,7 +433,7 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
436
433
|
* @returns {Element|undefined}
|
|
437
434
|
*/
|
|
438
435
|
getLine: function(s, p) {
|
|
439
|
-
if (!(s.tagName !== "PRE" || !s.classList.contains(
|
|
436
|
+
if (!(s.tagName !== "PRE" || !s.classList.contains(r))) {
|
|
440
437
|
var i = s.querySelector(".line-numbers-rows");
|
|
441
438
|
if (i) {
|
|
442
439
|
var g = parseInt(s.getAttribute("data-start"), 10) || 1, u = g + (i.children.length - 1);
|
|
@@ -455,7 +452,7 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
455
452
|
* @returns {void}
|
|
456
453
|
*/
|
|
457
454
|
resize: function(s) {
|
|
458
|
-
|
|
455
|
+
a([s]);
|
|
459
456
|
},
|
|
460
457
|
/**
|
|
461
458
|
* Whether the plugin can assume that the units font sizes and margins are not depended on the size of
|
|
@@ -469,7 +466,7 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
469
466
|
*/
|
|
470
467
|
assumeViewportIndependence: !0
|
|
471
468
|
};
|
|
472
|
-
function
|
|
469
|
+
function a(s) {
|
|
473
470
|
if (s = s.filter(function(i) {
|
|
474
471
|
var g = d(i), u = g["white-space"];
|
|
475
472
|
return u === "pre-wrap" || u === "pre-line";
|
|
@@ -514,7 +511,7 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
514
511
|
}
|
|
515
512
|
var c = void 0;
|
|
516
513
|
window.addEventListener("resize", function() {
|
|
517
|
-
e.assumeViewportIndependence && c === window.innerWidth || (c = window.innerWidth,
|
|
514
|
+
e.assumeViewportIndependence && c === window.innerWidth || (c = window.innerWidth, a(Array.prototype.slice.call(document.querySelectorAll("pre." + r))));
|
|
518
515
|
}), Prism.hooks.add("complete", function(s) {
|
|
519
516
|
if (s.code) {
|
|
520
517
|
var p = (
|
|
@@ -524,43 +521,43 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
524
521
|
/** @type {HTMLElement} */
|
|
525
522
|
p.parentNode
|
|
526
523
|
);
|
|
527
|
-
if (!(!i || !/pre/i.test(i.nodeName)) && !p.querySelector(".line-numbers-rows") && Prism.util.isActive(p,
|
|
528
|
-
p.classList.remove(
|
|
524
|
+
if (!(!i || !/pre/i.test(i.nodeName)) && !p.querySelector(".line-numbers-rows") && Prism.util.isActive(p, r)) {
|
|
525
|
+
p.classList.remove(r), i.classList.add(r);
|
|
529
526
|
var g = s.code.match(t), u = g ? g.length + 1 : 1, o, f = new Array(u + 1).join("<span></span>");
|
|
530
|
-
o = document.createElement("span"), o.setAttribute("aria-hidden", "true"), o.className = "line-numbers-rows", o.innerHTML = f, i.hasAttribute("data-start") && (i.style.counterReset = "linenumber " + (parseInt(i.getAttribute("data-start"), 10) - 1)), s.element.appendChild(o),
|
|
527
|
+
o = document.createElement("span"), o.setAttribute("aria-hidden", "true"), o.className = "line-numbers-rows", o.innerHTML = f, i.hasAttribute("data-start") && (i.style.counterReset = "linenumber " + (parseInt(i.getAttribute("data-start"), 10) - 1)), s.element.appendChild(o), a([i]), Prism.hooks.run("line-numbers", s);
|
|
531
528
|
}
|
|
532
529
|
}
|
|
533
530
|
}), Prism.hooks.add("line-numbers", function(s) {
|
|
534
531
|
s.plugins = s.plugins || {}, s.plugins.lineNumbers = !0;
|
|
535
532
|
});
|
|
536
533
|
})();
|
|
537
|
-
function
|
|
534
|
+
function Pe(r) {
|
|
538
535
|
const t = /* @__PURE__ */ new Set();
|
|
539
536
|
return JSON.stringify(
|
|
540
|
-
|
|
541
|
-
(e,
|
|
542
|
-
if (typeof
|
|
543
|
-
if (t.has(
|
|
537
|
+
r,
|
|
538
|
+
(e, a) => {
|
|
539
|
+
if (typeof a == "object" && a !== null) {
|
|
540
|
+
if (t.has(a))
|
|
544
541
|
return "[Circular]";
|
|
545
|
-
t.add(
|
|
542
|
+
t.add(a);
|
|
546
543
|
}
|
|
547
|
-
return
|
|
544
|
+
return a;
|
|
548
545
|
},
|
|
549
546
|
2
|
|
550
547
|
);
|
|
551
548
|
}
|
|
552
|
-
function
|
|
553
|
-
if (typeof
|
|
554
|
-
return
|
|
555
|
-
if (typeof
|
|
549
|
+
function O(r) {
|
|
550
|
+
if (typeof r == "string")
|
|
551
|
+
return r;
|
|
552
|
+
if (typeof r == "object")
|
|
556
553
|
try {
|
|
557
|
-
return JSON.stringify(
|
|
554
|
+
return JSON.stringify(r, null, 2);
|
|
558
555
|
} catch {
|
|
559
|
-
return
|
|
556
|
+
return Pe(r);
|
|
560
557
|
}
|
|
561
|
-
return
|
|
558
|
+
return r;
|
|
562
559
|
}
|
|
563
|
-
const
|
|
560
|
+
const Be = ["innerHTML"], Et = /* @__PURE__ */ w({
|
|
564
561
|
__name: "ScalarCodeBlock",
|
|
565
562
|
props: {
|
|
566
563
|
content: {},
|
|
@@ -568,9 +565,9 @@ const Ge = ["innerHTML"], zt = /* @__PURE__ */ w({
|
|
|
568
565
|
lineNumbers: { type: Boolean, default: !1 },
|
|
569
566
|
hideCredentials: {}
|
|
570
567
|
},
|
|
571
|
-
setup(
|
|
572
|
-
const t =
|
|
573
|
-
t.hideCredentials &&
|
|
568
|
+
setup(r) {
|
|
569
|
+
const t = r, e = de(O(t.content)), a = `components-scalar-code-block${e}`, { plugins: d, highlightElement: c } = z;
|
|
570
|
+
t.hideCredentials && z.hooks.add("wrap", function(o) {
|
|
574
571
|
if (!t.hideCredentials)
|
|
575
572
|
return;
|
|
576
573
|
let f = !1;
|
|
@@ -587,31 +584,31 @@ const Ge = ["innerHTML"], zt = /* @__PURE__ */ w({
|
|
|
587
584
|
(l) => `<span class="credentials">${l}</span>`
|
|
588
585
|
));
|
|
589
586
|
});
|
|
590
|
-
const s =
|
|
591
|
-
|
|
587
|
+
const s = N(null), p = N(ce[a] ?? ""), i = _(() => t.lang === "node" ? "js" : t.lang), g = t.lang;
|
|
588
|
+
V(
|
|
592
589
|
[() => t.lang, () => t.content, s],
|
|
593
590
|
() => {
|
|
594
|
-
s.value && t.content && (!p.value || t.lang !== g) && (p.value = "",
|
|
591
|
+
s.value && t.content && (!p.value || t.lang !== g) && (p.value = "", Q(() => c(s.value)));
|
|
595
592
|
},
|
|
596
593
|
{ immediate: !0 }
|
|
597
594
|
);
|
|
598
595
|
const u = /\n(?!$)/g;
|
|
599
|
-
return
|
|
596
|
+
return ee(async () => {
|
|
600
597
|
let o = "";
|
|
601
|
-
t.lineNumbers &&
|
|
598
|
+
t.lineNumbers && z.hooks.add("after-tokenize", (l) => {
|
|
602
599
|
const k = l.code.match(u), C = k ? k.length + 1 : 1;
|
|
603
600
|
o = `<span aria-hidden="true" class="line-numbers-rows">${new Array(C + 1).join("<span></span>")}</span>`;
|
|
604
601
|
});
|
|
605
|
-
const f =
|
|
606
|
-
|
|
607
|
-
|
|
602
|
+
const f = z.highlight(
|
|
603
|
+
O(t.content),
|
|
604
|
+
z.languages[i.value],
|
|
608
605
|
i.value
|
|
609
606
|
);
|
|
610
607
|
if (p.value = f + o, e !== 0) {
|
|
611
|
-
const l =
|
|
612
|
-
l.payload.data[
|
|
608
|
+
const l = te();
|
|
609
|
+
l.payload.data[a] = f + o;
|
|
613
610
|
}
|
|
614
|
-
}),
|
|
611
|
+
}), F(async () => {
|
|
615
612
|
await import("./prism-autoloader-Dlh8Vzlw.js"), d.autoloader.languages_path = "https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/";
|
|
616
613
|
}), (o, f) => (m(), v("pre", {
|
|
617
614
|
class: S([
|
|
@@ -624,23 +621,23 @@ const Ge = ["innerHTML"], zt = /* @__PURE__ */ w({
|
|
|
624
621
|
p.value ? (m(), v("code", {
|
|
625
622
|
key: 0,
|
|
626
623
|
class: S(`scalar-codeblock-code language-${i.value}`),
|
|
627
|
-
innerHTML: n(
|
|
628
|
-
}, null, 10,
|
|
624
|
+
innerHTML: n(O)(p.value)
|
|
625
|
+
}, null, 10, Be)) : (m(), v("code", {
|
|
629
626
|
key: 1,
|
|
630
627
|
ref_key: "el",
|
|
631
628
|
ref: s,
|
|
632
629
|
class: S(`scalar-codeblock-code language-${i.value}`)
|
|
633
|
-
},
|
|
630
|
+
}, R(n(O)(o.content)), 3))
|
|
634
631
|
], 2));
|
|
635
632
|
}
|
|
636
633
|
});
|
|
637
|
-
function
|
|
638
|
-
const e =
|
|
634
|
+
function He(r, t = { enabled: N(!0) }) {
|
|
635
|
+
const e = N(0), a = N(0), d = N();
|
|
639
636
|
return typeof ResizeObserver < "u" && (d.value = new ResizeObserver(([c]) => {
|
|
640
637
|
var s, p;
|
|
641
|
-
c && (e.value = ((s = c.borderBoxSize[0]) == null ? void 0 : s.inlineSize) ?? 0,
|
|
642
|
-
})),
|
|
643
|
-
[() => D(t.enabled), () => D(
|
|
638
|
+
c && (e.value = ((s = c.borderBoxSize[0]) == null ? void 0 : s.inlineSize) ?? 0, a.value = ((p = c.borderBoxSize[0]) == null ? void 0 : p.blockSize) ?? 0);
|
|
639
|
+
})), V(
|
|
640
|
+
[() => D(t.enabled), () => D(r)],
|
|
644
641
|
([c, s]) => {
|
|
645
642
|
!s || !d.value || (c ? d.value.observe(s) : d.value.disconnect());
|
|
646
643
|
},
|
|
@@ -650,11 +647,11 @@ function Ve(a, t = { enabled: x(!0) }) {
|
|
|
650
647
|
() => D(t.enabled) ? `${e.value}px` : void 0
|
|
651
648
|
),
|
|
652
649
|
height: _(
|
|
653
|
-
() => D(t.enabled) ? `${
|
|
650
|
+
() => D(t.enabled) ? `${a.value}px` : void 0
|
|
654
651
|
)
|
|
655
652
|
};
|
|
656
653
|
}
|
|
657
|
-
const
|
|
654
|
+
const K = /* @__PURE__ */ w({
|
|
658
655
|
inheritAttrs: !1,
|
|
659
656
|
__name: "ScalarFloating",
|
|
660
657
|
props: {
|
|
@@ -662,40 +659,40 @@ const H = /* @__PURE__ */ w({
|
|
|
662
659
|
resize: { type: Boolean },
|
|
663
660
|
middleware: {}
|
|
664
661
|
},
|
|
665
|
-
setup(
|
|
666
|
-
const t =
|
|
662
|
+
setup(r) {
|
|
663
|
+
const t = r, e = N(null), a = N(null), d = _(
|
|
667
664
|
() => {
|
|
668
665
|
var u, o;
|
|
669
|
-
return (((o = (u =
|
|
666
|
+
return (((o = (u = a.value) == null ? void 0 : u.children) == null ? void 0 : o[0]) || a.value) ?? void 0;
|
|
670
667
|
}
|
|
671
|
-
), c =
|
|
668
|
+
), c = He(d, {
|
|
672
669
|
enabled: _(() => t.resize)
|
|
673
670
|
}), s = _(
|
|
674
|
-
() =>
|
|
671
|
+
() => B(t.placement || "bottom") === "y" ? c.width.value : void 0
|
|
675
672
|
), p = _(
|
|
676
|
-
() =>
|
|
677
|
-
), { floatingStyles: i, middlewareData: g } =
|
|
673
|
+
() => B(t.placement || "bottom") === "x" ? c.height.value : void 0
|
|
674
|
+
), { floatingStyles: i, middlewareData: g } = we(d, e, {
|
|
678
675
|
placement: _(() => t.placement),
|
|
679
|
-
whileElementsMounted:
|
|
676
|
+
whileElementsMounted: ke,
|
|
680
677
|
middleware: _(() => [
|
|
681
|
-
|
|
678
|
+
Ee(5),
|
|
682
679
|
Ne(),
|
|
683
|
-
|
|
680
|
+
xe(),
|
|
684
681
|
...t.middleware ?? []
|
|
685
682
|
])
|
|
686
683
|
});
|
|
687
|
-
return (u, o) => (m(), v(
|
|
684
|
+
return (u, o) => (m(), v(ae, null, [
|
|
688
685
|
h("div", {
|
|
689
686
|
ref_key: "wrapperRef",
|
|
690
|
-
ref:
|
|
691
|
-
class: S(
|
|
687
|
+
ref: a,
|
|
688
|
+
class: S({ contents: !!u.$slots.default })
|
|
692
689
|
}, [
|
|
693
690
|
b(u.$slots, "default")
|
|
694
691
|
], 2),
|
|
695
692
|
h("div", A({
|
|
696
693
|
ref_key: "floatingRef",
|
|
697
694
|
ref: e,
|
|
698
|
-
class: "
|
|
695
|
+
class: "relative z-context",
|
|
699
696
|
style: n(i)
|
|
700
697
|
}, u.$attrs), [
|
|
701
698
|
b(u.$slots, "floating", {
|
|
@@ -706,34 +703,34 @@ const H = /* @__PURE__ */ w({
|
|
|
706
703
|
], 16)
|
|
707
704
|
], 64));
|
|
708
705
|
}
|
|
709
|
-
}),
|
|
706
|
+
}), Me = /* @__PURE__ */ h("div", { class: "absolute inset-0 -z-1 rounded bg-back-1 shadow-md brightness-lifted" }, null, -1), Nt = /* @__PURE__ */ w({
|
|
710
707
|
inheritAttrs: !1,
|
|
711
708
|
__name: "ScalarDropdown",
|
|
712
709
|
props: {
|
|
713
710
|
placement: {},
|
|
714
711
|
resize: { type: Boolean }
|
|
715
712
|
},
|
|
716
|
-
setup(
|
|
717
|
-
return (t, e) => (m(),
|
|
713
|
+
setup(r) {
|
|
714
|
+
return (t, e) => (m(), I(n(pe), null, {
|
|
718
715
|
default: y(() => [
|
|
719
|
-
|
|
716
|
+
x(n(K), {
|
|
720
717
|
placement: t.placement ?? "bottom-start",
|
|
721
718
|
resize: t.resize
|
|
722
719
|
}, {
|
|
723
|
-
floating: y(({ width:
|
|
724
|
-
|
|
725
|
-
class: "
|
|
726
|
-
style: { width:
|
|
720
|
+
floating: y(({ width: a }) => [
|
|
721
|
+
x(n(ue), A({
|
|
722
|
+
class: "relative flex w-56 flex-col p-0.75",
|
|
723
|
+
style: { width: a }
|
|
727
724
|
}, t.$attrs), {
|
|
728
725
|
default: y(() => [
|
|
729
726
|
b(t.$slots, "items"),
|
|
730
|
-
|
|
727
|
+
Me
|
|
731
728
|
]),
|
|
732
729
|
_: 2
|
|
733
730
|
}, 1040, ["style"])
|
|
734
731
|
]),
|
|
735
732
|
default: y(() => [
|
|
736
|
-
|
|
733
|
+
x(n(me), { as: "template" }, {
|
|
737
734
|
default: y(() => [
|
|
738
735
|
b(t.$slots, "default")
|
|
739
736
|
]),
|
|
@@ -746,17 +743,17 @@ const H = /* @__PURE__ */ w({
|
|
|
746
743
|
_: 3
|
|
747
744
|
}));
|
|
748
745
|
}
|
|
749
|
-
}),
|
|
750
|
-
function
|
|
751
|
-
return m(), v("div",
|
|
746
|
+
}), Ge = {}, Ve = { class: "-mx-0.75 my-0.75 h-px bg-border" };
|
|
747
|
+
function Fe(r, t) {
|
|
748
|
+
return m(), v("div", Ve);
|
|
752
749
|
}
|
|
753
|
-
const
|
|
750
|
+
const xt = /* @__PURE__ */ P(Ge, [["render", Fe]]), $t = /* @__PURE__ */ w({
|
|
754
751
|
__name: "ScalarDropdownItem",
|
|
755
752
|
props: {
|
|
756
753
|
disabled: { type: Boolean }
|
|
757
754
|
},
|
|
758
755
|
emits: ["click"],
|
|
759
|
-
setup(
|
|
756
|
+
setup(r) {
|
|
760
757
|
const t = L({
|
|
761
758
|
base: [
|
|
762
759
|
// Layout
|
|
@@ -772,12 +769,12 @@ const qe = /* @__PURE__ */ O(je, [["render", Xe]]), Ke = /* @__PURE__ */ w({
|
|
|
772
769
|
active: { true: "bg-back-2 text-fore-1" }
|
|
773
770
|
}
|
|
774
771
|
});
|
|
775
|
-
return (e,
|
|
772
|
+
return (e, a) => (m(), I(n(ge), { disabled: e.disabled }, {
|
|
776
773
|
default: y(({ active: d }) => [
|
|
777
774
|
h("button", {
|
|
778
775
|
class: S(["item", n(E)("scalar-dropdown-item", n(t)({ active: d, disabled: e.disabled }))]),
|
|
779
776
|
type: "button",
|
|
780
|
-
onClick:
|
|
777
|
+
onClick: a[0] || (a[0] = (c) => e.$emit("click", c))
|
|
781
778
|
}, [
|
|
782
779
|
b(e.$slots, "default")
|
|
783
780
|
], 2)
|
|
@@ -785,17 +782,17 @@ const qe = /* @__PURE__ */ O(je, [["render", Xe]]), Ke = /* @__PURE__ */ w({
|
|
|
785
782
|
_: 3
|
|
786
783
|
}, 8, ["disabled"]));
|
|
787
784
|
}
|
|
788
|
-
}),
|
|
789
|
-
const t = `./${
|
|
790
|
-
return
|
|
791
|
-
},
|
|
785
|
+
}), H = /* @__PURE__ */ Object.assign({ "./Add.svg": () => import("./Add-ngyZgYXx.js"), "./ArrowLeft.svg": () => import("./ArrowLeft-aY17W2aS.js"), "./ArrowRight.svg": () => import("./ArrowRight-DEMtdoE7.js"), "./Background.svg": () => import("./Background-DcRhSHgf.js"), "./Brackets.svg": () => import("./Brackets-4I8OKomf.js"), "./Branch.svg": () => import("./Branch-CXwj8YuG.js"), "./CallToAction.svg": () => import("./CallToAction-EyQKkvbg.js"), "./Checkmark.svg": () => import("./Checkmark-De7nq6cG.js"), "./ChevronDown.svg": () => import("./ChevronDown-Co7EAKAv.js"), "./ChevronLeft.svg": () => import("./ChevronLeft-DYt0idAu.js"), "./ChevronRight.svg": () => import("./ChevronRight-ylxToVWl.js"), "./ChevronUp.svg": () => import("./ChevronUp-xAnukIfj.js"), "./Clipboard.svg": () => import("./Clipboard-CU_KxGEv.js"), "./Close.svg": () => import("./Close-CW3z42qZ.js"), "./CodeFolder.svg": () => import("./CodeFolder-Cv_igzJE.js"), "./Cookie.svg": () => import("./Cookie-CEHvXpqB.js"), "./DarkMode.svg": () => import("./DarkMode-CBsV8Q_I.js"), "./Delete.svg": () => import("./Delete-BCZmxrDD.js"), "./Discord.svg": () => import("./Discord-BHYOFBB2.js"), "./DocsPage.svg": () => import("./DocsPage-rh2xwxKN.js"), "./Duplicate.svg": () => import("./Duplicate-BPlzNpcf.js"), "./Edit.svg": () => import("./Edit-Br04RNYb.js"), "./Ellipses.svg": () => import("./Ellipses-Bo_X36Hx.js"), "./Error.svg": () => import("./Error-B_RGtWJI.js"), "./ExternalLink.svg": () => import("./ExternalLink-DK8L-EH7.js"), "./FilterList.svg": () => import("./FilterList-CsAcE9em.js"), "./Folder.svg": () => import("./Folder-Cdcj4evh.js"), "./GitHub.svg": () => import("./GitHub-NdE6Zs9k.js"), "./Hide.svg": () => import("./Hide-DBLY4PPo.js"), "./History.svg": () => import("./History-D9nmhNIn.js"), "./JsonObject.svg": () => import("./JsonObject-hGdHUQ4M.js"), "./Key.svg": () => import("./Key-CWXJqX28.js"), "./Leave.svg": () => import("./Leave-K1J3uwoG.js"), "./LightDarkModeToggle.svg": () => import("./LightDarkModeToggle-BkvMimDa.js"), "./LightMode.svg": () => import("./LightMode-Btz6vyT_.js"), "./Link.svg": () => import("./Link-Bzuc__Nc.js"), "./Lock.svg": () => import("./Lock-xhiH1mKz.js"), "./Logo.svg": () => import("./Logo-mtzeKD8M.js"), "./LogoAPI.svg": () => import("./LogoAPI-CaU5E6FK.js"), "./LogoClient.svg": () => import("./LogoClient-DdC-t_7P.js"), "./LogoMarket.svg": () => import("./LogoMarket-DwlApcab.js"), "./LogoSwagger.svg": () => import("./LogoSwagger-CH60H5qW.js"), "./Magic.svg": () => import("./Magic-Dsi9_bEc.js"), "./Menu.svg": () => import("./Menu-CFK5cOsm.js"), "./Page.svg": () => import("./Page-B7rVuhpl.js"), "./PaperAirplane.svg": () => import("./PaperAirplane-BC-4mGEB.js"), "./Payment.svg": () => import("./Payment-hzcXP1Xb.js"), "./Play.svg": () => import("./Play-BrVagRQA.js"), "./Refresh.svg": () => import("./Refresh-Be6vHEEi.js"), "./Response.svg": () => import("./Response-Dq9pM-ZU.js"), "./Search.svg": () => import("./Search-DqtlswRG.js"), "./Show.svg": () => import("./Show-CMsTZAgT.js"), "./SideBarClosed.svg": () => import("./SideBarClosed-CYUNS2XM.js"), "./SideBarOpen.svg": () => import("./SideBarOpen-BOxW49_U.js"), "./Sort.svg": () => import("./Sort-oTjBhJFQ.js"), "./Terminal.svg": () => import("./Terminal-CKp--su5.js"), "./ThumbsDown.svg": () => import("./ThumbsDown-BMgnsASL.js"), "./ThumbsUp.svg": () => import("./ThumbsUp-C1j6zY2j.js"), "./Trash.svg": () => import("./Trash-BpA3zWPD.js"), "./Unlock.svg": () => import("./Unlock-CY8UqJoE.js"), "./Upload.svg": () => import("./Upload-REIdL7RI.js"), "./User.svg": () => import("./User-Df5svMQ3.js"), "./programming-framework-angular.svg": () => import("./programming-framework-angular-DD4Vjgbk.js"), "./programming-framework-astro.svg": () => import("./programming-framework-astro-CLfrRt19.js"), "./programming-framework-laravel.svg": () => import("./programming-framework-laravel-kAy2wVLy.js"), "./programming-framework-nextdotjs.svg": () => import("./programming-framework-nextdotjs-BKdd_DY_.js"), "./programming-framework-react.svg": () => import("./programming-framework-react-PDgmtZuN.js"), "./programming-framework-vuedotjs.svg": () => import("./programming-framework-vuedotjs-Cv46W2aB.js"), "./programming-language-c.svg": () => import("./programming-language-c-hPGu2Zvg.js"), "./programming-language-clojure.svg": () => import("./programming-language-clojure-Cvmzky8x.js"), "./programming-language-csharp.svg": () => import("./programming-language-csharp-lqX1oWgb.js"), "./programming-language-css3.svg": () => import("./programming-language-css3-Dpp4Cr6b.js"), "./programming-language-go.svg": () => import("./programming-language-go-DoJxWwT6.js"), "./programming-language-html5.svg": () => import("./programming-language-html5-DlqJK4EL.js"), "./programming-language-http.svg": () => import("./programming-language-http-wMYwFS1I.js"), "./programming-language-java.svg": () => import("./programming-language-java-BCxG2T_w.js"), "./programming-language-javascript.svg": () => import("./programming-language-javascript-VxLvi1QG.js"), "./programming-language-json.svg": () => import("./programming-language-json-vEX_g7Zi.js"), "./programming-language-kotlin.svg": () => import("./programming-language-kotlin-DKV8vP9h.js"), "./programming-language-node.svg": () => import("./programming-language-node-Xsgx38lm.js"), "./programming-language-objc.svg": () => import("./programming-language-objc-BQXSOBsX.js"), "./programming-language-ocaml.svg": () => import("./programming-language-ocaml-BEz7gGv7.js"), "./programming-language-php.svg": () => import("./programming-language-php-GY38f8r4.js"), "./programming-language-powershell.svg": () => import("./programming-language-powershell-C9DkSp36.js"), "./programming-language-python.svg": () => import("./programming-language-python-Ct-_kNjo.js"), "./programming-language-r.svg": () => import("./programming-language-r-BGoKwua9.js"), "./programming-language-ruby.svg": () => import("./programming-language-ruby-DhdM4d7g.js"), "./programming-language-scala.svg": () => import("./programming-language-scala-BVg0dToJ.js"), "./programming-language-shell.svg": () => import("./programming-language-shell-BsTa1xI7.js"), "./programming-language-swift.svg": () => import("./programming-language-swift-Dn72xPjg.js"), "./programming-language-typescript.svg": () => import("./programming-language-typescript-CdF-HuRi.js"), "./programming-script-code.svg": () => import("./programming-script-code-DQN1veb2.js"), "./programming-tool-git.svg": () => import("./programming-tool-git-DDnQ1zGD.js"), "./programming-tool-tailwindcss.svg": () => import("./programming-tool-tailwindcss-xjXi0E6g.js") }), M = (r) => {
|
|
786
|
+
const t = `./${r}.svg`;
|
|
787
|
+
return H[t] ? re(H[t]) : (console.warn(`Could not find icon: ${r}`), null);
|
|
788
|
+
}, Ue = ["src"], Y = /* @__PURE__ */ w({
|
|
792
789
|
__name: "ScalarIcon",
|
|
793
790
|
props: {
|
|
794
791
|
icon: {},
|
|
795
792
|
size: {}
|
|
796
793
|
},
|
|
797
|
-
setup(
|
|
798
|
-
const t =
|
|
794
|
+
setup(r) {
|
|
795
|
+
const t = r, e = L({
|
|
799
796
|
variants: {
|
|
800
797
|
size: {
|
|
801
798
|
xs: "size-3 stroke-[1.4]",
|
|
@@ -811,16 +808,16 @@ const qe = /* @__PURE__ */ O(je, [["render", Xe]]), Ke = /* @__PURE__ */ w({
|
|
|
811
808
|
defaultVariants: {
|
|
812
809
|
size: "full"
|
|
813
810
|
}
|
|
814
|
-
}),
|
|
815
|
-
return (d, c) => n(
|
|
811
|
+
}), a = M(t.icon);
|
|
812
|
+
return (d, c) => n(a) ? (m(), I(U(n(M)(d.icon)), {
|
|
816
813
|
key: 0,
|
|
817
814
|
class: S(n(E)("scalar-icon", n(e)({ size: d.size })))
|
|
818
815
|
}, null, 8, ["class"])) : (m(), v("img", {
|
|
819
816
|
key: 1,
|
|
820
817
|
src: d.icon
|
|
821
|
-
}, null, 8,
|
|
818
|
+
}, null, 8, Ue));
|
|
822
819
|
}
|
|
823
|
-
}),
|
|
820
|
+
}), je = ["ariaDisabled"], We = { class: "sr-only" }, Xe = /* @__PURE__ */ w({
|
|
824
821
|
__name: "ScalarIconButton",
|
|
825
822
|
props: {
|
|
826
823
|
label: {},
|
|
@@ -829,7 +826,7 @@ const qe = /* @__PURE__ */ O(je, [["render", Xe]]), Ke = /* @__PURE__ */ w({
|
|
|
829
826
|
variant: { default: "ghost" },
|
|
830
827
|
size: { default: "md" }
|
|
831
828
|
},
|
|
832
|
-
setup(
|
|
829
|
+
setup(r) {
|
|
833
830
|
const t = L({
|
|
834
831
|
base: "scalar-icon-button grid aspect-square cursor-pointer rounded",
|
|
835
832
|
variants: {
|
|
@@ -843,22 +840,22 @@ const qe = /* @__PURE__ */ O(je, [["render", Xe]]), Ke = /* @__PURE__ */ w({
|
|
|
843
840
|
disabled: {
|
|
844
841
|
true: "cursor-not-allowed shadow-none"
|
|
845
842
|
},
|
|
846
|
-
variant:
|
|
843
|
+
variant: q
|
|
847
844
|
}
|
|
848
845
|
}), e = _(() => {
|
|
849
|
-
const { class:
|
|
850
|
-
return { class:
|
|
846
|
+
const { class: a, ...d } = T();
|
|
847
|
+
return { class: a || "", rest: d };
|
|
851
848
|
});
|
|
852
|
-
return (
|
|
853
|
-
ariaDisabled:
|
|
854
|
-
class: n(E)(n(t)({ size:
|
|
849
|
+
return (a, d) => (m(), v("button", A(e.value.rest, {
|
|
850
|
+
ariaDisabled: a.disabled || void 0,
|
|
851
|
+
class: n(E)(n(t)({ size: a.size, variant: a.variant, disabled: a.disabled }), e.value.class),
|
|
855
852
|
type: "button"
|
|
856
853
|
}), [
|
|
857
|
-
|
|
858
|
-
h("span",
|
|
859
|
-
], 16,
|
|
854
|
+
x(n(Y), { icon: a.icon }, null, 8, ["icon"]),
|
|
855
|
+
h("span", We, R(a.label), 1)
|
|
856
|
+
], 16, je));
|
|
860
857
|
}
|
|
861
|
-
}),
|
|
858
|
+
}), It = () => G({
|
|
862
859
|
open: !1,
|
|
863
860
|
show() {
|
|
864
861
|
this.open = !0;
|
|
@@ -866,7 +863,7 @@ const qe = /* @__PURE__ */ O(je, [["render", Xe]]), Ke = /* @__PURE__ */ w({
|
|
|
866
863
|
hide() {
|
|
867
864
|
this.open = !1;
|
|
868
865
|
}
|
|
869
|
-
}),
|
|
866
|
+
}), qe = /* @__PURE__ */ w({
|
|
870
867
|
__name: "ScalarModal",
|
|
871
868
|
props: {
|
|
872
869
|
state: {},
|
|
@@ -876,7 +873,7 @@ const qe = /* @__PURE__ */ O(je, [["render", Xe]]), Ke = /* @__PURE__ */ w({
|
|
|
876
873
|
size: { default: "md" },
|
|
877
874
|
variant: {}
|
|
878
875
|
},
|
|
879
|
-
setup(
|
|
876
|
+
setup(r) {
|
|
880
877
|
const t = L({
|
|
881
878
|
base: [
|
|
882
879
|
"scalar-modal",
|
|
@@ -895,9 +892,9 @@ const qe = /* @__PURE__ */ O(je, [["render", Xe]]), Ke = /* @__PURE__ */ w({
|
|
|
895
892
|
}
|
|
896
893
|
}
|
|
897
894
|
});
|
|
898
|
-
return (e,
|
|
895
|
+
return (e, a) => (m(), I(n(fe), {
|
|
899
896
|
open: e.state.open,
|
|
900
|
-
onClose:
|
|
897
|
+
onClose: a[0] || (a[0] = (d) => e.state.hide())
|
|
901
898
|
}, {
|
|
902
899
|
default: y(() => [
|
|
903
900
|
h("div", {
|
|
@@ -909,21 +906,21 @@ const qe = /* @__PURE__ */ O(je, [["render", Xe]]), Ke = /* @__PURE__ */ w({
|
|
|
909
906
|
)
|
|
910
907
|
)
|
|
911
908
|
}, [
|
|
912
|
-
|
|
909
|
+
x(n(he), {
|
|
913
910
|
class: S(n(t)({ size: e.size, variant: e.variant })),
|
|
914
|
-
style:
|
|
911
|
+
style: j({ maxWidth: e.maxWidth })
|
|
915
912
|
}, {
|
|
916
913
|
default: y(() => [
|
|
917
|
-
e.title ? (m(),
|
|
914
|
+
e.title ? (m(), I(n(ve), {
|
|
918
915
|
key: 0,
|
|
919
916
|
class: S(["scalar-modal-header font-semiBold m-0 rounded-lg px-6 py-3 text-left text-xs text-fore-1", { "pb-0 pt-6": e.variant === "history" }])
|
|
920
917
|
}, {
|
|
921
918
|
default: y(() => [
|
|
922
|
-
|
|
919
|
+
W(R(e.title), 1)
|
|
923
920
|
]),
|
|
924
921
|
_: 1
|
|
925
|
-
}, 8, ["class"])) :
|
|
926
|
-
|
|
922
|
+
}, 8, ["class"])) : $("", !0),
|
|
923
|
+
x(n(be), {
|
|
927
924
|
class: S([
|
|
928
925
|
"scalar-modal-body relative max-h-[calc(100dvh-240px)] overflow-y-auto rounded-lg bg-back-1 px-6 pb-4 pt-6",
|
|
929
926
|
n(E)(
|
|
@@ -946,31 +943,31 @@ const qe = /* @__PURE__ */ O(je, [["render", Xe]]), Ke = /* @__PURE__ */ w({
|
|
|
946
943
|
_: 3
|
|
947
944
|
}, 8, ["open"]));
|
|
948
945
|
}
|
|
949
|
-
}),
|
|
946
|
+
}), At = /* @__PURE__ */ P(qe, [["__scopeId", "data-v-ff85ced0"]]), Ke = /* @__PURE__ */ h("div", { class: "absolute inset-0 -z-1 rounded bg-back-1 shadow-md brightness-lifted" }, null, -1), Ct = /* @__PURE__ */ w({
|
|
950
947
|
inheritAttrs: !1,
|
|
951
948
|
__name: "ScalarPopover",
|
|
952
949
|
props: {
|
|
953
950
|
placement: {},
|
|
954
951
|
resize: { type: Boolean }
|
|
955
952
|
},
|
|
956
|
-
setup(
|
|
957
|
-
return (t, e) => (m(),
|
|
953
|
+
setup(r) {
|
|
954
|
+
return (t, e) => (m(), I(n(Se), null, {
|
|
958
955
|
default: y(() => [
|
|
959
|
-
|
|
960
|
-
floating: y(({ width:
|
|
961
|
-
|
|
962
|
-
class: "
|
|
963
|
-
style: { width:
|
|
956
|
+
x(n(K), se(oe(t.$props)), {
|
|
957
|
+
floating: y(({ width: a, height: d }) => [
|
|
958
|
+
x(n(ye), A({
|
|
959
|
+
class: "relative flex flex-col p-0.75",
|
|
960
|
+
style: { width: a, height: d }
|
|
964
961
|
}, t.$attrs), {
|
|
965
962
|
default: y(() => [
|
|
966
963
|
b(t.$slots, "popover"),
|
|
967
|
-
|
|
964
|
+
Ke
|
|
968
965
|
]),
|
|
969
966
|
_: 2
|
|
970
967
|
}, 1040, ["style"])
|
|
971
968
|
]),
|
|
972
969
|
default: y(() => [
|
|
973
|
-
|
|
970
|
+
x(n(_e), { as: "template" }, {
|
|
974
971
|
default: y(() => [
|
|
975
972
|
b(t.$slots, "default")
|
|
976
973
|
]),
|
|
@@ -983,7 +980,7 @@ const qe = /* @__PURE__ */ O(je, [["render", Xe]]), Ke = /* @__PURE__ */ w({
|
|
|
983
980
|
_: 3
|
|
984
981
|
}));
|
|
985
982
|
}
|
|
986
|
-
}),
|
|
983
|
+
}), Ye = { class: "sr-only" }, Je = ["value"], Tt = /* @__PURE__ */ w({
|
|
987
984
|
inheritAttrs: !1,
|
|
988
985
|
__name: "ScalarSearchInput",
|
|
989
986
|
props: {
|
|
@@ -991,9 +988,9 @@ const qe = /* @__PURE__ */ O(je, [["render", Xe]]), Ke = /* @__PURE__ */ w({
|
|
|
991
988
|
modelValue: {}
|
|
992
989
|
},
|
|
993
990
|
emits: ["update:modelValue"],
|
|
994
|
-
setup(
|
|
991
|
+
setup(r, { emit: t }) {
|
|
995
992
|
const e = t;
|
|
996
|
-
function
|
|
993
|
+
function a(c) {
|
|
997
994
|
e("update:modelValue", c.target.value);
|
|
998
995
|
}
|
|
999
996
|
const d = _(() => {
|
|
@@ -1006,9 +1003,9 @@ const qe = /* @__PURE__ */ O(je, [["render", Xe]]), Ke = /* @__PURE__ */ w({
|
|
|
1006
1003
|
d.value.className
|
|
1007
1004
|
)
|
|
1008
1005
|
}), [
|
|
1009
|
-
h("span",
|
|
1006
|
+
h("span", Ye, [
|
|
1010
1007
|
b(c.$slots, "label", {}, () => [
|
|
1011
|
-
|
|
1008
|
+
W("Enter search")
|
|
1012
1009
|
])
|
|
1013
1010
|
]),
|
|
1014
1011
|
h("input", {
|
|
@@ -1020,62 +1017,62 @@ const qe = /* @__PURE__ */ O(je, [["render", Xe]]), Ke = /* @__PURE__ */ w({
|
|
|
1020
1017
|
spellcheck: "false",
|
|
1021
1018
|
type: "text",
|
|
1022
1019
|
value: c.modelValue,
|
|
1023
|
-
onInput:
|
|
1024
|
-
}, null, 40,
|
|
1025
|
-
c.loading && c.loading.isLoading ? (m(),
|
|
1020
|
+
onInput: a
|
|
1021
|
+
}, null, 40, Je),
|
|
1022
|
+
c.loading && c.loading.isLoading ? (m(), I(n(X), {
|
|
1026
1023
|
key: 0,
|
|
1027
1024
|
class: "mr-3 self-center",
|
|
1028
1025
|
loadingState: c.loading,
|
|
1029
1026
|
size: "20px"
|
|
1030
|
-
}, null, 8, ["loadingState"])) : c.modelValue ? (m(),
|
|
1027
|
+
}, null, 8, ["loadingState"])) : c.modelValue ? (m(), I(n(Xe), {
|
|
1031
1028
|
key: 1,
|
|
1032
1029
|
class: "self-center",
|
|
1033
1030
|
icon: "Close",
|
|
1034
1031
|
label: "Clear Search",
|
|
1035
1032
|
size: "md",
|
|
1036
1033
|
onClick: s[0] || (s[0] = (p) => e("update:modelValue", ""))
|
|
1037
|
-
})) :
|
|
1034
|
+
})) : $("", !0)
|
|
1038
1035
|
], 16));
|
|
1039
1036
|
}
|
|
1040
|
-
}),
|
|
1037
|
+
}), Ze = /* @__PURE__ */ h("div", { class: "flex flex-col items-center gap-2 px-3 py-4" }, [
|
|
1041
1038
|
/* @__PURE__ */ h("div", { class: "rotate-90 text-lg font-bold" }, ":("),
|
|
1042
1039
|
/* @__PURE__ */ h("div", { class: "text-sm font-medium text-fore-2" }, "No results found")
|
|
1043
|
-
], -1),
|
|
1040
|
+
], -1), Lt = /* @__PURE__ */ w({
|
|
1044
1041
|
inheritAttrs: !1,
|
|
1045
1042
|
__name: "ScalarSearchResultList",
|
|
1046
1043
|
props: {
|
|
1047
1044
|
noResults: { type: Boolean }
|
|
1048
1045
|
},
|
|
1049
|
-
setup(
|
|
1046
|
+
setup(r) {
|
|
1050
1047
|
const t = _(() => {
|
|
1051
|
-
const { class: e, ...
|
|
1052
|
-
return { className: e || "", rest:
|
|
1048
|
+
const { class: e, ...a } = T();
|
|
1049
|
+
return { className: e || "", rest: a };
|
|
1053
1050
|
});
|
|
1054
|
-
return (e,
|
|
1051
|
+
return (e, a) => (m(), v("ul", A(t.value.rest, {
|
|
1055
1052
|
class: n(E)("flex flex-col", t.value.className)
|
|
1056
1053
|
}), [
|
|
1057
1054
|
e.noResults ? b(e.$slots, "noResults", { key: 0 }, () => [
|
|
1058
|
-
|
|
1059
|
-
]) :
|
|
1055
|
+
Ze
|
|
1056
|
+
]) : $("", !0),
|
|
1060
1057
|
b(e.$slots, "default")
|
|
1061
1058
|
], 16));
|
|
1062
1059
|
}
|
|
1063
|
-
}),
|
|
1060
|
+
}), Qe = { class: "contents" }, et = { class: "text-fore-3 group-hover:text-fore-1" }, tt = { class: "flex min-w-0 flex-1 flex-col gap-0.75" }, at = { class: "flex items-center gap-1" }, rt = { class: "flex-1 truncate text-sm font-medium" }, st = {
|
|
1064
1061
|
key: 0,
|
|
1065
1062
|
class: "text-xs text-fore-2"
|
|
1066
|
-
},
|
|
1063
|
+
}, ot = { class: "truncate text-xs text-fore-2" }, zt = /* @__PURE__ */ w({
|
|
1067
1064
|
inheritAttrs: !1,
|
|
1068
1065
|
__name: "ScalarSearchResultItem",
|
|
1069
1066
|
props: {
|
|
1070
1067
|
icon: {},
|
|
1071
1068
|
active: { type: Boolean }
|
|
1072
1069
|
},
|
|
1073
|
-
setup(
|
|
1070
|
+
setup(r) {
|
|
1074
1071
|
const t = _(() => {
|
|
1075
|
-
const { class: e, ...
|
|
1076
|
-
return { className: e || "", rest:
|
|
1072
|
+
const { class: e, ...a } = T();
|
|
1073
|
+
return { className: e || "", rest: a };
|
|
1077
1074
|
});
|
|
1078
|
-
return (e,
|
|
1075
|
+
return (e, a) => (m(), v("li", Qe, [
|
|
1079
1076
|
h("a", A(t.value.rest, {
|
|
1080
1077
|
class: n(E)(
|
|
1081
1078
|
"group flex cursor-pointer gap-3 rounded px-3 py-1.5 no-underline hover:bg-back-2",
|
|
@@ -1085,32 +1082,32 @@ const qe = /* @__PURE__ */ O(je, [["render", Xe]]), Ke = /* @__PURE__ */ w({
|
|
|
1085
1082
|
t.value.className
|
|
1086
1083
|
)
|
|
1087
1084
|
}), [
|
|
1088
|
-
h("div",
|
|
1085
|
+
h("div", et, [
|
|
1089
1086
|
b(e.$slots, "icon", {}, () => [
|
|
1090
|
-
e.icon ? (m(),
|
|
1087
|
+
e.icon ? (m(), I(n(Y), {
|
|
1091
1088
|
key: 0,
|
|
1092
1089
|
icon: e.icon,
|
|
1093
1090
|
size: "sm"
|
|
1094
|
-
}, null, 8, ["icon"])) :
|
|
1091
|
+
}, null, 8, ["icon"])) : $("", !0)
|
|
1095
1092
|
])
|
|
1096
1093
|
]),
|
|
1097
|
-
h("div",
|
|
1098
|
-
h("div",
|
|
1099
|
-
h("div",
|
|
1094
|
+
h("div", tt, [
|
|
1095
|
+
h("div", at, [
|
|
1096
|
+
h("div", rt, [
|
|
1100
1097
|
b(e.$slots, "default")
|
|
1101
1098
|
]),
|
|
1102
|
-
e.$slots.addon ? (m(), v("div",
|
|
1099
|
+
e.$slots.addon ? (m(), v("div", st, [
|
|
1103
1100
|
b(e.$slots, "addon")
|
|
1104
|
-
])) :
|
|
1101
|
+
])) : $("", !0)
|
|
1105
1102
|
]),
|
|
1106
|
-
h("div",
|
|
1103
|
+
h("div", ot, [
|
|
1107
1104
|
b(e.$slots, "description")
|
|
1108
1105
|
])
|
|
1109
1106
|
])
|
|
1110
1107
|
], 16)
|
|
1111
1108
|
]));
|
|
1112
1109
|
}
|
|
1113
|
-
}),
|
|
1110
|
+
}), nt = { class: "scalar-input-container relative" }, it = ["for"], lt = { class: "icon-slot cursor-pointer text-ghost hover:text-fore-1 !empty:flex !empty:w-7 !empty:items-center !empty:pr-3" }, dt = /* @__PURE__ */ w({
|
|
1114
1111
|
__name: "ScalarTextField",
|
|
1115
1112
|
props: {
|
|
1116
1113
|
modelValue: {},
|
|
@@ -1126,8 +1123,8 @@ const qe = /* @__PURE__ */ O(je, [["render", Xe]]), Ke = /* @__PURE__ */ w({
|
|
|
1126
1123
|
disableTrim: { type: Boolean, default: !1 }
|
|
1127
1124
|
},
|
|
1128
1125
|
emits: ["submit", "update:modelValue"],
|
|
1129
|
-
setup(
|
|
1130
|
-
const e =
|
|
1126
|
+
setup(r, { emit: t }) {
|
|
1127
|
+
const e = r, a = t, d = L({
|
|
1131
1128
|
base: "scalar-input-wrapper relative flex items-center rounded border border-solid border-border",
|
|
1132
1129
|
variants: {
|
|
1133
1130
|
focus: {
|
|
@@ -1135,10 +1132,10 @@ const qe = /* @__PURE__ */ O(je, [["render", Xe]]), Ke = /* @__PURE__ */ w({
|
|
|
1135
1132
|
},
|
|
1136
1133
|
error: { true: "scalar-input-wrapper-error border-error" }
|
|
1137
1134
|
}
|
|
1138
|
-
}), c = T(), s = c.id || `id-${
|
|
1135
|
+
}), c = T(), s = c.id || `id-${Ie()}`, p = N(), i = N(!1);
|
|
1139
1136
|
let g;
|
|
1140
1137
|
if (e.isMultiline) {
|
|
1141
|
-
const { triggerResize: l } =
|
|
1138
|
+
const { triggerResize: l } = $e({
|
|
1142
1139
|
element: p,
|
|
1143
1140
|
input: e.modelValue
|
|
1144
1141
|
});
|
|
@@ -1146,23 +1143,23 @@ const qe = /* @__PURE__ */ O(je, [["render", Xe]]), Ke = /* @__PURE__ */ w({
|
|
|
1146
1143
|
}
|
|
1147
1144
|
function u(l) {
|
|
1148
1145
|
const k = l.target.value;
|
|
1149
|
-
e.isMultiline && g(), e.handleFieldChange ? e.handleFieldChange(k) :
|
|
1146
|
+
e.isMultiline && g(), e.handleFieldChange ? e.handleFieldChange(k) : a("update:modelValue", k);
|
|
1150
1147
|
}
|
|
1151
1148
|
function o(l) {
|
|
1152
1149
|
const k = l.target, C = e.disableTrim || e.isMultiline ? k.value : k.value.trim();
|
|
1153
|
-
e.handleFieldSubmit ? e.handleFieldSubmit(C) :
|
|
1150
|
+
e.handleFieldSubmit ? e.handleFieldSubmit(C) : a("submit", C);
|
|
1154
1151
|
}
|
|
1155
1152
|
function f(l) {
|
|
1156
1153
|
i.value = !1, e.emitOnBlur && e.modelValue && o(l);
|
|
1157
1154
|
}
|
|
1158
|
-
return
|
|
1155
|
+
return F(() => {
|
|
1159
1156
|
var l;
|
|
1160
1157
|
Object.prototype.hasOwnProperty.call(c, "autofocus") && ((l = p.value) == null || l.focus());
|
|
1161
|
-
}), (l, k) => (m(), v("div",
|
|
1158
|
+
}), (l, k) => (m(), v("div", nt, [
|
|
1162
1159
|
h("div", {
|
|
1163
1160
|
class: S(n(d)({ error: l.error, focus: i.value }))
|
|
1164
1161
|
}, [
|
|
1165
|
-
(m(),
|
|
1162
|
+
(m(), I(U(l.isMultiline ? "textarea" : "input"), A({ id: n(s) }, l.$attrs, {
|
|
1166
1163
|
ref_key: "input",
|
|
1167
1164
|
ref: p,
|
|
1168
1165
|
class: [
|
|
@@ -1178,7 +1175,7 @@ const qe = /* @__PURE__ */ O(je, [["render", Xe]]), Ke = /* @__PURE__ */ w({
|
|
|
1178
1175
|
onBlur: f,
|
|
1179
1176
|
onFocus: k[0] || (k[0] = (C) => i.value = !0),
|
|
1180
1177
|
onInput: u,
|
|
1181
|
-
onKeyup:
|
|
1178
|
+
onKeyup: ne(o, ["enter"])
|
|
1182
1179
|
}), null, 16, ["id", "class", "placeholder", "value"])),
|
|
1183
1180
|
l.label ? (m(), v("label", {
|
|
1184
1181
|
key: 0,
|
|
@@ -1189,12 +1186,12 @@ const qe = /* @__PURE__ */ O(je, [["render", Xe]]), Ke = /* @__PURE__ */ w({
|
|
|
1189
1186
|
)
|
|
1190
1187
|
),
|
|
1191
1188
|
for: n(s),
|
|
1192
|
-
style:
|
|
1189
|
+
style: j({
|
|
1193
1190
|
"box-shadow": `0 0 4px 4px ${l.labelShadowColor}`,
|
|
1194
1191
|
"background-color": l.labelShadowColor
|
|
1195
1192
|
})
|
|
1196
|
-
},
|
|
1197
|
-
h("div",
|
|
1193
|
+
}, R(l.label), 15, it)) : $("", !0),
|
|
1194
|
+
h("div", lt, [
|
|
1198
1195
|
b(l.$slots, "default", {}, void 0, !0)
|
|
1199
1196
|
])
|
|
1200
1197
|
], 2),
|
|
@@ -1206,31 +1203,26 @@ const qe = /* @__PURE__ */ O(je, [["render", Xe]]), Ke = /* @__PURE__ */ w({
|
|
|
1206
1203
|
"before:bg-error before:text-white before:content-['!'] empty:hidden"
|
|
1207
1204
|
)
|
|
1208
1205
|
)
|
|
1209
|
-
},
|
|
1206
|
+
}, R(l.helperText), 3)
|
|
1210
1207
|
]));
|
|
1211
1208
|
}
|
|
1212
|
-
}),
|
|
1213
|
-
install: (a) => {
|
|
1214
|
-
a.component("ScalarButton", Me), a.component("ScalarDropdown", Ue), a.component("ScalarDropdownDivider", qe), a.component("ScalarDropdownItem", Ke), a.component("ScalarFloating", H), a.component("ScalarIcon", G), a.component("ScalarIconButton", Z), a.component("ScalarLoading", M), a.component("ScalarModal", et), a.component("ScalarPopover", at), a.component("ScalarSearchInput", ot), a.component("ScalarSearchResultItem", ft), a.component("ScalarSearchResultList", it), a.component("ScalarTextField", yt);
|
|
1215
|
-
}
|
|
1216
|
-
};
|
|
1209
|
+
}), Rt = /* @__PURE__ */ P(dt, [["__scopeId", "data-v-4fc2339e"]]);
|
|
1217
1210
|
export {
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
Dt as useModal
|
|
1211
|
+
kt as ScalarButton,
|
|
1212
|
+
Et as ScalarCodeBlock,
|
|
1213
|
+
Nt as ScalarDropdown,
|
|
1214
|
+
xt as ScalarDropdownDivider,
|
|
1215
|
+
$t as ScalarDropdownItem,
|
|
1216
|
+
K as ScalarFloating,
|
|
1217
|
+
Y as ScalarIcon,
|
|
1218
|
+
Xe as ScalarIconButton,
|
|
1219
|
+
X as ScalarLoading,
|
|
1220
|
+
At as ScalarModal,
|
|
1221
|
+
Ct as ScalarPopover,
|
|
1222
|
+
Tt as ScalarSearchInput,
|
|
1223
|
+
zt as ScalarSearchResultItem,
|
|
1224
|
+
Lt as ScalarSearchResultList,
|
|
1225
|
+
Rt as ScalarTextField,
|
|
1226
|
+
wt as useLoadingState,
|
|
1227
|
+
It as useModal
|
|
1236
1228
|
};
|