PageSourceSearch

https://www.ai-geminiomni.com/_astro/PromptTemplatesModal.astro_astro_type_script_index_0_lang.C8Vn1fa3.js

js ai-geminiomni.com collected 2026-10-04 13:25:22 UTC 20,469 bytes, 1 lines download raw bytes

1function t(e,o){const y=e[o];return Array.isArray(y)?y.filter(Boolean).join(", "):(y||"").toString().trim()}function u(e,o,y,r){return r?o.shared?e(`pg.opt.${o.shared}.${r}`):e(`pg.tpl.${y}.field.${o.key}.option.${r}`):""}function j(e,o,y,r){const n=r[o.key];return(Array.isArray(n)?n:n?[n]:[]).filter(Boolean).map(a=>u(e,o,y,a)).filter(Boolean).join(", ")}function f(e){return e.filter(o=>!!o&&o.length>0).join(" ")}function $(e,o=1e3){return e.length<=o?e:e.slice(0,o-1).trimEnd()+"…"}function k(e){return e==="zh"||e.startsWith("zh-")}const M={id:"product-ad",icon:"M5 7h14l-1 13H6L5 7zm3-2a3 3 0 016 0v2H8V5z",fields:[{key:"productName",type:"text",required:!0,maxlength:60},{key:"sellingPoints",type:"textarea",required:!0,maxlength:240},{key:"audience",type:"text",maxlength:80},{key:"platform",type:"select",shared:"platform"},{key:"ratio",type:"select",shared:"ratio"},{key:"duration",type:"select",shared:"duration"},{key:"style",type:"multiselect",shared:"style"},{key:"language",type:"select",shared:"language"},{key:"cta",type:"text",maxlength:80}],buildBrief:(e,o,y)=>{const r=t(e,"productName"),n=t(e,"sellingPoints"),i=t(e,"audience"),a=u(o,M.fields[3],M.id,t(e,"platform")),s=u(o,M.fields[4],M.id,t(e,"ratio")),d=u(o,M.fields[5],M.id,t(e,"duration")),c=j(o,M.fields[6],M.id,e),l=u(o,M.fields[7],M.id,t(e,"language")),p=t(e,"cta");if(k(y)){const x=f([r&&`产品带货视频脚本,主推【${r}】。`,d&&s&&`时长 ${d},比例 ${s}。`,a&&`投放平台:${a}。`,n&&`核心卖点:${n}。`,i&&`目标人群:${i}。`,c&&`视觉风格:${c}。`,l&&`画外音语言:${l}。`,p&&`结尾 CTA:${p}。`]);return $(x)}const m=f([r&&`Product video script highlighting ${r}.`,d&&s&&`Length ${d}, aspect ratio ${s}.`,a&&`Posting on ${a}.`,n&&`Core selling points: ${n}.`,i&&`Target audience: ${i}.`,c&&`Visual style: ${c}.`,l&&`Voice-over language: ${l}.`,p&&`Closing CTA: "${p}".`]);return $(m)}},B={id:"brand-hero",icon:"M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.56 5.82 22 7 14.14l-5-4.87 6.91-1.01L12 2z",fields:[{key:"brandName",type:"text",required:!0,maxlength:60},{key:"productName",type:"text",maxlength:60},{key:"positioning",type:"textarea",required:!0,maxlength:200},{key:"keyMessage",type:"text",maxlength:120},{key:"scene",type:"text",maxlength:100},{key:"ratio",type:"select",shared:"ratio"},{key:"duration",type:"select",shared:"duration"},{key:"mood",type:"select",shared:"mood"},{key:"pace",type:"select",shared:"pace"}],buildBrief:(e,o,y)=>{const r=t(e,"brandName"),n=t(e,"productName"),i=t(e,"positioning"),a=t(e,"keyMessage"),s=t(e,"scene"),d=u(o,B.fields[5],B.id,t(e,"ratio")),c=u(o,B.fields[6],B.id,t(e,"duration")),l=u(o,B.fields[7],B.id,t(e,"mood")),p=u(o,B.fields[8],B.id,t(e,"pace"));if(k(y)){const x=f([r&&`品牌大片:【${r}】${n?`,主推产品【${n}】`:""}。`,c&&d&&`时长 ${c},比例 ${d}。`,i&&`品牌定位:${i}。`,a&&`核心信息:${a}。`,s&&`场景设定:${s}。`,l&&`情绪基调:${l}。`,p&&`镜头节奏:${p}。`]);return $(x)}const m=f([r&&`Brand hero film for ${r}${n?`, featuring ${n}`:""}.`,c&&d&&`Length ${c}, ratio ${d}.`,i&&`Brand positioning: ${i}.`,a&&`Key message: ${a}.`,s&&`Scene: ${s}.`,l&&`Mood: ${l}.`,p&&`Pacing: ${p}.`]);return $(m)}},T={id:"unboxing",icon:"M3 7l9-4 9 4-9 4-9-4zm0 5l9 4 9-4M3 17l9 4 9-4",fields:[{key:"productName",type:"text",required:!0,maxlength:60},{key:"packagingNotes",type:"textarea",maxlength:200},{key:"narratorPersona",type:"text",maxlength:80},{key:"platform",type:"select",shared:"platform"},{key:"ratio",type:"select",shared:"ratio"},{key:"duration",type:"select",shared:"duration"},{key:"pace",type:"select",shared:"pace"}],buildBrief:(e,o,y)=>{const r=t(e,"productName"),n=t(e,"packagingNotes"),i=t(e,"narratorPersona"),a=u(o,T.fields[3],T.id,t(e,"platform")),s=u(o,T.fields[4],T.id,t(e,"ratio")),d=u(o,T.fields[5],T.id,t(e,"duration")),c=u(o,T.fields[6],T.id,t(e,"pace"));if(k(y)){const p=f([r&&`开箱视频:【${r}】。`,d&&s&&`时长 ${d},比例 ${s}。`,a&&`平台:${a}。`,n&&`包装细节:${n}。`,i&&`口播人设:${i}。`,c&&`节奏:${c}。`]);return $(p)}const l=f([r&&`Unboxing video for ${r}.`,d&&s&&`Length ${d}, ratio ${s}.`,a&&`Platform: ${a}.`,n&&`Packaging detail: ${n}.`,i&&`Narrator persona: ${i}.`,c&&`Pacing: ${c}.`]);return $(l)}},w={id:"tutorial",icon:"M4 4h16v12H4zM2 20h20M10 10l3 2-3 2v-4z",fields:[{key:"topic",type:"text",required:!0,maxlength:80},{key:"steps",type:"textarea",required:!0,maxlength:260},{key:"audience",type:"text",maxlength:80},{key:"presenterPersona",type:"text",maxlength:80},{key:"platform",type:"select",shared:"platform"},{key:"ratio",type:"select",shared:"ratio"},{key:"duration",type:"select",shared:"duration"},{key:"tone",type:"select",shared:"tone"}],buildBrief:(e,o,y)=>{const r=t(e,"topic"),n=t(e,"steps"),i=t(e,"audience"),a=t(e,"presenterPersona"),s=u(o,w.fields[4],w.id,t(e,"platform")),d=u(o,w.fields[5],w.id,t(e,"ratio")),c=u(o,w.fields[6],w.id,t(e,"duration")),l=u(o,w.fields[7],w.id,t(e,"tone"));if(k(y)){const m=f([r&&`教程讲解视频:主题【${r}】。`,c&&d&&`时长 ${c},比例 ${d}。`,s&&`平台:${s}。`,n&&`步骤要点:${n}
1。`,i&&`面向人群:${i}。`,a&&`主讲人设:${a}。`,l&&`语气:${l}。`]);return $(m)}const p=f([r&&`Tutorial video on ${r}.`,c&&d&&`Length ${c}, ratio ${d}.`,s&&`Platform: ${s}.`,n&&`Key steps: ${n}.`,i&&`Audience: ${i}.`,a&&`Presenter persona: ${a}.`,l&&`Tone: ${l}.`]);return $(p)}},V={id:"testimonial",icon:"M21 11.5a8.38 8.38 0 01-9 8.5 8.5 8.5 0 01-7.6-4.7L3 21l1.7-1.4A8.38 8.38 0 013 11.5 8.5 8.5 0 0111.5 3a8.38 8.38 0 019.5 8.5z",fields:[{key:"productName",type:"text",required:!0,maxlength:60},{key:"persona",type:"text",required:!0,maxlength:80},{key:"problem",type:"textarea",maxlength:160},{key:"outcome",type:"textarea",maxlength:160},{key:"scene",type:"text",maxlength:100},{key:"ratio",type:"select",shared:"ratio"},{key:"duration",type:"select",shared:"duration"},{key:"language",type:"select",shared:"language"}],buildBrief:(e,o,y)=>{const r=t(e,"productName"),n=t(e,"persona"),i=t(e,"problem"),a=t(e,"outcome"),s=t(e,"scene"),d=u(o,V.fields[5],V.id,t(e,"ratio")),c=u(o,V.fields[6],V.id,t(e,"duration")),l=u(o,V.fields[7],V.id,t(e,"language"));if(k(y)){const m=f([r&&`用户证言视频:聚焦【${r}】。`,n&&`主角人设:${n}。`,c&&d&&`时长 ${c},比例 ${d}。`,i&&`原始困扰:${i}。`,a&&`使用后效果:${a}。`,s&&`拍摄场景:${s}。`,l&&`语言:${l}。`]);return $(m)}const p=f([r&&`Customer testimonial video for ${r}.`,n&&`Featured persona: ${n}.`,c&&d&&`Length ${c}, ratio ${d}.`,i&&`Original problem: ${i}.`,a&&`Outcome after using the product: ${a}.`,s&&`Scene: ${s}.`,l&&`Language: ${l}.`]);return $(p)}},E={id:"seasonal-promo",icon:"M12 2v6m0 8v6M4.93 4.93l4.24 4.24m5.66 5.66l4.24 4.24M2 12h6m8 0h6M4.93 19.07l4.24-4.24m5.66-5.66l4.24-4.24",fields:[{key:"holiday",type:"text",required:!0,maxlength:60},{key:"brandName",type:"text",required:!0,maxlength:60},{key:"offer",type:"textarea",required:!0,maxlength:200},{key:"audience",type:"text",maxlength:80},{key:"platform",type:"select",shared:"platform"},{key:"ratio",type:"select",shared:"ratio"},{key:"duration",type:"select",shared:"duration"},{key:"mood",type:"select",shared:"mood"}],buildBrief:(e,o,y)=>{const r=t(e,"holiday"),n=t(e,"brandName"),i=t(e,"offer"),a=t(e,"audience"),s=u(o,E.fields[4],E.id,t(e,"platform")),d=u(o,E.fields[5],E.id,t(e,"ratio")),c=u(o,E.fields[6],E.id,t(e,"duration")),l=u(o,E.fields[7],E.id,t(e,"mood"));if(k(y)){const m=f([r&&n&&`节日营销视频:【${n}】×【${r}】。`,c&&d&&`时长 ${c},比例 ${d}。`,s&&`投放平台:${s}。`,i&&`主推活动:${i}。`,a&&`目标人群:${a}。`,l&&`情绪基调:${l}。`]);return $(m)}const p=f([r&&n&&`Seasonal promo video: ${n} for ${r}.`,c&&d&&`Length ${c}, ratio ${d}.`,s&&`Platform: ${s}.`,i&&`Featured offer: ${i}.`,a&&`Audience: ${a}.`,l&&`Mood: ${l}.`]);return $(p)}},S={id:"fashion-tryon",icon:"M16 2l5 4-3 3v13H6V9L3 6l5-4 2 2h4l2-2zM10 4l2 2 2-2",fields:[{key:"itemList",type:"textarea",required:!0,maxlength:200},{key:"season",type:"select",shared:"season"},{key:"style",type:"multiselect",shared:"style"},{key:"scene",type:"text",maxlength:100},{key:"modelPersona",type:"text",maxlength:80},{key:"ratio",type:"select",shared:"ratio"},{key:"duration",type:"select",shared:"duration"}],buildBrief:(e,o,y)=>{const r=t(e,"itemList"),n=u(o,S.fields[1],S.id,t(e,"season")),i=j(o,S.fields[2],S.id,e),a=t(e,"scene"),s=t(e,"modelPersona"),d=u(o,S.fields[5],S.id,t(e,"ratio")),c=u(o,S.fields[6],S.id,t(e,"duration"));if(k(y)){const p=f([r&&"OOTD / 服装试穿视频。",c&&d&&`时长 ${c},比例 ${d}。`,r&&`搭配单品:${r}。`,n&&`季节:${n}。`,i&&`风格:${i}。`,a&&`场景:${a}。`,s&&`模特人设:${s}。`]);return $(p)}const l=f([r&&"OOTD / fashion try-on video.",c&&d&&`Length ${c}, ratio ${d}.`,r&&`Outfit pieces: ${r}.`,n&&`Season: ${n}.`,i&&`Style: ${i}.`,a&&`Scene: ${a}.`,s&&`Model persona: ${s}.`]);return $(l)}},D={id:"food-review",icon:"M3 11h18v6a4 4 0 01-4 4H7a4 4 0 01-4-4v-6zm3-6h12a3 3 0 013 3v1H3V8a3 3 0 013-3z",fields:[{key:"dish",type:"text",required:!0,maxlength:60},{key:"venueName",type:"text",maxlength:80},{key:"vibe",type:"text",maxlength:100},{key:"narratorPersona",type:"text",maxlength:80},{key:"ratio",type:"select",shared:"ratio"},{key:"duration",type:"select",shared:"duration"},{key:"pace",type:"select",shared:"pace"}],buildBrief:(e,o,y)=>{const r=t(e,"dish"),n=t(e,"venueName"),i=t(e,"vibe"),a=t(e,"narratorPersona"),s=u(o,D.fields[4],D.id,t(e,"ratio")),d=u(o,D.fields[5],D.id,t(e,"duration")),c=u(o,D.fields[6],D.id,t(e,"pace"));if(k(y)){const p=f([r&&`美食测评 / 短探店视频:【${r}】${n?`(${n})`:""}。`,d&&s&&`时长 ${d},比例 ${s}。`,i&&`氛围:${i}。`,a&&`口播人设:${a}。`,c&&`节奏:${c}。`]);return $(p)}const l=f([r&&`Food review video: ${r}${n?` at ${n}`:""}.`,d&&s&&`Length ${d}, ratio ${s}.`,i&&`Vibe: ${i}.`,a&&`Narrator persona: ${a}.`,c&&`Pacing: ${c}.`]);return $(l)}},P={id:"daily-vlog",icon:"M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 7h8a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2V9a2 2 0 012-2z",fields:[{key:"theme",type:"text",required:!0,maxlength:80},{key:"moments",type:"textarea",required:!0,maxlength:260},{key:"location",type:"text",maxlength:100},{key:"narratorPersona",type:"text",maxlength:80},{key:"platform",type:"select",shared:"platform"},{key:"ratio",type:"select",shared:"ratio"},{key:"duration",type:"select",shared:"duration"},{key:"mood",type:"select",shared:"mood"},{key:"pace",type:"select",shared:"pace"}],buildBrief:(e,o,y)=>{const r=t(e,"theme"),n=t(e,"moments"),i=t(e,"location"),a=t(e,"narratorPersona"),s=u(o,P.fields[4],P.id,t(e,"platform")),d=u(o,P.fields[5],P.id,t(e,"ratio")),c=u(o,P.fields[6],P.id,t(e,"duration")),l=u(o,P.fields[7],P.id,t(e,"mood")),p=u(o,P.fields[8],P.id,t(e,"pace"));if(k(y)){const x=f([r&&`日常 Vlog / 生活分享视频:主题【${r}】。`,c&&d&&`时长 ${c},比例 ${d}。`,s&&`平台:${s}。`,n&&`关键片段:${n}。`,i&&`场景地点:${i}。`,a&&`出镜人设:${a}。`,l&&`情绪基调:${l}。`,p&&`节奏:${p}。`]);return $(x)}const m=f([r&&`Daily vlog / lifestyle video about ${r}.`,c&&d&&`Length ${c}, ratio ${d}.`,s&&`Platform: ${s}.`,n&&`Key moments: ${n}.`,i&&`Location: ${i}.`,a&&`On-camera persona: ${a}.`,l&&`Mood: ${l}.`,p&&`Pacing: ${p}.`]);return $(m)}},z={id:"talking-head",icon:"M12 15a4 4 0 004-4V6a4 4 0 00-8 0v5a4 4 0 004 4zM6 11a6 6 0 0012 0M12 19v3",fields:[{key:"topic",type:"text",required:!0,maxlength:80},{key:"keyPoints",type:"textarea",required:!0,maxlength:240},{key:"hook",type:"text",maxlength:120},{key:"presenterPersona",type:"text",maxlength:80},{key:"platform",type:"select",shared:"platform"},{key:"ratio",type:"select",shared:"ratio"},{key:"duration",type:"select",shared:"duration"},{key:"tone",type:"select",shared:"tone"},{key:"cta",type:"text",maxlength:80}],buildBrief:(e,o,y)=>{const r=t(e,"topic"),n=t(e,"keyPoints"),i=t(e,"hook"),a=t(e,"presenterPersona"),s=u(o,z.fields[4],z.id,t(e,"platform")),d=u(o,z.fields[5],z.id,t(e,"ratio")),c=u(o,z.fields[6],z.id,t(e,"duration")),l=u(o,z.fields[7],z.id,t(e,"tone")),p=t(e,"cta");if(k(y)){const x=f([r&&`口播观点 / 干货分享视频:话题【${r}】。`,c&&d&&`时长 ${c},比例 ${d}。`,s&&`平台:${s}。`,i&&`开场钩子:${i}。`,n&&`核心观点:${n}。`,a&&`出镜人设:${a}。`,l&&`语气:${l}。`,p&&`结尾引导:${p}。`]);return $(x)}const m=f([r&&`Talking-head opinion video on ${r}.`,c&&d&&`Length ${c}, ratio ${d}.`,s&&`Platform: ${s}.`,i&&`Opening hook: ${i}.`,n&&`Key points: ${n}.`,a&&`Presenter persona: ${a}.`,l&&`Tone: ${l}.`,p&&`Closing CTA: "${p}".`]);return $(m)}},L={id:"trend-challenge",icon:"M3 17l6-6 4 4 8-8M15 7h6v6",fields:[{key:"trendName",type:"text",required:!0,maxlength:80},{key:"twist",type:"textarea",required:!0,maxlength:220},{key:"productOrTopic",type:"text",maxlength:100},{key:"platform",type:"select",shared:"platform"},{key:"ratio",type:"select",shared:"ratio"},{key:"duration",type:"select",shared:"duration"},{key:"style",type:"multiselect",shared:"style"},{key:"pace",type:"select",shared:"pace"}],buildBrief:(e,o,y)=>{const r=t(e,"trendName"),n=t(e,"twist"),i=t(e,"productOrTopic"),a=u(o,L.fields[3],L.id,t(e,"platform")),s=u(o,L.fields[4],L.id,t(e,"ratio")),d=u(o,L.fields[5],L.id,t(e,"duration")),c=j(o,L.fields[6],L.id,e),l=u(o,L.fields[7],L.id,t(e,"pace"));if(k(y)){const m=f([r&&`热点跟拍 / 挑战视频:借势【${r}】。`,d&&s&&`时长 ${d},比例 ${s}。`,a&&`平台:${a}。`,i&&`结合主题 / 产品:${i}。`,n&&`你的演绎:${n}。`,c&&`视觉风格:${c}。`,l&&`节奏:${l}。`]);return $(m)}const p=f([r&&`Trend / challenge video riding ${r}.`,d&&s&&`Length ${d}, ratio ${s}.`,a&&`Platform: ${a}.`,i&&`Tied to: ${i}.`,n&&`Your take: ${n}.`,c&&`Visual style: ${c}.`,l&&`Pacing: ${l}.`]);return $(p)}},O={id:"listicle",icon:"M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01",fields:[{key:"topic",type:"text",required:!0,maxlength:80},{key:"items",type:"textarea",required:!0,maxlength:280},{key:"audience",type:"text",maxlength:80},{key:"narratorPersona",type:"text",maxlength:80},{key:"platform",type:"select",shared:"platform"},{key:"ratio",type:"select",shared:"ratio"},{key:"duration",type:"select",shared:"duration"},{key:"tone",type:"select",shared:"tone"}],buildBrief:(e,o,y)=>{const r=t(e,"topic"),n=t(e,"items"),i=t(e,"audience"),a=t(e,"narratorPersona"),s=u(o,O.fields[4],O.id,t(e,"platform")),d=u(o,O.fields[5],O.id,t(e,"ratio")),c=u(o,O.fields[6],O.id,t(e,"duration")),l=u(o,O.fields[7],O.id,t(e,"tone"));if(k(y)){const m=f([r&&`清单盘点视频(Top N):主题【${r}】。`,c&&d&&`时长 ${c},比例 ${d}。`,s&&`平台:${s}。`,n&&`清单条目:${n}。`,i&&`目标人群:${i}。`,a&&`口播人设:${a}。`,l&&`语气:${l}。`]);return $(m)}const p=f([r&&`Listicle / countdown video: ${r}.`,c&&d&&`Length ${c}, ratio ${d}.`,s&&`Platform: ${s}.`,n&&`List items: ${n}.`,i&&`Audience: ${i}.`,a&&`Narrator persona: ${a}.`,l&&`Tone: ${l}.`]);return $(p)}},q={id:"live-shopping",icon:"M4.93 4.93a10 10 0 000 14.14M19.07 4.93a10 10 0 010 14.14M7.76 7.76a6 6 0 000 8.49M16.24 7.76a6 6 0 010 8.49M12 11.5a.5.5 0 100 1 .5.5 0 000-1z",fields:[{key:"productName",type:"text",required:!0,maxlength:60},{key:"offer",type:"textarea",required:!0,maxlength:200},{key:"hostPersona",type:"text",maxlength:80},{key:"urgency",type:"text",maxlength:100},{key:"platform",type:"select",shared:"platform"},{key:"ratio",type:"select",shared:"ratio"},{key:"duration",type:"select",shared:"duration"},{key:"pace",type:"select",shared:"pace"},{key:"language",type:"select",shared:"language"}],buildBrief:(e,o,y)=>{const r=t(e,"productName"),n=t(e,"offer"),i=t(e,"hostPersona"),a=t(e,"urgency"),s=u(o,q.fields[4],q.id,t(e,"platform")),d=u(o,q.fields[5],q.id,t(e,"ratio")),c=u(o,q.fields[6],q.id,t(e,"duration")),l=u(o,q.fields[7],q.id,t(e,"pace")),p=u(o,q.fields[8],q.id,t(e,"language"));if(k(y)){const x=f([r&&`直播带货切片视频:主推【${r}】。`,c&&d&&`时长 ${c},比例 ${d}。`,s&&`平台:${s}。`,n&&`优惠机制:${n}。`,i&&`主播人设:${i}。`,a&&`紧迫感钩子:${a}。`,l&&`节奏:${l}。`,p&&`口播语言:${p}。`]);return $(x)}const m=f([r&&`Live shopping clip featuring ${r}.`,c&&d&&`Length ${c}, ratio ${d}.`,s&&`Platform: ${s}.`,n&&`Offer mechanics: ${n}.`,i&&`Host persona: ${i}.`,a&&`Urgency hook: ${a}.`,l&&`Pacing: ${l}.`,p&&`Spoken language: ${p}.`]);return $(m)}},C={id:"product-launch",icon:"M3 11v2a1 1 0 001 1h2l4 4V6L6 10H4a1 1 0 00-1 1zM15 7a6 6 0 010 10",fields:[{key:"productName",type:"text",required:!0,maxlength:60},{key:"brandName",type:"text",maxlength:60},{key:"headline",type:"text",required:!0,maxlength:120},{key:"features",type:"textarea",required:!0,maxlength:240},{key:"audience",type:"text",maxlength:80},{key:"platform",type:"select",shared:"platform"},{key:"ratio",type:"select",shared:"ratio"},{key:"duration",type:"select",shared:"duration"},{key:"mood",type:"select",shared:"mood"},{key:"cta",type:"text",maxlength:80}],buildBrief:(e,o,y)=>{const r=t(e,"productName"),n=t(e,"brandName"),i=t(e,"headline"),a=t(e,"features"),s=t(e,"audience"),d=u(o,C.fields[5],C.id,t(e,"platform")),c=u(o,C.fields[6],C.id,t(e,"ratio")),l=u(o,C.fields[7],C.id,t(e,"duration")),p=u(o,C.fields[8],C.id,t(e,"mood")),m=t(e,"cta");if(k(y)){const I=f([r&&`新品发布视频:【${r}】${n?`(${n})`:""}。`,l&&c&&`时长 ${l},比例 ${c}。`,d&&`平台:${d}。`,i&&`发布主张:${i}。`,a&&`核心亮点:${a}。`,s&&`目标人群:${s}。`,p&&`情绪基调:${p}
1。`,m&&`行动号召:${m}。`]);return $(I)}const x=f([r&&`Product launch video for ${r}${n?` by ${n}`:""}.`,l&&c&&`Length ${l}, ratio ${c}.`,d&&`Platform: ${d}.`,i&&`Launch claim: ${i}.`,a&&`Key features: ${a}.`,s&&`Audience: ${s}.`,p&&`Mood: ${p}.`,m&&`CTA: "${m}".`]);return $(x)}},X=[M,B,T,w,V,E,S,D,P,z,L,O,q,C];function J(e){return X.find(o=>o.id===e)}(()=>{if(typeof window>"u")return;const e=document.getElementById("pg-templates-modal");if(!(e instanceof HTMLDialogElement))return;const o=e.dataset.lang||"en",y=document.querySelector("[data-pg-tpl-i18n]");let r={};try{r=JSON.parse(y?.textContent||"{}")}catch{r={}}const n=h=>r[h]||"",i=e.querySelector('[data-step="picker"]'),a=e.querySelectorAll('[data-step="form"]'),s=e.querySelectorAll("[data-tpl-error]"),d=r["pg.templates.too_long"]||"",c=r["pg.templates.required_missing"]||"",l=()=>{if(e.open)try{e.close()}catch{e.removeAttribute("open")}},p=()=>{a.forEach(h=>h.setAttribute("hidden","")),s.forEach(h=>{h.setAttribute("hidden",""),h.textContent=""}),i?.removeAttribute("hidden")},m=h=>{i?.setAttribute("hidden",""),a.forEach(g=>{g.dataset.templateId===h?g.removeAttribute("hidden"):g.setAttribute("hidden","")})},x=()=>{if(p(),!e.open)try{e.showModal()}catch{e.setAttribute("open","")}},I=h=>{const g={},b=new FormData(h);for(const N of new Set(Array.from(b.keys()))){const A=b.getAll(N).map(_=>String(_));A.length>1?g[N]=A.filter(Boolean):g[N]=(A[0]||"").trim()}return g},F=(h,g)=>{const b=h?.querySelector("[data-tpl-error]");if(b){if(!g){b.setAttribute("hidden",""),b.textContent="";return}b.textContent=g,b.removeAttribute("hidden")}};e.addEventListener("click",h=>{const g=h.target;if(!g)return;if(g.closest("[data-tpl-close]")){h.preventDefault(),l();return}if(g===e){l();return}if(g.closest("[data-tpl-back]")){h.preventDefault(),p();return}const N=g.closest("[data-pick-template]");if(N){h.preventDefault();const A=N.dataset.pickTemplate||"";A&&m(A)}}),e.addEventListener("cancel",h=>{h.preventDefault(),l()}),e.querySelectorAll("[data-tpl-form]").forEach(h=>{const g=h.closest('[data-step="form"]');h.addEventListener("submit",b=>{b.preventDefault();const N=h.dataset.templateId||"",A=J(N);if(!A)return;const _=I(h),U=A.fields.filter(K=>{if(!K.required)return!1;const R=_[K.key];return Array.isArray(R)?R.length===0:!R});if(U.length>0){F(g,c||"Please fill required fields."),h.querySelector(`[name="${U[0].key}"]`)?.focus();return}let H="";try{H=A.buildBrief(_,n,o)}catch{H=""}if(H.trim()){if(H.length>1e3){F(g,d||"Brief exceeds 1000 characters; trim or shorten input.");return}F(g,""),window.dispatchEvent(new CustomEvent("pg-templates-insert",{detail:{brief:H,templateId:N}})),l()}}),h.addEventListener("reset",()=>{F(g,"")})}),window.addEventListener("pg-templates-open",x)})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.