1var b=Object.defineProperty;var h=(t,e,r)=>e in t?b(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var s=(t,e,r)=>(h(t,typeof e!="symbol"?e+"":e,r),r);import{P as _,E as m,a as y}from"./common-4ebc591d.js";import{_ as P}from"./vdlTabs-463f8eea.js";import{m as w,bD as d,B as v,P as I,az as D,aE as j,O as B,_ as S,r as T,o as E,g as R,w as l,bI as O,b as u,bJ as U,n as $}from"./vendor-147ef0d1.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]="d3956511-fe69-487f-b32a-7ae88ec2ae52",t._sentryDebugIdIdentifier="sentry-dbid-d3956511-fe69-487f-b32a-7ae88ec2ae52")}catch{}})();var k=Object.defineProperty,C=Object.getOwnPropertyDescriptor,n=(t,e,r,o)=>{for(var i=o>1?void 0:o?C(e,r):e,c=t.length-1,p;c>=0;c--)(p=t[c])&&(i=(o?p(e,r,i):p(i))||i);return o&&i&&k(e,r,i),i};let a=class extends w(_){constructor(){super(...arguments);s(this,"isActivating",!1);s(this,"isProvider");s(this,"activeRole");s(this,"attributes");s(this,"getProvider");s(this,"activeUser");s(this,"getProviderById");s(this,"setUIPreference");s(this,"userRoleBuyer");s(this,"eventBus");s(this,"keywords","");s(this,"currentPage");s(this,"keywordsInvites","");s(this,"currentPageInvites");s(this,"name","");s(this,"storage",localStorage||sessionStorage);s(this,"projects",[]);s(this,"defaultTabs",[{id:0,to:"active",name:"Active projects",show:!0},{id:1,to:"past",name:"Past projects",show:!0,disabled:!0}])}selectProfile(){this.$router.push({name:this.activeRole==="client"?"clientHome":"vaDashboard"}).catch(()=>{})}get displayTabs(){return this.isProvider&&this.activeRole!=="client"&&!this.$route.path.includes("/referrals")&&!this.$route.path.includes("/secure-payments")}get title(){return this.$route.path.includes("/referrals")?"Referrals":this.$route.path.includes("/secure-payments")?"Secure Payments":"Projects"}get metaTitle(){return"Voice123 Client Dashboard | Manage Your Voice Over Projects | Voice123"}get metaDescription(){return"Manage voice over projects, track messages, bookings, and liked proposals. Complete project management for voice over jobs."}get providerTabs(){const e=[{id:0,to:"invites",name:"CASTINGS",show:!0},{id:1,to:"bookings",name:"BOOKINGS",show:!0},{id:2,to:"offers",name:"DELIVERED",show:!0}];if(this.activeUser&&this.activeUser.provider_stats){const{unread_bookings_invitations:r,unread_projects_invitations:o}=this.activeUser.provider_stats,i=r||0,c=o||0;i>99?e[1].badge="99+":i>0&&(e[1].badge=i.toString()),c>99?e[0].badge="99+":c>0&&(e[0].badge=c.toString())}return e}getfromAttribute(e,r){return this.attributes.length>0?this.attributes.find(o=>o.name===e).values.find(o=>o.id===r):""}async mounted(){const{params:e}=this.$route;if(e.error){const r=e.error,o=typeof r=="string"?r:r.message||String(r);this.eventBus.emit("error",{data:e.errorData}),this.eventBus.emit("show-popup",{content:o})}Object.keys(this.getProvider)&&this.activeUser.provider_id&&await this.getProviderById(this.activeUser.provider_id)}};n([d],a.prototype,"isProvider",2);n([d],a.prototype,"activeRole",2);n([d],a.prototype,"attributes",2);n([d],a.prototype,"getProvider",2);n([d],a.prototype,"activeUser",2);n([v("getProvider")],a.prototype,"getProviderById",2);n([v],a.prototype,"setUIPreference",2);n([I()],a.prototype,"userRoleBuyer",2);n([D({from:m})],a.prototype,"eventBus",2);n([j("activeRole")],a.prototype,"selectProfile",1);a=n([B({})],a);function A(t,e,r,o,i,c){const p=P,f=T("router-view"),g=y;return E(),R(g,{showRolSelector:!0,class:$({dashboard:!0,"display-tabs-not":!t.displayTabs}),title:t.title,"show-back-button":!1,metaData:{title:t.metaTitle,description:t.metaDescription}},{"bar-extra":l(()=>[O(u(p,{tabs:t.providerTabs},null,8,["tabs"]),[[U,t.displayTabs]])]),default:l(()=>[u(f,{class:"homepage-content"})]),_:1},8,["class","title","metaData"])}const M=S(a,[["render",A]]);export{M as default}; 2//# sourceMappingURL=index-4b16c378.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.