PageSourceSearch

https://voli.ai/_next/static/chunks/1681-637437669e2e6400.js

js voli.ai collected 2026-10-05 13:15:27 UTC 13,183 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1681],{95048:function(t,n,e){"use strict";e.d(n,{$c:function(){return m},Av:function(){return x},D0:function(){return k},FB:function(){return b},KW:function(){return v},L1:function(){return f},MF:function(){return p},PD:function(){return y},W6:function(){return I},WA:function(){return Z},iL:function(){return _},lr:function(){return C},rX:function(){return h},uh:function(){return M},wN:function(){return F},xb:function(){return w},xd:function(){return U}});var r,a,i,u,o,c,s,l,d={id:"",name:"",img:"",color:"#5B5E63",traits:[],preset:!1},f=function(t){var n,e;return{id:String(t.id),name:t.name,img:t.imageUrl,color:t.color,traits:null!==(r=null===(n=t.convmodel)||void 0===n?void 0:null===(e=n.tags)||void 0===e?void 0:e.map(function(t){return t.title}))&&void 0!==r?r:[],preset:"custom"!==t.type}},h=function(t,n){return null!==(i=null!==(a=n.find(function(n){return n.id===t}))&&void 0!==a?a:n[0])&&void 0!==i?i:d},v=function(t){return{id:t.id,name:t.name,imageUrl:t.imageUrl}},p=["ko","en","ja","zh","de","fr","ru","pt","es","it"],g=function(t){var n,e,r;return{id:"d-".concat(t.id),spk:String(t.videoCharacterId),text:t.subtitle,voiceSplit:!0===t.subtitleVoiceSeparated,voiceText:null!==(u=t.ttsText)&&void 0!==u?u:t.subtitle,voiceLang:(n=t.lang,p.includes(n))?t.lang:"ko",direction:"통통"===(e=t.data.effect)||"흔들림"===e||"확대"===e?e:"none",material:t.data.imageUrl?{type:"image",file:null!==(o=t.data.imageUrl.split("/").pop())&&void 0!==o?o:null,fitMode:t.data.imageLayout?"portrait"===(r=t.data.imageLayout)?"vertical":"landscape"===r?"horizontal":"square":"vertical",previewUrl:t.data.imageUrl,videoAssetId:t.data.videoAssetId}:null,backendId:t.id,backendSceneId:t.sceneId,voiceUrl:null!==(c=t.voiceUrl)&&void 0!==c?c:void 0,voiceDuration:null!=t.durationFrames?t.durationFrames/30:void 0}},_=function(t){return{id:"s-".concat(t.id),name:"장면",dialogues:t.cuts.length>0?t.cuts.map(g):[{id:"d-empty-".concat(t.id),spk:"",text:"",voiceSplit:!1,voiceText:"",voiceLang:"ko",direction:"none",material:null},],backendId:t.id}},y=["#0A0A0A","#1A2238","#6D3BF5","#0F9E8F","#E0335C"],m=function(t){return{theme:"light",bg:null!=t.data.backgroundId?{id:t.data.backgroundId,name:null!==(s=t.data.backgroundName)&&void 0!==s?s:"",imageUrl:null!==(l=t.data.backgroundImageUrl)&&void 0!==l?l:""}:null!=t.data.backgroundColor?{color:t.data.backgroundColor}:null,chars:t.cuts.reduce(function(t,n){var e;return t[String(n.videoCharacterId)]={pos:"left"===(e=n.data.characterPosition)?"좌":"right"===e?"우":"중",hidden:!n.data.characterVisibility},t},{})}},b=[{id:"s1",name:"장면",dialogues:[{id:"d1",spk:"",text:"",voiceSplit:!1,voiceText:"",voiceLang:"ko",direction:"none",material:null},]},],I=["orange","mint","pink","sky","lime"],Z={orange:"#FF8A3D",mint:"#2DD4BF",pink:"#F472B6",sky:"#38BDF8",lime:"#A3E635"},w={s1:{theme:"light",bg:null,chars:{}}},k="스토리 제목",F=40,U=16,x=120,C={Free:200,Starter:200,Creator:300,Production:500,Max:500,"TTS Max":500,"VC Max":500},M=200},99466:function(t,n,e){"use strict";e.d(n,{ko:function(){return tn},d$:function(){return Y},UX:function(){return R},Xm:function(){return T},Ko:function(){return O},$y:function(){return ti},oR:function(){return H},rY:function(){return tr},fo:function(){return J},e4:function(){return W},c8:function(){return th},cZ:function(){return B},$g:function(){return tp},wK:function(){return P},JX:function(){return to},je:function(){return j},AZ:function(){return D},h_:function(){return td}});var r,a,i,u,o,c,s,l,d,f,h,v,p,g,_,y,m,b,I,Z,w,k,F=e(47568),U=e(99534),x=e(97582),C=e(64378),M=e(88767),A=function(t){var n;return"object"==typeof t&&null!==t&&"success"in t&&"data"in t?t.data:t},L=(r=(0,F.Z)(function(t){var n;return(0,x.__generator)(this,function(n){switch(n.label){case 0:return[4,C.Z.post("/videos",{composition:"story",title:t})];case 1:return[2,n.sent().data]}})}),function(t){return r.apply(this,arguments)}),T=function(){return(0,M.useMutation)({mutationFn:L})},S=(a=(0,F.Z)(function(t){var n;return(0,x.__generator)(this,function(n){switch(n.label){case 0:return[4,C.Z.get("videos/".concat(t))];case 1:return[2,n.sent().data]}})}),function(t){return a.apply(this,arguments)}),P=function(t){return(0,M.useQuery)({queryKey:["video",t],queryFn:function(){return S(t)},enabled:"number"==typeof t&&!Number.isNaN(t),retry:0})},E=(i=(0,F.Z)(function(){var t;return(0,x.__generator)(this,function(t){switch(t.label){case 0:return[4,C.Z.get("video-characters")];case 1:return[2,t.sent().data]}})}),function(){return i.apply(this,arguments)}),B=function(){return(0,M.useQuery)({queryKey:["videoCharacters"],queryFn:E})},V=(u=(0,F.Z)(function(t){var n;return(0,x.__generator)(this,function(n){switch(n.label){case 0:return[4,C.Z.post("video-characters/avatar-upload-url",{contentType:t})];case 1:return[2,n.sent().data]}})}),function(t){return u.apply(this,arguments)}),N=(o=(0,F.Z)(function(t){var n,e,r,a,i;return(0,x.__generator)(this,function(i){switch(i.label){case 0:var u;return[4,new Promise(function(n){if("image/png"!==t.type){n(t);return}var e=new Image,r=URL.createObjectURL(t);e.onload=function(){URL.revokeObjectURL(r);
1var a=e.width,i=e.height,u=document.createElement("canvas");u.width=a,u.height=i;var o=u.getContext("2d");if(!o){n(t);return}o.drawImage(e,0,0);for(var c=o.getImageData(0,0,a,i).data,s=a,l=i,d=0,f=0,h=0;h<i;h++)for(var v=0;v<a;v++)c[(h*a+v)*4+3]>10&&(v<s&&(s=v),v>d&&(d=v),h<l&&(l=h),h>f&&(f=h));if(s>d||l>f){n(t);return}var p=d-s+1,g=f-l+1,_=document.createElement("canvas");_.width=p,_.height=g;var y=_.getContext("2d");if(!y){n(t);return}y.drawImage(u,s,l,p,g,0,0,p,g),_.toBlob(function(e){n(e?new File([e],t.name,{type:"image/png"}):t)},"image/png")},e.onerror=function(){URL.revokeObjectURL(r),n(t)},e.src=r})];case 1:return[4,V((n=i.sent()).type)];case 2:return r=(e=i.sent().data).uploadUrl,a=e.s3Key,[4,fetch(r,{method:"PUT",headers:{"Content-Type":n.type},body:n})];case 3:if(!i.sent().ok)throw Error("아바타 업로드에 실패했어요.");return[2,a]}})}),function(t){return o.apply(this,arguments)}),D=function(){return(0,M.useMutation)({mutationFn:function(t){return N(t)}})},K=(c=(0,F.Z)(function(t){var n;return(0,x.__generator)(this,function(n){switch(n.label){case 0:return[4,C.Z.post("video-characters",t)];case 1:return[2,n.sent().data]}})}),function(t){return c.apply(this,arguments)}),R=function(){return(0,M.useMutation)({mutationFn:K})},q=(s=(0,F.Z)(function(t,n){var e;return(0,x.__generator)(this,function(e){switch(e.label){case 0:return[4,C.Z.patch("video-characters/".concat(t),n)];case 1:return[2,e.sent().data]}})}),function(t,n){return s.apply(this,arguments)}),j=function(){return(0,M.useMutation)({mutationFn:function(t){var n;return q(t.characterId,(0,U.Z)(t,["characterId"]))}})},z=(l=(0,F.Z)(function(t){var n;return(0,x.__generator)(this,function(n){switch(n.label){case 0:return[4,C.Z.delete("video-characters/".concat(t))];case 1:return[2,n.sent().data]}})}),function(t){return l.apply(this,arguments)}),O=function(){return(0,M.useMutation)({mutationFn:function(t){return z(t)}})},Q=(d=(0,F.Z)(function(t,n,e,r){var a;return(0,x.__generator)(this,function(a){switch(a.label){case 0:return[4,C.Z.patch("videos/".concat(t,"/title"),{title:n,highlight:e,highlightColor:r})];case 1:return[2,a.sent().data]}})}),function(t,n,e,r){return d.apply(this,arguments)}),W=function(){return(0,M.useMutation)({mutationFn:function(t){var n,e=t.videoId,r=t.title;return Q(e,r,t.highlight,t.highlightColor)}})},X=(f=(0,F.Z)(function(t,n){var e;return(0,x.__generator)(this,function(e){switch(e.label){case 0:return[4,C.Z.post("videos/".concat(t,"/scenes"),null!=n?n:{})];case 1:return[2,e.sent().data]}})}),function(t,n){return f.apply(this,arguments)}),Y=function(){return(0,M.useMutation)({mutationFn:function(t){var n;return X(t.videoId,t.bgBody)}})},$=(h=(0,F.Z)(function(t,n,e){var r;return(0,x.__generator)(this,function(r){switch(r.label){case 0:return[4,C.Z.patch("videos/".concat(t,"/scenes/").concat(n),e)];case 1:return[2,r.sent().data]}})}),function(t,n,e){return h.apply(this,arguments)}),J=function(){return(0,M.useMutation)({mutationFn:function(t){var n,e=t.videoId;return $(e,t.sceneId,t.bgBody)}})},G=(v=(0,F.Z)(function(t,n){var e;return(0,x.__generator)(this,function(e){switch(e.label){case 0:return[4,C.Z.delete("videos/".concat(t,"/scenes/").concat(n))];case 1:return[2,e.sent().data]}})}),function(t,n){return v.apply(this,arguments)}),H=function(){return(0,M.useMutation)({mutationFn:function(t){var n;return G(t.videoId,t.sceneId)}})},tt=(p=(0,F.Z)(function(t,n,e,r,a,i,u,o,c,s,l,d){var f;return(0,x.__generator)(this,function(f){switch(f.label){case 0:return[4,C.Z.post("videos/".concat(t,"/scenes/").concat(n,"/cuts"),{videoCharacterId:e,lang:r,subtitle:a,ttsText:i,subtitleVoiceSeparated:u,effect:o,characterPosition:c,characterVisibility:s,videoAssetId:l,imageLayout:d})];case 1:return[2,A(f.sent().data)]}})}),function(t,n,e,r,a,i,u,o,c,s,l,d){return p.apply(this,arguments)}),tn=function(){return(0,M.useMutation)({mutationFn:function(t){var n,e=t.videoId,r=t.sceneId,a=t.characterId,i=t.language,u=t.dialogue,o=t.voiceText,c=t.subtitleVoiceSeparated,s=t.effect,l=t.characterPosition,d=t.characterVisibility;return tt(e,r,a,i,u,o,c,s,l,d,t.videoAssetId,t.imageLayout)}})},te=(g=(0,F.Z)(function(t,n,e,r,a,i,u,o,c,s,l,d,f){var h;return(0,x.__generator)(this,function(h){switch(h.label){case 0:return[4,C.Z.patch("videos/".concat(t,"/scenes/").concat(n,"/cuts/").concat(e),{videoCharacterId:r,lang:a,subtitle:i,ttsText:u,subtitleVoiceSeparated:o,effect:c,characterPosition:s,characterVisibility:l,videoAssetId:d,imageLayout:f})];case 1:return[2,A(h.sent().data)]}})}),function(t,n,e,r,a,i,u,o,c,s,l,d,f){return g.apply(this,arguments)}),tr=function(){return(0,M.useMutation)({mutationFn:function(t){var n,e=t.videoId,r=t.sce
1neId,a=t.cutId,i=t.characterId,u=t.language,o=t.dialogue,c=t.voiceText,s=t.subtitleVoiceSeparated,l=t.effect,d=t.characterPosition,f=t.characterVisibility;return te(e,r,a,i,u,o,c,s,l,d,f,t.videoAssetId,t.imageLayout)}})},ta=(_=(0,F.Z)(function(t,n,e){var r;return(0,x.__generator)(this,function(r){switch(r.label){case 0:return[4,C.Z.delete("videos/".concat(t,"/scenes/").concat(n,"/cuts/").concat(e))];case 1:return[2,r.sent().data]}})}),function(t,n,e){return _.apply(this,arguments)}),ti=function(){return(0,M.useMutation)({mutationFn:function(t){var n,e=t.videoId;return ta(e,t.sceneId,t.cutId)}})},tu=(y=(0,F.Z)(function(t,n,e){var r;return(0,x.__generator)(this,function(r){switch(r.label){case 0:return[4,C.Z.post("videos/".concat(t,"/scenes/").concat(n,"/cuts/").concat(e,"/tts"))];case 1:return[2,r.sent().data]}})}),function(t,n,e){return y.apply(this,arguments)}),to=function(){return(0,M.useMutation)({mutationFn:function(t){var n,e=t.videoId;return tu(e,t.sceneId,t.cutId)}})},tc=(m=(0,F.Z)(function(t){var n;return(0,x.__generator)(this,function(n){switch(n.label){case 0:return[4,C.Z.post("videos/assets/upload-url",{contentType:t.type,originalName:t.name})];case 1:return[2,n.sent().data]}})}),function(t){return m.apply(this,arguments)}),ts=(b=(0,F.Z)(function(t){var n,e,r,a;return(0,x.__generator)(this,function(a){switch(a.label){case 0:return[4,tc(t)];case 1:return e=(n=a.sent().data).uploadUrl,r=n.videoAssetId,[4,fetch(e,{method:"PUT",headers:{"Content-Type":t.type},body:t})];case 2:if(!a.sent().ok)throw Error("이미지 업로드에 실패했어요.");return[2,r]}})}),function(t){return b.apply(this,arguments)}),tl=(I=(0,F.Z)(function(t){return(0,x.__generator)(this,function(n){var e;return[2,Promise.all(t.map((e=(0,F.Z)(function(t){var n;return(0,x.__generator)(this,function(n){switch(n.label){case 0:return[4,ts(t)];case 1:return[2,{file:t,videoAssetId:n.sent()}]}})}),function(t){return e.apply(this,arguments)})))]})}),function(t){return I.apply(this,arguments)}),td=function(){return(0,M.useMutation)({mutationFn:tl})},tf=(Z=(0,F.Z)(function(){var t;return(0,x.__generator)(this,function(t){switch(t.label){case 0:return[4,C.Z.get("/video-backgrounds")];case 1:return[2,t.sent().data]}})}),function(){return Z.apply(this,arguments)}),th=function(){return(0,M.useQuery)({queryKey:["videoBackgrounds"],queryFn:tf})},tv=(w=(0,F.Z)(function(t,n){var e;return(0,x.__generator)(this,function(e){switch(e.label){case 0:return[4,C.Z.get("videos?template=story&page=".concat(t,"&limit=").concat(n))];case 1:return[2,e.sent().data]}})}),function(t,n){return w.apply(this,arguments)}),tp=(k=(0,F.Z)(function(){var t,n;return(0,x.__generator)(this,function(t){switch(t.label){case 0:return[4,tv(1,1)];case 1:return[2,null!==(n=t.sent().data.videos[0])&&void 0!==n?n:null]}})}),function(){return k.apply(this,arguments)})},94381:function(t){t.exports={pc:"story_pc__W9Bqn",mobile:"story_mobile__5wEkO",hide:"story_hide__RKLcY",sr_only:"story_sr_only__0NUSc",page:"story_page__r5Yz9",history_btn:"story_history_btn__zrfxb",main_area:"story_main_area__P7njA",left_column:"story_left_column__E8f5J",create_loading:"story_create_loading__4NG7C",create_error:"story_create_error__3ol_U",blank_warn_toast:"story_blank_warn_toast__YQ_eP",blank_warn_toast_close:"story_blank_warn_toast_close__KxbRe"}}}]);

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.