1var P=Object.defineProperty;var w=(t,e,r)=>e in t?P(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var i=(t,e,r)=>(w(t,typeof e!="symbol"?e+"":e,r),r);import{m as j,bY as S,aX as I,bD as p,B as g,P as O,az as D,ei as B,O as T,_ as E,o as u,c as A,b as m,w as v,a as s,bH as R,t as _,g as V,h,aI as $}from"./vendor-147ef0d1.js";import{aj as k,al as C,bQ as G,c2 as N,a7 as U}from"./common-4ebc591d.js";import{_ as M}from"./vdlUserInfo-2fcba52c.js";import"./getMinutesPassed-9927a987.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"[email protected]"};var e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="52dce3ae-4afc-4b45-8b83-fecc1e65f033",t._sentryDebugIdIdentifier="sentry-dbid-52dce3ae-4afc-4b45-8b83-fecc1e65f033")}catch{}})();var L=Object.defineProperty,Y=Object.getOwnPropertyDescriptor,d=(t,e,r,a)=>{for(var n=a>1?void 0:a?Y(e,r):e,l=t.length-1,c;l>=0;l--)(c=t[l])&&(n=(a?c(e,r,n):c(n))||n);return a&&n&&L(e,r,n),n};let o=class extends j(k,C){constructor(){super(...arguments);i(this,"uploadingSample",!1);i(this,"currentService","voice_over");i(this,"loading",!1);i(this,"buyerNotes",[]);i(this,"timerId");i(this,"isProvider");i(this,"attributes");i(this,"ttsGeneratedSample");i(this,"getProvider");i(this,"getProviderById");i(this,"getTTSAudio");i(this,"id");i(this,"parentPage")}get projectOwner(){return Object.keys(this.currentProject).length>0&&G(this.currentProject)}get clientUser(){return Object.keys(this.currentProject).length>0&&this.currentProject.users[0]}get providerStats(){let e="";return Object.keys(this.getProvider).length&&this.getProvider.user.last_interaction&&(e=`Last online: ${this.format.relativeTime(this.getProvider.user.last_interaction)}`),e}get userRole(){const e=this.activeUser;return this.projectOwner&&"projectOwner"||this.isProvider&&this.deliverableModel.provider_id===e.provider_id&&"deliverableOwner"||"buyer"}get deliverableModel(){return{file:{url:this.ttsGeneratedSample.file}}}get deliverableSchema(){const e=[{attribute:"file",type:"hide",svgIcon:B,name:"Finished recording",view:"audition_player",disabledCaption:function(r){return this.isError(r)?"Error processing audio.":"Processing audio..."},targetCondition:function(r){return r.file},isDisabled(r){return r.processed!==void 0&&!r.processed},isError(r){return r.error!==void 0&&!!r.error},listenedAudio(){return()=>{}},voiceCredentials(r){return r.signed}}];return this.currentProject.status==="completed"&&this.currentProject.completion_reason==="instant-audition-accepted"?e[0].playerActions=[{name:"download",label:"Download recording",icon:S,handler:this.downloadRecording}]:e.push({view:"informative",svgIcon:I,name:"The final recording will be available for download once the voice actor accepts the terms of this AI voiceover."}),e}displayIf(e){return e.some(r=>r===this.userRole)}async downloadRecording(){if(this.activeUser.type==="undesirable")return;const e=this.ttsGeneratedSample.file;window.open(e.startsWith("http")?e:`//${e}`,"_blank")}async mounted(){var e,r,a,n;if(this.loading=!0,(r=(e=this.parentPage)==null?void 0:e.showProgress)==null||r.call(e),Object.keys(this.ttsGeneratedSample).length===0){const l=this.currentProject.service_properties,c=l&&typeof l=="object"&&"tts_generated_id"in l?l.tts_generated_id:void 0;c&&await this.getTTSAudio(c)}await this.getProviderById(this.currentProject.provider_id),this.eventBus.on("download-recording",()=>{this.downloadRecording()}),(n=(a=this.parentPage)==null?void 0:a.hideProgress)==null||n.call(a),this.loading=!1}beforeUnmount(){this.eventBus.off("download-recording",()=>{})}};d([p],o.prototype,"isProvider",2);d([p],o.prototype,"attributes",2);d([p],o.prototype,"ttsGeneratedSample",2);d([p],o.prototype,"getProvider",2);d([p],o.prototype,"activeUser",2);d([g("getProvider")],o.prototype,"getProviderById",2);d([g],o.prototype,"getTTSAudio",2);d([O()],o.prototype,"id",2);d([D({from:N})],o.prototype,"parentPage",2);o=d([T({})],o);const z={key:0,class:"deliverable-content"},F={class:"md-scrollbar"},H={class:"field-item"},Q={class:"md-list-item step-title"},W={class:"md-list-item-container"},X={class:"md-list-text-container"},q={class:"md-title"},J={class:"md-list-item field-item-list"},K={class:"md-list-item-container"},Z={class:"md-list-item step-title"},x={class:"md-list-item-container"},ee={class:"md-list-text-container"},te={class:"md-title"};function re(t,e,r,a,n,l){const c=M,f=U,b=$;return t.loading?h("",!0):(u(),A("section",z,[m(b,{class:"details"},{default:v(()=>[s("div",F,[m(f,{schema:t.deliverableSchema,modelValue:t.deliverableModel,"onUpdate:modelValue":e[0]||(e[0]=y=>t.deliverableModel=y),ref:"DeliverableDetailsViewer"},R({_:2},[t.displayIf(["projectOwner","deliverableOwner","bystander"])?{name:"data-viewer_top__field",fn:v(()=>[s("div",H,[s("li",Q,[s("div",W,[s("div",X,[s("span",q,_(t.$t("Voice actor")),1)])])]),s("li",J,[s("div",K,[t.getProvider&&t.getProvider.user?(u(),V(c,{key:0,name:t.getProvider.user.name,picture:t.getProvider.user.picture_medium,provider:t.getProvider,"membership-type":t.getProvider.membership_product_name,content:t.providerStats},null,8,["name","picture","provider","membership-type","content"])):h("",!0)])]),s("li",Z,[s("div",x,[s("div",ee,[s("span",te,_(t.$t("Recording details")),1)])])])])]),key:"0"}
1:void 0]),1032,["schema","modelValue"])])]),_:1})]))}const de=E(o,[["render",re]]);export{de as default}; 2//# sourceMappingURL=index-1c07991e.js.map
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.