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

93 lines
2.4 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 042913757dfeb33b.7750222294.js
* Module id: 184299
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e) => {
"use strict";
var t = e.i(848024),
r = e.i(91134),
i = e.i(459812);
let n = "720_panoramic_with_prompt",
a = "720_panoramic",
s = "nebula-2-flash";
function l(e) {
return e.scene === n;
}
function o(e) {
return e === n || e === a;
}
function u(e) {
return o(e.scene);
}
function c(e, t) {
return e !== a ? t : { ...t, quality: "2K", ratio: "21:9" };
}
function d(e, t) {
if (e.cameraControl) return { ...e.cameraControl, enabled: !1 };
let i = (0, r.loadCameraControlStorage)();
return i
? { ...i, enabled: !1 }
: t
? { ...(0, r.buildCameraDefaults)(t), enabled: !1 }
: void 0;
}
function f(e, r, a, l) {
let o = e("image", s),
u = { model: s, scene: n, fineTuneModels: [] };
if (!o)
return {
...u,
settings: { ...(r.settings ?? {}), ratio: "21:9" },
cameraControl: d(r, l),
};
let c = (0, i.mergeParamsWithSchema)(
r.settings,
r.advancedSettings,
o,
a,
),
f = o.properties ?? {},
p = o.config ?? {},
m = (0, t.getSettingKeys)(p, a),
g = { ...c.settings };
for (let e of m) {
let r = f[e];
if (!r) continue;
let i = (0, t.getStoreKey)(e, r),
n = (0, t.normalizeEnumOptions)(r.enum);
e.startsWith("ratio") &&
(n.some((e) => "21:9" === String(e.value))
? (g[i] = "21:9")
: g[i] || (g[i] = (0, t.getDefaultValue)(r)));
}
return {
...u,
settings: g,
advancedSettings: c.advancedSettings,
cameraControl: d(r, l),
};
}
e.s([
"PANORAMIC_LOCKED_MODEL_KEY",
0,
s,
"PANORAMIC_SLASH_SCENE",
0,
a,
"buildPanoramicWithPromptEnablePatch",
() => f,
"isPanoramicGenerationScene",
() => o,
"isPanoramicModeActive",
() => u,
"isPanoramicWithPromptActive",
() => l,
"mergeSettingsForPanoramicSlashScene",
() => c,
]);
};
export default moduleFactory;