1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3691],{41404:function(e,t,a){a.d(t,{ZP:function(){return b},ji:function(){return y},pM:function(){return N}});var s=a(57437),n=a(97615),r=a(43551),i=a(73596),o=a(19945),l=a(86048),c=a(27354),d=a(57488),x=a(795),m=a(78582),u=a(5489),h=a(68484),f=a(91257);let p=[{key:"online",label:"Online Clips & Images",hint:"Real YouTube & web footage",Icon:n.T},{key:"ai",label:"Realistic AI Footage",hint:"AI photos as a fallback",Icon:r.J}];function g(e){let{on:t,onClick:a,label:n}=e;return(0,s.jsx)("button",{type:"button",role:"switch","aria-checked":t,"aria-label":n,onClick:a,className:"relative w-11 h-6 rounded-full transition-colors shrink-0 ".concat(t?"bg-gradient-to-r from-primary to-primary-end":"bg-surface-2 border border-border"),children:(0,s.jsx)("span",{className:"absolute top-0.5 left-0.5 w-5 h-5 rounded-full bg-surface shadow transition-transform ".concat(t?"translate-x-5":"")})})}function b(e){var t;let{value:a,onChange:n,showAiCharacterToggle:r=!1,showHostClipSlider:m=!1}=e,u=a||h.zi,f=["stock","online","ai"],b=f.filter(e=>u[e].on).reduce((e,t)=>e+u[t].pct,0),N=e=>!u[e].on||b<=0?0:Math.round(u[e].pct/b*100),j=(e,t)=>{let a=Math.max(0,Math.min(100,Math.round(t))),s=f.filter(t=>t!==e&&u[t].on),r={...u,[e]:{...u[e],pct:0===s.length?100:a}};if(0===s.length){n({...r,auto:!1});return}let i=s.reduce((e,t)=>e+u[t].pct,0),o=100-a,l=0;s.forEach((e,t)=>{let a=t===s.length-1?Math.max(0,o-l):Math.round(i>0?u[e].pct/i*o:o/s.length);l+=a,r[e]={...u[e],pct:a}}),n({...r,auto:!1})},v=e=>{let t=!u[e].on,a={...u,[e]:{...u[e],on:t}},s=f.filter(e=>a[e].on);if(0===s.length){n({...a,auto:!1});return}let r=s.reduce((e,t)=>e+a[t].pct,0),i=0;s.forEach((n,o)=>{let l;let c=o===s.length-1;if(t&&(0===a[e].pct||0===r)){let e=Math.round(100/s.length);l=c?100-i:e}else l=c?100-i:Math.round(a[n].pct/r*100);i+=l,a[n]={...a[n],pct:Math.max(0,l)}}),n({...a,auto:!1})};return(0,s.jsxs)("div",{className:"space-y-2.5",children:[(0,s.jsx)("div",{className:"rounded-2xl p-3 ".concat(u.auto?"accent-green shadow-sm":"border border-border bg-surface"),children:(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"w-9 h-9 rounded-xl flex items-center justify-center text-white shadow-sm bg-primary",children:(0,s.jsx)(i.H,{weight:"fill",size:20})}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsxs)("p",{className:"text-sm font-bold text-text-primary leading-tight",children:["Auto sourcing ",(0,s.jsx)("span",{className:"text-xs font-bold text-primary-text",children:"RECOMMENDED"})]}),(0,s.jsx)("p",{className:"text-xs text-text-secondary leading-tight",children:u.auto?"We pick the best real / stock / AI mix for your niche automatically.":"Manual â your sliders below are used."})]}),(0,s.jsx)(g,{on:u.auto,onClick:()=>n({...u,auto:!u.auto}),label:"Auto sourcing on/off"})]})}),u.auto&&(0,s.jsx)("p",{className:"text-xs text-text-secondary px-1",children:"Mix is set by your niche â drag any slider to take over manually."}),(0,s.jsx)("div",{children:p.map(e=>{let{key:t,label:a,hint:n,Icon:r}=e,i=u[t];return(0,s.jsxs)("div",{className:"rounded-2xl border p-3 transition-all ".concat(i.on?"border-primary bg-surface shadow-sm":"border-border bg-surface"),children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"w-9 h-9 rounded-xl flex items-center justify-center text-base shadow-sm border ".concat(i.on?"bg-gradient-to-r from-primary to-primary-end border-transparent text-white":"bg-surface-2 border-border text-text-secondary grayscale"),children:(0,s.jsx)(r,{weight:"fill",size:17})}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("p",{className:"text-sm font-bold text-text-primary leading-tight",children:a}),(0,s.jsx)("p",{className:"text-xs text-text-secondary leading-tight",children:n})]}),i.on&&(0,s.jsxs)("span",{className:"badge-solid tabular-nums",children:[N(t),"%"]}),(0,s.jsx)(g,{on:i.on,onClick:()=>v(t),label:"".concat(a," on/off")})]}),i.on&&(0,s.jsx)("input",{type:"range",min:0,max:100,step:5,value:N(t),onChange:e=>j(t,Number(e.target.value)),className:"w-full mt-2.5 accent-[rgb(var(--color-primary))]600","aria-label":"".concat(a," target percent")})]},t)})}),(0,s.jsxs)("div",{className:"rounded-2xl border p-3 ".concat(u.ai.on?"border-primary bg-surface":"border-border bg-surface-2 grayscale pointer-events-none"),children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"w-9 h-9 rounded-xl flex items-center justify-center text-white shadow-sm bg-primary",children:(0,s.jsx)(o.P,{weight:"fill",size:20})}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("p",{className:"text-sm font-bold text-text-primary leading-tight",children:"Animate AI photos"}),(0,s.jsx)("p",{className:"text-xs text-text-secondary leading-tight",children:"Bring AI photos to life with motion"})]}),(0,s.jsxs)("span",{className:"badge-solid tabular-nums",children:[u.aiAnimatePct,"%"]})]}),(0,s.jsx)("input",{type:"range",min:0,max:100,step:5,value:u.aiAnimatePct,onChange:e=>n({...u,aiAnimatePct:Number(e.target.value)}),className:"w-full mt-2.5 accent-[rgb(var(--color-primary))]500","aria-label":"Percent of AI photos to animate"}),u.aiAnimatePct>0&&(0,s.jsxs)("p",{className:"mt-2 text-xs leading-snug text-primary-text inline-flex items-start gap-1",children:[(0,s.jsx)(l.v,{weight:"fill",size:13,className:"mt-0.5 shrink-0"})," Animation costs more credits â exact cost shown before you generate."]})]}),(0,s.jsx)(y,{value:null!==(t=u.sfxMode)&&void 0!==t?t:h.zi.sfxMode,onChange:e=>n({...u,sfxMode:e})}),m&&(()=>{let e=u.hostClipSecondsPerMin,t=null==e,a=t?h.q8:e;return(0,s.jsxs)("div",{className:"callout-primary p-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"w-9 h-9 rounded-xl flex items-center justify-center text-white shadow-sm bg-primary",children:(0,s.jsx)(c.P,{weight:"fill",size:20})}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("p",{className:"text-sm font-bold text-text-primary leading-tight",children:"AI Host appearance time"}),(0,s.jsx)("p",{className:"text-xs text-text-secondary leading-tight",children:"Seconds of AI host on screen per minute of video"})]}),(0,s.jsx)("span",{className:"badge-solid tabular-nums",children:t?"Auto":"".concat(e,"s/min")})]}),(0,s.jsxs)("div",{className:"mt-2.5 flex items-center gap-2",children:[(0,s.jsx)("button",{type:"button",onClick:()=>n({...u,hostClipSecondsPerMin:t?8:null}),"aria-pressed":t,className:"shrink-0 px-2.5 py-1 rounded-lg text-xs font-bold transition-colors ".concat(t?"bg-primary text-white shadow-sm":"bg-surface-2 text-text-secondary hover:bg-surface"),children:"Auto"}),(0,s.jsx)("input",{type:"range",min:h.q8,max:h.zG,step:1,value:a,onChange:e=>n({...u,hostClipSecondsPerMin:Number(e.target.value)}),className:"w-full accent-[rgb(var(--color-primary))]600 ".concat(t?"grayscale":""),"aria-label":"AI host seconds per minute of video"})]}),(0,s.jsx)("p",{className:"mt-1.5 text-xs leading-snug text-text-secondary",children:t?"Auto lets the engine choose. Set ".concat(h.q8,"â").concat(h.zG,"s to fix the AI host's screen time."):"~".concat(e,"s of AI host footage per minute of finished video.")})]})})(),r&&(0,s.jsxs)("div",{className:"rounded-2xl border border-border bg-surface p-3 flex items-center gap-3",children:[(0,s.jsx)("div",{className:"w-9 h-9 rounded-xl flex items-center justify-center text-white shadow-sm bg-primary",children:(0,s.jsx)(d.n,{weight:"fill",size:20})}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("p",{className:"text-sm font-bold text-text-primary leading-tight",children:"Insert AI host into AI photos"}),(0,s.jsx)("p",{className:"text-xs text-text-secondary leading-tight",children:"When a host avatar is used, weave them into some AI scenes"})]}),(0,s.jsx)(g,{on:u.aiCharacterInScenes,onClick:()=>n({...u,aiCharacterInScenes:!u.aiCharacterInScenes}),label:"Insert AI host into AI photos"})]}),(0,s.jsxs)("div",{className:"flex items-start gap-2 callout-primary px-3 py-2",children:[(0,s.jsx)("span",{className:"leading-none mt-0.5 text-primary-text",children:(0,s.jsx)(x.v,{weight:"fill",size:15})}),(0,s.jsxs)("p",{className:"text-xs text-text-secondary leading-snug",children:["For real public figures we auto-prioritize real footage and cap AI at ",h.l1,"%."]})]})]})}function y(e){let{value:t,onChange:a}=e;return(0,s.jsxs)("div",{className:"callout-primary p-3",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"w-9 h-9 rounded-xl flex items-center justify-center text-white shadow-sm bg-primary",children:(0,s.jsx)(m.j,{weight:"fill",size:20})}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("p",{className:"text-sm font-bold text-text-primary leading-tight",children:"AI Sound Effects"}),(0,s.jsx)("p",{className:"text-xs text-text-secondary leading-tight",children:"How scene sound effects are sourced"})]})]}),(0,s.jsx)("div",{className:"mt-2.5 grid grid-cols-3 gap-2",children:[{mode:"generate",label:"Custom (charged)",hint:"Generates tailored sound effects with AI - Costs editor credits"},{mode:"library",label:"Free library",hint:"Uses our existing sound-effect library at no extra cost."},{mode:"off",label:"Off",hint:"No auto sound effects. (Baked scene-template sounds still play.)"}].map(e=>{let{mode:n,label:r,hint:i}=e,o=t===n;return(0,s.jsxs)("button",{type:"button",onClick:()=>a(n),"aria-pressed":o,className:"text-left rounded-xl border p-2.5 transition-all ".concat(o?"border-transparent bg-gradient-to-r from-primary to-primary-end shadow-glow":"border-border bg-surface hover:border-primary"),children:[(0,s.jsx)("p",{className:"text-xs font-bold leading-tight ".concat(o?"text-white":"text-text-primary"),children:r}),(0,s.jsx)("p",{className:"mt-0.5 text-xs leading-snug ".concat(o?"text-white":"text-text-secondary"),children:i})]},n)})})]})}function N(e){let{value:t,onChange:a,hideHeader:n}=e,r=[{mode:"generate",label:"Custom (charged)",hint:"Generates bespoke music per section with AI - from ".concat(f.qu.editor_custom_music," credits a section, by length.")},{mode:"library",label:"Free library",hint:"Mood-matched picks from our music library at no extra cost."},{mode:"none",label:"No music",hint:"No background music on this video."}];return(0,s.jsxs)("div",{className:n?"":"callout-primary p-3",children:[!n&&(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"w-9 h-9 rounded-xl flex items-center justify-center text-white shadow-sm bg-purple-500",children:(0,s.jsx)(u.V,{weight:"fill",size:20})}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("p",{className:"text-sm font-bold text-text-primary leading-tight",children:"Backgroun
1d Music"}),(0,s.jsx)("p",{className:"text-xs text-text-secondary leading-tight",children:"How the soundtrack is sourced"})]})]}),(0,s.jsx)("div",{className:(n?"":"mt-2.5 ")+"grid grid-cols-3 gap-2",children:r.map(e=>{let{mode:n,label:r,hint:i}=e,o=t===n;return(0,s.jsxs)("button",{type:"button",onClick:()=>a(n),"aria-pressed":o,className:"text-left rounded-xl border p-2.5 transition-all ".concat(o?"border-primary bg-surface-2 shadow-sm ring-1 ring-primary/40":"border-border bg-surface hover:border-primary"),children:[(0,s.jsx)("p",{className:"text-xs font-bold leading-tight ".concat(o?"text-primary-text":"text-text-primary"),children:r}),(0,s.jsx)("p",{className:"mt-0.5 text-xs text-text-secondary leading-snug",children:i})]},n)})})]})}},5469:function(e,t,a){a.d(t,{T:function(){return d},s:function(){return c}});var s=a(57437),n=a(38410),r=a(19945),i=a(86048),o=a(33782),l=a(90120);function c(e){let{value:t,onChange:a}=e,r="auto"===t,i=r?2:Math.max(0,o.Ct.indexOf(t));return(0,s.jsxs)("div",{className:"rounded-2xl border border-border bg-surface p-3 space-y-2.5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"w-9 h-9 rounded-xl flex items-center justify-center shadow-sm bg-primary",children:(0,s.jsx)(n.S,{weight:"fill",size:18,className:"text-white"})}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("p",{className:"text-sm font-bold text-text-primary leading-tight",children:"Pacing"}),(0,s.jsx)("p",{className:"text-xs text-text-secondary leading-tight",children:r?o.i3.auto:o.i3[t]})]}),(0,s.jsx)("button",{type:"button",onClick:()=>a("auto"),className:"text-xs font-bold px-2.5 py-1 rounded-full transition-colors shrink-0 ".concat(r?"bg-primary text-white shadow-sm":"bg-gradient-to-r from-primary to-primary-end-2 text-text-secondary hover:bg-surface"),children:"Auto"})]}),(0,s.jsxs)("div",{className:r?"grayscale":"",children:[(0,s.jsx)("input",{type:"range",min:0,max:o.Ct.length-1,step:1,value:i,onChange:e=>a(o.Ct[Number(e.target.value)]),className:"w-full accent-indigo-600","aria-label":"Pacing"}),(0,s.jsxs)("div",{className:"flex justify-between mt-0.5 text-xs font-semibold uppercase tracking-wide text-text-secondary",children:[(0,s.jsx)("span",{children:"Slower"}),(0,s.jsx)("span",{className:r?"":"text-primary-text",children:r?"Auto":o.m7[t]}),(0,s.jsx)("span",{children:"Faster"})]})]})]})}function d(e){let{value:t,onChange:a}=e,n=null==t;return(0,s.jsxs)("div",{className:"rounded-2xl accent-amber bg-surface-2 p-3 space-y-2.5",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"w-9 h-9 rounded-xl flex items-center justify-center shadow-sm bg-amber-400",children:(0,s.jsx)(r.P,{weight:"fill",size:18,className:"text-amber-950"})}),(0,s.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,s.jsx)("p",{className:"text-sm font-bold text-text-primary leading-tight",children:"Animate scenes"}),(0,s.jsx)("p",{className:"text-xs text-text-secondary leading-tight",children:n?"Auto â animate a smart subset of scenes":"Animate ".concat(t,"% of scenes")})]}),(0,s.jsx)("span",{className:"text-xs font-extrabold tabular-nums text-orange-600 shrink-0",children:n?"Auto":"".concat(t,"%")}),(0,s.jsx)("button",{type:"button",onClick:()=>a(n?l.tI:null),className:"text-xs font-bold px-2.5 py-1 rounded-full transition-colors shrink-0 ".concat(n?"bg-amber-400 text-amber-950 shadow-sm":"bg-surface-2 text-text-secondary hover:bg-surface"),children:"Auto"})]}),(0,s.jsxs)("div",{className:n?"grayscale pointer-events-none":"",children:[(0,s.jsx)("input",{type:"range",min:0,max:100,step:5,value:n?l.tI:t,onChange:e=>a(Number(e.target.value)),className:"w-full accent-orange-500","aria-label":"Percent of scenes to animate"}),!n&&t>0&&(0,s.jsxs)("p",{className:"mt-1.5 text-xs leading-snug text-amber-300 light:text-amber-700",children:[(0,s.jsx)(i.v,{weight:"fill",size:12,className:"inline align-[-2px] mr-1 text-amber-300 light:text-amber-700"}),"More animated scenes = more credits â exact cost shown before you generate."]})]})]})}},36500:function(e,t,a){a.d(t,{XM:function(){return n}});var s=a(37601);function n(e){return!!e&&"realistic"===e.kind&&!0===e.commentator&&"main"===("main"===e.role||"side"===e.role||"commentator"===e.role||"cameo"===e.role?e.role:!1===e.autoCast?"cameo":"main")}s.YB,s.AE},68484:function(e,t,a){a.d(t,{Qt:function(){return x},l1:function(){return l},q8:function(){return n},zG:function(){return r},zi:function(){return o}}),a(36500);var s=a(25566);let n=5,r=30;s.env.HYBRID_AI_ANIMATE_PCT,s.env.TOTAL_USD_PER_MIN_CEILING;let i=Number(s.env.AI_AVATAR_USD_PER_MIN_CEILING||"1.00");s.env.CARTOON_USD_PER_MIN_CEILING,s.env.MUSICAL_USD_PER_MIN_CEILING,s.env.PHOTOREAL_USD_PER_MIN_CEILING||String(i),s.env.ANIMATE_6S_USD,s.env.MOTION_RESERVE_SHARE,s.env.ANIMATION_
1SHARE_OF_RESERVE;let o={online:{on:!0,pct:80},stock:{on:!0,pct:10},ai:{on:!0,pct:10},auto:!0,aiCharacterInScenes:!1,bgCharacterMostScenes:!1,aiAnimatePct:0,hostClipSecondsPerMin:null,sfxMode:"off",musicMode:"library"},l=20;function c(e){return Math.max(0,Math.min(100,"number"==typeof e&&Number.isFinite(e)?Math.round(e):0))}function d(e,t){return e&&"object"==typeof e?{on:"boolean"==typeof e.on?e.on:t.on,pct:"pct"in e?c(e.pct):t.pct}:{...t}}function x(e){var t,a,s;return e&&"object"==typeof e?{stock:d(e.stock,o.stock),online:d(e.online,o.online),ai:d(e.ai,o.ai),auto:"boolean"==typeof e.auto?e.auto:o.auto,aiCharacterInScenes:"boolean"==typeof e.aiCharacterInScenes?e.aiCharacterInScenes:o.aiCharacterInScenes,bgCharacterMostScenes:"boolean"==typeof e.bgCharacterMostScenes?e.bgCharacterMostScenes:o.bgCharacterMostScenes,aiAnimatePct:"aiAnimatePct"in e?c(e.aiAnimatePct):o.aiAnimatePct,hostClipSecondsPerMin:"hostClipSecondsPerMin"in e?"number"==typeof(t=e.hostClipSecondsPerMin)&&Number.isFinite(t)?Math.max(n,Math.min(r,Math.round(t))):null:o.hostClipSecondsPerMin,sfxMode:"sfxMode"in e?"library"===(a=e.sfxMode)?"library":"off"===a?"off":"generate":o.sfxMode,musicMode:"musicMode"in e?"library"===(s=e.musicMode)?"library":"none"===s?"none":"generate":o.musicMode}:{...o}}},33782:function(e,t,a){a.d(t,{Ac:function(){return i},Ct:function(){return o},i3:function(){return r},m7:function(){return n}});let s=["auto","very_relaxed","relaxed","balanced","fast","very_fast"],n={auto:"Auto",very_relaxed:"Very relaxed",relaxed:"Relaxed",balanced:"Balanced",fast:"Fast",very_fast:"Very fast"},r={auto:"Let AI pick the right pace from your script",very_relaxed:"Long, lingering shots â calm and cinematic",relaxed:"Slower cuts, room to breathe",balanced:"A steady, all-purpose pace",fast:"Quick cuts, high energy",very_fast:"Rapid-fire cuts, maximum energy"};function i(e){return"string"==typeof e&&s.includes(e)?e:"auto"}let o=["very_relaxed","relaxed","balanced","fast","very_fast"]},37601:function(e,t,a){a.d(t,{AE:function(){return n},YB:function(){return s}});let s="Photorealistic Modern",n="Photorealistic History"}}]);
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.