1import{i as Ce,z as Fe,r as b,aa as ee,A as M,am as Ie,g as Ee,f as ze,x as Le,c as d,a as n,p as te,j as m,b as o,w as H,v as t,O as V,F as A,m as C,N as w,h,ah as Ue,ai as Me,o as r,e as De,s as F,l as c,n as se,af as D,U as Se,L as $e,ak as Te,G as Ne,aj as Oe,ag as S,at as je,aq as Be,ar as Pe}from"./v0dh_x8z.js";import{V as Ge,a as Re,b as ae,c as le,D as ne,v as oe,A as He,f as Ke,_ as Xe,i as qe,n as Ze,d as Ye}from"./lfuoyIDE.js";import{u as Je,I as Qe}from"./BBerkW8I.js";const We={class:"min-h-screen bg-[#f8f8f8] p-6 dark:bg-darkBackground"},et={class:"mx-auto max-w-7xl"},tt={class:"mb-6 flex flex-wrap items-center justify-between gap-4"},st={key:0,class:"mb-6 grid gap-3 sm:grid-cols-2 lg:grid-cols-4"},at={class:"min-w-0"},lt={class:"text-xs text-[#312F4A]/50 dark:text-white/45"},nt={class:"truncate text-sm font-semibold text-[#312F4A] dark:text-white"},ot={key:1,class:"mb-6 flex items-start gap-2 rounded-xl bg-[#630AF4]/[0.06] p-4 text-sm text-[#312F4A]/80 dark:bg-white/[0.05] dark:text-white/70"},it={key:2,class:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3"},rt={key:3,class:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3"},dt={class:"mb-4 flex items-start gap-4"},ct=["disabled","onClick"],ut=["src"],mt={key:1,class:"flex size-full items-center justify-center text-xl font-semibold text-white"},pt={class:"min-w-0 flex-1"},gt={class:"flex items-center gap-2"},vt={class:"truncate font-semibold text-[#312F4A] dark:text-white"},xt={class:"mt-0.5 truncate text-xs text-[#312F4A]/55 dark:text-white/45"},bt={class:"mt-2 flex flex-wrap gap-1.5"},ft={class:"rounded-full bg-[#F4F3F8] px-2 py-0.5 text-[11px] font-medium text-[#312F4A]/70 dark:bg-white/10 dark:text-white/60"},_t={class:"rounded-full bg-[#F4F3F8] px-2 py-0.5 text-[11px] text-[#312F4A]/50 dark:bg-white/10 dark:text-white/45"},kt={key:0,class:"mb-3 line-clamp-2 text-sm text-[#312F4A]/70 dark:text-white/60"},ht=["onClick"],yt={class:"mt-auto flex gap-2"},wt=["title","onClick"],Vt=["onClick"],At=["disabled","onClick"],Ct={key:1,class:"mx-auto size-5 animate-spin rounded-full border-2 border-red-500 border-t-transparent"},Ft={key:4,class:"rounded-xl bg-white p-12 text-center dark:bg-darkCards"},It={class:"small-scrollbar max-h-[70vh] overflow-y-auto pr-2"},Et={class:"flex flex-col gap-6 text-[#312F4A] dark:text-darkText"},zt={key:0},Lt={class:"grid gap-2 sm:grid-cols-2"},Ut=["disabled","onClick"],Mt={class:"block text-sm font-semibold"},Dt={class:"mt-0.5 block text-xs text-[#312F4A]/55 dark:text-white/50"},St={key:1},$t={class:"flex gap-2"},Tt={key:0,class:"mt-3 flex items-center gap-3 rounded-xl bg-green-50 p-3 text-sm dark:bg-green-900/20"},Nt={class:"min-w-0 flex-1 truncate"},Ot={class:"text-[#312F4A]/55 dark:text-white/50"},jt={key:2},Bt={class:"flex cursor-pointer items-center justify-center gap-2 rounded-xl border border-dashed border-[#630af4]/40 p-4 text-sm text-[#630af4] hover:bg-[#630af4]/5"},Pt=["accept"],Gt={class:"min-w-0 flex-1 truncate"},Rt={class:"text-xs text-[#312F4A]/45"},Ht=["onClick"],Kt={class:"grid gap-4 sm:grid-cols-[120px_1fr]"},Xt={class:"flex flex-col items-center gap-2"},qt=["src"],Zt={key:1,class:"flex size-full items-center justify-center text-3xl font-semibold text-white"},Yt={key:2,class:"absolute inset-0 flex flex-col items-center justify-center gap-1 bg-black/45 text-[11px] text-white"},Jt={class:"cursor-pointer text-xs font-medium text-[#630af4] hover:underline"},Qt=["disabled"],Wt={class:"space-y-2"},es={class:"grid gap-4 sm:grid-cols-2"},ts={class:"sm:col-span-2"},ss={class:"grid gap-x-6 gap-y-4 sm:grid-cols-2"},as={class:"mt-6 flex gap-3"},ie=5,rs=Ce({__name:"voices",setup(ls){const{t:K}=Fe(),u=b(null),X=b(!0),{loading:q,addLoading:re,removeLoading:de}=ee(),$=async()=>{try{re(),u.value=(await h.voiceover.ADMIN_VOICES()).data}catch(e){alert((e==null?void 0:e.message)||"Ðе ÑдалоÑÑ Ð·Ð°Ð³ÑÑзиÑÑ Ð³Ð¾Ð»Ð¾Ñа")}finally{de(),X.value=!1}},ce=M(()=>{const e=u.value;return e?[{label:"ElevenLabs",value:e.account.configured?"ÐодклÑÑÑн":"ÐÐµÑ ÐºÐ»ÑÑа",ok:e.account.configured,icon:"heroicons:signal"},{label:"ÐлониÑование",value:e.account.cloning?"ÐоÑÑÑпно":"ÐедоÑÑÑпно на ÑаÑиÑе",ok:e.account.cloning,icon:"heroicons:finger-print"},{label:"СвободнÑе ÑлоÑÑ Ð¿Ð¾Ð´ клонÑ",value:String(e.account.slots_free),ok:e.account.slots_free>0,icon:"heroicons:square-3-stack-3d"},{label:"ÐÑиÑиалÑнÑÑ
голоÑов",value:`${e.voices.length} / ${e.limit}`,ok:e.voices.length<e.limit,icon:"heroicons:microphone"}]:[]}),f=(e,s)=>K(e==="gender"?`voiceover.library.filters.${s}`:`voiceover.voice.${e}.${s}`),I=M(()=>({gender:le.map(e=>({title:f("gender",e),value:e})),accent:ae.map(e=>({title:f("accent",e),value:e})),use:Re.map(e=>({title:f("use",e),value:e})),tone:Ge.map(e=>({title:f("tone",e),value:e}))})),ue=e=>[f("gender",e.gender),f("tone",e.tone),f("use",e.use),f("accent",e.accent)].join(" · "),me=[{id:"library",title:"Ðз библиоÑеки ElevenLabs",caption:"Ðо ID голоÑа. Ð¡Ð»Ð¾Ñ Ð½Ðµ занимаеÑ, ÑабоÑÐ°ÐµÑ Ð½Ð° лÑбом ÑаÑиÑе",icon:"heroicons:book-open"},{id:"clone",title:"Ðлон по запиÑÑм",caption:"Свой ÑникалÑнÑй голоÑ. ÐÑжен ÑаÑÐ¸Ñ Ñ ÐºÐ»Ð¾Ð½Ð¸Ñованием и ÑвободнÑй ÑлоÑ",icon:"heroicons:finger-print"}],E=b(!1),p=b(null),T=()=>({origin:"library",voice_id:"",name:"",description:"",gender:"female",accent:"russian",use:"narration",tone:"calm",order:0,active:!0,avatar:null,avatar_details:"",settings:{...ne},samples:[],remove_noise:!1}),l=Ie(T()),pe=()=>{var e;Object.assign(l,T(),{order:((e=u.value)==null?void 0:e.voices.length)??0}),p.value=null,g.value=null,E.value=!0},ge=e=>{Object.assign(l,T(),{origin:e.origin,voice_id:e.voice_id,name:e.name,description:e.description,gender:e.gender,accent:e.accent,use:e.use,tone:e.tone,order:e.order,active:e.active,avatar:e.avatar,settings:{...ne,...e.settings}}),p.value=e.id,g.value=null,E.value=!0},N=()=>{R(),E.value=!1},O=M(()=>/^[A-Za-z0-9]{10,40}$/.test(l.voice_id)),g=b(null),j=b(!1);Ee(()=>l.voice_id,()=>g.value=null);const Z=async()=>
1{if(O.value){j.value=!0;try{const e=(await h.voiceover.ADMIN_LOOKUP(l.voice_id)).data;g.value=e,l.name||(l.name=e.name),!l.description&&e.description&&(l.description=e.description.slice(0,200)),e.gender&&le.includes(e.gender)&&(l.gender=e.gender),e.accent&&ae.includes(e.accent)&&(l.accent=e.accent)}catch(e){alert((e==null?void 0:e.message)||"ÐÐ¾Ð»Ð¾Ñ Ñ Ñаким ID не найден")}finally{j.value=!1}}},ve=e=>{const s=e.target,i=[...s.files||[]].filter(qe).map(Ze);l.samples=[...l.samples,...i].slice(0,ie),s.value=""},_=b(!1),B=b(0);let P;const xe=async()=>{_.value=!0,B.value=0,P=je(()=>B.value++,1e3);try{const{url:e}=(await h.voiceover.ADMIN_AVATAR({gender:l.gender,accent:l.accent,use:l.use,tone:l.tone,details:l.avatar_details.trim()||void 0})).data;l.avatar=e}catch(e){alert((e==null?void 0:e.message)||"Ðе ÑдалоÑÑ ÑгенеÑиÑоваÑÑ Ð°Ð²Ð°ÑаÑ")}finally{clearInterval(P),_.value=!1}},be=async e=>{var y;const s=e.target,i=(y=s.files)==null?void 0:y[0];if(i){_.value=!0;try{l.avatar=(await Je(i,{type:Qe.General})).url}catch(L){console.error(L),alert("ÐÑибка загÑÑзки изобÑажениÑ")}finally{_.value=!1,s.value=""}}},Y=M(()=>!l.name.trim()||_.value?!1:p.value?!0:l.origin==="library"?O.value:l.samples.length>0),G=()=>({name:l.name.trim(),description:l.description.trim(),gender:l.gender,accent:l.accent,use:l.use,tone:l.tone,order:Number(l.order)||0,active:l.active,avatar:l.avatar,settings:l.settings}),{loading:J,addLoading:fe,removeLoading:_e}=ee(),ke=async()=>{if(Y.value)try{if(fe(),p.value)await h.voiceover.ADMIN_VOICE_UPDATE(p.value,G());else if(l.origin==="library")await h.voiceover.ADMIN_VOICE_CREATE({...G(),origin:"library",voice_id:l.voice_id});else{const s=(await Promise.all(l.samples.map(i=>Be(i,{type:Pe.Voice})))).map(i=>{var y;return(y=i[0])==null?void 0:y._id}).filter(i=>!!i);await h.voiceover.ADMIN_VOICE_CREATE({...G(),origin:"clone",files:s,remove_noise:l.remove_noise})}N(),await $()}catch(e){alert((e==null?void 0:e.message)||"Ðе ÑдалоÑÑ ÑоÑ
ÑаниÑÑ Ð³Ð¾Ð»Ð¾Ñ")}finally{_e()}},he=async e=>{try{const s=(await h.voiceover.ADMIN_VOICE_UPDATE(e.id,{active:!e.active})).data;u.value&&(u.value.voices=u.value.voices.map(i=>i.id===s.id?s:i))}catch(s){alert((s==null?void 0:s.message)||"Ðе ÑдалоÑÑ Ð¾Ð±Ð½Ð¾Ð²Ð¸ÑÑ Ð³Ð¾Ð»Ð¾Ñ")}},z=b(null),ye=async e=>{const s=e.origin==="clone"?" Ðлон бÑÐ´ÐµÑ ÑдалÑн и Ñ ElevenLabs â ÑÐ»Ð¾Ñ Ð¾ÑвободиÑÑÑ.":"";if(confirm(`УдалиÑÑ Ð³Ð¾Ð»Ð¾Ñ Â«${e.name}»? Ðн пÑопадÑÑ Ð¸Ð· библиоÑеки.${s}`))try{z.value=e.id,await h.voiceover.ADMIN_VOICE_DELETE(e.id),await $()}catch(i){alert((i==null?void 0:i.message)||"Ðе ÑдалоÑÑ ÑдалиÑÑ Ð³Ð¾Ð»Ð¾Ñ")}finally{z.value=null}},we=e=>{var s;return(s=navigator.clipboard)==null?void 0:s.writeText(e)},k=b(null);let v=null;const R=()=>{v==null||v.pause(),k.value=null},Q=(e,s)=>{if(s){if(k.value===e)return R();v||(v=new Audio,v.addEventListener("ended",()=>k.value=null)),v.pause(),v.src=s,Ye(v),k.value=e,v.play().catch(()=>k.value=null)}};return ze($),Le(()=>{R(),clearInterval(P)}),(e,s)=>{var W;const i=De,y=Me("VSkeleton"),L=Te,U=Xe,Ve=Ue;return r(),d("div",We,[n("div",et,[n("div",tt,[s[17]||(s[17]=n("div",null,[n("h1",{class:"text-3xl font-bold text-[#312F4A] dark:text-white"}," ÐолоÑа озвÑÑки "),n("p",{class:"mt-1 text-sm text-[#312F4A]/60 dark:text-white/50"}," ÐÑиÑиалÑнÑе голоÑа FICHI показÑваÑÑÑÑ Ð¿ÐµÑвÑми в библиоÑеке «ÐзвÑÑки» Ñ Ð±ÐµÐ¹Ð´Ð¶ÐµÐ¼ FICHI ")],-1)),o(V,{text:"ÐобавиÑÑ Ð³Ð¾Ð»Ð¾Ñ",class:"v-btn-custom v-btn-custom_sm",variant:"flat",color:"#630af4",disabled:!!t(u)&&t(u).voices.length>=t(u).limit,onClick:pe},{prepend:H(()=>[o(i,{name:"heroicons:plus",class:"size-5"})]),_:1},8,["disabled"])]),t(u)?(r(),d("div",st,[(r(!0),d(A,null,C(t(ce),a=>(r(),d("div",{key:a.label,class:"flex items-center gap-3 rounded-xl bg-white p-4 shadow-sm dark:bg-darkCards"},[n("span",{class:F(["flex size-10 shrink-0 items-center justify-center rounded-full",a.ok?"bg-green-100 text-green-600 dark:bg-green-900/30 dark:text-green-400":"bg-orange-100 text-orange-600 dar
1k:bg-orange-900/30 dark:text-orange-400"])},[o(i,{name:a.icon,class:"size-5"},null,8,["name"])],2),n("div",at,[n("p",lt,c(a.label),1),n("p",nt,c(a.value),1)])]))),128))])):m("",!0),t(u)&&!t(u).account.cloning?(r(),d("p",ot,[o(i,{name:"heroicons:information-circle",class:"mt-0.5 size-5 shrink-0 text-[#630AF4] dark:text-white/70"}),s[18]||(s[18]=n("span",null,[w(" Ðа ÑекÑÑем ÑаÑиÑе ElevenLabs клониÑование недоÑÑÑпно. ÐобавлÑйÑе голоÑа из "),n("a",{href:"https://elevenlabs.io/app/voice-library",target:"_blank",rel:"noopener",class:"font-medium text-[#630AF4] underline dark:text-white"},"библиоÑеки ElevenLabs"),w(" по ID â они не занимаÑÑ ÑлоÑÑ Ð°ÐºÐºÐ°ÑнÑа и ÑабоÑаÑÑ ÑÑазÑ. ")],-1))])):m("",!0),t(X)&&t(q)?(r(),d("div",it,[(r(),d(A,null,C(3,a=>o(y,{key:a,height:"200",class:"rounded-xl"})),64))])):(W=t(u))!=null&&W.voices.length?(r(),d("div",rt,[(r(!0),d(A,null,C(t(u).voices,a=>(r(),d("div",{key:a.id,class:F(["flex flex-col rounded-xl bg-white p-5 shadow-sm dark:bg-darkCards",a.active?"":"opacity-60"])},[n("div",dt,[n("button",{type:"button",class:"group relative size-16 shrink-0 overflow-hidden rounded-full !outline-none",style:se({background:t(oe)(a.voice_id)}),disabled:!a.preview,onClick:x=>Q(a.id,a.preview)},[a.avatar?(r(),d("img",{key:0,src:a.avatar,alt:"",class:"size-full object-cover transition group-hover:brightness-75"},null,8,ut)):(r(),d("span",mt,c(a.name.charAt(0)),1)),a.preview?(r(),d("span",{key:2,class:F(["absolute inset-0 flex items-center justify-center text-white opacity-0 transition group-hover:opacity-100",t(k)===a.id?"!opacity-100":""])},[o(i,{name:t(k)===a.id?"heroicons:pause-solid":"heroicons:play-solid",class:"size-6 drop-shadow"},null,8,["name"])],2)):m("",!0)],12,ct),n("div",pt,[n("div",gt,[n("h3",vt,c(a.name),1),s[19]||(s[19]=n("span",{class:"shrink-0 rounded-full bg-gradient-to-r from-[#630AF4] to-[#F266C1] px-1.5 text-[9px] font-bold uppercase leading-[15px] text-white"},"FICHI",-1))]),n("p",xt,c(ue(a)),1),n("div",bt,[n("span",ft,c(a.origin==="library"?"ÐиблиоÑека":`Ðлон · ${a.samples} обÑ.`),1),n("span",{class:F(["rounded-full px-2 py-0.5 text-[11px] font-medium",a.active?"bg-green-100 text-green-700 dark:bg-green-900/30 dark:text-green-400":"bg-gray-100 text-gray-600 dark:bg-gray-700 dark:text-gray-400"])},c(a.active?"Ðоказан":"СкÑÑÑ"),3),n("span",_t," #"+c(a.order),1)])])]),a.description?(r(),d("p",kt,c(a.description),1)):m("",!0),n("button",{type:"button",class:"mb-4 truncate text-left font-mono text-[11px] text-[#312F4A]/40 hover:text-[#630AF4] dark:text-white/35",title:"СкопиÑоваÑÑ ID",onClick:x=>we(a.voice_id)},c(a.voice_id),9,ht),n("div",yt,[n("button",{class:"flex-1 rounded-lg border border-[#312F4A]/20 p-2 text-[#312F4A]/70 hover:bg-black/5 dark:border-white/20 dark:text-white/70",title:a.active?"СкÑÑÑÑ":"ÐоказаÑÑ",onClick:x=>he(a)},[o(i,{name:a.active?"heroicons:eye-slash":"heroicons:eye",class:"mx-auto size-5"},null,8,["name"])],8,wt),n("button",{class:"flex-1 rounded-lg border border-[#630af4] p-2 text-[#630af4] hover:bg-[#630af4]/10",onClick:x=>ge(a)},[o(i,{name:"heroicons:pencil",class:"mx-auto size-5"})],8,Vt),n("button",{class:"flex-1 rounded-lg border border-red-500 p-2 text-red-500 hover:bg-red-500/10",disabled:t(z)===a.id,onClick:x=>ye(a)},[t(z)!==a.id?(r(),te(i,{key:0,name:"heroicons:trash",class:"mx-auto size-5"})):(r(),d("div",Ct))],8,At)])],2))),128))])):t(q)?m("",!0):(r(),d("div",Ft,[o(i,{name:"heroicons:microphone",class:"mx-auto size-16 text-[#312F4A]/30 dark:text-white/30"}),s[20]||(s[20]=n("p",{class:"mt-4 text-[#312F4A]/70 dark:text-white/70"}," ÐÑиÑиалÑнÑÑ
голоÑов пока Ð½ÐµÑ ",-1))]))]),t(E)?(r(),te(Ve,{key:0,width:"95%","max-width":760,title:t(p)?"РедакÑиÑоваÑÑ Ð³Ð¾Ð»Ð¾Ñ":"ÐобавиÑÑ Ð³Ð¾Ð»Ð¾Ñ",icon:t(p)?"heroicons:pencil":"heroicons:plus",onClose:N},{default:H(()=>[n("div",It,[n("div",Et,[t(p)?m("",!0):(r(),d("div",zt,[s[21]||(s[21]=n("label",{class:"mb-2 block text-sm font-medium"},"ÐÑÑоÑник голоÑа",-1)),n("div",Lt,[(r(),d(A,null,C(me,a=>{var x;return n("button",{key:a.id,type:"button",class:F(["flex items-start gap-3 rounded-xl border p-3 text-left transition disabled:cursor-not-allowed disabled:opacity-50",t(l).origin===a.id?"border-[#630af4] bg-[#630af4]/[0.06]":"border-black/10 hover:border-[#630af4]/40 dark:border-white/15"]),disabled:a.id==="clone"&&!((x=t(u))!=null&&x.account.cloning),onClick:Ae=>t(l).origin=a.id},[o(i,{name:a.icon,class:"mt-0.5 size-5 shrink-0 text-[#630af4]"},null,8,["name"]),n("span",null,[n("span",Mt,c(a.title),1),n("span",Dt,c(a.caption),1)])],10,Ut)}),64))])])),!t(p)&&t(l).origin==="library"?(r(),d("div",St,[s[23]||(s[23]=n("label",{class:"mb-2 block text-sm font-medium"},"ID голоÑа в библиоÑеке ElevenLabs",-1)),n("div",$t,[o(D,{modelValue:t(l).voice_id,"onUpdate:modelValue":s[0]||(s[0]=a=>t(l).voice_id=a),modelModifiers:{trim:!0},variant:"outlined","hide-details":"",placeholder:"3EuKHIEZbSzrHGNmdYsx",class:"v-text-field-custom v-text-field-custom_sm flex-1",onKeydown:Se($e(Z,["prevent"]),["enter"])},null,8,["modelValue","onKeydown"]),o(V,{text:"ÐÑовеÑиÑÑ",class:"v-btn-custom v-btn-custom_sm",variant:"outlined",color:"#630af4",loading:t(j),disabled:!t(O),onClick:Z},null,8,["loading","disabled"])]),t(g)?(r(),d("div",Tt,[o(i,{name:"heroicons:check-circle",class:"size-5 shrink-0 text-green-600"}),n("span",Nt,[n("b",null,c(t(g).name),1),n("span",Ot," · "+c([t(g).category,t(g).gender,t(g).accent].filter(
1Boolean).join(" · ")),1)]),t(g).preview?(r(),d("button",{key:0,type:"button",class:"flex items-center gap-1 text-[#630af4]",onClick:s[1]||(s[1]=a=>Q("lookup",t(g).preview))},[o(i,{name:t(k)==="lookup"?"heroicons:pause-solid":"heroicons:play-solid",class:"size-4"},null,8,["name"]),s[22]||(s[22]=w(" ÐÑевÑÑ "))])):m("",!0)])):m("",!0)])):m("",!0),!t(p)&&t(l).origin==="clone"?(r(),d("div",jt,[n("label",{class:"mb-2 block text-sm font-medium"},"ÐбÑазÑÑ Ð³Ð¾Ð»Ð¾Ñа (1â"+c(ie)+", ÑиÑÑÐ°Ñ ÑеÑÑ Ð¾Ñ 1 минÑÑÑ)"),n("label",Bt,[o(i,{name:"heroicons:arrow-up-tray",class:"size-5"}),s[24]||(s[24]=w(" ÐÑбÑаÑÑ Ð°Ñдио ")),n("input",{type:"file",multiple:"",accept:t(He),class:"hidden",onChange:ve},null,40,Pt)]),(r(!0),d(A,null,C(t(l).samples,(a,x)=>(r(),d("div",{key:`${a.name}-${x}`,class:"mt-2 flex items-center gap-2 text-sm"},[o(i,{name:"heroicons:musical-note",class:"size-4 shrink-0 text-[#312F4A]/50"}),n("span",Gt,c(a.name),1),n("span",Rt,c(t(Ke)(a.size)),1),n("button",{type:"button",class:"text-red-500",onClick:Ae=>t(l).samples.splice(x,1)},[o(i,{name:"heroicons:x-mark",class:"size-4"})],8,Ht)]))),128)),o(L,{modelValue:t(l).remove_noise,"onUpdate:modelValue":s[2]||(s[2]=a=>t(l).remove_noise=a),label:"УбÑаÑÑ ÑоновÑй ÑÑм",class:"mt-3"},null,8,["modelValue"])])):m("",!0),n("div",Kt,[n("div",Xt,[n("div",{class:"relative size-[112px] overflow-hidden rounded-full",style:se({background:t(oe)(t(l).voice_id||t(l).name||"voice")})},[t(l).avatar?(r(),d("img",{key:0,src:t(l).avatar,alt:"",class:"size-full object-cover"},null,8,qt)):(r(),d("span",Zt,c((t(l).name||"?").charAt(0)),1)),t(_)?(r(),d("div",Yt,[s[25]||(s[25]=n("div",{class:"size-6 animate-spin rounded-full border-2 border-white border-t-transparent"},null,-1)),w(" "+c(t(B))+" Ñ ",1)])):m("",!0)],4),n("label",Jt,[s[26]||(s[26]=w(" ÐагÑÑзиÑÑ ")),n("input",{type:"file",accept:"image/*",class:"hidden",disabled:t(_),onChange:be},null,40,Qt)]),t(l).avatar?(r(),d("button",{key:0,type:"button",class:"text-xs text-red-500",onClick:s[3]||(s[3]=a=>t(l).avatar=null)}," УбÑаÑÑ ")):m("",!0)]),n("div",Wt,[s[27]||(s[27]=n("label",{class:"block text-sm font-medium"},"ÐваÑÐ°Ñ ÑеÑез нейÑоÑеÑÑ",-1)),Ne(n("textarea",{"onUpdate:modelValue":s[4]||(s[4]=a=>t(l).avatar_details=a),rows:"3",maxlength:"400",placeholder:"ÐнеÑноÑÑÑ Ð¿Ð¾ желаниÑ: «коÑоÑÐºÐ°Ñ ÑÑÑижка, оÑки в Ñонкой опÑаве, джинÑÐ¾Ð²Ð°Ñ ÑÑбаÑка». Ðол, акÑенÑ, ÑÐ¾Ð»Ñ Ð¸ Ñ
аÑакÑÐµÑ Ð±ÐµÑÑÑÑÑ Ð¸Ð· полей ниже",class:"w-full resize-none rounded-lg border border-black/15 bg-transparent p-2.5 text-sm outline-none focus:border-[#630af4] dark:border-white/20"},null,512),[[Oe,t(l).avatar_details]]),o(V,{text:t(l).avatar?"СгенеÑиÑоваÑÑ Ð·Ð°Ð½Ð¾Ð²Ð¾":"СгенеÑиÑоваÑÑ Ð°Ð²Ð°ÑаÑ",class:"v-btn-custom v-btn-custom_sm",variant:"flat",color:"#630af4",loading:t(_),onClick:xe},{prepend:H(()=>[o(i,{name:"heroicons:sparkles",class:"size-4"})]),_:1},8,["text","loading"]),s[28]||(s[28]=n("p",{class:"text-xs text-[#312F4A]/45 dark:text-white/40"}," gpt-image-2.5, medium, 256Ã256 â в ÑÑиле базовÑÑ
голоÑов. ÐÐ°Ð½Ð¸Ð¼Ð°ÐµÑ Ð´Ð¾ минÑÑÑ ",-1))])]),n("div",es,[n("div",null,[s[29]||(s[29]=n("label",{class:"mb-2 block text-sm font-medium"},"ÐÐ¼Ñ Ð² библиоÑеке",-1)),o(D,{modelValue:t(l).name,"onUpdate:modelValue":s[5]||(s[5]=a=>t(l).name=a),modelModifiers:{trim:!0},variant:"outlined","hide-details":"",maxlength:"40",class:"v-text-field-custom v-text-field-custom_sm"},null,8,["modelValue"])]),n("div",null,[s[30]||(s[30]=n("label",{class:"mb-2 block text-sm font-medium"},"ÐоÑÑдок",-1)),o(D,{modelValue:t(l).order,"onUpdate:modelValue":s[6]||(s[6]=a=>t(l).order=a),modelModifiers:{number:!0},variant:"outlined","hide-details":"",type:"number",class:"v-text-field-custom v-text-field-custom_sm"},null,8,["modelValue"])]),n("div",ts,[s[31]||(s[31]=n("label",{class:"mb-2 block text-sm font-medium"},"ÐпиÑание",-1)),o(D,{modelValue:t(l).description,"onUpdate:modelValue":s[7]||(s[7]=a=>t(l).description=a),modelModifiers:{trim:!0},variant:"outlined","hide-details":"",maxlength:"200",class:"v-text-field-custom v-text-field-custom_sm"},null,8,["modelValue"])]),o(S,{modelValue:t(l).gender,"onUpdate:modelValue":s[8]||(s[8]=a=>t(l).gender=a),items:t(I).gender,label:"Ðол",variant:"outlined","hide-details":"",class:"v-select-custom v-select-custom_sm"},null,8,["modelValue","items"]),o(S,{modelValue:t(l).accent,"onUpdate:modelValue":s[9]||(s[9]=a=>t(l).accent=a),items:t(I).accent,label:"ÐкÑенÑ",variant:"outlined","hide-details":"",class:"v-select-custom v-select-custom_sm"},null,8,["modelValue","items"]),o(S,{modelValue:t(l).use,"onUpdate:modelValue":s[10]||(s[10]=a=>t(l).use=a),items:t(I).use,label:"ÐÐ»Ñ Ñего",variant:"outlined","hide-details":"",class:"v-select-custom v-select-custom_sm"},null,8,["modelValue","items"]),o(S,{modelValue:t(l).tone,"onUpdate:modelValue":s[11]||(s[11]=a=>t(l).tone=a),items:t(I).tone,label:"ХаÑакÑеÑ",variant:"outlined","hide-details":"",class:"v-select-custom v-select-custom_sm"},null,8,["modelValue","items"])]),n("div",null,[s[32]||(s[32]=n("label",{class:"mb-3 block text-sm font-medium"},"ÐаÑÑÑойки по ÑмолÑаниÑ",-1)),n("div",ss,[o(U,{modelValue:t(l).settings.stability,"onUpdate:modelValue":s[12]||(s[12]=a=>t(l).settings.stability=a),label:"СÑабилÑноÑÑÑ",left:"Ðивее",right:"Ровнее"},null,8,["modelValue"]),o(U,{modelValue:t(l).settings.similarity,"onUpdate:modelValue":s[13]||(s[13]=a=>t(l).settings.similarity=a),label:"ÐоÑ
ожеÑÑÑ",left:"Свободнее",right:"Ðлиже к обÑазÑÑ"},null,8,["modelValue"]),o(U,{modelValue:t(l).settings.style,"onUpdate:modelValue":s[14]||(s[14]=a=>t(l).settings.style=a),label:"ÐÑÑазиÑелÑноÑÑÑ",left:"ÐейÑÑалÑно",right:"ЯÑко"},null,8,["modelValue"]),o(U,{modelValue:t(l).settings.speed,"onUpdate:modelValue":s[15]||(s[15]=a=>t(l).settings.speed=a),label:"СкоÑоÑÑÑ",min:.7,max:1.2,step:.05,format:a=>`${a.toFixed(2)}Ã`},null,8,["modelValue","format"])])]),o(L,{modelValue:t(l).active,"onUpdate:modelValue":s[16]||(s[16]=a=>t(l).active=a),label:"ÐоказÑваÑÑ Ð² библиоÑеке"},null,8,["modelValue"])])]),n("div",as,[o(V,{text:"ÐÑмена",class:"v-btn-custom v-btn-custom_sm flex-1",variant:"outlined",disabled:t(J),onClick:N},null,8,["disabled"]),o(V,{text:t(p)?"СоÑ
ÑаниÑÑ":"ÐобавиÑÑ",class:"v-btn-custom v-btn-custom_sm flex-1",variant:"flat",color:"#630af4",loading:t(J),disabled:!t(Y),onClick:ke},null,8,["text","loading","disabled"])])]),_:1},8,["title","icon"])):m("",!0)])}}});
1export{rs as default};
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.