1import{d as e,S as o,b as a,c as i,e as s,t,h as c,f as l,_ as n,F as d,r,C as p,w as v,K as u,q as m}from"./DQ8Q0yk1.js";import{d as y}from"./CWMNVw9c.js";const _={class:"voice-modal-content"},f={class:"voice-modal-header"},C={class:"voice-modal-body"},b={class:"voice-options"},g=["title","onClick"],k={class:"voice-avatar"},h=["src","alt"],S={class:"voice-info"},V={class:"voice-name"},F={class:"voice-description"},P=["title","onClick"],T=e({__name:"VoiceSelectorModalContent",props:{selectedVoiceId:{default:""},onSelect:{type:Function,default:()=>{}},onClose:{type:Function,default:()=>{}},onPlay:{type:Function,default:()=>{}},isPlaying:{type:Function,default:()=>!1}},setup(e){const{t:m}=o(),T=e,j=y,z=()=>{T.onClose()};return(o,y)=>{const I=n;return a(),i("div",_,[s("div",f,[s("h3",null,t(c(m)("pages.creatorTool.character.profile.voiceTone")),1),s("button",{class:"modal-close-btn",onClick:z},[l(I,{name:"lucide:x",size:"20"})])]),s("div",C,[s("div",b,[(a(!0),i(d,null,r(c(j),o=>(a(),i("div",{key:o.voice_id,class:p(["voice-option",{active:e.selectedVoiceId===o.uniq_id}]),title:o.description,onClick:e=>(e=>{T.onSelect(e)})(o)},[s("div",k,[s("img",{src:o.cover_url,alt:o.voice_name},null,8,h)]),s("div",S,[s("div",V,t(o.voice_name),1),s("div",F,t(o.description.length>50?o.description.substring(0,50)+"...":o.description),1)]),s("button",{class:"voice-play-btn",title:c(m)("pages.creatorTool.character.profile.playVoiceSample"),onClick:v(e=>{return a=o.sample_audio,void T.onPlay(a);var a},["stop"])},[e.isPlaying(o.sample_audio)?(a(),u(I,{key:1,name:"lucide:pause",size:"16"})):(a(),u(I,{key:0,name:"lucide:play",size:"16"}))],8,P)],10,g))),128))])])])}}}),j=Object.assign(m(T,[["__scopeId","data-v-dc12bad3"]]),{__name:"CreatorToolV2ModalsVoiceSelectorModalContent"});export{j 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.