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

32 lines
834 B
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 1da3af88666fe4c8.e799ee1631.js
* Module id: 20028
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e) => {
"use strict";
var t = e.i(358379),
r = e.i(24917);
function o({
type: e,
nodeModel: o,
defaultModel: n,
incomingData: i,
getModel: a,
modality: l,
isModelCompatible: s,
}) {
let c = r.generatorCacheStore.getState().getCache(e)?.model;
return (0, t.useMemo)(() => {
if (o && a(l, o)) return o;
if (!c) return n;
let e = a(l, c);
return e && (!s || s(e, { incomingData: i })) ? c : n;
}, [o, c, n, a, l, i, s]);
}
e.s(["useCachedModel", () => o]);
};
export default moduleFactory;