import{U as H,r as _,$ as q,v as j,E as W,V as y,m,Z as b,an as O,ad as w,p as e,Y as t,M as c,o as u,a0 as Z,P as J,ao as r,W as U,X as E,ap as K,aq as x}from"./common.modules-7ef9f935.js";import{bh as ee,Q as te,c6 as z,bm as se,_ as G,c as P,b_ as oe}from"./page-activity-ActivityDetail-6651511c.js";window.getBuildInfo=function(){return{buildTime:"3/28/2025, 7:06:51 PM",branch:"origin/masterBranch/main commitId:afb5d46f657248d3137decf21a49f44fbff20383"}};const ae={class:"ar-searchbar"},ne={class:"ar-searchbar-type"},ie={key:0,class:"myCommission__container-content"},le={class:"myCommission__container-content__item-body"},de={class:"settle"},ce={class:"time"},re={class:"sub"},_e={class:"amount grey"},me={class:"amount grey"},ue={class:"amount orange fw"},pe={class:"amount grey"},ve=H({__name:"index",setup(p){const v=_(null),R=q(),n=_(),{minDate:A,maxDate:T}=ee(-1),l=j(T).startOf("day"),{key:S,value:s}=te(),f=_(l.format("YYYY-MM-DD")),$=_(s),d=_(!1),h=_({date:l.format("YYYY-MM-DD HH:mm:ss")}),k=async({selectedOptions:o})=>{d.value=!1,h.value.date=j($.value.join("/")).startOf("day").format("YYYY-MM-DD HH:mm:ss");const[{value:a},{value:C},{value:M}]=o;f.value=se(a,C,M),i()};function L(){R.back()}const g=({selectedOptions:o})=>{d.value=!1},i=async()=>{try{const o=await z(h.value);n.value=o}catch{}};return W(()=>{i()}),(o,a)=>{var V,Y,B,I,N;const C=y("NavBar"),M=y("ArSelect"),Q=y("van-sticky"),F=y("van-date-picker"),X=y("van-popup");return u(),m("div",{class:"myCommission__container",ref_key:"containerRef",ref:v},[b(C,{title:o.$t("commissionDetails"),"left-arrow":"",onClickLeft:L},null,8,["title"]),b(Q,{"offset-top":o.$u.TopHeight,container:v.value},{default:O(()=>[e("div",ae,[e("div",ne,[b(M,{onClickSelect:a[0]||(a[0]=D=>d.value=!0),selectName:f.value||o.$t("pickDate")},null,8,["selectName"])])])]),_:1},8,["offset-top","container"]),w(" 日期选择弹窗 "),b(X,{show:d.value,"onUpdate:show":a[2]||(a[2]=D=>d.value=D),round:"",position:"bottom"},{default:O(()=>[b(F,{modelValue:$.value,"onUpdate:modelValue":a[1]||(a[1]=D=>$.value=D),title:o.$t("pickDate"),onCancel:g,onConfirm:k,"min-date":c(A),"max-date":c(T)},null,8,["modelValue","title","min-date","max-date"])]),_:1},8,["show"]),(V=n.value)!=null&&V.settlementTime?(u(),m("div",ie,[e("div",{class:"myCommission__container-content__item",onClick:a[3]||(a[3]=D=>c(R).push({name:"MyCommission-MyCommissionDetail",query:{date:h.value.date}}))},[e("div",le,[e("p",de,t(o.$t("settlementState")),1),e("span",ce,t((Y=n.value)==null?void 0:Y.settlementTime),1),e("p",re,t(o.$t("tTommission")),1),e("div",null,[e("span",null,t(o.$t("betPeople")),1),e("span",_e,t((B=n.value)==null?void 0:B.children_LotteryAmount_Users)+" "+t(o.$t("people")),1)]),e("div",null,[e("span",null,t(o.$t("betMoney")),1),e("span",me,t((I=n.value)==null?void 0:I.children_LotteryAmount),1)]),w(` <div>
						<span>{{ $t('agencyGrade') }}</span>
						<span class="level">L{{ Promotion?.rebateAmount_Last }}</span>
					</div> `),e("div",null,[e("span",null,t(o.$t("commSettlement")),1),e("span",ue,t(n.value.rebateAmount_Last),1)]),e("div",null,[e("span",null,t(o.$t("date")),1),e("span",pe,t((N=n.value)==null?void 0:N.time),1)])])])])):w("v-if",!0)],512)}}});const he=G(ve,[["__scopeId","data-v-5659d99c"],["__file","/var/lib/jenkins/workspace/web-印度-ar050-daman-01/src/views/promotion/MyCommission/index.vue"]]),Ke=Object.freeze(Object.defineProperty({__proto__:null,default:he},Symbol.toStringTag,{value:"Module"})),ye=p=>(K("data-v-ede350d4"),p=p(),x(),p),be={class:"TeamReportDetail__C"},fe={class:"TeamReportDetail__C-head"},$e={class:"TeamReportDetail__C-head-top"},Ce={class:"TeamReportDetail__C-head-detail"},De={class:"TeamReportDetail__C-head-detail-lv"},Re={class:"TeamReportDetail__C-head-detail-commission"},Te={class:"TeamReportDetail__C-head-detail-time"},ke=ye(()=>e("div",{class:"TeamReportDetail__C-img"},null,-1)),Le={class:"TeamReportDetail__C-detail"},ge={class:"title"},we={class:"box"},Ae={class:"TeamReportDetail__C-body-item"},Me={class:"TeamReportDetail__C-body-item"},Pe={class:"level"},Se={class:"TeamReportDetail__C-body-item"},Ve={class:"meony"},Ye={class:"TeamReportDetail__C-body-item"},Be={class:"meony"},Ie={class:"TeamReportDetail__C-body-grade"},Ne={class:"TeamReportDetail__C-body-grade-th"},je={class:"item"},Oe={class:"item"},Ue={class:"item"},Ee={class:"item"},He={class:"item"},qe={class:"icon-LV"},We={class:"txt"},ze={class:"item"},Ge={class:"item"},Qe={class:"item"},Fe=H({__name:"index",setup(p){const v=q(),R=Z(),{t:n}=J(),A={1:n("commissionLottery"),2:n("commissionElectric"),3:n("commissionLive"),4:n("commissionSport"),5:n("commissionGames"),6:n("commissionChess")},T=()=>{v.go(-1)},l=_(),S=async()=>{try{const s=await z({date:R.query.date});l.value=s}catch{}};return W(()=>{S()}),(s,f)=>{var d,h,k,L,g;const $=y("NavBar");return u(),m("div",be,[b($,{title:s.$t("details"),"left-arrow":"",onClickLeft:T},null,8,["title"]),e("div",fe,[e("div",$e,t((d=l.value)==null?void 0:d.settlementTime),1),e("div",Ce,[e("div",De,[r(t(s.$t("totalBetP")),1),e("span",null,t((h=l.value)==null?void 0:h.children_LotteryAmount_Users)+t(s.$t("people")),1)]),e("div",Re,[r(t(s.$t("totalBetA")),1),e("span",null,t(c(P)((k=l.value)==null?void 0:k.children_LotteryAmount)),1)]),w(` <div class="TeamReportDetail__C-head-detail-time">
					{{$t('rebateLevel')}}<span>LV5</span>
				</div> `),e("div",Te,[r(t(s.$t("totalCommissionA")),1),e("span",null,t((L=l.value)==null?void 0:L.rebateAmount_Last),1)])])]),ke,e("div",Le,[e("div",{class:"btn",onClick:f[0]||(f[0]=i=>c(v).push({name:"RebateRatio"}))},t(s.$t("rebateRules")),1)]),(u(!0),m(U,null,E((g=l.value)==null?void 0:g.rebateWhereItems,(i,o)=>(u(),m("div",{class:"TeamReportDetail__C-body",key:o},[e("div",ge,t(A[i.type]),1),e("div",we,[e("div",Ae,[r(t(s.$t("betPeople"))+" ",1),e("span",null,t(i.children_LotteryAmount_Users)+t(s.$t("people")),1)]),e("div",Me,[r(t(s.$t("rebateLevel"))+" ",1),e("span",Pe,"LV"+t(i.rebateLevel),1)]),e("div",Se,[r(t(s.$t("betMoney"))+" ",1),e("span",Ve,t(c(P)(i.children_LotteryAmount)),1)]),e("div",Ye,[r(t(s.$t("commSettlement"))+" ",1),e("span",Be,t(c(P)(i.rebateAmount)),1)])]),e("div",Ie,[e("div",Ne,[e("div",je,t(s.$t("lowerLevel")),1),e("div",Oe,t(s.$t("betAmounts")),1),e("div",Ue,t(s.$t("rebateRatio")),1),e("div",Ee,t(s.$t("betRebateAmount")),1)]),(u(!0),m(U,null,E(i.rebateWhereItemDetails,(a,C)=>(u(),m("div",{class:"TeamReportDetail__C-body-grade-tr",key:C},[e("div",He,[e("div",qe,[e("span",We,"L"+t(a.levelId),1)])]),e("div",ze,t(a.children_LotteryAmount),1),e("div",Ge,t(a.rebateRate)+"%",1),e("div",Qe,t(c(oe)(a.rebateAmount)),1)]))),128))])]))),128))])}}});const Xe=G(Fe,[["__scopeId","data-v-ede350d4"],["__file","/var/lib/jenkins/workspace/web-印度-ar050-daman-01/src/views/promotion/MyCommission/MyCommissionDetail/index.vue"]]),xe=Object.freeze(Object.defineProperty({__proto__:null,default:Xe},Symbol.toStringTag,{value:"Module"}));export{xe as a,Ke as i};
//# sourceMappingURL=page-promotion-MyCommission-42846b5d.js.map
