1var O=Object.defineProperty;var j=(e,a,t)=>a in e?O(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t;var u=(e,a,t)=>(j(e,typeof a!="symbol"?a+"":a,t),t);import{V as U,aX as G,cJ as k,fZ as V,P as E,bD as I,B as S,fa as N,dq as R,a9 as z,O as F,_ as q,r as J,o as d,c as b,b as s,w as i,n as X,a as g,t as f,g as v,h as p,d as w,bu as Y,aH as H,j as K,bU as W,bV as Z,aL as Q,aM as x,aI as ee,aO as te,aP as ie}from"./vendor-bcedddd6.js";import{_ as oe}from"./vdlUserInfo-6e0fa458.js";import{_ as ne}from"./vdlListItem-ef5eb8cb.js";import{X as se,w as ae}from"./c2pa_bg-dfe1ec4d.js";import{cJ as re,cK as D,cL as le,cM as de}from"./common-871db766.js";import"./getMinutesPassed-ae664fd4.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"[email protected]"};var a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="cbe13c41-7e83-4414-876c-fed563997baa",e._sentryDebugIdIdentifier="sentry-dbid-cbe13c41-7e83-4414-876c-fed563997baa")}catch{}})();var ce=Object.defineProperty,ue=Object.getOwnPropertyDescriptor,h=(e,a,t,o)=>{for(var n=o>1?void 0:o?ue(a,t):a,c=e.length-1,r;c>=0;c--)(r=e[c])&&(n=(o?r(a,t,n):r(n))||n);return o&&n&&ce(a,t,n),n};let _=class extends U{constructor(){super(...arguments);u(this,"mdiInformationOutline",G);u(this,"mdiShieldCheck",k);u(this,"mdiShieldAlertOutline",V);u(this,"activeManifest");u(this,"loadingData",!0);u(this,"source");u(this,"isLoggedIn");u(this,"attributes");u(this,"getProvider");u(this,"activeUser");u(this,"activeRole");u(this,"getProviderBySlug");u(this,"changeDiscoveryFlag")}get icon(){return this.loadingData||!this.signedBy?V:k}get generator(){return re(this.activeManifest)}get signedBy(){return this.generator&&this.activeManifest&&`${this.generator[0].name} on ${this.format.datetime(this.activeManifest.signature_info.time)}`}get producer(){var t;return this.activeManifest&&((t=D(this.activeManifest))==null?void 0:t[0])}get providerUsername(){const t=D(this.activeManifest),o=t==null?void 0:t.find(n=>n["@id"]&&n["@id"].includes("voice123.com"));return o&&this.getProviderBySlug({slug:o==null?void 0:o.name,service:"voice_over"}),o==null?void 0:o.name}get goToProvider(){return{name:"profileView",params:{id:this.providerUsername}}}get firstName(){const t=this.getProvider&&this.getProvider.user&&this.getProvider.user.name;return t?t.split(" ")[0]:""}get activityItems(){const t={"c2pa.created":N,"c2pa.edited":R,"c2pa.published":z};return le(this.activeManifest).map(n=>{var c,r;return{icon:t[n.action],label:(c=n.parameters)==null?void 0:c.description,action:n.action,projectId:(r=n.parameters)==null?void 0:r.projectId}})}get usageItems(){var r,m;const t={"c2pa.ai_generative_training":"Generative AI model training","c2pa.ai_training":"Non generative AI model training","c2pa.ai_inference":"Input on AI models","c2pa.data_mining":"Data mining"},o={notAllowed:"Not allowed",allowed:"Allowed",constrained:"Constrained"},c=((m=(r=this.activeManifest)==null?void 0:r.assertions)==null?void 0:m.find(l=>l.label==="c2pa.training-mining")).data.entries;return c&&Object.entries(c).length?Object.entries(c).map(([l,y])=>({action:l,label:t[l],use:o[y.use],value:y})):[]}get aiProvider(){return de(this.activeManifest)}get discoveryContent(){return this.isLoggedIn&&this.activeRole==="client"?"A new open technology for building trust in what you listen to online.":"Voice123 digitally signs the files you upload for proposals, bookings, and samples to protect your work."}async read(t){const o=await se({wasmSrc:ae}),c=await(await fetch(t)).blob();try{const m=await(await o.reader.fromBlob(c.type,c)).manifestStore(),l=m==null?void 0:m.active_manifest;this.activeManifest=l&&m.manifests?m.manifests[l]:void 0}catch(r){console.error("Error reading file:",r)}}openLandingPage(){const t="https://voice123.com/thebooth/voice-credentials-audio-security?utm_source=voiceCredentials&utm_medium=link&utm_campaign=vai&utm_content=read-more-cta";window.open(t,"_blank")}get showDiscovery(){const t=!this.loadingData&&this.activeManifest&&this.isLoggedIn&&!this.activeUser.discovery_flags.voice_credentials;return t&&this.$nextTick(()=>{const o=document.getElementById("voice_credentials");o==null||o.scrollIntoView({behavior:"instant"}),this.$nextTick(()=>{const n=this.$refs.credentialsWizard;n==null||n.start()})}),t}get goToVoiceCredentials(){return{name:"voiceCredentials",query:{source:btoa(this.source)}}}closeDiscovery(){return this.changeDiscoveryFlag({flag:"voice_credentials"})}async mounted(){await this.read(this.source),this.loadingData=!1}};h([E()],_.prototype,"source",2);h([I],_.prototype,"isLoggedIn",2);h([I],_.prototype,"attributes",2);h([I],_.prototype,"getProvider",2);h([I],_.prototype,"activeUser",2);h([I],_.prototype,"activeRole",2);h([S],_.prototype,"getProviderBySlug",2);h([S],_.prototype,"changeDiscoveryFlag",2);_=h([F({})],_);const me={key:0},pe={class:"md-title"},ge={class:"md-subheading-1"},_e={class:"md-body-1"},fe={key:0},ve={class:"md-list-text-container"},he={class:"item-title md-subheading-2"},ye={key:0,class:"item-info md-body-1"},be={key:1,class:"item-info md-body-1"},Ie={key:1},we={class:"md-subheading-1"},Ce={class:"md-list-text-container"},Pe={class:"item-title md-subheading-2 bold"},ke={key:0,class:"item-info md-body-1"};function Ve(e,a,t,o,n,c){const r=H,m=K,l=W,y=ne,A=oe,C=J("router-link"),P=Z,$=Q,L=x,T=ee,B=te,M=ie;return e.loadingData?p("",!0):(d(),b("div",me,[s(L,{"md-size":"6","md-direction":"bottom left"},{default:i(()=>[s(m,{id:"voice_credentials",class:X(["md-icon-button",{"md-primary":!!e.signedBy}]),"aria-label":e.$t("more options"),"md-menu-trigger":""},{default:i(()=>[s(r,{mdSvg:e.icon},null,8,["mdSvg"])]),_:1},8,["class","aria-label"]),s($,null,{default:i(()=>[s(P,null,{default:i(()=>[s(l,null,{default:i(()=>[g("h3",pe,f(e.$t("Voice Credentials")),1),s(m,{class:"md-icon-button","aria-label":e.$t("Read more about Voice Credentials"),onClick:e.openLandingPage},{default:i(()=>[s(r,{mdSvg:e.mdiInformationOutline},null,8,["mdSvg"])]),_:1},8,["aria-label","onClick"])]),_:1}),e.signedBy?p("",!0):(d(),v(l,{key:0},{default:i(()=>[g("h2",ge,f(e.$t("This file does not include Voice Credentials")),1)]),_:1})),e.signedBy?p("",!0):(d(),v(l,{key:1},{default:i(()=>[g("p",_e,f(e.$t("You may be able to find Voice Credentials associated with this file by searching for possible matches.")),1)]),_:1})),e.signedBy?(d(),v(y,{key:2,mainText:"Signed by",secondLine:e.signedBy,divider:!1,isGreen:!1,smallIcons:!0,offerClickable:!1},null,8,["secondLine"])):p("",!0),e.providerUsername?(d(),v(l,{key:3},{default:i(()=>[g("p",null,f(e.$t("Produced by")),1)]),_:1})):p("",!0),e.providerUsername?(d(),v(l,{key:4},{default:i(()=>[s(C,{to:e.goToProvider},{default:i(()=>[e.getProvider&&e.getProvider.user?(d(),v(A,{key:0,name:e.getProvider.user.name,picture:e.getProvider.user.picture_medium,"membership-type":e.getProvider.membership_product_name},null,8,["name","picture","membership-type"])):p("",!0)]),_:1},8,["to"])]),_:1})):p("",!0),!e.providerUsername&&e.producer?(d(),v(y,{key:5,mainText:"Produced by",secondLine:e.producer.name,divider:!1,isGreen:!1,smallIcons:!0,offerClickable:!1},null,8,["secondLine"])):p("",!0),e.aiProvider?(d(),v(y,{key:6,mainText:"Generative AI Provider",secondLine:e.aiProvider,divider:!1,isGreen:!1,smallIcons:!0,offerClickable:!1},null,8,["secondLine"])):p("",!0)]),_:1}),e.usageItems&&e.usageItems.length?(d(),b("div",fe,[s(P,null,{default:i(()=>[s(l,null,{default:i(()=>[g("div",ve,[g("div",null,[g("span",he,f(e.usageItems[0].label),1)]),e.usageItems[0].value.use==="constrained"?(d(),b("span",ye,f(e.usageItems[0].value.constraint_info),1)):(d(),b("span",be,f(e.usageItems[0].use),1))])]),_:1})]),_:1})])):p("",!0),e.activityItems&&e.activityItems.length?(d(),b("div",Ie,[s(P,null,{default:i(()=>[s(l,null,{default:i(()=>[g("h2",we,f(e.$t("Latest file activity")),1)]),_:1}),s(l,null,{default:i(()=>[s(r,{mdSvg:e.activityItems[0].icon},null,8,["mdSvg"]),g("div",Ce,[g("div",null,[g("span",Pe,f(e.activityItems[0].label),1)]),e.activityItems[0].action==="c2pa.published"&&e.activityItems[0].projectId?(d(),b("span",ke,[s(C,{to:{path:`/projects/${e.activityItems[0].projectId}/specs`},target:"_blank"},{default:i(()=>[w("View project")]),_:1},8,["to"])])):p("",!0)])]),_:1})]),_:1})])):p("",!0),s(C,{to:e.goToVoiceCredentials,class:"md-button md-theme md-primary md-raised"},{default:i(()=>[w("View more")]),_:1},8,["to"])]),_:1})]),_:1}),(d(),v(Y,{to:"#teleported"},[e.showDiscovery?(d(),v(M,{key:0,ref:"credentialsWizard","auto-start":!1,backdrop:!0},{default:i(()=>[s(B,{heading:"Introducing",target:"#voice_credentials",icon:e.icon,title:"Voice Credentials",nextText:"Got it","mobile-position":"top","large-position":"top-left","extra-large-position":"top-left"},{actions:i(()=>[s(T,{"md-flex":"","md-align":"end"},{default:i(()=>[s(m,{onClick:e.openLandingPage},{default:i(()=>[w("Read More")]),_:1},8,["onClick"]),s(m,{class:"md-outlined",onClick:e.closeDiscovery},{default:i(()=>[w("Got it!")]),_:1},8,["onClick"])]),_:1})]),default:i(()=>[g("p",null,f(e.discoveryContent),1)]),_:1},8,["icon"])]),_:1},512)):p("",!0)]))]))}const Oe=q(_,[["render",Ve],["__scopeId","data-v-e39370a8"]]);export{Oe as default}; 2//# sourceMappingURL=vdlVoiceCredentialsSummary-607dcebd.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.