iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: http://ecdb.com/_nuxt/DKUhVPuN.js
import{_ as nt}from"./B-ANVB1o.js";import{_ as bt}from"./CaSFzJTk.js";import{_ as Ae}from"./DA39qUTR.js";import{h as $e,i as ft,j as Je,k as r,l as Ze,R as we,M as Rt,d as re,u as Fe,m as ot,r as Be,p as oe,o as $,c as Q,w as m,n as v,f as e,q as et,S as Pe,s as tt,v as E,t as p,e as s,x as Ee,y as St,z as Ct,B as wt,C as L,D as Ue,E as se,F as rt,G as M,H as O,I as At,a as Tt,b as Dt}from"./llFuKhWI.js";import{u as Le}from"./8f3qKeDV.js";import{u as kt}from"./CqqOmRfu.js";import{i as ae}from"./DmTcqMXd.js";import{_ as $t}from"./C8OXDg47.js";import{u as Et,_ as Pt}from"./BKG-dt3e.js";import{c as it,s as lt,_ as Ne}from"./ChJ-Sl42.js";import{H as xt}from"./DaWAgGwk.js";import{C as Oe}from"./CnGBFLmb.js";import{u as Bt,M as Ft,g as ne,_ as ct,a as Ke}from"./DEcB3HXe.js";import{_ as Ut}from"./D5fJcUqC.js";import{_ as ut}from"./Y8UZyz1E.js";import{_ as mt,a as Lt}from"./DL7ZoMTz.js";import{u as dt}from"./GHFfDvA1.js";import{f as at}from"./0gH3qB8c.js";import{c as he}from"./BAhSLZC6.js";import{R as I}from"./5-zKaSZz.js";import{f as Ce}from"./Bmq57C4o.js";import{_ as Nt}from"./wMmrnhvC.js";import{_ as Ot}from"./VGkM1OuY.js";import{u as Kt}from"./EoaUGGBW.js";import{u as Yt}from"./GGENp0mR.js";import{f as st}from"./DhVdjmDf.js";import"./BzhbCKP8.js";import"./BYxIZdj_.js";import"./DAdDEog1.js";import"./Ym6uCvCk.js";import"./CAGVG2Xa.js";import"./CGuxoV3j.js";import"./DtiWZQBA.js";import"./Ckcxxpii.js";import"./BIPg2yNz.js";import"./C_ca73Qy.js";import"./D_juRh_W.js";import"./DuFVbZg1.js";import"./CemFBfVf.js";import"./D5xvDofM.js";import"./DpmnuuFF.js";import"./BtJExACf.js";import"./C-7E03RX.js";import"./Br9rlyJX.js";import"./BgoqZooi.js";import"./IQURtVXU.js";import"./B5hWRf_M.js";import"./DrxjaUxt.js";import"./CMRDQou7.js";import"./CzSSHsEX.js";const me=()=>{const V=$e(),{$apiGet:h}=ft(),{currency:l}=Le(),{assignAndTimestamp:R,assignFromCache:S,addTimestamp:g,createCacheKey:C}=kt(),c=Je(()=>null,"$FfhNcsb7xR"),i=Je(()=>null,"$My3v6tf8Pl"),A=(d,D)=>{const u={region:d.toUpperCase(),category:D,currency:l.value};return Ze(`benchmark-${C(u)}`,()=>h(we.API.BENCHMARKS.GET_BENCHMARK(),{params:u}),{transform:b=>R(b,c),getCachedData:b=>S(b,c)})},T=()=>Ze(()=>h(we.API.BENCHMARKS.GET_BENCHMARK_FILTERS()),{transform:d=>{const D={country:d.country.filter(u=>u.value).map(u=>({label:u.label,value:u.value.toLowerCase()})),category:d.category.filter(u=>u.value)};return i.value=D,g(D)},getCachedData:d=>S(d,i,Rt.ONE_DAY)},"$dUIfpZ0iL2"),o=r(()=>{var d,D,u,b,U,Y,x,P;return{conversionFunnel:{withAccess:!ae((D=(d=c.value)==null?void 0:d.funnel)==null?void 0:D.data),noAccess:!!((b=(u=c.value)==null?void 0:u.descriptions)!=null&&b.funnelDescription)},transactional:{withAccess:!ae((Y=(U=c.value)==null?void 0:U.transactional)==null?void 0:Y.data),noAccess:!!((P=(x=c.value)==null?void 0:x.descriptions)!=null&&P.transactionalDescription)},marketComparison:{withAccess:!1,noAccess:!1}}}),f=r(()=>{var d,D,u,b,U,Y,x,P,G,W,J,Z,de,pe,j,ie,ve,n,_,X,ee,H,q,B,z,te;return{addToCartRate:{withAccess:!ae((D=(d=c.value)==null?void 0:d.addToCartRate)==null?void 0:D.data),noAccess:!!((b=(u=c.value)==null?void 0:u.descriptions)!=null&&b.addToCartRateDescription)},cartAbandonmentRate:{withAccess:!ae((Y=(U=c.value)==null?void 0:U.cartAbandonmentRate)==null?void 0:Y.data),noAccess:!!((P=(x=c.value)==null?void 0:x.descriptions)!=null&&P.cartAbandonmentRateDescription)},conversionRate:{withAccess:!ae((W=(G=c.value)==null?void 0:G.conversionRate)==null?void 0:W.data),noAccess:!!((Z=(J=c.value)==null?void 0:J.descriptions)!=null&&Z.conversionRateDescription)},aov:{withAccess:!ae((pe=(de=c.value)==null?void 0:de.aovDevelopment)==null?void 0:pe.data)||!ae((ie=(j=c.value)==null?void 0:j.aovGrowth)==null?void 0:ie.data),noAccess:!!((n=(ve=c.value)==null?void 0:ve.descriptions)!=null&&n.aovDescription)},discountRate:{withAccess:!ae((X=(_=c.value)==null?void 0:_.addToCartRate)==null?void 0:X.data),noAccess:!!((H=(ee=c.value)==null?void 0:ee.descriptions)!=null&&H.discountRateDescription)},returnRate:{withAccess:!ae((B=(q=c.value)==null?void 0:q.addToCartRate)==null?void 0:B.data),noAccess:!!((te=(z=c.value)==null?void 0:z.descriptions)!=null&&te.returnRateDescription)}}});return{benchmark:c,benchmarkFilters:i,fetchBenchmarkFilters:T,fetchBenchmarkDetails:A,isSectionVisible:d=>(o.value[d]??f.value[d]??{})[V.hasPermission("core")?"withAccess":"noAccess"]??!1,sections:{conversionFunnel:{id:"conversion-funnel-kpis",label:"Conversion Funnel KPIs"},transactional:{id:"transactional-kpis",label:"Transactional KPIs"},marketComparison:{id:"market-comparison",label:"Market Comparison"}},subSections:{addToCartRate:{id:"add-to-cart-rate",label:"Add-to-cart rate",parent:"conversionFunnel"},cartAbandonmentRate:{id:"cart-abandonment-rate",label:"Cart abandonment rate",parent:"conversionFunnel"},conversionRate:{id:"conversion-rate",label:"Conversion rate",parent:"conversionFunnel"},aov:{id:"aov",label:"Average order value (AOV)",parent:"transactional"},discountRate:{id:"discount-rate",label:"Discount rate",parent:"transactional"},returnRate:{id:"return-rate",label:"Return rate",parent:"transactional"}}}},It=s("strong",{class:"is-uppercase mr-2 has-text-blue-800"},"Select category",-1),Mt=s("strong",{class:"is-uppercase mr-2 has-text-blue-800"},"Select country",-1),Vt=re({__name:"BenchmarkFilter",async setup(V){let h,l;const R=Fe(),{benchmarkFilters:S,fetchBenchmarkFilters:g}=me();[h,l]=ot(()=>g()),await h,l();const C=Be(oe(R.params.slug)),c=Be(oe(R.params.isoCode)),i=r(()=>{var o,f;return((f=(o=S.value)==null?void 0:o.category.find(w=>w.value===C.value))==null?void 0:f.label)??"All"}),A=r(()=>{var o,f;return((f=(o=S.value)==null?void 0:o.country.find(w=>w.value===c.value))==null?void 0:f.label)??"Worldwide"}),T=r(()=>{var o;return(((o=S.value)==null?void 0:o.category)??[]).map(f=>({label:f.label,value:f.value,nested:f.parent!==null}))});return(o,f)=>{const w=bt,K=Ae;return $(),Q(K,{"hide-separator":""},{default:m(()=>{var k;return[v(w,{modelValue:e(C),"onUpdate:modelValue":f[0]||(f[0]=d=>et(C)?C.value=d:null),class:"is-inline-block mr-4 mt-3",options:e(T),reset:"","reset-value":("SLUGS"in o?o.SLUGS:e(Pe)).all,"reset-label":"All","data-gtm":"benchmark__filter--category",onChange:f[1]||(f[1]=d=>("navigateTo"in o?o.navigateTo:e(tt))({path:("ROUTES"in o?o.ROUTES:e(we)).BENCHMARKS.DETAIL({isoCode:("paramToString"in o?o.paramToString:e(oe))(e(R).params.isoCode),slug:d})}))},{buttonLabel:m(()=>[It,E(" "+p(e(i)),1)]),_:1},8,["modelValue","options","reset-value"]),v(w,{modelValue:e(c),"onUpdate:modelValue":f[2]||(f[2]=d=>et(c)?c.value=d:null),class:"is-inline-block mt-3",options:((k=e(S))==null?void 0:k.country)??[],reset:"","reset-value":("SLUGS"in o?o.SLUGS:e(Pe)).ww,"reset-label":"Worldwide",filter:"","data-gtm":"benchmark__filter--country",onChange:f[3]||(f[3]=d=>("navigateTo"in o?o.navigateTo:e(tt))({path:("ROUTES"in o?o.ROUTES:e(we)).BENCHMARKS.DETAIL({isoCode:d,slug:("paramToString"in o?o.paramToString:e(oe))(e(R).params.slug)||("SLUGS"in o?o.SLUGS:e(Pe)).all})}))},{buttonLabel:m(()=>[Mt,E(" "+p(e(A)),1)]),_:1},8,["modelValue","options","reset-value"])]}),_:1})}}}),Ht=re({__name:"BenchmarkHeader",setup(V){const{isWorldWide:h,getCountry:l}=Ee(),{benchmark:R}=me(),S=r(()=>{var C;return(C=R.value)==null?void 0:C.region}),g=r(()=>{var i,A;const C=!S.value||h(S.value.code)?"Global":l(S.value.code).adjectival,c=((A=(i=R.value)==null?void 0:i.category)==null?void 0:A.name)||"eCommerce";return`Benchmark KPIs in the ${C} ${c} market`});return(C,c)=>{const i=$t,A=Ae;return $(),Q(A,{class:"has-background-gradient-light","headline-type":"h1","hide-separator":"","left-column-classes":"is-11"},{title:m(()=>[s("strong",null,p(e(g)),1)]),copy:m(()=>{var T,o;return[v(i,{class:"pt-2",text:(o=(T=e(R))==null?void 0:T.descriptions)==null?void 0:o.benchmarksDescription,"is-html":"","only-mobile":""},null,8,["text"])]}),_:1})}}}),pt=re({__name:"WaterfallChart",props:{series:{type:[Array,Object],required:!0},seriesTitle:{type:String,default:""},paywallActive:{type:Boolean,default:!1},showLegend:{type:Boolean,default:!1},numberFormatOptions:{type:Object,default:()=>({})}},setup(V){const h=St("chartHeightPx",250),l=V,R=Bt({showLegend:l.showLegend,chartHeightPx:h,numberFormatOptions:l.numberFormatOptions});return Ct(()=>l.series,R.regenerateUuid,{deep:!0}),wt(()=>{var S;R.xAxis.value={...R.xAxis.value,min:.25,max:(((S=l.series)==null?void 0:S.length)??0)-1.25,startOnTick:!1,endOnTick:!1,type:"category"},R.yAxis.value=[{title:{text:null},labels:{enabled:!1},min:null,max:null,maxPadding:Ft,gridLineWidth:0}],R.series.value=[{type:"waterfall",name:l.seriesTitle,legendIndex:0,data:l.series}],R.plotOptions.value={...R.plotOptions.value,waterfall:{borderRadius:0,borderWidth:0,lineColor:Oe.default,dataLabels:{enabled:!l.paywallActive}}},R.tooltip.value={enabled:!1}}),(S,g)=>{var c;const C=xt;return(c=l.series)!=null&&c.length?($(),Q(C,{key:e(R).uuid.value,options:e(R).options.value},null,8,["options"])):L("",!0)}}}),qt={key:0,class:"columns mb-5"},Qt={class:"column is-full"},Gt={class:"white-space-pre-line"},Wt={class:"columns mb-2 is-multiline"},Xt={class:"column is-full"},jt={key:0,class:"column is-full"},zt=["id"],Jt={class:"columns mt-5 mb-5"},Zt={class:"column is-full"},ea={class:"title is-3"},ta={class:"white-space-pre-line"},aa={class:"columns mb-2"},sa={class:"column is-full"},na=["id"],oa={class:"columns mt-5 mb-5"},ra={class:"column is-full"},ia={class:"title is-3"},la={class:"white-space-pre-line"},ca={class:"columns mb-2"},ua={class:"column is-full"},ma=["id"],da={class:"columns mt-5 mb-5"},pa={class:"column is-full"},va={class:"title is-3"},ha={class:"white-space-pre-line"},_a={class:"columns mb-2"},ya={class:"column is-full"},ga={key:0,class:"columns mt-5 mb-5"},ba={class:"column is-full"},fa={class:"title is-3"},Ra=re({__name:"BenchmarkConversionFunnel",props:{slug:{}},setup(V){const h=$e(),{baseYear:l}=Ue(),{isWorldWide:R,getCountry:S}=Ee(),{benchmark:g,isSectionVisible:C,subSections:c}=me(),{createDummyWaterfallSeries:i,createDummySeries:A}=dt(),T=V,o=r(()=>{var n;return(n=g.value)==null?void 0:n.region}),f=r(()=>!o.value||R(o.value.code)?"global":S(o.value.code).adjectival),w=r(()=>{var n,_;return((_=(n=g.value)==null?void 0:n.category)==null?void 0:_.name)||"eCommerce"}),K=r(()=>[{type:"text",text:"Conversion funnel KPIs in the "},{type:"strong",text:`${f.value} `},{type:"strong",text:`${w.value}`},{type:"text",text:" market"}]),k=i({id:`${T.slug}-dummyConversionFunnelData`,count:3}),d=r(()=>{var n,_;return h.hasPermission("core")?((_=(n=g.value)==null?void 0:n.funnel)==null?void 0:_.data)??[]:k}),D=r(()=>{var X,ee,H,q;const n=((ee=(X=d.value.find(B=>B.description==="Add-to-cart rate"))==null?void 0:X.data)==null?void 0:ee.value)??null,_=((q=(H=d.value.find(B=>B.description==="Conversion rate"))==null?void 0:H.data)==null?void 0:q.value)??null;return d.value.map(B=>{var te,le,ce;const z={name:B.description??"",y:((te=B.data)==null?void 0:te.value)??null,isSum:B.trend==="isSum",color:Oe.mint_600};return B.description==="Cart abandonment rate"&&n&&_&&((le=B.data)!=null&&le.value)&&(z.y=_-n,z.dataLabels={format:`

${at({number:B.data})}
(${at({number:{value:n-_,options:(ce=B.data)==null?void 0:ce.options}})} of all website visitors)

`,useHTML:!0,overflow:"allow",crop:!1}),z})}),u=A({id:`${T.slug}-dummyAddToCartRateData`,count:4,style:"percent"}),b=r(()=>{var n,_;return(h.hasPermission("core")?(_=(n=g.value)==null?void 0:n.addToCartRate)==null?void 0:_.data:u)??[]}),U=r(()=>b.value.map(n=>{var _;return{y:((_=n.data)==null?void 0:_.value)??null,name:se(n.date,O.year)}})),Y=r(()=>ne(b.value,O.year)),x=A({id:`${T.slug}-dummyCartAbandonmentRateData`,count:4,style:"percent"}),P=r(()=>{var n,_;return(h.hasPermission("core")?(_=(n=g.value)==null?void 0:n.cartAbandonmentRate)==null?void 0:_.data:x)??[]}),G=r(()=>P.value.map(n=>{var _;return{y:((_=n.data)==null?void 0:_.value)??null,name:se(n.date,O.year)}})),W=r(()=>ne(P.value,O.year)),J=A({id:`${T.slug}-dummyConversionRateData`,count:4,style:"percent"}),Z=r(()=>{var n,_;return(h.hasPermission("core")?(_=(n=g.value)==null?void 0:n.conversionRate)==null?void 0:_.data:J)??[]}),de=r(()=>Z.value.map(n=>{var _;return{y:((_=n.data)==null?void 0:_.value)??null,name:se(n.date,O.year)}})),pe=r(()=>ne(Z.value,O.year)),j=r(()=>[...b.value,...P.value,...Z.value].filter(n=>!!(n!=null&&n.date)).map(n=>rt(n.date)).filter((n,_,X)=>X.indexOf(n)===_).sort((n,_)=>n-_)),ie=r(()=>[{name:""},...j.value.map(n=>({name:n.toString()}))]),ve=r(()=>[{name:"Add-to-cart rate (in %)",series:b.value.map(n=>({...n,data:he(n.data)}))??[]},{name:"Cart abandonment rate (in %)",series:P.value.map(n=>({...n,data:he(n.data)}))??[]},{name:"Conversion rate (in %)",series:Z.value.map(n=>({...n,data:he(n.data)}))??[]}].map(n=>it(n,j.value)));return(n,_)=>{const X=Ne,ee=pt,H=ct,q=Ut,B=ut,z=mt,te=Ke,le=Ae;return $(),Q(le,{small:"","full-separator":""},{rooftitle:m(()=>[E(" Conversion Funnel KPIs ")]),title:m(()=>[v(X,{"text-blocks":e(K)},null,8,["text-blocks"])]),default:m(()=>{var ce,Te,_e,ye,De,ge,be,fe,Re,t;return[(Te=(ce=e(g))==null?void 0:ce.descriptions)!=null&&Te.funnelDescription?($(),M("div",qt,[s("div",Qt,[s("p",Gt,p(e(g).descriptions.funnelDescription),1)])])):L("",!0),s("div",Wt,[s("div",Xt,[v(H,{title:`${e(lt)(e(K))} in ${e(l)}`,"sub-title":"in %","paywall-active":!e(h).hasPermission("core"),"paywall-request-type":("REQUEST_TYPE"in n?n.REQUEST_TYPE:e(I)).BENCHMARKS},{chart:m(()=>[v(ee,{series:e(D),"paywall-active":!e(h).hasPermission("core"),"number-format-options":{style:"percent"}},null,8,["series","paywall-active"])]),note:m(()=>[E(" Numbers may not add up due to roundings. ")]),source:m(()=>{var a,N;return[E(p((N=(a=e(g))==null?void 0:a.funnel)==null?void 0:N.source),1)]}),_:1},8,["title","paywall-active","paywall-request-type"])]),(ye=(_e=e(g))==null?void 0:_e.descriptions)!=null&&ye.funnelReadingAid?($(),M("div",jt,[v(q,{title:"Reading aid"},{default:m(()=>{var a,N;return[E(p((N=(a=e(g))==null?void 0:a.descriptions)==null?void 0:N.funnelReadingAid),1)]}),_:1})])):L("",!0)]),e(C)("addToCartRate")?($(),M("div",{key:1,id:e(c).addToCartRate.id},[s("div",Jt,[s("div",Zt,[s("h3",ea,"Add-to-cart rate development in the "+p(e(f))+" "+p(e(w))+" market",1),s("p",ta,p((ge=(De=e(g))==null?void 0:De.descriptions)==null?void 0:ge.addToCartRateDescription),1)])]),s("div",aa,[s("div",sa,[v(H,{title:`Add-to-cart rate development in the ${e(f)} ${e(w)} market`,"sub-title":"in %","paywall-active":!e(h).hasPermission("core"),"paywall-request-type":("REQUEST_TYPE"in n?n.REQUEST_TYPE:e(I)).BENCHMARKS},{chart:m(()=>[v(B,{series:e(U),"x-axis-categories":e(Y),"highlight-category":e(l).toString(),"paywall-active":!e(h).hasPermission("core"),"number-format-options":{style:"percent"}},null,8,["series","x-axis-categories","highlight-category","paywall-active"])]),source:m(()=>{var a,N;return[E(p((N=(a=e(g))==null?void 0:a.addToCartRate)==null?void 0:N.source),1)]}),_:1},8,["title","paywall-active","paywall-request-type"])])])],8,zt)):L("",!0),e(C)("cartAbandonmentRate")?($(),M("div",{key:2,id:e(c).cartAbandonmentRate.id},[s("div",oa,[s("div",ra,[s("h3",ia,"Cart abandonment rate development in the "+p(e(f))+" "+p(e(w))+" market",1),s("p",la,p((fe=(be=e(g))==null?void 0:be.descriptions)==null?void 0:fe.cartAbandonmentRateDescription),1)])]),s("div",ca,[s("div",ua,[v(H,{title:`Cart abandonment rate development in the ${e(f)} ${e(w)} market`,"sub-title":"in %","paywall-active":!e(h).hasPermission("core"),"paywall-request-type":("REQUEST_TYPE"in n?n.REQUEST_TYPE:e(I)).BENCHMARKS},{chart:m(()=>[v(B,{series:e(G),"x-axis-categories":e(W),"highlight-category":e(l).toString(),"paywall-active":!e(h).hasPermission("core"),"number-format-options":{style:"percent"}},null,8,["series","x-axis-categories","highlight-category","paywall-active"])]),source:m(()=>{var a,N;return[E(p((N=(a=e(g))==null?void 0:a.cartAbandonmentRate)==null?void 0:N.source),1)]}),_:1},8,["title","paywall-active","paywall-request-type"])])])],8,na)):L("",!0),e(C)("conversionRate")?($(),M("div",{key:3,id:e(c).conversionRate.id},[s("div",da,[s("div",pa,[s("h3",va,"Conversion rate development in the "+p(e(f))+" "+p(e(w))+" market",1),s("p",ha,p((t=(Re=e(g))==null?void 0:Re.descriptions)==null?void 0:t.conversionRateDescription),1)])]),s("div",_a,[s("div",ya,[v(H,{title:`Conversion rate development in the ${e(f)} ${e(w)} market`,"sub-title":"in %","paywall-active":!e(h).hasPermission("core"),"paywall-request-type":("REQUEST_TYPE"in n?n.REQUEST_TYPE:e(I)).BENCHMARKS},{chart:m(()=>[v(B,{series:e(de),"x-axis-categories":e(pe),"highlight-category":e(l).toString(),"paywall-active":!e(h).hasPermission("core"),"number-format-options":{style:"percent"}},null,8,["series","x-axis-categories","highlight-category","paywall-active"])]),source:m(()=>{var a,N;return[E(p((N=(a=e(g))==null?void 0:a.conversionRate)==null?void 0:N.source),1)]}),_:1},8,["title","paywall-active","paywall-request-type"])])]),e(ie).length?($(),M("div",ga,[s("div",ba,[s("h3",fa,"Overview of conversion funnel KPIs in the "+p(e(f))+" "+p(e(w))+" market",1),v(te,{active:!e(h).hasPermission("core"),"request-type":("REQUEST_TYPE"in n?n.REQUEST_TYPE:e(I)).BENCHMARKS,"paywall-offsets":{top:40}},{default:m(()=>[v(z,{columns:e(ie),rows:e(ve),"scrolled-right":""},null,8,["columns","rows"])]),_:1},8,["active","request-type"])])])):L("",!0)],8,ma)):L("",!0)]}),_:1})}}}),Sa={key:0,class:"columns mb-5"},Ca={class:"column is-full"},wa={class:"white-space-pre-line"},Aa={class:"columns mb-2"},Ta={class:"column is-full"},Da=["id"],ka={class:"columns mt-5 mb-5"},$a={class:"column is-full"},Ea={class:"title is-3"},Pa={class:"white-space-pre-line"},xa={class:"columns mb-2 is-multiline"},Ba={class:"column is-full"},Fa={class:"column is-full"},Ua=["id"],La={class:"columns mt-5 mb-5"},Na={class:"column is-full"},Oa={class:"title is-3"},Ka={class:"white-space-pre-line"},Ya={class:"columns mb-2 is-multiline"},Ia={class:"column is-full"},Ma={class:"column is-full"},Va=s("div",{class:"columns"},[s("div",{class:"column is-full"},[s("div",{class:"notification is-white has-highlight-mint-600"},[s("strong",null,"Note:"),s("br"),E(" Within the same year, it is possible that the discount rate increases but the discounted value per order decreases (or vice versa). This can be attributed to fluctuations in the average order value (AOV). If the average order value (AOV) decreases, the discounted value per order may also decrease, even if the discount rate increases, and vice versa. ")])])],-1),Ha=["id"],qa={class:"columns mt-5 mb-5"},Qa={class:"column is-full"},Ga={class:"title is-3"},Wa={class:"white-space-pre-line"},Xa={class:"columns mb-2 is-multiline"},ja={class:"column is-full"},za={class:"column is-full"},Ja=s("div",{class:"columns"},[s("div",{class:"column is-full"},[s("div",{class:"notification is-white has-highlight-mint-600"},[s("strong",null,"Note:"),s("br"),E(" Within the same year, it is possible that the return rate increases but the returned value per order decreases (or vice versa). This can be attributed to fluctuations in the average order value (AOV). If the average order value (AOV) decreases, the returned value per order may also decrease, even if the return rate increases, and vice versa. ")])])],-1),Za={key:0,class:"columns mt-5 mb-5"},es={class:"column is-full"},ts={class:"title is-3"},as=re({__name:"BenchmarkTransactional",props:{slug:{}},setup(V){var ge,be,fe,Re;const h=["Discounts","Returns","AOV net (after deductions)"],l=$e(),{createDummyWaterfallSeries:R,createDummySeries:S}=dt(),{baseYear:g}=Ue(),{isWorldWide:C,getCountry:c}=Ee(),{benchmark:i,isSectionVisible:A,subSections:T}=me(),{currency:o}=Le(),f=(t=!1)=>` AOV after the deduction of discounts and returns excluding ${t?"VAT":"sales tax"}. Data shown is using current exchange rates.`,w=V,K=r(()=>{var t;return(t=i.value)==null?void 0:t.region}),k=r(()=>!K.value||C(K.value.code)?"global":c(K.value.code).adjectival),d=r(()=>{var t,a;return((a=(t=i.value)==null?void 0:t.category)==null?void 0:a.name)||"eCommerce"}),D=r(()=>["Transactional KPIs in the ",{type:"strong",text:`${k.value} `},{type:"strong",text:`${d.value}`}," market"]),u=R({id:`${w.slug}-dummyTransactionalData`,count:6,style:"currency",currency:((ge=i.value)==null?void 0:ge.currency)??o.value}),b=r(()=>{var t,a;return l.hasPermission("core")?((a=(t=i.value)==null?void 0:t.transactional)==null?void 0:a.data)??[]:u}),U=r(()=>b.value.map(t=>{var a;return{name:t.description??"",y:((a=t.data)==null?void 0:a.value)??null,isSum:t.trend==="isSum",...h.includes(t.description??"")?{color:Oe.mint_600}:{}}})),Y=S({id:`${w.slug}-dummyAovDevelopmentData`,count:4,style:"currency",currency:((be=i.value)==null?void 0:be.currency)??o.value}),x=r(()=>{var t,a;return(l.hasPermission("core")?(a=(t=i.value)==null?void 0:t.aovDevelopment)==null?void 0:a.data:Y)??[]}),P=r(()=>x.value.map(t=>{var a;return{y:((a=t.data)==null?void 0:a.value)??null,name:se(t.date,O.year)}})),G=r(()=>ne(x.value,O.year)),W=S({id:`${w.slug}-dummyAovGrowthData`,count:4,style:"percent"}),J=r(()=>{var t,a;return(l.hasPermission("core")?(a=(t=i.value)==null?void 0:t.aovGrowth)==null?void 0:a.data:W)??[]}),Z=r(()=>[{data:J.value.map(t=>{var a;return{y:((a=t.data)==null?void 0:a.value)??null,name:se(t.date,O.year)}})}]),de=r(()=>ne(J.value,O.year)),pe=S({id:`${w.slug}-dummyDiscountRateDevelopmentData`,count:4,style:"percent"}),j=r(()=>{var t,a;return(l.hasPermission("core")?(a=(t=i.value)==null?void 0:t.discountRateDevelopment)==null?void 0:a.data:pe)??[]}),ie=r(()=>ne(j.value,O.year)),ve=r(()=>j.value.map(t=>{var a;return{y:((a=t.data)==null?void 0:a.value)??null,name:se(t.date,O.year)}})),n=S({id:`${w.slug}-dummyDiscountRateAverageData`,count:4,style:"currency",currency:((fe=i.value)==null?void 0:fe.currency)??o.value}),_=r(()=>{var t,a;return(l.hasPermission("core")?(a=(t=i.value)==null?void 0:t.discountRateAverage)==null?void 0:a.data:n)??[]}),X=r(()=>ne(_.value,O.year)),ee=r(()=>_.value.map(t=>{var a;return{y:((a=t.data)==null?void 0:a.value)??null,name:se(t.date,O.year)}})),H=S({id:`${w.slug}-dummyReturnRateDevelopmentData`,count:4,style:"percent"}),q=r(()=>{var t,a;return(l.hasPermission("core")?(a=(t=i.value)==null?void 0:t.returnRateDevelopment)==null?void 0:a.data:H)??[]}),B=r(()=>ne(q.value,O.year)),z=r(()=>q.value.map(t=>{var a;return{y:((a=t.data)==null?void 0:a.value)??null,name:se(t.date,O.year)}})),te=S({id:`${w.slug}-dummyReturnRateAverageData`,count:4,style:"currency",currency:((Re=i.value)==null?void 0:Re.currency)??o.value}),le=r(()=>{var t,a;return(l.hasPermission("core")?(a=(t=i.value)==null?void 0:t.returnRateAverage)==null?void 0:a.data:te)??[]}),ce=r(()=>ne(le.value,O.year)),Te=r(()=>le.value.map(t=>{var a;return{y:((a=t.data)==null?void 0:a.value)??null,name:se(t.date,O.year)}})),_e=r(()=>[...x.value,...j.value,...q.value].filter(t=>!!(t!=null&&t.date)).map(t=>rt(t.date)).filter((t,a,N)=>N.indexOf(t)===a).sort((t,a)=>t-a)),ye=r(()=>[{name:""},..._e.value.map(t=>({name:t.toString()}))]),De=r(()=>{var t;return[{name:`AOV net (after deductions, in ${Ce(((t=i.value)==null?void 0:t.currency)??o.value)})`,series:x.value.map(a=>({...a,data:he(a.data)}))},{name:"Discount rate (in %)",series:j.value.map(a=>({...a,data:he(a.data)}))},{name:"Return rate (in %)",series:q.value.map(a=>({...a,data:he(a.data)}))}].map(a=>it(a,_e.value))});return(t,a)=>{const N=Ne,vt=pt,ue=ct,Se=ut,ht=Lt,_t=mt,yt=Ke,gt=Ae;return $(),Q(gt,{small:"","full-separator":""},{rooftitle:m(()=>[E(" Transactional KPIs")]),title:m(()=>[v(N,{"text-blocks":e(D)},null,8,["text-blocks"])]),default:m(()=>{var Ye,Ie,Me,Ve,He,qe,Qe,Ge,We,Xe,je,ze;return[(Ie=(Ye=e(i))==null?void 0:Ye.descriptions)!=null&&Ie.transactionalDescription?($(),M("div",Sa,[s("div",Ca,[s("p",wa,p(e(i).descriptions.transactionalDescription),1)])])):L("",!0),s("div",Aa,[s("div",Ta,[v(ue,{title:`${e(lt)(e(D))} in ${e(g)}`,"sub-title":`in ${("formatCurrencySymbol"in t?t.formatCurrencySymbol:e(Ce))(((Me=e(i))==null?void 0:Me.currency)??e(o))}`,"paywall-active":!e(l).hasPermission("core"),"paywall-request-type":("REQUEST_TYPE"in t?t.REQUEST_TYPE:e(I)).BENCHMARKS},{chart:m(()=>{var y;return[v(vt,{series:e(U),"paywall-active":!e(l).hasPermission("core"),"number-format-options":(y=e(b)[0].data)==null?void 0:y.options},null,8,["series","paywall-active","number-format-options"])]}),note:m(()=>[E(" Numbers may not add up due to roundings. The KPIs highlighted in green are examined in more detail below.")]),source:m(()=>{var y,F;return[E(p((F=(y=e(i))==null?void 0:y.transactional)==null?void 0:F.source),1)]}),_:1},8,["title","sub-title","paywall-active","paywall-request-type"])])]),e(A)("aov")?($(),M("div",{key:1,id:e(T).aov.id},[s("div",ka,[s("div",$a,[s("h3",Ea,"Average order value (AOV) development in the "+p(e(k))+" "+p(e(d))+" market",1),s("p",Pa,p((He=(Ve=e(i))==null?void 0:Ve.descriptions)==null?void 0:He.aovDescription),1)])]),s("div",xa,[s("div",Ba,[v(ue,{title:`Average order value (AOV) development in the ${e(k)} ${e(d)} market`,"sub-title":`in ${("formatCurrencySymbol"in t?t.formatCurrencySymbol:e(Ce))(((qe=e(i))==null?void 0:qe.currency)??e(o))}`,"paywall-active":!e(l).hasPermission("core"),"paywall-request-type":("REQUEST_TYPE"in t?t.REQUEST_TYPE:e(I)).BENCHMARKS},{chart:m(()=>{var y;return[v(Se,{series:e(P),"x-axis-categories":e(G),"highlight-category":e(g).toString(),"paywall-active":!e(l).hasPermission("core"),"number-format-options":{style:"currency",currency:((y=e(i))==null?void 0:y.currency)??e(o),minimumFractionDigits:1,maximumFractionDigits:1}},null,8,["series","x-axis-categories","highlight-category","paywall-active","number-format-options"])]}),note:m(()=>{var y;return[E(p(f(((y=e(K))==null?void 0:y.code)!=="US")),1)]}),source:m(()=>{var y,F;return[E(p((F=(y=e(i))==null?void 0:y.aovDevelopment)==null?void 0:F.source),1)]}),_:1},8,["title","sub-title","paywall-active","paywall-request-type"])]),s("div",Fa,[v(ue,{title:`Average order value (AOV) growth in the ${e(k)} ${e(d)} market`,"sub-title":"in %","paywall-active":!e(l).hasPermission("core"),"paywall-request-type":("REQUEST_TYPE"in t?t.REQUEST_TYPE:e(I)).BENCHMARKS},{chart:m(()=>[v(ht,{categories:e(de),series:e(Z),"paywall-active":!e(l).hasPermission("core"),"number-format-options":{style:"percent"},"x-axis-line":!1,"x-axis-zero-line":!0},null,8,["categories","series","paywall-active"])]),note:m(()=>{var y;return[E(p(f(((y=e(K))==null?void 0:y.code)!=="US")),1)]}),source:m(()=>{var y,F;return[E(p((F=(y=e(i))==null?void 0:y.aovGrowth)==null?void 0:F.source),1)]}),_:1},8,["title","paywall-active","paywall-request-type"])])])],8,Da)):L("",!0),e(A)("discountRate")?($(),M("div",{key:2,id:e(T).discountRate.id},[s("div",La,[s("div",Na,[s("h3",Oa,"Discount rate development in the "+p(e(k))+" "+p(e(d))+" market",1),s("p",Ka,p((Ge=(Qe=e(i))==null?void 0:Qe.descriptions)==null?void 0:Ge.discountRateDescription),1)])]),s("div",Ya,[s("div",Ia,[v(ue,{title:`Discount rate development in the ${e(k)} ${e(d)} market`,"sub-title":"in %","paywall-active":!e(l).hasPermission("core"),"paywall-request-type":("REQUEST_TYPE"in t?t.REQUEST_TYPE:e(I)).BENCHMARKS},{chart:m(()=>[v(Se,{series:e(ve),"x-axis-categories":e(ie),"highlight-category":e(g).toString(),"paywall-active":!e(l).hasPermission("core"),"number-format-options":{style:"percent",minimumFractionDigits:1,maximumFractionDigits:1}},null,8,["series","x-axis-categories","highlight-category","paywall-active"])]),source:m(()=>{var y,F;return[E(p((F=(y=e(i))==null?void 0:y.discountRateDevelopment)==null?void 0:F.source),1)]}),_:1},8,["title","paywall-active","paywall-request-type"])]),s("div",Ma,[v(ue,{title:`Average discounted value per order in the ${e(k)} ${e(d)} market`,"sub-title":`in ${("formatCurrencySymbol"in t?t.formatCurrencySymbol:e(Ce))(((We=e(i))==null?void 0:We.currency)??e(o))}`,"paywall-active":!e(l).hasPermission("core"),"paywall-request-type":("REQUEST_TYPE"in t?t.REQUEST_TYPE:e(I)).BENCHMARKS},{chart:m(()=>{var y;return[v(Se,{series:e(ee),"x-axis-categories":e(X),"highlight-category":e(g).toString(),"paywall-active":!e(l).hasPermission("core"),"number-format-options":{style:"currency",currency:((y=e(i))==null?void 0:y.currency)??e(o),minimumFractionDigits:1,maximumFractionDigits:1}},null,8,["series","x-axis-categories","highlight-category","paywall-active","number-format-options"])]}),source:m(()=>{var y,F;return[E(p((F=(y=e(i))==null?void 0:y.discountRateAverage)==null?void 0:F.source),1)]}),_:1},8,["title","sub-title","paywall-active","paywall-request-type"])])]),Va],8,Ua)):L("",!0),e(A)("returnRate")?($(),M("div",{key:3,id:e(T).returnRate.id},[s("div",qa,[s("div",Qa,[s("h3",Ga,"Return rate development in the "+p(e(k))+" "+p(e(d))+" market",1),s("p",Wa,p((je=(Xe=e(i))==null?void 0:Xe.descriptions)==null?void 0:je.returnRateDescription),1)])]),s("div",Xa,[s("div",ja,[v(ue,{title:`Return rate development in the ${e(k)} ${e(d)} market`,"sub-title":"in %","paywall-active":!e(l).hasPermission("core"),"paywall-request-type":("REQUEST_TYPE"in t?t.REQUEST_TYPE:e(I)).BENCHMARKS},{chart:m(()=>[v(Se,{series:e(z),"x-axis-categories":e(B),"highlight-category":e(g).toString(),"paywall-active":!e(l).hasPermission("core"),"number-format-options":{style:"percent",minimumFractionDigits:1,maximumFractionDigits:1}},null,8,["series","x-axis-categories","highlight-category","paywall-active"])]),source:m(()=>{var y,F;return[E(p((F=(y=e(i))==null?void 0:y.returnRateDevelopment)==null?void 0:F.source),1)]}),_:1},8,["title","paywall-active","paywall-request-type"])]),s("div",za,[v(ue,{title:`Average returned value per order in the ${e(k)} ${e(d)} market`,"sub-title":`in ${("formatCurrencySymbol"in t?t.formatCurrencySymbol:e(Ce))(((ze=e(i))==null?void 0:ze.currency)??e(o))}`,"paywall-active":!e(l).hasPermission("core"),"paywall-request-type":("REQUEST_TYPE"in t?t.REQUEST_TYPE:e(I)).BENCHMARKS},{chart:m(()=>{var y;return[v(Se,{series:e(Te),"x-axis-categories":e(ce),"highlight-category":e(g).toString(),"paywall-active":!e(l).hasPermission("core"),"number-format-options":{style:"currency",currency:((y=e(i))==null?void 0:y.currency)??e(o),minimumFractionDigits:1,maximumFractionDigits:1}},null,8,["series","x-axis-categories","highlight-category","paywall-active","number-format-options"])]}),source:m(()=>{var y,F;return[E(p((F=(y=e(i))==null?void 0:y.returnRateAverage)==null?void 0:F.source),1)]}),_:1},8,["title","sub-title","paywall-active","paywall-request-type"])])]),Ja,e(ye).length?($(),M("div",Za,[s("div",es,[s("h3",ts,"Overview of transactional KPIs for the "+p(e(k))+" "+p(e(d))+" market",1),v(yt,{active:!e(l).hasPermission("core"),"request-type":("REQUEST_TYPE"in t?t.REQUEST_TYPE:e(I)).BENCHMARKS,"paywall-offsets":{top:40}},{default:m(()=>[v(_t,{columns:e(ye),rows:e(De),"scrolled-right":""},null,8,["columns","rows"])]),_:1},8,["active","request-type"])])])):L("",!0)],8,Ha)):L("",!0)]}),_:1})}}}),ss={key:0,class:"columns mb-5"},ns={class:"column is-full"},os={class:"white-space-pre-line"},rs=re({__name:"BenchmarkMarketComparison",setup(V){const{benchmark:h}=me(),{isWorldWide:l,getCountry:R}=Ee(),S=r(()=>{var C;return(C=h.value)==null?void 0:C.region}),g=r(()=>{var i,A;const C=!S.value||l(S.value.code)?"global":R(S.value.code).adjectival,c=((A=(i=h.value)==null?void 0:i.category)==null?void 0:A.name)||"eCommerce";return[{type:"text",text:"Market Comparison in the "},{type:"strong",text:`${C} `},{type:"strong",text:`${c}`},{type:"text",text:" market"}]});return(C,c)=>{const i=Ne,A=Ae;return $(),Q(A,{small:"","full-separator":""},{rooftitle:m(()=>[E(" Market Comparison ")]),title:m(()=>[v(i,{"text-blocks":e(g)},null,8,["text-blocks"])]),default:m(()=>{var T,o;return[(o=(T=e(h))==null?void 0:T.descriptions)!=null&&o.marketComparisonDescription?($(),M("div",ss,[s("div",ns,[s("p",os,p(e(h).descriptions.marketComparisonDescription),1)])])):L("",!0)]}),_:1})}}}),is={class:"benchmarkKpiOverview"},ke="value",xe="parent",ls=re({__name:"BenchmarkKpiOverview",setup(V){const h=$e(),l=Fe(),R=Kt(),{currency:S}=Le(),{benchmark:g,isSectionVisible:C,sections:c,subSections:i}=me(),{addMessage:A}=Yt(),T=Be(!1),o=r(()=>Object.entries(c).reduce((u,[b,U])=>{if(C(b)){const Y=Object.entries(i).filter(([x,P])=>P.parent===b&&C(x)).map(([x,P])=>({[ke]:x,[xe]:b,id:P.id,label:P.label}));u.push({[ke]:b,[xe]:null,id:U.id,label:U.label,children:Y})}return u},[])),f=r(()=>st(o.value).map(u=>u.id)),w=Et({ids:f.value,ignoreBottomIntersections:Object.values(c).map(u=>u.id)}),K=r(()=>{const u=st(o.value).find(b=>b.id===w.activeId.value);return(u==null?void 0:u[ke])??""}),k=u=>{var b;return((b={...c,...i}[u])==null?void 0:b.id)??""},d=u=>{w.scrollToId(k(u))};function D(){const u=oe(l.params.isoCode).toUpperCase(),b=oe(l.params.slug);T.value=!0,R.downloadGet(`${we.API.BENCHMARKS.GET_FILE({},{region:u,category:b,currency:S.value??"USD"})}`).catch(()=>{A({message:"Download failed.",severity:"danger"})}).finally(()=>{T.value=!1})}return(u,b)=>{var G,W;const U=nt,Y=Nt,x=Ke,P=Ot;return $(),M("div",is,[(W=(G=e(g))==null?void 0:G.category)!=null&&W.slug?($(),Q(x,{key:0,class:"is-hidden-mobile mb-7 market-category-overview__download",active:!e(h).hasPermission("core"),"request-type":("REQUEST_TYPE"in u?u.REQUEST_TYPE:e(I)).BENCHMARKS,"button-position":"leftTop","button-label":"Download XLS"},{default:m(()=>[v(Y,{variant:"tertiary",disabled:e(T)||!e(h).hasPermission("dl_xls"),onClick:D},{default:m(()=>[e(T)?($(),Q(U,{key:0,scale:.3})):L("",!0),E(" Download XLS ")]),_:1},8,["disabled"])]),_:1},8,["active","request-type"])):L("",!0),v(P,{tree:{label:"Select KPI",children:e(o)},"on-click":d,uncollapsible:"","initial-expanded-level":-1,"active-values":e(K),"key-id":ke,"key-parent-id":xe},null,8,["tree","active-values"])])}}}),cs={class:"is-relative has-text-default"},us={class:"section"},ms={class:"container is-max-widescreen pt-4"},ds={class:"columns"},ps={class:"column is-two-thirds"},vs={class:"column is-one-third"},dn=re({__name:"index",async setup(V){let h,l;const R=Fe(),{getAbsoluteUrl:S,JSONLD:g,isPageLoading:C}=Ue(),{benchmark:c,fetchBenchmarkDetails:i,isSectionVisible:A,sections:T}=me(),o=oe(R.params.slug),{pending:f,status:w,error:K}=([h,l]=ot(()=>i(oe(R.params.isoCode),o)),h=await h,l(),h);At(K.value);const k=r(()=>{var D,u,b,U;return{title:((D=c.value)==null?void 0:D.pageTitle)??"",description:((u=c.value)==null?void 0:u.pageDescription)??"",schemaName:((b=c.value)==null?void 0:b.schemaName)??"",ogDescription:((U=c.value)==null?void 0:U.ogDescription)??""}}),d=r(()=>Object.entries(T).reduce((D,[u,b])=>(A(u)&&D.push(b),D),[]));return Tt({title:()=>k.value.title,description:()=>k.value.description,ogTitle:()=>`${k.value.title} | ECDB.com`,ogDescription:()=>k.value.ogDescription}),Dt(()=>{var D,u;return w.value==="success"?{"@context":"https://schema.org","@type":"Dataset",name:k.value.schemaName,url:S(R),description:k.value.description,spatialCoverage:(u=(D=c.value)==null?void 0:D.region)==null?void 0:u.name,isAccessibleForFree:!1,hasPart:[{"@type":"WebPageElement",isAccessibleForFree:!1,cssSelector:".paywall"}],creator:g.value.creator}:null}),(D,u)=>{const b=nt,U=Vt,Y=Ht,x=Pt,P=Ra,G=as,W=rs,J=ls;return $(),M("div",cs,[e(f)||e(C)?($(),Q(b,{key:0})):L("",!0),v(U,{class:"mb-1 pb-4 pt-4"}),v(Y,{class:"mt-0 pt-4"}),v(x,{items:e(d)},null,8,["items"]),s("section",us,[s("div",ms,[s("div",ds,[s("div",ps,[e(A)("conversionFunnel")?($(),Q(P,{key:0,id:e(T).conversionFunnel.id,slug:e(o)},null,8,["id","slug"])):L("",!0),e(A)("transactional")?($(),Q(G,{key:1,id:e(T).transactional.id,slug:e(o)},null,8,["id","slug"])):L("",!0),e(A)("marketComparison")?($(),Q(W,{key:2,id:e(T).marketComparison.id},null,8,["id"])):L("",!0)]),s("div",vs,[v(J,{style:{"--pagesection-rooftitle-height":"26px"},class:"mb-2"})])])])])])}}});export{dn as default};