Your Name 1912bcd25b
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
chore: sync all remaining local workspace changes
2026-05-08 11:26:57 +08:00

45 lines
1.2 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 36466d3530b7d918.083c839b6e.js
* Module id: 64560
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e) => {
"use strict";
var t = e.i(462214),
r = e.i(358379),
a = e.i(41671),
n = e.i(41114);
let o = /^(https?:\/\/|\/|data:image\/)/i,
i = /\.(png|jpe?g|webp|gif|svg)(\?.*)?$/i;
function s({
icon: e,
fallbackIcon: s = "lucide:box",
className: l,
imageClassName: c,
width: u,
height: d,
}) {
let [p, m] = (0, r.useState)(!1),
f = !!e && !p && (o.test(e) || i.test(e)),
h = e && !f ? e : s;
return f
? (0, t.jsx)("img", {
src: e,
alt: "",
"aria-hidden": !0,
loading: "lazy",
className: (0, n.cn)("light-invert-icon object-contain", c),
onError: () => m(!0),
})
: (0, t.jsx)(a.IconifyIcon, {
icon: h,
className: l,
...(null != u && null != d ? { width: u, height: d } : {}),
});
}
e.s(["ModelSelectIcon", () => s]);
};
export default moduleFactory;