@imfusion/web-ui 0.11.1-dev.65.g9b6bba80 → 0.11.1-dev.68.g14d48720
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/CHANGELOG.md +11 -0
- package/dist/{code-BaLXMEMa.js → code-BEEa9MB9.js} +5 -5
- package/dist/{icon-button-roSB497o.js → icon-button-D4cnLN_x.js} +2 -2
- package/dist/icons/catalog.gen.d.ts +7 -0
- package/dist/icons/icons.gen.d.ts +1 -0
- package/dist/{icons-vc1WZCxX.js → icons-CIACWV-N.js} +914 -893
- package/dist/icons.js +1 -1
- package/dist/index.js +176 -176
- package/dist/integrations/code-highlight.js +1 -1
- package/dist/integrations/image-display-options.js +1 -1
- package/dist/integrations/layout-mode.js +9 -9
- package/dist/integrations/view-tools.js +16 -16
- package/dist/style.css +1 -1
- package/dist/{toggle-group-eGr6_hgQ.js → toggle-group-CnVw-abL.js} +3 -3
- package/dist/{toggle-group-Bhb3qicp.js → toggle-group-D5UAcbsi.js} +1 -1
- package/package.json +1 -1
- package/src/llms/icon-catalog.gen.json +8 -0
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as e } from "./rolldown-runtime-Dy4uBu1J.js";
|
|
2
|
-
import {
|
|
2
|
+
import { $A as t, Dt as n, F_ as r, Ma as i, Qj as a, Tb as o, Xo as s, Yt as c, bE as l, dA as ee, dy as u, en as d, fn as f, gM as te, hM as ne, ij as re, in as ie, ja as p, oE as ae, py as oe, sA as se, sy as ce, tM as le, vM as m, yv as ue, zm as h } from "./icons-CIACWV-N.js";
|
|
3
3
|
import { t as g } from "./meta-V_KyLeGn.js";
|
|
4
|
-
import { a as de, i as fe, n as pe, t as me } from "./toggle-group-
|
|
4
|
+
import { a as de, i as fe, n as pe, t as me } from "./toggle-group-CnVw-abL.js";
|
|
5
5
|
import { a as _, i as he, n as ge, o as _e, r as v, t as ve } from "./utils-J6vbjIt1.js";
|
|
6
|
-
import { i as ye, n as be, r as xe, t as Se } from "./icon-button-
|
|
7
|
-
import { a as Ce, o as we, r as Te, t as Ee } from "./code-
|
|
8
|
-
import { n as De, t as Oe } from "./toggle-group-
|
|
6
|
+
import { i as ye, n as be, r as xe, t as Se } from "./icon-button-D4cnLN_x.js";
|
|
7
|
+
import { a as Ce, o as we, r as Te, t as Ee } from "./code-BEEa9MB9.js";
|
|
8
|
+
import { n as De, t as Oe } from "./toggle-group-D5UAcbsi.js";
|
|
9
9
|
import { n as ke, t as Ae } from "./row-CImu8yXV.js";
|
|
10
10
|
import { a as je, c as Me, i as Ne, n as Pe, o as Fe, r as Ie, s as Le, t as Re } from "./scroll-area-CXQ_SxPX.js";
|
|
11
11
|
import { c as ze } from "./slider-CpIZMAFl.js";
|
|
@@ -87,14 +87,14 @@ var P = {
|
|
|
87
87
|
};
|
|
88
88
|
//#endregion
|
|
89
89
|
//#region src/components/chip-link/chip-link.tsx
|
|
90
|
-
function Ct({ variant: e = "info", appearance: t = "subtle", inline: n = !1, kind: r = "external", className: i, children: a, ...
|
|
91
|
-
let
|
|
90
|
+
function Ct({ variant: e = "info", appearance: t = "subtle", inline: n = !1, kind: r = "external", className: i, children: a, ...o }) {
|
|
91
|
+
let s = r === "external" ? f : c;
|
|
92
92
|
return /* @__PURE__ */ S("a", {
|
|
93
93
|
...r === "external" ? {
|
|
94
94
|
target: "_blank",
|
|
95
95
|
rel: "noreferrer"
|
|
96
96
|
} : {},
|
|
97
|
-
...
|
|
97
|
+
...o,
|
|
98
98
|
"data-imf-ui-component": "ChipLink",
|
|
99
99
|
"data-kind": r,
|
|
100
100
|
className: xt({
|
|
@@ -106,8 +106,8 @@ function Ct({ variant: e = "info", appearance: t = "subtle", inline: n = !1, kin
|
|
|
106
106
|
children: [a, /* @__PURE__ */ x("span", {
|
|
107
107
|
className: St.icon,
|
|
108
108
|
"aria-hidden": !0,
|
|
109
|
-
children: /* @__PURE__ */ x(
|
|
110
|
-
glyph:
|
|
109
|
+
children: /* @__PURE__ */ x(m, {
|
|
110
|
+
glyph: s,
|
|
111
111
|
size: 12
|
|
112
112
|
})
|
|
113
113
|
})]
|
|
@@ -122,18 +122,18 @@ var wt = {
|
|
|
122
122
|
description: "Link styled as a compact chip, with a directional icon for external references or in-app navigation. Also called a link chip or link badge.",
|
|
123
123
|
origin: "native"
|
|
124
124
|
}, Tt = { root: "imf-ui-copy-button-module-root" }, Et = 1500;
|
|
125
|
-
function Dt({ value: e, label: t = "Copy", copiedLabel: n = "Copied", variant: r = "secondary", size: i = "sm", ...
|
|
126
|
-
let { copied:
|
|
125
|
+
function Dt({ value: e, label: t = "Copy", copiedLabel: n = "Copied", variant: r = "secondary", size: i = "sm", ...a }) {
|
|
126
|
+
let { copied: o, copy: c } = we({ timeout: Et }), l = o ? p : s;
|
|
127
127
|
return /* @__PURE__ */ x(ye, {
|
|
128
|
-
...
|
|
128
|
+
...a,
|
|
129
129
|
variant: r,
|
|
130
130
|
size: i,
|
|
131
|
-
"data-copied":
|
|
132
|
-
"aria-label":
|
|
133
|
-
onClick: () =>
|
|
134
|
-
className: (e) => b(Tt.root, _(
|
|
135
|
-
children: /* @__PURE__ */ x(
|
|
136
|
-
glyph:
|
|
131
|
+
"data-copied": o || void 0,
|
|
132
|
+
"aria-label": o ? n : t,
|
|
133
|
+
onClick: () => c(e),
|
|
134
|
+
className: (e) => b(Tt.root, _(a.className, e)),
|
|
135
|
+
children: /* @__PURE__ */ x(m, {
|
|
136
|
+
glyph: l,
|
|
137
137
|
size: 15,
|
|
138
138
|
strokeWidth: 2,
|
|
139
139
|
"aria-hidden": !0
|
|
@@ -172,7 +172,7 @@ function jt({ glyph: e, description: t, kind: n = "external", endGlyph: r, child
|
|
|
172
172
|
children: [
|
|
173
173
|
e && /* @__PURE__ */ x("span", {
|
|
174
174
|
className: kt.tile,
|
|
175
|
-
children: /* @__PURE__ */ x(
|
|
175
|
+
children: /* @__PURE__ */ x(m, {
|
|
176
176
|
glyph: e,
|
|
177
177
|
className: kt.tileGlyph,
|
|
178
178
|
"aria-hidden": !0
|
|
@@ -188,8 +188,8 @@ function jt({ glyph: e, description: t, kind: n = "external", endGlyph: r, child
|
|
|
188
188
|
children: t
|
|
189
189
|
})]
|
|
190
190
|
}),
|
|
191
|
-
/* @__PURE__ */ x(
|
|
192
|
-
glyph: r ?? (n === "external" ?
|
|
191
|
+
/* @__PURE__ */ x(m, {
|
|
192
|
+
glyph: r ?? (n === "external" ? f : c),
|
|
193
193
|
variant: "support",
|
|
194
194
|
className: kt.end,
|
|
195
195
|
"aria-hidden": !0
|
|
@@ -330,8 +330,8 @@ function wn({ children: e, ...t }) {
|
|
|
330
330
|
...t,
|
|
331
331
|
"data-imf-ui-component": "Autocomplete.Trigger",
|
|
332
332
|
className: (e) => qt({ className: _(t.className, e) }),
|
|
333
|
-
children: e ?? /* @__PURE__ */ x(
|
|
334
|
-
glyph:
|
|
333
|
+
children: e ?? /* @__PURE__ */ x(m, {
|
|
334
|
+
glyph: ce,
|
|
335
335
|
size: 16,
|
|
336
336
|
"aria-hidden": !0
|
|
337
337
|
})
|
|
@@ -351,8 +351,8 @@ function En({ children: e, ...t }) {
|
|
|
351
351
|
...t,
|
|
352
352
|
"data-imf-ui-component": "Autocomplete.Clear",
|
|
353
353
|
className: (e) => Yt({ className: _(t.className, e) }),
|
|
354
|
-
children: e ?? /* @__PURE__ */ x(
|
|
355
|
-
glyph:
|
|
354
|
+
children: e ?? /* @__PURE__ */ x(m, {
|
|
355
|
+
glyph: a,
|
|
356
356
|
size: 16,
|
|
357
357
|
"aria-hidden": !0
|
|
358
358
|
})
|
|
@@ -543,16 +543,16 @@ function Yn({ children: e, ...t }) {
|
|
|
543
543
|
children: e ?? /* @__PURE__ */ S(Je, { children: [/* @__PURE__ */ x("span", {
|
|
544
544
|
className: Nt.iconCheck,
|
|
545
545
|
"aria-hidden": !0,
|
|
546
|
-
children: /* @__PURE__ */ x(
|
|
547
|
-
glyph:
|
|
546
|
+
children: /* @__PURE__ */ x(m, {
|
|
547
|
+
glyph: p,
|
|
548
548
|
size: 12,
|
|
549
549
|
strokeWidth: 3
|
|
550
550
|
})
|
|
551
551
|
}), /* @__PURE__ */ x("span", {
|
|
552
552
|
className: Nt.iconIndeterminate,
|
|
553
553
|
"aria-hidden": !0,
|
|
554
|
-
children: /* @__PURE__ */ x(
|
|
555
|
-
glyph:
|
|
554
|
+
children: /* @__PURE__ */ x(m, {
|
|
555
|
+
glyph: ue,
|
|
556
556
|
size: 12,
|
|
557
557
|
strokeWidth: 3
|
|
558
558
|
})
|
|
@@ -747,8 +747,8 @@ function yr({ children: e, ...t }) {
|
|
|
747
747
|
...t,
|
|
748
748
|
"data-imf-ui-component": "Combobox.Trigger",
|
|
749
749
|
className: (e) => qt({ className: _(t.className, e) }),
|
|
750
|
-
children: e ?? /* @__PURE__ */ x(
|
|
751
|
-
glyph:
|
|
750
|
+
children: e ?? /* @__PURE__ */ x(m, {
|
|
751
|
+
glyph: ce,
|
|
752
752
|
size: 16,
|
|
753
753
|
"aria-hidden": !0
|
|
754
754
|
})
|
|
@@ -768,8 +768,8 @@ function xr({ children: e, ...t }) {
|
|
|
768
768
|
...t,
|
|
769
769
|
"data-imf-ui-component": "Combobox.Clear",
|
|
770
770
|
className: (e) => Yt({ className: _(t.className, e) }),
|
|
771
|
-
children: e ?? /* @__PURE__ */ x(
|
|
772
|
-
glyph:
|
|
771
|
+
children: e ?? /* @__PURE__ */ x(m, {
|
|
772
|
+
glyph: a,
|
|
773
773
|
size: 16,
|
|
774
774
|
"aria-hidden": !0
|
|
775
775
|
})
|
|
@@ -801,8 +801,8 @@ function Tr({ children: e, ...t }) {
|
|
|
801
801
|
...t,
|
|
802
802
|
"data-imf-ui-component": "Combobox.ChipRemove",
|
|
803
803
|
className: (e) => Zt({ className: _(t.className, e) }),
|
|
804
|
-
children: e ?? /* @__PURE__ */ x(
|
|
805
|
-
glyph:
|
|
804
|
+
children: e ?? /* @__PURE__ */ x(m, {
|
|
805
|
+
glyph: a,
|
|
806
806
|
size: 12,
|
|
807
807
|
"aria-hidden": !0
|
|
808
808
|
})
|
|
@@ -916,8 +916,8 @@ function Lr({ children: e, keepMounted: t, render: n, ...r }) {
|
|
|
916
916
|
render: n,
|
|
917
917
|
"data-imf-ui-component": "Combobox.ItemIndicator",
|
|
918
918
|
className: (e) => dn({ className: _(r.className, e) }),
|
|
919
|
-
children: e ?? /* @__PURE__ */ x(
|
|
920
|
-
glyph:
|
|
919
|
+
children: e ?? /* @__PURE__ */ x(m, {
|
|
920
|
+
glyph: p,
|
|
921
921
|
size: 16,
|
|
922
922
|
"aria-hidden": !0
|
|
923
923
|
})
|
|
@@ -938,8 +938,8 @@ function Lr({ children: e, keepMounted: t, render: n, ...r }) {
|
|
|
938
938
|
className: (e) => fn({ className: _(r.className, e) }),
|
|
939
939
|
children: e ?? /* @__PURE__ */ x("span", {
|
|
940
940
|
className: pn(),
|
|
941
|
-
children: /* @__PURE__ */ x(
|
|
942
|
-
glyph:
|
|
941
|
+
children: /* @__PURE__ */ x(m, {
|
|
942
|
+
glyph: p,
|
|
943
943
|
size: 12,
|
|
944
944
|
strokeWidth: 3,
|
|
945
945
|
"aria-hidden": !0
|
|
@@ -1132,9 +1132,9 @@ var mi = {
|
|
|
1132
1132
|
}
|
|
1133
1133
|
}, hi = {
|
|
1134
1134
|
info: h,
|
|
1135
|
-
positive:
|
|
1136
|
-
warning:
|
|
1137
|
-
negative:
|
|
1135
|
+
positive: i,
|
|
1136
|
+
warning: re,
|
|
1137
|
+
negative: t
|
|
1138
1138
|
}, L = {
|
|
1139
1139
|
description: "imf-ui-callout-module-description",
|
|
1140
1140
|
icon: "imf-ui-callout-module-icon",
|
|
@@ -1174,9 +1174,9 @@ var mi = {
|
|
|
1174
1174
|
}
|
|
1175
1175
|
} }), vi = {
|
|
1176
1176
|
...hi,
|
|
1177
|
-
"accent-1":
|
|
1178
|
-
"accent-2":
|
|
1179
|
-
"accent-3":
|
|
1177
|
+
"accent-1": l,
|
|
1178
|
+
"accent-2": l,
|
|
1179
|
+
"accent-3": l
|
|
1180
1180
|
}, yi = Qe("info");
|
|
1181
1181
|
function bi({ variant: e = "info", maxWidth: t = "lg", children: n, ...r }) {
|
|
1182
1182
|
let i = e ?? "info";
|
|
@@ -1203,7 +1203,7 @@ function xi({ children: e, ...t }) {
|
|
|
1203
1203
|
"aria-hidden": !0,
|
|
1204
1204
|
"data-imf-ui-component": "Callout.Icon",
|
|
1205
1205
|
className: y(L.icon)({ className: t.className }),
|
|
1206
|
-
children: e ?? /* @__PURE__ */ x(
|
|
1206
|
+
children: e ?? /* @__PURE__ */ x(m, {
|
|
1207
1207
|
glyph: n,
|
|
1208
1208
|
size: 24,
|
|
1209
1209
|
strokeWidth: 2
|
|
@@ -1348,7 +1348,7 @@ function Ai({ variant: e = "info", children: t, ...n }) {
|
|
|
1348
1348
|
variant: e,
|
|
1349
1349
|
className: n.className
|
|
1350
1350
|
}),
|
|
1351
|
-
children: t ?? /* @__PURE__ */ x(
|
|
1351
|
+
children: t ?? /* @__PURE__ */ x(m, {
|
|
1352
1352
|
glyph: hi[e ?? "info"],
|
|
1353
1353
|
className: R.statusGlyph
|
|
1354
1354
|
})
|
|
@@ -2060,8 +2060,8 @@ function Ha(e, t) {
|
|
|
2060
2060
|
function Ua(e) {
|
|
2061
2061
|
return Array.from(e.dataTransfer.types).includes("Files");
|
|
2062
2062
|
}
|
|
2063
|
-
function Wa({ accept: e, multiple: t = !0, directory: n = !1, size: r = "md", disabled: i = !1, invalid: a = !1, onFilesAdded: o, onDragStateChange: s, formatStatus: c = Ha, children: l, className:
|
|
2064
|
-
let p = r ?? "md",
|
|
2063
|
+
function Wa({ accept: e, multiple: t = !0, directory: n = !1, size: r = "md", disabled: i = !1, invalid: a = !1, onFilesAdded: o, onDragStateChange: s, formatStatus: c = Ha, children: l, className: ee, "aria-labelledby": u, "aria-describedby": d, onDragEnter: f, onDragOver: te, onDragLeave: ne, onDrop: re, ...ie }) {
|
|
2064
|
+
let p = r ?? "md", ae = n && t, oe = at(null), se = at(null), ce = at(/* @__PURE__ */ new Set()), le = at("idle"), [m, ue] = w("idle"), [h, g] = w(!1), [de, fe] = w(null), [pe, me] = w(null), [_, he] = w({
|
|
2065
2065
|
id: 0,
|
|
2066
2066
|
text: ""
|
|
2067
2067
|
}), ge = at({
|
|
@@ -2079,23 +2079,23 @@ function Wa({ accept: e, multiple: t = !0, directory: n = !1, size: r = "md", di
|
|
|
2079
2079
|
let _e = it(() => ({
|
|
2080
2080
|
size: p,
|
|
2081
2081
|
disabled: i,
|
|
2082
|
-
directory:
|
|
2082
|
+
directory: ae,
|
|
2083
2083
|
filled: h,
|
|
2084
|
-
openPicker: (e) => (e === "folder" ?
|
|
2084
|
+
openPicker: (e) => (e === "folder" ? se : oe).current?.click(),
|
|
2085
2085
|
setFilled: g,
|
|
2086
2086
|
registerTitle: fe,
|
|
2087
2087
|
registerDescription: me
|
|
2088
2088
|
}), [
|
|
2089
2089
|
p,
|
|
2090
2090
|
i,
|
|
2091
|
-
|
|
2091
|
+
ae,
|
|
2092
2092
|
h
|
|
2093
2093
|
]);
|
|
2094
2094
|
function v(e) {
|
|
2095
|
-
|
|
2095
|
+
le.current !== e && (le.current = e, ue(e), ge.current.onDragStateChange?.(e));
|
|
2096
2096
|
}
|
|
2097
2097
|
function ve(e, t) {
|
|
2098
|
-
let n =
|
|
2098
|
+
let n = ce.current;
|
|
2099
2099
|
t ? n.add(e.target) : n.delete(e.target);
|
|
2100
2100
|
for (let t of n) (!(t instanceof Node) || !e.currentTarget.contains(t)) && n.delete(t);
|
|
2101
2101
|
}
|
|
@@ -2118,12 +2118,12 @@ function Wa({ accept: e, multiple: t = !0, directory: n = !1, size: r = "md", di
|
|
|
2118
2118
|
v(n), t.dataTransfer.dropEffect = n === "rejecting" ? "none" : "copy";
|
|
2119
2119
|
}
|
|
2120
2120
|
function Se(e) {
|
|
2121
|
-
ne?.(e), Ua(e) && (ve(e, !1),
|
|
2121
|
+
ne?.(e), Ua(e) && (ve(e, !1), ce.current.size === 0 && v("idle"));
|
|
2122
2122
|
}
|
|
2123
2123
|
function Ce(n) {
|
|
2124
|
-
re?.(n), !(!Ua(n) || (n.preventDefault(),
|
|
2124
|
+
re?.(n), !(!Ua(n) || (n.preventDefault(), ce.current.clear(), v("idle"), i)) && Na(xa(n.dataTransfer), {
|
|
2125
2125
|
accept: e,
|
|
2126
|
-
directory:
|
|
2126
|
+
directory: ae,
|
|
2127
2127
|
multiple: t
|
|
2128
2128
|
}).then(ye).catch(() => void 0);
|
|
2129
2129
|
}
|
|
@@ -2131,12 +2131,12 @@ function Wa({ accept: e, multiple: t = !0, directory: n = !1, size: r = "md", di
|
|
|
2131
2131
|
let i = Array.from(n.currentTarget.files ?? []);
|
|
2132
2132
|
n.currentTarget.value = "", ye(Pa(i, {
|
|
2133
2133
|
accept: e,
|
|
2134
|
-
directory:
|
|
2134
|
+
directory: ae,
|
|
2135
2135
|
multiple: t,
|
|
2136
2136
|
fromFolder: r
|
|
2137
2137
|
}));
|
|
2138
2138
|
}
|
|
2139
|
-
let Te = i ? "idle" :
|
|
2139
|
+
let Te = i ? "idle" : m, Ee = [pe, d].filter(Boolean).join(" ") || void 0;
|
|
2140
2140
|
return /* @__PURE__ */ x(za.Provider, {
|
|
2141
2141
|
value: _e,
|
|
2142
2142
|
children: /* @__PURE__ */ S("div", {
|
|
@@ -2147,12 +2147,12 @@ function Wa({ accept: e, multiple: t = !0, directory: n = !1, size: r = "md", di
|
|
|
2147
2147
|
"data-filled": h ? "" : void 0,
|
|
2148
2148
|
"data-invalid": a ? "" : void 0,
|
|
2149
2149
|
...ie,
|
|
2150
|
-
"aria-labelledby":
|
|
2150
|
+
"aria-labelledby": u ?? de ?? void 0,
|
|
2151
2151
|
"aria-describedby": Ee,
|
|
2152
2152
|
"data-imf-ui-component": "FileDropZone.Root",
|
|
2153
2153
|
className: Va({
|
|
2154
2154
|
size: p,
|
|
2155
|
-
className:
|
|
2155
|
+
className: ee
|
|
2156
2156
|
}),
|
|
2157
2157
|
onDragEnter: be,
|
|
2158
2158
|
onDragOver: xe,
|
|
@@ -2177,7 +2177,7 @@ function Wa({ accept: e, multiple: t = !0, directory: n = !1, size: r = "md", di
|
|
|
2177
2177
|
}),
|
|
2178
2178
|
l,
|
|
2179
2179
|
/* @__PURE__ */ x("input", {
|
|
2180
|
-
ref:
|
|
2180
|
+
ref: oe,
|
|
2181
2181
|
type: "file",
|
|
2182
2182
|
hidden: !0,
|
|
2183
2183
|
multiple: t,
|
|
@@ -2185,8 +2185,8 @@ function Wa({ accept: e, multiple: t = !0, directory: n = !1, size: r = "md", di
|
|
|
2185
2185
|
disabled: i,
|
|
2186
2186
|
onChange: (e) => we(e, !1)
|
|
2187
2187
|
}),
|
|
2188
|
-
|
|
2189
|
-
ref:
|
|
2188
|
+
ae && /* @__PURE__ */ x("input", {
|
|
2189
|
+
ref: se,
|
|
2190
2190
|
type: "file",
|
|
2191
2191
|
hidden: !0,
|
|
2192
2192
|
multiple: !0,
|
|
@@ -2274,14 +2274,14 @@ function Ja({ file: e, className: t, ...n }) {
|
|
|
2274
2274
|
}
|
|
2275
2275
|
Ja.displayName = "FileDropZone.File";
|
|
2276
2276
|
function Ya({ label: e = "Remove file", variant: t, size: n, disabled: r, ...i }) {
|
|
2277
|
-
let
|
|
2277
|
+
let o = C(za);
|
|
2278
2278
|
return /* @__PURE__ */ x(be, {
|
|
2279
2279
|
...i,
|
|
2280
|
-
glyph:
|
|
2280
|
+
glyph: a,
|
|
2281
2281
|
label: e,
|
|
2282
|
-
variant: t ?? (
|
|
2283
|
-
size: n ?? (
|
|
2284
|
-
disabled: r ??
|
|
2282
|
+
variant: t ?? (o.size === "sm" ? "ghost" : "outline"),
|
|
2283
|
+
size: n ?? (o.size === "lg" ? "md" : "sm"),
|
|
2284
|
+
disabled: r ?? o.disabled
|
|
2285
2285
|
});
|
|
2286
2286
|
}
|
|
2287
2287
|
Ya.displayName = "FileDropZone.Remove";
|
|
@@ -2291,10 +2291,10 @@ function Xa({ glyph: e, size: t = 48, ...n }) {
|
|
|
2291
2291
|
"aria-hidden": !0,
|
|
2292
2292
|
"data-imf-ui-component": "FileDropZone.Glyph",
|
|
2293
2293
|
className: V.glyph,
|
|
2294
|
-
children: /* @__PURE__ */ x(
|
|
2294
|
+
children: /* @__PURE__ */ x(m, {
|
|
2295
2295
|
variant: "inherit",
|
|
2296
2296
|
...n,
|
|
2297
|
-
glyph: e ?? (r.filled ?
|
|
2297
|
+
glyph: e ?? (r.filled ? o : se),
|
|
2298
2298
|
size: t
|
|
2299
2299
|
})
|
|
2300
2300
|
}) : null;
|
|
@@ -2339,34 +2339,34 @@ function eo(e, t) {
|
|
|
2339
2339
|
return e.status === "done" ? t.done : e.status === "error" ? t.failed : e.progress == null ? t.waiting : `${ha(e.file.size * e.progress / 100, e.file.size)} / ${ha(e.file.size)}`;
|
|
2340
2340
|
}
|
|
2341
2341
|
var to = (e) => e.status === "done" || e.status === "error" ? 100 : e.progress ?? 0;
|
|
2342
|
-
function no({ items: e, onRemove: t, onUpload: n, onRetry: r, onReset: i, heading:
|
|
2343
|
-
let [p,
|
|
2342
|
+
function no({ items: e, onRemove: t, onUpload: n, onRetry: r, onReset: i, heading: o = "Upload files", title: s, description: c, folders: l = !0, labels: ee, size: u = "lg", multiple: d = !0, accept: f, disabled: te = !1, onFilesAdded: ne, onDragStateChange: re, ...ie }) {
|
|
2343
|
+
let [p, ae] = w(null), [oe, se] = w("idle"), [ce, le] = w(/* @__PURE__ */ new Set()), [m, ue] = w(0), h = {
|
|
2344
2344
|
...$a,
|
|
2345
|
-
...
|
|
2346
|
-
}, g = e.filter((e) => e.status === "queued"), de = e.some((e) => e.status === "uploading"), fe = e.length > 0 && g.length === 0 && !de, pe = e.filter((e) => e.status === "done").length, me = e.filter((e) => e.status === "error").length, _ = e.filter((e) =>
|
|
2345
|
+
...ee
|
|
2346
|
+
}, g = e.filter((e) => e.status === "queued"), de = e.some((e) => e.status === "uploading"), fe = e.length > 0 && g.length === 0 && !de, pe = e.filter((e) => e.status === "done").length, me = e.filter((e) => e.status === "error").length, _ = e.filter((e) => ce.has(e.id)), he = _.reduce((e, t) => e + to(t), 0) / Math.max(_.length, 1), ge = h.uploaded(pe, me), _e = l && d, v = Ra(f), ve = s ?? (d ? _e ? "Drop files or a folder" : "Drop files" : "Drop a file"), xe = c ?? ([v, _e ? "Folders are scanned, including subfolders." : ""].filter(Boolean).join(v ? ". " : "") || void 0), Se = oe === "idle" ? ve : oe === "accepting" ? h.dropToAdd : h.cantAdd, Ce = oe === "accepting" ? h.releaseToAdd(d) : oe === "rejecting" ? h.addTypes(v) : xe;
|
|
2347
2347
|
return /* @__PURE__ */ S(Di, {
|
|
2348
2348
|
withBorder: !0,
|
|
2349
2349
|
children: [
|
|
2350
|
-
/* @__PURE__ */ x(ji, { children: /* @__PURE__ */ x(na, { children:
|
|
2350
|
+
/* @__PURE__ */ x(ji, { children: /* @__PURE__ */ x(na, { children: o }) }),
|
|
2351
2351
|
/* @__PURE__ */ x(Mi, { children: /* @__PURE__ */ S(ke, {
|
|
2352
2352
|
gap: "5",
|
|
2353
2353
|
align: "stretch",
|
|
2354
2354
|
children: [
|
|
2355
2355
|
/* @__PURE__ */ S(Wa, {
|
|
2356
2356
|
...ie,
|
|
2357
|
-
size:
|
|
2357
|
+
size: u,
|
|
2358
2358
|
multiple: d,
|
|
2359
2359
|
accept: f,
|
|
2360
2360
|
directory: _e,
|
|
2361
2361
|
disabled: te || de,
|
|
2362
2362
|
onFilesAdded: (e, t) => {
|
|
2363
|
-
|
|
2363
|
+
ae(t.length === 0 ? null : {
|
|
2364
2364
|
paths: t.map((e) => e.path),
|
|
2365
2365
|
byType: t.every((e) => !ya(e.file, f))
|
|
2366
2366
|
}), ne?.(e, t);
|
|
2367
2367
|
},
|
|
2368
2368
|
onDragStateChange: (e) => {
|
|
2369
|
-
|
|
2369
|
+
se(e), re?.(e);
|
|
2370
2370
|
},
|
|
2371
2371
|
children: [
|
|
2372
2372
|
/* @__PURE__ */ x(Xa, {}),
|
|
@@ -2422,11 +2422,11 @@ function no({ items: e, onRemove: t, onUpload: n, onRetry: r, onReset: i, headin
|
|
|
2422
2422
|
"aria-label": h.retryName(n),
|
|
2423
2423
|
disabled: te || de,
|
|
2424
2424
|
onClick: () => {
|
|
2425
|
-
|
|
2425
|
+
le((t) => new Set(t).add(e.id)), ue(1), r(e.id);
|
|
2426
2426
|
},
|
|
2427
2427
|
children: h.retry
|
|
2428
2428
|
}), /* @__PURE__ */ x(be, {
|
|
2429
|
-
glyph:
|
|
2429
|
+
glyph: a,
|
|
2430
2430
|
label: h.remove(n),
|
|
2431
2431
|
size: "sm",
|
|
2432
2432
|
variant: "ghost",
|
|
@@ -2460,13 +2460,13 @@ function no({ items: e, onRemove: t, onUpload: n, onRetry: r, onReset: i, headin
|
|
|
2460
2460
|
children: fe ? i && /* @__PURE__ */ x(ye, {
|
|
2461
2461
|
variant: "secondary",
|
|
2462
2462
|
onClick: () => {
|
|
2463
|
-
|
|
2463
|
+
ae(null), le(/* @__PURE__ */ new Set()), i();
|
|
2464
2464
|
},
|
|
2465
2465
|
children: h.startOver
|
|
2466
2466
|
}) : /* @__PURE__ */ x(ye, {
|
|
2467
2467
|
disabled: te || g.length === 0 || de,
|
|
2468
2468
|
onClick: () => {
|
|
2469
|
-
|
|
2469
|
+
le(new Set(g.map((e) => e.id))), ue(g.length), n();
|
|
2470
2470
|
},
|
|
2471
2471
|
children: de ? h.uploading : h.upload(g.length)
|
|
2472
2472
|
})
|
|
@@ -2474,7 +2474,7 @@ function no({ items: e, onRemove: t, onUpload: n, onRetry: r, onReset: i, headin
|
|
|
2474
2474
|
/* @__PURE__ */ x("span", {
|
|
2475
2475
|
role: "status",
|
|
2476
2476
|
className: V.visuallyHidden,
|
|
2477
|
-
children: de ? h.uploadingStatus(
|
|
2477
|
+
children: de ? h.uploadingStatus(m) : fe ? ge : ""
|
|
2478
2478
|
})
|
|
2479
2479
|
] })
|
|
2480
2480
|
]
|
|
@@ -2521,36 +2521,36 @@ var ro = {
|
|
|
2521
2521
|
lg: io.sizeLg
|
|
2522
2522
|
}
|
|
2523
2523
|
} });
|
|
2524
|
-
function oo({ variant: e = "outline", size: t = "md", type: n, value: r, defaultValue: i, onValueChange:
|
|
2525
|
-
let
|
|
2526
|
-
|
|
2527
|
-
},
|
|
2524
|
+
function oo({ variant: e = "outline", size: t = "md", type: n, value: r, defaultValue: i, onValueChange: o, onClear: s, disabled: c, className: l, ...ee }) {
|
|
2525
|
+
let u = n === "search", [d, f] = w(i ?? ""), te = r ?? d, ne = te != null && String(te).length > 0, re = (e, t) => {
|
|
2526
|
+
u && r === void 0 && f(e), o?.(e, t);
|
|
2527
|
+
}, ie = /* @__PURE__ */ x(ft, {
|
|
2528
2528
|
...ee,
|
|
2529
2529
|
type: n,
|
|
2530
|
-
value:
|
|
2531
|
-
defaultValue:
|
|
2532
|
-
disabled:
|
|
2533
|
-
onValueChange:
|
|
2530
|
+
value: u ? te : r,
|
|
2531
|
+
defaultValue: u ? void 0 : i,
|
|
2532
|
+
disabled: c,
|
|
2533
|
+
onValueChange: u ? re : o,
|
|
2534
2534
|
"data-imf-ui-component": "Input",
|
|
2535
2535
|
className: (n) => ao({
|
|
2536
2536
|
variant: e,
|
|
2537
2537
|
size: t,
|
|
2538
|
-
className: _(
|
|
2538
|
+
className: _(l, n)
|
|
2539
2539
|
})
|
|
2540
2540
|
});
|
|
2541
|
-
if (!
|
|
2542
|
-
let
|
|
2541
|
+
if (!u) return ie;
|
|
2542
|
+
let p = typeof l == "string" ? `${io.searchRoot} ${l}` : io.searchRoot;
|
|
2543
2543
|
return /* @__PURE__ */ S("div", {
|
|
2544
|
-
className:
|
|
2545
|
-
children: [
|
|
2544
|
+
className: p,
|
|
2545
|
+
children: [ie, ne && !c && !ee.readOnly && /* @__PURE__ */ x("button", {
|
|
2546
2546
|
type: "button",
|
|
2547
2547
|
className: io.clearButton,
|
|
2548
2548
|
"aria-label": "Clear input",
|
|
2549
2549
|
onClick: () => {
|
|
2550
|
-
r === void 0 &&
|
|
2550
|
+
r === void 0 && f(""), s?.();
|
|
2551
2551
|
},
|
|
2552
|
-
children: /* @__PURE__ */ x(
|
|
2553
|
-
glyph:
|
|
2552
|
+
children: /* @__PURE__ */ x(m, {
|
|
2553
|
+
glyph: a,
|
|
2554
2554
|
size: 16,
|
|
2555
2555
|
"aria-hidden": !0
|
|
2556
2556
|
})
|
|
@@ -2692,8 +2692,8 @@ function To({ layout: e = "trailing", variant: t = "outline", size: n = "md", wi
|
|
|
2692
2692
|
return /* @__PURE__ */ S(vo, {
|
|
2693
2693
|
...a,
|
|
2694
2694
|
width: r,
|
|
2695
|
-
children: [i != null && /* @__PURE__ */ S(Co, { children: [i, /* @__PURE__ */ x(wo, { children: /* @__PURE__ */ x(
|
|
2696
|
-
glyph:
|
|
2695
|
+
children: [i != null && /* @__PURE__ */ S(Co, { children: [i, /* @__PURE__ */ x(wo, { children: /* @__PURE__ */ x(m, {
|
|
2696
|
+
glyph: d,
|
|
2697
2697
|
size: 20,
|
|
2698
2698
|
"aria-hidden": !0
|
|
2699
2699
|
}) })] }), /* @__PURE__ */ x(yo, {
|
|
@@ -2861,8 +2861,8 @@ function $o({ children: e, ...t }) {
|
|
|
2861
2861
|
...t,
|
|
2862
2862
|
"data-imf-ui-component": "Select.ItemIndicator",
|
|
2863
2863
|
className: (e) => zt({ className: _(t.className, e) }),
|
|
2864
|
-
children: e ?? /* @__PURE__ */ x(
|
|
2865
|
-
glyph:
|
|
2864
|
+
children: e ?? /* @__PURE__ */ x(m, {
|
|
2865
|
+
glyph: p,
|
|
2866
2866
|
size: 16,
|
|
2867
2867
|
"aria-hidden": !0
|
|
2868
2868
|
})
|
|
@@ -3622,7 +3622,7 @@ var Ec = /* @__PURE__ */ x(Xs, {
|
|
|
3622
3622
|
size: "sm"
|
|
3623
3623
|
});
|
|
3624
3624
|
function Oc({ variant: e = "default", open: t, defaultOpen: n, onOpenChange: r, logo: i = e === "branded" ? Dc : Ec, account: a, children: o, id: s, ...c }) {
|
|
3625
|
-
let l = Cc("md"),
|
|
3625
|
+
let l = Cc("md"), ee = nt(), u = s ?? ee, { open: d, setOpen: f } = ic({
|
|
3626
3626
|
open: t,
|
|
3627
3627
|
defaultOpen: n,
|
|
3628
3628
|
onOpenChange: r
|
|
@@ -3630,7 +3630,7 @@ function Oc({ variant: e = "default", open: t, defaultOpen: n, onOpenChange: r,
|
|
|
3630
3630
|
return wc(l, d, t !== void 0, f), rt(() => (te((t) => ({
|
|
3631
3631
|
...t,
|
|
3632
3632
|
navbar: {
|
|
3633
|
-
id:
|
|
3633
|
+
id: u,
|
|
3634
3634
|
open: !l && d,
|
|
3635
3635
|
onOpenChange: f,
|
|
3636
3636
|
variant: e ?? "default",
|
|
@@ -3641,7 +3641,7 @@ function Oc({ variant: e = "default", open: t, defaultOpen: n, onOpenChange: r,
|
|
|
3641
3641
|
navbar: void 0
|
|
3642
3642
|
}))), [
|
|
3643
3643
|
te,
|
|
3644
|
-
|
|
3644
|
+
u,
|
|
3645
3645
|
l,
|
|
3646
3646
|
d,
|
|
3647
3647
|
f,
|
|
@@ -3649,7 +3649,7 @@ function Oc({ variant: e = "default", open: t, defaultOpen: n, onOpenChange: r,
|
|
|
3649
3649
|
i
|
|
3650
3650
|
]), l ? /* @__PURE__ */ x("nav", {
|
|
3651
3651
|
...c,
|
|
3652
|
-
id:
|
|
3652
|
+
id: u,
|
|
3653
3653
|
"data-imf-ui-component": "AppShell.Navbar",
|
|
3654
3654
|
className: b(K.navbar, lc({ variant: e }), c.className),
|
|
3655
3655
|
children: /* @__PURE__ */ x(Tc, {
|
|
@@ -3668,7 +3668,7 @@ function Oc({ variant: e = "default", open: t, defaultOpen: n, onOpenChange: r,
|
|
|
3668
3668
|
value: !0,
|
|
3669
3669
|
children: /* @__PURE__ */ x("nav", {
|
|
3670
3670
|
...c,
|
|
3671
|
-
id:
|
|
3671
|
+
id: u,
|
|
3672
3672
|
"data-imf-ui-component": "AppShell.Navbar",
|
|
3673
3673
|
className: b(K.drawerSection, c.className),
|
|
3674
3674
|
children: /* @__PURE__ */ x(Sc, { children: /* @__PURE__ */ x(Tc, {
|
|
@@ -3682,24 +3682,24 @@ function Oc({ variant: e = "default", open: t, defaultOpen: n, onOpenChange: r,
|
|
|
3682
3682
|
});
|
|
3683
3683
|
}
|
|
3684
3684
|
Oc.displayName = "AppShell.Navbar";
|
|
3685
|
-
function kc({ open: e, defaultOpen: t, onOpenChange: n, resizable: r = !0, onWidthChange: i, resizeLabel:
|
|
3686
|
-
let
|
|
3685
|
+
function kc({ open: e, defaultOpen: t, onOpenChange: n, resizable: r = !0, onWidthChange: i, resizeLabel: o = "Resize panel", closeLabel: s = "Close panel", children: c, ...l }) {
|
|
3686
|
+
let ee = Cc("lg"), u = Cc("md"), { open: d, setOpen: f } = ic({
|
|
3687
3687
|
open: e,
|
|
3688
3688
|
defaultOpen: t,
|
|
3689
3689
|
onOpenChange: n
|
|
3690
3690
|
});
|
|
3691
|
-
return wc(
|
|
3691
|
+
return wc(ee, d, e !== void 0, f), ee ? /* @__PURE__ */ S("aside", {
|
|
3692
3692
|
...l,
|
|
3693
3693
|
"data-imf-ui-component": "AppShell.Aside",
|
|
3694
3694
|
className: dc({ className: l.className }),
|
|
3695
3695
|
children: [r && /* @__PURE__ */ x(Pc, {
|
|
3696
|
-
label:
|
|
3696
|
+
label: o,
|
|
3697
3697
|
onWidthChange: i
|
|
3698
3698
|
}), c]
|
|
3699
3699
|
}) : /* @__PURE__ */ x(xc, {
|
|
3700
3700
|
open: d,
|
|
3701
3701
|
onOpenChange: f,
|
|
3702
|
-
swipeDirection:
|
|
3702
|
+
swipeDirection: u ? "right" : "down",
|
|
3703
3703
|
label: l["aria-label"],
|
|
3704
3704
|
className: K.asideDrawer,
|
|
3705
3705
|
children: /* @__PURE__ */ S("aside", {
|
|
@@ -3708,8 +3708,8 @@ function kc({ open: e, defaultOpen: t, onOpenChange: n, resizable: r = !0, onWid
|
|
|
3708
3708
|
className: b(K.drawerSection, l.className),
|
|
3709
3709
|
children: [/* @__PURE__ */ x(Ls, {
|
|
3710
3710
|
render: /* @__PURE__ */ x(be, {
|
|
3711
|
-
glyph:
|
|
3712
|
-
label:
|
|
3711
|
+
glyph: a,
|
|
3712
|
+
label: s,
|
|
3713
3713
|
variant: "ghost"
|
|
3714
3714
|
}),
|
|
3715
3715
|
className: K.asideDrawerClose
|
|
@@ -3758,7 +3758,7 @@ function Pc({ label: e, onWidthChange: t }) {
|
|
|
3758
3758
|
e !== void 0 && t?.(e);
|
|
3759
3759
|
}, l = () => {
|
|
3760
3760
|
r.current && (r.current = !1, jc(n.current)?.root.removeAttribute("data-resizing"), c());
|
|
3761
|
-
},
|
|
3761
|
+
}, ee = () => {
|
|
3762
3762
|
jc(n.current)?.root.style.removeProperty(Ac), c();
|
|
3763
3763
|
};
|
|
3764
3764
|
return rt(() => {
|
|
@@ -3787,7 +3787,7 @@ function Pc({ label: e, onWidthChange: t }) {
|
|
|
3787
3787
|
onPointerUp: l,
|
|
3788
3788
|
onPointerCancel: l,
|
|
3789
3789
|
onLostPointerCapture: l,
|
|
3790
|
-
onDoubleClick:
|
|
3790
|
+
onDoubleClick: ee,
|
|
3791
3791
|
onKeyDown: (e) => {
|
|
3792
3792
|
let t = jc(n.current);
|
|
3793
3793
|
if (!t) return;
|
|
@@ -3795,7 +3795,7 @@ function Pc({ label: e, onWidthChange: t }) {
|
|
|
3795
3795
|
if (e.key === "ArrowLeft") s(r + Mc());
|
|
3796
3796
|
else if (e.key === "ArrowRight") s(r - Mc());
|
|
3797
3797
|
else if (e.key !== "Home") return;
|
|
3798
|
-
e.preventDefault(), e.key === "Home" ?
|
|
3798
|
+
e.preventDefault(), e.key === "Home" ? ee() : c();
|
|
3799
3799
|
}
|
|
3800
3800
|
});
|
|
3801
3801
|
}
|
|
@@ -4080,7 +4080,7 @@ function dl({ variant: e = "info", children: t, ...n }) {
|
|
|
4080
4080
|
variant: e,
|
|
4081
4081
|
className: n.className
|
|
4082
4082
|
}),
|
|
4083
|
-
children: t ?? /* @__PURE__ */ x(
|
|
4083
|
+
children: t ?? /* @__PURE__ */ x(m, {
|
|
4084
4084
|
glyph: hi[e ?? "info"],
|
|
4085
4085
|
className: q.statusGlyph
|
|
4086
4086
|
})
|
|
@@ -4113,7 +4113,7 @@ function ml(e) {
|
|
|
4113
4113
|
return /* @__PURE__ */ x(ht.Close, {
|
|
4114
4114
|
...e,
|
|
4115
4115
|
render: n ? /* @__PURE__ */ x(be, {
|
|
4116
|
-
glyph:
|
|
4116
|
+
glyph: le,
|
|
4117
4117
|
label: e["aria-label"] ?? "Close",
|
|
4118
4118
|
variant: "ghost",
|
|
4119
4119
|
size: "sm",
|
|
@@ -4486,8 +4486,8 @@ function nu({ children: e, ...t }) {
|
|
|
4486
4486
|
...t,
|
|
4487
4487
|
"data-imf-ui-component": "Avatar.Fallback",
|
|
4488
4488
|
className: (e) => y(Ql.fallback)({ className: _(t.className, e) }),
|
|
4489
|
-
children: e ?? /* @__PURE__ */ x(
|
|
4490
|
-
glyph:
|
|
4489
|
+
children: e ?? /* @__PURE__ */ x(m, {
|
|
4490
|
+
glyph: ee,
|
|
4491
4491
|
className: Ql.glyph,
|
|
4492
4492
|
"aria-hidden": !0
|
|
4493
4493
|
})
|
|
@@ -4686,8 +4686,8 @@ function Eu({ children: e, ...t }) {
|
|
|
4686
4686
|
/* @__PURE__ */ x("span", {
|
|
4687
4687
|
className: xu.iconClosed,
|
|
4688
4688
|
"aria-hidden": !0,
|
|
4689
|
-
children: /* @__PURE__ */ x(
|
|
4690
|
-
glyph:
|
|
4689
|
+
children: /* @__PURE__ */ x(m, {
|
|
4690
|
+
glyph: ce,
|
|
4691
4691
|
size: 16,
|
|
4692
4692
|
strokeWidth: 1.5
|
|
4693
4693
|
})
|
|
@@ -4695,8 +4695,8 @@ function Eu({ children: e, ...t }) {
|
|
|
4695
4695
|
/* @__PURE__ */ x("span", {
|
|
4696
4696
|
className: xu.iconOpen,
|
|
4697
4697
|
"aria-hidden": !0,
|
|
4698
|
-
children: /* @__PURE__ */ x(
|
|
4699
|
-
glyph:
|
|
4698
|
+
children: /* @__PURE__ */ x(m, {
|
|
4699
|
+
glyph: oe,
|
|
4700
4700
|
size: 16,
|
|
4701
4701
|
strokeWidth: 1.5
|
|
4702
4702
|
})
|
|
@@ -4759,46 +4759,46 @@ var ku = {
|
|
|
4759
4759
|
single: Y.borderSingle
|
|
4760
4760
|
}
|
|
4761
4761
|
} });
|
|
4762
|
-
function ju({ alt: e, width: t, height: n, avifSrcSet: i, webpSrcSet: a, priority: o = !1, loading: s = "lazy", decoding:
|
|
4763
|
-
let
|
|
4764
|
-
|
|
4765
|
-
|
|
4762
|
+
function ju({ alt: e, width: t, height: n, avifSrcSet: i, webpSrcSet: a, priority: o = !1, loading: s = "lazy", decoding: c = "async", radius: l = "none", fit: ee = "cover", border: u = "none", borderWidth: d = 1, aspectRatio: f, className: te, style: ne, ref: re, ...ie }) {
|
|
4763
|
+
let p = [
|
|
4764
|
+
ie.src,
|
|
4765
|
+
ie.srcSet,
|
|
4766
4766
|
i,
|
|
4767
4767
|
a
|
|
4768
4768
|
].join("|"), [ae, oe] = w({
|
|
4769
|
-
key:
|
|
4769
|
+
key: p,
|
|
4770
4770
|
status: "loading"
|
|
4771
4771
|
});
|
|
4772
|
-
ae.key !==
|
|
4773
|
-
key:
|
|
4772
|
+
ae.key !== p && oe({
|
|
4773
|
+
key: p,
|
|
4774
4774
|
status: "loading"
|
|
4775
4775
|
});
|
|
4776
4776
|
let { status: se } = ae, ce = at(null), le = et((e) => {
|
|
4777
|
-
if (ce.current = e, typeof
|
|
4778
|
-
let t =
|
|
4777
|
+
if (ce.current = e, typeof re == "function") {
|
|
4778
|
+
let t = re(e);
|
|
4779
4779
|
return () => {
|
|
4780
|
-
typeof t == "function" ? t() :
|
|
4780
|
+
typeof t == "function" ? t() : re(null);
|
|
4781
4781
|
};
|
|
4782
4782
|
}
|
|
4783
|
-
if (
|
|
4784
|
-
|
|
4783
|
+
if (re) return re.current = e, () => {
|
|
4784
|
+
re.current = null;
|
|
4785
4785
|
};
|
|
4786
|
-
}, [
|
|
4786
|
+
}, [re]);
|
|
4787
4787
|
rt(() => {
|
|
4788
4788
|
let e = ce.current;
|
|
4789
4789
|
e?.complete && oe({
|
|
4790
|
-
key:
|
|
4790
|
+
key: p,
|
|
4791
4791
|
status: e.naturalWidth > 0 ? "loaded" : "error"
|
|
4792
4792
|
});
|
|
4793
|
-
}, [
|
|
4793
|
+
}, [p]);
|
|
4794
4794
|
let ue = () => {
|
|
4795
4795
|
oe({
|
|
4796
|
-
key:
|
|
4796
|
+
key: p,
|
|
4797
4797
|
status: "loaded"
|
|
4798
4798
|
});
|
|
4799
4799
|
}, h = () => {
|
|
4800
4800
|
oe({
|
|
4801
|
-
key:
|
|
4801
|
+
key: p,
|
|
4802
4802
|
status: "error"
|
|
4803
4803
|
});
|
|
4804
4804
|
};
|
|
@@ -4807,16 +4807,16 @@ function ju({ alt: e, width: t, height: n, avifSrcSet: i, webpSrcSet: a, priorit
|
|
|
4807
4807
|
"data-loading": se === "loading" ? "" : void 0,
|
|
4808
4808
|
"data-error": se === "error" ? "" : void 0,
|
|
4809
4809
|
className: Au({
|
|
4810
|
-
radius:
|
|
4810
|
+
radius: l,
|
|
4811
4811
|
fit: ee,
|
|
4812
|
-
border:
|
|
4813
|
-
className:
|
|
4812
|
+
border: u,
|
|
4813
|
+
className: te
|
|
4814
4814
|
}),
|
|
4815
|
-
"data-border-width":
|
|
4815
|
+
"data-border-width": u === "single" ? d : void 0,
|
|
4816
4816
|
style: {
|
|
4817
4817
|
inlineSize: t,
|
|
4818
|
-
aspectRatio:
|
|
4819
|
-
...
|
|
4818
|
+
aspectRatio: f ?? `${String(t)} / ${String(n)}`,
|
|
4819
|
+
...ne
|
|
4820
4820
|
},
|
|
4821
4821
|
children: [
|
|
4822
4822
|
se === "loading" && /* @__PURE__ */ x("span", {
|
|
@@ -4825,7 +4825,7 @@ function ju({ alt: e, width: t, height: n, avifSrcSet: i, webpSrcSet: a, priorit
|
|
|
4825
4825
|
}),
|
|
4826
4826
|
se === "error" && /* @__PURE__ */ x("span", {
|
|
4827
4827
|
className: Y.layer,
|
|
4828
|
-
children: /* @__PURE__ */ x(
|
|
4828
|
+
children: /* @__PURE__ */ x(m, {
|
|
4829
4829
|
glyph: r,
|
|
4830
4830
|
className: Y.glyph,
|
|
4831
4831
|
"aria-hidden": !0
|
|
@@ -4837,15 +4837,15 @@ function ju({ alt: e, width: t, height: n, avifSrcSet: i, webpSrcSet: a, priorit
|
|
|
4837
4837
|
i && /* @__PURE__ */ x("source", {
|
|
4838
4838
|
type: "image/avif",
|
|
4839
4839
|
srcSet: i,
|
|
4840
|
-
sizes:
|
|
4840
|
+
sizes: ie.sizes
|
|
4841
4841
|
}),
|
|
4842
4842
|
a && /* @__PURE__ */ x("source", {
|
|
4843
4843
|
type: "image/webp",
|
|
4844
4844
|
srcSet: a,
|
|
4845
|
-
sizes:
|
|
4845
|
+
sizes: ie.sizes
|
|
4846
4846
|
}),
|
|
4847
4847
|
/* @__PURE__ */ x("img", {
|
|
4848
|
-
...O(
|
|
4848
|
+
...O(ie, {
|
|
4849
4849
|
onLoad: ue,
|
|
4850
4850
|
onError: h
|
|
4851
4851
|
}),
|
|
@@ -4854,8 +4854,8 @@ function ju({ alt: e, width: t, height: n, avifSrcSet: i, webpSrcSet: a, priorit
|
|
|
4854
4854
|
width: t,
|
|
4855
4855
|
height: n,
|
|
4856
4856
|
loading: o ? "eager" : s,
|
|
4857
|
-
decoding:
|
|
4858
|
-
fetchPriority: o ? "high" :
|
|
4857
|
+
decoding: c,
|
|
4858
|
+
fetchPriority: o ? "high" : ie.fetchPriority,
|
|
4859
4859
|
className: Y.image
|
|
4860
4860
|
})
|
|
4861
4861
|
]
|
|
@@ -5163,8 +5163,8 @@ function xd({ icon: e, description: t, badge: n, label: r, children: i, ...a })
|
|
|
5163
5163
|
description: t,
|
|
5164
5164
|
badge: n,
|
|
5165
5165
|
ids: o,
|
|
5166
|
-
indicator: /* @__PURE__ */ x(bd, { children: /* @__PURE__ */ x(
|
|
5167
|
-
glyph:
|
|
5166
|
+
indicator: /* @__PURE__ */ x(bd, { children: /* @__PURE__ */ x(m, {
|
|
5167
|
+
glyph: p,
|
|
5168
5168
|
size: 16,
|
|
5169
5169
|
"aria-hidden": !0
|
|
5170
5170
|
}) }),
|
|
@@ -5205,8 +5205,8 @@ function wd({ icon: e, description: t, badge: n, label: r, children: i, ...a })
|
|
|
5205
5205
|
description: t,
|
|
5206
5206
|
badge: n,
|
|
5207
5207
|
ids: o,
|
|
5208
|
-
indicator: /* @__PURE__ */ x(Cd, { children: /* @__PURE__ */ x(
|
|
5209
|
-
glyph:
|
|
5208
|
+
indicator: /* @__PURE__ */ x(Cd, { children: /* @__PURE__ */ x(m, {
|
|
5209
|
+
glyph: p,
|
|
5210
5210
|
size: 16,
|
|
5211
5211
|
"aria-hidden": !0
|
|
5212
5212
|
}) }),
|
|
@@ -5235,8 +5235,8 @@ function Ed({ icon: e, description: t, badge: n, label: r, children: i, ...a })
|
|
|
5235
5235
|
description: t,
|
|
5236
5236
|
badge: n,
|
|
5237
5237
|
ids: o,
|
|
5238
|
-
indicator: /* @__PURE__ */ x(
|
|
5239
|
-
glyph:
|
|
5238
|
+
indicator: /* @__PURE__ */ x(m, {
|
|
5239
|
+
glyph: u,
|
|
5240
5240
|
size: 16,
|
|
5241
5241
|
"aria-hidden": !0
|
|
5242
5242
|
}),
|
|
@@ -5345,8 +5345,8 @@ function Kd({ active: e = !1, hideChevron: t = !1, nested: n = !1, children: r,
|
|
|
5345
5345
|
"data-active": e ? "" : void 0,
|
|
5346
5346
|
"data-nested": n ? "" : void 0,
|
|
5347
5347
|
className: (e) => Wd({ className: _(i.className, e) }),
|
|
5348
|
-
children: [r, !t && /* @__PURE__ */ x(qd, { children: /* @__PURE__ */ x(
|
|
5349
|
-
glyph:
|
|
5348
|
+
children: [r, !t && /* @__PURE__ */ x(qd, { children: /* @__PURE__ */ x(m, {
|
|
5349
|
+
glyph: ce,
|
|
5350
5350
|
size: 14
|
|
5351
5351
|
}) })]
|
|
5352
5352
|
});
|
|
@@ -5466,8 +5466,8 @@ function mf({ children: e, render: t, ...n }) {
|
|
|
5466
5466
|
children: t ? e : /* @__PURE__ */ S(Je, { children: [e, /* @__PURE__ */ x("span", {
|
|
5467
5467
|
className: ff.linkArrow,
|
|
5468
5468
|
"aria-hidden": !0,
|
|
5469
|
-
children: /* @__PURE__ */ x(
|
|
5470
|
-
glyph:
|
|
5469
|
+
children: /* @__PURE__ */ x(m, {
|
|
5470
|
+
glyph: c,
|
|
5471
5471
|
size: 14
|
|
5472
5472
|
})
|
|
5473
5473
|
})] })
|
|
@@ -5597,11 +5597,11 @@ function xf({ label: e, loading: t = !0, animation: n = "shimmer", render: r, ch
|
|
|
5597
5597
|
let [c, l] = w({
|
|
5598
5598
|
loading: t,
|
|
5599
5599
|
children: i
|
|
5600
|
-
}), [
|
|
5600
|
+
}), [ee, u] = w(!1);
|
|
5601
5601
|
(c.loading !== t || t && c.children !== i) && (l({
|
|
5602
5602
|
loading: t,
|
|
5603
5603
|
children: i
|
|
5604
|
-
}),
|
|
5604
|
+
}), u(c.loading && !t && n !== "none"));
|
|
5605
5605
|
let d = D({
|
|
5606
5606
|
defaultTagName: "div",
|
|
5607
5607
|
render: r,
|
|
@@ -5610,7 +5610,7 @@ function xf({ label: e, loading: t = !0, animation: n = "shimmer", render: r, ch
|
|
|
5610
5610
|
children: i,
|
|
5611
5611
|
"aria-busy": t || void 0,
|
|
5612
5612
|
"data-animation": n,
|
|
5613
|
-
"data-reveal":
|
|
5613
|
+
"data-reveal": ee ? "" : void 0,
|
|
5614
5614
|
"data-imf-ui-component": "Skeleton.Root"
|
|
5615
5615
|
}
|
|
5616
5616
|
});
|
|
@@ -5885,13 +5885,13 @@ function ap(e) {
|
|
|
5885
5885
|
return e === "asc" ? "ascending" : e === "desc" ? "descending" : "none";
|
|
5886
5886
|
}
|
|
5887
5887
|
function op({ sorted: e }) {
|
|
5888
|
-
let
|
|
5888
|
+
let t = e === "asc" ? ie : e === "desc" ? n : ae;
|
|
5889
5889
|
return /* @__PURE__ */ x("span", {
|
|
5890
5890
|
className: Jf(),
|
|
5891
5891
|
"data-sorted": e || void 0,
|
|
5892
5892
|
"aria-hidden": !0,
|
|
5893
|
-
children: /* @__PURE__ */ x(
|
|
5894
|
-
glyph:
|
|
5893
|
+
children: /* @__PURE__ */ x(m, {
|
|
5894
|
+
glyph: t,
|
|
5895
5895
|
size: 14,
|
|
5896
5896
|
strokeWidth: 1.5
|
|
5897
5897
|
})
|
|
@@ -6339,10 +6339,10 @@ var om = {
|
|
|
6339
6339
|
//#region src/icons/icon-config.tsx
|
|
6340
6340
|
function sm({ children: e, value: t }) {
|
|
6341
6341
|
let n = {
|
|
6342
|
-
...C(
|
|
6342
|
+
...C(ne),
|
|
6343
6343
|
...t
|
|
6344
6344
|
};
|
|
6345
|
-
return /* @__PURE__ */ x(
|
|
6345
|
+
return /* @__PURE__ */ x(ne.Provider, {
|
|
6346
6346
|
value: n,
|
|
6347
6347
|
children: e
|
|
6348
6348
|
});
|
|
@@ -6378,4 +6378,4 @@ function fm(e) {
|
|
|
6378
6378
|
return lm(dm(e).local.split(/[._-]+/));
|
|
6379
6379
|
}
|
|
6380
6380
|
//#endregion
|
|
6381
|
-
export { su as AccountCard, sc as AppShell, yn as Autocomplete, $l as Avatar, ye as Button, gi as Callout, Ti as Card, qn as Checkbox, yu as Chip, Ct as ChipLink, Ce as Code, Su as Collapsible, dr as ColorSchemeToggle, pr as Combobox, g as ComponentCategories, Dt as CopyButton, Vc as Dialog, hs as Drawer, qr as Field, li as Fieldset, Ba as FileDropZone,
|
|
6381
|
+
export { su as AccountCard, sc as AppShell, yn as Autocomplete, $l as Avatar, ye as Button, gi as Callout, Ti as Card, qn as Checkbox, yu as Chip, Ct as ChipLink, Ce as Code, Su as Collapsible, dr as ColorSchemeToggle, pr as Combobox, g as ComponentCategories, Dt as CopyButton, Vc as Dialog, hs as Drawer, qr as Field, li as Fieldset, Ba as FileDropZone, m as Icon, be as IconButton, Xs as ImFusionLogo, ju as Image, oo as Input, de as Kbd, Gs as Logo, Ku as Menu, Pu as Meter, _f as NavigationMenu, co as NumberField, bl as Popover, rc as ProductLogo, Ii as Progress, ql as Prose, jt as RichLink, Ae as Row, Me as ScrollArea, Do as Select, We as Separator, bf as Skeleton, ze as Slider, Pf as Spinner, ke as Stack, Ve as Switch, pp as TabNav, If as Table, Ue as Tabs, ds as Textarea, yp as Toast, pe as Toggle, me as ToggleGroup, Wp as Tooltip, Yi as Typo, cm as WebUIProvider, _u as accountCardMeta, Bc as appShellMeta, Kn as autocompleteMeta, vu as avatarMeta, xe as buttonMeta, wi as calloutMeta, Pi as cardMeta, Xn as checkboxMeta, wt as chipLinkMeta, bu as chipMeta, Ee as codeMeta, ku as collapsibleMeta, fr as colorSchemeToggleMeta, Gr as comboboxMeta, Qn as config, Ot as copyButtonMeta, Ke as cva, qe as cx, yl as dialogMeta, Us as drawerMeta, si as fieldMeta, mi as fieldsetMeta, ro as fileDropZoneMeta, Se as iconButtonMeta, te as iconMeta, Mu as imageMeta, fm as initialsFromEmail, um as initialsFromName, so as inputMeta, fe as kbdMeta, Ks as logoMeta, Ad as menuMeta, Gu as meterMeta, ms as minWidth, vf as navigationMenuMeta, Eo as numberFieldMeta, Gl as popoverMeta, qi as progressMeta, Jl as proseMeta, Mt as richLinkMeta, Yl as rowMeta, Xl as scrollAreaMeta, ss as selectMeta, Zl as separatorMeta, Df as skeletonMeta, cs as sliderMeta, Ff as spinnerMeta, dm as splitEmail, Ji as stackMeta, ls as switchMeta, _p as tabNavMeta, dp as tableMeta, vp as tabsMeta, fs as textareaMeta, Up as toastMeta, Oe as toggleGroupMeta, De as toggleMeta, om as tooltipMeta, ma as typoMeta, we as useClipboard, cr as useColorScheme, ic as useDisclosure, oc as useMediaQuery, au as withBreakHints };
|