@floegence/floe-webapp-core 0.36.64 → 0.36.65
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createComponent as l, Dynamic as U, insert as h, effect as k, className as Y, setAttribute as c, template as g, setStyleProperty as F } from "solid-js/web";
|
|
2
2
|
import { Show as C, createUniqueId as q } from "solid-js";
|
|
3
|
-
var K = /* @__PURE__ */ g('<svg><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></svg>', !1, !0, !1), W = /* @__PURE__ */ g('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"><path fill=none stroke-width=1.5 stroke-linecap=round stroke-linejoin=round d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline fill=none stroke-width=1.5 stroke-linecap=round stroke-linejoin=round points="14 2 14 8 20 8">'), J = /* @__PURE__ */ g('<svg><path fill=none stroke=var(--error) stroke-width=1.35 stroke-linecap=round d="M15.9 15.9 20.1 20.1"></svg>', !1, !0, !1), Q = /* @__PURE__ */ g('<svg><g data-file-link-kind=symbolic><circle cx=18 cy=18 r=4 stroke-width=1></circle><path fill=none stroke-width=1.2 stroke-linecap=round stroke-linejoin=round d="M15.8 18h3.4m0 0-1.4-1.4m1.4 1.4-1.4 1.4"></svg>', !1, !0, !1), Z = /* @__PURE__ */ g('<svg><path fill=var(--background) opacity=0.3 d="M3 8l4-3h14l-4 3H3z"></svg>', !1, !0, !1), ee = /* @__PURE__ */ g('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"><defs><linearGradient x1=0% y1=0% x2=0% y2=100%><stop offset=0% style=stop-color:var(--warning);stop-opacity:1></stop><stop offset=100% style=stop-opacity:1></stop></linearGradient></defs><path>'), te = /* @__PURE__ */ g('<svg><path fill=none stroke=var(--info) stroke-width=1.5 stroke-linecap=round stroke-linejoin=round d="m10 13-2 2 2 2m4-4 2 2-2 2"></svg>', !1, !0, !1), ne = /* @__PURE__ */ g('<svg><g><rect x=5 y=13.5 width=14 height=5.75 rx=1.8 opacity=0.12 stroke-width=1></rect><text x=12 y=17.45 font-weight=700 text-anchor=middle style="font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace"></svg>', !1, !0, !1), re = /* @__PURE__ */ g("<svg><circle cx=10 cy=13 r=2 fill=var(--success)></svg>", !1, !0, !1), oe = /* @__PURE__ */ g('<svg><path fill=none stroke=var(--success) stroke-width=1.5 stroke-linecap=round stroke-linejoin=round d="m20 17-3-3-4 4-2-2-5 3"></svg>', !1, !0, !1), le = /* @__PURE__ */ g('<svg><g data-file-icon-kind=video><rect x=6.75 y=12 width=10.5 height=6.25 rx=1.5 fill=var(--
|
|
4
|
-
const ge = /* @__PURE__ */ new Set(["png", "jpg", "jpeg", "gif", "svg", "webp", "ico", "bmp"]), ue = /* @__PURE__ */ new Set(["mp4", "webm", "mov", "m4v", "ogv", "mkv"]), ve = /* @__PURE__ */ new Set(["mp3", "m4a", "aac", "wav", "ogg", "oga", "opus", "flac"]), Ee = /* @__PURE__ */ new Set(["pdf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt", "md", "rtf"]), he = /* @__PURE__ */ new Set(["json", "yaml", "yml", "toml", "xml", "ini", "env", "config", "cfg", "conf", "properties"]), ke = /* @__PURE__ */ new Set(["css", "scss", "sass", "less", "styl"]), me = /* @__PURE__ */ new Set(["clj", "cljs", "cljc", "coffee", "elm", "erl", "ex", "exs", "haml", "handlebars", "hbs", "heex", "hrl", "jinja", "jinja2", "jl", "lisp", "liquid", "m", "mm", "ml", "mli", "nim", "proto", "slim", "twig", "zig"]), Se = {
|
|
3
|
+
var K = /* @__PURE__ */ g('<svg><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></svg>', !1, !0, !1), W = /* @__PURE__ */ g('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"><path fill=none stroke-width=1.5 stroke-linecap=round stroke-linejoin=round d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline fill=none stroke-width=1.5 stroke-linecap=round stroke-linejoin=round points="14 2 14 8 20 8">'), J = /* @__PURE__ */ g('<svg><path fill=none stroke=var(--error) stroke-width=1.35 stroke-linecap=round d="M15.9 15.9 20.1 20.1"></svg>', !1, !0, !1), Q = /* @__PURE__ */ g('<svg><g data-file-link-kind=symbolic><circle cx=18 cy=18 r=4 stroke-width=1></circle><path fill=none stroke-width=1.2 stroke-linecap=round stroke-linejoin=round d="M15.8 18h3.4m0 0-1.4-1.4m1.4 1.4-1.4 1.4"></svg>', !1, !0, !1), Z = /* @__PURE__ */ g('<svg><path fill=var(--background) opacity=0.3 d="M3 8l4-3h14l-4 3H3z"></svg>', !1, !0, !1), ee = /* @__PURE__ */ g('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"><defs><linearGradient x1=0% y1=0% x2=0% y2=100%><stop offset=0% style=stop-color:var(--warning);stop-opacity:1></stop><stop offset=100% style=stop-opacity:1></stop></linearGradient></defs><path>'), te = /* @__PURE__ */ g('<svg><path fill=none stroke=var(--info) stroke-width=1.5 stroke-linecap=round stroke-linejoin=round d="m10 13-2 2 2 2m4-4 2 2-2 2"></svg>', !1, !0, !1), ne = /* @__PURE__ */ g('<svg><g><rect x=5 y=13.5 width=14 height=5.75 rx=1.8 opacity=0.12 stroke-width=1></rect><text x=12 y=17.45 font-weight=700 text-anchor=middle style="font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace"></svg>', !1, !0, !1), re = /* @__PURE__ */ g("<svg><circle cx=10 cy=13 r=2 fill=var(--success)></svg>", !1, !0, !1), oe = /* @__PURE__ */ g('<svg><path fill=none stroke=var(--success) stroke-width=1.5 stroke-linecap=round stroke-linejoin=round d="m20 17-3-3-4 4-2-2-5 3"></svg>', !1, !0, !1), le = /* @__PURE__ */ g('<svg><g data-file-icon-kind=video><rect x=6.75 y=12 width=10.5 height=6.25 rx=1.5 fill="color-mix(in srgb, #8b5cf6 86%, var(--foreground))"opacity=0.14 stroke="color-mix(in srgb, #8b5cf6 86%, var(--foreground))"stroke-width=1.2></rect><path fill="color-mix(in srgb, #8b5cf6 86%, var(--foreground))"d="M10.75 13.7v2.85a.45.45 0 0 0 .68.39l2.45-1.43a.45.45 0 0 0 0-.78l-2.45-1.42a.45.45 0 0 0-.68.39z"></path><line x1=8 y1=19.5 x2=16 y2=19.5 stroke="color-mix(in srgb, #8b5cf6 86%, var(--foreground))"stroke-width=1.2 stroke-linecap=round opacity=0.72></svg>', !1, !0, !1), se = /* @__PURE__ */ g('<svg><g data-file-icon-kind=audio><path fill=none stroke=var(--info) stroke-width=1.45 stroke-linecap=round stroke-linejoin=round d="M9 16.25v-5.2l5.5-1.15v5.15"></path><ellipse cx=8.2 cy=17.2 rx=1.75 ry=1.25 fill=var(--info) opacity=0.2 stroke=var(--info) stroke-width=1.1></ellipse><ellipse cx=13.7 cy=16 rx=1.75 ry=1.25 fill=var(--info) opacity=0.2 stroke=var(--info) stroke-width=1.1></svg>', !1, !0, !1), ie = /* @__PURE__ */ g("<svg><line x1=8 y1=13 x2=16 y2=13 stroke=var(--error) stroke-width=1.5 stroke-linecap=round></svg>", !1, !0, !1), ae = /* @__PURE__ */ g("<svg><line x1=8 y1=17 x2=14 y2=17 stroke=var(--error) stroke-width=1.5 stroke-linecap=round></svg>", !1, !0, !1), ce = /* @__PURE__ */ g('<svg><path fill=none stroke=var(--warning) stroke-width=1.5 stroke-linecap=round stroke-linejoin=round d="M10 12v4h2m-2-4h2l2 4"></svg>', !1, !0, !1), fe = /* @__PURE__ */ g('<svg><path fill=none stroke=var(--primary) stroke-width=1.5 stroke-linecap=round stroke-linejoin=round d="M9 14h6m-3-3v6"></svg>', !1, !0, !1), de = /* @__PURE__ */ g("<span>");
|
|
4
|
+
const ge = /* @__PURE__ */ new Set(["png", "jpg", "jpeg", "gif", "svg", "webp", "ico", "bmp"]), ue = /* @__PURE__ */ new Set(["mp4", "webm", "mov", "m4v", "ogv", "mkv"]), ve = /* @__PURE__ */ new Set(["mp3", "m4a", "aac", "wav", "ogg", "oga", "opus", "flac"]), Ee = /* @__PURE__ */ new Set(["pdf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt", "md", "rtf"]), he = /* @__PURE__ */ new Set(["json", "yaml", "yml", "toml", "xml", "ini", "env", "config", "cfg", "conf", "properties"]), ke = /* @__PURE__ */ new Set(["css", "scss", "sass", "less", "styl"]), me = /* @__PURE__ */ new Set(["clj", "cljs", "cljc", "coffee", "elm", "erl", "ex", "exs", "haml", "handlebars", "hbs", "heex", "hrl", "jinja", "jinja2", "jl", "lisp", "liquid", "m", "mm", "ml", "mli", "nim", "proto", "slim", "twig", "zig"]), _e = "color-mix(in srgb, #8b5cf6 86%, var(--foreground))", Se = {
|
|
5
5
|
warning: "var(--warning)",
|
|
6
6
|
primary: "var(--primary)",
|
|
7
7
|
info: "var(--info)",
|
|
@@ -17,137 +17,137 @@ const ge = /* @__PURE__ */ new Set(["png", "jpg", "jpeg", "gif", "svg", "webp",
|
|
|
17
17
|
}, w = {
|
|
18
18
|
label: "SH",
|
|
19
19
|
tone: "success"
|
|
20
|
-
},
|
|
20
|
+
}, pe = {
|
|
21
21
|
label: "PY",
|
|
22
22
|
tone: "info"
|
|
23
23
|
}, M = {
|
|
24
24
|
label: "RB",
|
|
25
25
|
tone: "error"
|
|
26
|
-
},
|
|
26
|
+
}, be = {
|
|
27
27
|
label: "GO",
|
|
28
28
|
tone: "info"
|
|
29
29
|
}, ye = {
|
|
30
30
|
label: "RS",
|
|
31
31
|
tone: "error"
|
|
32
|
-
},
|
|
32
|
+
}, Ce = {
|
|
33
33
|
label: "JAVA",
|
|
34
34
|
tone: "warning"
|
|
35
|
-
},
|
|
35
|
+
}, xe = {
|
|
36
36
|
label: "KT",
|
|
37
37
|
tone: "primary"
|
|
38
38
|
}, Ae = {
|
|
39
39
|
label: "SC",
|
|
40
40
|
tone: "error"
|
|
41
|
-
},
|
|
41
|
+
}, we = {
|
|
42
42
|
label: "C",
|
|
43
43
|
tone: "neutral"
|
|
44
|
-
},
|
|
44
|
+
}, Be = {
|
|
45
45
|
label: "C++",
|
|
46
46
|
tone: "neutral"
|
|
47
|
-
},
|
|
47
|
+
}, Te = {
|
|
48
48
|
label: "C#",
|
|
49
49
|
tone: "primary"
|
|
50
|
-
},
|
|
50
|
+
}, Ie = {
|
|
51
51
|
label: "F#",
|
|
52
52
|
tone: "info"
|
|
53
|
-
},
|
|
53
|
+
}, De = {
|
|
54
54
|
label: "PHP",
|
|
55
55
|
tone: "primary"
|
|
56
|
-
},
|
|
56
|
+
}, Pe = {
|
|
57
57
|
label: "PL",
|
|
58
58
|
tone: "info"
|
|
59
|
-
},
|
|
59
|
+
}, Ge = {
|
|
60
60
|
label: "SW",
|
|
61
61
|
tone: "error"
|
|
62
|
-
},
|
|
62
|
+
}, Fe = {
|
|
63
63
|
label: "LUA",
|
|
64
64
|
tone: "warning"
|
|
65
|
-
},
|
|
65
|
+
}, Oe = {
|
|
66
66
|
label: "DART",
|
|
67
67
|
tone: "info"
|
|
68
|
-
},
|
|
68
|
+
}, Le = {
|
|
69
69
|
label: "R",
|
|
70
70
|
tone: "info"
|
|
71
|
-
},
|
|
71
|
+
}, Me = {
|
|
72
72
|
label: "SQL",
|
|
73
73
|
tone: "warning"
|
|
74
|
-
},
|
|
74
|
+
}, Ne = {
|
|
75
75
|
label: "GQL",
|
|
76
76
|
tone: "primary"
|
|
77
77
|
}, N = {
|
|
78
78
|
label: "GRV",
|
|
79
79
|
tone: "success"
|
|
80
|
-
},
|
|
80
|
+
}, je = {
|
|
81
81
|
label: "HTML",
|
|
82
82
|
tone: "warning"
|
|
83
|
-
},
|
|
83
|
+
}, Re = {
|
|
84
84
|
label: "VUE",
|
|
85
85
|
tone: "success"
|
|
86
|
-
},
|
|
86
|
+
}, ze = {
|
|
87
87
|
label: "SVE",
|
|
88
88
|
tone: "error"
|
|
89
|
-
},
|
|
89
|
+
}, He = {
|
|
90
90
|
label: "AST",
|
|
91
91
|
tone: "warning"
|
|
92
|
-
},
|
|
92
|
+
}, Ve = {
|
|
93
93
|
label: "MDX",
|
|
94
94
|
tone: "primary"
|
|
95
|
-
},
|
|
95
|
+
}, A = {
|
|
96
96
|
label: "DKR",
|
|
97
97
|
tone: "info"
|
|
98
|
-
},
|
|
98
|
+
}, $e = {
|
|
99
99
|
label: "MAKE",
|
|
100
100
|
tone: "warning"
|
|
101
101
|
}, j = {
|
|
102
102
|
label: "CMK",
|
|
103
103
|
tone: "primary"
|
|
104
|
-
},
|
|
104
|
+
}, Xe = {
|
|
105
105
|
label: "PS",
|
|
106
106
|
tone: "primary"
|
|
107
|
-
},
|
|
107
|
+
}, Ue = {
|
|
108
108
|
label: "BAT",
|
|
109
109
|
tone: "neutral"
|
|
110
110
|
}, B = /* @__PURE__ */ new Map(), R = /* @__PURE__ */ new Map(), z = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), G = /* @__PURE__ */ new Map();
|
|
111
111
|
r(O, ["js", "jsx", "mjs", "cjs"]);
|
|
112
112
|
r(L, ["ts", "tsx", "mts", "cts"]);
|
|
113
113
|
r(w, ["sh", "bash", "zsh", "fish", "ksh", "csh"]);
|
|
114
|
-
r(
|
|
114
|
+
r(pe, ["py", "pyi", "pyw"]);
|
|
115
115
|
r(M, ["rb", "rake", "gemspec", "erb"]);
|
|
116
|
-
r(
|
|
116
|
+
r(be, ["go"]);
|
|
117
117
|
r(ye, ["rs"]);
|
|
118
|
-
r(
|
|
119
|
-
r(
|
|
118
|
+
r(Ce, ["java"]);
|
|
119
|
+
r(xe, ["kt", "kts"]);
|
|
120
120
|
r(Ae, ["scala", "sc"]);
|
|
121
|
-
r(
|
|
122
|
-
r(
|
|
123
|
-
r(
|
|
124
|
-
r(
|
|
125
|
-
r(
|
|
126
|
-
r(
|
|
127
|
-
r(
|
|
128
|
-
r(
|
|
129
|
-
r(
|
|
130
|
-
r(
|
|
131
|
-
r(
|
|
132
|
-
r(
|
|
121
|
+
r(we, ["c", "h"]);
|
|
122
|
+
r(Be, ["cc", "cp", "cpp", "cxx", "hh", "hpp", "hxx"]);
|
|
123
|
+
r(Te, ["cs"]);
|
|
124
|
+
r(Ie, ["fs", "fsi", "fsx"]);
|
|
125
|
+
r(De, ["php", "phtml"]);
|
|
126
|
+
r(Pe, ["pl", "pm"]);
|
|
127
|
+
r(Ge, ["swift"]);
|
|
128
|
+
r(Fe, ["lua"]);
|
|
129
|
+
r(Oe, ["dart"]);
|
|
130
|
+
r(Le, ["r"]);
|
|
131
|
+
r(Me, ["sql"]);
|
|
132
|
+
r(Ne, ["graphql", "gql"]);
|
|
133
133
|
r(N, ["groovy", "gradle", "gvy"]);
|
|
134
|
-
r(
|
|
135
|
-
r(
|
|
136
|
-
r(
|
|
137
|
-
r(
|
|
138
|
-
r(
|
|
139
|
-
r(
|
|
140
|
-
r(
|
|
141
|
-
r(
|
|
134
|
+
r(je, ["html", "htm", "xhtml"]);
|
|
135
|
+
r(Re, ["vue"]);
|
|
136
|
+
r(ze, ["svelte"]);
|
|
137
|
+
r(He, ["astro"]);
|
|
138
|
+
r(Ve, ["mdx"]);
|
|
139
|
+
r(Xe, ["ps1", "psd1", "psm1"]);
|
|
140
|
+
r(Ue, ["bat", "cmd"]);
|
|
141
|
+
r(A, ["dockerfile", "containerfile"]);
|
|
142
142
|
r(j, ["cmake"]);
|
|
143
|
-
m(
|
|
144
|
-
m(
|
|
143
|
+
m(A, ["dockerfile", "containerfile"]);
|
|
144
|
+
m($e, ["makefile", "gnumakefile", "justfile"]);
|
|
145
145
|
m(j, ["cmakelists.txt"]);
|
|
146
146
|
m(w, [".bashrc", ".bash_profile", ".bash_aliases", ".profile", ".zshrc", ".zprofile", ".zshenv", ".zlogin", ".zlogout", ".kshrc", ".cshrc", ".tcshrc", ".envrc"]);
|
|
147
147
|
m(M, ["gemfile", "rakefile", "podfile", "fastfile", "appfile", "brewfile", "vagrantfile"]);
|
|
148
148
|
m(N, ["jenkinsfile"]);
|
|
149
|
-
|
|
150
|
-
|
|
149
|
+
Ye(A, ["dockerfile.", "containerfile."]);
|
|
150
|
+
qe(A, [".dockerfile", ".containerfile"]);
|
|
151
151
|
function r(e, t) {
|
|
152
152
|
for (const n of t)
|
|
153
153
|
B.set(n, e);
|
|
@@ -156,11 +156,11 @@ function m(e, t) {
|
|
|
156
156
|
for (const n of t)
|
|
157
157
|
R.set(n, e);
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function Ye(e, t) {
|
|
160
160
|
for (const n of t)
|
|
161
161
|
z.set(n, e);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function qe(e, t) {
|
|
164
164
|
for (const n of t)
|
|
165
165
|
H.set(n, e);
|
|
166
166
|
}
|
|
@@ -176,7 +176,7 @@ function $(e) {
|
|
|
176
176
|
const n = t.split(/[\\/]/);
|
|
177
177
|
return n[n.length - 1]?.toLowerCase();
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function Ke(e) {
|
|
180
180
|
const t = $(e);
|
|
181
181
|
if (!t)
|
|
182
182
|
return;
|
|
@@ -185,9 +185,9 @@ function qe(e) {
|
|
|
185
185
|
return t.slice(n + 1);
|
|
186
186
|
}
|
|
187
187
|
function X(e) {
|
|
188
|
-
return V(e.extension) ??
|
|
188
|
+
return V(e.extension) ?? Ke(e.name);
|
|
189
189
|
}
|
|
190
|
-
function
|
|
190
|
+
function We(e) {
|
|
191
191
|
const t = $(e.name);
|
|
192
192
|
if (t) {
|
|
193
193
|
const d = R.get(t);
|
|
@@ -203,22 +203,22 @@ function Ke(e) {
|
|
|
203
203
|
const n = X(e);
|
|
204
204
|
return n ? B.get(n) : void 0;
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function Je(e) {
|
|
207
207
|
return e.length <= 2 ? "6.2" : e.length === 3 ? "5.3" : e.length === 4 ? "4.5" : "4";
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
return (t) => l(
|
|
209
|
+
function Qe(e) {
|
|
210
|
+
return (t) => l(ct, {
|
|
211
211
|
get class() {
|
|
212
212
|
return t.class;
|
|
213
213
|
},
|
|
214
214
|
spec: e
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function x(e) {
|
|
218
218
|
const t = `${e.tone}:${e.label}`, n = G.get(t);
|
|
219
219
|
if (n)
|
|
220
220
|
return n;
|
|
221
|
-
const d =
|
|
221
|
+
const d = Qe(e);
|
|
222
222
|
return G.set(t, d), d;
|
|
223
223
|
}
|
|
224
224
|
const E = (e) => {
|
|
@@ -271,7 +271,7 @@ const E = (e) => {
|
|
|
271
271
|
o: void 0
|
|
272
272
|
}), d;
|
|
273
273
|
})();
|
|
274
|
-
},
|
|
274
|
+
}, _ = (e) => {
|
|
275
275
|
const t = q(), n = () => !!e.open, d = () => `${n() ? "floe-folder-open-gradient" : "floe-folder-gradient"}-${t}`;
|
|
276
276
|
return (() => {
|
|
277
277
|
var f = ee(), o = f.firstChild, s = o.firstChild, i = s.firstChild, u = i.nextSibling, v = o.nextSibling;
|
|
@@ -294,8 +294,8 @@ const E = (e) => {
|
|
|
294
294
|
});
|
|
295
295
|
}
|
|
296
296
|
}), null), k((a) => {
|
|
297
|
-
var
|
|
298
|
-
return
|
|
297
|
+
var S = e.class, p = e.linkTargetType ? "symbolic" : void 0, b = e.linkTargetType, y = d(), I = n() ? "color-mix(in srgb, var(--warning) 70%, var(--foreground))" : "color-mix(in srgb, var(--warning) 80%, var(--foreground))", D = `url(#${d()})`, P = n() ? "M5 3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V7.414A2 2 0 0 0 20.414 6L18 3.586A2 2 0 0 0 16.586 3H5zm4 2h7.586L19 7.414V17H5V5h4z" : "M3 5a2 2 0 0 1 2-2h4.586a1 1 0 0 1 .707.293L12 5h7a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5z";
|
|
298
|
+
return S !== a.e && c(f, "class", a.e = S), p !== a.t && c(f, "data-file-link-kind", a.t = p), b !== a.a && c(f, "data-file-link-target-type", a.a = b), y !== a.o && c(s, "id", a.o = y), I !== a.i && F(u, "stop-color", a.i = I), D !== a.n && c(v, "fill", a.n = D), P !== a.s && c(v, "d", a.s = P), a;
|
|
299
299
|
}, {
|
|
300
300
|
e: void 0,
|
|
301
301
|
t: void 0,
|
|
@@ -306,42 +306,42 @@ const E = (e) => {
|
|
|
306
306
|
s: void 0
|
|
307
307
|
}), f;
|
|
308
308
|
})();
|
|
309
|
-
},
|
|
309
|
+
}, Ze = (e) => l(_, {
|
|
310
310
|
get class() {
|
|
311
311
|
return e.class;
|
|
312
312
|
}
|
|
313
|
-
}),
|
|
313
|
+
}), et = (e) => l(_, {
|
|
314
314
|
get class() {
|
|
315
315
|
return e.class;
|
|
316
316
|
},
|
|
317
317
|
open: !0
|
|
318
|
-
}),
|
|
318
|
+
}), tt = (e) => l(_, {
|
|
319
319
|
get class() {
|
|
320
320
|
return e.class;
|
|
321
321
|
},
|
|
322
322
|
linkTargetType: "folder"
|
|
323
|
-
}),
|
|
323
|
+
}), nt = (e) => l(_, {
|
|
324
324
|
get class() {
|
|
325
325
|
return e.class;
|
|
326
326
|
},
|
|
327
327
|
open: !0,
|
|
328
328
|
linkTargetType: "folder"
|
|
329
|
-
}),
|
|
329
|
+
}), rt = (e) => l(_, {
|
|
330
330
|
get class() {
|
|
331
331
|
return e.class;
|
|
332
332
|
},
|
|
333
333
|
linkTargetType: "broken"
|
|
334
|
-
}),
|
|
334
|
+
}), ot = (e) => l(_, {
|
|
335
335
|
get class() {
|
|
336
336
|
return e.class;
|
|
337
337
|
},
|
|
338
338
|
open: !0,
|
|
339
339
|
linkTargetType: "broken"
|
|
340
|
-
}),
|
|
340
|
+
}), lt = (e) => l(E, {
|
|
341
341
|
get class() {
|
|
342
342
|
return e.class;
|
|
343
343
|
}
|
|
344
|
-
}),
|
|
344
|
+
}), st = (e) => l(E, {
|
|
345
345
|
get class() {
|
|
346
346
|
return e.class;
|
|
347
347
|
},
|
|
@@ -351,7 +351,7 @@ const E = (e) => {
|
|
|
351
351
|
targetType: "file"
|
|
352
352
|
});
|
|
353
353
|
}
|
|
354
|
-
}),
|
|
354
|
+
}), it = (e) => l(E, {
|
|
355
355
|
get class() {
|
|
356
356
|
return e.class;
|
|
357
357
|
},
|
|
@@ -362,7 +362,7 @@ const E = (e) => {
|
|
|
362
362
|
targetType: "broken"
|
|
363
363
|
});
|
|
364
364
|
}
|
|
365
|
-
}),
|
|
365
|
+
}), at = (e) => l(E, {
|
|
366
366
|
get class() {
|
|
367
367
|
return e.class;
|
|
368
368
|
},
|
|
@@ -370,8 +370,8 @@ const E = (e) => {
|
|
|
370
370
|
get children() {
|
|
371
371
|
return te();
|
|
372
372
|
}
|
|
373
|
-
}),
|
|
374
|
-
const t = () => Se[e.spec.tone], n = () =>
|
|
373
|
+
}), ct = (e) => {
|
|
374
|
+
const t = () => Se[e.spec.tone], n = () => Je(e.spec.label), d = () => e.spec.label.length > 3 ? "0.02em" : "0.04em";
|
|
375
375
|
return l(E, {
|
|
376
376
|
get class() {
|
|
377
377
|
return e.class;
|
|
@@ -382,8 +382,8 @@ const E = (e) => {
|
|
|
382
382
|
get children() {
|
|
383
383
|
var f = ne(), o = f.firstChild, s = o.nextSibling;
|
|
384
384
|
return h(s, () => e.spec.label), k((i) => {
|
|
385
|
-
var u = e.spec.label, v = e.spec.tone, a = t(),
|
|
386
|
-
return u !== i.e && c(f, "data-code-badge-label", i.e = u), v !== i.t && c(f, "data-code-badge-tone", i.t = v), a !== i.a && c(o, "fill", i.a = a),
|
|
385
|
+
var u = e.spec.label, v = e.spec.tone, a = t(), S = t(), p = t(), b = n(), y = d();
|
|
386
|
+
return u !== i.e && c(f, "data-code-badge-label", i.e = u), v !== i.t && c(f, "data-code-badge-tone", i.t = v), a !== i.a && c(o, "fill", i.a = a), S !== i.o && c(o, "stroke", i.o = S), p !== i.i && c(s, "fill", i.i = p), b !== i.n && c(s, "font-size", i.n = b), y !== i.s && F(s, "letter-spacing", i.s = y), i;
|
|
387
387
|
}, {
|
|
388
388
|
e: void 0,
|
|
389
389
|
t: void 0,
|
|
@@ -395,7 +395,7 @@ const E = (e) => {
|
|
|
395
395
|
}), f;
|
|
396
396
|
}
|
|
397
397
|
});
|
|
398
|
-
},
|
|
398
|
+
}, pt = x(O), bt = x(L), yt = x(w), ft = (e) => l(E, {
|
|
399
399
|
get class() {
|
|
400
400
|
return e.class;
|
|
401
401
|
},
|
|
@@ -403,15 +403,16 @@ const E = (e) => {
|
|
|
403
403
|
get children() {
|
|
404
404
|
return [re(), oe()];
|
|
405
405
|
}
|
|
406
|
-
}),
|
|
406
|
+
}), dt = (e) => l(E, {
|
|
407
407
|
get class() {
|
|
408
408
|
return e.class;
|
|
409
409
|
},
|
|
410
|
-
accent:
|
|
410
|
+
accent: _e,
|
|
411
411
|
get children() {
|
|
412
|
-
|
|
412
|
+
var t = le(), n = t.firstChild, d = n.nextSibling;
|
|
413
|
+
return d.nextSibling, t;
|
|
413
414
|
}
|
|
414
|
-
}),
|
|
415
|
+
}), gt = (e) => l(E, {
|
|
415
416
|
get class() {
|
|
416
417
|
return e.class;
|
|
417
418
|
},
|
|
@@ -419,7 +420,7 @@ const E = (e) => {
|
|
|
419
420
|
get children() {
|
|
420
421
|
return se();
|
|
421
422
|
}
|
|
422
|
-
}),
|
|
423
|
+
}), ut = (e) => l(E, {
|
|
423
424
|
get class() {
|
|
424
425
|
return e.class;
|
|
425
426
|
},
|
|
@@ -427,7 +428,7 @@ const E = (e) => {
|
|
|
427
428
|
get children() {
|
|
428
429
|
return [ie(), ae()];
|
|
429
430
|
}
|
|
430
|
-
}),
|
|
431
|
+
}), vt = (e) => l(E, {
|
|
431
432
|
get class() {
|
|
432
433
|
return e.class;
|
|
433
434
|
},
|
|
@@ -435,7 +436,7 @@ const E = (e) => {
|
|
|
435
436
|
get children() {
|
|
436
437
|
return ce();
|
|
437
438
|
}
|
|
438
|
-
}),
|
|
439
|
+
}), Et = (e) => l(E, {
|
|
439
440
|
get class() {
|
|
440
441
|
return e.class;
|
|
441
442
|
},
|
|
@@ -444,33 +445,33 @@ const E = (e) => {
|
|
|
444
445
|
return fe();
|
|
445
446
|
}
|
|
446
447
|
});
|
|
447
|
-
function
|
|
448
|
+
function ht(e) {
|
|
448
449
|
const t = V(e);
|
|
449
450
|
if (t) {
|
|
450
451
|
const n = B.get(t);
|
|
451
452
|
if (n)
|
|
452
|
-
return
|
|
453
|
+
return x(n);
|
|
453
454
|
}
|
|
454
|
-
return t && me.has(t) ?
|
|
455
|
+
return t && me.has(t) ? at : t && ge.has(t) ? ft : t && ue.has(t) ? dt : t && ve.has(t) ? gt : t && Ee.has(t) ? ut : t && he.has(t) ? vt : t && ke.has(t) ? Et : lt;
|
|
455
456
|
}
|
|
456
|
-
function
|
|
457
|
+
function kt(e, t) {
|
|
457
458
|
const n = e.link?.kind === "symbolic" ? e.link.targetType : void 0;
|
|
458
|
-
return n === "broken" ? t.open ?
|
|
459
|
+
return n === "broken" ? t.open ? ot : rt : n ? t.open ? nt : tt : t.open ? et : Ze;
|
|
459
460
|
}
|
|
460
|
-
function
|
|
461
|
+
function mt(e, t = {}) {
|
|
461
462
|
if (e.icon)
|
|
462
463
|
return e.icon;
|
|
463
464
|
if (e.type === "folder")
|
|
464
|
-
return
|
|
465
|
+
return kt(e, t);
|
|
465
466
|
if (e.link?.kind === "symbolic" && e.link.targetType === "broken")
|
|
466
|
-
return
|
|
467
|
+
return it;
|
|
467
468
|
if (e.link?.kind === "symbolic")
|
|
468
|
-
return
|
|
469
|
-
const n =
|
|
470
|
-
return n ?
|
|
469
|
+
return st;
|
|
470
|
+
const n = We(e);
|
|
471
|
+
return n ? x(n) : ht(X(e));
|
|
471
472
|
}
|
|
472
|
-
function
|
|
473
|
-
const t = () =>
|
|
473
|
+
function Ct(e) {
|
|
474
|
+
const t = () => mt(e.item, {
|
|
474
475
|
open: e.open
|
|
475
476
|
});
|
|
476
477
|
return l(C, {
|
|
@@ -496,24 +497,24 @@ function bt(e) {
|
|
|
496
497
|
});
|
|
497
498
|
}
|
|
498
499
|
export {
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
500
|
+
gt as AudioFileIcon,
|
|
501
|
+
it as BrokenSymlinkIcon,
|
|
502
|
+
at as CodeFileIcon,
|
|
503
|
+
vt as ConfigFileIcon,
|
|
504
|
+
ut as DocumentFileIcon,
|
|
505
|
+
lt as FileIcon,
|
|
506
|
+
Ct as FileItemIcon,
|
|
507
|
+
Ze as FolderIcon,
|
|
508
|
+
et as FolderOpenIcon,
|
|
509
|
+
ft as ImageFileIcon,
|
|
510
|
+
pt as JavaScriptFileIcon,
|
|
510
511
|
yt as ShellScriptFileIcon,
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
512
|
+
Et as StyleFileIcon,
|
|
513
|
+
st as SymlinkFileIcon,
|
|
514
|
+
tt as SymlinkFolderIcon,
|
|
515
|
+
nt as SymlinkFolderOpenIcon,
|
|
516
|
+
bt as TypeScriptFileIcon,
|
|
517
|
+
dt as VideoFileIcon,
|
|
518
|
+
ht as getFileIcon,
|
|
519
|
+
mt as resolveFileItemIcon
|
|
519
520
|
};
|