import{H as t}from"./Header-X_QfKFhH.js";import{l as a,a as i}from"./lucky--VRu5umj.js";import{_ as e,bI as s}from"./common-store-kFD1YPwN.js";import{U as l,R as n,r as o,j as c,G as v,b as r,q as u,I as d,h as y,x as m,t as p,u as b,f as g,n as k,F as x,e as f,o as I}from"./vendor-jA_NIjzi.js";import"./common-utils-RDWuRZ1M.js";import"./vendor-crypto-Vtl7-GZS.js";/* empty css              */import"./SvgIcon-a1Rg7hQY.js";import"./noData-_8RtifU3.js";import"./activity-0pIvkuws.js";import"./vendor-mqtt-lYGapirz.js";const C={class:"lucky-activity"},h={class:"lucky-activity-container overflow-y-auto"},j=["src"],w={class:"message-box"},A={class:"message-box-container"},T=["innerHTML"],M={class:"list"},O={class:"list-item"},_={class:"nub-message"},B={class:"text-nub"},D={key:0},H={class:"text-nub-two"},q={class:"table-list"},S={class:"table-hander-text"},V={key:0,class:"table-hander-text"},L={class:"table-hander-text"},N={class:"table-hander-text"},R={class:"padding-t-b"},U={key:0,class:"padding-t-b"},F={class:"padding-t-b table-td-txte"},G={class:"rule-box"},z=["innerHTML"],E=e({__name:"luckyActivity",setup(e){const{t:E}=l(),J=n(),K=o({luckyBetActivityInfoVO:{betOrderCount:0,receiveCountDay:0,receivedCount:0}}),P=o(!1);c((async()=>{await Q()}));const Q=async()=>{const t=await s({activityId:J.query.id,activityConditionType:J.query.activityConditionType});t&&(K.value=t.data)},W=v((()=>{var t;return 1==+(null==(t=K.value)?void 0:t.bonusMode)})),X=v((()=>{const t=K.value.luckyBetActivityInfoVO.receivedCount||0,a=K.value.luckyBetActivityInfoVO.receiveCountDay||0;return"".concat(a-t," / ").concat(a)})),Y=v((()=>{var t,a;return W.value?null==(t=K.value.fixed)?void 0:t.map((t=>({maskedNo:t.conditionString.padStart(10,"*"),amount:t.giveMaxAmount}))):null==(a=K.value.ratio)?void 0:a.map((t=>({maskedNo:t.conditionString.padStart(10,"*"),ratio:+(null==t?void 0:t.rewardRatio),amount:0==+t.rewardMaxAmount?"∞":t.rewardMaxAmount})))}));return(e,s)=>(I(),r("div",C,[u(t,{class:"fund-details-header",title:K.value.activityName,isRightShow:!1},{right:d((()=>[y("span",{class:"claim-record",onClick:s[0]||(s[0]=t=>P.value=!0)},p(b(E)("领取记录")),1)])),_:1},8,["title"]),y("div",h,[y("img",{class:"banner",src:K.value.activityH5ImgUrl,alt:""},null,8,j),y("div",w,[y("div",A,[y("div",{innerHTML:K.value.activityIntroductionData},null,8,T)])]),y("div",M,[y("div",O,[y("div",_,[y("div",null,[m(p(b(E)("昨日中奖注单数"))+"： ",1),y("span",B,p(K.value.luckyBetActivityInfoVO.betOrderCount),1)]),K.value.luckyBetActivityInfoVO.receiveCountDay&&0!==K.value.luckyBetActivityInfoVO.receiveCountDay?(I(),r("div",D,[m(p(b(E)("今日领取次数"))+"：",1),y("span",H,p(X.value),1)])):g("",!0)]),y("div",q,[y("div",{class:k(["table-hander betting-row",W.value?"grid-columns2":"grid-columns3"])},[y("div",S,p(b(E)("注单尾号")),1),W.value?(I(),r("div",V,p(b(E)("奖励礼金")),1)):(I(),r(x,{key:1},[y("div",L,p(b(E)("下注金额倍数")),1),y("div",N,p(b(E)("奖励上限")),1)],64))],2),(I(!0),r(x,null,f(Y.value,(t=>(I(),r("div",{key:t.no,class:k(["table-td betting-row",W.value?"grid-columns2":"grid-columns3"])},[y("div",R,p(t.maskedNo),1),W.value?g("",!0):(I(),r("div",U,p(b(E)("x倍",{x:t.ratio})),1)),y("div",F,p(t.amount),1)],2)))),128))])]),y("div",G,[y("div",{class:"rule-box-content",innerHTML:K.value.activityRuleData},null,8,z)])])]),u(a,{refresh:Q,detail:K.value},null,8,["detail"]),u(i,{activityId:b(J).query.id,activityConditionType:b(J).query.activityConditionType,visible:P.value,"onUpdate:visible":s[1]||(s[1]=t=>P.value=t)},null,8,["activityId","activityConditionType","visible"])]))}},[["__scopeId","data-v-32b01801"],["__file","luckyActivity.vue"]]);export{E as default};
