import{K as e,_ as s,R as a,am as t,u as n,aQ as i}from"./vendor-element-plus.js?ver=3.1.0";import{_ as o,I as l}from"./fc-bits-ui.js?ver=3.1.0";import{r as c,c as r,L as p,o as m,d,a as f,w as u,b as _,O as v,P as k}from"./vendor.js?ver=3.1.0";const y={key:0,class:"fcrm_block_stats"},z={class:"icon"},j={class:"icon"},w={class:"icon"},O=["innerHTML"],b={class:"icon"},g={class:"icon"};const I=o({name:"reportWidget",components:{Icons:l,User:n,Bottom:t,Money:a,FolderOpened:s,Position:e},props:["stat"]},[["render",function(e,s,a,t,n,o){const l=c("Icons"),I=i;return a.stat?(m(),r("div",y,[d(I,{size:"small",effect:"plain"},{default:u(()=>[_("span",z,[d(l,{"icon-name":"user"})]),v(" "+k(a.stat.count),1)],void 0),_:1}),d(I,{size:"small",effect:"plain"},{default:u(()=>[v(k(a.stat.percent)+"% ",1)],void 0),_:1}),a.stat.drop_percent?(m(),f(I,{key:0,size:"small",type:"danger",effect:"plain"},{default:u(()=>[_("span",j,[d(l,{"icon-name":"arrow-long-down"})]),v(" "+k(a.stat.drop_percent)+"% ",1)],void 0),_:1})):p("",!0),a.stat.revenues?(m(),f(I,{key:1,size:"small",effect:"plain"},{default:u(()=>[_("span",w,[d(l,{"icon-name":"wallet"})]),_("span",{innerHTML:a.stat.revenues.join(" | ")},null,8,O)],void 0),_:1})):p("",!0),a.stat.email_opens?(m(),f(I,{key:2,title:e.$t("Email Open (estimated)"),size:"small",effect:"plain"},{default:u(()=>[_("span",b,[d(l,{"icon-name":"envelopeOpen"})]),v(" "+k(a.stat.email_opens),1)],void 0),_:1},8,["title"])):p("",!0),a.stat.link_clicks?(m(),f(I,{key:3,title:e.$t("Clicks Count"),size:"small",effect:"plain"},{default:u(()=>[_("span",g,[d(l,{"icon-name":"click"})]),v(" "+k(a.stat.link_clicks),1)],void 0),_:1},8,["title"])):p("",!0)])):p("",!0)}]]);export{I as R};
