210 lines
5.3 KiB
JavaScript
210 lines
5.3 KiB
JavaScript
/*
|
|
* Extracted from browser-delivered Turbopack chunk: 2cd465e94e439d21.d295534e06.js
|
|
* Module id: 182004
|
|
* For reading/searching only; this factory depends on the original Turbopack runtime.
|
|
*/
|
|
|
|
const moduleFactory = (e) => {
|
|
"use strict";
|
|
var t,
|
|
r,
|
|
o,
|
|
n =
|
|
(((t = {}).TEXT = "text"),
|
|
(t.IMAGE = "image"),
|
|
(t.VIDEO = "video"),
|
|
(t.AUDIO = "audio"),
|
|
(t.CUSTOM = "custom"),
|
|
(t.GROUP = "group"),
|
|
(t.SCRIPT = "script"),
|
|
(t.VIDEO_STORY = "video-story"),
|
|
(t.VIDEO_GROUP = "video_group"),
|
|
(t.VIDEO_CLIP = "video-clip"),
|
|
(t.SPACE_SCENE_720 = "space-scene-720"),
|
|
t);
|
|
let i = {
|
|
text: "文本",
|
|
image: "图片",
|
|
video: "视频",
|
|
audio: "音频",
|
|
custom: "自定义",
|
|
group: "分组",
|
|
script: "脚本",
|
|
"video-story": "视频故事",
|
|
video_group: "视频组",
|
|
"video-clip": "视频合成",
|
|
storyboard: "脚本",
|
|
temp: "临时",
|
|
};
|
|
function a(e) {
|
|
if ("string" != typeof e) return;
|
|
let t = e.trim();
|
|
if (t) return i[t];
|
|
}
|
|
var s = (((r = {}).DEFAULT = "default"), (r.ENHANCE = "enhance"), r),
|
|
l =
|
|
(((o = {}).TEXT_GENERATE = "text_generate"),
|
|
(o.TEXT_RESOURCE = "text_resource"),
|
|
(o.IMAGE_GENERATE = "image_generate"),
|
|
(o.IMAGE_EDIT = "image_edit"),
|
|
(o.IMAGE_RESOURCE = "image_resource"),
|
|
(o.VIDEO_GENERATE = "video_generate"),
|
|
(o.VIDEO_EDIT = "video_edit"),
|
|
(o.VIDEO_RESOURCE = "video_resource"),
|
|
(o.VIDEO_CLIP_RESOURCE = "video_clip_resource"),
|
|
(o.AUDIO_GENERATE = "audio_generate"),
|
|
(o.AUDIO_RESOURCE = "audio_resource"),
|
|
(o.SCRIPT_GENERATE = "script_generate"),
|
|
(o.SCRIPT_RESOURCE = "script_resource"),
|
|
(o.VIDEO_STORY_RESOURCE = "video_story_resource"),
|
|
o);
|
|
let c = [
|
|
{
|
|
key: "shotNumber",
|
|
apiKey: "shot_number",
|
|
label: "镜号",
|
|
numeric: !0,
|
|
fieldType: "number",
|
|
},
|
|
{
|
|
key: "durationSeconds",
|
|
apiKey: "duration_seconds",
|
|
label: "时长",
|
|
numeric: !0,
|
|
fieldType: "number",
|
|
},
|
|
{
|
|
key: "plotDescription",
|
|
apiKey: "plot_description",
|
|
label: "画面描述",
|
|
numeric: !1,
|
|
fieldType: "text",
|
|
},
|
|
{
|
|
key: "videoReference",
|
|
apiKey: "video_reference",
|
|
label: "视频参考图",
|
|
numeric: !1,
|
|
fieldType: "image",
|
|
},
|
|
{
|
|
key: "shotSize",
|
|
apiKey: "shot_size",
|
|
label: "景别",
|
|
numeric: !1,
|
|
fieldType: "text",
|
|
},
|
|
{
|
|
key: "characterAction",
|
|
apiKey: "character_action",
|
|
label: "角色动作",
|
|
numeric: !1,
|
|
fieldType: "text",
|
|
},
|
|
{
|
|
key: "emotion",
|
|
apiKey: "emotion",
|
|
label: "表情",
|
|
numeric: !1,
|
|
fieldType: "text",
|
|
},
|
|
{
|
|
key: "sceneTags",
|
|
apiKey: "scene_tags",
|
|
label: "场景",
|
|
numeric: !1,
|
|
fieldType: "text",
|
|
},
|
|
{
|
|
key: "lightingAndAtmosphere",
|
|
apiKey: "lighting_and_atmosphere",
|
|
label: "光影氛围",
|
|
numeric: !1,
|
|
fieldType: "text",
|
|
},
|
|
{
|
|
key: "audioEffects",
|
|
apiKey: "audio_effects",
|
|
label: "音效",
|
|
numeric: !1,
|
|
fieldType: "text",
|
|
},
|
|
{
|
|
key: "dialogue",
|
|
apiKey: "dialogue",
|
|
label: "对白",
|
|
numeric: !1,
|
|
fieldType: "text",
|
|
},
|
|
{
|
|
key: "imageGenerationPrompt",
|
|
apiKey: "image_generation_prompt",
|
|
label: "分镜提示词",
|
|
numeric: !1,
|
|
fieldType: "text",
|
|
},
|
|
{
|
|
key: "videoMotionPrompt",
|
|
apiKey: "video_motion_prompt",
|
|
label: "视频提示词",
|
|
numeric: !1,
|
|
fieldType: "text",
|
|
},
|
|
];
|
|
function u(e, t) {
|
|
let r = c.find((t) => t.key === e);
|
|
if (t?.length && r) {
|
|
let e = t.find((e) => e.field === r.apiKey);
|
|
if (e) return e.label;
|
|
}
|
|
return r?.label ?? e;
|
|
}
|
|
let d = new Set([
|
|
"image_resource",
|
|
"video_resource",
|
|
"video_clip_resource",
|
|
"audio_resource",
|
|
"text_resource",
|
|
"script_resource",
|
|
"video_story_resource",
|
|
]);
|
|
function f(e) {
|
|
return null != e && d.has(e);
|
|
}
|
|
e.s([
|
|
"DEFAULT_SCRIPT_VIEWS",
|
|
0,
|
|
[
|
|
{ id: "default", type: "table", name: "脚本视图" },
|
|
{ id: "creative", type: "creative", name: "创意视图" },
|
|
],
|
|
"GeneratorType",
|
|
() => s,
|
|
"NodeAction",
|
|
() => l,
|
|
"NodeType",
|
|
() => n,
|
|
"SCRIPT_FIELD_META",
|
|
0,
|
|
c,
|
|
"getFieldLabel",
|
|
() => u,
|
|
"getMediaType",
|
|
0,
|
|
(e) =>
|
|
e.includes("image")
|
|
? { action: "image_resource", nodeType: "image" }
|
|
: e.includes("video")
|
|
? { action: "video_resource", nodeType: "video" }
|
|
: e.includes("audio")
|
|
? { action: "audio_resource", nodeType: "audio" }
|
|
: { action: "text_resource", nodeType: "text" },
|
|
"isResourceAction",
|
|
() => f,
|
|
"resolveCanvasNodeTypeLabelZh",
|
|
() => a,
|
|
]);
|
|
};
|
|
|
|
export default moduleFactory;
|