1/* empty css *//* empty css */import"./ieDeTul8.js";import{HAvatar as B}from"./fkGAkYIT.js";/* empty css */import{H as A}from"./C9eCSaqd.js";/* empty css *//* empty css */import"./B1TswAK-.js";/* empty css */import"./BM5fwCw3.js";import"./BIuMYCv6.js";import{H as x}from"./r9YEJpw6.js";import{H as E}from"./DN-wIGjr.js";import"./D9c-xWGz.js";import{H as I}from"./DEicgpxR.js";import{H as U}from"./ews0tehY.js";import{R as $}from"./DddR7c85.js";import{S as V}from"./D0EEwJB9.js";import{_ as D,R as y,f as z,E as M,o as P,q as F}from"./D9PRUAL5.js";import{g as O}from"./TLCp8XPU.js";import{g as q}from"./JBVE0a6j.js";import{g as K,L as Y}from"./XmJWtMtM.js";import{k as i,o as u,c as T,q as r,ab as j,w as s,g as m,t as d,b as g,F as C,j as L,e as H,f}from"./bPYZWEPO.js";import{u as G}from"./-HY3V5OM.js";import{_ as W}from"./BOAps7Xu.js";import"./C8tdCacw.js";import"./BbqnLHyb.js";import"./CCF-0Zq7.js";import"./5zdihCi1.js";import"./C7cTCdsW.js";import"./DTMpAA-Q.js";import"./DvNS3eCz.js";import"./CzuZifFi.js";import"./iXxHFv3W.js";import"./BpX_iXms.js";import"./BqYDthGY.js";import"./C6CHx46q.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="eb8d0ca9-0623-4092-a1e7-736f61e8f7e2",e._sentryDebugIdIdentifier="sentry-dbid-eb8d0ca9-0623-4092-a1e7-736f61e8f7e2")}catch{}})();const J=""+new URL("sign-up-box.BvVqjuIW.png",import.meta.url).href,Q={class:"result"},X=["onClick"],Z={class:"result-fake"},ee={class:"result-table__user-link"},te={class:"result__fake-box"},se=["src"];function re(e,t,_,b,k,o){const l=i("HText"),h=i("ERCalculationLabel"),c=i("HAvatar"),n=i("Space"),R=i("HLabel"),S=i("HTableBase"),v=i("HButton"),w=i("Result"),N=i("HCardBase");return u(),T("div",Q,[r(S,{class:"result-table",columns:o.tableColumns,data:o.tableValues,"data-key":"title",theme:"white"},j({user:s(({item:a})=>[r(n,{class:"result-table__user",gap:12,items:"center"},{default:s(()=>[r(c,{sizeAvatar:"32",src:a?.user?.ava},null,8,["src"]),f("div",{class:"result-table__user-name",onClick:p=>o.goToReport(a.user)},[r(n,{gap:2,column:""},{default:s(()=>[r(l,null,{default:s(()=>[m(d(a?.user?.fullname),1)]),_:2},1024),r(l,{class:"result-table__username"},{default:s(()=>[m(d("@"+a?.user?.username),1)]),_:2},1024)]),_:2},1024)],8,X)]),_:2},1024)]),categories:s(({item:a})=>[a.categories?(u(),g(n,{key:0,gap:6},{default:s(()=>[(u(!0),T(C,null,L(a.categories,p=>(u(),g(R,{key:p.text,text:p.text,theme:"gray"},null,8,["text"]))),128))]),_:2},1024)):H("",!0)]),_:2},[_.socialType===e.$options.ReportType.INSTAGRAM?{name:"header:er",fn:s(({item:a})=>[r(h,null,{default:s(()=>[r(l,{size:"sm",weight:"semibold",color:"gray"},{default:s(()=>[m(d(a.title),1)]),_:2},1024)]),_:2},1024)]),key:"0"}:void 0]),1032,["columns","data"]),f("div",Z,[r(S,{class:"result-table",columns:o.tableColumns,data:o.fakeValues,"data-key":"title",theme:"white"},{header:s(()=>[...t[0]||(t[0]=[f("p",null,null,-1)])]),user:s(({item:a})=>[r(n,{class:"result-table__user",gap:12,items:"center"},{default:s(()=>[r(c,{sizeAvatar:"32",src:a?.user?.ava},null,8,["src"]),f("a",ee,[r(n,{gap:2,column:""},{default:s(()=>[r(l,null,{default:s(()=>[m(d(a?.user?.fullname),1)]),_:2},1024),r(l,{class:"result-table__username"},{default:s(()=>[m(d("@"+a?.user?.username),1)]),_:2},1024)]),_:2},1024)])]),_:2},1024)]),categories:s(({item:a})=>[a.categories?(u(),g(n,{key:0,gap:6},{default:s(()=>[(u(!0),T(C,null,L(a.categories,p=>(u(),g(R,{key:p.text,text:p.text,theme:"gray"},null,8,["text"]))),128))]),_:2},1024)):H("",!0)]),_:1},8,["columns","data"]),f("div",te,[r(N,null,{default:s(()=>[r(w,{title:o.fakeTitle,desc:e.$__("Register for FREE to check 10 other results"),noPadding:"",size:"md"},{icon:s(()=>[f("img",{class:"mt-20",src:b.searchSignupPreview},null,8,se)]),default:s(()=>[r(v,{class:"mb-20",size:e.md,onClick:o.goToRegister},{default:s(()=>[m(d(e.$__("Sign up for free")),1)]),_:1},8,["size","onClick"])]),_:1},8,["title","desc"])]),_:1})])])])}const ae={ReportType:y,components:{Space:V,HTableBase:I,HCardBase:x,Result:$,HAvatar:B,HText:U,HLabel:E,HButton:A,ERCalculationLabel:W},props:{result:{type:Array,default:()=>[]},socialType:{type:Number,default:null},totalInfluencers:{type:Number,default:null},searchLabel:{type:String,default:""}},setup(){const e=F(),t=G();return{searchSignupPreview:J,countersStore:e,categories:t}}
1,computed:{tableColumns(){return[{key:"user",title:this.$__("Username")},{key:"followers",title:this.socialType===this.$options.ReportType.YOUTUBE?this.$__("Subscribers"):this.$__("Followers")},{key:"er",title:"ER"},{key:"categories",title:this.$__("Categories")}]},tableValues(){return this.result.map(e=>({user:this.getUserData(e),followers:this.formatNumber(e[2]),er:isNaN(e[3])?this.$__("N/A"):`${Math.round(e[3]*100)/100}%`,categories:this.getCategories(e),isReady:this.getState(e)}))},fakeValues(){const e=[];for(let t=0;t<7;t++)e.push({user:this.getUserData(this.result[0]),followers:this.formatNumber(this.result[0][2]),er:isNaN(this.result[0][3])?this.$__("N/A"):`${Math.round(this.result[0][3]*100)/100}%`,categories:this.getCategories(this.result[0])});return e},fakeTitle(){return this.countersStore.influencerCountParse(this.$__("{total} influencers with top audience in {value} among {{INFLUENSERS_ALL}}+ database",{total:this.totalInfluencers,value:this.searchLabel}))}},methods:{goToRegister(){window.location.href="/sign-up?r=app/redirect/discovery/"},getUserData(e){const[t]=e;return{...t}},getCategories(e){const[,,,,,t]=e;if(!t)return null;const _=t.slice(0,3);if([y.INSTAGRAM,y.TIKTOK].includes(this.socialType)){const o=O(this.$__)[this.socialType];return _.reduce((l,h)=>{if(h.fallback_id===null)return l.push({text:h.name}),l;const c=o.find(n=>n.id===h.fallback_id);return c&&l.push({text:c.title,icon:c.icon}),l},[])}const b=P[this.socialType],k=this.categories[b];return _.map(o=>o.fallback_id===null?{text:o.name}:k[o.fallback_id]).filter(Boolean)},getState(e){const t=e[e.length-1];return t?M.includes(t):!1},formatNumber(e){return z(e)},getUserLink(e){const t=this.socialType===this.$options.ReportType.YOUTUBE?e.social_id||e.id:e.username;return q(this.socialType,t)},goToReport(e){const t=this.isAuthorizedUser?this.getUserLink(e):K(this.$routerLink(`/sign-up/?r=app/redirect${this.getUserLink(e)}`),Y.REPORT,e.username);window.location.assign(t)}}},Oe=D(ae,[["render",re],["__scopeId","data-v-6f9f351c"]]);export{Oe 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.