-
Notifications
You must be signed in to change notification settings - Fork 1
/
p__dashboard__analysis.ec101253.async.js
executable file
·1 lines (1 loc) · 21 KB
/
p__dashboard__analysis.ec101253.async.js
1
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5805],{64335:function(g,D,t){"use strict";var p=t(67294),m=(0,p.createContext)({});D.Z=m},21349:function(g,D,t){"use strict";var p=t(84305),m=t(69224),b=t(17781),o=t.n(b),d=t(67294),I=t(94184),j=t.n(I),S=t(64335),F=function(T){var L=(0,d.useContext)(S.Z),y=T.children,G=T.contentWidth,N=T.className,B=T.style,E=(0,d.useContext)(m.ZP.ConfigContext),M=E.getPrefixCls,Z=T.prefixCls||M("pro"),J=G||L.contentWidth,A="".concat(Z,"-grid-content");return d.createElement("div",{className:j()(A,N,{wide:J==="Fixed"}),style:B},d.createElement("div",{className:"".concat(Z,"-grid-content-children")},y))};D.Z=F},64069:function(g){g.exports={chartCard:"chartCard___3TM4T",chartTop:"chartTop___3iur-",chartTopMargin:"chartTopMargin___24rCR",chartTopHasMargin:"chartTopHasMargin___3AQNY",metaWrap:"metaWrap___3Nuv1",avatar:"avatar___FoC4K",meta:"meta___1_3lt",action:"action___3uuUN",total:"total___D6PP7",content:"content___yyFJS",contentFixed:"contentFixed___3tZUw",footer:"footer___2Huhb",footerMargin:"footerMargin___38Y2F"}},32513:function(g){g.exports={field:"field___2ZfpN",label:"label___1hOvq",number:"number___2qklC"}},39165:function(g){g.exports={numberInfo:"numberInfo___UaaEB",suffix:"suffix____RiYG",numberInfoTitle:"numberInfoTitle___1p55z",numberInfoSubTitle:"numberInfoSubTitle___3E3Dh",numberInfoValue:"numberInfoValue___87JVx",subTotal:"subTotal___sq0f-",anticon:"anticon___1FWew",numberInfolight:"numberInfolight___YO5rJ"}},51220:function(g){g.exports={trendItem:"trendItem___2dudO",up:"up___1wFiw",down:"down___2tA2-",trendItemGrey:"trendItemGrey___1ksIM",reverseColor:"reverseColor___1BPCV"}},90666:function(g){g.exports={iconGroup:"iconGroup___3RiPi",anticon:"anticon___3NFul",rankingList:"rankingList___2GuWM",rankingItemNumber:"rankingItemNumber___31ZrU",active:"active___3Bsi9",rankingItemTitle:"rankingItemTitle___2Yoy1",salesExtra:"salesExtra___3lIXj",currentDate:"currentDate___7lDDb",salesCard:"salesCard___1Iqf3",salesBar:"salesBar___3JP41",salesRank:"salesRank____67l0",salesCardExtra:"salesCardExtra___1yLFX",salesTypeRadio:"salesTypeRadio___2LyMm",offlineCard:"offlineCard___Oqn6V",trendText:"trendText___3J91q",rankingTitle:"rankingTitle___28H5N",salesExtraWrap:"salesExtraWrap___1k1PZ"}},17781:function(){},569:function(g,D,t){"use strict";t.r(D),t.d(D,{default:function(){return lt}});for(var p=t(13062),m=t(71230),b=t(89032),o=t(15746),d=t(59250),I=t(13013),j=t(30887),S=t(99210),F=t(2824),x=t(67294),T=t(44545),L=t(21349),y=t(11849),G=t(22385),N=t(69713),B=t(68628),E=t(26766),M=t(92077),Z=t.n(M),J=t(58024),A=t(39144),Q=t(93224),z=t(32059),ce=t(69610),ve=t(54941),he=t(81306),fe=t(59206),Ee=t(94184),X=t.n(Ee),De=t(64069),P=t.n(De),e=t(85893),Ze=function(a){if(!a&&a!==0)return null;var n;switch(typeof a){case"undefined":n=null;break;case"function":n=(0,e.jsx)("div",{className:P().total,children:a()});break;default:n=(0,e.jsx)("div",{className:P().total,children:a})}return n},Ne=function(v){(0,he.Z)(n,v);var a=(0,fe.Z)(n);function n(){var r;(0,ce.Z)(this,n);for(var s=arguments.length,f=new Array(s),u=0;u<s;u++)f[u]=arguments[u];return r=a.call.apply(a,[this].concat(f)),r.renderContent=function(){var l=r.props,h=l.contentHeight,C=l.title,W=l.avatar,O=l.action,$=l.total,k=l.footer,R=l.children,i=l.loading;return i?!1:(0,e.jsxs)("div",{className:P().chartCard,children:[(0,e.jsxs)("div",{className:X()(P().chartTop,(0,z.Z)({},P().chartTopMargin,!R&&!k)),children:[(0,e.jsx)("div",{className:P().avatar,children:W}),(0,e.jsxs)("div",{className:P().metaWrap,children:[(0,e.jsxs)("div",{className:P().meta,children:[(0,e.jsx)("span",{className:P().title,children:C}),(0,e.jsx)("span",{className:P().action,children:O})]}),Ze($)]})]}),R&&(0,e.jsx)("div",{className:P().content,style:{height:h||"auto"},children:(0,e.jsx)("div",{className:h&&P().contentFixed,children:R})}),k&&(0,e.jsx)("div",{className:X()(P().footer,(0,z.Z)({},P().footerMargin,!R)),children:k})]})},r}return(0,ve.Z)(n,[{key:"render",value:function(){var s=this.props,f=s.loading,u=f===void 0?!1:f,l=s.contentHeight,h=s.title,C=s.avatar,W=s.action,O=s.total,$=s.footer,k=s.children,R=(0,Q.Z)(s,["loading","contentHeight","title","avatar","action","total","footer","children"]);return(0,e.jsx)(A.Z,(0,y.Z)((0,y.Z)({loading:u,bodyStyle:{padding:"20px 24px 8px 24px"}},R),{},{children:this.renderContent()}))}}]),n}(x.Component),V=Ne,be=t(32513),ne=t.n(be),Fe=function(a){var n=a.label,r=a.value,s=(0,Q.Z)(a,["label","value"]);return(0,e.jsxs)("div",(0,y.Z)((0,y.Z)({className:ne().field},s),{},{children:[(0,e.jsx)("span",{className:ne().label,children:n}),(0,e.jsx)("span",{className:ne().number,children:r})]}))},w=Fe,xe=function(a){return"\xA5 ".concat(Z()(a).format("0,0"))},ft={yuan:xe,ChartCard:V,Field:w},me=t(28612),ge=t(19675),Pe=t(51220),_=t.n(Pe),Ie=function(a){var n,r=a.colorful,s=r===void 0?!0:r,f=a.reverseColor,u=f===void 0?!1:f,l=a.flag,h=a.children,C=a.className,W=(0,Q.Z)(a,["colorful","reverseColor","flag","children","className"]),O=X()(_().trendItem,(n={},(0,z.Z)(n,_().trendItemGrey,!s),(0,z.Z)(n,_().reverseColor,u&&s),n),C);return(0,e.jsxs)("div",(0,y.Z)((0,y.Z)({},W),{},{className:O,title:typeof h=="string"?h:"",children:[(0,e.jsx)("span",{children:h}),l&&(0,e.jsx)("span",{className:_()[l],children:l==="up"?(0,e.jsx)(me.Z,{}):(0,e.jsx)(ge.Z,{})})]}))},Y=Ie,Se=function(v){(0,he.Z)(n,v);var a=(0,fe.Z)(n);function n(){var r;(0,ce.Z)(this,n);for(var s=arguments.length,f=new Array(s),u=0;u<s;u++)f[u]=arguments[u];return r=a.call.apply(a,[this].concat(f)),r.main=null,r.renderToHtml=function(){var l=r.props.children;r.main&&(r.main.innerHTML=xe(l))},r}return(0,ve.Z)(n,[{key:"componentDidMount",value:function(){this.renderToHtml()}},{key:"componentDidUpdate",value:function(){this.renderToHtml()}},{key:"render",value:function(){var s=this;return(0,e.jsx)("span",{ref:function(u){s.main=u}})}}]),n}(x.Component),Be=t(90666),c=t.n(Be),q={xs:24,sm:12,md:12,lg:12,xl:6,style:{marginBottom:24}},Re=function(a){var n=a.loading,r=a.visitData;return(0,e.jsxs)(m.Z,{gutter:24,children:[(0,e.jsx)(o.Z,(0,y.Z)((0,y.Z)({},q),{},{children:(0,e.jsxs)(V,{bordered:!1,title:"\u603B\u9500\u552E\u989D",action:(0,e.jsx)(N.Z,{title:"\u6307\u6807\u8BF4\u660E",children:(0,e.jsx)(B.Z,{})}),loading:n,total:function(){return(0,e.jsx)(Se,{children:"126560"})},footer:(0,e.jsx)(w,{label:"\u65E5\u9500\u552E\u989D",value:"\uFFE5".concat(Z()(12423).format("0,0"))}),contentHeight:46,children:[(0,e.jsxs)(Y,{flag:"up",style:{marginRight:16},children:["\u5468\u540C\u6BD4",(0,e.jsx)("span",{className:c().trendText,children:"12%"})]}),(0,e.jsxs)(Y,{flag:"down",children:["\u65E5\u540C\u6BD4",(0,e.jsx)("span",{className:c().trendText,children:"11%"})]})]})})),(0,e.jsx)(o.Z,(0,y.Z)((0,y.Z)({},q),{},{children:(0,e.jsx)(V,{bordered:!1,loading:n,title:"\u8BBF\u95EE\u91CF",action:(0,e.jsx)(N.Z,{title:"\u6307\u6807\u8BF4\u660E",children:(0,e.jsx)(B.Z,{})}),total:Z()(8846).format("0,0"),footer:(0,e.jsx)(w,{label:"\u65E5\u8BBF\u95EE\u91CF",value:Z()(1234).format("0,0")}),contentHeight:46,children:(0,e.jsx)(E.m,{color:"#975FE4",xField:"x",height:46,forceFit:!0,yField:"y",smooth:!0,data:r})})})),(0,e.jsx)(o.Z,(0,y.Z)((0,y.Z)({},q),{},{children:(0,e.jsx)(V,{bordered:!1,loading:n,title:"\u652F\u4ED8\u7B14\u6570",action:(0,e.jsx)(N.Z,{title:"\u6307\u6807\u8BF4\u660E",children:(0,e.jsx)(B.Z,{})}),total:Z()(6560).format("0,0"),footer:(0,e.jsx)(w,{label:"\u8F6C\u5316\u7387",value:"60%"}),contentHeight:46,children:(0,e.jsx)(E.cQ,{xField:"x",height:46,forceFit:!0,yField:"y",data:r})})})),(0,e.jsx)(o.Z,(0,y.Z)((0,y.Z)({},q),{},{children:(0,e.jsx)(V,{loading:n,bordered:!1,title:"\u8FD0\u8425\u6D3B\u52A8\u6548\u679C",action:(0,e.jsx)(N.Z,{title:"\u6307\u6807\u8BF4\u660E",children:(0,e.jsx)(B.Z,{})}),total:"78%",footer:(0,e.jsxs)("div",{style:{whiteSpace:"nowrap",overflow:"hidden"},children:[(0,e.jsxs)(Y,{flag:"up",style:{marginRight:16},children:["\u5468\u540C\u6BD4",(0,e.jsx)("span",{className:c().trendText,children:"12%"})]}),(0,e.jsxs)(Y,{flag:"down",children:["\u65E5\u540C\u6BD4",(0,e.jsx)("span",{className:c().trendText,children:"11%"})]})]}),contentHeight:46,children:(0,e.jsx)(E.Ex,{height:46,percent:.78,color:"#13C2C2",forceFit:!0,size:8,marker:[{value:.8,style:{stroke:"#13C2C2"}}]})})}))]})},Oe=Re,xt=t(18106),ee=t(45934),mt=t(14965),Me=t(14072),Ae=Me.Z.RangePicker,ye=ee.Z.TabPane,re=[],se=0;se<7;se+=1)re.push({title:"\u5DE5\u4E13\u8DEF ".concat(se," \u53F7\u5E97"),total:323234});var Ke=function(a){var n=a.rangePickerValue,r=a.salesData,s=a.isActive,f=a.handleRangePickerChange,u=a.loading,l=a.selectDate;return(0,e.jsx)(A.Z,{loading:u,bordered:!1,bodyStyle:{padding:0},children:(0,e.jsx)("div",{className:c().salesCard,children:(0,e.jsxs)(ee.Z,{tabBarExtraContent:(0,e.jsxs)("div",{className:c().salesExtraWrap,children:[(0,e.jsxs)("div",{className:c().salesExtra,children:[(0,e.jsx)("a",{className:s("today"),onClick:function(){return l("today")},children:"\u4ECA\u65E5"}),(0,e.jsx)("a",{className:s("week"),onClick:function(){return l("week")},children:"\u672C\u5468"}),(0,e.jsx)("a",{className:s("month"),onClick:function(){return l("month")},children:"\u672C\u6708"}),(0,e.jsx)("a",{className:s("year"),onClick:function(){return l("year")},children:"\u672C\u5E74"})]}),(0,e.jsx)(Ae,{value:n,onChange:f,style:{width:256}})]}),size:"large",tabBarStyle:{marginBottom:24},children:[(0,e.jsx)(ye,{tab:"\u9500\u552E\u989D",children:(0,e.jsxs)(m.Z,{children:[(0,e.jsx)(o.Z,{xl:16,lg:12,md:12,sm:24,xs:24,children:(0,e.jsx)("div",{className:c().salesBar,children:(0,e.jsx)(E.sg,{height:300,forceFit:!0,data:r,xField:"x",yField:"y",xAxis:{visible:!0,title:{visible:!1}},yAxis:{visible:!0,title:{visible:!1}},title:{visible:!0,text:"\u9500\u552E\u8D8B\u52BF",style:{fontSize:14}},meta:{y:{alias:"\u9500\u552E\u91CF"}}})})}),(0,e.jsx)(o.Z,{xl:8,lg:12,md:12,sm:24,xs:24,children:(0,e.jsxs)("div",{className:c().salesRank,children:[(0,e.jsx)("h4",{className:c().rankingTitle,children:"\u95E8\u5E97\u9500\u552E\u989D\u6392\u540D"}),(0,e.jsx)("ul",{className:c().rankingList,children:re.map(function(h,C){return(0,e.jsxs)("li",{children:[(0,e.jsx)("span",{className:"".concat(c().rankingItemNumber," ").concat(C<3?c().active:""),children:C+1}),(0,e.jsx)("span",{className:c().rankingItemTitle,title:h.title,children:h.title}),(0,e.jsx)("span",{className:c().rankingItemValue,children:Z()(h.total).format("0,0")})]},h.title)})})]})})]})},"sales"),(0,e.jsx)(ye,{tab:"\u8BBF\u95EE\u91CF",children:(0,e.jsxs)(m.Z,{children:[(0,e.jsx)(o.Z,{xl:16,lg:12,md:12,sm:24,xs:24,children:(0,e.jsx)("div",{className:c().salesBar,children:(0,e.jsx)(E.sg,{height:300,forceFit:!0,data:r,xField:"x",yField:"y",xAxis:{visible:!0,title:{visible:!1}},yAxis:{visible:!0,title:{visible:!1}},title:{visible:!0,text:"\u8BBF\u95EE\u91CF\u8D8B\u52BF",style:{fontSize:14}},meta:{y:{alias:"\u8BBF\u95EE\u91CF"}}})})}),(0,e.jsx)(o.Z,{xl:8,lg:12,md:12,sm:24,xs:24,children:(0,e.jsxs)("div",{className:c().salesRank,children:[(0,e.jsx)("h4",{className:c().rankingTitle,children:"\u95E8\u5E97\u8BBF\u95EE\u91CF\u6392\u540D"}),(0,e.jsx)("ul",{className:c().rankingList,children:re.map(function(h,C){return(0,e.jsxs)("li",{children:[(0,e.jsx)("span",{className:"".concat(c().rankingItemNumber," ").concat(C<3?c().active:""),children:C+1}),(0,e.jsx)("span",{className:c().rankingItemTitle,title:h.title,children:h.title}),(0,e.jsx)("span",{children:Z()(h.total).format("0,0")})]},h.title)})})]})})]})},"views")]})})})},We=Ke,gt=t(66456),Ue=t(85453),Le=t(39165),H=t.n(Le),Ge=function(a){var n=a.theme,r=a.title,s=a.subTitle,f=a.total,u=a.subTotal,l=a.status,h=a.suffix,C=a.gap,W=(0,Q.Z)(a,["theme","title","subTitle","total","subTotal","status","suffix","gap"]);return(0,e.jsxs)("div",(0,y.Z)((0,y.Z)({className:X()(H().numberInfo,(0,z.Z)({},H()["numberInfo".concat(n)],n))},W),{},{children:[r&&(0,e.jsx)("div",{className:H().numberInfoTitle,title:typeof r=="string"?r:"",children:r}),s&&(0,e.jsx)("div",{className:H().numberInfoSubTitle,title:typeof s=="string"?s:"",children:s}),(0,e.jsxs)("div",{className:H().numberInfoValue,style:C?{marginTop:C}:{},children:[(0,e.jsxs)("span",{children:[f,h&&(0,e.jsx)("em",{className:H().suffix,children:h})]}),(l||u)&&(0,e.jsxs)("span",{className:H().subTotal,children:[u,l&&l==="up"?(0,e.jsx)(me.Z,{}):(0,e.jsx)(ge.Z,{})]})]})]}))},le=Ge,He=[{title:"\u6392\u540D",dataIndex:"index",key:"index"},{title:"\u641C\u7D22\u5173\u952E\u8BCD",dataIndex:"keyword",key:"keyword",render:function(a){return(0,e.jsx)("a",{href:"/",children:a})}},{title:"\u7528\u6237\u6570",dataIndex:"count",key:"count",sorter:function(a,n){return a.count-n.count},className:c().alignRight},{title:"\u5468\u6DA8\u5E45",dataIndex:"range",key:"range",sorter:function(a,n){return a.range-n.range},render:function(a,n){return(0,e.jsx)(Y,{flag:n.status===1?"down":"up",children:(0,e.jsxs)("span",{style:{marginRight:4},children:[a,"%"]})})}}],ke=function(a){var n=a.loading,r=a.visitData2,s=a.searchData,f=a.dropdownGroup;return(0,e.jsxs)(A.Z,{loading:n,bordered:!1,title:"\u7EBF\u4E0A\u70ED\u95E8\u641C\u7D22",extra:f,style:{height:"100%"},children:[(0,e.jsxs)(m.Z,{gutter:68,children:[(0,e.jsxs)(o.Z,{sm:12,xs:24,style:{marginBottom:24},children:[(0,e.jsx)(le,{subTitle:(0,e.jsxs)("span",{children:["\u641C\u7D22\u7528\u6237\u6570",(0,e.jsx)(N.Z,{title:"\u6307\u6807\u8BF4\u660E",children:(0,e.jsx)(B.Z,{style:{marginLeft:8}})})]}),gap:8,total:Z()(12321).format("0,0"),status:"up",subTotal:17.1}),(0,e.jsx)(E.m,{xField:"x",height:45,forceFit:!0,yField:"y",smooth:!0,data:r})]}),(0,e.jsxs)(o.Z,{sm:12,xs:24,style:{marginBottom:24},children:[(0,e.jsx)(le,{subTitle:(0,e.jsxs)("span",{children:["\u4EBA\u5747\u641C\u7D22\u6B21\u6570",(0,e.jsx)(N.Z,{title:"\u6307\u6807\u8BF4\u660E",children:(0,e.jsx)(B.Z,{style:{marginLeft:8}})})]}),total:2.7,status:"down",subTotal:26.2,gap:8}),(0,e.jsx)(E.m,{xField:"x",height:45,forceFit:!0,yField:"y",smooth:!0,data:r})]})]}),(0,e.jsx)(Ue.Z,{rowKey:function(l){return l.index},size:"small",columns:He,dataSource:s,pagination:{style:{marginBottom:0},pageSize:5}})]})},ze=ke,yt=t(88983),te=t(47933),jt=t(402),Ve=t(59289),Ye=Ve.Z.Text,$e=function(a){var n=a.dropdownGroup,r=a.salesType,s=a.loading,f=a.salesPieData,u=a.handleChangeSalesType;return(0,e.jsx)(A.Z,{loading:s,className:c().salesCard,bordered:!1,title:"\u9500\u552E\u989D\u7C7B\u522B\u5360\u6BD4",style:{height:"100%"},extra:(0,e.jsxs)("div",{className:c().salesCardExtra,children:[n,(0,e.jsx)("div",{className:c().salesTypeRadio,children:(0,e.jsxs)(te.ZP.Group,{value:r,onChange:u,children:[(0,e.jsx)(te.ZP.Button,{value:"all",children:"\u5168\u90E8\u6E20\u9053"}),(0,e.jsx)(te.ZP.Button,{value:"online",children:"\u7EBF\u4E0A"}),(0,e.jsx)(te.ZP.Button,{value:"stores",children:"\u95E8\u5E97"})]})})]}),children:(0,e.jsxs)("div",{children:[(0,e.jsx)(Ye,{children:"\u9500\u552E\u989D"}),(0,e.jsx)(E.yi,{forceFit:!0,height:340,radius:.8,angleField:"y",colorField:"x",data:f,legend:{visible:!1},label:{visible:!0,type:"spider",formatter:function(h,C){return"".concat(C._origin.x,": ").concat(Z()(C._origin.y).format("0,0"))}},statistic:{totalLabel:"\u9500\u552E\u989D"}})]})})},Je=$e,Qe=function(a){var n=a.data,r=a.currentTabKey;return(0,e.jsxs)(m.Z,{gutter:8,style:{width:138,margin:"8px 0"},children:[(0,e.jsx)(o.Z,{span:12,children:(0,e.jsx)(le,{title:n.name,subTitle:"\u8F6C\u5316\u7387",gap:2,total:"".concat(n.cvr*100,"%"),theme:r!==n.name?"light":void 0})}),(0,e.jsx)(o.Z,{span:12,style:{paddingTop:36},children:(0,e.jsx)(E.TZ,{forceFit:!0,height:60,width:60,percent:n.cvr})})]})},Xe=ee.Z.TabPane,we=function(a){var n=a.activeKey,r=a.loading,s=a.offlineData,f=a.offlineChartData,u=a.handleTabChange;return(0,e.jsx)(A.Z,{loading:r,className:c().offlineCard,bordered:!1,style:{marginTop:32},children:(0,e.jsx)(ee.Z,{activeKey:n,onChange:u,children:s.map(function(l){return(0,e.jsx)(Xe,{tab:(0,e.jsx)(Qe,{data:l,currentTabKey:n}),children:(0,e.jsx)("div",{style:{padding:"0 24px"},children:(0,e.jsx)(E.x1,{forceFit:!0,height:400,data:f,responsive:!0,xField:"date",yField:"value",seriesField:"type",interactions:[{type:"slider",cfg:{}}],legend:{position:"top-center"}})})},l.name)})})})},_e=we,je=t(21010),qe=t(3182),et=t(94043),pe=t.n(et);function tt(){return ie.apply(this,arguments)}function ie(){return ie=(0,qe.Z)(pe().mark(function v(){return pe().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,je.WY)("/api/fake_analysis_chart_data"));case 1:case"end":return n.stop()}},v)})),ie.apply(this,arguments)}var pt=t(20228),at=t(11382),nt=function(){return(0,e.jsx)("div",{style:{paddingTop:100,textAlign:"center"},children:(0,e.jsx)(at.Z,{size:"large"})})},rt=t(30381),K=t.n(rt);function Ce(v){return v*1<10?"0".concat(v):v}function oe(v){var a=new Date,n=1e3*60*60*24;if(v==="today")return a.setHours(0),a.setMinutes(0),a.setSeconds(0),[K()(a),K()(a.getTime()+(n-1e3))];if(v==="week"){var r=a.getDay();a.setHours(0),a.setMinutes(0),a.setSeconds(0),r===0?r=6:r-=1;var s=a.getTime()-r*n;return[K()(s),K()(s+(7*n-1e3))]}var f=a.getFullYear();if(v==="month"){var u=a.getMonth(),l=K()(a).add(1,"months"),h=l.year(),C=l.month();return[K()("".concat(f,"-").concat(Ce(u+1),"-01 00:00:00")),K()(K()("".concat(h,"-").concat(Ce(C+1),"-01 00:00:00")).valueOf()-1e3)]}return[K()("".concat(f,"-01-01 00:00:00")),K()("".concat(f,"-12-31 23:59:59"))]}var st=function(){var a=(0,x.useState)("all"),n=(0,F.Z)(a,2),r=n[0],s=n[1],f=(0,x.useState)(""),u=(0,F.Z)(f,2),l=u[0],h=u[1],C=(0,x.useState)(oe("year")),W=(0,F.Z)(C,2),O=W[0],$=W[1],k=(0,je.QT)(tt),R=k.loading,i=k.data,it=function(U){$(oe(U))},ot=function(U){$(U)},dt=function(U){if(!O)return"";var ue=oe(U);return!ue||!O[0]||!O[1]?"":O[0].isSame(ue[0],"day")&&O[1].isSame(ue[1],"day")?c().currentDate:""},de;r==="all"?de=i==null?void 0:i.salesTypeData:de=r==="online"?i==null?void 0:i.salesTypeDataOnline:i==null?void 0:i.salesTypeDataOffline;var ut=(0,e.jsxs)(S.Z,{children:[(0,e.jsx)(S.Z.Item,{children:"\u64CD\u4F5C\u4E00"}),(0,e.jsx)(S.Z.Item,{children:"\u64CD\u4F5C\u4E8C"})]}),Te=(0,e.jsx)("span",{className:c().iconGroup,children:(0,e.jsx)(I.Z,{overlay:ut,placement:"bottomRight",children:(0,e.jsx)(T.Z,{})})}),ct=function(U){s(U.target.value)},vt=function(U){h(U)},ht=l||(i==null?void 0:i.offlineData[0])&&(i==null?void 0:i.offlineData[0].name)||"";return(0,e.jsx)(L.Z,{children:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(x.Suspense,{fallback:(0,e.jsx)(nt,{}),children:(0,e.jsx)(Oe,{loading:R,visitData:(i==null?void 0:i.visitData)||[]})}),(0,e.jsx)(x.Suspense,{fallback:null,children:(0,e.jsx)(We,{rangePickerValue:O,salesData:(i==null?void 0:i.salesData)||[],isActive:dt,handleRangePickerChange:ot,loading:R,selectDate:it})}),(0,e.jsxs)(m.Z,{gutter:24,style:{marginTop:24},children:[(0,e.jsx)(o.Z,{xl:12,lg:24,md:24,sm:24,xs:24,children:(0,e.jsx)(x.Suspense,{fallback:null,children:(0,e.jsx)(ze,{loading:R,visitData2:(i==null?void 0:i.visitData2)||[],searchData:(i==null?void 0:i.searchData)||[],dropdownGroup:Te})})}),(0,e.jsx)(o.Z,{xl:12,lg:24,md:24,sm:24,xs:24,children:(0,e.jsx)(x.Suspense,{fallback:null,children:(0,e.jsx)(Je,{dropdownGroup:Te,salesType:r,loading:R,salesPieData:de||[],handleChangeSalesType:ct})})})]}),(0,e.jsx)(x.Suspense,{fallback:null,children:(0,e.jsx)(_e,{activeKey:ht,loading:R,offlineData:(i==null?void 0:i.offlineData)||[],offlineChartData:(i==null?void 0:i.offlineChartData)||[],handleTabChange:vt})})]})})},lt=st},57838:function(g,D,t){"use strict";t.d(D,{Z:function(){return b}});var p=t(28481),m=t(67294);function b(){var o=m.useReducer(function(j){return j+1},0),d=(0,p.Z)(o,2),I=d[1];return I}},34952:function(g,D,t){"use strict";var p=t(22122),m=t(67294),b=t(15105),o=function(j,S){var F={};for(var x in j)Object.prototype.hasOwnProperty.call(j,x)&&S.indexOf(x)<0&&(F[x]=j[x]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var T=0,x=Object.getOwnPropertySymbols(j);T<x.length;T++)S.indexOf(x[T])<0&&Object.prototype.propertyIsEnumerable.call(j,x[T])&&(F[x[T]]=j[x[T]]);return F},d={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},I=m.forwardRef(function(j,S){var F=function(E){var M=E.keyCode;M===b.Z.ENTER&&E.preventDefault()},x=function(E){var M=E.keyCode,Z=j.onClick;M===b.Z.ENTER&&Z&&Z()},T=j.style,L=j.noStyle,y=j.disabled,G=o(j,["style","noStyle","disabled"]),N={};return L||(N=(0,p.Z)({},d)),y&&(N.pointerEvents="none"),N=(0,p.Z)((0,p.Z)({},N),T),m.createElement("div",(0,p.Z)({role:"button",tabIndex:0,ref:S},G,{onKeyDown:F,onKeyUp:x,style:N}))});D.Z=I},48983:function(g,D,t){var p=t(40371),m=p("length");g.exports=m},88016:function(g,D,t){var p=t(48983),m=t(62689),b=t(21903);function o(d){return m(d)?b(d):p(d)}g.exports=o},21903:function(g){var D="\\ud800-\\udfff",t="\\u0300-\\u036f",p="\\ufe20-\\ufe2f",m="\\u20d0-\\u20ff",b=t+p+m,o="\\ufe0e\\ufe0f",d="["+D+"]",I="["+b+"]",j="\\ud83c[\\udffb-\\udfff]",S="(?:"+I+"|"+j+")",F="[^"+D+"]",x="(?:\\ud83c[\\udde6-\\uddff]){2}",T="[\\ud800-\\udbff][\\udc00-\\udfff]",L="\\u200d",y=S+"?",G="["+o+"]?",N="(?:"+L+"(?:"+[F,x,T].join("|")+")"+G+y+")*",B=G+y+N,E="(?:"+[F+I+"?",I,x,T,d].join("|")+")",M=RegExp(j+"(?="+j+")|"+E+B,"g");function Z(J){for(var A=M.lastIndex=0;M.test(J);)++A;return A}g.exports=Z},18601:function(g,D,t){var p=t(14841),m=1/0,b=17976931348623157e292;function o(d){if(!d)return d===0?d:0;if(d=p(d),d===m||d===-m){var I=d<0?-1:1;return I*b}return d===d?d:0}g.exports=o},40554:function(g,D,t){var p=t(18601);function m(b){var o=p(b),d=o%1;return o===o?d?o-d:o:0}g.exports=m}}]);