Index-060b5884.js 26 KB

1
  1. import{r as V,b as ke,n as _e,w as G,d as U,i as Nt,e as j,f as t,m as te,g as et,h as Wt,j as tt,T as at,k as ot,v as lt,l as Vt,p as $t,q as qt,F as nt,s as Ut,t as Gt,x as ce,y as Kt,z as Jt,o as ue,c as Se,A as k,B as Q,a as I,C as Qt,D as Xt,E as st,G as rt,H as Zt,I as ea,J as ta,K as aa,L as oa,M as la,N as na,O as de,_ as sa,__tla as ra}from"./index-286756b9.js";import{_ as ia,__tla as ca}from"./Echart-d6fc9d48.js";import{o as ua,w as da,a as ma,u as me,c as $,b as Te,B as pa,m as E,n as F,d as X,e as K,g as fa,r as va,f as ga,h as ha,p as Ce,t as Y,i as pe,j as ya,k as it,l as ba,q as ct,s as wa,v as Oe,x as fe,P as xa,y as Da,H as ka,z as ve,A as Be,C as se,D as ut,E as _a,F as Sa,G as ge,I as Ta,J as Ca,K as ze,L as Oa,M as Pe,N as Ba,__tla as za}from"./index-3305e882.js";import{E as Pa,__tla as Ia}from"./el-card-d3d5a654.js";import{E as Aa,__tla as Ma}from"./el-skeleton-item-24f2c4a9.js";import{l as dt,p as Ha,__tla as Ra}from"./echarts-data-4f9c4cc9.js";import Ya,{__tla as ja}from"./MemberStatisticsCard-1de1f5a5.js";import{P as Ea,__tla as Fa}from"./index-bc15b029.js";import{T as La,g as Na,__tla as Wa}from"./ToBeDone-5a53200c.js";import{__tla as Va}from"./member-3707d5ea.js";import{__tla as $a}from"./formatTime-83e416ef.js";import{__tla as qa}from"./ToBeDoneDialog-04eb818d.js";import{__tla as Ua}from"./Dialog-4c2de357.js";let mt,Ga=Promise.all([(()=>{try{return ra}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Ia}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Ra}catch{}})(),(()=>{try{return ja}catch{}})(),(()=>{try{return Fa}catch{}})(),(()=>{try{return Wa}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return $a}catch{}})(),(()=>{try{return qa}catch{}})(),(()=>{try{return Ua}catch{}})()]).then(async()=>{let pt=2e3;const[ft,Ka]=$("config-provider"),vt=Symbol(ft),[gt,Ie]=$("icon"),he=X(U({name:gt,props:{dot:Boolean,tag:E("i"),name:String,size:F,badge:F,color:String,badgeProps:Object,classPrefix:String},setup(e,{slots:l}){const n=Nt(vt,null),u=j(()=>e.classPrefix||(n==null?void 0:n.iconPrefix)||Ie());return()=>{const{tag:r,dot:d,name:c,size:b,badge:o,color:g}=e,h=(m=>m==null?void 0:m.includes("/"))(c);return t(pa,te({dot:d,tag:r,class:[u.value,h?"":`${u.value}-${c}`],style:{color:g,fontSize:Te(b)},content:o},e.badgeProps),{default:()=>{var m;return[(m=l.default)==null?void 0:m.call(l),h&&t("img",{class:Ie("image"),src:c},null)]}})}}})),[ht,ae]=$("loading"),yt=Array(12).fill(null).map((e,l)=>t("i",{class:ae("line",String(l+1))},null)),bt=t("svg",{class:ae("circular"),viewBox:"25 25 50 50"},[t("circle",{cx:"50",cy:"50",r:"20",fill:"none"},null)]),Ae=X(U({name:ht,props:{size:F,type:E("circular"),color:String,vertical:Boolean,textSize:F,textColor:String},setup(e,{slots:l}){const n=j(()=>K({color:e.color},fa(e.size))),u=()=>{const d=e.type==="spinner"?yt:bt;return t("span",{class:ae("spinner",e.type),style:n.value},[l.icon?l.icon():d])},r=()=>{var d;if(l.default)return t("span",{class:ae("text"),style:{fontSize:Te(e.textSize),color:(d=e.textColor)!=null?d:e.color}},[l.default()])};return()=>{const{type:d,vertical:c}=e;return t("div",{class:ae([d,{vertical:c}]),"aria-live":"polite","aria-busy":!0},[u(),r()])}}})),[wt,Z]=$("button"),xt=X(U({name:wt,props:K({},va,{tag:E("button"),text:String,icon:String,type:E("default"),size:E("normal"),color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:E("button"),loadingSize:F,loadingText:String,loadingType:String,iconPosition:E("left")}),emits:["click"],setup(e,{emit:l,slots:n}){const u=ga(),r=()=>e.loading?n.loading?n.loading():t(Ae,{size:e.loadingSize,type:e.loadingType,class:Z("loading")},null):n.icon?t("div",{class:Z("icon")},[n.icon()]):e.icon?t(he,{name:e.icon,class:Z("icon"),classPrefix:e.iconPrefix},null):void 0,d=()=>{let o;if(o=e.loading?e.loadingText:n.default?n.default():e.text,o)return t("span",{class:Z("text")},[o])},c=()=>{const{color:o,plain:g}=e;if(o){const h={color:g?o:"white"};return g||(h.background=o),o.includes("gradient")?h.border=0:h.borderColor=o,h}},b=o=>{e.loading?Ce(o):e.disabled||(l("click",o),u())};return()=>{const{tag:o,type:g,size:h,block:m,round:w,plain:M,square:B,loading:W,disabled:L,hairline:y,nativeType:H,iconPosition:z}=e,_=[Z([g,h,{plain:M,block:m,round:w,square:B,loading:W,disabled:L,hairline:y}]),{[ha]:y}];return t(o,{type:H,class:_,style:c(),disabled:L,onClick:b},{default:()=>[t("div",{class:Z("content")},[z==="left"&&r(),d(),z==="right"&&r()])]})}}})),Dt={show:Boolean,zIndex:F,overlay:Y,duration:F,teleport:[String,Object],lockScroll:Y,lazyRender:Y,beforeClose:Function,overlayStyle:Object,overlayClass:pe,transitionAppear:Boolean,closeOnClickOverlay:Y};let oe=0;const Me="van-overflow-hidden";function He(e){const l=V(!1);return G(e,n=>{n&&(l.value=n)},{immediate:!0}),n=>()=>l.value?n():null}const Re=()=>{var e;const{scopeId:l}=((e=tt())==null?void 0:e.vnode)||{};return l?{[l]:""}:null},[kt,_t]=$("overlay"),St=X(U({name:kt,props:{show:Boolean,zIndex:F,duration:F,className:pe,lockScroll:Y,lazyRender:Y,customStyle:Object},setup(e,{slots:l}){const n=V(),u=He(()=>e.show||!e.lazyRender)(()=>{var r;const d=K(wa(e.zIndex),e.customStyle);return Oe(e.duration)&&(d.animationDuration=`${e.duration}s`),ot(t("div",{ref:n,style:d,class:[_t(),e.className]},[(r=l.default)==null?void 0:r.call(l)]),[[lt,e.show]])});return ct("touchmove",r=>{e.lockScroll&&Ce(r,!0)},{target:n}),()=>t(at,{name:"van-fade",appear:!0},{default:u})}})),Tt=K({},Dt,{round:Boolean,position:E("center"),closeIcon:E("cross"),closeable:Boolean,transition:String,iconPrefix:String,closeOnPopstate:Boolean,closeIconPosition:E("top-right"),safeAreaInsetTop:Boolean,safeAreaInsetBottom:Boolean}),[Ct,Ye]=$("popup"),je=X(U({name:Ct,inheritAttrs:!1,props:Tt,emits:["open","close","opened","closed","keydown","update:show","clickOverlay","clickCloseIcon"],setup(e,{emit:l,attrs:n,slots:u}){let r,d;const c=V(),b=V(),o=He(()=>e.show||!e.lazyRender),g=j(()=>{const f={zIndex:c.value};return Oe(e.duration)&&(f[e.position==="center"?"animationDuration":"transitionDuration"]=`${e.duration}s`),f}),h=()=>{r||(r=!0,c.value=e.zIndex!==void 0?+e.zIndex:++pt,l("open"))},m=()=>{r&&Da(e.beforeClose,{done(){r=!1,l("close"),l("update:show",!1)}})},w=f=>{l("clickOverlay",f),e.closeOnClickOverlay&&m()},M=()=>{if(e.overlay)return t(St,te({show:e.show,class:e.overlayClass,zIndex:c.value,duration:e.duration,customStyle:e.overlayStyle,role:e.closeOnClickOverlay?"button":void 0,tabindex:e.closeOnClickOverlay?0:void 0},Re(),{onClick:w}),{default:u["overlay-content"]})},B=f=>{l("clickCloseIcon",f),m()},W=()=>{if(e.closeable)return t(he,{role:"button",tabindex:0,name:e.closeIcon,class:[Ye("close-icon",e.closeIconPosition),ka],classPrefix:e.iconPrefix,onClick:B},null)};let L;const y=()=>{L&&clearTimeout(L),L=setTimeout(()=>{l("opened")})},H=()=>l("closed"),z=f=>l("keydown",f),_=o(()=>{var f;const{round:x,position:D,safeAreaInsetTop:O,safeAreaInsetBottom:S}=e;return ot(t("div",te({ref:b,style:g.value,role:"dialog",tabindex:0,class:[Ye({round:x,[D]:D}),{"van-safe-area-top":O,"van-safe-area-bottom":S}],onKeydown:z},n,Re()),[(f=u.default)==null?void 0:f.call(u),W()]),[[lt,e.show]])}),i=()=>{const{position:f,transition:x,transitionAppear:D}=e;return t(at,{name:x||(f==="center"?"van-fade":`van-popup-slide-${f}`),appear:D,onAfterEnter:y,onAfterLeave:H},{default:_})};return G(()=>e.show,f=>{f&&!r&&(h(),n.tabindex===0&&_e(()=>{var x;(x=b.value)==null||x.focus()})),!f&&r&&(r=!1,l("close"))}),fe({popupRef:b}),function(f,x){const D=ya(),O=p=>{D.move(p);const v=D.deltaY.value>0?"10":"01",R=ba(p.target,f.value),{scrollHeight:T,offsetHeight:C,scrollTop:P}=R;let q="11";P===0?q=C>=T?"00":"01":P+C>=T&&(q="10"),q==="11"||!D.isVertical()||parseInt(q,2)&parseInt(v,2)||Ce(p,!0)},S=()=>{document.addEventListener("touchstart",D.start),document.addEventListener("touchmove",O,{passive:!1}),oe||document.body.classList.add(Me),oe++},a=()=>{oe&&(document.removeEventListener("touchstart",D.start),document.removeEventListener("touchmove",O),oe--,oe||document.body.classList.remove(Me))},s=()=>x()&&a();it(()=>x()&&S()),et(s),Wt(s),G(x,p=>{p?S():a()})}(b,()=>e.show&&e.lockScroll),ct("popstate",()=>{e.closeOnPopstate&&(m(),d=!1)}),ke(()=>{e.show&&h()}),Vt(()=>{d&&(l("update:show",!0),d=!1)}),et(()=>{e.show&&e.teleport&&(m(),d=!0)}),$t(xa,()=>e.show),()=>e.teleport?t(qt,{to:e.teleport},{default:()=>[M(),i()]}):t(nt,null,[M(),i()])}}));$("picker-toolbar");const Ot={title:String,cancelButtonText:String,confirmButtonText:String},Ee=K({loading:Boolean,readonly:Boolean,allowHtml:Boolean,optionHeight:ve(44),showToolbar:Y,swipeDuration:ve(1e3),visibleOptionNum:ve(6)},Ot);K({},Ee,{columns:Be(),modelValue:Be(),toolbarPosition:E("top"),columnsFieldNames:Object});let le=0;const[Bt,ee]=$("toast"),zt=["show","overlay","teleport","transition","overlayClass","overlayStyle","closeOnClickOverlay","zIndex"];var Fe=U({name:Bt,props:{icon:String,show:Boolean,type:E("text"),overlay:Boolean,message:F,iconSize:F,duration:ut(2e3),position:E("middle"),teleport:[String,Object],wordBreak:String,className:pe,iconPrefix:String,transition:E("van-fade"),loadingType:String,forbidClick:Boolean,overlayClass:pe,overlayStyle:Object,closeOnClick:Boolean,closeOnClickOverlay:Boolean,zIndex:F},emits:["update:show"],setup(e,{emit:l,slots:n}){let u,r=!1;const d=()=>{const m=e.show&&e.forbidClick;r!==m&&(r=m,r?(le||document.body.classList.add("van-toast--unclickable"),le++):le&&(le--,le||document.body.classList.remove("van-toast--unclickable")))},c=m=>l("update:show",m),b=()=>{e.closeOnClick&&c(!1)},o=()=>clearTimeout(u),g=()=>{const{icon:m,type:w,iconSize:M,iconPrefix:B,loadingType:W}=e;return m||w==="success"||w==="fail"?t(he,{name:m||w,size:M,class:ee("icon"),classPrefix:B},null):w==="loading"?t(Ae,{class:ee("loading"),size:M,type:W},null):void 0},h=()=>{const{type:m,message:w}=e;return n.message?t("div",{class:ee("text")},[n.message()]):Oe(w)&&w!==""?m==="html"?t("div",{key:0,class:ee("text"),innerHTML:String(w)},null):t("div",{class:ee("text")},[w]):void 0};return G(()=>[e.show,e.forbidClick],d),G(()=>[e.show,e.type,e.message,e.duration],()=>{o(),e.show&&e.duration>0&&(u=setTimeout(()=>{c(!1)},e.duration))}),ke(d),Ut(d),()=>t(je,te({class:[ee([e.position,e.wordBreak==="normal"?"break-normal":e.wordBreak,{[e.type]:!e.icon}]),e.className],lockScroll:!1,onClick:b,onClosed:o,"onUpdate:show":c},se(e,zt)),{default:()=>[g(),h()]})}});let re=[],Pt=!1,Le=K({},{icon:"",type:"text",message:"",className:"",overlay:!1,onClose:void 0,onOpened:void 0,duration:2e3,teleport:"body",iconSize:void 0,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,overlayClass:"",overlayStyle:void 0,closeOnClick:!1,closeOnClickOverlay:!1});const It=new Map;function At(){const{instance:e,unmount:l}=function(n){const u=Gt(n),r=document.createElement("div");return document.body.appendChild(r),{instance:u.mount(r),unmount(){u.unmount(),document.body.removeChild(r)}}}({setup(){const n=V(""),{open:u,state:r,close:d,toggle:c}=function(){const o=ce({show:!1}),g=w=>{o.show=w},h=w=>{K(o,w,{transitionAppear:!0}),g(!0)},m=()=>g(!1);return fe({open:h,close:m,toggle:g}),{open:h,close:m,state:o,toggle:g}}(),b=()=>{};return G(n,o=>{r.message=o}),tt().render=()=>t(Fe,te(r,{onClosed:b,"onUpdate:show":c}),null),{open:u,close:d,message:n}}});return e}function Ne(e={}){if(!_a)return{};const l=function(){if(!re.length||Pt){const r=At();re.push(r)}return re[re.length-1]}(),n=Sa(u=e)?u:{message:u};var u;return l.open(K({},Le,It.get(n.type||Le.type),n)),l}X(Fe);const[Mt,A,J]=$("calendar");function ye(e,l){const n=e.getFullYear(),u=l.getFullYear();if(n===u){const r=e.getMonth(),d=l.getMonth();return r===d?0:r>d?1:-1}return n>u?1:-1}function N(e,l){const n=ye(e,l);if(n===0){const u=e.getDate(),r=l.getDate();return u===r?0:u>r?1:-1}return n}const ie=e=>new Date(e),We=e=>Array.isArray(e)?e.map(ie):ie(e);function be(e,l){const n=ie(e);return n.setDate(n.getDate()+l),n}const we=e=>be(e,-1),Ve=e=>be(e,1),xe=()=>{const e=new Date;return e.setHours(0,0,0,0),e};K({},Ee,{modelValue:Be(),filter:Function,formatter:{type:Function,default:(e,l)=>l}});const[Ht]=$("calendar-day");var Rt=U({name:Ht,props:{item:ge(Object),color:String,index:Number,offset:ut(0),rowHeight:String},emits:["click","clickDisabledDate"],setup(e,{emit:l,slots:n}){const u=j(()=>{var o;const{item:g,index:h,color:m,offset:w,rowHeight:M}=e,B={height:M};if(g.type==="placeholder")return B.width="100%",B;if(h===0&&(B.marginLeft=100*w/7+"%"),m)switch(g.type){case"end":case"start":case"start-end":case"multiple-middle":case"multiple-selected":B.background=m;break;case"middle":B.color=m}return w+(((o=g.date)==null?void 0:o.getDate())||1)>28&&(B.marginBottom=0),B}),r=()=>{e.item.type!=="disabled"?l("click",e.item):l("clickDisabledDate",e.item)},d=()=>{const{topInfo:o}=e.item;if(o||n["top-info"])return t("div",{class:A("top-info")},[n["top-info"]?n["top-info"](e.item):o])},c=()=>{const{bottomInfo:o}=e.item;if(o||n["bottom-info"])return t("div",{class:A("bottom-info")},[n["bottom-info"]?n["bottom-info"](e.item):o])},b=()=>{const{item:o,color:g,rowHeight:h}=e,{type:m,text:w}=o,M=[d(),w,c()];return m==="selected"?t("div",{class:A("selected-day"),style:{width:h,height:h,background:g}},[M]):M};return()=>{const{type:o,className:g}=e.item;return o==="placeholder"?t("div",{class:A("day"),style:u.value},null):t("div",{role:"gridcell",style:u.value,class:[A("day",o),g],tabindex:o==="disabled"?void 0:-1,onClick:r},[b()])}}});const[Yt]=$("calendar-month");var jt=U({name:Yt,props:{date:ge(Date),type:String,color:String,minDate:ge(Date),maxDate:ge(Date),showMark:Boolean,rowHeight:F,formatter:Function,lazyRender:Boolean,currentDate:[Date,Array],allowSameDay:Boolean,showSubtitle:Boolean,showMonthTitle:Boolean,firstDayOfWeek:Number},emits:["click","clickDisabledDate"],setup(e,{emit:l,slots:n}){const[u,r]=Ta(),d=V(),c=V(),b=((i,f)=>{const x=V(),D=()=>{x.value=me(i).height};return ke(()=>{if(_e(D),f)for(let O=1;O<=3;O++)setTimeout(D,100*O)}),ua(()=>_e(D)),G([da,ma],D),x})(c),o=j(()=>{return i=e.date,J("monthTitle",i.getFullYear(),i.getMonth()+1);var i}),g=j(()=>Te(e.rowHeight)),h=j(()=>{const i=e.date.getDay();return e.firstDayOfWeek?(i+7-e.firstDayOfWeek)%7:i}),m=j(()=>{return i=e.date.getFullYear(),f=e.date.getMonth()+1,32-new Date(i,f-1,32).getDate();var i,f}),w=j(()=>u.value||!e.lazyRender),M=i=>{const{type:f,minDate:x,maxDate:D,currentDate:O}=e;if(N(i,x)<0||N(i,D)>0)return"disabled";if(O===null)return"";if(Array.isArray(O)){if(f==="multiple")return(S=>{const a=s=>e.currentDate.some(p=>N(p,s)===0);if(a(S)){const s=we(S),p=Ve(S),v=a(s),R=a(p);return v&&R?"multiple-middle":v?"end":R?"start":"multiple-selected"}return""})(i);if(f==="range")return(S=>{const[a,s]=e.currentDate;if(!a)return"";const p=N(S,a);if(!s)return p===0?"start":"";const v=N(S,s);return e.allowSameDay&&p===0&&v===0?"start-end":p===0?"start":v===0?"end":p>0&&v<0?"middle":""})(i)}else if(f==="single")return N(i,O)===0?"selected":"";return""},B=i=>{if(e.type==="range"){if(i==="start"||i==="end")return J(i);if(i==="start-end")return`${J("start")}/${J("end")}`}},W=()=>{if(e.showMonthTitle)return t("div",{class:A("month-title")},[n["month-title"]?n["month-title"]({date:e.date,text:o.value}):o.value])},L=()=>{if(e.showMark&&w.value)return t("div",{class:A("month-mark")},[e.date.getMonth()+1])},y=j(()=>{const i=Math.ceil((m.value+h.value)/7);return Array(i).fill({type:"placeholder"})}),H=j(()=>{const i=[],f=e.date.getFullYear(),x=e.date.getMonth();for(let D=1;D<=m.value;D++){const O=new Date(f,x,D),S=M(O);let a={date:O,type:S,text:D,bottomInfo:B(S)};e.formatter&&(a=e.formatter(a)),i.push(a)}return i}),z=j(()=>H.value.filter(i=>i.type==="disabled")),_=(i,f)=>t(Rt,{item:i,index:f,color:e.color,offset:h.value,rowHeight:g.value,onClick:x=>l("click",x),onClickDisabledDate:x=>l("clickDisabledDate",x)},se(n,["top-info","bottom-info"]));return fe({getTitle:()=>o.value,getHeight:()=>b.value,setVisible:r,scrollToDate:(i,f)=>{if(d.value){const x=me(d.value),D=y.value.length,O=(Math.ceil((f.getDate()+h.value)/7)-1)*x.height/D;Ca(i,x.top+O+i.scrollTop-me(i).top)}},disabledDays:z}),()=>t("div",{class:A("month"),ref:c},[W(),t("div",{ref:d,role:"grid",class:A("days")},[L(),(w.value?H:y).value.map(_)])])}});const[Et]=$("calendar-header");var Ft=U({name:Et,props:{date:Date,title:String,subtitle:String,showTitle:Boolean,showSubtitle:Boolean,firstDayOfWeek:Number},emits:["clickSubtitle"],setup(e,{slots:l,emit:n}){const u=()=>{if(e.showTitle){const b=e.title||J("title"),o=l.title?l.title():b;return t("div",{class:A("header-title")},[o])}},r=b=>n("clickSubtitle",b),d=()=>{if(e.showSubtitle){const b=l.subtitle?l.subtitle({date:e.date,text:e.subtitle}):e.subtitle;return t("div",{class:A("header-subtitle"),onClick:r},[b])}},c=()=>{const{firstDayOfWeek:b}=e,o=J("weekdays"),g=[...o.slice(b,7),...o.slice(0,b)];return t("div",{class:A("weekdays")},[g.map(h=>t("span",{class:A("weekday")},[h]))])};return()=>t("div",{class:A("header")},[u(),d(),c()])}}),Lt=U({name:Mt,props:{show:Boolean,type:E("single"),title:String,color:String,round:Y,readonly:Boolean,poppable:Y,maxRange:ve(null),position:E("bottom"),teleport:[String,Object],showMark:Y,showTitle:Y,formatter:Function,rowHeight:F,confirmText:String,rangePrompt:String,lazyRender:Y,showConfirm:Y,defaultDate:[Date,Array],allowSameDay:Boolean,showSubtitle:Y,closeOnPopstate:Y,showRangePrompt:Y,confirmDisabledText:String,closeOnClickOverlay:Y,safeAreaInsetTop:Boolean,safeAreaInsetBottom:Y,minDate:{type:Date,validator:ze,default:xe},maxDate:{type:Date,validator:ze,default:()=>{const e=xe();return new Date(e.getFullYear(),e.getMonth()+6,e.getDate())}},firstDayOfWeek:{type:F,default:0,validator:e=>e>=0&&e<=6}},emits:["select","confirm","unselect","monthShow","overRange","update:show","clickSubtitle","clickDisabledDate"],setup(e,{emit:l,slots:n}){const u=(a,s=e.minDate,p=e.maxDate)=>N(a,s)===-1?s:N(a,p)===1?p:a,r=(a=e.defaultDate)=>{const{type:s,minDate:p,maxDate:v,allowSameDay:R}=e;if(a===null)return a;const T=xe();return s==="range"?(Array.isArray(a)||(a=[]),[u(a[0]||T,p,R?v:we(v)),u(a[1]||T,R?p:Ve(p))]):s==="multiple"?Array.isArray(a)?a.map(C=>u(C)):[u(T)]:(a&&!Array.isArray(a)||(a=T),u(a))};let d;const c=V(),b=V({textFn:()=>"",date:void 0}),o=V(r()),[g,h]=Oa(),m=j(()=>e.firstDayOfWeek?+e.firstDayOfWeek%7:0),w=j(()=>{const a=[],s=new Date(e.minDate);s.setDate(1);do a.push(new Date(s)),s.setMonth(s.getMonth()+1);while(ye(s,e.maxDate)!==1);return a}),M=j(()=>{if(o.value){if(e.type==="range")return!o.value[0]||!o.value[1];if(e.type==="multiple")return!o.value.length}return!o.value}),B=()=>{const a=Ba(c.value),s=a+d,p=w.value.map((C,P)=>g.value[P].getHeight());if(s>p.reduce((C,P)=>C+P,0)&&a>0)return;let v,R=0;const T=[-1,-1];for(let C=0;C<w.value.length;C++){const P=g.value[C];R<=s&&R+p[C]>=a&&(T[1]=C,v||(v=P,T[0]=C),g.value[C].showed||(g.value[C].showed=!0,l("monthShow",{date:P.date,title:P.getTitle()}))),R+=p[C]}w.value.forEach((C,P)=>{const q=P>=T[0]-1&&P<=T[1]+1;g.value[P].setVisible(q)}),v&&(b.value={textFn:v.getTitle,date:v.date})},W=a=>{Pe(()=>{w.value.some((s,p)=>ye(s,a)===0&&(c.value&&g.value[p].scrollToDate(c.value,a),!0)),B()})},L=()=>{if(!e.poppable||e.show)if(o.value){const a=e.type==="single"?o.value:o.value[0];ze(a)&&W(a)}else Pe(B)},y=()=>{e.poppable&&!e.show||(Pe(()=>{d=Math.floor(me(c).height)}),L())},H=(a=r())=>{o.value=a,L()},z=()=>{var a;return l("confirm",(a=o.value)!=null?a:We(o.value))},_=(a,s)=>{const p=v=>{o.value=v,l("select",We(v))};if(s&&e.type==="range"&&!(R=>{const{maxRange:T,rangePrompt:C,showRangePrompt:P}=e;return!(T&&function(q){const De=q[0].getTime();return(q[1].getTime()-De)/864e5+1}(R)>+T&&(P&&Ne(C||J("rangePrompt",T)),l("overRange"),1))})(a))return void p([a[0],be(a[0],+e.maxRange-1)]);p(a),s&&!e.showConfirm&&z()},i=j(()=>g.value.reduce((a,s)=>{var p,v;return a.push(...(v=(p=s.disabledDays)==null?void 0:p.value)!=null?v:[]),a},[])),f=a=>{if(e.readonly||!a.date)return;const{date:s}=a,{type:p}=e;if(p==="range"){if(!o.value)return void _([s]);const[v,R]=o.value;if(v&&!R){const T=N(s,v);if(T===1){const C=((P,q,De)=>{var Xe;return(Xe=P.find(Ze=>N(q,Ze.date)===-1&&N(Ze.date,De)===-1))==null?void 0:Xe.date})(i.value,v,s);if(C){const P=we(C);N(v,P)===-1?_([v,P]):_([s])}else _([v,s],!0)}else T===-1?_([s]):e.allowSameDay&&_([s,s],!0)}else _([s])}else if(p==="multiple"){if(!o.value)return void _([s]);const v=o.value,R=v.findIndex(T=>N(T,s)===0);if(R!==-1){const[T]=v.splice(R,1);l("unselect",ie(T))}else e.maxRange&&v.length>=+e.maxRange?Ne(e.rangePrompt||J("rangePrompt",e.maxRange)):_([...v,s])}else _(s,!0)},x=a=>l("update:show",a),D=(a,s)=>{const p=s!==0||!e.showSubtitle;return t(jt,te({ref:h(s),date:a,currentDate:o.value,showMonthTitle:p,firstDayOfWeek:m.value},se(e,["type","color","minDate","maxDate","showMark","formatter","rowHeight","lazyRender","showSubtitle","allowSameDay"]),{onClick:f,onClickDisabledDate:v=>l("clickDisabledDate",v)}),se(n,["top-info","bottom-info","month-title"]))},O=()=>{if(n.footer)return n.footer();if(e.showConfirm){const a=n["confirm-text"],s=M.value,p=s?e.confirmDisabledText:e.confirmText;return t(xt,{round:!0,block:!0,type:"primary",color:e.color,class:A("confirm"),disabled:s,nativeType:"button",onClick:z},{default:()=>[a?a({disabled:s}):p||J("confirm")]})}},S=()=>{const a=b.value.textFn();return t("div",{class:A()},[t(Ft,{date:b.value.date,title:e.title,subtitle:a,showTitle:e.showTitle,showSubtitle:e.showSubtitle,firstDayOfWeek:m.value,onClickSubtitle:s=>l("clickSubtitle",s)},se(n,["title","subtitle"])),t("div",{ref:c,class:A("body"),onScroll:B},[w.value.map(D)]),t("div",{class:[A("footer"),{"van-safe-area-bottom":e.safeAreaInsetBottom}]},[O()])])};return G(()=>e.show,y),G(()=>[e.type,e.minDate,e.maxDate],()=>H(r(o.value))),G(()=>e.defaultDate,(a=null)=>{o.value=a,L()}),fe({reset:H,scrollToDate:W,getSelectedDate:()=>o.value}),it(y),()=>e.poppable?t(je,{show:e.show,class:A("popup"),round:e.round,position:e.position,closeable:e.showTitle||e.showSubtitle,teleport:e.teleport,closeOnPopstate:e.closeOnPopstate,safeAreaInsetTop:e.safeAreaInsetTop,closeOnClickOverlay:e.closeOnClickOverlay,"onUpdate:show":x},{default:S}):S()}});let $e,ne,qe,Ue,Ge,Ke,Je,Qe;$e=X(Lt),ne=e=>(oa("data-v-1126cba5"),e=e(),la(),e),qe=[ne(()=>Q("span",null,"\u5F85\u529E",-1))],Ue={class:"h-3 flex justify-between items-center"},Ge=ne(()=>Q("span",null,"\u8BA2\u5355",-1)),Ke={key:0,class:"!w-240px flex"},Je=ne(()=>Q("div",{class:"h-3 flex justify-between items-center"},[Q("span",null,"\u5E73\u53F0\u6536\u76CA")],-1)),Qe=ne(()=>Q("div",{class:"h-3 flex justify-between items-center"},[Q("span",null,"\u6D88\u8D39\u8005\u6570\u91CF")],-1)),mt=sa(U({name:"Home",__name:"Index",setup(e){const l=Kt(),n=j(()=>l.getMobile),u=V(null),r=Jt(()=>{u.value.getList()},1e3),d=V(!0),c=ce({orderTime:"",orderStatrTime:"",orderEndTime:"",mobileOrderTimeShow:!1});let b;function o(y){b=y}const g=new Date(2024,5,12);let h=ce(dt);const m=async(y,H)=>{const z=await Na({startTime:y,endTime:H});na(h,"xAxis.data",z.xaxis.data);const _=z==null?void 0:z.series.map(i=>({count:i.count,value:i.money/100}));h.series[0].data=_,b&&(b.setOption(h,!0),console.log(h))};function w(y){c.orderStatrTime=y[0],c.orderEndTime=y[1],m(c.orderStatrTime,c.orderEndTime)}function M(){c.mobileOrderTimeShow=!0}function B(y){c.mobileOrderTimeShow=!1,c.orderStatrTime=rt(y[0]).format("YYYY-MM-DD"),c.orderEndTime=rt(y[1]).format("YYYY-MM-DD"),m(c.orderStatrTime,c.orderEndTime)}const W=ce(Ha),L=async()=>{const y=await Ea.getPtProfitPage({pageNo:1,pageSize:10});W.series[0].data=[{value:de(y==null?void 0:y.list[0].profit),name:"\u5229\u6DA6(\u7852\u6CFD\u6E90)"},{value:de(y==null?void 0:y.list[0].ptTotalAdd),name:"\u5E73\u53F0\u603B\u6536\u5165"},{value:de(y==null?void 0:y.list[0].ptAdd),name:"\u5E73\u53F0\u670D\u52A1\u8D39"},{value:de(y==null?void 0:y.list[0].ptGrossAdd),name:"\u5E73\u53F0\u5B58\u4F59"}]};return(async()=>(await Promise.all([L(),m()]),d.value=!1))(),(y,H)=>{const z=Aa,_=Pa,i=Zt,f=ea,x=ta,D=$e,O=ia,S=aa;return ue(),Se(nt,null,[t(S,{class:"mt-8px",gutter:8,justify:"space-between"},{default:k(()=>[t(i,{xl:12,lg:12,md:24,sm:24,xs:24,class:"mb-8px"},{default:k(()=>[t(_,{shadow:"never"},{header:k(()=>[Q("div",{class:"h-3 flex justify-between items-center cursor-pointer",onClick:H[0]||(H[0]=(...a)=>I(r)&&I(r)(...a))},[...qe])]),default:k(()=>[t(z,{loading:I(d),animated:""},{default:k(()=>[t(La,{ref_key:"toBeDoneRef",ref:u},null,512)]),_:1},8,["loading"])]),_:1})]),_:1}),t(i,{xl:12,lg:12,md:24,sm:24,xs:24,class:"mb-8px"},{default:k(()=>[t(_,{shadow:"never"},{header:k(()=>[Q("div",Ue,[Ge,I(n)?!I(n)||I(c).orderStatrTime||I(c).orderEndTime?(ue(),Se("span",{key:2,style:{"font-size":"14px"},onClick:M},st(I(c).orderStatrTime)+" - "+st(I(c).orderEndTime),1)):(ue(),Qt(x,{key:1,onClick:M},{default:k(()=>[Xt("\u9009\u62E9\u65E5\u671F")]),_:1})):(ue(),Se("div",Ke,[t(f,{modelValue:I(c).orderTime,"onUpdate:modelValue":H[1]||(H[1]=a=>I(c).orderTime=a),"value-format":"YYYY-MM-DD",type:"daterange","start-placeholder":"\u5F00\u59CB\u65E5\u671F","end-placeholder":"\u7ED3\u675F\u65E5\u671F","default-time":[new Date("1"),new Date("1")],onChange:w},null,8,["modelValue","default-time"])])),t(D,{show:I(c).mobileOrderTimeShow,"onUpdate:show":H[2]||(H[2]=a=>I(c).mobileOrderTimeShow=a),type:"range","min-date":I(g),onConfirm:B},null,8,["show","min-date"])])]),default:k(()=>[t(z,{loading:I(d),animated:""},{default:k(()=>[t(S,null,{default:k(()=>[t(i,null,{default:k(()=>[t(z,{loading:I(d),animated:""},{default:k(()=>[t(O,{options:I(dt),height:250,onChartInit:o},null,8,["options"])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1}),t(S,{gutter:8,justify:"space-between"},{default:k(()=>[t(i,{xl:12,lg:12,md:24,sm:24,xs:24,class:"mb-8px"},{default:k(()=>[t(_,{shadow:"never"},{header:k(()=>[Je]),default:k(()=>[t(z,{loading:I(d),animated:""},{default:k(()=>[t(S,null,{default:k(()=>[t(i,null,{default:k(()=>[t(z,{loading:I(d),animated:""},{default:k(()=>[t(O,{options:I(W),height:280},null,8,["options"])]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1},8,["loading"])]),_:1})]),_:1}),t(i,{xl:12,lg:12,md:24,sm:24,xs:24,class:"mb-8px"},{default:k(()=>[t(_,{shadow:"never"},{header:k(()=>[Qe]),default:k(()=>[t(z,{loading:I(d),animated:""},{default:k(()=>[t(S,null,{default:k(()=>[t(i,null,{default:k(()=>[t(Ya)]),_:1})]),_:1})]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1})],64)}}}),[["__scopeId","data-v-1126cba5"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/Home/Index.vue"]])});export{Ga as __tla,mt as default};