import x from"./number-info-D_kSTq0O.js";import{R as h,L as b}from"./index-sUMRYBhU.js";import{f as u,o as v,a2 as p,a3 as c,a9 as S,aa as e,k as a,u as k,H as C,F as D,aj as F,G as T,ad as w,a4 as B}from"./vue-Dl1fzmsf.js";import{_ as N}from"./index-C-JhWVfG.js";import{a9 as R,aa as $,K as E,T as K,ab as L}from"./antd-vtmm7CAy.js";import"./vec2-4Cx-bOHg.js";const V={__name:"custom-ring-progress",props:{percent:{type:Number,default:0}},setup(o){const t=o,n=u();return v(()=>{new h(n.value,{height:60,width:60,autoFit:!0,percent:t.percent,innerRadius:.7,color:["#fab120","#E8EDF3"],statistic:{content:!1}}).render()}),(s,d)=>(p(),c("div",{ref_key:"container",ref:n},null,512))}},A={__name:"custom-line",props:{offlineChartData:{type:Array}},setup(o){const t=o,n=u();return v(()=>{new b(n.value,{data:t.offlineChartData,padding:"auto",xField:"date",yField:"value",xAxis:{tickCount:5},seriesField:"type",legend:{position:"top"},slider:{start:.1,end:.5}}).render()}),(s,d)=>(p(),c("div",{ref_key:"container",ref:n},null,512))}},I={style:{padding:"0 24px"}},j={__name:"offline-data",props:{loading:{type:Boolean,default:!1}},setup(o){const t=u();function n(){}const s=[{name:"Stores 0",cvr:.9},{name:"Stores 1",cvr:.9},{name:"Stores 2",cvr:.2},{name:"Stores 3",cvr:.1},{name:"Stores 4",cvr:.1},{name:"Stores 5",cvr:.2},{name:"Stores 6",cvr:.3},{name:"Stores 7",cvr:.7},{name:"Stores 8",cvr:.9},{name:"Stores 9",cvr:.6}],d=[{date:"03:26",type:"客流量",value:36},{date:"03:26",type:"支付笔数",value:53},{date:"03:56",type:"客流量",value:98},{date:"03:56",type:"支付笔数",value:31},{date:"04:26",type:"客流量",value:62},{date:"04:26",type:"支付笔数",value:109},{date:"04:56",type:"客流量",value:76},{date:"04:56",type:"支付笔数",value:11},{date:"05:26",type:"客流量",value:39},{date:"05:26",type:"支付笔数",value:56},{date:"05:56",type:"客流量",value:52},{date:"05:56",type:"支付笔数",value:98},{date:"06:26",type:"客流量",value:29},{date:"06:26",type:"支付笔数",value:101},{date:"06:56",type:"客流量",value:10},{date:"06:56",type:"支付笔数",value:13},{date:"07:26",type:"客流量",value:29},{date:"07:26",type:"支付笔数",value:62},{date:"07:56",type:"客流量",value:70},{date:"07:56",type:"支付笔数",value:20},{date:"08:26",type:"客流量",value:21},{date:"08:26",type:"支付笔数",value:41},{date:"08:56",type:"客流量",value:86},{date:"08:56",type:"支付笔数",value:104},{date:"09:26",type:"客流量",value:91},{date:"09:26",type:"支付笔数",value:76},{date:"09:56",type:"客流量",value:31},{date:"09:56",type:"支付笔数",value:72},{date:"10:26",type:"客流量",value:14},{date:"10:26",type:"支付笔数",value:37},{date:"10:56",type:"客流量",value:45},{date:"10:56",type:"支付笔数",value:106},{date:"11:26",type:"客流量",value:31},{date:"11:26",type:"支付笔数",value:69},{date:"11:56",type:"客流量",value:99},{date:"11:56",type:"支付笔数",value:103},{date:"12:26",type:"客流量",value:49},{date:"12:26",type:"支付笔数",value:33},{date:"12:56",type:"客流量",value:86},{date:"12:56",type:"支付笔数",value:23}];return(G,l)=>{const i=R,y=$,_=E,f=K,m=L;return p(),S(m,{loading:o.loading,class:"offlineCard",bordered:!1,style:{marginTop:"32px"}},{default:e(()=>[a(f,{"active-key":k(t),"onUpdate:activeKey":l[0]||(l[0]=r=>C(t)?t.value=r:null),onChange:n},{default:e(()=>[(p(),c(D,null,F(s,(r,g)=>a(_,{key:g},{tab:e(()=>[a(y,{gutter:8,style:{width:"138px",margin:"8px 0"}},{default:e(()=>[a(i,{span:12},{default:e(()=>[a(x,{title:r.name,gap:2,total:`${r.cvr*100}%`},{subTitle:e(()=>l[1]||(l[1]=[T(w("转化率"))])),_:2},1032,["title","total"])]),_:2},1024),a(i,{span:12,style:{paddingTop:"36px"}},{default:e(()=>[a(V,{percent:r.cvr},null,8,["percent"])]),_:2},1024)]),_:2},1024)]),default:e(()=>[B("div",I,[a(A,{"offline-chart-data":d})])]),_:2},1024)),64))]),_:1},8,["active-key"])]),_:1},8,["loading"])}}},z=N(j,[["__scopeId","data-v-a72f50ea"]]);export{z as default};
