import{I as he,_ as Ge}from"./BzhbCKP8.js";import{_ as lt}from"./B5hWRf_M.js";import{i as ct,j as rt,k as E,l as mt,R as W,d as te,h as Re,D as ve,o as s,c as N,w as a,v as u,e as t,t as i,f as e,n as o,G as h,V as ee,C as _,S as je,_ as Pe,O as Ae,r as Oe,F as ye,a5 as Ke,a6 as ut,a7 as dt,a8 as ht,a9 as Je,W as Ee,z as pt,P as _t,$ as yt,q as ft,aa as vt,ab as Ze,X as gt,u as bt,m as wt,I as $t,a as Ct,b as St,p as At}from"./llFuKhWI.js";import{_ as et,a as kt,b as Tt,c as ke,d as tt,e as st,C as Te,f as Et,g as xt}from"./ayGTa3Ud.js";import{_ as Me}from"./DA39qUTR.js";import{u as De}from"./8f3qKeDV.js";import{u as Rt}from"./CqqOmRfu.js";import{i as X,c as fe}from"./DmTcqMXd.js";import{a as xe}from"./Bmq57C4o.js";import{I as Pt}from"./TvimK0a1.js";import{_ as Ot}from"./BKG-dt3e.js";import{_ as Mt}from"./B-ANVB1o.js";import{_ as ot}from"./wMmrnhvC.js";import{_ as Ft,a as Nt,b as Gt}from"./DEcB3HXe.js";import{_ as Ie}from"./D5fJcUqC.js";import{_ as Dt}from"./CHE3CSWL.js";import{_ as It}from"./DFZFob7j.js";import{_ as nt}from"./IQURtVXU.js";import{u as it}from"./EoaUGGBW.js";import{u as at}from"./GGENp0mR.js";import{f as We}from"./BAhSLZC6.js";import{R as Ne}from"./5-zKaSZz.js";import{I as Ut}from"./CAVX_tXT.js";import{_ as Lt}from"./Op5vMJHN.js";import{C as Z}from"./CnGBFLmb.js";import{f as Yt}from"./0gH3qB8c.js";import{I as Vt}from"./CfS3AMEv.js";import{c as Fe}from"./NioPq_Hi.js";import{f as Bt}from"./C_ca73Qy.js";import{_ as zt,a as qt}from"./DLbfUilB.js";import Ht from"./Cet_wTGo.js";import{_ as Qt}from"./BtJExACf.js";import"./BYxIZdj_.js";import"./DAdDEog1.js";import"./C61MVnuK.js";import"./Ym6uCvCk.js";import"./CAGVG2Xa.js";import"./DaWAgGwk.js";import"./D_juRh_W.js";import"./BgoqZooi.js";import"./BPgkUjQu.js";import"./CawTC9db.js";import"./DrxjaUxt.js";import"./CMRDQou7.js";import"./BlKmBCbf.js";import"./CPl4LSD9.js";import"./DtiWZQBA.js";import"./CzSSHsEX.js";import"./BIPg2yNz.js";import"./DuFVbZg1.js";import"./CemFBfVf.js";import"./D5xvDofM.js";import"./DpmnuuFF.js";import"./Br9rlyJX.js";import"./BQf4R7bW.js";import"./C-7E03RX.js";const jt={eCommerceAnalytics:{id:"e-commerce-analytics",label:"eCommerce analytics"},competitorAnalysis:{id:"competitor-analysis",label:"Competitor analysis"},companyStructure:{id:"company-structure",label:"Company structure"},financialAnalytics:{id:"financial-analytics",label:"Financial analytics"},contactInformation:{id:"contact_and_company_information",label:"Company & contact information"}},ne=()=>{const{$apiGet:R}=ct(),{currency:$}=De(),{assignAndTimestamp:n,assignFromCache:C}=Rt(),c=rt("companyDetails",()=>null),d=r=>mt(`company-${r}-${$.value}`,()=>R(W.API.COMPANIES.GET_COMPANY({slug:r}),{params:{currency:$.value}}),{transform:y=>n(y,c),getCachedData:y=>C(y,c)}),f=E(()=>{var r,y,k,P,g,T,p,b,l,A,x,O,G,M,D,L,V,Y,q,H,j,m,S,w,v;return{eCommerceAnalytics:!0,competitorAnalysis:!!((r=c.value)!=null&&r.competitorAnalysis),companyStructure:!!((P=(k=(y=c.value)==null?void 0:y.companyStructure)==null?void 0:k.children)!=null&&P.length),financialAnalytics:!X((T=(g=c.value)==null?void 0:g.financialAnalytics)==null?void 0:T.netSales)||!X((b=(p=c.value)==null?void 0:p.financialAnalytics)==null?void 0:b.netSalesGrowth)||!X((A=(l=c.value)==null?void 0:l.financialAnalytics)==null?void 0:A.numberOfEmployees)||!X((O=(x=c.value)==null?void 0:x.financialAnalytics)==null?void 0:O.revenuePerEmployee)||!!((L=(D=(M=(G=c.value)==null?void 0:G.financialAnalytics)==null?void 0:M.businessSegments)==null?void 0:D.segments)!=null&&L.length)||!!((H=(q=(Y=(V=c.value)==null?void 0:V.financialAnalytics)==null?void 0:Y.businessSegments)==null?void 0:q.segments)!=null&&H.length)||!!((w=(S=(m=(j=c.value)==null?void 0:j.financialAnalytics)==null?void 0:m.keyMetrics)==null?void 0:S.columns)!=null&&w.length),contactInformation:!!((v=c.value)!=null&&v.contactInformation)}});return{sections:jt,company:c,fetchCompany:d,contactInformation:E(()=>{var r;return(r=c.value)==null?void 0:r.contactInformation}),description:E(()=>{var r;return(r=c.value)==null?void 0:r.description}),name:E(()=>{var r;return(r=c.value)==null?void 0:r.name}),sectionVisibilty:f,isFirstPartyOnly:E(()=>{var r,y;return((y=(r=c.value)==null?void 0:r.keyFacts)==null?void 0:y.ecommerceRevenueType)==="First-party only"}),isThirdPartyOnly:E(()=>{var r,y;return((y=(r=c.value)==null?void 0:r.keyFacts)==null?void 0:y.ecommerceRevenueType)==="Third-party only"}),isHybrid:E(()=>{var r,y;return((y=(r=c.value)==null?void 0:r.keyFacts)==null?void 0:y.ecommerceRevenueType)==="Hybrid"})}},Kt={class:"has-text-weight-light"},Wt={class:"columns"},Xt={class:"column is-full"},Jt={key:0,class:"column"},Zt={class:"title is-7 is-rooftitle mt-4 has-text-blue-800"},es=t("div",null," Indicates the eCommerce activity revenue generated by the company. eCommerce activity revenue includes all gross first-party sales and/or third-party GMV generated on all online platforms operated by a company or its subsidiaries which are in-scope following the methodology of ECDB. ",-1),ts={class:"mt-1"},ss={key:1,class:"has-text-centered"},os={key:1,class:"column"},ns={class:"title is-7 is-rooftitle mt-4 has-text-blue-800"},is=t("div",null," Indicates the rank by eCommerce activity revenue of the company within the global and unfiltered company ranking. eCommerce activity revenue includes all gross first-party sales and/or third-party GMV generated on all online platforms operated by a company or its subsidiaries which are in-scope following the methodology of the ECDB. ",-1),as={class:"mt-1"},ls={key:2,class:"column"},cs={class:"title is-7 is-rooftitle mt-4 has-text-blue-800"},rs=t("div",null,"Refers to the country in which the company generates the highest eCommerce activity revenue in.",-1),ms={class:"mt-1"},us={key:3,class:"column"},ds={class:"title is-7 is-rooftitle mt-4 has-text-blue-800"},hs=t("div",null,"Refers to the category in which the company generates the highest eCommerce activity revenue in.",-1),ps={class:"mt-1"},_s={key:4,class:"column"},ys={class:"title is-7 is-rooftitle mt-4 has-text-blue-800"},fs=t("div",null," Type of eCommerce revenue of the company depending on whether the company only offers own goods for sale (first-party only), only offers platforms for other companies to sell their goods (third-party only) or both (hybrid). ",-1),vs={class:"mt-1"},gs=te({__name:"CompanyHeader",setup(R){const $=Re(),{company:n,name:C,description:c}=ne(),{baseYear:d}=ve();return(f,r)=>{const y=Ge,k=lt,P=Pe,g=et,T=Me;return s(),N(T,{class:"has-background-gradient-light","hide-separator":""},{rooftitle:a(()=>[u(" Company revenue analytics ")]),title:a(()=>[t("span",Kt,i(e(C)),1)]),default:a(()=>[t("div",Wt,[t("div",Xt,[t("p",null,i(e(c)),1)])]),o(g,{classes:"columns is-variable is-2-desktop has-title-nowrap"},{default:a(()=>{var p,b,l,A,x,O,G,M,D,L,V,Y,q,H,j,m;return[(b=(p=e(n))==null?void 0:p.keyFacts)!=null&&b.ecommerceActivityRevenue||!e($).hasPermission("core")?(s(),h("div",Jt,[t("div",Zt,[u(" eCommerce Activity Revenue ("+i(e(d))+") ",1),o(y,null,{content:a(()=>[es]),default:a(()=>[t("span",null,[o(e(he),{class:"tw-inline -tw-translate-y-0.25 tw-text-bluegray-400",width:"16",height:"16"})])]),_:1})]),t("div",ts,[e($).hasPermission("core")?(s(),h(ee,{key:0},[u(i(("formatCurrency"in f?f.formatCurrency:e(xe))({number:(A=(l=e(n))==null?void 0:l.keyFacts)==null?void 0:A.ecommerceActivityRevenue.data,formatAs:"million"})),1)],64)):(s(),h("div",ss,[o(e(Pt),{class:"is-white",width:"28",height:"28"})]))])])):_("",!0),(O=(x=e(n))==null?void 0:x.keyFacts)!=null&&O.globalRank?(s(),h("div",os,[t("div",ns,[u(" Global Rank ("+i(e(d))+") ",1),o(y,null,{content:a(()=>[is]),default:a(()=>[t("span",null,[o(e(he),{class:"tw-inline -tw-translate-y-0.25 tw-text-bluegray-400",width:"16",height:"16"})])]),_:1})]),t("div",as,"#"+i((M=(G=e(n))==null?void 0:G.keyFacts)==null?void 0:M.globalRank),1)])):_("",!0),(L=(D=e(n))==null?void 0:D.keyFacts)!=null&&L.mainCountry?(s(),h("div",ls,[t("div",cs,[u(" Main Country "),o(y,null,{content:a(()=>[rs]),default:a(()=>[t("span",null,[o(e(he),{class:"tw-inline -tw-translate-y-0.25 tw-text-bluegray-400",width:"16",height:"16"})])]),_:1})]),t("div",ms,[e(n).keyFacts.mainCountry.code?(s(),N(P,{key:0,to:("ROUTES"in f?f.ROUTES:e(W)).MARKETS.DETAIL({isoCode:e(n).keyFacts.mainCountry.code.toLowerCase(),slug:("SLUGS"in f?f.SLUGS:e(je)).all})},{default:a(()=>[o(k,{class:"tw-mr-1",country:e(n).keyFacts.mainCountry.code},null,8,["country"]),u(" "+i(e(n).keyFacts.mainCountry.name),1)]),_:1},8,["to"])):_("",!0)])])):_("",!0),(Y=(V=e(n))==null?void 0:V.keyFacts)!=null&&Y.mainCategory?(s(),h("div",us,[t("div",ds,[u(" Main Category "),o(y,null,{content:a(()=>[hs]),default:a(()=>[t("span",null,[o(e(he),{class:"tw-inline -tw-translate-y-0.25 tw-text-bluegray-400",width:"16",height:"16"})])]),_:1})]),t("div",ps,[e(n).keyFacts.mainCategory.slug?(s(),N(P,{key:0,to:("ROUTES"in f?f.ROUTES:e(W)).MARKETS.DETAIL({isoCode:("SLUGS"in f?f.SLUGS:e(je)).ww,slug:e(n).keyFacts.mainCategory.slug})},{default:a(()=>[u(i(e(n).keyFacts.mainCategory.name),1)]),_:1},8,["to"])):_("",!0)])])):_("",!0),(H=(q=e(n))==null?void 0:q.keyFacts)!=null&&H.ecommerceRevenueType?(s(),h("div",_s,[t("div",ys,[u(" eCommerce Revenue Type "),o(y,null,{content:a(()=>[fs]),default:a(()=>[t("span",null,[o(e(he),{class:"tw-inline -tw-translate-y-0.25 tw-text-bluegray-400",width:"16",height:"16"})])]),_:1})]),t("div",vs,i((m=(j=e(n))==null?void 0:j.keyFacts)==null?void 0:m.ecommerceRevenueType),1)])):_("",!0)]}),_:1})]),_:1})}}}),bs={key:0,class:"columns is-multiline"},ws={class:"column is-full"},$s={class:"title is-3 is-5-mobile"},Cs={key:0},Ss={key:1},As={key:0,class:"column is-three-fifths"},ks={class:"box tw-min-h-full"},Ts={class:"has-separator-bottom"},Es={class:"title is-5 has-text-blue-800"},xs=t("br",null,null,-1),Rs={class:"subtitle is-8"},Ps=t("div",null,"eCommerce activity revenue of the company generated in the respective countries.",-1),Os={key:2,class:"column is-full"},Ms=t("p",null,"Detailed breakdown of eCommerce activity revenue by category",-1),Fs=[Ms],Ns={key:3,class:"column is-three-fifths"},Gs={class:"box tw-min-h-full"},Ds={class:"has-separator-bottom"},Is={class:"title is-5 has-text-blue-800"},Us=t("br",null,null,-1),Ls={class:"subtitle is-8"},Ys=t("div",null,"eCommerce activity revenue of the company generated in the respective categories.",-1),Vs=te({__name:"CompanySplits",emits:["open-modal"],setup(R,{emit:$}){const n=$,{baseYear:C}=ve(),c=Re(),{company:d,name:f}=ne(),r=E(()=>{var p,b;return(((b=(p=d.value)==null?void 0:p.ecommerceAnalytics)==null?void 0:b.countrySplits)??[]).filter(l=>{var A;return(((A=l.data)==null?void 0:A.value)??0)>=.001})}),y=E(()=>!!r.value.length),k=E(()=>r.value.map(p=>{var b,l;return[((b=p.country)==null?void 0:b.code)??"",((l=p.data)==null?void 0:l.value)??null]})??[]),P=E(()=>{var p,b,l;return!!((l=(b=(p=d.value)==null?void 0:p.ecommerceAnalytics)==null?void 0:b.categorySplits)!=null&&l.length)}),g=E(()=>{var p,b;return(((b=(p=d.value)==null?void 0:p.ecommerceAnalytics)==null?void 0:b.categorySplits)??[]).map(l=>{var A;return((A=l.category)==null?void 0:A.name)??""})}),T=E(()=>{var p,b;return(((b=(p=d.value)==null?void 0:p.ecommerceAnalytics)==null?void 0:b.categorySplits)??[]).map(l=>{var A,x,O;return{y:((A=l.data)==null?void 0:A.value)??null,dataLabels:{enabled:!1},name:(x=l.category)==null?void 0:x.name,numberFormatOptions:(O=l.data)==null?void 0:O.options}})});return(p,b)=>{var L,V,Y,q;const l=Dt,A=Ft,x=Ge,O=kt,G=It,M=Tt,D=ke;return e(y)||e(P)?(s(),h("div",bs,[t("div",ws,[t("h3",$s,i(e(f))+": Distribution of eCommerce activity revenue",1),e(c).hasPermission("core")&&e(y)?(s(),h("p",Cs,"Detailed breakdown of eCommerce activity revenue by country")):e(c).hasPermission("core")?_("",!0):(s(),h("p",Ss,"Detailed breakdown of eCommerce activity revenue by country and category"))]),e(c).hasPermission("core")&&e(y)?(s(),h("div",As,[o(A,{class:"has-border-bluegray-100 tw-min-h-full","chart-height":"high","hide-logo":""},{chart:a(()=>[o(l,{data:e(k),"map-keys":["iso-a2","value"],"map-join-by":"iso-a2","show-legend":"","tooltip-variant":"percent"},null,8,["data"])]),note:a(()=>[u(" Only countries with a share of more than 0.1% are highlighted. ")]),_:1})])):_("",!0),e(y)?(s(),h("div",{key:1,class:Ae(["column",e(c).hasPermission("core")?"is-two-fifths":"is-half"])},[t("div",ks,[t("div",Ts,[t("h3",Es,[u(i(e(f))+": ",1),xs,u(" eCommerce activity revenue share by country ")]),t("div",Rs,[u(" in "+i(e(C))+" ",1),o(x,null,{content:a(()=>[Ps]),default:a(()=>[t("span",null,[o(e(he),{class:"tw-inline -tw-translate-y-0.25 tw-text-bluegray-400",width:"16",height:"16"})])]),_:1})])]),o(O,{class:"is-flex-grow-1 is-flex is-flex-direction-column is-justify-content-space-between","table-data":e(r),limit:8,onOpenModal:b[0]||(b[0]=H=>n("open-modal"))},null,8,["table-data"])])],2)):_("",!0),e(c).hasPermission("core")&&e(P)?(s(),h("div",Os,Fs)):_("",!0),e(c).hasPermission("core")&&e(P)?(s(),h("div",Ns,[o(A,{class:"has-border-bluegray-100 tw-min-h-full","chart-height":"high","hide-logo":""},{chart:a(()=>[o(G,{series:e(T),"x-axis-categories":e(g),"show-legend":"","legend-position":"right",donut:""},null,8,["series","x-axis-categories"])]),_:1})])):_("",!0),e(P)?(s(),h("div",{key:4,class:Ae(["column",e(c).hasPermission("core")?"is-two-fifths":"is-half"])},[t("div",Gs,[t("div",Ds,[t("h3",Is,[u(i(e(f))+": ",1),Us,u(" eCommerce activity revenue share by category ")]),t("div",Ls,[u(" in "+i(e(C))+" ",1),o(x,null,{content:a(()=>[Ys]),default:a(()=>[t("span",null,[o(e(he),{class:"tw-inline -tw-translate-y-0.25 tw-text-bluegray-400",width:"16",height:"16"})])]),_:1})])]),(V=(L=e(d))==null?void 0:L.ecommerceAnalytics)!=null&&V.categorySplits?(s(),N(M,{key:0,"accordion-data":e(d).ecommerceAnalytics.categorySplits,onOpenModal:b[1]||(b[1]=H=>n("open-modal"))},null,8,["accordion-data"])):_("",!0)])],2)):_("",!0),o(D,{class:"column is-full","source-sections":((q=(Y=e(d))==null?void 0:Y.ecommerceAnalytics)==null?void 0:q.sourceSections)??[],"source-name":"ecommerceActivityRevenueDistribution"},null,8,["source-sections"])])):_("",!0)}}}),Bs={class:"has-text-weight-light"},zs={key:0,class:"is-pulled-right is-2 is-hidden-mobile"},qs={key:0,class:"columns"},Hs={class:"column is-full"},Qs={class:"notification is-white has-highlight-danger"},js=t("div",{class:"has-text-blue-800 has-text-weight-semibold"},"Please note",-1),Ks={class:"columns is-multiline"},Ws={class:"column is-full"},Xs={class:"title is-3 is-5-mobile"},Js={class:"column is-full"},Zs={class:"columns"},eo={class:"column is-one-third"},to={class:"box tw-min-h-full"},so=t("h3",{class:"title is-5 has-text-blue-800"},"eCommerce activity revenue",-1),oo={class:"subtitle is-8 mb-0"},no=t("div",null," Indicates the eCommerce activity revenue generated by the company. eCommerce activity revenue includes all gross first-party sales and/or third-party GMV generated on all online platforms operated by a company or its subsidiaries which are in-scope following the methodology of ECDB. ",-1),io={class:"mt-4 is-size-3"},ao={class:"column is-two-thirds"},lo={key:0,class:"columns is-multiline"},co={class:"column is-full"},ro={class:"title is-3 is-5-mobile"},mo=t("p",null,"Comprehensive time series analysis with YoY growth",-1),uo={key:0,class:"column is-full"},ho=t("br",null,null,-1),po=t("br",null,null,-1),_o={key:1,class:"column is-full"},yo=t("br",null,null,-1),fo={class:"column is-full"},vo={key:1,class:"columns is-multiline"},go={class:"column is-full"},bo={class:"title is-3 is-5-mobile"},wo={class:"column is-full"},$o=t("br",null,null,-1),Co={key:2,class:"columns is-multiline"},So={class:"column is-full"},Ao={class:"title is-3 is-5-mobile"},ko={class:"column is-full"},To=t("br",null,null,-1),Eo={class:"has-text-default-light"},xo={key:1},Ro={class:"is-size-10 has-line-height-medium mt-2"},Po={key:3,class:"columns is-multiline"},Oo={class:"column is-full"},Mo={class:"title is-3 is-5-mobile"},Fo=t("p",null,"Comprehensive time series analysis with YoY growth",-1),No={key:0,class:"column is-full"},Go=t("br",null,null,-1),Do={key:1,class:"column is-full"},Io=t("br",null,null,-1),Uo={class:"column is-full"},Lo=t("p",null," eCommerce GMV refers to the gross merchandise volume of a company's marketplace-related platform business and includes all gross first- and third-party sales generated by the company’s marketplace brands. ",-1),Yo={key:0},Vo={key:1},Bo={key:4,class:"columns is-multiline mt-6"},zo={class:"column is-full"},qo={class:"title is-3 is-5-mobile"},Ho={class:"column is-full"},Qo={key:1},jo=t("br",null,null,-1),Ko={key:2,class:"has-text-default-light"},Wo={class:"is-size-10 has-line-height-medium mt-2"},Xo=te({__name:"CompanyECommerceAnalytics",emits:["open-modal"],setup(R,{emit:$}){const n=$,C=Re(),c=it(),{baseYear:d}=ve(),{company:f,name:r,isHybrid:y,isFirstPartyOnly:k,isThirdPartyOnly:P}=ne(),{addMessage:g}=at(),{currency:T,formattedCurrency:p}=De(),b=Oe(!1),l=E(()=>{var m,S,w,v;return!X((S=(m=f.value)==null?void 0:m.ecommerceAnalytics)==null?void 0:S.ecommerceNetSales)||!X((v=(w=f.value)==null?void 0:w.ecommerceAnalytics)==null?void 0:v.netSalesGrowth)}),A=E(()=>{var m,S;return(((S=(m=f.value)==null?void 0:m.ecommerceAnalytics)==null?void 0:S.ecommerceShareFromTotal)??[]).filter(w=>{var v;return typeof((v=w.data)==null?void 0:v.value)=="number"})}),x=E(()=>{var m,S,w,v;return!X((S=(m=f.value)==null?void 0:m.ecommerceAnalytics)==null?void 0:S.ecommerceGmv)||!X((v=(w=f.value)==null?void 0:w.ecommerceAnalytics)==null?void 0:v.gmvGrowth)}),O=E(()=>{var m,S;return(((S=(m=f.value)==null?void 0:m.ecommerceAnalytics)==null?void 0:S.gmvGrowth)??[]).filter(w=>{var v;return typeof((v=w.data)==null?void 0:v.value)=="number"})}),G=E(()=>{var m,S;return(((S=(m=f.value)==null?void 0:m.ecommerceAnalytics)==null?void 0:S.ecommerceGmv)??[]).filter(w=>{var v;return typeof((v=w.data)==null?void 0:v.value)=="number"})}),M=E(()=>{var m,S;return(((S=(m=f.value)==null?void 0:m.ecommerceAnalytics)==null?void 0:S.topOnlineStores)??[]).flatMap(w=>w.revenues.map(v=>v!=null&&v.date?ye(v==null?void 0:v.date):[])).filter((w,v,F)=>F.indexOf(w)===v).sort((w,v)=>w-v)}),D=E(()=>[{name:""},...M.value.map(m=>({name:m.toString()}))]),L=E(()=>{var m,S,w;return((w=(S=(m=f.value)==null?void 0:m.ecommerceAnalytics)==null?void 0:S.topOnlineStores)==null?void 0:w.map(v=>{const F=M.value.map(Q=>{var U;const B=(U=v.revenues.find(z=>ye(z.date??"")===Q))==null?void 0:U.data;return{value:B?We({number:B,options:{minimumFractionDigits:1},formatAs:"million",hideSymbol:!0}):Ke.notAvailable}});return[{value:v.onlineStore,slug:v.onlineStore,parentCompany:v.parentCompany.name},...F]}))??[]}),V=E(()=>{var m,S;return(((S=(m=f.value)==null?void 0:m.ecommerceAnalytics)==null?void 0:S.gmvTopDomains)??[]).flatMap(w=>w.gmv.map(v=>v!=null&&v.date?ye(v==null?void 0:v.date):null)).filter((w,v,F)=>w!==null&&F.indexOf(w)===v).sort((w,v)=>w-v)}),Y=E(()=>[{name:""},...V.value.map(m=>({name:m.toString()}))]),q=E(()=>{var m,S,w;return((w=(S=(m=f.value)==null?void 0:m.ecommerceAnalytics)==null?void 0:S.gmvTopDomains)==null?void 0:w.map(v=>{const F=V.value.map(Q=>{var U;const B=(U=v.gmv.find(z=>ye(z.date??"")===Q))==null?void 0:U.data;return{value:B?We({number:B,options:{minimumFractionDigits:1},formatAs:"million",hideSymbol:!0}):Ke.notAvailable}});return[{value:v.domain,marketplaceSlug:v.marketplaceSlug,parentCompany:v.parentCompany.name??""},...F]}))??[]}),H=E(()=>{var w,v,F,Q,B,U,z,se,K;const m=((Q=(F=(v=(w=f.value)==null?void 0:w.ecommerceAnalytics)==null?void 0:v.ecommerceActivityRevenue)==null?void 0:F.data)==null?void 0:Q.value)??0,S=((K=(se=(z=(U=(B=f.value)==null?void 0:B.ecommerceAnalytics)==null?void 0:U.ecommerceGmv)==null?void 0:z.find(oe=>{var J;return(J=oe.date)==null?void 0:J.startsWith(d.toString())}))==null?void 0:se.data)==null?void 0:K.value)??0;return m>S}),j=()=>{var m;b.value=!0,c.downloadGet(`${W.API.COMPANIES.GET_FILE({slug:(m=f.value)==null?void 0:m.slug,currency:T.value})}`).catch(S=>{g({message:"Download failed.",severity:"danger",error:S}),n("open-modal")}).finally(()=>{b.value=!1})};return(m,S)=>{const w=Mt,v=ot,F=Pe,Q=Ge,B=Nt,U=Ie,z=ke,se=Vs,K=tt,oe=st,J=nt,pe=Me;return s(),N(pe,{"full-separator":""},{title:a(()=>[t("span",Bs,i(e(r))+": eCommerce analytics",1),e(C).hasPermission("core")?(s(),h("div",zs,[o(v,{variant:"tertiary",disabled:e(b)||!e(C).hasPermission("dl_xls"),onClick:j},{default:a(()=>[e(b)?(s(),N(w,{key:0})):_("",!0),u(" Download XLS ")]),_:1},8,["disabled"])])):_("",!0)]),default:a(()=>{var ie,ae,le,ce,re,me,ge,be,we,$e,Ce,ue,_e,de,Le,Ye,Ve,Be,ze,qe,He;return[e(C).hasPermission("core")?_("",!0):(s(),h("div",qs,[t("div",Hs,[t("div",Qs,[js,u(" You are not allowed to use this information for commercial purposes. You might want to "),o(F,{to:`${("ROUTES"in m?m.ROUTES:e(W)).REQUEST.OFFER()}?type=${("REQUEST_TYPE"in m?m.REQUEST_TYPE:e(Ne)).STORES}`},{default:a(()=>[u("register")]),_:1},8,["to"]),u(" or "),o(F,{to:"/login"},{default:a(()=>[u("log in")]),_:1}),u(" to access these rights. ")])])])),t("div",Ks,[t("div",Ws,[t("h3",Xs,"eCommerce activity revenue of "+i(e(r)),1)]),t("div",Js,[t("div",Zs,[t("div",eo,[t("div",to,[so,t("div",oo,[u(" in "+i(e(d))+" ",1),o(Q,null,{content:a(()=>[no]),default:a(()=>[t("span",null,[o(e(he),{class:"tw-inline -tw-translate-y-0.25 tw-text-bluegray-400",width:"16",height:"16"})])]),_:1})]),o(B,{active:!e(C).hasPermission("core"),"request-type":("REQUEST_TYPE"in m?m.REQUEST_TYPE:e(Ne)).COMPANIES},{default:a(()=>{var I,Se,Qe;return[t("p",io,i(("formatCurrency"in m?m.formatCurrency:e(xe))({number:(Qe=(Se=(I=e(f))==null?void 0:I.ecommerceAnalytics)==null?void 0:Se.ecommerceActivityRevenue)==null?void 0:Qe.data,formatAs:"million"})),1)]}),_:1},8,["active","request-type"])])]),t("div",ao,[o(U,{title:"Note"},{default:a(()=>[u(" eCommerce activity revenue includes all gross first-party sales and/or third-party GMV generated on all online platforms operated by a company or its subsidiaries which are in-scope following the methodology of ECDB. "),e(k)?_("",!0):(s(),h(ee,{key:0},[u(" Since the GMV of a company includes revenues generated by third-party sellers, and in some cases also returns, marketplace commission, and service fees (such as shipping costs), the eCommerce activity revenue can be higher than the company's total revenue. ")],64))]),_:1})])])]),o(z,{class:"column is-full","source-sections":((ae=(ie=e(f))==null?void 0:ie.ecommerceAnalytics)==null?void 0:ae.sourceSections)??[],"source-name":"ecommerceActivityRevenue"},null,8,["source-sections"])]),o(se,{onOpenModal:S[0]||(S[0]=I=>n("open-modal"))}),e(C).hasPermission("core")?(s(),h(ee,{key:1},[e(l)?(s(),h("div",lo,[t("div",co,[t("h3",ro,i(e(r))+": Total eCommerce net sales development",1),mo]),(re=(ce=(le=e(f))==null?void 0:le.ecommerceAnalytics)==null?void 0:ce.ecommerceNetSales)!=null&&re.length?(s(),h("div",uo,[o(K,{series:e(f).ecommerceAnalytics.ecommerceNetSales,"sub-title":`in million ${e(p)}`,"base-year":e(d),"in-million":""},{title:a(()=>[u(i(e(r))+" ",1),ho,u(" eCommerce net sales ")]),tooltip:a(()=>[u(" First party net sales generated by "+i(e(r))+" after deduction of returns, allowances for damaged or missing goods and any discounts allowed.",1),po,o(F,{to:{path:("ROUTES"in m?m.ROUTES:e(W)).FAQ.HUB()}},{default:a(()=>[u(" Read more ")]),_:1},8,["to"])]),_:1},8,["series","sub-title","base-year"])])):_("",!0),(be=(ge=(me=e(f))==null?void 0:me.ecommerceAnalytics)==null?void 0:ge.netSalesGrowth)!=null&&be.length?(s(),h("div",_o,[o(oe,{series:e(f).ecommerceAnalytics.netSalesGrowth,"sub-title":"in percent"},{title:a(()=>[u(i(e(r))+" ",1),yo,u(" YoY growth ")]),_:1},8,["series"])])):_("",!0),t("div",fo,[o(U,{title:"Note"},{default:a(()=>{var I,Se;return[t("p",null,[u(" eCommerce net sales refer to the first-party net sales that are generated from all online stores used to sell the company's items (after deduction of returns, allowances for damaged or missing goods and any discounts allowed). In contrast to eCommerce activity revenue and GMV, third-party sales are not included. "),(Se=(I=e(f))==null?void 0:I.keyFacts)!=null&&Se.isAnalystCompany?_("",!0):(s(),h(ee,{key:0},[u(" For all years shown in this chart, the eCommerce net sales represent the aggregated net sales generated by all online stores operated by "+i(e(r))+" or its subsidiaries in "+i(e(d))+". ",1)],64))])]}),_:1})])])):_("",!0),e(A).length?(s(),h("div",vo,[t("div",go,[t("h3",bo,i(e(r))+": eCommerce net sales share development",1),t("p",null,"Share of eCommerce net sales in total revenue of "+i(e(r)),1)]),t("div",wo,[o(K,{series:e(A),"sub-title":"in percent","base-year":e(d)},{title:a(()=>[u(i(e(r))+" ",1),$o,u(" eCommerce share from total revenue ")]),_:1},8,["series","base-year"])])])):_("",!0),(Ce=($e=(we=e(f))==null?void 0:we.ecommerceAnalytics)==null?void 0:$e.topOnlineStores)!=null&&Ce.length?(s(),h("div",Co,[t("div",So,[t("h3",Ao,i(e(r))+": eCommerce net sales breakdown by top stores",1),t("p",null,"Net sales development of the top online stores, in million "+i(e(p)),1)]),t("div",ko,[o(J,{rows:e(L),columns:e(D),classes:{container:"is-small has-max-height-450",table:"is-fullwidth has-border-bottom",theadTrTh:"pt-3 pb-3 pl-4 pr-4 has-background-light has-text-weight-bold is-vcentered",tbodyTrTd:"pt-1 pb-1 pl-4 pr-4 has-background-white has-min-width-120 is-vcentered"},"header-class":["",...("createArray"in m?m.createArray:e(fe))(e(D).length-1,"is-right")],"column-class":["",...("createArray"in m?m.createArray:e(fe))(e(D).length-1,"is-right")],"freeze-header":"","freeze-first-column":""},{cell:a(({cell:I})=>[I.slug?(s(),h(ee,{key:0},[o(F,{to:`/store/${I.slug}`},{default:a(()=>[u(i(I.value),1)]),_:2},1032,["to"]),To,t("span",Eo,i(I.parentCompany),1)],64)):(s(),h("span",xo,i(I.value),1))]),_:1},8,["rows","columns","header-class","column-class"]),t("p",Ro,"Note: Only domains that are active in "+i(e(d))+" are displayed.",1)]),o(z,{class:"column is-full","source-sections":((_e=(ue=e(f))==null?void 0:ue.ecommerceAnalytics)==null?void 0:_e.sourceSections)??[],"source-name":"ecommerceNetSales"},null,8,["source-sections"])])):_("",!0),e(x)?(s(),h("div",Po,[t("div",Oo,[t("h3",Mo,i(e(r))+": Total eCommerce GMV development",1),Fo]),e(G).length?(s(),h("div",No,[o(K,{series:e(G),"sub-title":`in million ${e(p)}`,"base-year":e(d),tooltip:"GMV includes, besides all gross first- and third-party sales, VAT, revenues generated by marketplace commission, service fees (such as shipping costs), and sales values irrespective of returns and whether a transaction has been completed.","in-million":""},{title:a(()=>[u(i(e(r))+" ",1),Go,u(" Gross merchandise volume ")]),_:1},8,["series","sub-title","base-year"])])):_("",!0),e(O)?(s(),h("div",Do,[o(oe,{series:e(O),"sub-title":"in percent"},{title:a(()=>[u(i(e(r))+" ",1),Io,u(" YoY growth ")]),_:1},8,["series"])])):_("",!0),t("div",Uo,[o(U,{title:"Note"},{default:a(()=>[Lo,e(H)&&e(y)?(s(),h("p",Yo," Only brands that operate online marketplaces are included in the company's marketplace GMV. The eCommerce sales generated by the brands that do not operate any online marketplaces are not included in the marketplace GMV of the company but in its eCommerce activity revenue. Thus, the eCommerce activity revenue of a company can be higher than its marketplace GMV. ")):_("",!0),e(H)&&(e(y)||e(P))?(s(),h("p",Vo," Merger and acquisition activities during the fiscal year are only reflected in the company's GMV but not in the company’s eCommerce activity revenue. This can lead to deviations between GMV and eCommerce activity revenue. ")):_("",!0)]),_:1})])])):_("",!0),(Ye=(Le=(de=e(f))==null?void 0:de.ecommerceAnalytics)==null?void 0:Le.gmvTopDomains)!=null&&Ye.length?(s(),h("div",Bo,[t("div",zo,[t("h3",qo,i(e(r))+": eCommerce GMV breakdown by top domains",1),t("p",null,"GMV development of the top domains, in million "+i(e(p)),1)]),t("div",Ho,[o(J,{rows:e(q),columns:e(Y),classes:{container:"is-small has-max-height-450",table:"is-fullwidth has-border-bottom",theadTrTh:"pt-3 pb-3 pl-4 pr-4 has-background-light has-text-weight-bold is-vcentered",tbodyTrTd:"pt-1 pb-1 pl-4 pr-4 has-background-white has-min-width-120 is-vcentered"},"header-class":["has-min-width-250",...("createArray"in m?m.createArray:e(fe))(e(Y).length-1,"is-right")],"column-class":["has-min-width-250",...("createArray"in m?m.createArray:e(fe))(e(Y).length-1,"is-right")],"freeze-header":"","freeze-first-column":"","scrolled-right":""},{cell:a(({cell:I})=>[I.marketplaceSlug?(s(),N(F,{key:0,to:("ROUTES"in m?m.ROUTES:e(W)).MARKETPLACES.DETAIL({slug:I.marketplaceSlug})},{default:a(()=>[u(i(I.value),1)]),_:2},1032,["to"])):(s(),h("span",Qo,i(I.value),1)),jo,I.parentCompany?(s(),h("span",Ko,i(I.parentCompany),1)):_("",!0)]),_:1},8,["rows","columns","header-class","column-class"]),t("p",Wo,"Note: Only domains that are active in "+i(e(d))+" are displayed.",1)])])):_("",!0),e(x)||(ze=(Be=(Ve=e(f))==null?void 0:Ve.ecommerceAnalytics)==null?void 0:Be.gmvTopDomains)!=null&&ze.length?(s(),N(z,{key:5,class:"column is-full","source-sections":((He=(qe=e(f))==null?void 0:qe.ecommerceAnalytics)==null?void 0:He.sourceSections)??[],"source-name":"gmv"},null,8,["source-sections"])):_("",!0)],64)):_("",!0)]}),_:1})}}}),Ue=R=>(dt("data-v-8a65d7a9"),R=R(),ht(),R),Jo={class:"companyStructureBox has-text-white tw-overflow-hidden has-background-gray-200"},Zo={class:"py-3 px-5 is-size-9 has-text-centered-mobile has-text-default"},en={key:0,class:"mb-2 has-line-height-medium"},tn={class:"has-text-weight-semibold"},sn=Ue(()=>t("p",null,null,-1)),on={key:1,class:"mb-2 has-line-height-medium"},nn=Ue(()=>t("p",{class:"has-text-weight-semibold"},"Main online store",-1)),an={key:2,class:"mb-2 has-line-height-medium"},ln={class:"has-text-weight-semibold"},cn={key:3,class:"mb-2 has-line-height-medium"},rn=Ue(()=>t("p",{class:"has-text-weight-semibold"},"Main online marketplace",-1)),mn=te({__name:"CompanyStructureBox",props:{company:{type:Object,required:!0},isRoot:{type:Boolean,default:!1}},setup(R){const $=R;return(n,C)=>{var d,f,r,y,k,P,g,T;const c=Pe;return s(),h("div",Jo,[t("div",{class:Ae(["py-3 px-5 has-text-centered is-size-8 has-text-weight-semibold",{"has-background-mint-600":$.isRoot,"has-background-blue-800":!$.isRoot}])},[ut(n.$slots,"title",{},()=>[t("p",null,i($.company.name),1)],!0)],2),t("ul",Zo,[(d=R.company.ecommerceNetSales)!=null&&d.data?(s(),h("li",en,[t("p",tn,"eCommerce net sales "+i(("extractYear"in n?n.extractYear:e(ye))(((f=R.company.ecommerceNetSales)==null?void 0:f.date)??"")),1),sn,t("p",null,i(("formatCurrency"in n?n.formatCurrency:e(xe))({number:(r=R.company.ecommerceNetSales)==null?void 0:r.data,formatAs:"million"})),1)])):_("",!0),(y=R.company.mainStore)!=null&&y.slug?(s(),h("li",on,[nn,t("p",null,[o(c,{to:("ROUTES"in n?n.ROUTES:e(W)).STORES.DETAIL({slug:R.company.mainStore.slug})},{default:a(()=>[u(i(R.company.mainStore.slug),1)]),_:1},8,["to"])])])):_("",!0),(k=R.company.ecommerceGmv)!=null&&k.data?(s(),h("li",an,[t("p",ln,"eCommerce GMV "+i(("extractYear"in n?n.extractYear:e(ye))(((P=R.company.ecommerceGmv)==null?void 0:P.date)??"")),1),t("p",null,i(("formatCurrency"in n?n.formatCurrency:e(xe))({number:(g=R.company.ecommerceGmv)==null?void 0:g.data,formatAs:"million"})),1)])):_("",!0),(T=R.company.mainMarketplace)!=null&&T.slug?(s(),h("li",cn,[rn,t("p",null,[o(c,{to:("ROUTES"in n?n.ROUTES:e(W)).MARKETPLACES.DETAIL({slug:R.company.mainMarketplace.slug})},{default:a(()=>{var p;return[u(i((p=R.company.mainMarketplace)==null?void 0:p.name),1)]}),_:1},8,["to"])])])):_("",!0)])])}}}),un=Je(mn,[["__scopeId","data-v-8a65d7a9"]]),dn={class:"has-text-weight-light"},hn={key:0,class:"columns is-multiline"},pn={class:"column is-full"},_n={class:"title is-3 is-5-mobile"},yn={class:"column is-full p-6"},fn={class:"columns is-centered is-variable is-2"},vn={class:"column is-one-third-tablet is-one-quarter-desktop"},gn={key:0,class:"mt-2 faviconContainer faviconContainer--borderless has-background-white is-inline-block"},bn=["src","alt"],wn={key:0},$n={class:"column is-full"},Cn=te({__name:"CompanyStructure",setup(R){const{company:$,name:n}=ne(),C=it();return(c,d)=>{const f=un,r=Pe,y=et,k=Ie,P=ke,g=Me;return s(),N(g,{"full-separator":""},{title:a(()=>[t("span",dn,i(e(n))+": Company structure",1)]),default:a(()=>{var T,p,b;return[(T=e($))!=null&&T.companyStructure?(s(),h("div",hn,[t("div",pn,[t("h3",_n,"Subsidiaries of "+i(e($).name),1)]),t("div",yn,[t("div",fn,[t("div",vn,[o(f,{company:e($).companyStructure.rootCompany,"is-root":""},{title:a(()=>{var l,A,x;return[(l=e($).companyStructure.rootCompany.mainStore)!=null&&l.favicon?(s(),h("div",gn,[t("img",{loading:"lazy",class:"icon is-medium",width:"16",height:"16",src:e(C).getFaviconUrl((A=e($).companyStructure.rootCompany.mainStore)==null?void 0:A.favicon,"store"),alt:`${(x=e($).companyStructure.rootCompany.mainStore)==null?void 0:x.slug} favicon`,onerror:"this.style.display='none'"},null,8,bn)])):_("",!0),t("p",null,i(e($).companyStructure.rootCompany.name),1)]}),_:1},8,["company"])])]),o(y,{class:"companyStructure__tree",classes:`columns is-variable is-2 ${e($).companyStructure.children.length<4?"is-centered":""}`,"scroll-per-element":""},{default:a(()=>[(s(!0),h(ee,null,Ee(e($).companyStructure.children,(l,A)=>(s(),h("div",{key:l.slug,class:Ae(["companyStructure__treeChild column is-one-third-tablet is-one-quarter-desktop",{"companyStructure__treeChild--first":A===0,"companyStructure__treeChild--last":A===e($).companyStructure.children.length-1}])},[o(f,{class:"tw-min-h-full",company:l},{title:a(()=>[t("p",null,i(l.name),1),l.slug?(s(),h("p",wn,[o(r,{to:("ROUTES"in c?c.ROUTES:e(W)).COMPANIES.DETAIL({slug:l.slug}),class:"has-text-white has-text-weight-semibold companyStructure__companyLink"},{default:a(()=>[o(e(Ut),{class:"tw-inline -tw-translate-y-0.25 tw-mr-1",width:"16",height:"16"}),u(" Visit profile ")]),_:2},1032,["to"])])):_("",!0)]),_:2},1032,["company"])],2))),128))]),_:1},8,["classes"])]),t("div",$n,[o(k,{title:"Please note"},{default:a(()=>[u(" We only cover companies with direct eCommerce revenue within the scope of ECDB. Only direct subsidiaries of the company are displayed in the chart. Therefore, the structure of companies might not be complete. ")]),_:1})]),o(P,{class:"column is-full","source-sections":((b=(p=e($))==null?void 0:p.companyStructure)==null?void 0:b.sourceSections)??[]},null,8,["source-sections"])])):_("",!0)]}),_:1})}}}),Sn=Je(Cn,[["__scopeId","data-v-e8752be2"]]),An=["id"],kn={class:"container is-max-widescreen"},Tn={class:"columns"},En={class:"column is-full"},xn={class:"title is-2"},Rn={class:"columns is-variable is-5 mt-2 mb-6"},Pn={class:"column is-7"},On={class:"title is-3"},Mn=t("p",null,"Discover the most similar companies based on eCommerce activity revenue, product mix, and geographic reach.",-1),Fn={class:"column is-5 tw-relative tw-mt-6 lg:tw-mt-0"},Nn=t("span",{class:"tw-absolute tw--top-2.5 tw-bg-orange-400 tw-uppercase tw-px-2 tw-py-0.5 tw-text-white tw-tracking-widest tw-text-xs tw-rounded-sm tw-font-semibold"},"New",-1),Gn=t("h3",{class:"title is-3"},"Competitor comparison",-1),Dn=t("p",{class:"mb-4"},"Select up to 3 competitors for a in-depth comparison report.",-1),In={class:"tw-overflow-y-scroll tw-max-h-72"},Un={class:"tw-opacity-50 tw-flex tw-items-center tw-space-x-4 tw-py-2.5 tw-px-4 tw-text-sm tw-border-b tw-border-gray-200 has-background-gray-100 has-text-black has-text-weight-semibold"},Ln=t("div",{class:"tw-flex-none tw-mt-1"},[t("input",{type:"checkbox",checked:"",disabled:""})],-1),Yn={class:"tw-flex-grow"},Vn=t("div",{class:"tw-flex-none"},[t("span",{class:"tw-py-0.5 tw-px-3 tw-bg-jade-500 tw-text-white tw-rounded-sm tw-text-xs tw-inline-block tw-w-14 tw-text-center tw-font-semibold"},"Main")],-1),Bn={class:"tw-flex-none tw-mt-1"},zn=["checked","value"],qn={class:"tw-flex-grow tw-truncate"},Hn={class:"tw-flex-none"},Qn=t("strong",null,"Note:",-1),jn=t("div",{class:"columns"},[t("div",{class:"column my-7 pb-2 pt-7 is-full is-relative"},[t("hr")])],-1),Kn=te({__name:"CompanyCompetitorAnalysis",setup(R){const $=[Z.blue_700,`${Z.blue_700}F2`,`${Z.blue_700}E6`,`${Z.blue_700}D9`,`${Z.blue_700}CC`,`${Z.blue_700}BF`,`${Z.blue_700}B3`,`${Z.blue_700}A6`,`${Z.blue_700}99`,`${Z.blue_700}8C`],{company:n}=ne(),{baseYear:C}=ve(),{addMessage:c}=at(),d=Oe([]),f=E(()=>{var y,k;return(((k=(y=n.value)==null?void 0:y.competitorAnalysis)==null?void 0:k.similarCompanies)??[]).map(P=>{var g;return{y:(g=P.similarity)==null?void 0:g.value}})}),r=E(()=>{var y,k;return(((k=(y=n.value)==null?void 0:y.competitorAnalysis)==null?void 0:k.similarCompanies)??[]).map(P=>`${P.name}`)});return pt(d,()=>{d.value.length>3&&(c({message:"You can only select a maximal amount of 3 competitors. Please deselect a competitor before selecting a new one.",severity:"danger",duration:5e3},!1),d.value.pop())}),(y,k)=>{var b,l,A,x,O,G;const P=Lt,g=ot,T=Ie,p=ke;return e(n)?(s(),h("section",{key:0,id:("SELECTORS"in y?y.SELECTORS:e(Ze)).idCompetitorAnalysis,class:"section pb-0"},[t("div",kn,[t("div",Tn,[t("div",En,[t("h2",xn,i(e(n).name)+": Competitor analysis",1)])]),t("div",Rn,[t("div",Pn,[t("h3",On,"The top similar eCommerce companies to "+i(e(n).name),1),Mn,o(P,{series:e(f),"x-axis-categories":e(r),"number-format-options":{style:"percent"},"chart-height":350,"extend-highcharts-options":{xAxis:{labels:{style:{textOverflow:"ellipsis"}}},plotOptions:{bar:{colorByPoint:!0,colors:$}}}},null,8,["series","x-axis-categories","extend-highcharts-options"])]),t("div",Fn,[Nn,Gn,Dn,t("div",In,[t("div",Un,[Ln,t("div",Yn,i(e(n).name),1),Vn]),(s(!0),h(ee,null,Ee((b=e(n).competitorAnalysis)==null?void 0:b.similarCompanies,(M,D)=>(s(),h("div",{key:D,class:Ae(["tw-flex tw-items-center tw-space-x-4 tw-py-2.5 tw-px-4 tw-text-sm tw-border-b tw-border-gray-200",e(d).includes(M.slug)?"has-background-gray-100 has-text-black has-text-weight-semibold":"has-text-gray-700"])},[t("div",Bn,[_t(t("input",{"onUpdate:modelValue":k[0]||(k[0]=L=>ft(d)?d.value=L:null),type:"checkbox",checked:e(d).includes(M.slug),value:M.slug},null,8,zn),[[yt,e(d)]])]),t("div",qn,i(M.name),1),t("div",Hn,[t("span",{class:"tw-py-0.5 tw-inline-block tw-w-14 tw-text-center tw-font-semibold tw-rounded-sm tw-text-xs tw-text-white",style:vt({backgroundColor:$[D]})},i(("formatPercent"in y?y.formatPercent:e(Yt))({number:M.similarity})),5)])],2))),128))]),o(g,{to:((l=e(d))==null?void 0:l.length)===0||((A=e(d))==null?void 0:A.length)>3?void 0:("ROUTES"in y?y.ROUTES:e(W)).COMPARE({entities:"companies"},{s:[e(n).slug,...e(d)]}),class:"mt-4",size:"semiSmall",variant:"primary",target:"_blank","is-fullwidth":"",disabled:((x=e(d))==null?void 0:x.length)===0||((O=e(d))==null?void 0:O.length)>3,"data-gtm":"companyRanking__filter--compare-selected"},{default:a(()=>{var M;return[o(e(Vt),{style:{position:"relative",top:"1px","margin-right":"4px"}}),u(" Compare selected ( "),t("b",null,i((((M=e(d))==null?void 0:M.length)??0)+1),1),u(" /4) ")]}),_:1},8,["to","disabled"])])]),o(T,null,{default:a(()=>[Qn,u(" The top 10 companies most similar to "+i(e(n).name)+" in "+i(e(C))+" are listed based on their similarity in the dimensions eCommerce activity revenue, category split and regional focus. The score indicates the degree of similarity and ranges from 0 (not similar at all) to 100% (perfect similarity). To compare the companies in detail, use the comparison function and select up to 3 competitors with which you would like to compare "+i(e(n).name)+". ",1)]),_:1}),o(p,{"source-sections":(G=e(n).competitorAnalysis)==null?void 0:G.sourceSections},null,8,["source-sections"]),jn])],8,An)):_("",!0)}}}),Wn={class:"has-text-weight-light"},Xn={key:0,class:"columns is-multiline"},Jn={class:"column is-full"},Zn={class:"title is-3 is-5-mobile"},ei={key:0,class:"column is-full"},ti=t("br",null,null,-1),si={class:"column is-full"},oi=t("br",null,null,-1),ni={key:1,class:"columns is-multiline"},ii={class:"column is-full"},ai={class:"title is-3 is-5-mobile"},li=t("p",null,"Workforce and revenue per employee",-1),ci={key:0,class:"column is-full"},ri=t("br",null,null,-1),mi={key:1,class:"column is-full"},ui=t("br",null,null,-1),di={key:2,class:"columns is-multiline"},hi={class:"column is-full"},pi={class:"title is-3 is-5-mobile"},_i=t("p",null,"Net sales split by line of business, brands, or channel",-1),yi=t("br",null,null,-1),fi={key:3,class:"columns is-multiline"},vi=t("div",{class:"column is-full"},[t("h3",{class:"title is-3 is-5-mobile"},"Net sales by geographical segments"),t("p",null,"Net sales split by geography, region, or country")],-1),gi=t("br",null,null,-1),bi={key:4,class:"columns is-multiline"},wi={class:"column is-full"},$i={class:"title is-3 is-5-mobile"},Ci=t("p",null,"Overview of selected financial figures",-1),Si={class:"column is-full"},Ai={class:"box"},ki=t("div",{class:"is-relative"},[t("h3",{class:"title is-5 has-text-blue-800"},"Overview"),t("div",{class:"subtitle is-8 mb-0"},"Per year")],-1),Ti={class:"mt-5"},Ei="Earnings Per Share",Xe="Total revenues",xi=te({__name:"CompanyFinancialAnalytics",setup(R){const{baseYear:$}=ve(),{company:n,name:C}=ne(),{formattedCurrency:c}=De(),d=E(()=>{var g,T,p,b;return!X((T=(g=n.value)==null?void 0:g.financialAnalytics)==null?void 0:T.netSales)||!X((b=(p=n.value)==null?void 0:p.financialAnalytics)==null?void 0:b.netSalesGrowth)}),f=E(()=>{var g,T,p,b;return!X((T=(g=n.value)==null?void 0:g.financialAnalytics)==null?void 0:T.numberOfEmployees)||!X((b=(p=n.value)==null?void 0:p.financialAnalytics)==null?void 0:b.revenuePerEmployee)}),r=E(()=>{var g,T,p;return((p=(T=(g=n.value)==null?void 0:g.financialAnalytics)==null?void 0:T.businessSegments)==null?void 0:p.segments.map(b=>({title:b.title,series:b.series.filter(l=>l.description!==Xe)})))??[]}),y=E(()=>{var g,T,p;return((p=(T=(g=n.value)==null?void 0:g.financialAnalytics)==null?void 0:T.geographicSegments)==null?void 0:p.segments.map(b=>({title:b.title,series:b.series.filter(l=>l.description!==Xe)})))??[]}),k=E(()=>{var g,T;return[{name:""},...((T=(g=n.value)==null?void 0:g.financialAnalytics)==null?void 0:T.keyMetrics.columns.map(p=>({name:p.toString()})))??[]]}),P=E(()=>{var g,T;return((T=(g=n.value)==null?void 0:g.financialAnalytics)==null?void 0:T.keyMetrics.rows.map(p=>{var b,l;return[{value:Fe(((l=(b=p[0])==null?void 0:b.description)==null?void 0:l.toLowerCase())??"")},...p.map(A=>{var x;return{value:Bt({number:A.data,options:((x=p[0])==null?void 0:x.description)===Ei?{minimumFractionDigits:2,maximumFractionDigits:2}:{},formatAs:Math.abs(A.data.value)>99999.99?"million":void 0})}})]}))??[]});return(g,T)=>{const p=tt,b=st,l=ke,A=nt,x=Me;return s(),N(x,{"full-separator":""},{title:a(()=>[t("span",Wn,i(e(C))+": Financial analytics",1)]),default:a(()=>{var O,G,M,D,L,V,Y,q,H,j,m,S,w,v,F,Q,B,U,z,se,K,oe,J,pe,ie,ae,le,ce,re,me,ge,be,we,$e,Ce;return[e(d)?(s(),h("div",Xn,[t("div",Jn,[t("h3",Zn,"Net sales development of "+i(e(C)),1)]),(G=(O=e(n))==null?void 0:O.financialAnalytics)!=null&&G.netSales?(s(),h("div",ei,[o(p,{series:(D=(M=e(n))==null?void 0:M.financialAnalytics)==null?void 0:D.netSales,"sub-title":`in million ${e(c)}`,"base-year":e($),"in-million":""},{title:a(()=>[u(i(e(C))+" ",1),ti,u(" Total net sales ")]),_:1},8,["series","sub-title","base-year"])])):_("",!0),t("div",si,[(V=(L=e(n))==null?void 0:L.financialAnalytics)!=null&&V.netSalesGrowth?(s(),N(b,{key:0,series:(Y=e(n))==null?void 0:Y.financialAnalytics.netSalesGrowth,"sub-title":"in percent",tooltip:"The year-over-year percent change in a company's annual revenue."},{title:a(()=>[u(i(e(C))+" ",1),oi,u(" YoY growth ")]),_:1},8,["series"])):_("",!0)])])):_("",!0),e(f)?(s(),h("div",ni,[t("div",ii,[t("h3",ai,"Number of employees at "+i(e(C)),1),li]),(H=(q=e(n))==null?void 0:q.financialAnalytics)!=null&&H.numberOfEmployees?(s(),h("div",ci,[o(p,{series:(m=(j=e(n))==null?void 0:j.financialAnalytics)==null?void 0:m.numberOfEmployees,"sub-title":"per year","base-year":e($)},{title:a(()=>[u(i(e(C))+" ",1),ri,u(" Number of employees ")]),_:1},8,["series","base-year"])])):_("",!0),(w=(S=e(n))==null?void 0:S.financialAnalytics)!=null&&w.revenuePerEmployee?(s(),h("div",mi,[o(p,{series:(F=(v=e(n))==null?void 0:v.financialAnalytics)==null?void 0:F.revenuePerEmployee,"sub-title":`in million ${e(c)}`,"base-year":e($),tooltip:"The TTM (trailing twelve months) revenue divided by the latest employee number.","in-million":""},{title:a(()=>[u(i(e(C))+" ",1),ui,u(" Revenue per employee ")]),_:1},8,["series","sub-title","base-year"])])):_("",!0)])):_("",!0),o(l,{"with-columns":"","source-sections":((B=(Q=e(n))==null?void 0:Q.financialAnalytics)==null?void 0:B.sourceSections)??[],"source-name":"netSales"},null,8,["source-sections"]),(K=(se=(z=(U=e(n))==null?void 0:U.financialAnalytics)==null?void 0:z.businessSegments)==null?void 0:se.segments)!=null&&K.length?(s(),h("div",di,[t("div",hi,[t("h3",pi,i(e(C))+": Net sales by business segments",1),_i]),(s(!0),h(ee,null,Ee(e(r),(ue,_e)=>(s(),h("div",{key:_e,class:"column is-full"},[o(p,{series:ue.series,"sub-title":`in million ${e(c)}`,"in-million":"","default-chart-type":("ChartType"in g?g.ChartType:e(Te)).StackedColumn,"chart-types":[("ChartType"in g?g.ChartType:e(Te)).StackedColumn],"year-selector":"","hide-data-labels":""},{title:a(()=>{var de;return[u(i(e(C))+" ",1),yi,u(" "+i(("capitalize"in g?g.capitalize:e(Fe))(((de=ue.title)==null?void 0:de.replace(`${e(C)} `??"",""))??"")),1)]}),_:2},1032,["series","sub-title","default-chart-type","chart-types"])]))),128)),o(l,{class:"column is-full","source-sections":(J=(oe=e(n))==null?void 0:oe.financialAnalytics)==null?void 0:J.businessSegments.sourceSections},null,8,["source-sections"])])):_("",!0),(le=(ae=(ie=(pe=e(n))==null?void 0:pe.financialAnalytics)==null?void 0:ie.geographicSegments)==null?void 0:ae.segments)!=null&&le.length?(s(),h("div",fi,[vi,(s(!0),h(ee,null,Ee(e(y),(ue,_e)=>(s(),h("div",{key:_e,class:"column is-full"},[o(p,{series:ue.series,"sub-title":`in million ${e(c)}`,"in-million":"","default-chart-type":("ChartType"in g?g.ChartType:e(Te)).StackedColumn,"chart-types":[("ChartType"in g?g.ChartType:e(Te)).StackedColumn],"year-selector":"","hide-data-labels":""},{title:a(()=>{var de;return[u(i(e(C))+" ",1),gi,u(" "+i(("capitalize"in g?g.capitalize:e(Fe))(((de=ue.title)==null?void 0:de.replace(`${e(C)} `??"",""))??"")),1)]}),_:2},1032,["series","sub-title","default-chart-type","chart-types"])]))),128)),o(l,{class:"column is-full","source-sections":(re=(ce=e(n))==null?void 0:ce.financialAnalytics)==null?void 0:re.geographicSegments.sourceSections},null,8,["source-sections"])])):_("",!0),(we=(be=(ge=(me=e(n))==null?void 0:me.financialAnalytics)==null?void 0:ge.keyMetrics)==null?void 0:be.columns)!=null&&we.length?(s(),h("div",bi,[t("div",wi,[t("h3",$i,i(e(C))+": Key financial metrics at a glance",1),Ci]),t("div",Si,[t("div",Ai,[ki,t("div",Ti,[o(A,{rows:e(P),columns:e(k),classes:{container:"is-small has-max-height-450",table:"is-fullwidth",theadTrTh:"pt-3 pb-3 pl-4 pr-4 has-background-light has-text-weight-semibold is-vcentered",tbodyTrTd:"pt-3 pb-3 pl-4 pr-4 has-background-white has-min-width-120 has-border-bottom is-vcentered"},"header-class":["",...("createArray"in g?g.createArray:e(fe))(e(k).length-1,"is-right")],"column-class":["has-min-width-120 has-text-weight-semibold",...("createArray"in g?g.createArray:e(fe))(e(k).length-1,"is-right")],"freeze-header":"","freeze-first-column":""},null,8,["rows","columns","header-class","column-class"])])])]),o(l,{class:"column is-full","source-sections":((Ce=($e=e(n))==null?void 0:$e.financialAnalytics)==null?void 0:Ce.sourceSections)??[],"source-name":"keyMetrics"},null,8,["source-sections"])])):_("",!0)]}),_:1})}}}),Ri={class:"section pb-0"},Pi={class:"container is-max-widescreen"},Oi={class:"columns"},Mi={class:"column is-flex-basis-100"},Fi={class:"title is-2"},Ni={class:"column"},Gi=gt('
Subsidiary analysis
Get an overview of the organizational relationships and hierarchy between a parent company and its subsidiaries.
',2),Di=te({__name:"CompanyPaywallStructure",emits:["open-modal"],setup(R,{emit:$}){const n=$,{name:C}=ne();return(c,d)=>(s(),h("section",Ri,[t("div",Pi,[t("div",Oi,[t("div",Mi,[t("h2",Fi,i(e(C))+": Company structure",1)]),t("div",Ni,[t("button",{type:"button","data-gtm":"accessData--companyMilestones",class:"button is-mint-600 has-gradient",onClick:d[0]||(d[0]=f=>n("open-modal"))}," Access detailed data ")])]),Gi])]))}}),Ii=["id"],Ui={class:"container is-max-widescreen"},Li={class:"columns"},Yi={class:"column is-flex-basis-100"},Vi={class:"title is-2"},Bi={class:"column"},zi={class:"columns"},qi={class:"column is-full"},Hi={class:"title is-3"},Qi=t("p",null,"Discover the most similar companies based on eCommerce activity revenue, product mix, and geographic reach.",-1),ji=t("div",{class:"columns"},[t("div",{class:"column my-7 pb-2 pt-7 is-full is-relative"},[t("hr")])],-1),Ki=te({__name:"CompanyPaywallCompetitorAnalysis",emits:["open-modal"],setup(R,{emit:$}){const n=$,{company:C}=ne();return(c,d)=>e(C)?(s(),h("section",{key:0,id:("SELECTORS"in c?c.SELECTORS:e(Ze)).idCompetitorAnalysis,class:"section pb-0"},[t("div",Ui,[t("div",Li,[t("div",Yi,[t("h2",Vi,i(e(C).name)+": Competitor analysis",1)]),t("div",Bi,[t("button",{type:"button","data-gtm":"accessData--storePerformance",class:"button is-mint-600 has-gradient",onClick:d[0]||(d[0]=f=>n("open-modal"))}," Access detailed data ")])]),t("div",zi,[t("div",qi,[t("h3",Hi,"The top similar eCommerce companies to "+i(e(C).name),1),Qi])]),ji])],8,Ii)):_("",!0)}}),Wi={class:"section pb-0"},Xi={class:"container is-max-widescreen"},Ji={class:"columns"},Zi={class:"column is-flex-basis-100"},ea={class:"title is-2"},ta={class:"column"},sa={class:"columns is-variable"},oa={class:"column is-4"},na={class:"column"},ia=t("h3",{class:"title is-3"},"Key reported financials",-1),aa=t("p",null,"Get the most important financials in a convenient and comprehensive overview.",-1),la=t("h3",{class:"title is-3"},"Revenue development",-1),ca=t("p",null,"Analyze the company's sales performance and see the development over time.",-1),ra=t("h3",{class:"title is-3"},"Number of employees",-1),ma=t("p",null,"Understand how the workforce develops over time and in relation to the company's revenue.",-1),ua=t("h3",{class:"title is-3"},"Efficiency metrics",-1),da=t("p",null,"Explore the company's gross and operating profits and margins to gain insights into the efficiency of capital utilization.",-1),ha=t("h3",{class:"title is-3"},"Profitability metrics",-1),pa=t("p",null,"Discover the company's ability to generate earnings relative to its revenue.",-1),_a=t("h3",{class:"title is-3"},"Profitability per share",-1),ya=t("p",null,"Analyze the performance of earnings and dividends per outstanding share of common stock.",-1),fa=t("h3",{class:"title is-3"},"Solvency and liquidity metrics",-1),va=t("p",null,"Access information on the company's ability to generate cash and meet their financial obligations.",-1),ga=t("div",{class:"columns"},[t("div",{class:"column my-7 pb-2 pt-7 is-full is-relative"},[t("hr")])],-1),ba=te({__name:"CompanyPaywallFinancialAnalytics",emits:["open-modal"],setup(R,{emit:$}){const n=$,{name:C}=ne(),c=Oe(0),d=(f=0)=>{c.value=f};return(f,r)=>{const y=zt,k=qt;return s(),h("section",Wi,[t("div",Xi,[t("div",Ji,[t("div",Zi,[t("h2",ea,i(e(C))+": Financial analytics",1)]),t("div",ta,[t("button",{type:"button","data-gtm":"accessData--companyFinancials",class:"button is-mint-600 has-gradient",onClick:r[0]||(r[0]=P=>n("open-modal"))}," Access detailed data ")])]),t("div",sa,[t("div",oa,[o(y,{index:0,icon:"0","is-active":e(c)===0,onActivateTab:d},{default:a(()=>[u(" Key reported financials ")]),_:1},8,["is-active"]),o(y,{index:1,icon:"revenue","is-active":e(c)===1,onActivateTab:d},{default:a(()=>[u(" Company revenue ")]),_:1},8,["is-active"]),o(y,{index:2,icon:"team","is-active":e(c)===2,onActivateTab:d},{default:a(()=>[u(" Number of employees ")]),_:1},8,["is-active"]),o(y,{index:3,icon:"3","is-active":e(c)===3,onActivateTab:d},{default:a(()=>[u(" Efficiency metrics ")]),_:1},8,["is-active"]),o(y,{index:4,icon:"2","is-active":e(c)===4,onActivateTab:d},{default:a(()=>[u(" Profitability metrics ")]),_:1},8,["is-active"]),o(y,{index:5,icon:"1","is-active":e(c)===5,onActivateTab:d},{default:a(()=>[u(" Profitability per share ")]),_:1},8,["is-active"]),o(y,{index:6,icon:"4","is-active":e(c)===6,onActivateTab:d},{default:a(()=>[u(" Solvency and liquidity metrics ")]),_:1},8,["is-active"])]),t("div",na,[t("div",null,[e(c)===0?(s(),N(k,{key:0},{default:a(()=>[ia,aa]),_:1})):_("",!0),e(c)===1?(s(),N(k,{key:1},{default:a(()=>[la,ca]),_:1})):_("",!0),e(c)===2?(s(),N(k,{key:2},{default:a(()=>[ra,ma]),_:1})):_("",!0),e(c)===3?(s(),N(k,{key:3},{default:a(()=>[ua,da]),_:1})):_("",!0),e(c)===4?(s(),N(k,{key:4},{default:a(()=>[ha,pa]),_:1})):_("",!0),e(c)===5?(s(),N(k,{key:5},{default:a(()=>[_a,ya]),_:1})):_("",!0),e(c)===6?(s(),N(k,{key:6},{default:a(()=>[fa,va]),_:1})):_("",!0)])])]),ga])])}}}),wa={class:"companyContent"},Sl=te({__name:"index",async setup(R){let $,n;const C=Re(),c=bt(),{company:d,fetchCompany:f,sections:r,sectionVisibilty:y,contactInformation:k}=ne(),{getAbsoluteUrl:P,JSONLD:g}=ve(),T=Oe(),p=()=>{var l;return(l=T.value)==null?void 0:l.openModal()},b=E(()=>C.hasPermission("core")?Object.entries(r).reduce((l,[A,x])=>(y.value[A]&&l.push(x),l),[]):Object.values(r));if(c.params.slug){const{error:l}=([$,n]=wt(()=>f(At(c.params.slug))),$=await $,n(),$);$t(l.value)}return Ct({title:()=>{var l;return((l=d.value)==null?void 0:l.pageTitle)??""},description:()=>{var l;return(l=d.value)==null?void 0:l.pageDescription},ogTitle:()=>{var l;return`${((l=d.value)==null?void 0:l.pageTitle)??""} | ECDB.com`},ogDescription:()=>{var l;return(l=d.value)==null?void 0:l.ogDescription}}),St(()=>{var l,A,x,O,G;return d.value?{"@context":"https://schema.org","@type":"Dataset",name:((l=d.value)==null?void 0:l.schemaName)??"",url:P(c),description:((A=d.value)==null?void 0:A.pageDescription)??"",spatialCoverage:((G=(O=(x=k.value)==null?void 0:x.headquarters)==null?void 0:O.country)==null?void 0:G.name)??"",isAccessibleForFree:!1,hasPart:[{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".companyContent"}],creator:g.value.creator}:null}),(l,A)=>{var w,v,F,Q,B,U,z,se,K,oe,J,pe,ie,ae,le,ce,re,me;const x=gs,O=Ot,G=Xo,M=Sn,D=Kn,L=xi,V=Et,Y=Di,q=Ki,H=ba,j=xt,m=Ht,S=Gt;return s(),h("div",null,[o(x,{onOpenModal:p}),o(O,{items:e(b)},null,8,["items"]),t("div",wa,[o(G,{id:(v=(w=e(r))==null?void 0:w.eCommerceAnalytics)==null?void 0:v.id,onOpenModal:p},null,8,["id"]),e(C).hasPermission("core")?(s(),h(ee,{key:0},[e(y).companyStructure?(s(),N(M,{key:0,id:(Q=(F=e(r))==null?void 0:F.companyStructure)==null?void 0:Q.id},null,8,["id"])):_("",!0),e(y).competitorAnalysis?(s(),N(D,{key:1,id:(U=(B=e(r))==null?void 0:B.competitorAnalysis)==null?void 0:U.id},null,8,["id"])):_("",!0),e(y).financialAnalytics?(s(),N(L,{key:2,id:(se=(z=e(r))==null?void 0:z.financialAnalytics)==null?void 0:se.id},null,8,["id"])):_("",!0),e(k)?(s(),N(V,{key:3,id:(oe=(K=e(r))==null?void 0:K.contactInformation)==null?void 0:oe.id,"entity-name":(J=e(d))==null?void 0:J.name,"contact-information":e(k),relations:e(k).relations},null,8,["id","entity-name","contact-information","relations"])):_("",!0)],64)):(s(),h(ee,{key:1},[o(Y,{id:(ie=(pe=e(r))==null?void 0:pe.companyStructure)==null?void 0:ie.id,onOpenModal:p},null,8,["id"]),o(q,{id:(le=(ae=e(r))==null?void 0:ae.competitorAnalysis)==null?void 0:le.id,onOpenModal:p},null,8,["id"]),o(H,{id:(re=(ce=e(r))==null?void 0:ce.financialAnalytics)==null?void 0:re.id,onOpenModal:p},null,8,["id"]),o(j,{"entity-name":(me=e(d))==null?void 0:me.name,onOpenModal:p},null,8,["entity-name"])],64)),o(m)]),o(Qt,{ref_key:"refRequestAccessModal",ref:T,"no-padding":"","modal-name":"requestAccessModal"},{default:a(()=>[o(S,{"request-type":("REQUEST_TYPE"in l?l.REQUEST_TYPE:e(Ne)).COMPANIES},null,8,["request-type"])]),_:1},512)])}}});export{Sl as default};