PageSourceSearch

https://voicerankings.com/_nuxt/BzqPsW2x.js

js voicerankings.com collected 2026-09-24 14:58:40 UTC 9,956 bytes, 1 lines download raw bytes

1import{H as Y,b as l,aF as z,w as D,E as L,r as S,u as B,e as s,o as a,f as t,g as j,t as o,j as m,a5 as R,x as u,l as T,m as P,p as g,F as G,i as H,n as W,aG as q}from"./NFnIG1Q0.js";const J={class:"px-2 md:px-0 max-w-5xl mx-auto min-h-screen flex flex-col pb-12"},O={class:"flex-grow"},Q={class:"flex flex-col md:flex-row items-center justify-between bg-white dark:bg-gray-800 rounded-2xl p-6 shadow-sm border border-gray-100 dark:border-gray-700 mb-8"},Z={class:"flex items-center gap-6"},K={class:"w-20 h-20 rounded-2xl bg-indigo-600 flex items-center justify-center text-white text-3xl font-bold shadow-inner shrink-0 overflow-hidden border-2 border-indigo-100 dark:border-indigo-900/50"},X=["src"],ee={key:1},te={class:"text-2xl font-black text-gray-900 dark:text-white"},se={class:"text-gray-500 dark:text-gray-400 mt-1"},ae={class:"flex gap-6 mt-6 md:mt-0 p-4 rounded-xl items-center"},re={key:0,class:"flex flex-col gap-4 min-w-[260px]"},oe={class:"flex justify-between text-[11px] uppercase tracking-wider mb-1.5"},ie={class:"font-black text-indigo-600 dark:text-indigo-400"},ne={class:"h-2 w-full bg-gray-100 dark:bg-gray-700/50 rounded-full overflow-hidden shadow-inner"},de={class:"flex justify-between text-[11px] uppercase tracking-wider mb-1.5"},le={class:"font-bold text-gray-500 dark:text-gray-400"},ce={key:0,class:"lowercase normal-case text-gray-400 opacity-80 font-semibold tracking-normal"},ue={class:"font-black text-amber-600 dark:text-amber-400"},ge={class:"h-2 w-full bg-gray-100 dark:bg-gray-700/50 rounded-full overflow-hidden shadow-inner"},_e={key:1,class:"text-sm font-bold text-indigo-500 uppercase tracking-widest text-center px-4"},pe={class:"text-center flex flex-col items-center justify-center shrink-0"},ye={class:"space-y-8"},me={class:"bg-white dark:bg-gray-800 rounded-2xl p-6 shadow-sm border border-gray-100 dark:border-gray-700"},xe={key:0,class:"py-12 text-center text-gray-400"},he={key:1,class:"py-12 text-center text-gray-500 bg-gray-50 dark:bg-gray-800/50 rounded-xl border border-gray-100 dark:border-gray-700"},be={key:2,class:"relative border-l-2 border-indigo-100 dark:border-indigo-900/50 ml-6 space-y-8 pb-4"},fe=["onClick"],ke={class:"flex items-center justify-between mb-2"},ve={class:"flex items-center gap-2"},we={class:"font-bold text-gray-900 dark:text-white text-sm"},Me={key:0},Ce={key:1},De={key:2},Le={key:3},Se={key:4},je={key:5},Re={key:6},Ie={key:0},Fe={key:1},Ne={key:7},Ae={key:0},$e={key:1},Ee={key:8},Ue={key:0},Ve={key:1},Ye={key:9},ze={class:"font-bold text-indigo-600 dark:text-indigo-400 text-sm"},Be={class:"text-xs text-gray-400 font-medium uppercase tracking-wider"},Te={key:0,class:"text-sm text-gray-600 dark:text-gray-300 italic border-l-2 border-purple-200 dark:border-purple-800 pl-3"},Pe={key:1,class:"flex flex-col gap-2"},Ge={class:"flex items-center gap-2"},He={class:"text-xs font-bold text-indigo-600 bg-indigo-50 dark:bg-indigo-900/30 dark:text-indigo-400 px-2 py-0.5 rounded-md"},We={class:"text-sm text-gray-600 dark:text-gray-300"},qe={key:2,class:"text-sm text-gray-600 dark:text-gray-300 mt-1"},Je={key:0,class:"font-medium text-gray-700 dark:text-gray-200"},Ze={__name:"index",async setup(Oe){let c,_;const{userProfile:i,isUserLogged:x}=Y(),f=l(()=>x.value&&i.value?.voice_score?i.value.voice_score:0);l(()=>124);const I=l(()=>x.value&&i.value?.username?i.value.username.substring(0,2).toUpperCase():"??"),F=l(()=>x.value&&i.value?.username?i.value.username:"Guest"),k=l(()=>i.value?.user_avatar_url||null),v=l(()=>i.value?.voice_rankbot_level||1),N=l(()=>z(v.value)),{data:A}=([c,_]=D(()=>L("/api/v1/user/rankbot-history",{lazy:!0,server:!1},"$IZzfDE6a5j")),c=await c,_(),c),n=l(()=>A.value?.leveling?.next_level_quest||null),{data:w,pending:$}=([c,_]=D(()=>L("/api/v1/user/dashboard-feed",{lazy:!0,server:!1},"$tRaLEautYS")),c=await c,_(),c),M=l(()=>w.value?.status==="success"?w.value.feed||[]:[]),h=S(!1),b=S(null),E=d=>{d.type==="comment"||d.type==="reply"?b.value={...d,target_id:d.metadata?.voice_rating_id||d.target_id,highlight_comment_id:d.target_id}:b.value=d,h.value=!0},U=d=>{if(!d)return"";const r=new Date(d),p=Math.floor((new Date-r)/1e3),e=Math.floor(p/60),y=Math.floor(e/60),V=Math.floor(y/24);return p<60?"Just now":e<60?`${e}m ago`:y<24?`${y}h ago`:V===1?"Yesterday":new Intl.DateTimeFormat("en-US",{month:"short",day:"numeric",year:"numeric"}).format(r)};return B({title:"Dashboard | VoiceRankings",meta:[{name:"description",content:"Manage your VoiceRankings activity, collections, and feedback."}]}),(d,r)=>{const C=P,p=q;return a(),s("div",J,[t("div",O,[t("header",Q,[t("div",Z,[t("div",K,[k.value?(a(),s("img",{key:0,src:k.value,class:"w-full h-full object-cover"},null,8,X)):(a(),s("span",ee,o(I.value),1))]),t("div",null,[t("h1",te,"Welcome back, "+o(F.value),1),t("p",se,o(N.value)+" • Level "+o(v.value),1)])]),t("div",ae,[n.value&&n.value.target_score?(a(),s("div",re,[t("div",null,[t("div",oe,[r[1]||(r[1]=t("span",{class:"font-bold text-gray-500 dark:text-gray-400"},"Points to Level Up",-1)),t("span",ie,o(Math.max(0,n.value.target_score-f.value).toLocaleStr
1ing())+" pts",1)]),t("div",ne,[t("div",{class:"h-full bg-indigo-500 rounded-full transition-all duration-1000",style:R({width:`${Math.min(100,f.value/n.value.target_score*100)}%`})},null,4)])]),t("div",null,[t("div",de,[t("div",le,[r[2]||(r[2]=u("AI Reviews Needed ",-1)),n.value.target_insight?(a(),s("div",ce,"("+o(n.value.target_insight)+"+ Insight)",1)):m("",!0)]),t("span",ue,o(Math.max(0,n.value.target_reviews-n.value.achieved_insight_count))+" reviews",1)]),t("div",ge,[t("div",{class:"h-full bg-amber-500 rounded-full transition-all duration-1000",style:R({width:`${Math.min(100,n.value.achieved_insight_count/n.value.target_reviews*100)}%`})},null,4)])])])):n.value&&!n.value.target_score?(a(),s("div",_e," Max Level Reached! ")):m("",!0),r[4]||(r[4]=t("div",{class:"hidden md:block w-px h-16 bg-gray-100 dark:bg-gray-700 mx-2"},null,-1)),t("div",pe,[j(C,{to:"/dashboard/casting-assistant",class:"text-xs font-bold text-gray-400 hover:text-indigo-500 transition-colors uppercase tracking-widest flex flex-col items-center gap-1 group"},{default:T(()=>[...r[3]||(r[3]=[t("div",{class:"w-10 h-10 rounded-full bg-gray-50 dark:bg-gray-800 border border-gray-100 dark:border-gray-700 flex items-center justify-center group-hover:bg-indigo-50 dark:group-hover:bg-indigo-900/30 group-hover:border-indigo-200 dark:group-hover:border-indigo-800/50 transition-all"},[t("svg",{class:"w-5 h-5 text-gray-400 group-hover:text-indigo-500 transition-colors",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[t("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 5l7 7-7 7"})])],-1),u(" Casting Assistant ",-1)])]),_:1})])])]),t("div",ye,[t("section",me,[r[9]||(r[9]=t("div",{class:"flex items-center justify-between mb-6"},[t("h2",{class:"text-lg font-bold text-gray-900 dark:text-white"},"Your Activity Timeline")],-1)),g($)?(a(),s("div",xe,[...r[5]||(r[5]=[t("span",{class:"w-8 h-8 border-2 border-indigo-600 border-t-transparent rounded-full animate-spin mx-auto block mb-4"},null,-1),u(" Loading timeline... ",-1)])])):M.value.length===0?(a(),s("div",he," No recent activity found. Start rating or generating voices to build your timeline! ")):(a(),s("div",be,[(a(!0),s(G,null,H(M.value,e=>(a(),s("div",{key:e.event_id,class:"relative pl-8"},[t("div",{class:W(["absolute -left-[9px] top-1.5 w-4 h-4 rounded-full border-2 border-white dark:border-gray-800 shrink-0 shadow-sm",e.type==="snippet_generated"?"bg-purple-500":e.type==="rankbot_evaluation"?"bg-amber-400":e.type==="founding_director_badge"||e.type==="founding_director_invite"||e.type==="founding_director_welcome"?"bg-amber-500":e.type==="subscription_activated"?"bg-green-500":"bg-indigo-500"])},null,2),t("div",{onClick:y=>E(e),class:"bg-gray-50 dark:bg-gray-800/50 rounded-xl p-5 border border-gray-100 dark:border-gray-700 shadow-sm hover:border-indigo-200 dark:hover:border-indigo-500/50 transition-colors group cursor-pointer"},[t("div",ke,[t("div",ve,[t("h3",we,[e.type==="snippet_generated"?(a(),s("span",Me,"Generated a Snippet")):e.type==="rankbot_evaluation"?(a(),s("span",Ce,"Received Casting Feedback")):e.type==="founding_director_badge"?(a(),s("span",De,"🎖️ Founding Director Badge Earned")):e.type==="founding_director_invite"?(a(),s("span",Le,"🎖️ Founding Director Invitation")):e.type==="founding_director_welcome"?(a(),s("span",Se,"🎬 Welcome from Casting Assistant")):e.type==="subscription_activated"?(a(),s("span",je,"🎉 Casting Pass Activated")):e.type==="like"?(a(),s("span",Re,[e.actor_id===g(i)?.user_id?(a(),s("span",Ie,"You liked a Review")):(a(),s("span",Fe,o(e.actor_name)+" liked your Review",1))])):e.type==="comment"?(a(),s("span",Ne,[e.actor_id===g(i)?.user_id?(a(),s("span",Ae,"You commented on a Review")):(a(),s("span",$e,o(e.actor_name)+" commented on your Review",1))])):e.type==="reply"?(a(),s("span",Ee,[e.actor_id===g(i)?.user_id?(a(),s("span",Ue,"You replied to a Comment")):(a(),s("span",Ve,o(e.actor_name)+" replied to your Comment",1))])):(a(),s("span",Ye,"Interacted"))]),r[6]||(r[6]=t("span",{class:"text-gray-500 dark:text-gray-400 text-sm"},"for",-1)),t("span",ze,o(e.metadata?.voice_name||"a voice"),1)]),t("span",Be,o(U(e.created_at)),1)]),e.type==="snippet_generated"?(a(),s("div",Te,' "'+o(e.metadata?.text_snippet)+'..." ',1)):e.type==="rankbot_evaluation"?(a(),s("div",Pe,[t("div",Ge,[t("span",He,"Insight Score: "+o(e.metadata?.insight_score)+"/100",1)]),t("p",We,'"'+o(e.metadata?.feedback)+'"',1)])):(e.type==="comment"||e.type==="reply")&&e.actor_id===g(i)?.user_id?(a(),s("div",qe,[r[7]||
1(r[7]=u(" Left a comment on ",-1)),e.owner_id!==e.actor_id?(a(),s("span",Je,o(e.owner_name)+"'s",1)):m("",!0),r[8]||(r[8]=u(" review. ",-1))])):m("",!0)],8,fe)]))),128))]))])])]),j(p,{open:h.value,"onUpdate:open":r[0]||(r[0]=e=>h.value=e),item:b.value},null,8,["open","item"])])}}};export{Ze 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.