@floegence/floe-webapp-core 0.53.1 → 0.53.3

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,13 +1,13 @@
1
- import { createComponent as l, Dynamic as q, insert as E, effect as k, className as K, setAttribute as c, template as d, setStyleProperty as F } from "solid-js/web";
2
- import { Show as C, createUniqueId as W } from "solid-js";
1
+ import { createComponent as i, Dynamic as q, insert as E, effect as k, className as K, setAttribute as c, template as d, setStyleProperty as F } from "solid-js/web";
2
+ import { Show as w, createUniqueId as W } from "solid-js";
3
3
  import { classifyArchiveFileName as O } from "./archiveFiles.js";
4
- var J = /* @__PURE__ */ d('<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), Q = /* @__PURE__ */ d('<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">'), Z = /* @__PURE__ */ d('<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), ee = /* @__PURE__ */ d('<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), te = /* @__PURE__ */ d('<svg><path fill=var(--background) opacity=0.3 d="M3 8l4-3h14l-4 3H3z"></svg>', !1, !0, !1), ne = /* @__PURE__ */ d('<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>'), re = /* @__PURE__ */ d('<svg><g data-file-icon-kind=archive><path d="M10 9.75h4M10 12.25h4M10 14.75h4"fill=none stroke=var(--warning) stroke-width=1.35 stroke-linecap=round></path><rect x=9.25 y=17 width=5.5 height=2.25 rx=0.7 fill=var(--warning) opacity=0.18 stroke=var(--warning) stroke-width=1></svg>', !1, !0, !1), oe = /* @__PURE__ */ d('<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), le = /* @__PURE__ */ d('<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), ie = /* @__PURE__ */ d("<svg><circle cx=10 cy=13 r=2 fill=var(--success)></svg>", !1, !0, !1), se = /* @__PURE__ */ d('<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), ae = /* @__PURE__ */ d('<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), ce = /* @__PURE__ */ d('<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), fe = /* @__PURE__ */ d("<svg><line x1=8 y1=13 x2=16 y2=13 stroke=var(--error) stroke-width=1.5 stroke-linecap=round></svg>", !1, !0, !1), ge = /* @__PURE__ */ d("<svg><line x1=8 y1=17 x2=14 y2=17 stroke=var(--error) stroke-width=1.5 stroke-linecap=round></svg>", !1, !0, !1), de = /* @__PURE__ */ d('<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), ue = /* @__PURE__ */ d('<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), ve = /* @__PURE__ */ d("<span>");
5
- const he = /* @__PURE__ */ new Set(["png", "jpg", "jpeg", "gif", "svg", "webp", "ico", "bmp"]), Ee = /* @__PURE__ */ new Set(["mp4", "webm", "mov", "m4v", "ogv", "mkv"]), ke = /* @__PURE__ */ new Set(["mp3", "m4a", "aac", "wav", "ogg", "oga", "opus", "flac"]), me = /* @__PURE__ */ new Set(["pdf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt", "md", "rtf"]), _e = /* @__PURE__ */ new Set(["json", "yaml", "yml", "toml", "xml", "ini", "env", "config", "cfg", "conf", "properties"]), Se = /* @__PURE__ */ new Set(["css", "scss", "sass", "less", "styl"]), pe = /* @__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"]), be = "color-mix(in srgb, #8b5cf6 86%, var(--foreground))", ye = {
6
- warning: "var(--warning)",
7
- primary: "var(--primary)",
8
- info: "var(--info)",
9
- success: "var(--success)",
10
- error: "var(--error)",
4
+ var J = /* @__PURE__ */ d('<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), Q = /* @__PURE__ */ d('<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">'), Z = /* @__PURE__ */ d('<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), ee = /* @__PURE__ */ d('<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), ne = /* @__PURE__ */ d('<svg><path fill=var(--background) opacity=0.3 d="M3 8l4-3h14l-4 3H3z"></svg>', !1, !0, !1), re = /* @__PURE__ */ d('<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(--floe-file-icon-warning, var(--warning));stop-opacity:1"></stop><stop offset=100% style=stop-opacity:1></stop></linearGradient></defs><path>'), te = /* @__PURE__ */ d('<svg><g data-file-icon-kind=archive><path d="M10 9.75h4M10 12.25h4M10 14.75h4"fill=none stroke="var(--floe-file-icon-warning, var(--warning))"stroke-width=1.35 stroke-linecap=round></path><rect x=9.25 y=17 width=5.5 height=2.25 rx=0.7 fill="var(--floe-file-icon-warning, var(--warning))"opacity=0.18 stroke="var(--floe-file-icon-warning, var(--warning))"stroke-width=1></svg>', !1, !0, !1), oe = /* @__PURE__ */ d('<svg><path fill=none stroke="var(--floe-file-icon-info, 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), ie = /* @__PURE__ */ d('<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), le = /* @__PURE__ */ d('<svg><circle cx=10 cy=13 r=2 fill="var(--floe-file-icon-success, var(--success))"></svg>', !1, !0, !1), ae = /* @__PURE__ */ d('<svg><path fill=none stroke="var(--floe-file-icon-success, 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), se = /* @__PURE__ */ d('<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), ce = /* @__PURE__ */ d('<svg><g data-file-icon-kind=audio><path fill=none stroke="var(--floe-file-icon-info, 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(--floe-file-icon-info, var(--info))"opacity=0.2 stroke="var(--floe-file-icon-info, var(--info))"stroke-width=1.1></ellipse><ellipse cx=13.7 cy=16 rx=1.75 ry=1.25 fill="var(--floe-file-icon-info, var(--info))"opacity=0.2 stroke="var(--floe-file-icon-info, var(--info))"stroke-width=1.1></svg>', !1, !0, !1), fe = /* @__PURE__ */ d('<svg><line x1=8 y1=13 x2=16 y2=13 stroke="var(--floe-file-icon-error, var(--error))"stroke-width=1.5 stroke-linecap=round></svg>', !1, !0, !1), ge = /* @__PURE__ */ d('<svg><line x1=8 y1=17 x2=14 y2=17 stroke="var(--floe-file-icon-error, var(--error))"stroke-width=1.5 stroke-linecap=round></svg>', !1, !0, !1), de = /* @__PURE__ */ d('<svg><path fill=none stroke="var(--floe-file-icon-warning, var(--warning))"stroke-width=1.5 stroke-linecap=round stroke-linejoin=round d="M10 12v4h2m-2-4h2l2 4"></svg>', !1, !0, !1), ve = /* @__PURE__ */ d('<svg><path fill=none stroke="var(--floe-file-icon-primary, var(--primary))"stroke-width=1.5 stroke-linecap=round stroke-linejoin=round d="M9 14h6m-3-3v6"></svg>', !1, !0, !1), ue = /* @__PURE__ */ d("<span>");
5
+ const he = /* @__PURE__ */ new Set(["png", "jpg", "jpeg", "gif", "svg", "webp", "ico", "bmp"]), Ee = /* @__PURE__ */ new Set(["mp4", "webm", "mov", "m4v", "ogv", "mkv"]), ke = /* @__PURE__ */ new Set(["mp3", "m4a", "aac", "wav", "ogg", "oga", "opus", "flac"]), me = /* @__PURE__ */ new Set(["pdf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt", "md", "rtf"]), _e = /* @__PURE__ */ new Set(["json", "yaml", "yml", "toml", "xml", "ini", "env", "config", "cfg", "conf", "properties"]), Se = /* @__PURE__ */ new Set(["css", "scss", "sass", "less", "styl"]), pe = /* @__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"]), ye = "color-mix(in srgb, #8b5cf6 86%, var(--foreground))", be = {
6
+ warning: "var(--floe-file-icon-warning, var(--warning))",
7
+ primary: "var(--floe-file-icon-primary, var(--primary))",
8
+ info: "var(--floe-file-icon-info, var(--info))",
9
+ success: "var(--floe-file-icon-success, var(--success))",
10
+ error: "var(--floe-file-icon-error, var(--error))",
11
11
  neutral: "color-mix(in srgb, var(--foreground) 70%, var(--background))"
12
12
  }, M = {
13
13
  label: "JS",
@@ -18,16 +18,16 @@ const he = /* @__PURE__ */ new Set(["png", "jpg", "jpeg", "gif", "svg", "webp",
18
18
  }, A = {
19
19
  label: "SH",
20
20
  tone: "success"
21
- }, Ce = {
21
+ }, we = {
22
22
  label: "PY",
23
23
  tone: "info"
24
24
  }, N = {
25
25
  label: "RB",
26
26
  tone: "error"
27
- }, xe = {
27
+ }, Ce = {
28
28
  label: "GO",
29
29
  tone: "info"
30
- }, we = {
30
+ }, xe = {
31
31
  label: "RS",
32
32
  tone: "error"
33
33
  }, Ae = {
@@ -93,7 +93,7 @@ const he = /* @__PURE__ */ new Set(["png", "jpg", "jpeg", "gif", "svg", "webp",
93
93
  }, Ue = {
94
94
  label: "MDX",
95
95
  tone: "primary"
96
- }, w = {
96
+ }, x = {
97
97
  label: "DKR",
98
98
  tone: "info"
99
99
  }, Ye = {
@@ -109,162 +109,162 @@ const he = /* @__PURE__ */ new Set(["png", "jpg", "jpeg", "gif", "svg", "webp",
109
109
  label: "BAT",
110
110
  tone: "neutral"
111
111
  }, B = /* @__PURE__ */ new Map(), z = /* @__PURE__ */ new Map(), $ = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), G = /* @__PURE__ */ new Map();
112
- r(M, ["js", "jsx", "mjs", "cjs"]);
113
- r(L, ["ts", "tsx", "mts", "cts"]);
114
- r(A, ["sh", "bash", "zsh", "fish", "ksh", "csh"]);
115
- r(Ce, ["py", "pyi", "pyw"]);
116
- r(N, ["rb", "rake", "gemspec", "erb"]);
117
- r(xe, ["go"]);
118
- r(we, ["rs"]);
119
- r(Ae, ["java"]);
120
- r(Be, ["kt", "kts"]);
121
- r(Te, ["scala", "sc"]);
122
- r(Ie, ["c", "h"]);
123
- r(De, ["cc", "cp", "cpp", "cxx", "hh", "hpp", "hxx"]);
124
- r(Pe, ["cs"]);
125
- r(Ge, ["fs", "fsi", "fsx"]);
126
- r(Fe, ["php", "phtml"]);
127
- r(Oe, ["pl", "pm"]);
128
- r(Me, ["swift"]);
129
- r(Le, ["lua"]);
130
- r(Ne, ["dart"]);
131
- r(je, ["r"]);
132
- r(Re, ["sql"]);
133
- r(ze, ["graphql", "gql"]);
134
- r(j, ["groovy", "gradle", "gvy"]);
135
- r($e, ["html", "htm", "xhtml"]);
136
- r(He, ["vue"]);
137
- r(Ve, ["svelte"]);
138
- r(Xe, ["astro"]);
139
- r(Ue, ["mdx"]);
140
- r(qe, ["ps1", "psd1", "psm1"]);
141
- r(Ke, ["bat", "cmd"]);
142
- r(w, ["dockerfile", "containerfile"]);
143
- r(R, ["cmake"]);
144
- m(w, ["dockerfile", "containerfile"]);
112
+ t(M, ["js", "jsx", "mjs", "cjs"]);
113
+ t(L, ["ts", "tsx", "mts", "cts"]);
114
+ t(A, ["sh", "bash", "zsh", "fish", "ksh", "csh"]);
115
+ t(we, ["py", "pyi", "pyw"]);
116
+ t(N, ["rb", "rake", "gemspec", "erb"]);
117
+ t(Ce, ["go"]);
118
+ t(xe, ["rs"]);
119
+ t(Ae, ["java"]);
120
+ t(Be, ["kt", "kts"]);
121
+ t(Te, ["scala", "sc"]);
122
+ t(Ie, ["c", "h"]);
123
+ t(De, ["cc", "cp", "cpp", "cxx", "hh", "hpp", "hxx"]);
124
+ t(Pe, ["cs"]);
125
+ t(Ge, ["fs", "fsi", "fsx"]);
126
+ t(Fe, ["php", "phtml"]);
127
+ t(Oe, ["pl", "pm"]);
128
+ t(Me, ["swift"]);
129
+ t(Le, ["lua"]);
130
+ t(Ne, ["dart"]);
131
+ t(je, ["r"]);
132
+ t(Re, ["sql"]);
133
+ t(ze, ["graphql", "gql"]);
134
+ t(j, ["groovy", "gradle", "gvy"]);
135
+ t($e, ["html", "htm", "xhtml"]);
136
+ t(He, ["vue"]);
137
+ t(Ve, ["svelte"]);
138
+ t(Xe, ["astro"]);
139
+ t(Ue, ["mdx"]);
140
+ t(qe, ["ps1", "psd1", "psm1"]);
141
+ t(Ke, ["bat", "cmd"]);
142
+ t(x, ["dockerfile", "containerfile"]);
143
+ t(R, ["cmake"]);
144
+ m(x, ["dockerfile", "containerfile"]);
145
145
  m(Ye, ["makefile", "gnumakefile", "justfile"]);
146
146
  m(R, ["cmakelists.txt"]);
147
147
  m(A, [".bashrc", ".bash_profile", ".bash_aliases", ".profile", ".zshrc", ".zprofile", ".zshenv", ".zlogin", ".zlogout", ".kshrc", ".cshrc", ".tcshrc", ".envrc"]);
148
148
  m(N, ["gemfile", "rakefile", "podfile", "fastfile", "appfile", "brewfile", "vagrantfile"]);
149
149
  m(j, ["jenkinsfile"]);
150
- We(w, ["dockerfile.", "containerfile."]);
151
- Je(w, [".dockerfile", ".containerfile"]);
152
- function r(e, t) {
153
- for (const n of t)
154
- B.set(n, e);
150
+ We(x, ["dockerfile.", "containerfile."]);
151
+ Je(x, [".dockerfile", ".containerfile"]);
152
+ function t(e, n) {
153
+ for (const r of n)
154
+ B.set(r, e);
155
155
  }
156
- function m(e, t) {
157
- for (const n of t)
158
- z.set(n, e);
156
+ function m(e, n) {
157
+ for (const r of n)
158
+ z.set(r, e);
159
159
  }
160
- function We(e, t) {
161
- for (const n of t)
162
- $.set(n, e);
160
+ function We(e, n) {
161
+ for (const r of n)
162
+ $.set(r, e);
163
163
  }
164
- function Je(e, t) {
165
- for (const n of t)
166
- H.set(n, e);
164
+ function Je(e, n) {
165
+ for (const r of n)
166
+ H.set(r, e);
167
167
  }
168
168
  function V(e) {
169
- const t = e?.trim().toLowerCase();
170
- if (t)
171
- return t.startsWith(".") ? t.slice(1) : t;
169
+ const n = e?.trim().toLowerCase();
170
+ if (n)
171
+ return n.startsWith(".") ? n.slice(1) : n;
172
172
  }
173
173
  function X(e) {
174
- const t = e?.trim();
175
- if (!t)
174
+ const n = e?.trim();
175
+ if (!n)
176
176
  return;
177
- const n = t.split(/[\\/]/);
178
- return n[n.length - 1]?.toLowerCase();
177
+ const r = n.split(/[\\/]/);
178
+ return r[r.length - 1]?.toLowerCase();
179
179
  }
180
180
  function Qe(e) {
181
- const t = X(e);
182
- if (!t)
181
+ const n = X(e);
182
+ if (!n)
183
183
  return;
184
- const n = t.lastIndexOf(".");
185
- if (!(n <= 0 || n === t.length - 1))
186
- return t.slice(n + 1);
184
+ const r = n.lastIndexOf(".");
185
+ if (!(r <= 0 || r === n.length - 1))
186
+ return n.slice(r + 1);
187
187
  }
188
188
  function U(e) {
189
189
  return V(e.extension) ?? Qe(e.name);
190
190
  }
191
191
  function Ze(e) {
192
- const t = X(e.name);
193
- if (t) {
194
- const g = z.get(t);
192
+ const n = X(e.name);
193
+ if (n) {
194
+ const g = z.get(n);
195
195
  if (g)
196
196
  return g;
197
197
  for (const [f, o] of $)
198
- if (t.startsWith(f))
198
+ if (n.startsWith(f))
199
199
  return o;
200
200
  for (const [f, o] of H)
201
- if (t.endsWith(f))
201
+ if (n.endsWith(f))
202
202
  return o;
203
203
  }
204
- const n = U(e);
205
- return n ? B.get(n) : void 0;
204
+ const r = U(e);
205
+ return r ? B.get(r) : void 0;
206
206
  }
207
- function et(e) {
207
+ function en(e) {
208
208
  return e.length <= 2 ? "6.2" : e.length === 3 ? "5.3" : e.length === 4 ? "4.5" : "4";
209
209
  }
210
- function tt(e) {
211
- return (t) => l(dt, {
210
+ function nn(e) {
211
+ return (n) => i(vn, {
212
212
  get class() {
213
- return t.class;
213
+ return n.class;
214
214
  },
215
215
  spec: e
216
216
  });
217
217
  }
218
- function x(e) {
219
- const t = `${e.tone}:${e.label}`, n = G.get(t);
220
- if (n)
221
- return n;
222
- const g = tt(e);
223
- return G.set(t, g), g;
218
+ function C(e) {
219
+ const n = `${e.tone}:${e.label}`, r = G.get(n);
220
+ if (r)
221
+ return r;
222
+ const g = nn(e);
223
+ return G.set(n, g), g;
224
224
  }
225
- const v = (e) => {
226
- const t = () => e.accent ?? "currentColor";
225
+ const u = (e) => {
226
+ const n = () => e.accent ?? "currentColor";
227
227
  return (() => {
228
- var n = Q(), g = n.firstChild, f = g.nextSibling;
229
- return E(n, l(C, {
228
+ var r = Q(), g = r.firstChild, f = g.nextSibling;
229
+ return E(r, i(w, {
230
230
  get when() {
231
231
  return e.accent;
232
232
  },
233
233
  get children() {
234
234
  var o = J();
235
- return k((i) => {
236
- var s = t(), u = e.fillOpacity ?? 0.18;
237
- return s !== i.e && c(o, "fill", i.e = s), u !== i.t && c(o, "opacity", i.t = u), i;
235
+ return k((l) => {
236
+ var a = n(), v = e.fillOpacity ?? 0.18;
237
+ return a !== l.e && c(o, "fill", l.e = a), v !== l.t && c(o, "opacity", l.t = v), l;
238
238
  }, {
239
239
  e: void 0,
240
240
  t: void 0
241
241
  }), o;
242
242
  }
243
- }), g), E(n, () => e.children, null), k((o) => {
244
- var i = e.class, s = e.linkTargetType ? "symbolic" : void 0, u = e.linkTargetType, h = t(), a = t();
245
- return i !== o.e && c(n, "class", o.e = i), s !== o.t && c(n, "data-file-link-kind", o.t = s), u !== o.a && c(n, "data-file-link-target-type", o.a = u), h !== o.o && c(g, "stroke", o.o = h), a !== o.i && c(f, "stroke", o.i = a), o;
243
+ }), g), E(r, () => e.children, null), k((o) => {
244
+ var l = e.class, a = e.linkTargetType ? "symbolic" : void 0, v = e.linkTargetType, h = n(), s = n();
245
+ return l !== o.e && c(r, "class", o.e = l), a !== o.t && c(r, "data-file-link-kind", o.t = a), v !== o.a && c(r, "data-file-link-target-type", o.a = v), h !== o.o && c(g, "stroke", o.o = h), s !== o.i && c(f, "stroke", o.i = s), o;
246
246
  }, {
247
247
  e: void 0,
248
248
  t: void 0,
249
249
  a: void 0,
250
250
  o: void 0,
251
251
  i: void 0
252
- }), n;
252
+ }), r;
253
253
  })();
254
254
  }, T = (e) => {
255
- const t = () => e.targetType === "broken" ? "var(--error)" : "color-mix(in srgb, var(--foreground) 82%, var(--background))", n = () => e.targetType === "broken" ? "color-mix(in srgb, var(--error) 18%, var(--background))" : "color-mix(in srgb, var(--background) 92%, var(--foreground) 8%)";
255
+ const n = () => e.targetType === "broken" ? "var(--error)" : "color-mix(in srgb, var(--foreground) 82%, var(--background))", r = () => e.targetType === "broken" ? "color-mix(in srgb, var(--error) 18%, var(--background))" : "color-mix(in srgb, var(--background) 92%, var(--foreground) 8%)";
256
256
  return (() => {
257
257
  var g = ee(), f = g.firstChild, o = f.nextSibling;
258
- return E(g, l(C, {
258
+ return E(g, i(w, {
259
259
  get when() {
260
260
  return e.targetType === "broken";
261
261
  },
262
262
  get children() {
263
263
  return Z();
264
264
  }
265
- }), null), k((i) => {
266
- var s = e.targetType, u = n(), h = t(), a = t();
267
- return s !== i.e && c(g, "data-file-link-target-type", i.e = s), u !== i.t && c(f, "fill", i.t = u), h !== i.a && c(f, "stroke", i.a = h), a !== i.o && c(o, "stroke", i.o = a), i;
265
+ }), null), k((l) => {
266
+ var a = e.targetType, v = r(), h = n(), s = n();
267
+ return a !== l.e && c(g, "data-file-link-target-type", l.e = a), v !== l.t && c(f, "fill", l.t = v), h !== l.a && c(f, "stroke", l.a = h), s !== l.o && c(o, "stroke", l.o = s), l;
268
268
  }, {
269
269
  e: void 0,
270
270
  t: void 0,
@@ -273,30 +273,30 @@ const v = (e) => {
273
273
  }), g;
274
274
  })();
275
275
  }, _ = (e) => {
276
- const t = W(), n = () => !!e.open, g = () => `${n() ? "floe-folder-open-gradient" : "floe-folder-gradient"}-${t}`;
276
+ const n = W(), r = () => !!e.open, g = () => `${r() ? "floe-folder-open-gradient" : "floe-folder-gradient"}-${n}`;
277
277
  return (() => {
278
- var f = ne(), o = f.firstChild, i = o.firstChild, s = i.firstChild, u = s.nextSibling, h = o.nextSibling;
279
- return E(f, l(C, {
278
+ var f = re(), o = f.firstChild, l = o.firstChild, a = l.firstChild, v = a.nextSibling, h = o.nextSibling;
279
+ return E(f, i(w, {
280
280
  get when() {
281
- return n();
281
+ return r();
282
282
  },
283
283
  get children() {
284
- return te();
284
+ return ne();
285
285
  }
286
- }), null), E(f, l(C, {
286
+ }), null), E(f, i(w, {
287
287
  get when() {
288
288
  return e.linkTargetType;
289
289
  },
290
290
  get children() {
291
- return l(T, {
291
+ return i(T, {
292
292
  get targetType() {
293
293
  return e.linkTargetType;
294
294
  }
295
295
  });
296
296
  }
297
- }), null), k((a) => {
298
- var S = e.class, p = e.linkTargetType ? "symbolic" : void 0, b = e.linkTargetType, y = g(), I = n() ? "color-mix(in srgb, var(--warning) 70%, var(--foreground))" : "color-mix(in srgb, var(--warning) 80%, var(--foreground))", D = `url(#${g()})`, 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";
299
- 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(i, "id", a.o = y), I !== a.i && F(u, "stop-color", a.i = I), D !== a.n && c(h, "fill", a.n = D), P !== a.s && c(h, "d", a.s = P), a;
297
+ }), null), k((s) => {
298
+ var S = e.class, p = e.linkTargetType ? "symbolic" : void 0, y = e.linkTargetType, b = g(), I = r() ? "color-mix(in srgb, var(--floe-file-icon-warning, var(--warning)) 70%, var(--foreground))" : "color-mix(in srgb, var(--floe-file-icon-warning, var(--warning)) 80%, var(--foreground))", D = `url(#${g()})`, P = r() ? "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";
299
+ return S !== s.e && c(f, "class", s.e = S), p !== s.t && c(f, "data-file-link-kind", s.t = p), y !== s.a && c(f, "data-file-link-target-type", s.a = y), b !== s.o && c(l, "id", s.o = b), I !== s.i && F(v, "stop-color", s.i = I), D !== s.n && c(h, "fill", s.n = D), P !== s.s && c(h, "d", s.s = P), s;
300
300
  }, {
301
301
  e: void 0,
302
302
  t: void 0,
@@ -307,92 +307,92 @@ const v = (e) => {
307
307
  s: void 0
308
308
  }), f;
309
309
  })();
310
- }, nt = (e) => l(_, {
310
+ }, rn = (e) => i(_, {
311
311
  get class() {
312
312
  return e.class;
313
313
  }
314
- }), rt = (e) => l(_, {
314
+ }), tn = (e) => i(_, {
315
315
  get class() {
316
316
  return e.class;
317
317
  },
318
318
  open: !0
319
- }), ot = (e) => l(_, {
319
+ }), on = (e) => i(_, {
320
320
  get class() {
321
321
  return e.class;
322
322
  },
323
323
  linkTargetType: "folder"
324
- }), lt = (e) => l(_, {
324
+ }), ln = (e) => i(_, {
325
325
  get class() {
326
326
  return e.class;
327
327
  },
328
328
  open: !0,
329
329
  linkTargetType: "folder"
330
- }), it = (e) => l(_, {
330
+ }), an = (e) => i(_, {
331
331
  get class() {
332
332
  return e.class;
333
333
  },
334
334
  linkTargetType: "broken"
335
- }), st = (e) => l(_, {
335
+ }), sn = (e) => i(_, {
336
336
  get class() {
337
337
  return e.class;
338
338
  },
339
339
  open: !0,
340
340
  linkTargetType: "broken"
341
- }), at = (e) => l(v, {
341
+ }), cn = (e) => i(u, {
342
342
  get class() {
343
343
  return e.class;
344
344
  }
345
- }), ct = (e) => l(v, {
345
+ }), fn = (e) => i(u, {
346
346
  get class() {
347
347
  return e.class;
348
348
  },
349
349
  linkTargetType: "file",
350
350
  get children() {
351
- return l(T, {
351
+ return i(T, {
352
352
  targetType: "file"
353
353
  });
354
354
  }
355
- }), ft = (e) => l(v, {
355
+ }), gn = (e) => i(u, {
356
356
  get class() {
357
357
  return e.class;
358
358
  },
359
359
  accent: "var(--muted-foreground)",
360
360
  linkTargetType: "broken",
361
361
  get children() {
362
- return l(T, {
362
+ return i(T, {
363
363
  targetType: "broken"
364
364
  });
365
365
  }
366
- }), Y = (e) => l(v, {
366
+ }), Y = (e) => i(u, {
367
367
  get class() {
368
368
  return e.class;
369
369
  },
370
- accent: "var(--warning)",
370
+ accent: "var(--floe-file-icon-warning, var(--warning))",
371
371
  get children() {
372
- return re();
372
+ return te();
373
373
  }
374
- }), gt = (e) => l(v, {
374
+ }), dn = (e) => i(u, {
375
375
  get class() {
376
376
  return e.class;
377
377
  },
378
- accent: "var(--info)",
378
+ accent: "var(--floe-file-icon-info, var(--info))",
379
379
  get children() {
380
380
  return oe();
381
381
  }
382
- }), dt = (e) => {
383
- const t = () => ye[e.spec.tone], n = () => et(e.spec.label), g = () => e.spec.label.length > 3 ? "0.02em" : "0.04em";
384
- return l(v, {
382
+ }), vn = (e) => {
383
+ const n = () => be[e.spec.tone], r = () => en(e.spec.label), g = () => e.spec.label.length > 3 ? "0.02em" : "0.04em";
384
+ return i(u, {
385
385
  get class() {
386
386
  return e.class;
387
387
  },
388
388
  get accent() {
389
- return t();
389
+ return n();
390
390
  },
391
391
  get children() {
392
- var f = le(), o = f.firstChild, i = o.nextSibling;
393
- return E(i, () => e.spec.label), k((s) => {
394
- var u = e.spec.label, h = e.spec.tone, a = t(), S = t(), p = t(), b = n(), y = g();
395
- return u !== s.e && c(f, "data-code-badge-label", s.e = u), h !== s.t && c(f, "data-code-badge-tone", s.t = h), a !== s.a && c(o, "fill", s.a = a), S !== s.o && c(o, "stroke", s.o = S), p !== s.i && c(i, "fill", s.i = p), b !== s.n && c(i, "font-size", s.n = b), y !== s.s && F(i, "letter-spacing", s.s = y), s;
392
+ var f = ie(), o = f.firstChild, l = o.nextSibling;
393
+ return E(l, () => e.spec.label), k((a) => {
394
+ var v = e.spec.label, h = e.spec.tone, s = n(), S = n(), p = n(), y = r(), b = g();
395
+ return v !== a.e && c(f, "data-code-badge-label", a.e = v), h !== a.t && c(f, "data-code-badge-tone", a.t = h), s !== a.a && c(o, "fill", a.a = s), S !== a.o && c(o, "stroke", a.o = S), p !== a.i && c(l, "fill", a.i = p), y !== a.n && c(l, "font-size", a.n = y), b !== a.s && F(l, "letter-spacing", a.s = b), a;
396
396
  }, {
397
397
  e: void 0,
398
398
  t: void 0,
@@ -404,103 +404,103 @@ const v = (e) => {
404
404
  }), f;
405
405
  }
406
406
  });
407
- }, xt = x(M), wt = x(L), At = x(A), ut = (e) => l(v, {
407
+ }, xn = C(M), An = C(L), Bn = C(A), un = (e) => i(u, {
408
408
  get class() {
409
409
  return e.class;
410
410
  },
411
- accent: "var(--success)",
411
+ accent: "var(--floe-file-icon-success, var(--success))",
412
412
  get children() {
413
- return [ie(), se()];
413
+ return [le(), ae()];
414
414
  }
415
- }), vt = (e) => l(v, {
415
+ }), hn = (e) => i(u, {
416
416
  get class() {
417
417
  return e.class;
418
418
  },
419
- accent: be,
419
+ accent: ye,
420
420
  get children() {
421
- var t = ae(), n = t.firstChild, g = n.nextSibling;
422
- return g.nextSibling, t;
421
+ var n = se(), r = n.firstChild, g = r.nextSibling;
422
+ return g.nextSibling, n;
423
423
  }
424
- }), ht = (e) => l(v, {
424
+ }), En = (e) => i(u, {
425
425
  get class() {
426
426
  return e.class;
427
427
  },
428
- accent: "var(--info)",
428
+ accent: "var(--floe-file-icon-info, var(--info))",
429
429
  get children() {
430
430
  return ce();
431
431
  }
432
- }), Et = (e) => l(v, {
432
+ }), kn = (e) => i(u, {
433
433
  get class() {
434
434
  return e.class;
435
435
  },
436
- accent: "var(--error)",
436
+ accent: "var(--floe-file-icon-error, var(--error))",
437
437
  get children() {
438
438
  return [fe(), ge()];
439
439
  }
440
- }), kt = (e) => l(v, {
440
+ }), mn = (e) => i(u, {
441
441
  get class() {
442
442
  return e.class;
443
443
  },
444
- accent: "var(--warning)",
444
+ accent: "var(--floe-file-icon-warning, var(--warning))",
445
445
  get children() {
446
446
  return de();
447
447
  }
448
- }), mt = (e) => l(v, {
448
+ }), _n = (e) => i(u, {
449
449
  get class() {
450
450
  return e.class;
451
451
  },
452
- accent: "var(--primary)",
452
+ accent: "var(--floe-file-icon-primary, var(--primary))",
453
453
  get children() {
454
- return ue();
454
+ return ve();
455
455
  }
456
456
  });
457
- function _t(e) {
458
- const t = V(e);
459
- if (t && O(`file.${t}`))
457
+ function Sn(e) {
458
+ const n = V(e);
459
+ if (n && O(`file.${n}`))
460
460
  return Y;
461
- if (t) {
462
- const n = B.get(t);
463
- if (n)
464
- return x(n);
461
+ if (n) {
462
+ const r = B.get(n);
463
+ if (r)
464
+ return C(r);
465
465
  }
466
- return t && pe.has(t) ? gt : t && he.has(t) ? ut : t && Ee.has(t) ? vt : t && ke.has(t) ? ht : t && me.has(t) ? Et : t && _e.has(t) ? kt : t && Se.has(t) ? mt : at;
466
+ return n && pe.has(n) ? dn : n && he.has(n) ? un : n && Ee.has(n) ? hn : n && ke.has(n) ? En : n && me.has(n) ? kn : n && _e.has(n) ? mn : n && Se.has(n) ? _n : cn;
467
467
  }
468
- function St(e, t) {
469
- const n = e.link?.kind === "symbolic" ? e.link.targetType : void 0;
470
- return n === "broken" ? t.open ? st : it : n ? t.open ? lt : ot : t.open ? rt : nt;
468
+ function pn(e, n) {
469
+ const r = e.link?.kind === "symbolic" ? e.link.targetType : void 0;
470
+ return r === "broken" ? n.open ? sn : an : r ? n.open ? ln : on : n.open ? tn : rn;
471
471
  }
472
- function pt(e, t = {}) {
472
+ function yn(e, n = {}) {
473
473
  if (e.icon)
474
474
  return e.icon;
475
475
  if (e.type === "folder")
476
- return St(e, t);
476
+ return pn(e, n);
477
477
  if (e.link?.kind === "symbolic" && e.link.targetType === "broken")
478
- return ft;
478
+ return gn;
479
479
  if (e.link?.kind === "symbolic")
480
- return ct;
480
+ return fn;
481
481
  if (O(e.name))
482
482
  return Y;
483
- const n = Ze(e);
484
- return n ? x(n) : _t(U(e));
483
+ const r = Ze(e);
484
+ return r ? C(r) : Sn(U(e));
485
485
  }
486
- function Bt(e) {
487
- const t = () => pt(e.item, {
486
+ function Tn(e) {
487
+ const n = () => yn(e.item, {
488
488
  open: e.open
489
489
  });
490
- return l(C, {
490
+ return i(w, {
491
491
  get when() {
492
- return typeof t() == "function";
492
+ return typeof n() == "function";
493
493
  },
494
494
  get fallback() {
495
495
  return (() => {
496
- var n = ve();
497
- return E(n, () => t()), k(() => K(n, `inline-flex items-center justify-center ${e.class ?? ""}`.trim())), n;
496
+ var r = ue();
497
+ return E(r, () => n()), k(() => K(r, `inline-flex items-center justify-center ${e.class ?? ""}`.trim())), r;
498
498
  })();
499
499
  },
500
500
  get children() {
501
- return l(q, {
501
+ return i(q, {
502
502
  get component() {
503
- return t();
503
+ return n();
504
504
  },
505
505
  get class() {
506
506
  return e.class;
@@ -511,24 +511,24 @@ function Bt(e) {
511
511
  }
512
512
  export {
513
513
  Y as ArchiveFileIcon,
514
- ht as AudioFileIcon,
515
- ft as BrokenSymlinkIcon,
516
- gt as CodeFileIcon,
517
- kt as ConfigFileIcon,
518
- Et as DocumentFileIcon,
519
- at as FileIcon,
520
- Bt as FileItemIcon,
521
- nt as FolderIcon,
522
- rt as FolderOpenIcon,
523
- ut as ImageFileIcon,
524
- xt as JavaScriptFileIcon,
525
- At as ShellScriptFileIcon,
526
- mt as StyleFileIcon,
527
- ct as SymlinkFileIcon,
528
- ot as SymlinkFolderIcon,
529
- lt as SymlinkFolderOpenIcon,
530
- wt as TypeScriptFileIcon,
531
- vt as VideoFileIcon,
532
- _t as getFileIcon,
533
- pt as resolveFileItemIcon
514
+ En as AudioFileIcon,
515
+ gn as BrokenSymlinkIcon,
516
+ dn as CodeFileIcon,
517
+ mn as ConfigFileIcon,
518
+ kn as DocumentFileIcon,
519
+ cn as FileIcon,
520
+ Tn as FileItemIcon,
521
+ rn as FolderIcon,
522
+ tn as FolderOpenIcon,
523
+ un as ImageFileIcon,
524
+ xn as JavaScriptFileIcon,
525
+ Bn as ShellScriptFileIcon,
526
+ _n as StyleFileIcon,
527
+ fn as SymlinkFileIcon,
528
+ on as SymlinkFolderIcon,
529
+ ln as SymlinkFolderOpenIcon,
530
+ An as TypeScriptFileIcon,
531
+ hn as VideoFileIcon,
532
+ Sn as getFileIcon,
533
+ yn as resolveFileItemIcon
534
534
  };