@floegence/floe-webapp-core 0.35.19 → 0.35.21

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,57 +1,393 @@
1
- import { effect as t, setAttribute as r, template as n } from "solid-js/web";
2
- import { createUniqueId as d } from "solid-js";
3
- var h = /* @__PURE__ */ n('<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-color:color-mix(in srgb, var(--warning) 80%, var(--foreground));stop-opacity:1"></stop></linearGradient></defs><path d="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">'), v = /* @__PURE__ */ n('<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-color:color-mix(in srgb, var(--warning) 70%, var(--foreground));stop-opacity:1"></stop></linearGradient></defs><path d="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"></path><path fill=var(--background) opacity=0.3 d="M3 8l4-3h14l-4 3H3z">'), u = /* @__PURE__ */ n('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path><polyline points="14 2 14 8 20 8">'), k = /* @__PURE__ */ n('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"><path fill=var(--info) opacity=0.2 d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z"></path><path fill=none stroke=var(--info) 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=var(--info) stroke-width=1.5 stroke-linecap=round stroke-linejoin=round points="14 2 14 8 20 8"></polyline><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">'), w = /* @__PURE__ */ n('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"><path fill=var(--success) opacity=0.2 d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z"></path><path fill=none stroke=var(--success) 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=var(--success) stroke-width=1.5 stroke-linecap=round stroke-linejoin=round points="14 2 14 8 20 8"></polyline><polyline fill=none stroke=var(--success) stroke-width=1.5 stroke-linecap=round stroke-linejoin=round points="8 13 11 15 8 17"></polyline><line x1=13 y1=17 x2=16.5 y2=17 stroke=var(--success) stroke-width=1.5 stroke-linecap=round>'), f = /* @__PURE__ */ n('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"><path fill=var(--success) opacity=0.2 d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z"></path><path fill=none stroke=var(--success) 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=var(--success) stroke-width=1.5 stroke-linecap=round stroke-linejoin=round points="14 2 14 8 20 8"></polyline><circle cx=10 cy=13 r=2 fill=var(--success)></circle><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">'), g = /* @__PURE__ */ n('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"><path fill=var(--error) opacity=0.2 d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z"></path><path fill=none stroke=var(--error) 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=var(--error) stroke-width=1.5 stroke-linecap=round stroke-linejoin=round points="14 2 14 8 20 8"></polyline><line x1=8 y1=13 x2=16 y2=13 stroke=var(--error) stroke-width=1.5 stroke-linecap=round></line><line x1=8 y1=17 x2=14 y2=17 stroke=var(--error) stroke-width=1.5 stroke-linecap=round>'), y = /* @__PURE__ */ n('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"><path fill=var(--warning) opacity=0.2 d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z"></path><path fill=none stroke=var(--warning) 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=var(--warning) stroke-width=1.5 stroke-linecap=round stroke-linejoin=round points="14 2 14 8 20 8"></polyline><path fill=none stroke=var(--warning) stroke-width=1.5 stroke-linecap=round stroke-linejoin=round d="M10 12v4h2m-2-4h2l2 4">'), x = /* @__PURE__ */ n('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"><path fill=var(--primary) opacity=0.2 d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6z"></path><path fill=none stroke=var(--primary) 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=var(--primary) stroke-width=1.5 stroke-linecap=round stroke-linejoin=round points="14 2 14 8 20 8"></polyline><path fill=none stroke=var(--primary) stroke-width=1.5 stroke-linecap=round stroke-linejoin=round d="M9 14h6m-3-3v6">');
4
- const b = (e) => {
5
- const l = `floe-folder-gradient-${d()}`;
1
+ import { createComponent as d, Dynamic as R, insert as h, effect as E, className as z, setAttribute as i, template as f, setStyleProperty as H } from "solid-js/web";
2
+ import { Show as y, createUniqueId as P } from "solid-js";
3
+ var V = /* @__PURE__ */ f('<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), X = /* @__PURE__ */ f('<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">'), Y = /* @__PURE__ */ f('<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-color:color-mix(in srgb, var(--warning) 80%, var(--foreground));stop-opacity:1"></stop></linearGradient></defs><path d="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">'), q = /* @__PURE__ */ f('<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-color:color-mix(in srgb, var(--warning) 70%, var(--foreground));stop-opacity:1"></stop></linearGradient></defs><path d="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"></path><path fill=var(--background) opacity=0.3 d="M3 8l4-3h14l-4 3H3z">'), K = /* @__PURE__ */ f('<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), U = /* @__PURE__ */ f('<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, &quot;Liberation Mono&quot;, &quot;Courier New&quot;, monospace"></svg>', !1, !0, !1), W = /* @__PURE__ */ f("<svg><circle cx=10 cy=13 r=2 fill=var(--success)></svg>", !1, !0, !1), J = /* @__PURE__ */ f('<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), Q = /* @__PURE__ */ f("<svg><line x1=8 y1=13 x2=16 y2=13 stroke=var(--error) stroke-width=1.5 stroke-linecap=round></svg>", !1, !0, !1), Z = /* @__PURE__ */ f("<svg><line x1=8 y1=17 x2=14 y2=17 stroke=var(--error) stroke-width=1.5 stroke-linecap=round></svg>", !1, !0, !1), ee = /* @__PURE__ */ f('<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), te = /* @__PURE__ */ f('<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), ne = /* @__PURE__ */ f("<span>");
4
+ const re = /* @__PURE__ */ new Set(["png", "jpg", "jpeg", "gif", "svg", "webp", "ico", "bmp"]), oe = /* @__PURE__ */ new Set(["pdf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt", "md", "rtf"]), se = /* @__PURE__ */ new Set(["json", "yaml", "yml", "toml", "xml", "ini", "env", "config", "cfg", "conf", "properties"]), le = /* @__PURE__ */ new Set(["css", "scss", "sass", "less", "styl"]), ae = /* @__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"]), ie = {
5
+ warning: "var(--warning)",
6
+ primary: "var(--primary)",
7
+ info: "var(--info)",
8
+ success: "var(--success)",
9
+ error: "var(--error)",
10
+ neutral: "color-mix(in srgb, var(--foreground) 70%, var(--background))"
11
+ }, G = {
12
+ label: "JS",
13
+ tone: "warning"
14
+ }, I = {
15
+ label: "TS",
16
+ tone: "primary"
17
+ }, S = {
18
+ label: "SH",
19
+ tone: "success"
20
+ }, ce = {
21
+ label: "PY",
22
+ tone: "info"
23
+ }, k = {
24
+ label: "RB",
25
+ tone: "error"
26
+ }, fe = {
27
+ label: "GO",
28
+ tone: "info"
29
+ }, de = {
30
+ label: "RS",
31
+ tone: "error"
32
+ }, ge = {
33
+ label: "JAVA",
34
+ tone: "warning"
35
+ }, ue = {
36
+ label: "KT",
37
+ tone: "primary"
38
+ }, Ee = {
39
+ label: "SC",
40
+ tone: "error"
41
+ }, _e = {
42
+ label: "C",
43
+ tone: "neutral"
44
+ }, ve = {
45
+ label: "C++",
46
+ tone: "neutral"
47
+ }, he = {
48
+ label: "C#",
49
+ tone: "primary"
50
+ }, pe = {
51
+ label: "F#",
52
+ tone: "info"
53
+ }, Se = {
54
+ label: "PHP",
55
+ tone: "primary"
56
+ }, me = {
57
+ label: "PL",
58
+ tone: "info"
59
+ }, Ce = {
60
+ label: "SW",
61
+ tone: "error"
62
+ }, be = {
63
+ label: "LUA",
64
+ tone: "warning"
65
+ }, Ae = {
66
+ label: "DART",
67
+ tone: "info"
68
+ }, xe = {
69
+ label: "R",
70
+ tone: "info"
71
+ }, Be = {
72
+ label: "SQL",
73
+ tone: "warning"
74
+ }, we = {
75
+ label: "GQL",
76
+ tone: "primary"
77
+ }, F = {
78
+ label: "GRV",
79
+ tone: "success"
80
+ }, De = {
81
+ label: "HTML",
82
+ tone: "warning"
83
+ }, ye = {
84
+ label: "VUE",
85
+ tone: "success"
86
+ }, Pe = {
87
+ label: "SVE",
88
+ tone: "error"
89
+ }, Ge = {
90
+ label: "AST",
91
+ tone: "warning"
92
+ }, Ie = {
93
+ label: "MDX",
94
+ tone: "primary"
95
+ }, p = {
96
+ label: "DKR",
97
+ tone: "info"
98
+ }, ke = {
99
+ label: "MAKE",
100
+ tone: "warning"
101
+ }, O = {
102
+ label: "CMK",
103
+ tone: "primary"
104
+ }, Fe = {
105
+ label: "PS",
106
+ tone: "primary"
107
+ }, Oe = {
108
+ label: "BAT",
109
+ tone: "neutral"
110
+ }, m = /* @__PURE__ */ new Map(), L = /* @__PURE__ */ new Map(), M = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map();
111
+ r(G, ["js", "jsx", "mjs", "cjs"]);
112
+ r(I, ["ts", "tsx", "mts", "cts"]);
113
+ r(S, ["sh", "bash", "zsh", "fish", "ksh", "csh"]);
114
+ r(ce, ["py", "pyi", "pyw"]);
115
+ r(k, ["rb", "rake", "gemspec", "erb"]);
116
+ r(fe, ["go"]);
117
+ r(de, ["rs"]);
118
+ r(ge, ["java"]);
119
+ r(ue, ["kt", "kts"]);
120
+ r(Ee, ["scala", "sc"]);
121
+ r(_e, ["c", "h"]);
122
+ r(ve, ["cc", "cp", "cpp", "cxx", "hh", "hpp", "hxx"]);
123
+ r(he, ["cs"]);
124
+ r(pe, ["fs", "fsi", "fsx"]);
125
+ r(Se, ["php", "phtml"]);
126
+ r(me, ["pl", "pm"]);
127
+ r(Ce, ["swift"]);
128
+ r(be, ["lua"]);
129
+ r(Ae, ["dart"]);
130
+ r(xe, ["r"]);
131
+ r(Be, ["sql"]);
132
+ r(we, ["graphql", "gql"]);
133
+ r(F, ["groovy", "gradle", "gvy"]);
134
+ r(De, ["html", "htm", "xhtml"]);
135
+ r(ye, ["vue"]);
136
+ r(Pe, ["svelte"]);
137
+ r(Ge, ["astro"]);
138
+ r(Ie, ["mdx"]);
139
+ r(Fe, ["ps1", "psd1", "psm1"]);
140
+ r(Oe, ["bat", "cmd"]);
141
+ r(p, ["dockerfile", "containerfile"]);
142
+ r(O, ["cmake"]);
143
+ _(p, ["dockerfile", "containerfile"]);
144
+ _(ke, ["makefile", "gnumakefile", "justfile"]);
145
+ _(O, ["cmakelists.txt"]);
146
+ _(S, [".bashrc", ".bash_profile", ".bash_aliases", ".profile", ".zshrc", ".zprofile", ".zshenv", ".zlogin", ".zlogout", ".kshrc", ".cshrc", ".tcshrc", ".envrc"]);
147
+ _(k, ["gemfile", "rakefile", "podfile", "fastfile", "appfile", "brewfile", "vagrantfile"]);
148
+ _(F, ["jenkinsfile"]);
149
+ Le(p, ["dockerfile.", "containerfile."]);
150
+ Me(p, [".dockerfile", ".containerfile"]);
151
+ function r(e, t) {
152
+ for (const n of t)
153
+ m.set(n, e);
154
+ }
155
+ function _(e, t) {
156
+ for (const n of t)
157
+ L.set(n, e);
158
+ }
159
+ function Le(e, t) {
160
+ for (const n of t)
161
+ M.set(n, e);
162
+ }
163
+ function Me(e, t) {
164
+ for (const n of t)
165
+ T.set(n, e);
166
+ }
167
+ function $(e) {
168
+ const t = e?.trim().toLowerCase();
169
+ if (t)
170
+ return t.startsWith(".") ? t.slice(1) : t;
171
+ }
172
+ function j(e) {
173
+ const t = e?.trim();
174
+ if (!t)
175
+ return;
176
+ const n = t.split(/[\\/]/);
177
+ return n[n.length - 1]?.toLowerCase();
178
+ }
179
+ function Te(e) {
180
+ const t = j(e);
181
+ if (!t)
182
+ return;
183
+ const n = t.lastIndexOf(".");
184
+ if (!(n <= 0 || n === t.length - 1))
185
+ return t.slice(n + 1);
186
+ }
187
+ function N(e) {
188
+ return $(e.extension) ?? Te(e.name);
189
+ }
190
+ function $e(e) {
191
+ const t = j(e.name);
192
+ if (t) {
193
+ const l = L.get(t);
194
+ if (l)
195
+ return l;
196
+ for (const [c, o] of M)
197
+ if (t.startsWith(c))
198
+ return o;
199
+ for (const [c, o] of T)
200
+ if (t.endsWith(c))
201
+ return o;
202
+ }
203
+ const n = N(e);
204
+ return n ? m.get(n) : void 0;
205
+ }
206
+ function je(e) {
207
+ return e.length <= 2 ? "6.2" : e.length === 3 ? "5.3" : e.length === 4 ? "4.5" : "4";
208
+ }
209
+ function Ne(e) {
210
+ return (t) => d(Ve, {
211
+ get class() {
212
+ return t.class;
213
+ },
214
+ spec: e
215
+ });
216
+ }
217
+ function v(e) {
218
+ const t = `${e.tone}:${e.label}`, n = D.get(t);
219
+ if (n)
220
+ return n;
221
+ const l = Ne(e);
222
+ return D.set(t, l), l;
223
+ }
224
+ const u = (e) => {
225
+ const t = () => e.accent ?? "currentColor";
6
226
  return (() => {
7
- var s = h(), i = s.firstChild, a = i.firstChild, p = a.firstChild;
8
- p.nextSibling;
9
- var c = i.nextSibling;
10
- return r(a, "id", l), r(c, "fill", `url(#${l})`), t(() => r(s, "class", e.class)), s;
227
+ var n = X(), l = n.firstChild, c = l.nextSibling;
228
+ return h(n, d(y, {
229
+ get when() {
230
+ return e.accent;
231
+ },
232
+ get children() {
233
+ var o = V();
234
+ return E((a) => {
235
+ var s = t(), g = e.fillOpacity ?? 0.18;
236
+ return s !== a.e && i(o, "fill", a.e = s), g !== a.t && i(o, "opacity", a.t = g), a;
237
+ }, {
238
+ e: void 0,
239
+ t: void 0
240
+ }), o;
241
+ }
242
+ }), l), h(n, () => e.children, null), E((o) => {
243
+ var a = e.class, s = t(), g = t();
244
+ return a !== o.e && i(n, "class", o.e = a), s !== o.t && i(l, "stroke", o.t = s), g !== o.a && i(c, "stroke", o.a = g), o;
245
+ }, {
246
+ e: void 0,
247
+ t: void 0,
248
+ a: void 0
249
+ }), n;
11
250
  })();
12
- }, C = (e) => {
13
- const l = `floe-folder-open-gradient-${d()}`;
251
+ }, Re = (e) => {
252
+ const n = `floe-folder-gradient-${P()}`;
14
253
  return (() => {
15
- var s = v(), i = s.firstChild, a = i.firstChild, p = a.firstChild;
16
- p.nextSibling;
17
- var c = i.nextSibling;
18
- return r(a, "id", l), r(c, "fill", `url(#${l})`), t(() => r(s, "class", e.class)), s;
254
+ var l = Y(), c = l.firstChild, o = c.firstChild, a = o.firstChild;
255
+ a.nextSibling;
256
+ var s = c.nextSibling;
257
+ return i(o, "id", n), i(s, "fill", `url(#${n})`), E(() => i(l, "class", e.class)), l;
19
258
  })();
20
- }, m = (e) => (() => {
21
- var o = u();
22
- return t(() => r(o, "class", e.class)), o;
23
- })(), $ = (e) => (() => {
24
- var o = k();
25
- return t(() => r(o, "class", e.class)), o;
26
- })(), _ = (e) => (() => {
27
- var o = w();
28
- return t(() => r(o, "class", e.class)), o;
29
- })(), j = (e) => (() => {
30
- var o = f();
31
- return t(() => r(o, "class", e.class)), o;
32
- })(), z = (e) => (() => {
33
- var o = g();
34
- return t(() => r(o, "class", e.class)), o;
35
- })(), I = (e) => (() => {
36
- var o = y();
37
- return t(() => r(o, "class", e.class)), o;
38
- })(), M = (e) => (() => {
39
- var o = x();
40
- return t(() => r(o, "class", e.class)), o;
41
- })();
42
- function F(e) {
43
- const o = e?.toLowerCase();
44
- return ["sh", "bash", "zsh", "fish", "ksh", "csh"].includes(o ?? "") ? _ : ["ts", "tsx", "js", "jsx", "py", "rb", "go", "rs", "java", "c", "cpp", "h", "hpp", "vue", "svelte"].includes(o ?? "") ? $ : ["png", "jpg", "jpeg", "gif", "svg", "webp", "ico", "bmp"].includes(o ?? "") ? j : ["pdf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt", "md", "rtf"].includes(o ?? "") ? z : ["json", "yaml", "yml", "toml", "xml", "ini", "env", "config"].includes(o ?? "") ? I : ["css", "scss", "sass", "less", "styl"].includes(o ?? "") ? M : m;
259
+ }, Ze = (e) => {
260
+ const n = `floe-folder-open-gradient-${P()}`;
261
+ return (() => {
262
+ var l = q(), c = l.firstChild, o = c.firstChild, a = o.firstChild;
263
+ a.nextSibling;
264
+ var s = c.nextSibling;
265
+ return i(o, "id", n), i(s, "fill", `url(#${n})`), E(() => i(l, "class", e.class)), l;
266
+ })();
267
+ }, ze = (e) => d(u, {
268
+ get class() {
269
+ return e.class;
270
+ }
271
+ }), He = (e) => d(u, {
272
+ get class() {
273
+ return e.class;
274
+ },
275
+ accent: "var(--info)",
276
+ get children() {
277
+ return K();
278
+ }
279
+ }), Ve = (e) => {
280
+ const t = () => ie[e.spec.tone], n = () => je(e.spec.label), l = () => e.spec.label.length > 3 ? "0.02em" : "0.04em";
281
+ return d(u, {
282
+ get class() {
283
+ return e.class;
284
+ },
285
+ get accent() {
286
+ return t();
287
+ },
288
+ get children() {
289
+ var c = U(), o = c.firstChild, a = o.nextSibling;
290
+ return h(a, () => e.spec.label), E((s) => {
291
+ var g = e.spec.label, C = e.spec.tone, b = t(), A = t(), x = t(), B = n(), w = l();
292
+ return g !== s.e && i(c, "data-code-badge-label", s.e = g), C !== s.t && i(c, "data-code-badge-tone", s.t = C), b !== s.a && i(o, "fill", s.a = b), A !== s.o && i(o, "stroke", s.o = A), x !== s.i && i(a, "fill", s.i = x), B !== s.n && i(a, "font-size", s.n = B), w !== s.s && H(a, "letter-spacing", s.s = w), s;
293
+ }, {
294
+ e: void 0,
295
+ t: void 0,
296
+ a: void 0,
297
+ o: void 0,
298
+ i: void 0,
299
+ n: void 0,
300
+ s: void 0
301
+ }), c;
302
+ }
303
+ });
304
+ }, et = v(G), tt = v(I), nt = v(S), Xe = (e) => d(u, {
305
+ get class() {
306
+ return e.class;
307
+ },
308
+ accent: "var(--success)",
309
+ get children() {
310
+ return [W(), J()];
311
+ }
312
+ }), Ye = (e) => d(u, {
313
+ get class() {
314
+ return e.class;
315
+ },
316
+ accent: "var(--error)",
317
+ get children() {
318
+ return [Q(), Z()];
319
+ }
320
+ }), qe = (e) => d(u, {
321
+ get class() {
322
+ return e.class;
323
+ },
324
+ accent: "var(--warning)",
325
+ get children() {
326
+ return ee();
327
+ }
328
+ }), Ke = (e) => d(u, {
329
+ get class() {
330
+ return e.class;
331
+ },
332
+ accent: "var(--primary)",
333
+ get children() {
334
+ return te();
335
+ }
336
+ });
337
+ function Ue(e) {
338
+ const t = $(e);
339
+ if (t) {
340
+ const n = m.get(t);
341
+ if (n)
342
+ return v(n);
343
+ }
344
+ return t && ae.has(t) ? He : t && re.has(t) ? Xe : t && oe.has(t) ? Ye : t && se.has(t) ? qe : t && le.has(t) ? Ke : ze;
345
+ }
346
+ function We(e) {
347
+ if (e.type === "folder")
348
+ return Re;
349
+ if (e.icon)
350
+ return e.icon;
351
+ const t = $e(e);
352
+ return t ? v(t) : Ue(N(e));
353
+ }
354
+ function rt(e) {
355
+ const t = () => We(e.item);
356
+ return d(y, {
357
+ get when() {
358
+ return typeof t() == "function";
359
+ },
360
+ get fallback() {
361
+ return (() => {
362
+ var n = ne();
363
+ return h(n, () => t()), E(() => z(n, `inline-flex items-center justify-center ${e.class ?? ""}`.trim())), n;
364
+ })();
365
+ },
366
+ get children() {
367
+ return d(R, {
368
+ get component() {
369
+ return t();
370
+ },
371
+ get class() {
372
+ return e.class;
373
+ }
374
+ });
375
+ }
376
+ });
45
377
  }
46
378
  export {
47
- $ as CodeFileIcon,
48
- I as ConfigFileIcon,
49
- z as DocumentFileIcon,
50
- m as FileIcon,
51
- b as FolderIcon,
52
- C as FolderOpenIcon,
53
- j as ImageFileIcon,
54
- _ as ShellScriptFileIcon,
55
- M as StyleFileIcon,
56
- F as getFileIcon
379
+ He as CodeFileIcon,
380
+ qe as ConfigFileIcon,
381
+ Ye as DocumentFileIcon,
382
+ ze as FileIcon,
383
+ rt as FileItemIcon,
384
+ Re as FolderIcon,
385
+ Ze as FolderOpenIcon,
386
+ Xe as ImageFileIcon,
387
+ et as JavaScriptFileIcon,
388
+ nt as ShellScriptFileIcon,
389
+ Ke as StyleFileIcon,
390
+ tt as TypeScriptFileIcon,
391
+ Ue as getFileIcon,
392
+ We as resolveFileItemIcon
57
393
  };